c90803333486ef7b2b2a8eea064d3384264ef6b9
[gnulib.git] / ChangeLog
1 2011-05-07  Bruno Haible  <bruno@clisp.org>
2
3         ftello: Respect rules for use of AC_LIBOBJ.
4         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6         here...
7         * modules/ftello (configure.ac): ... to here.
8
9 2011-05-07  Bruno Haible  <bruno@clisp.org>
10
11         fseeko: Simplify.
12         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
13         (gl_FUNC_FSEEKO): Inline it here.
14
15 2011-05-07  Bruno Haible  <bruno@clisp.org>
16
17         fseek: Move AC_LIBOBJ invocations to module description.
18         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20         * modules/fseek (configure.ac): ... to here.
21
22 2011-05-07  Bruno Haible  <bruno@clisp.org>
23
24         fseek: Respect rules for use of AC_LIBOBJ.
25         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
26         here...
27         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
28
29 2011-05-07  Bruno Haible  <bruno@clisp.org>
30
31         fseeko: Respect rules for use of AC_LIBOBJ.
32         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
33         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
34         here...
35         * modules/fseeko (configure.ac): ... to here.
36
37 2011-06-13  Bruno Haible  <bruno@clisp.org>
38
39         gnulib-tool: Allow comments in the 'Depends-on' section.
40         * doc/gnulib.texi (Module description): Mention comment syntax in the
41         Depends-on section.
42         * gnulib-tool (func_get_dependencies): Filter out comment lines.
43
44 2011-06-13  Bruno Haible  <bruno@clisp.org>
45
46         file-set.h: guard __attibute__ use, now that it's not always defined
47         * lib/file-set.h (record_file): Use __attribute__ only with compiler
48         versions that support it.  This fixes a coreutils build failure with
49         the vendor cc on HP-UX 11.31.
50
51 2011-06-12  Bruno Haible  <bruno@clisp.org>
52
53         acl: Add support for HP-UX >= 11.11 JFS ACLs.
54         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
55         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
56         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
57         (acl, aclsort): New declarations.
58         (aclv_nontrivial): New declaration.
59         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
60         (file_has_acl): Read also the second kind of HP-UX ACLs.
61         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
62         kind of HP-UX ACLs if the first kind fails.
63         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
64         second kind of HP-UX ACLs.
65         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
66         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
67         agree.
68         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
69         hpuxjfs.
70         Handle hpuxjfs.
71         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
72         hpuxjfs.
73         Handle hpuxjfs.
74         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
75         (func_test_same_acls): Use both lsacl and getacl.
76         Handle hpuxjfs.
77         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
78         (func_test_same_acls): Use both lsacl and getacl.
79         Handle hpuxjfs.
80
81 2011-06-12  Bruno Haible  <bruno@clisp.org>
82
83         acl: Complete the 2010-08-10 fix.
84         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
85         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
86         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
87         explicitly.
88         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
89         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
90
91 2011-06-12  Bruno Haible  <bruno@clisp.org>
92
93         spawn-pipe tests: Comments.
94         * tests/test-spawn-pipe-child.c (main): Update comment.
95         Reported by James Youngman <jay@gnu.org>.
96
97 2011-06-11  James Youngman  <jay@gnu.org>
98
99         New module 'stat-size'.
100         * modules/stat-size: New module.  Provides macros for accessing
101         file size information in instances of struct stat.  Depends on the
102         fileblocks module because it calls st_blocks.
103         * lib/stat-size.h: New file, adapted from coreutils' system.h.
104         * doc/gnulib.texi: Include stat-size.texi.
105         * doc/stat-size.texi: Documentation for this module.
106         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
107         * m4/fileblocks.m4: Mention that stat-size depends on the call to
108         AC_STRUCT_ST_BLOCKS.
109
110 2011-06-09  Bruno Haible  <bruno@clisp.org>
111
112         thread: Support pthreads-win32.
113         * lib/glthread/thread.h (gl_thread_self): Define differently on
114         pthreads-win32.
115         (gl_null_thread): New declaration.
116         (gl_thread_self_pointer): New macro.
117         * lib/glthread/thread.c (gl_null_thread): New constant.
118         * tests/test-lock.c: Use gl_thread_self_pointer instead of
119         gl_thread_self.
120         * tests/test-tls.c: Likewise.
121         Suggested by Paul Eggert. Reported by Eric Blake.
122
123 2011-06-09  Bruno Haible  <bruno@clisp.org>
124
125         thread: Fix confusion between NULL and 0.
126         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
127         Reported by Paul Eggert.
128
129 2011-06-09  Bruno Haible  <bruno@clisp.org>
130
131         spawn-pipe tests: Avoid test failure on HP-UX 11.
132         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
133         is closed.
134
135 2011-06-09  Bruno Haible  <bruno@clisp.org>
136
137         acl tests: Fix compilation error on HP-UX 11.
138         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
139
140 2011-06-09  Bruno Haible  <bruno@clisp.org>
141
142         rmdir: Avoid test failure on HP-UX 10.20.
143         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
144         EEXIST.
145
146 2011-06-08  Eric Blake  <eblake@redhat.com>
147
148         perror: fix test on mingw
149         * modules/perror-tests (Depends-on): Add dup2.
150
151         strerror_r-posix: fix on MacOS
152         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
153         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
154         logic bug.
155         * lib/strerror_r.c (strerror_r): Fix the bug.
156         * lib/strerror.c (strerror): Likewise.
157         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
158         problem.
159         * doc/posix-functions/strerror.texi (strerror): Likewise.
160         * doc/posix-functions/perror.texi (perror): Likewise.
161         * tests/test-strerror.c (main): Enhance test.
162         * tests/test-strerror_r.c (main): Likewise.
163
164 2011-06-08  Bruno Haible  <bruno@clisp.org>
165
166         gnulib-tool: Better isolation between different gnulib-tool invocations.
167         * gnulib-tool: New option --witness-c-macro.
168         (witness_c_macro): New variable.
169         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
170         AM_CPPFLAGS define it as a C macro.
171         (func_emit_tests_Makefile_am): Likewise.
172         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
173         read it from there.
174         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
175         m4_define, not AC_DEFUN.
176         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
177         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
178         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
179         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
180         s|...|...|, to substitute the values of the GNULIB_* module indicator
181         variables.
182         * modules/dirent (Makefile.am): Likewise.
183         * modules/fcntl-h (Makefile.am): Likewise.
184         * modules/iconv-h (Makefile.am): Likewise.
185         * modules/langinfo (Makefile.am): Likewise.
186         * modules/locale (Makefile.am): Likewise.
187         * modules/math (Makefile.am): Likewise.
188         * modules/netdb (Makefile.am): Likewise.
189         * modules/poll-h (Makefile.am): Likewise.
190         * modules/pty (Makefile.am): Likewise.
191         * modules/search (Makefile.am): Likewise.
192         * modules/signal (Makefile.am): Likewise.
193         * modules/spawn (Makefile.am): Likewise.
194         * modules/stdio (Makefile.am): Likewise.
195         * modules/stdlib (Makefile.am): Likewise.
196         * modules/string (Makefile.am): Likewise.
197         * modules/sys_ioctl (Makefile.am): Likewise.
198         * modules/sys_select (Makefile.am): Likewise.
199         * modules/sys_socket (Makefile.am): Likewise.
200         * modules/sys_stat (Makefile.am): Likewise.
201         * modules/sys_times (Makefile.am): Likewise.
202         * modules/sys_utsname (Makefile.am): Likewise.
203         * modules/sys_wait (Makefile.am): Likewise.
204         * modules/termios (Makefile.am): Likewise.
205         * modules/time (Makefile.am): Likewise.
206         * modules/unistd (Makefile.am): Likewise.
207         * modules/wchar (Makefile.am): Likewise.
208
209 2011-06-08  Eric Blake  <eblake@redhat.com>
210
211         strerror: simplify replacement
212         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
213         * modules/strerror (configure.ac): No prereqs needed here...
214         * modules/strerror-override (configure.ac): ...but this needs it.
215         (Files): Add file for needed prereq macro.
216
217 2011-06-08  Bruno Haible  <bruno@clisp.org>
218
219         strerror_r-posix: Tweaks.
220         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
221         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
222         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
223         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
224         (gl_FUNC_STRERROR_R): ... to here.
225         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
226
227 2011-06-07  Eric Blake  <eblake@redhat.com>
228
229         perror: document fixed bugs
230         * doc/posix-functions/perror.texi (perror): Document recent
231         patches.
232
233 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
234
235         stat-time: get_stat_birthtime failure is better-defined
236         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
237         return a timestamp whose tv_sec and tv_nsec values are both -1.
238         Previously, the spec said only that the tv_nsec value was negative.
239         This upward-compatible change simplifies GNU tar a bit.
240
241 2011-06-07  Eric Blake  <eblake@redhat.com>
242
243         strerror_r-posix: work around cygwin 1.7.9
244         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
245         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
246         bug without replacing strerror_r.
247         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
248         strerror_r is buggy, but without requiring strerror_r compilation.
249         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
250
251         test-perror: relax test to ignore cygwin bug
252         * tests/test-perror2.c (main): Relax test on requiring detection
253         of stream errors, and use unbuffered stream.
254         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
255         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
256         * doc/posix-functions/fputc.texi (fputc): Likewise.
257         * doc/posix-functions/fputs.texi (fputs): Likewise.
258         * doc/posix-functions/fputws.texi (fputws): Likewise.
259         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
260         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
261         * doc/posix-functions/getopt.texi (getopt): Likewise.
262         * doc/posix-functions/perror.texi (perror): Likewise.
263         * doc/posix-functions/printf.texi (printf): Likewise.
264         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
265         * doc/posix-functions/psignal.texi (psignal): Likewise.
266         * doc/posix-functions/putc.texi (putc): Likewise.
267         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
268         Likewise.
269         * doc/posix-functions/putchar.texi (putchar): Likewise.
270         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
271         Likewise.
272         * doc/posix-functions/puts.texi (puts): Likewise.
273         * doc/posix-functions/putwc.texi (putwc): Likewise.
274         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
275         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
276         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
277         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
278         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
279         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
280         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
281         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
282
283 2011-05-22  Bruno Haible  <bruno@clisp.org>
284
285         strerror: Move AC_LIBOBJ invocations to module description.
286         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
287         gl_PREREQ_STRERROR invocations from here...
288         * modules/strerror (configure.ac): ... to here.
289
290 2011-05-21  Bruno Haible  <bruno@clisp.org>
291
292         perror: Use common idiom.
293         * modules/perror (configure.ac): Reorder statements.
294
295 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
296
297         tests: fix usage message in 'mktempd_'
298         * tests/init.sh (mktempd_): In the usage message, use literal
299         'mktempd_', not '$ME' (which is even undefined), as the name of
300         the subroutine.
301
302 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
303
304         tests init: new function 'fatal_', for hard errors
305         Before this patch, the only way offered by tests/init.sh to
306         properly signal a hard error was the `framework_failure_'
307         function.  But the error message issued by that function,
308         as its name would suggest, refers to a set-up failure in the
309         testsuite, while hard errors can obviously also be due to
310         other reasons.  The best way to fix this inconsistency is to
311         introduce a new function with a more general error message.
312         * tests/init.sh (fatal_): New function.
313
314 2011-06-06  Eric Blake  <eblake@redhat.com>
315
316         canonicalize-lgpl: use common idiom
317         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
318         over newer POSIX -Rf.
319         Reported by Bruno Haible.
320
321         canonicalize-lgpl: work around AIX realpath bug
322         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
323         * doc/posix-functions/realpath.texi (realpath): Document it.
324         Reported by Bruno Haible.
325
326         strerror: work around FreeBSD bug
327         * lib/strerror.c (strerror): Special case 0.
328         Reported by Bruno Haible.
329
330         strerror-override: avoid bloating errno module
331         * modules/errno (Files, configure.ac): Move replacement strings...
332         * modules/strerror-override: ...to new module.
333         * modules/strerror (Depends-on): Add strerror-override.
334         * modules/strerror_r-posix (Depends-on): Likewise.
335         * MODULES.html.sh: Document new module.
336         Reported by Bruno Haible.
337
338 2011-06-06  Bruno Haible  <bruno@clisp.org>
339
340         spawn-pipe tests: Rename program.
341         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
342         * tests/test-spawn-pipe-child.c: Update comment.
343         * tests/test-spawn-pipe.sh: Update.
344         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
345
346         spawn-pipe tests: Link the child program only against libc.
347         * tests/test-spawn-pipe-child.c: New file, extracted from
348         tests/test-spawn-pipe.c.
349         (main): Expect only one argument.
350         (is_open): New function, copied from tests/test-pipe.c.
351         * tests/test-spawn-pipe.c: Don't include <errno.h>.
352         (child_main): Remove function.
353         (test_pipe): Pass only one argument to the child program.
354         (main): Remove child process code. Expect the child program's name as
355         first argument.
356         * tests/test-spawn-pipe.sh: Pass the child program's name as first
357         argument.
358         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
359         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
360         test-spawn-pipe-child against no libraries.
361
362 2011-06-06  Bruno Haible  <bruno@clisp.org>
363
364         careadlinkat: Avoid mismatch between ssize_t and int.
365         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
366         * lib/careadlinkat.c (careadlinkatcwd): Define always.
367
368 2011-06-06  Jim Meyering  <meyering@redhat.com>
369
370         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
371         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
372         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
373
374 2011-06-05  Bruno Haible  <bruno@clisp.org>
375
376         ansi-c++-opt: Interoperability with libtool.
377         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
378         set the variable to "no", not to ":".
379         * NEWS: Mention the change.
380
381 2011-06-05  Bruno Haible  <bruno@clisp.org>
382
383         acl: Fix test failure on AIX 7.
384         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
385         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
386
387 2011-06-05  Bruno Haible  <bruno@clisp.org>
388
389         pipe-filter-ii: Fix test failure on AIX and IRIX.
390         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
391         with EAGAIN, retry with a smaller buffer size.
392
393 2011-06-05  Bruno Haible  <bruno@clisp.org>
394
395         localename: Fix link dependencies.
396         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
397         * modules/localename-tests (Makefile.am): Link test-localename with
398         $(LIBTHREAD).
399
400 2011-06-05  Bruno Haible  <bruno@clisp.org>
401
402         error: Avoid gcc warning.
403         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
404
405 2011-06-05  Bruno Haible  <bruno@clisp.org>
406
407         unsetenv: Avoid gcc warning.
408         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
409
410 2011-06-05  Bruno Haible  <bruno@clisp.org>
411
412         setenv: Avoid gcc warning.
413         * lib/setenv.c (setenv): Provide declaration if system lacks it.
414
415 2011-06-05  Bruno Haible  <bruno@clisp.org>
416
417         sys_select: Ensure memset is declared also on AIX 7.
418         * lib/sys_select.in.h: Include <string.h> also on AIX.
419         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
420         self-contained also on AIX 7.1.
421
422 2011-06-04  Jim Meyering  <meyering@redhat.com>
423
424         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
425         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
426         function name, "error".
427         (_gl_translatable_diag_func_re): New configurable variable.
428
429 2011-06-04  Bruno Haible  <bruno@clisp.org>
430
431         getopt: Avoid gcc warning.
432         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
433
434 2011-06-04  Bruno Haible  <bruno@clisp.org>
435
436         strerror_r: Fix comments.
437         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
438         commit.
439
440 2011-06-04  Bruno Haible  <bruno@clisp.org>
441
442         perror: Fix compilation error.
443         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
444         Undefine fprintf, not sprintf.
445         * modules/perror (Depends-on): Remove intprops, verify.
446
447 2011-06-04  Bruno Haible  <bruno@clisp.org>
448
449         setlocale: Enable replacement on Cygwin 1.5.
450         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
451         Cygwin 1.5.x.
452         * doc/posix-functions/setlocale.texi: Mention that the problem with the
453         LC_CTYPE category also exists on Cygwin 1.5.x.
454
455 2011-06-04  Bruno Haible  <bruno@clisp.org>
456
457         strerror-override: Don't disable symbol renamings.
458         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
459         * lib/strerror-override.c: Include config.h.
460         (strerror_override): Don't undefine.
461
462 2011-06-03  Bruno Haible  <bruno@clisp.org>
463
464         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
465         * lib/localename.h: Update copyright header.
466         * lib/localename.c: Likewise.
467         * lib/relocatable.h: Likewise.
468         * lib/relocatable.c: Likewise.
469
470 2011-06-02  Bruno Haible  <bruno@clisp.org>
471
472         doc: Fix a module name.
473         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
474
475 2011-06-02  Bruno Haible  <bruno@clisp.org>
476
477         pipe2: Remove dependency on 'nonblocking' module.
478         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
479         O_NONBLOCK is defined by gnulib.
480         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
481         is zero.
482         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
483         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
484         defined by gnulib.
485         (get_nonblocking_flag): New function.
486         (main): Test O_NONBLOCK flag only if it is nonzero.
487         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
488
489 2011-06-03  Jim Meyering  <meyering@redhat.com>
490
491         maint: three new prohibit-header-without-use rules
492         Prohibit use of cloexec.h, posixver.h, same.h without use.
493         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
494         (sc_prohibit_posixver_without_use): Likewise.
495         (sc_prohibit_same_without_use): Likewise.
496
497 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
498
499         allocator: 'die' routine is now given requested size
500         * lib/allocator.h (struct allocator.die): New size arg.
501         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
502         If the actual problem is an ssize_t limitation, not a size_t or
503         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
504
505 2011-06-01  Eric Blake  <eblake@redhat.com>
506
507         strerror: drop strerror_r dependency
508         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
509         * lib/strerror-override.c (strerror_override): ...to new file.
510         * lib/strerror-override.h: Add prototype.
511         * lib/strerror-impl.h: Delete.
512         * lib/strerror.c (strerror): New implementation.
513         * modules/errno (Files): Add new files.
514         (configure.ac): Compile new file as appropriate.
515         * modules/strerror (Files): Drop unused file.
516         (Depends-on): Drop strerror_r-posix.
517         * MODULES.html.sh: Document strerror_r-posix.
518         Requested by Sam Steingold.
519
520         perror: call strerror_r directly
521         * modules/perror (Files): Drop strerror-impl.h.
522         * lib/perror.c (perror): Use our own stack buffer, rather than
523         calling a wrapper that uses static storage.
524         * doc/posix-functions/perror.texi (perror): Document a limitation
525         of our replacement.
526
527         strerror_r: fix includes for FreeBSD
528         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
529         since we use abort on some platforms.
530         Reported by Matthias Bolte.
531
532 2011-05-31  Bruno Haible  <bruno@clisp.org>
533
534         Fix link errors in tests: openat-die uses gettext-h.
535         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
536         against $(LIBINTL).
537         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
538         against $(LIBINTL).
539         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
540         $(LIBINTL).
541         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
542         against $(LIBINTL).
543         * modules/linkat-tests (Makefile.am): Link test-linkat against
544         $(LIBINTL).
545         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
546         $(LIBINTL).
547         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
548         against $(LIBINTL).
549         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
550         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
551         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
552         $(LIBINTL).
553         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
554         $(LIBINTL).
555         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
556         $(LIBINTL).
557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
558
559 2011-05-31  Bruno Haible  <bruno@clisp.org>
560
561         Fix link errors in tests: wait-process uses gettext-h.
562         * modules/nonblocking-pipe-tests (Makefile.am): Set
563         test_nonblocking_pipe_main_LDADD.
564         * modules/nonblocking-socket-tests (Makefile.am): Link
565         test-nonblocking-socket-main against $(LIBINTL).
566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
567
568 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
569
570         assert-h: work around 'verify' incompatibility
571         * lib/verify.h: Use @...@ directives, not ifdef.
572         * modules/assert-h (assert.h): Implement the directives.
573         (assert.h): Substitute the symbol-prefix more consistently.
574
575 2011-05-29  Jim Meyering  <meyering@redhat.com>
576
577         trim: remove three superfluous assignments
578         * lib/trim.c (trim2): Remove three superfluous assignments
579         and correct brace positioning.
580
581 2011-05-29  Bruno Haible  <bruno@clisp.org>
582
583         wctype-h: Avoid namespace pollution on Solaris 2.6.
584         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
585         identifiers.
586         * doc/posix-headers/wctype.texi: Mention the problem.
587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
588
589 2011-05-28  Jim Meyering  <meyering@redhat.com>
590
591         parse-datetime.y: accommodate -Wstrict-overflow
592         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
593         placate -Wstrict-overflow.
594
595         trim: avoid a warning from -O2 -Wstrict-overflow
596         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
597
598 2011-05-29  Bruno Haible  <bruno@clisp.org>
599
600         gnulib-tool: Fix bug in yesterday's commit.
601         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
602         twice.
603
604 2011-05-29  Bruno Haible  <bruno@clisp.org>
605
606         Allow multiple gnulib generated include files to be combined.
607         * gnulib-tool (func_compute_include_guard_prefix): New function.
608         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
609         ${gl_include_guard_prefix} references.
610         (func_import, func_create_testdir): Invoke
611         func_compute_include_guard_prefix.
612         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
613         * lib/ctype.in.h: Likewise.
614         * lib/dirent.in.h: Likewise.
615         * lib/errno.in.h: Likewise.
616         * lib/fcntl.in.h: Likewise.
617         * lib/float.in.h: Likewise.
618         * lib/getopt.in.h: Likewise.
619         * lib/iconv.in.h: Likewise.
620         * lib/langinfo.in.h: Likewise.
621         * lib/locale.in.h: Likewise.
622         * lib/math.in.h: Likewise.
623         * lib/netdb.in.h: Likewise.
624         * lib/netinet_in.in.h: Likewise.
625         * lib/poll.in.h: Likewise.
626         * lib/pthread.in.h: Likewise.
627         * lib/pty.in.h: Likewise.
628         * lib/sched.in.h: Likewise.
629         * lib/se-selinux.in.h: Likewise.
630         * lib/search.in.h: Likewise.
631         * lib/signal.in.h: Likewise.
632         * lib/spawn.in.h: Likewise.
633         * lib/stdarg.in.h: Likewise.
634         * lib/stddef.in.h: Likewise.
635         * lib/stdint.in.h: Likewise.
636         * lib/stdio.in.h: Likewise.
637         * lib/stdlib.in.h: Likewise.
638         * lib/string.in.h: Likewise.
639         * lib/strings.in.h: Likewise.
640         * lib/sys_file.in.h: Likewise.
641         * lib/sys_ioctl.in.h: Likewise.
642         * lib/sys_select.in.h: Likewise.
643         * lib/sys_socket.in.h: Likewise.
644         * lib/sys_stat.in.h: Likewise.
645         * lib/sys_time.in.h: Likewise.
646         * lib/sys_times.in.h: Likewise.
647         * lib/sys_uio.in.h: Likewise.
648         * lib/sys_utsname.in.h: Likewise.
649         * lib/sys_wait.in.h: Likewise.
650         * lib/sysexits.in.h: Likewise.
651         * lib/termios.in.h: Likewise.
652         * lib/time.in.h: Likewise.
653         * lib/unistd.in.h: Likewise.
654         * lib/wchar.in.h: Likewise.
655         * lib/wctype.in.h: Likewise.
656         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
657         * modules/ctype (Makefile.am): Likewise.
658         * modules/dirent (Makefile.am): Likewise.
659         * modules/errno (Makefile.am): Likewise.
660         * modules/fcntl-h (Makefile.am): Likewise.
661         * modules/float (Makefile.am): Likewise.
662         * modules/getopt-posix (Makefile.am): Likewise.
663         * modules/iconv-h (Makefile.am): Likewise.
664         * modules/langinfo (Makefile.am): Likewise.
665         * modules/locale (Makefile.am): Likewise.
666         * modules/math (Makefile.am): Likewise.
667         * modules/netdb (Makefile.am): Likewise.
668         * modules/netinet_in (Makefile.am): Likewise.
669         * modules/poll-h (Makefile.am): Likewise.
670         * modules/pthread (Makefile.am): Likewise.
671         * modules/pty (Makefile.am): Likewise.
672         * modules/sched (Makefile.am): Likewise.
673         * modules/search (Makefile.am): Likewise.
674         * modules/selinux-h (Makefile.am): Likewise.
675         * modules/signal (Makefile.am): Likewise.
676         * modules/spawn (Makefile.am): Likewise.
677         * modules/stdarg (Makefile.am): Likewise.
678         * modules/stddef (Makefile.am): Likewise.
679         * modules/stdint (Makefile.am): Likewise.
680         * modules/stdio (Makefile.am): Likewise.
681         * modules/stdlib (Makefile.am): Likewise.
682         * modules/string (Makefile.am): Likewise.
683         * modules/strings (Makefile.am): Likewise.
684         * modules/sys_file (Makefile.am): Likewise.
685         * modules/sys_ioctl (Makefile.am): Likewise.
686         * modules/sys_select (Makefile.am): Likewise.
687         * modules/sys_socket (Makefile.am): Likewise.
688         * modules/sys_stat (Makefile.am): Likewise.
689         * modules/sys_time (Makefile.am): Likewise.
690         * modules/sys_times (Makefile.am): Likewise.
691         * modules/sys_uio (Makefile.am): Likewise.
692         * modules/sys_utsname (Makefile.am): Likewise.
693         * modules/sys_wait (Makefile.am): Likewise.
694         * modules/sysexits (Makefile.am): Likewise.
695         * modules/termios (Makefile.am): Likewise.
696         * modules/time (Makefile.am): Likewise.
697         * modules/unistd (Makefile.am): Likewise.
698         * modules/wchar (Makefile.am): Likewise.
699         * modules/wctype-h (Makefile.am): Likewise.
700         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
701
702 2011-05-29  Bruno Haible  <bruno@clisp.org>
703
704         assert-h: Allow multiple gnulib generated replacements to coexist.
705         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
706
707 2011-05-29  Bruno Haible  <bruno@clisp.org>
708
709         argp: Allow coexistence with strerror_r-posix module.
710         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
711         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
712         by gnulib's <string.h> replacement), assume it has the POSIX signature,
713         not the glibc signature.
714
715 2011-05-28  Bruno Haible  <bruno@clisp.org>
716
717         gnulib-tool: Alternative structure of testdirs, similar to --import.
718         * gnulib-tool: New option --single-configure.
719         (func_usage): Document it.
720         (single_configure): New variable.
721         (func_modules_transitive_closure_separately,
722         func_modules_transitive_closure_separately,
723         func_determine_use_libtests, func_modules_add_dummy_separately,
724         func_modules_to_filelist_separately): New functions, extracted from
725         func_import.
726         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
727         (func_import): Use the new functions.
728         (func_create_testdir): Set final_modules. Handle $single_configure =
729         true case.
730
731 2011-05-28  Bruno Haible  <bruno@clisp.org>
732
733         getloadavg: Remove an unreliable safety check.
734         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
735         getloadavg.c is in place.
736         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
737         Reported by Sam Steingold <sds@gnu.org>.
738
739 2011-05-28  Bruno Haible  <bruno@clisp.org>
740
741         doc: Cleanup yet another file produced by texinfo.tex.
742         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
743
744 2011-05-28  Bruno Haible  <bruno@clisp.org>
745
746         Finish the conditional dependencies mechanism.
747         * gnulib-tool: New option --no-conditional-dependencies.
748         (func_usage): Document it. Don't mark --conditional-dependencies as
749         experimental.
750         (cond_dependencies): The possible values can now be true, false, empty.
751         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
752         (func_import): Store setting in gnulib-cache.m4 and read it from there.
753         * doc/gnulib-tool.texi (Conditional dependencies): New section.
754
755 2011-05-28  Bruno Haible  <bruno@clisp.org>
756
757         doc: Use a recent texinfo.tex.
758         * doc/Makefile (tex_opts): New variable.
759         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
760
761 2011-05-28  Jim Meyering  <meyering@redhat.com>
762
763         intprops.h: adjust comment to match code change
764         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
765         only once, it *may* have side effects.  Also fix an unrelated typo.
766         (_GL_INT_SIGNED): Likewise.
767
768 2011-05-26  Simon Josefsson  <simon@josefsson.org>
769
770         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
771
772 2011-05-26  Bruno Haible  <bruno@clisp.org>
773
774         mbsrchr: Avoid collision with system function on Interix.
775         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
776         Reported by Markus Duft <mduft@gentoo.org>.
777
778 2011-05-15  James Youngman  <jay@gnu.org>
779
780         getopt: for ambiguous options, enumerate the possibilities.
781         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
782         the ambiguous options when an ambiguous prefix is given. This was
783         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
784         glibc change was
785         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
786
787 2011-05-25  Eric Blake  <eblake@redhat.com>
788
789         getcwd: work around mingw bug
790         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
791         * doc/posix-functions/getcwd.texi (getcwd): Document it.
792         Reported by Matthias Bolte.
793
794 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
795
796         test-intprops: disable -Wtype-limits diagnostics
797         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
798         diagnostics.  Otherwise, the integer overflow macros generate many
799         diagnostics.  Reported by Jim Meyering in
800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
801
802         intprops: shorten, to pacify gcc -Woverlength-strings
803         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
804         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
805         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
806         likely to run afoul of C compiler limits for string constant lengths.
807         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
808
809 2011-05-24  Eric Blake  <eblake@redhat.com>
810
811         docs: document recently fixed glibc printf bug
812         * doc/posix-functions/fprintf.texi (fprintf): Document it.
813         * doc/posix-functions/printf.texi (printf): Likewise.
814         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
815         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
816
817         closein-tests: convert to init.sh
818         * modules/closein-tests (Files): Add init.sh
819         * tests/test-closein.sh Use it.
820
821         yesno-tests: convert to init.sh
822         * modules/yesno-tests (Files): Add init.sh.
823         * tests/test-yesno.sh: Use it.
824
825         atexit-tests: ensure reliable exit status
826         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
827         Reported by Bruno Haible.
828
829 2011-05-24  Bruno Haible  <bruno@clisp.org>
830
831         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
833         gl_PREREQ_STRERROR_R invocations from here...
834         * modules/strerror_r-posix (configure.ac): ... to here.
835
836 2011-05-24  Eric Blake  <eblake@redhat.com>
837
838         strerror_r: fix missing header
839         * lib/strerror_r.c: Avoid compiler warning about snprintf.
840
841         strerror_r: fix AIX test failures
842         * lib/strerror_r.c (strerror_r): Convert silent truncation to
843         ERANGE failure.
844
845         strerror_r: fix Solaris test failures
846         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
847         failures.
848         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
849
850         strerror_r: enforce POSIX recommendations
851         * lib/strerror_r.c (safe_copy): New helper method.
852         (strerror_r): Guarantee a non-empty string.
853         * tests/test-strerror_r.c (main): Enhance tests to incorporate
854         recent POSIX rulings and to match our strerror guarantees.
855         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
856
857 2011-05-24  Jim Meyering  <meyering@redhat.com>
858
859         test-perror2.c: avoid warning about unused variable
860         * tests/test-perror2.c (main): Remove declaration of unused "fp".
861
862 2011-05-24  Eric Blake  <eblake@redhat.com>
863
864         perror: avoid spurious test failure on HP-UX
865         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
866
867         tests: fix logic bug in init.sh
868         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
869         shell.
870
871 2011-05-24  Jim Meyering  <meyering@redhat.com>
872
873         utimensat: do not reference an out-of-scope buffer
874         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
875         declared in an inner scope, yet "times" would be dereferenced outside
876         the scope in which "ts" was valid.
877         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
878         of ts[2] "out/up", so that the use of aliased "times" (via
879         "times = ts;") does not end up referencing an out-of-scope "ts"
880
881         opendir-safer.c: don't clobber errno; don't close negative FD
882         * lib/opendir-safer.c (opendir_safer):
883         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
884         file descriptor, and more importantly, don't clobber the
885         offending errno value with EINVAL.  Before, upon failure
886         of dup_safer, we would pass the negative file descriptor to
887         fdopendir, which would clobber errno.
888
889 2011-05-23  Bruno Haible  <bruno@clisp.org>
890
891         idcache: Fix module description.
892         * modules/idcache (Include): Set to "idcache.h".
893
894 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
895
896         gnulib-tool: fix portability problem with MacOS sed
897         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
898         before the "}".  Problem reported by Leo in
899         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
900         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
901         sed_extract_condition1, sed_extract_condition2.
902
903 2011-05-23  Bruno Haible  <bruno@clisp.org>
904
905         hash: Simplify autoconf macro.
906         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
907
908 2011-05-23  Bruno Haible  <bruno@clisp.org>
909
910         getugroups: Fix module description.
911         * modules/getugroups (Include): Set to "getugroups.h".
912
913 2011-05-23  Bruno Haible  <bruno@clisp.org>
914
915         linkat: Simplify autoconf macro.
916         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
917
918 2011-05-23  Bruno Haible  <bruno@clisp.org>
919             Eric Blake  <eblake@redhat.com>
920
921         linkat, renameat: Update dependencies.
922         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
923         * modules/linkat (Depends-on): Likewise. Remove also readlink,
924         symlinkat.
925
926 2011-05-23  Jim Meyering  <meyering@redhat.com>
927
928         maint.mk: more tight_scope improvements
929         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
930         (_gl_TS_headers): Define only in if-0'd block.
931         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
932         sometimes we must *not* use it.  Adjust uses accordingly.
933         (sc_tight_scope): Use much simpler grep-based test to determine
934         whether we skip this rule.
935
936         maint.mk: generalize/improve the tight-scope rule
937         * top/maint.mk: Emit a warning when the test is skipped.
938         (_gl_TS_dir): Add $(srcdir)/ prefix.
939         (_gl_TS_function_match): Simplify, rather than trying
940         to enumerate common types.  Otherwise, it would fail to match an
941         "extern unsigned char const *" declaration in idutils.
942         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
943         a way to support use of that type of macro.
944         (_gl_TS_var_match): Simplify regexp.
945         (_gl_TS_obj_files): New configurable variable.
946         (_gl_TS_headers): Likewise.
947
948 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
949
950         verify: fix bug when gnulib <assert.h> is also included
951         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
952         is defined, not if _GL_STATIC_ASSERT_H is not defined.
953         Perhaps there's a better way, but this fixes the immediate problem.
954         Problem reported by Bruno Haible in
955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
956
957 2011-05-22  Bruno Haible  <bruno@clisp.org>
958
959         xgetcwd: Simplify autoconf macro.
960         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
961
962 2011-05-22  Bruno Haible  <bruno@clisp.org>
963
964         New module 'mktime-internal'.
965         * modules/mktime-internal: New file.
966         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
967         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
968         mktime_internal as a C macro if libc has __mktime_internal.
969         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
970         conditions.
971         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
972
973 2011-05-22  Bruno Haible  <bruno@clisp.org>
974
975         timegm: Correct mktime replacement statements.
976         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
977         defining mktime as a C macro. This completes a 2009-07-28 commit.
978
979 2011-05-22  Bruno Haible  <bruno@clisp.org>
980
981         timegm: Simplify autoconf macro.
982         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
983
984 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
985
986         clock-time: change to LGPLv2+.
987         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
988         BSD-like but we have no mark for that; this is good enough for now.
989
990 2011-05-21  Bruno Haible  <bruno@clisp.org>
991
992         strerror_r: Fix comments.
993         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
994
995 2011-05-21  Bruno Haible  <bruno@clisp.org>
996
997         relocatable-prog-wrapper: Fix possible link error.
998         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
999         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1000         (gl_FUNC_SETENV): ... to here.
1001         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1002         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1003
1004 2011-05-21  Bruno Haible  <bruno@clisp.org>
1005
1006         relocatable-prog-wrapper: Assume strerror() exists.
1007         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1008         m4/strerror.m4.
1009         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1010         * lib/relocwrapper.c: Remove mention of strerror module.
1011         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1012         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1013         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1014         C macro.
1015
1016 2011-05-21  Bruno Haible  <bruno@clisp.org>
1017
1018         select: Simplify replacement idiom.
1019         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1020         Win32 platforms.
1021         * lib/sys_select.in.h (select): Simplify accordingly.
1022         * modules/select (Depends-on): Likewise.
1023
1024 2011-05-21  Bruno Haible  <bruno@clisp.org>
1025
1026         mkdir-p: Simplify autoconf macro.
1027         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1028         gl_FUNC_LCHOWN.
1029
1030 2011-05-21  Eric Blake  <eblake@redhat.com>
1031
1032         strerror_r: avoid clobbering strerror on cygwin
1033         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1034         fall back instead to sys_errlist.
1035         * modules/strerror (configure.ac): Add witness.
1036         * tests/test-strerror_r.c (main): Enhance test.
1037         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1038         * tests/test-perror2.c (main): Free memory before exit.
1039
1040 2011-05-21  Bruno Haible  <bruno@clisp.org>
1041
1042         mkdtemp: Use gnulib naming conventions.
1043         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1044         * modules/mkdtemp (configure.ac): Update.
1045
1046 2011-05-20  Eric Blake  <eblake@redhat.com>
1047
1048         strerror_r: avoid corrupting errno on Solaris
1049         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1050         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1051
1052         strerror_r: avoid compiler warning
1053         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1054
1055         strerror_r: simplify AIX code
1056         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1057
1058         test-perror: avoid spurious failure on FreeBSD
1059         * modules/perror-tests (Depends-on): Add strerror, now that
1060         strerror_r no longer pulls it in.
1061
1062 2011-05-20  Bruno Haible  <bruno@clisp.org>
1063
1064         strerror_r-posix: Remove unused dependencies.
1065         * modules/strerror_r-posix (Depends-on): Remove strerror.
1066         Reported by Eric Blake.
1067
1068 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1069
1070         intprops: remove assumption about A|B representation
1071         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1072         is a valid integer if both A and B are.  Although this is true for
1073         all known practical hosts, the C standard doesn't guarantee it,
1074         and the code need not assume it.  Also, this change may work around
1075         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1077
1078 2011-05-20  Eric Blake  <eblake@redhat.com>
1079
1080         perror: work around FreeBSD bug
1081         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1082         is broken.  Move AC_LIBOBJ...
1083         * modules/perror (configure.ac): Here.
1084         * doc/posix-functions/perror.texi (perror): Document this.
1085         * tests/test-perror2.c (main): Enhance test.
1086
1087         test-perror: check for strerror interactions
1088         * tests/macros.h (STREQ): Add macro.
1089         * modules/perror-tests (Files): Add second test.
1090         * tests/test-perror2.c (main): New file.
1091         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1092
1093         test-perror: rewrite to use init script
1094         * modules/perror-tests (Files): Add init.sh.
1095         * tests/test-perror.sh: Use temporary directory.
1096
1097 2011-05-20  Jim Meyering  <meyering@redhat.com>
1098
1099         maint: replace misused "a" with "an"
1100         * doc/intprops.texi: "a integer"
1101         * doc/regex.texi: "a explanation"
1102         * lib/alignof.h: "a object"
1103         * lib/argmatch.h: "a explanation"
1104         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1105         * lib/stdint.in.h: "a integer"
1106         * lib/userspec.c: "a owner"
1107         * doc/gnulib.texi: Fix "a idea", and reword.
1108
1109 2011-05-19  Jim Meyering  <meyering@redhat.com>
1110
1111         maint: correct misuse of "a" and "an"
1112         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1113         * lib/argp-help.c: "an docum...": s/an/a/
1114         * lib/argp-parse.c: "An vector": s/An/A/
1115         * lib/execute.c: "an native": s/an/a/
1116         * lib/spawn-pipe.c: Likewise.
1117         * lib/gc.h: "an Gc_rc": s/an/a/
1118         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1119         * lib/fts.c: "an stat.st_dev": s/an/a/
1120
1121 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1122
1123         intprops-tests: work around HP-UX 11.23 cc bug with constants
1124         * tests/test-intprops.c (VERIFY): New macro.
1125         (main): Use it, instead of verify, to work around the compiler bug; see
1126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1127
1128         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1129         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1130         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1131         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1132         (_GL_REMAINDER_OVERFLOW): Use it.
1133
1134         intprops-tests: revert unsigned part of previous change
1135         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1136         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1137         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1139
1140 2011-05-19  Bruno Haible  <bruno@clisp.org>
1141
1142         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1143         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1144         strerror_r() returned without filling the buffer.
1145         Reported by Eric Blake.
1146
1147 2011-05-19  Eric Blake  <eblake@redhat.com>
1148
1149         strerror_r: guarantee unchanged errno
1150         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1151         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1152         failure.
1153         * tests/test-strerror_r.c (main): Enhance test.
1154
1155 2011-05-19  Bruno Haible  <bruno@clisp.org>
1156
1157         strerror_r: Reorder #if blocks.
1158         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1159         for consistency with the previous commit.
1160
1161 2011-05-19  Bruno Haible  <bruno@clisp.org>
1162
1163         perror: Avoid clobbering the strerror buffer when possible.
1164         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1165         * lib/strerror.c: Include it.
1166         * modules/strerror (Files): Add lib/strerror-impl.h.
1167         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1168         (my_strerror): New function, defined through lib/strerror-impl.h.
1169         (perror): Use it instead of strerror.
1170         * modules/perror (Files): Add lib/strerror-impl.h.
1171         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1172
1173 2011-05-19  Eric Blake  <eblake@redhat.com>
1174
1175         strerror_r: fix on newer cygwin
1176         * lib/strerror_r.c (strerror_r): Cygwin now has
1177         __xpg_strerror_r, use it.
1178
1179 2011-05-19  Bruno Haible  <bruno@clisp.org>
1180
1181         strerror_r: Avoid clobbering the strerror buffer when possible.
1182         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1183         (sys_nerr, sys_errlist): New declarations.
1184         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1185         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1186         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1187
1188 2011-05-19  Bruno Haible  <bruno@clisp.org>
1189
1190         strerror_r: Fix test failure on mingw.
1191         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1192         EXTEND_STRERROR_R.
1193         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1194         macros from errno.in.h instead.
1195
1196 2011-05-19  Eric Blake  <eblake@redhat.com>
1197
1198         strerror: relax test for Solaris
1199         * tests/test-strerror.c (main): Permit Solaris behavior.
1200         * tests/test-strerror_r.c (main): Likewise.
1201
1202         strerror: enforce POSIX ruling on strerror(0)
1203         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1204         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1205         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1206         * doc/posix-functions/strerror.texi (strerror): Document it.
1207         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1208         * tests/test-strerror.c (main): Strengthen test.
1209         * tests/test-strerror_r.c (main): Likewise.
1210
1211 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1212
1213         intprop-tests: port to older and more-pedantic compilers
1214         * modules/intprops-tests (Files): Add tests/macros.h.
1215         * tests/test-intprops.c: Include macros.h.
1216         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1217         it's no longer documented to expand to an integer constant expression.
1218         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1219         argument is floating point, as it's no longer documented to expand
1220         to an integer constant expression in that case.
1221         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1222         compiler bugs reported by Bruno Haible.  See
1223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1224         (U0, U1): New constants, to work around the same bugs.  Also,
1225         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1226
1227         intprops: work around C compiler bugs
1228         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1229         bug in Sun C 5.11 2010/08/13 and other compilers; see
1230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1231
1232         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1233         * doc/intprops.texi (Integer Type Determination): Fix
1234         documentation for TYPE_IS_INTEGER: it returns an constant
1235         expression, not an integer constant expression.  Fix doc for
1236         TYPE_SIGNED: it returns an integer constant expression only if its
1237         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1238         hardly worth documented that way....)
1239
1240 2011-05-18  Bruno Haible  <bruno@clisp.org>
1241
1242         strerror_r: Avoid clobbering the strerror buffer when possible.
1243         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1244         Handle gnulib defined errno values here. When strerror() returns NULL
1245         or an empty string, return EINVAL.
1246         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1247         gnulib defined errno values here.
1248         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1249
1250 2011-05-18  Eric Blake  <eblake@redhat.com>
1251
1252         fnmatch: avoid compiler warning
1253         * lib/fnmatch_loop.c (FCT): Use correct type.
1254         Reported by Matthias Bolte.
1255
1256 2011-05-13  Jim Meyering  <meyering@redhat.com>
1257
1258         maint.mk: three new prohibit_<HDR>_without_use rules
1259         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1260         (sc_prohibit_stdio-safer_without_use): Likewise.
1261         (sc_prohibit_xfreopen_without_use): Likewise.
1262
1263 2011-05-17  Jim Meyering  <meyering@redhat.com>
1264
1265         announce-gen: fail if the NEWS delta is empty
1266         If there's nothing noteworthy in NEWS, then either you forgot
1267         or you shouldn't be releasing.
1268         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1269
1270 2011-05-17  Pádraig Brady <P@draigBrady.com>
1271
1272         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1273         reserved symbols starting with double underscore from the check.
1274
1275 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1276
1277         intprops: add doc
1278         * doc/intprops.texi: New file, documenting intprops.
1279         * doc/gnulib.texi (Particular Modules): Include it.
1280
1281         verify: add doc to gnulib manual and fix example
1282         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1283         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1284         (Compile-time Assertions): Fix example so it can't overflow.
1285
1286 2011-05-17  Jim Meyering  <meyering@redhat.com>
1287
1288         warnings.m4: don't usurp save_CPPFLAGS variable name
1289         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1290
1291         doc: fix typo
1292         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1293
1294 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1295             Bruno Haible  <bruno@clisp.org>
1296
1297         doc: Tweak recent change.
1298         * README (Portability guidelines): Tweak new text.
1299         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1300         Interix 6.1.
1301
1302 2011-05-16  Eric Blake  <eblake@redhat.com>
1303
1304         inttypes: avoid autoconf warning
1305         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1306         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1307
1308 2011-05-16  Sam Steingold <sds@gnu.org>
1309         and Eric Blake  <eblake@redhat.com>
1310
1311         vc-list-files: accept multiple directory operands
1312         * build-aux/vc-list-files: Iterate over all remaining operands.
1313
1314 2011-05-16  Bruno Haible  <bruno@clisp.org>
1315
1316         Fix confusion regarding deprecated modules.
1317         * modules/calloc (Status, Notice): Mark module as deprecated, not
1318         obsolete.
1319         * modules/fnmatch-posix (Status, Notice): Likewise.
1320         * modules/getdate (Status, Notice): Likewise.
1321         * modules/getopt (Status, Notice): Likewise.
1322         * modules/malloc (Status, Notice): Likewise.
1323         * modules/pipe (Status, Notice): Likewise.
1324         * modules/realloc (Status, Notice): Likewise.
1325         * modules/rename-dest-slash (Status, Notice): Likewise.
1326         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1327         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1328         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1329         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1330         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1331
1332 2011-05-16  Bruno Haible  <bruno@clisp.org>
1333
1334         doc: List the target platforms.
1335         * doc/gnulib-intro.texi (Target Platforms): New section.
1336         * doc/gnulib.texi (Introduction): Update menu.
1337         * README (Portability guidelines): Refer to the new section. Update
1338         statement about oldest supported environment. Remove rationale why
1339         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1340         unportable C89 function.
1341         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1342         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1343
1344 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1345
1346         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1347
1348 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1349
1350         intprops-tests: new module
1351         * modules/intprops-tests, tests/test-intprops.c: New files.
1352
1353         intprops: add safe, portable integer overflow checking
1354         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1355         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1356         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1357         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1358         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1359         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1360         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1361         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1362         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1363         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1364         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1365
1366 2011-05-12  James Youngman  <jay@gnu.org>
1367
1368         Add a test for glibc's Bugzilla bug #12378.
1369         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1370         doesn't allow the literal matching of a lone "[" (which is
1371         required by POSIX).
1372         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1373
1374 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1375
1376         Sync glibc change fixing Bugzilla bug #12378.
1377         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1378         beginning and fall back to matching as normal character if the
1379         string ends before the matching ']' is found.  This is what POSIX
1380         requires.
1381
1382 2011-05-13  Eric Blake  <eblake@redhat.com>
1383
1384         getcwd-lgpl: relax test for FreeBSD
1385         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1386         issue.
1387         * tests/test-getcwd-lgpl.c (main): Relax test.
1388         Reported by Matthias Bolte.
1389
1390 2011-05-11  Eric Blake  <eblake@redhat.com>
1391
1392         test-fflush: silence compiler warning
1393         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1394
1395 2011-05-11  Bruno Haible  <bruno@clisp.org>
1396
1397         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1398         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1399         * modules/canonicalize (Depends-on): Add 'nocrash'.
1400         * modules/canonicalize-lgpl (Depends-on): Likewise.
1401         * doc/posix-functions/realpath.texi: Update platforms list.
1402         Reported by Ryan Schmidt <ryandesign@macports.org>.
1403
1404 2011-05-11  Bruno Haible  <bruno@clisp.org>
1405
1406         group-member: Declare function in <unistd.h>.
1407         * lib/unistd.in.h (group_member): New declaration.
1408         * lib/group-member.h: Remove file.
1409         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1410         * tests/test-unistd-c++.cc: Check signature of group_member.
1411         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1412         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1413         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1414         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1415         HAVE_GROUP_MEMBER.
1416         * modules/group-member (Files): Remove lib/group-member.h.
1417         (Depends-on): Add unistd. Specify conditions.
1418         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1419         (Include): Change to <unistd.h>.
1420         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1421         HAVE_GROUP_MEMBER.
1422         * NEWS: Mention the change.
1423         * lib/euidaccess.c: Don't include group-member.h.
1424
1425 2011-05-11  Bruno Haible  <bruno@clisp.org>
1426
1427         group-member: Document module.
1428         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1429         module.
1430
1431 2011-05-11  Bruno Haible  <bruno@clisp.org>
1432
1433         fclose: Fix mistake earlier today.
1434         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1435
1436 2011-05-11  Eric Blake  <eblake@redhat.com>
1437
1438         fclose: preserve fflush errors
1439         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1440         Reported by Jim Meyering.
1441
1442         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1443         * build-aux/bootstrap (check_versions): When no specific version
1444         is required, merely check that the app produces an exit status
1445         that indicates its existence.
1446
1447         maint.mk: drop redundant check
1448         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1449         the same but better.
1450
1451 2011-05-11  Bruno Haible  <bruno@clisp.org>
1452
1453         fclose: Fix possible link error.
1454         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1455         unregister_shadow_fd. Improve comments.
1456         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1457         Eric Blake.
1458
1459 2011-05-11  Jim Meyering  <meyering@redhat.com>
1460
1461         maint.mk: improve "can not" detection and generalize rule name
1462         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1463         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1464         Use the same technique as in sc_prohibit_doubled_word, so that
1465         we recognize "can not" also when the words are separated by a newline.
1466         Suggested by Eric Blake.
1467         (perl_filename_lineno_text_): Define.  Factored out of...
1468         (prohibit_doubled_word_): ...here.  Use the new definition.
1469         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1470         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1471         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1472
1473 2011-05-10  Eric Blake  <eblake@redhat.com>
1474
1475         fclose: avoid double close race when possible
1476         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1477         all but WINDOWS_SOCKETS.
1478
1479 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1480
1481         openat: correct new comment
1482         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1483
1484 2011-05-10  Jim Meyering  <meyering@redhat.com>
1485
1486         openat: add comments
1487         * lib/openat-proc.c (openat_proc_name): Add comments,
1488         mostly from Eric Blake.
1489
1490 2011-05-09  Eric Blake  <eblake@redhat.com>
1491
1492         openat: reduce syscalls in first probe of /proc
1493         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1494         be a directory.  Simplify the probe for .. bugs.
1495         * modules/openat (Depends-on): Drop same-inode.
1496         Reported by Bastien ROUCARIES.
1497
1498 2011-05-09  Jim Meyering  <meyering@redhat.com>
1499
1500         maint.mk: change semantics/name of tight_scope variables
1501         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1502         Rename variables to align with semantics that make them more useful.
1503
1504         maint.mk: tweak new rule's name not to impinge
1505         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1506         (sc_tight_scope): Use new rule name rather than $@-0.
1507
1508         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1509         * top/maint.mk (sc_tight_scope): New rule.
1510         (sc_tight_scope-0): New rule, ifdef'd out.
1511         (_gl_TS_dir): Default.
1512         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1513         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1514
1515 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1516
1517         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1518         Haible <bruno@clisp.org>.
1519
1520 2011-05-08  Bruno Haible  <bruno@clisp.org>
1521
1522         Comments.
1523         * m4/isnanf.m4: Add comment.
1524         * m4/isnanl.m4: Likewise.
1525
1526 2011-05-08  Bruno Haible  <bruno@clisp.org>
1527
1528         glob: Remove obsolete macro.
1529         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1530
1531 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1532
1533         intprops: Sun C 5.11 supports __typeof__
1534         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1535         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1536         which is new.
1537         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1538
1539         intprops: switch to usual gnulib indenting and naming
1540         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1541         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1542
1543         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1544
1545 2011-05-08  Jim Meyering  <meyering@redhat.com>
1546
1547         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1548         * top/maint.mk (release-prep): Use make's --no-print-directory
1549         option when generating the announcement.  This eliminates the
1550         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1551         generated announcement template.
1552
1553 2011-05-08  Bruno Haible  <bruno@clisp.org>
1554
1555         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1556         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1557         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1558
1559 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1560
1561         ignore-value, verify: Omit include files from lib_SOURCES.
1562         * modules/ignore-value, modules/verify (Makefile.am):
1563         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1564         that leads Automake to duplicate use of am__objects_... variables
1565         in Makefile.in.  See
1566         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1567
1568 2011-05-07  Bruno Haible  <bruno@clisp.org>
1569
1570         fclose: Simplify autoconf macro.
1571         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1572         defined.
1573
1574 2011-05-07  Bruno Haible  <bruno@clisp.org>
1575
1576         canonicalize-lgpl: Fix autoconf macro ordering bug.
1577         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1578         gl_STDLIB_H_DEFAULTS.
1579
1580 2011-05-06  Eric Blake  <eblake@redhat.com>
1581
1582         maintainer-makefile: make sc_po_check easier to tune
1583         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1584         to probe for strings, such as an alternate location for gnulib.
1585
1586         fclose: guarantee behavior on seekable stdin
1587         * modules/fclose (Depends-on): Add fflush.
1588         * doc/posix-functions/fclose.texi (fclose): Document this.
1589         * tests/test-fclose.c (main): Make test for this unconditional.
1590
1591 2011-05-06  Bruno Haible  <bruno@clisp.org>
1592
1593         fflush, fpurge: Relicense under LGPLv2+.
1594         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1595         * modules/fpurge (License): Likewise.
1596         With permission from Eric Blake and Jim Meyering.
1597         Suggested by Eric Blake.
1598
1599 2011-05-06  Karl Berry  <karl@gnu.org>
1600
1601         * MODULES.html.sh (func_all_modules): remove exit.
1602
1603 2011-05-06  Jim Meyering  <meyering@redhat.com>
1604
1605         maint.mk: use info-gnu@ as the default only for a stable release
1606         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1607         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1608         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1609         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1610
1611 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1612
1613         assert-h: new module, which supports C1X-style static_assert
1614         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1615         * lib/verify.h: Revamp so that this can be copied into assert.h,
1616         while retaining the ability to use it standalone as before.
1617         Rename private identifiers so as not to encroach on the
1618         standard C namespace, since this is now used by assert.h.
1619         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1620         the old verify_true.
1621         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1622         the old verify_true.  Use _GL_VERIFY_TYPE.
1623         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1624         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1625         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1626         defined when this file is copied into the replacement assert.h.
1627         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1628         and _Static_assert is not built in.
1629         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1630         defined, and use the new macros mentioned above.
1631         * doc/posix-headers/assert.texi: Document this.
1632
1633 2011-05-05  Bruno Haible  <bruno@clisp.org>
1634
1635         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1636         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1637         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1638         gl_REPLACE_FCLOSE here.
1639         * modules/fflush (Depends-on): Remove fclose.
1640         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1641         combination with module 'fclose'.
1642
1643 2011-05-05  Bruno Haible  <bruno@clisp.org>
1644
1645         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1646         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1647         gl_FUNC_FFLUSH.
1648         (gl_FUNC_FFLUSH): Use it.
1649         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1650         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1651         gl_REPLACE_FSEEKO here.
1652
1653 2011-05-05  Bruno Haible  <bruno@clisp.org>
1654
1655         tzset: Relicense under LGPL.
1656         * modules/tzset (License): Change to LGPL.
1657         No agreement needed; it's a no-op.
1658
1659         strtoimax, strtoumax: Relicense under LGPL.
1660         * modules/strtoimax (License): Change to LGPL.
1661         * modules/strtoumax (License): Likewise.
1662         With permission from Jim Meyering, Paul Eggert:
1663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1665
1666         getgroups: Relicense under LGPL.
1667         * modules/getgroups (License): Change to LGPL.
1668         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1672
1673         nanosleep: Relicense under LGPL.
1674         * modules/nanosleep (License): Change to LGPL.
1675         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1676         Haible:
1677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1681
1682         futimens: Relicense under LGPL.
1683         * modules/futimens (License): Change to LGPL.
1684         With permission from Eric Blake:
1685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1686
1687         fflush: Relicense under LGPL.
1688         * modules/fflush (License): Change to LGPL.
1689         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1693
1694         tmpfile: Relicense under LGPL.
1695         * modules/tmpfile (License): Change to LGPL.
1696         With permission from Ben Pfaff:
1697         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1698
1699         isfinite: Relicense under LGPL.
1700         * modules/isfinite (License): Change to LGPL.
1701         With permission from Ben Pfaff, Bruno Haible:
1702         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1704
1705         acosl..tanl: Relicense under LGPL.
1706         * modules/acosl (License): Change to LGPL.
1707         * modules/asinl (License): Likewise.
1708         * modules/atanl (License): Likewise.
1709         * modules/cosl (License): Likewise.
1710         * modules/expl (License): Likewise.
1711         * modules/logl (License): Likewise.
1712         * modules/sinl (License): Likewise.
1713         * modules/sqrtl (License): Likewise.
1714         * modules/tanl (License): Likewise.
1715         Source code originally from glibc and Paolo Bonzini. Agreements:
1716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1718
1719 2011-05-05  Bruno Haible  <bruno@clisp.org>
1720
1721         signal: Define sighandler_t.
1722         * lib/signal.in.h (sighandler_t): New type.
1723         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1724         whether sighandler_t is defined.
1725         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1726         * modules/signal (Depends-on): Add extensions.
1727         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1728         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1729         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1730
1731 2011-05-05  Eric Blake  <eblake@redhat.com>
1732
1733         maint: remove useless REPLACE_*_H macros
1734         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1735         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1736         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1737         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1738         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1739         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1740         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1741         * m4/btowc.m4: Update callers.
1742         * m4/dirfd.m4: Likewise.
1743         * m4/duplocale.m4: Likewise.
1744         * m4/fchdir.m4: Likewise.
1745         * m4/fdopendir.m4: Likewise.
1746         * m4/inet_ntop.m4: Likewise.
1747         * m4/inet_pton.m4: Likewise.
1748         * m4/ioctl.m4: Likewise.
1749         * m4/mbrlen.m4: Likewise.
1750         * m4/mbrtowc.m4: Likewise.
1751         * m4/mbsinit.m4: Likewise.
1752         * m4/mbsnrtowcs.m4: Likewise.
1753         * m4/mbsrtowcs.m4: Likewise.
1754         * m4/poll.m4: Likewise.
1755         * m4/setlocale.m4: Likewise.
1756         * m4/wcrtomb.m4: Likewise.
1757         * m4/wcsnrtombs.m4: Likewise.
1758         * m4/wcsrtombs.m4: Likewise.
1759         * m4/wctob.m4: Likewise.
1760         * m4/wcwidth.m4: Likewise.
1761         * modules/posix_spawn: Likewise.
1762         * modules/posix_spawn_file_actions_addclose: Likewise.
1763         * modules/posix_spawn_file_actions_adddup2: Likewise.
1764         * modules/posix_spawn_file_actions_addopen: Likewise.
1765         * modules/posix_spawn_file_actions_destroy: Likewise.
1766         * modules/posix_spawn_file_actions_init: Likewise.
1767         * modules/posix_spawnattr_destroy: Likewise.
1768         * modules/posix_spawnattr_getflags: Likewise.
1769         * modules/posix_spawnattr_getpgroup: Likewise.
1770         * modules/posix_spawnattr_getschedparam: Likewise.
1771         * modules/posix_spawnattr_getschedpolicy: Likewise.
1772         * modules/posix_spawnattr_getsigdefault: Likewise.
1773         * modules/posix_spawnattr_getsigmask: Likewise.
1774         * modules/posix_spawnattr_init: Likewise.
1775         * modules/posix_spawnattr_setflags: Likewise.
1776         * modules/posix_spawnattr_setpgroup: Likewise.
1777         * modules/posix_spawnattr_setschedparam: Likewise.
1778         * modules/posix_spawnattr_setschedpolicy: Likewise.
1779         * modules/posix_spawnattr_setsigdefault: Likewise.
1780         * modules/posix_spawnattr_setsigmask: Likewise.
1781         * modules/posix_spawnp: Likewise.
1782
1783 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1784
1785         Add option to do-release-commit-and-tag to specify branch.
1786         * build-aux/do-release-commit-and-tag: Add --branch.
1787
1788 2011-05-03  Bruno Haible  <bruno@clisp.org>
1789
1790         Avoid unnecessary compilation units, through conditional dependencies.
1791         * modules/accept (Depends-on): Add conditions to the dependencies.
1792         * modules/acosl (Depends-on): Likewise.
1793         * modules/argz (Depends-on): Likewise.
1794         * modules/asinl (Depends-on): Likewise.
1795         * modules/atanl (Depends-on): Likewise.
1796         * modules/atoll (Depends-on): Likewise.
1797         * modules/bind (Depends-on): Likewise.
1798         * modules/btowc (Depends-on): Likewise.
1799         * modules/canonicalize-lgpl (Depends-on): Likewise.
1800         * modules/ceil (Depends-on): Likewise.
1801         * modules/ceilf (Depends-on): Likewise.
1802         * modules/ceill (Depends-on): Likewise.
1803         * modules/chdir-long (Depends-on): Likewise.
1804         * modules/chown (Depends-on): Likewise.
1805         * modules/close (Depends-on): Likewise.
1806         * modules/connect (Depends-on): Likewise.
1807         * modules/cosl (Depends-on): Likewise.
1808         * modules/dirfd (Depends-on): Likewise.
1809         * modules/dprintf (Depends-on): Likewise.
1810         * modules/dprintf-posix (Depends-on): Likewise.
1811         * modules/error (Depends-on): Likewise.
1812         * modules/euidaccess (Depends-on): Likewise.
1813         * modules/expl (Depends-on): Likewise.
1814         * modules/faccessat (Depends-on): Likewise.
1815         * modules/fchdir (Depends-on): Likewise.
1816         * modules/fclose (Depends-on): Likewise.
1817         * modules/fcntl (Depends-on): Likewise.
1818         * modules/fdopendir (Depends-on): Likewise.
1819         * modules/fflush (Depends-on): Likewise.
1820         * modules/floor (Depends-on): Likewise.
1821         * modules/floorf (Depends-on): Likewise.
1822         * modules/floorl (Depends-on): Likewise.
1823         * modules/fnmatch (Depends-on): Likewise.
1824         * modules/fopen (Depends-on): Likewise.
1825         * modules/fprintf-posix (Depends-on): Likewise.
1826         * modules/frexp (Depends-on): Likewise.
1827         * modules/frexp-nolibm (Depends-on): Likewise.
1828         * modules/frexpl (Depends-on): Likewise.
1829         * modules/frexpl-nolibm (Depends-on): Likewise.
1830         * modules/fseek (Depends-on): Likewise.
1831         * modules/fsusage (Depends-on): Likewise.
1832         * modules/ftell (Depends-on): Likewise.
1833         * modules/ftello (Depends-on): Likewise.
1834         * modules/futimens (Depends-on): Likewise.
1835         * modules/getcwd (Depends-on): Likewise.
1836         * modules/getcwd-lgpl (Depends-on): Likewise.
1837         * modules/getdelim (Depends-on): Likewise.
1838         * modules/getdomainname (Depends-on): Likewise.
1839         * modules/getgroups (Depends-on): Likewise.
1840         * modules/gethostname (Depends-on): Likewise.
1841         * modules/getline (Depends-on): Likewise.
1842         * modules/getlogin_r (Depends-on): Likewise.
1843         * modules/getopt-posix (Depends-on): Likewise.
1844         * modules/getpeername (Depends-on): Likewise.
1845         * modules/getsockname (Depends-on): Likewise.
1846         * modules/getsockopt (Depends-on): Likewise.
1847         * modules/getsubopt (Depends-on): Likewise.
1848         * modules/getusershell (Depends-on): Likewise.
1849         * modules/glob (Depends-on): Likewise.
1850         * modules/grantpt (Depends-on): Likewise.
1851         * modules/iconv_open (Depends-on): Likewise.
1852         * modules/iconv_open-utf (Depends-on): Likewise.
1853         * modules/inet_ntop (Depends-on): Likewise.
1854         * modules/inet_pton (Depends-on): Likewise.
1855         * modules/ioctl (Depends-on): Likewise.
1856         * modules/isapipe (Depends-on): Likewise.
1857         * modules/isfinite (Depends-on): Likewise.
1858         * modules/isinf (Depends-on): Likewise.
1859         * modules/lchown (Depends-on): Likewise.
1860         * modules/ldexpl (Depends-on): Likewise.
1861         * modules/link (Depends-on): Likewise.
1862         * modules/linkat (Depends-on): Likewise.
1863         * modules/listen (Depends-on): Likewise.
1864         * modules/logl (Depends-on): Likewise.
1865         * modules/lstat (Depends-on): Likewise.
1866         * modules/mbrlen (Depends-on): Likewise.
1867         * modules/mbrtowc (Depends-on): Likewise.
1868         * modules/mbsinit (Depends-on): Likewise.
1869         * modules/mbsnrtowcs (Depends-on): Likewise.
1870         * modules/mbsrtowcs (Depends-on): Likewise.
1871         * modules/mbtowc (Depends-on): Likewise.
1872         * modules/memcmp (Depends-on): Likewise.
1873         * modules/mkdir (Depends-on): Likewise.
1874         * modules/mkdtemp (Depends-on): Likewise.
1875         * modules/mkfifo (Depends-on): Likewise.
1876         * modules/mkfifoat (Depends-on): Likewise.
1877         * modules/mknod (Depends-on): Likewise.
1878         * modules/mkostemp (Depends-on): Likewise.
1879         * modules/mkostemps (Depends-on): Likewise.
1880         * modules/mkstemp (Depends-on): Likewise.
1881         * modules/mkstemps (Depends-on): Likewise.
1882         * modules/mktime (Depends-on): Likewise.
1883         * modules/nanosleep (Depends-on): Likewise.
1884         * modules/open (Depends-on): Likewise.
1885         * modules/openat (Depends-on): Likewise.
1886         * modules/perror (Depends-on): Likewise.
1887         * modules/poll (Depends-on): Likewise.
1888         * modules/popen (Depends-on): Likewise.
1889         * modules/posix_spawn (Depends-on): Likewise.
1890         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1891         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1892         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1893         * modules/posix_spawnp (Depends-on): Likewise.
1894         * modules/pread (Depends-on): Likewise.
1895         * modules/printf-posix (Depends-on): Likewise.
1896         * modules/ptsname (Depends-on): Likewise.
1897         * modules/putenv (Depends-on): Likewise.
1898         * modules/pwrite (Depends-on): Likewise.
1899         * modules/readline (Depends-on): Likewise.
1900         * modules/readlink (Depends-on): Likewise.
1901         * modules/readlinkat (Depends-on): Likewise.
1902         * modules/recv (Depends-on): Likewise.
1903         * modules/recvfrom (Depends-on): Likewise.
1904         * modules/regex (Depends-on): Likewise.
1905         * modules/remove (Depends-on): Likewise.
1906         * modules/rename (Depends-on): Likewise.
1907         * modules/renameat (Depends-on): Likewise.
1908         * modules/rmdir (Depends-on): Likewise.
1909         * modules/round (Depends-on): Likewise.
1910         * modules/roundf (Depends-on): Likewise.
1911         * modules/roundl (Depends-on): Likewise.
1912         * modules/rpmatch (Depends-on): Likewise.
1913         * modules/select (Depends-on): Likewise.
1914         * modules/send (Depends-on): Likewise.
1915         * modules/sendto (Depends-on): Likewise.
1916         * modules/setenv (Depends-on): Likewise.
1917         * modules/setlocale (Depends-on): Likewise.
1918         * modules/setsockopt (Depends-on): Likewise.
1919         * modules/shutdown (Depends-on): Likewise.
1920         * modules/sigaction (Depends-on): Likewise.
1921         * modules/signbit (Depends-on): Likewise.
1922         * modules/sigprocmask (Depends-on): Likewise.
1923         * modules/sinl (Depends-on): Likewise.
1924         * modules/sleep (Depends-on): Likewise.
1925         * modules/snprintf (Depends-on): Likewise.
1926         * modules/snprintf-posix (Depends-on): Likewise.
1927         * modules/socket (Depends-on): Likewise.
1928         * modules/sprintf-posix (Depends-on): Likewise.
1929         * modules/sqrtl (Depends-on): Likewise.
1930         * modules/stat (Depends-on): Likewise.
1931         * modules/strchrnul (Depends-on): Likewise.
1932         * modules/strdup-posix (Depends-on): Likewise.
1933         * modules/strerror (Depends-on): Likewise.
1934         * modules/strerror_r-posix (Depends-on): Likewise.
1935         * modules/strndup (Depends-on): Likewise.
1936         * modules/strnlen (Depends-on): Likewise.
1937         * modules/strptime (Depends-on): Likewise.
1938         * modules/strsep (Depends-on): Likewise.
1939         * modules/strsignal (Depends-on): Likewise.
1940         * modules/strstr-simple (Depends-on): Likewise.
1941         * modules/strtod (Depends-on): Likewise.
1942         * modules/strtoimax (Depends-on): Likewise.
1943         * modules/strtok_r (Depends-on): Likewise.
1944         * modules/strtoumax (Depends-on): Likewise.
1945         * modules/symlink (Depends-on): Likewise.
1946         * modules/symlinkat (Depends-on): Likewise.
1947         * modules/tanl (Depends-on): Likewise.
1948         * modules/tcgetsid (Depends-on): Likewise.
1949         * modules/tmpfile (Depends-on): Likewise.
1950         * modules/trunc (Depends-on): Likewise.
1951         * modules/truncf (Depends-on): Likewise.
1952         * modules/truncl (Depends-on): Likewise.
1953         * modules/uname (Depends-on): Likewise.
1954         * modules/unlink (Depends-on): Likewise.
1955         * modules/unlockpt (Depends-on): Likewise.
1956         * modules/unsetenv (Depends-on): Likewise.
1957         * modules/usleep (Depends-on): Likewise.
1958         * modules/utimensat (Depends-on): Likewise.
1959         * modules/vasprintf (Depends-on): Likewise.
1960         * modules/vdprintf (Depends-on): Likewise.
1961         * modules/vdprintf-posix (Depends-on): Likewise.
1962         * modules/vfprintf-posix (Depends-on): Likewise.
1963         * modules/vprintf-posix (Depends-on): Likewise.
1964         * modules/vsnprintf (Depends-on): Likewise.
1965         * modules/vsnprintf-posix (Depends-on): Likewise.
1966         * modules/vsprintf-posix (Depends-on): Likewise.
1967         * modules/wcrtomb (Depends-on): Likewise.
1968         * modules/wcscasecmp (Depends-on): Likewise.
1969         * modules/wcscspn (Depends-on): Likewise.
1970         * modules/wcsdup (Depends-on): Likewise.
1971         * modules/wcsncasecmp (Depends-on): Likewise.
1972         * modules/wcsnrtombs (Depends-on): Likewise.
1973         * modules/wcspbrk (Depends-on): Likewise.
1974         * modules/wcsrtombs (Depends-on): Likewise.
1975         * modules/wcsspn (Depends-on): Likewise.
1976         * modules/wcsstr (Depends-on): Likewise.
1977         * modules/wcstok (Depends-on): Likewise.
1978         * modules/wcswidth (Depends-on): Likewise.
1979         * modules/wctob (Depends-on): Likewise.
1980         * modules/wctomb (Depends-on): Likewise.
1981         * modules/wctype (Depends-on): Likewise.
1982         * modules/wcwidth (Depends-on): Likewise.
1983         * modules/write (Depends-on): Likewise.
1984
1985 2011-05-03  Bruno Haible  <bruno@clisp.org>
1986
1987         Support for conditional dependencies.
1988         * doc/gnulib.texi (Module description): Document the syntax of
1989         conditional dependencies.
1990         * gnulib-tool: New option --conditional-dependencies.
1991         (func_usage): Document it.
1992         (cond_dependencies): New variable.
1993         (func_get_automake_snippet_conditional,
1994         func_get_automake_snippet_unconditional): New functions, extracted from
1995         func_get_automake_snippet.
1996         (func_get_automake_snippet): Use them.
1997         (sed_first_32_chars): New variable.
1998         (func_module_shellfunc_name): New function.
1999         (func_module_shellvar_name): New function.
2000         (func_module_conditional_name): New function.
2001         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2002         func_cond_module_condition): New functions.
2003         (func_modules_transitive_closure): Add support for conditional
2004         dependencies.
2005         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2006         conditional automake snippet in an automake conditional.
2007         (func_emit_autoconf_snippets): Emit shell functions that contain the
2008         code for conditional modules.
2009         (func_import, func_create_testdir): Update specification.
2010
2011 2011-05-03  Eric Blake  <eblake@redhat.com>
2012
2013         test-getaddrinfo: report error information
2014         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2015
2016 2011-05-03  Jim Meyering  <meyering@redhat.com>
2017
2018         bootstrap: avoid build failure when $GZIP is set
2019         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2020         program name.  If defined at all, it is supposed to list gzip options.
2021         Reported by Alan Curry in http://debbugs.gnu.org/8609
2022
2023 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2024
2025         readme-release: new module with release instructions
2026         * modules/readme-release: New module.
2027         * top/README-release: New file, from coreutils, grep, diffutils.
2028         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2029
2030 2011-05-02  Eric Blake  <eblake@redhat.com>
2031
2032         fflush: also replace fclose when fixing fflush
2033         * modules/fflush (Depends-on): Add fclose.
2034         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2035         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2036         memstreams with no backing fd.
2037         * doc/posix-functions/fclose.texi (fclose): Document the use of
2038         fflush module to fix the bug.
2039         * tests/test-fclose.c (main): Relax test when fclose is used in
2040         isolation.
2041
2042         fclose: add some tests
2043         * modules/fclose-tests: New test module.
2044         * tests/test-fclose.c: New file.
2045         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2046
2047         fclose: reduced dependencies
2048         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2049         simpler lseek.
2050         * lib/fclose.c (rpl_fclose): Likewise.
2051         Reported by Simon Josefsson.
2052
2053         exit: drop remaining clients
2054         * modules/argmatch (Depends-on): Replace exit with stdlib.
2055         * modules/copy-file (Depends-on): Likewise.
2056         * modules/execute (Depends-on): Likewise.
2057         * modules/exitfail (Depends-on): Likewise.
2058         * modules/obstack (Depends-on): Likewise.
2059         * modules/pagealign_alloc (Depends-on): Likewise.
2060         * modules/pipe-filter-gi (Depends-on): Likewise.
2061         * modules/pipe-filter-ii (Depends-on): Likewise.
2062         * modules/savewd (Depends-on): Likewise.
2063         * modules/spawn-pipe (Depends-on): Likewise.
2064         * modules/wait-process (Depends-on): Likewise.
2065         * modules/xsetenv (Depends-on): Likewise.
2066         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2067         * modules/git-merge-changelog (Depends-on): Likewise.
2068         * modules/long-options (Depends-on): Likewise.
2069         * modules/pt_chown (Depends-on): Likewise.
2070         * modules/sysexits (Depends-on): Likewise.
2071
2072         freading: relax license from LGPLv3+ to LGPLv2+
2073         * modules/freading (License): Relax LGPL version.
2074
2075 2011-05-02  Bruno Haible  <bruno@clisp.org>
2076
2077         fchdir: Remove unused dependencies.
2078         * modules/fchdir (Depends-on): Remove include_next.
2079
2080 2011-05-02  Bruno Haible  <bruno@clisp.org>
2081
2082         gnulib-tool: Refactor.
2083         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2084         from func_emit_autoconf_snippets.
2085         (func_emit_autoconf_snippets): Use it.
2086
2087 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2088
2089         * NEWS: Document removal of 'exit'.
2090         * modules/exit: Remove file.
2091
2092 2011-05-01  Bruno Haible  <bruno@clisp.org>
2093
2094         Update DEPENDENCIES.
2095         * DEPENDENCIES (gettext): Recommend the newest release.
2096         Reported by Simon Josefsson.
2097
2098 2011-05-01  Bruno Haible  <bruno@clisp.org>
2099
2100         gnulib-tool: Reduce code duplication.
2101         * gnulib-tool (func_emit_autoconf_snippets): New function.
2102         (func_import, func_create_testdir): Use it.
2103
2104 2011-04-30  Eric Blake  <eblake@redhat.com>
2105
2106         fclose: don't fail on non-seekable input stream
2107         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2108         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2109         since fflush is allowed to fail in that case.
2110
2111 2011-04-30  Bruno Haible  <bruno@clisp.org>
2112
2113         dup3: cleanup
2114         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2115
2116 2011-04-30  Bruno Haible  <bruno@clisp.org>
2117
2118         netdb: Make it work in C++ mode.
2119         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2120         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2121         module.
2122         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2123         gl_MODULE_INDICATOR_FOR_TESTS.
2124         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2125         * modules/netdb-c++-tests: New file.
2126         * tests/test-netdb-c++.cc: New file.
2127
2128 2011-04-30  Bruno Haible  <bruno@clisp.org>
2129
2130         New modules 'vfscanf', 'vscanf'.
2131         * modules/vfscanf: New file.
2132         * modules/vscanf: New file.
2133         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2134         here.
2135         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2136         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2137
2138 2011-04-30  Bruno Haible  <bruno@clisp.org>
2139
2140         passfd: Add comments.
2141         * lib/passfd.c: Add comments about platforms.
2142
2143 2011-04-30  Bruno Haible  <bruno@clisp.org>
2144
2145         sys_uio: Make <sys/uio.h> self-contained.
2146         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2147         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2148
2149 2011-04-30  Bruno Haible  <bruno@clisp.org>
2150
2151         sys_socket: Ensure 'struct iovec' definition.
2152         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2153         <sys/socket.h>.
2154         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2155
2156 2011-04-30  Bruno Haible  <bruno@clisp.org>
2157
2158         sys_uio: Protect definition of 'struct iovec'.
2159         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2160         it as a C struct.
2161
2162 2011-04-30  Bruno Haible  <bruno@clisp.org>
2163
2164         manywarnings: fix indentation
2165         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2166
2167 2011-04-30  Pádraig Brady <P@draigBrady.com>
2168
2169         manywarnings: add -Wno-missing-field-initializers if needed.
2170         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2171         option if it's needed to allow initialization with { 0, }
2172
2173 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2174
2175         announce-gen: cosmetic improvement
2176         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2177
2178 2011-04-29  Jim Meyering  <meyering@redhat.com>
2179
2180         vc-list-files: indent with spaces, not TABs
2181         * build-aux/vc-list-files: Convert leading TABs to spaces,
2182         to match the style of most other files in gnulib.
2183
2184         announce-gen: indent with spaces, not TABs
2185         * build-aux/announce-gen: Convert all TABs to spaces, to match
2186         the style of most other files in gnulib.
2187
2188 2011-04-29  Eric Blake  <eblake@redhat.com>
2189
2190         quotearg: avoid uninitialized variable use
2191         * lib/quotearg.c (quoting_options_from_style): Initialize
2192         remaining fields, and ensure that custom styles are only used via
2193         quoting_options rather than quoting_style.
2194
2195 2011-04-29  Jim Meyering  <meyering@redhat.com>
2196
2197         maint.mk: remove unused VC-tag variable
2198         * top/maint.mk (VC-tag): Remove unused variable.
2199
2200 2011-04-29  Bruno Haible  <bruno@clisp.org>
2201
2202         netdb: fix gai_strerror replacements
2203         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2204         * modules/netdb: Substitute it.
2205
2206 2011-04-29  Jim Meyering  <meyering@redhat.com>
2207
2208         test-getcwd.c: avoid new set-but-not-used warning
2209         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2210         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2211         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2212         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2213
2214         test-hash.c: avoid a new shadowing warning
2215         * tests/test-hash.c (main): Don't shadow "dup".
2216
2217 2011-04-28  Eric Blake  <eblake@redhat.com>
2218
2219         getaddrinfo: fix gai_strerror signature
2220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2221         and work around mingw with UNICODE defined.
2222         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2223         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2224         * modules/netdb (Makefile.am): Substitute it.
2225         * lib/netdb.in.h (gai_strerror): Declare replacement.
2226         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2227         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2228         the fix.
2229
2230         getsockopt: avoid compiler warning
2231         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2232         Reported by Matthias Bolte.
2233
2234         tests: drop unused link dependency
2235         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2236         * modules/dirent-safer-tests (Makefile.am): Likewise.
2237         * modules/fdopendir-tests (Makefile.am): Likewise.
2238         * modules/mkfifoat-tests (Makefile.am): Likewise.
2239         * modules/openat-safer-tests (Makefile.am): Likewise.
2240         * modules/openat-tests (Makefile.am): Likewise.
2241         * modules/readlinkat-tests (Makefile.am): Likewise.
2242         * modules/symlinkat-tests (Makefile.am): Likewise.
2243         * modules/linkat-tests (Makefile.am): Likewise.
2244         (Depends-on): Switch to filenamecat-lgpl.
2245         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2246         LIBINTL.
2247         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2248         * tests/test-linkat.c (main): Don't require xalloc.
2249
2250         hash, mgetgroups: drop xalloc dependency
2251         * lib/hash.c (includes): Adjust includes.
2252         * lib/mgetgroups.c (includes): Likewise.
2253         (xgetgroups): Move...
2254         * lib/xgetgroups.c: ...to new file.
2255         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2256         * modules/xgetgroups: New file, split from...
2257         * modules/mgetgroups: ...here.
2258         (Depends-on): Add xalloc-oversized.
2259         * modules/hash (Depends-on): Likewise.
2260         * modules/hash-tests (Depends-on): Drop xalloc.
2261         (test_hash_LDADD): Drop unused library.
2262         * tests/test-hash.c (main): Break xalloc dependency.
2263         (includes): Drop unused include.
2264
2265         xalloc-oversized: new module
2266         * modules/xalloc-oversized: New module.
2267         * modules/xalloc (Depends-on): Add it.
2268         * lib/xalloc.h (xalloc_oversized): Move...
2269         * lib/xalloc-oversized.h: ...into new file.
2270
2271         utimecmp: drop dependency on xmalloc
2272         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2273         due to memory pressure.
2274         * modules/utimecmp (Depends-on): Drop xalloc.
2275
2276 2011-04-27  Eric Blake  <eblake@redhat.com>
2277
2278         getcwd: fix mingw bugs
2279         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2280         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2281         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2282
2283 2011-04-27  Bruno Haible  <bruno@clisp.org>
2284
2285         mkstemps: Ensure declaration on MacOS X 10.5.
2286         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2287         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2288         MacOS X.
2289
2290 2011-04-27  Bruno Haible  <bruno@clisp.org>
2291
2292         mkstemp: More documentation.
2293         * doc/posix-functions/mkstemp.texi: Document header file problem on
2294         MacOS X.
2295
2296 2011-04-27  Bruno Haible  <bruno@clisp.org>
2297
2298         mkstemp: Tweak configure message when cross-compiling.
2299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2300         result as a guess.
2301
2302 2011-04-27  Bruno Haible  <bruno@clisp.org>
2303
2304         clean-temp: Clarify what it does.
2305         * lib/clean-temp.h: Add more comments.
2306         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2307         module.
2308         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2309         * doc/glibc-functions/mkstemps.texi: Likewise.
2310         * doc/glibc-functions/mkostemps.texi: Likewise.
2311
2312 2011-04-27  Eric Blake  <eblake@redhat.com>
2313
2314         fchdir: avoid extra chdir and fix test
2315         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2316         getcwd-lgpl.
2317         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2318         have to be canonical.
2319         (canonicalize_file_name): Drop unused macro.
2320         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2321
2322         filenamecat-lgpl: fix licence
2323         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2324         when it was first created.
2325
2326         linkat, renameat: add missing dependency
2327         * modules/linkat (Depends-on): Require getcwd-lgpl.
2328         * modules/renameat (Depends-on): Likewise.
2329
2330         tests: reduce dependencies
2331         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2332         * tests/test-renameat.c (main): Likewise.
2333         * modules/linkat-tests (Depends-on): Relax dependency.
2334         * modules/renameat-tests (Depends-on): Likewise.
2335         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2336         dependency explicit.
2337
2338         save-cwd: reduce default dependency
2339         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2340         * lib/save-cwd.c: Update comments.
2341         * NEWS: Document the semantic change.
2342
2343         getcwd: enhance tests
2344         * tests/test-getcwd-lgpl.c: New file, taken from...
2345         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2346         repeat long path stress tests from m4 probe.
2347         * modules/getcwd-lgpl-tests: New module.
2348         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2349         * m4/getcwd-abort-bug.m4: Update comment.
2350         * m4/getcwd-path-max.m4: Likewise.
2351
2352         getcwd-lgpl: new module
2353         * modules/getcwd-lgpl: New module.
2354         * lib/getcwd-lgpl.c: New file.
2355         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2356         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2357         * modules/getcwd (configure.ac): Set C witness.
2358         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2359
2360         getcwd: tweak comments
2361         * m4/getcwd-abort-bug.m4: Fix comments.
2362         * m4/getcwd-path-max.m4: Likewise.
2363         * m4/getcwd.m4: Likewise.
2364
2365 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2366         and Eric Blake  <eblake@redhat.com>
2367
2368         mkstemp: replace if system version uses wrong permissions
2369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2370         read/write mode bits set in file created by mkstemp.
2371         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2372
2373 2011-04-27  Eric Blake  <eblake@redhat.com>
2374
2375         passfd: avoid compiler warning
2376         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2377         Reported by Laine Stump.
2378
2379 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2380
2381         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2382         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2383
2384 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2385         and Eric Blake  <eblake@redhat.com>
2386
2387         mkstemp: mention clean-temp module
2388         * lib/mkstemp.c: Add comment.
2389         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2390
2391 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2392
2393         inttypes: also provide default values for 32-bit tests
2394         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2395         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2396
2397 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2398
2399         strtoumax: remove dependency on strtoimax
2400         This is like the strtoull change of yesterday.
2401         * modules/strtoumax (Files): Add lib/strtoimax.c.
2402         (Depends-on): Remove strtoimax and add verify.
2403
2404         inttypes-incomplete: new module
2405         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2406         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2407         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2408         of gl_INTTYPES_H.
2409         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2410         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2411         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2412         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2413         * modules/strtoumax, modules/xstrtol (Depends-on):
2414         Depend on inttypes-incomplete, not inttypes.
2415         * modules/inttypes-incomplete: New module, containing the contents
2416         of the old modules/inttypes module, except that the Files: section
2417         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2418         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2419         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2420         (Depends-on): Depend only on inttypes-incomplete.
2421         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2422
2423         inttypes: omit now-redundant strtoimax and strtoumax work
2424         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2425         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2426
2427         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2428         This supports apps that need pointers to strtoimax and strtoumax,
2429         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2430         nonexistent functions.  See
2431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2432         et seq.
2433         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2434         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2435         a macro.
2436         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2437
2438 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2439
2440         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2441
2442 2011-04-25  Bruno Haible  <bruno@clisp.org>
2443
2444         strtol, strtoul: Mark modules as obsolete.
2445         * modules/strtol (Status, Notice): New sections.
2446         * modules/strtoul (Status, Notice): New sections.
2447
2448 2011-04-25  Bruno Haible  <bruno@clisp.org>
2449
2450         strtod: Remove check for strtod, unless supporting old platforms.
2451         * modules/strtod-obsolete: New file.
2452         * m4/strtod-obsolete.m4: New file.
2453         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2454         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2455         * modules/strtod (Depends-on): Add strtod-obsolete.
2456         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2457
2458 2011-04-25  Bruno Haible  <bruno@clisp.org>
2459
2460         strcase: Make module obsolete.
2461         * modules/strcase (Status, Notice): New sections.
2462
2463 2011-04-25  Bruno Haible  <bruno@clisp.org>
2464
2465         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2466         * modules/dup2-obsolete: New file.
2467         * m4/dup2-obsolete.m4: New file.
2468         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2469         gl_FUNC_DUP2_OBSOLETE is not also defined.
2470         * modules/dup2 (Depends-on): Add dup2-obsolete.
2471         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2472
2473 2011-04-25  Bruno Haible  <bruno@clisp.org>
2474
2475         strnlen: Avoid memchr related link error on old obsolete platforms.
2476         * modules/memchr-obsolete: New file.
2477         * m4/memchr-obsolete.m4: New file.
2478         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2479         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2480         * modules/memchr (Depends-on): Add memchr-obsolete.
2481         * modules/strnlen (Depends-on): Likewise.
2482         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2483
2484 2011-04-25  Jim Meyering  <meyering@redhat.com>
2485
2486         maint.mk: makefile_at_at_check extend and clean up
2487         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2488         in addition to */Makefile.am.
2489         Exempt legitimate uses of @VAR@ notation, e.g.,
2490         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2491         Remove obsolete coreutils-specific comment.
2492         Prompted by discussion here:
2493         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2494
2495 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2496
2497         strtoul: remove dependency on strtol
2498         This is so that 'configure' need not check for strtol merely because
2499         the application needs strtoul.
2500         * modules/strtoul (Files): Add lib/strtol.c.
2501         (Depends-on): Remove strtol.
2502
2503         strtoull: remove dependency on strtoul
2504         This is like the strtoll change.
2505         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2506         (Depends-on): Remove strtoul.
2507
2508         strtoll: remove dependency on strtol
2509         This is so that 'configure' need not check for strtol merely because
2510         the application needs strtoll.
2511         * modules/strtoll (Files): Add lib/strtol.c.
2512         (Depends-on): Remove strtol.
2513
2514 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2515
2516         inttypes: Move some configure check to module 'imaxdiv'.
2517         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2518         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2519         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2520
2521 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2522
2523         inttypes: Move some configure check to module 'imaxabs'.
2524         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2525         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2526         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2527
2528 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2529
2530         inttypes: Remove configure tests that are not needed since 2009-12-31.
2531         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2532         gl_cv_header_working_inttypes_h.
2533
2534 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2535
2536         * modules/strnlen (Depends-on): Remove memchr.
2537         The strnlen implementation doesn't need the memchr module's fixes; see
2538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2539
2540         strtol: remove dependency on wchar
2541         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2542         * modules/strtol (Depends-on): Remove wchar.
2543
2544 2011-04-21  Eric Blake  <eblake@redhat.com>
2545
2546         passfd: fix test regression on Linux
2547         * modules/passfd-tests (configure.ac): Correct socketpair check.
2548
2549         passfd: speed up configure and drop unused code
2550         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2551         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2552         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2553         Instead of probing at configure for unix_scm_rights_bsd44_way,
2554         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2555         check to a struct member probe.
2556         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2557         (sendfd, recvfd): Update preprocessor checks.
2558         * modules/passfd (Files): Reflect rename, and drop unused file.
2559         (Depends-on): Drop unused dependency.
2560
2561         passfd: allow compilation on mingw
2562         * modules/sys_socket (Depends-on): Add sys_uio.
2563         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2564         iovec and a minimal struct msghdr.
2565         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2566         * tests/test-sys_socket.c (main): Enhance test.
2567         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2568         guaranteed to provide what we need.
2569         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2570         * modules/passfd-tests (Depends-on): Add sys_wait.
2571         * tests/test-passfd.c (main): Skip test on mingw, for now.
2572         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2573         partial 'struct msghdr' implementation.
2574
2575         sys_uio: new module
2576         * modules/sys_uio: New module.
2577         * modules/sys_uio-tests: Likewise.
2578         * lib/sys_uio.in.h: New file.
2579         * m4/sys_uio_h.m4: Likewise.
2580         * tests/test-sys_uio.c: Likewise.
2581         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2582         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2583
2584 2011-04-20  Jim Meyering  <meyering@redhat.com>
2585
2586         useless-if-before-free: avoid false-positive
2587         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2588         disjunct so that it too requires a terminating ";".  Without that,
2589         this script would identify as useless one statement from gcc that
2590         was not:
2591           if (aligned_ptr)
2592             free (((void **) aligned_ptr) [-1]);
2593
2594 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2595
2596         doc: update users.txt.
2597         * users.txt: Add barcode.
2598
2599 2011-04-19  Bruno Haible  <bruno@clisp.org>
2600
2601         ioctl: Remove link dependency on native Windows.
2602         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2603         (gl_close_fn, gl_ioctl_fn): New types.
2604         (struct fd_hook): Renamed from struct close_hook. Change type of
2605         private_close_fn field. Add private_ioctl_fn field.
2606         (close_hook_fn): Add parameter for primary close method.
2607         (execute_close_hooks, execute_all_close_hooks): Likewise.
2608         (ioctl_hook_fn): New type.
2609         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2610         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2611         argument.
2612         (unregister_fd_hook): Renamed from unregister_close_hook.
2613         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2614         Don't include <unistd.h>.
2615         (close): Remove undef.
2616         (anchor): Update.
2617         (execute_close_hooks): Add argument for primary close method.
2618         (execute_all_close_hooks): Likewise.
2619         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2620         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2621         argument. Allow each argument to be NULL.
2622         (unregister_fd_hook): Renamed from unregister_close_hook.
2623         * lib/close.c (rpl_close): Pass 'close' function pointer to
2624         execute_all_close_hooks.
2625         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2626         (primary_ioctl): New function.
2627         (ioctl): Don't call ioctlsocket here. Instead, call
2628         execute_all_ioctl_hooks.
2629         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2630         close method.
2631         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2632         (fd_sockets_hook): Renamed from close_sockets_hook.
2633         (gl_sockets_startup, gl_sockets_cleanup): Update.
2634         * modules/fd-hook: Renamed from modules/close-hook. Update.
2635         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2636         * modules/sockets (Depends-on): Likewise.
2637         * modules/ioctl (Depends-on): Add fd-hook.
2638         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2639         GNULIB_SOCKET.
2640
2641 2011-04-19  Bruno Haible  <bruno@clisp.org>
2642
2643         Move the support of O_NONBLOCK in open() to the 'open' module.
2644         * modules/nonblocking (Depends-on): Remove 'open'.
2645         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2646         gl_cv_have_open_O_NONBLOCK.
2647         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2648         O_NONBLOCK support.
2649         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2650
2651 2011-04-17  Bruno Haible  <bruno@clisp.org>
2652
2653         pipe2: Simplify code.
2654         * lib/pipe2.c (pipe2): Reduce code duplication.
2655
2656 2011-04-17  Bruno Haible  <bruno@clisp.org>
2657
2658         nonblocking: Add comment.
2659         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2660
2661 2011-04-17  Bruno Haible  <bruno@clisp.org>
2662
2663         nonblocking: Add tests for sockets.
2664         * tests/test-nonblocking-socket.sh: New file.
2665         * tests/test-nonblocking-socket-main.c: New file.
2666         * tests/test-nonblocking-socket-child.c: New file.
2667         * tests/test-nonblocking-socket.h: New file.
2668         * tests/socket-server.h: New file.
2669         * tests/socket-client.h: New file.
2670         * modules/nonblocking-socket-tests: New file.
2671         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2672
2673 2011-04-17  Bruno Haible  <bruno@clisp.org>
2674
2675         nonblocking: Add tests for pipes.
2676         * tests/test-nonblocking-pipe.sh: New file.
2677         * tests/test-nonblocking-pipe-main.c: New file.
2678         * tests/test-nonblocking-pipe-child.c: New file.
2679         * tests/test-nonblocking-pipe.h: New file.
2680         * tests/test-nonblocking-writer.h: New file.
2681         * tests/test-nonblocking-reader.h: New file.
2682         * tests/test-nonblocking-misc.h: New file.
2683         * modules/nonblocking-pipe-tests: New file.
2684         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2685
2686 2011-04-16  Bruno Haible  <bruno@clisp.org>
2687
2688         gettext: Clarify the needed programmer actions.
2689         * modules/gettext (Notice): New field.
2690         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2691
2692 2011-04-16  Bruno Haible  <bruno@clisp.org>
2693
2694         strchrnul: Tweak last commit.
2695         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2696         bug.
2697         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2698         as in _GL_FUNCDECL_SYS.
2699         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2700         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2701
2702 2011-04-15  Eric Blake  <eblake@redhat.com>
2703
2704         strchrnul: work around cygwin bug
2705         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2706         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2708         * modules/string (Makefile.am): Substitute it.
2709         * lib/string.in.h (strchrnul): Use it.
2710
2711 2011-04-15  Bruno Haible  <bruno@clisp.org>
2712
2713         Don't require lib/stdio-write.c when only module 'stdio' is used.
2714         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2715         invocation.
2716         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2717
2718 2011-04-14  Bruno Haible  <bruno@clisp.org>
2719
2720         Support non-blocking pipe I/O in read() on native Windows.
2721         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2722         (read): New declaration.
2723         * lib/read.c: New file.
2724         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2725         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2726         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2727         vscanf): New declarations.
2728         * lib/stdio-read.c: New file.
2729         * m4/read.m4: New file.
2730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2731         REPLACE_READ.
2732         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2733         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2734         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2735         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2736         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2737         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2738         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2739         * modules/read: New file.
2740         * modules/nonblocking (Files): Add lib/stdio-read.c.
2741         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2742         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2743         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2744         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2745         * modules/pread (Depends-on): Add read.
2746         * modules/safe-read (Depends-on): Likewise.
2747         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2748         gets, scanf, vfscanf, vscanf): Verify signatures.
2749         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2750         problem with non-blocking pipes.
2751         * doc/posix-functions/fgetc.texi: Likewise.
2752         * doc/posix-functions/fgets.texi: Likewise.
2753         * doc/posix-functions/fread.texi: Likewise.
2754         * doc/posix-functions/fscanf.texi: Likewise.
2755         * doc/posix-functions/getc.texi: Likewise.
2756         * doc/posix-functions/getchar.texi: Likewise.
2757         * doc/posix-functions/gets.texi: Likewise.
2758         * doc/posix-functions/scanf.texi: Likewise.
2759         * doc/posix-functions/vfscanf.texi: Likewise.
2760         * doc/posix-functions/vscanf.texi: Likewise.
2761
2762 2011-04-14  Bruno Haible  <bruno@clisp.org>
2763
2764         Support non-blocking pipe I/O in write() on native Windows.
2765         * lib/write.c (rpl_write): Split a write request that failed merely
2766         because the byte count was larger than the pipe buffer's size.
2767         * doc/posix-functions/write.texi: Mention the problem with large byte
2768         counts.
2769
2770 2011-04-14  Bruno Haible  <bruno@clisp.org>
2771
2772         wchar: Ensure that wchar_t gets defined on uClibc.
2773         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2774         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2775
2776 2011-04-13  Bruno Haible  <bruno@clisp.org>
2777
2778         safe-write, full-read: Avoid unnecessary compilation units.
2779         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2780         (Depends-on): Remove safe-read. Add ssize_t.
2781         * modules/full-read (Files): Add lib/full-write.c.
2782         (Depends-on): Add full-write.
2783
2784 2011-04-13  Bruno Haible  <bruno@clisp.org>
2785
2786         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2787         * modules/pwrite (Depends-on): Add 'write'.
2788
2789 2011-04-13  Bruno Haible  <bruno@clisp.org>
2790
2791         Support non-blocking pipe I/O in write() on native Windows.
2792         * lib/unistd.in.h (write): Enable replacement also if
2793         GNULIB_UNISTD_H_NONBLOCKING is 1.
2794         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2795         (rpl_write): When failing to write on a non-blocking pipe, change
2796         errno from ENOSPC to EAGAIN.
2797         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2798         putchar, puts, vfprintf, vprintf): Enable replacement also if
2799         GNULIB_STDIO_H_NONBLOCKING is 1.
2800         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2801         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2802         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2803         CALL_WITH_SIGPIPE_EMULATION.
2804         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2805         * m4/nonblocking.m4: New file.
2806         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2807         for non-blocking I/O support.
2808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2809         GNULIB_UNISTD_H_NONBLOCKING.
2810         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2811         required for non-blocking I/O support.
2812         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2813         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2814         lib/stdio-write.c, m4/asm-underscore.m4.
2815         (Depends-on): Add stdio, unistd.
2816         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2817         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2818         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2819         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2820         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2821         problem with non-blocking pipes.
2822         * doc/posix-functions/fputc.texi: Likewise.
2823         * doc/posix-functions/fputs.texi: Likewise.
2824         * doc/posix-functions/fwrite.texi: Likewise.
2825         * doc/posix-functions/printf.texi: Likewise.
2826         * doc/posix-functions/putc.texi: Likewise.
2827         * doc/posix-functions/putchar.texi: Likewise.
2828         * doc/posix-functions/puts.texi: Likewise.
2829         * doc/posix-functions/vfprintf.texi: Likewise.
2830         * doc/posix-functions/vprintf.texi: Likewise.
2831         * doc/posix-functions/write.texi: Likewise.
2832
2833 2011-04-10  Jim Meyering  <meyering@redhat.com>
2834
2835         maint.mk: prohibit doubled words
2836         Detect them also when they're separated by a newline.
2837         There are 3 ways to customize it:
2838           - disable the test on a per file basis, as usual with rules using
2839             $(VC_LIST_EXCEPT)
2840           - replace the default doubled-word-selecting regexp (affects all files)
2841           - ignore a particular file-vs-doubled-word match
2842         I nearly used that last one to ignore the "is is" match in
2843         coreutils' NEWS file, since the text was "ls -is is ..."
2844         To do that, I would have added this line to cfg.mk:
2845           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2846         but it would have ignored any "is is" match in NEWS.
2847         Low probability, but still...
2848         Instead, I changed the text, slightly:
2849           -  ls -is is now consistent with ls -lis in ignoring values returned
2850           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2851         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2852         (prohibit_doubled_word_): Define.
2853         (sc_prohibit_doubled_word): New rule.
2854         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2855
2856 2011-04-10  Jim Meyering  <meyering@redhat.com>
2857
2858         maint: fix doubled-word typo in comment
2859         * m4/gethostname.m4: s/is is/it is/
2860         * m4/getdomainname.m4: Likewise.
2861
2862 2011-04-10  Jim Meyering  <meyering@redhat.com>
2863
2864         maint: remove doubled word: s/it it/it/
2865         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2866
2867 2011-04-10  Jim Meyering  <meyering@redhat.com>
2868
2869         maint.mk: remove useless semicolon and backslash
2870         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2871         semicolon and backslash.
2872
2873 2011-04-10  Bruno Haible  <bruno@clisp.org>
2874
2875         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2876         * modules/stdint-tests (Depends-on): Add wchar.
2877
2878 2011-04-10  Jim Meyering  <meyering@redhat.com>
2879
2880         maint: remove doubled words in comments, e.g., s/a a/a/
2881         * lib/strptime.c (day_of_the_week): s/the the/the/
2882         * tests/test-chown.h (test_chown): s/a a/a/
2883
2884         test-chown.h: correct a cast
2885         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2886         when the destination is a stat.st_gid.
2887
2888 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2889
2890         getaddrinfo: Fix test for sa_len member.
2891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2892         include <sys/types.h> before <sys/socket.h>.
2893
2894 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2895
2896         maint: change "can not" to "cannot"
2897         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2898         boundaries.
2899
2900 2011-04-09  Jim Meyering  <meyering@redhat.com>
2901
2902         maint: change "a a" to "a"
2903         * tests/test-lchown.h (test_lchown): s/a a/a/
2904
2905         maint.mk: prohibit \<the the\>
2906         * top/maint.mk (sc_prohibit_the_the): New rule.
2907
2908         maint: fix "the the" in comment
2909         * lib/count-one-bits.h: s/the the/the/
2910
2911         maint: change "can not" to "cannot"
2912         But do not change the occurrences in maintain.texi or in
2913         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2914         * doc/gnulib-tool.texi: s/can not/cannot/
2915         * doc/posix-functions/accept.texi (accept): Likewise.
2916         * doc/posix-functions/socket.texi (socket): Likewise.
2917         * lib/mbrtowc.c: Likewise.
2918
2919         maint.mk: prohibit use of "can not"
2920         * top/maint.mk (sc_prohibit_can_not): New rule.
2921         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2922
2923 2011-04-09  Bruno Haible  <bruno@clisp.org>
2924
2925         careadlinkat: Guard against misuse of careadlinkatcwd.
2926         * lib/careadlinkat.c: Include <stdlib.h>.
2927         (careadlinkatcwd): Check that the fd argument is as expected.
2928
2929 2011-04-09  Bruno Haible  <bruno@clisp.org>
2930
2931         careadlinkat: Use common coding style.
2932         * lib/careadlinkat.c: Move gnulib includes after system includes.
2933
2934 2011-04-09  Bruno Haible  <bruno@clisp.org>
2935
2936         careadlinkat: Clarify specification.
2937         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2938         (careadlinkatcwd): Add comment.
2939         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2940
2941 2011-04-09  Bruno Haible  <bruno@clisp.org>
2942
2943         areadlinkat: Avoid link error on many platforms.
2944         * modules/areadlinkat (Depends-on): Add areadlink.
2945
2946 2011-04-09  Bruno Haible  <bruno@clisp.org>
2947
2948         allocator, careadlinkat: Fix double-inclusion guard.
2949         * lib/allocator.h: Fix double-inclusion guard.
2950         * lib/careadlinkat.h: Likewise.
2951
2952 2011-04-09  Bruno Haible  <bruno@clisp.org>
2953
2954         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2955         * lib/relocwrapper.c: Update dependencies hierarchy.
2956         * build-aux/install-reloc: Update list of files to be compiled.
2957         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2958         lib/allocator.[hc].
2959
2960 2011-04-08  Eric Blake  <eblake@redhat.com>
2961
2962         strftime: silence gnulib-tool warning
2963         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2964
2965 2011-04-08  Bruno Haible  <bruno@clisp.org>
2966
2967         verify: Fix syntax error with GCC 4.6 in C++ mode.
2968         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2969         (HAVE_STATIC_ASSERT): New macro.
2970         (verify_true, verify): Use 'static_assert' if it is supported and
2971         '_Static_assert' is not supported.
2972
2973 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2974
2975         allocator: New module.
2976         * modules/allocator, lib/allocator.c: New files.
2977         * lib/allocator.h (stdlib_allocator): New decl.
2978         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2979         Remove.  Do not include <stdlib.h>.
2980         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2981         * modules/careadlinkat (Files): Remove lib/allocator.h.
2982         (Depends-on): Add allocator.
2983
2984         stdlib: let modules use system malloc, realloc
2985         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2986         if !_GL_USE_STDLIB_ALLOC.
2987         (malloc, realloc): Limit this change to a smaller scope.
2988
2989         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2990         (malloc, realloc): Don't #undef; no longer needed.
2991         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2992         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2993         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2994         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2995         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2996         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2997         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2998         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2999
3000         careadlinkat: rename members to avoid problem
3001         * lib/allocator.h (struct allocator): Rename members from
3002         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3003         and realloc are #define'd.  Reported by Eric Blake in
3004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3005         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3006
3007 2011-04-08  Eric Blake  <eblake@redhat.com>
3008
3009         nonblocking: reduce dependency
3010         * tests/test-nonblocking.c: Only test sockets when in use.
3011         * modules/nonblocking-tests (Depends-on): Drop socket.
3012         (Makefile.am): Link even if sockets are not present.
3013         * modules/pipe2-tests (Makefile.am): Likewise.
3014         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3015
3016         pipe2: fix O_NONBLOCK support on mingw
3017         * modules/pipe2 (Depends-on): Add nonblocking.
3018         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3019         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3020         * tests/test-nonblocking.c (main): Likewise.
3021         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3022
3023         fcntl-h: fix O_ACCMODE on cygwin
3024         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3025         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3026
3027         pipe-filter: drop O_NONBLOCK workarounds
3028         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3029         * modules/pipe-filter-ii (Depends-on): Likewise.
3030         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3031
3032         nonblocking: provide O_NONBLOCK for mingw
3033         * modules/nonblocking (Depends-on): Add open.
3034         (configure.ac): Set new witness macro.
3035         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3036         * modules/fcntl-h (Makefile.am): Substitute it.
3037         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3038         nonblocking module is in use.
3039         * lib/nonblocking.c: Adjust portability test.
3040         * lib/open.c (open): Don't let native open see gnulib flag.
3041         * tests/test-fcntl-h.c (main): Enhance test.
3042         * tests/test-open.h (test_open): Likewise.
3043         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3044
3045         careadlinkat: fix compilation error on mingw
3046         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3047         within struct allocator.
3048
3049 2011-04-06  Eric Blake  <eblake@redhat.com>
3050
3051         binary-io: relicense under LGPLv2+
3052         * modules/binary-io (License): Relax to LGPLv2+.
3053         Requested for libvirt, and required by pipe2.
3054
3055 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3056
3057         verify: use _Static_assert if available
3058         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3059         (verify_true, verify): Use it if available.  This generates better
3060         diagnostics with GCC 4.6.0 and later.
3061
3062 2011-04-05  Bruno Haible  <bruno@clisp.org>
3063
3064         Remove leftover generated .h files after config.status changed.
3065
3066         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3067         GL_GENERATE_ALLOCA_H.
3068         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3069         GL_GENERATE_ALLOCA_H evaluates to false.
3070
3071         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3072         GL_GENERATE_ARGZ_H.
3073         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3074         evaluates to false.
3075
3076         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3077         GL_GENERATE_BYTESWAP_H.
3078         * modules/byteswap (Makefile.am): Remove byteswap.h if
3079         GL_GENERATE_BYTESWAP_H evaluates to false.
3080
3081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3082         GL_GENERATE_ERRNO_H.
3083         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3084         evaluates to false.
3085
3086         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3087         GL_GENERATE_FLOAT_H.
3088         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3089         evaluates to false.
3090
3091         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3092         GL_GENERATE_FNMATCH_H.
3093         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3094         GL_GENERATE_FNMATCH_H evaluates to false.
3095
3096         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3097         GL_GENERATE_GLOB_H.
3098         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3099         evaluates to false.
3100
3101         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3102         automake conditional GL_GENERATE_ICONV_H.
3103         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3104         evaluates to false.
3105
3106         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3107         GL_GENERATE_NETINET_IN_H.
3108         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3109         GL_GENERATE_NETINET_IN_H evaluates to false.
3110
3111         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3112         conditional GL_GENERATE_PTHREAD_H.
3113         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3114         * modules/pthread (Makefile.am): Remove pthread.h if
3115         GL_GENERATE_PTHREAD_H evaluates to false.
3116
3117         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3118         GL_GENERATE_SCHED_H.
3119         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3120         evaluates to false.
3121
3122         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3123         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3124         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3125         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3126
3127         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3128         GL_GENERATE_STDARG_H.
3129         * modules/stdarg (Makefile.am): Remove stdarg.h if
3130         GL_GENERATE_STDARG_H evaluates to false.
3131
3132         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3133         GL_GENERATE_STDBOOL_H.
3134         * modules/stdbool (Makefile.am): Remove stdbool.h if
3135         GL_GENERATE_STDBOOL_H evaluates to false.
3136
3137         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3138         conditional GL_GENERATE_STDDEF_H.
3139         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3140         * modules/stddef (Makefile.am): Remove stddef.h if
3141         GL_GENERATE_STDDEF_H evaluates to false.
3142
3143         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3144         GL_GENERATE_STDINT_H.
3145         * modules/stdint (Makefile.am): Remove stdint.h if
3146         GL_GENERATE_STDINT_H evaluates to false.
3147
3148         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3149         GL_GENERATE_SYSEXITS_H.
3150         * modules/sysexits (Makefile.am): Remove sysexits.h if
3151         GL_GENERATE_SYSEXITS_H evaluates to false.
3152
3153         Reported by Karl Berry and Ralf Wildenhues.
3154
3155 2011-04-05  Bruno Haible  <bruno@clisp.org>
3156
3157         Ensure to rebuild generated .h files when config.status has changed.
3158         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3159         config.status.
3160         * modules/ctype (Makefile.am): Likewise.
3161         * modules/dirent (Makefile.am): Likewise.
3162         * modules/errno (Makefile.am): Likewise.
3163         * modules/fcntl-h (Makefile.am): Likewise.
3164         * modules/float (Makefile.am): Likewise.
3165         * modules/getopt-posix (Makefile.am): Likewise.
3166         * modules/glob (Makefile.am): Likewise.
3167         * modules/iconv-h (Makefile.am): Likewise.
3168         * modules/inttypes (Makefile.am): Likewise.
3169         * modules/langinfo (Makefile.am): Likewise.
3170         * modules/locale (Makefile.am): Likewise.
3171         * modules/math (Makefile.am): Likewise.
3172         * modules/netdb (Makefile.am): Likewise.
3173         * modules/netinet_in (Makefile.am): Likewise.
3174         * modules/poll-h (Makefile.am): Likewise.
3175         * modules/pthread (Makefile.am): Likewise.
3176         * modules/pty (Makefile.am): Likewise.
3177         * modules/sched (Makefile.am): Likewise.
3178         * modules/search (Makefile.am): Likewise.
3179         * modules/selinux-h (Makefile.am): Likewise.
3180         * modules/signal (Makefile.am): Likewise.
3181         * modules/spawn (Makefile.am): Likewise.
3182         * modules/stdarg (Makefile.am): Likewise.
3183         * modules/stdbool (Makefile.am): Likewise.
3184         * modules/stddef (Makefile.am): Likewise.
3185         * modules/stdint (Makefile.am): Likewise.
3186         * modules/stdio (Makefile.am): Likewise.
3187         * modules/stdlib (Makefile.am): Likewise.
3188         * modules/string (Makefile.am): Likewise.
3189         * modules/strings (Makefile.am): Likewise.
3190         * modules/sys_file (Makefile.am): Likewise.
3191         * modules/sys_ioctl (Makefile.am): Likewise.
3192         * modules/sys_select (Makefile.am): Likewise.
3193         * modules/sys_socket (Makefile.am): Likewise.
3194         * modules/sys_stat (Makefile.am): Likewise.
3195         * modules/sys_time (Makefile.am): Likewise.
3196         * modules/sys_times (Makefile.am): Likewise.
3197         * modules/sys_utsname (Makefile.am): Likewise.
3198         * modules/sys_wait (Makefile.am): Likewise.
3199         * modules/sysexits (Makefile.am): Likewise.
3200         * modules/termios (Makefile.am): Likewise.
3201         * modules/time (Makefile.am): Likewise.
3202         * modules/unistd (Makefile.am): Likewise.
3203         * modules/wchar (Makefile.am): Likewise.
3204         * modules/wctype-h (Makefile.am): Likewise.
3205         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3206
3207 2011-04-05  Bruno Haible  <bruno@clisp.org>
3208
3209         pipe2: Relicense under LGPLv2+.
3210         * modules/pipe2 (License): Change to LGPLv2+.
3211         Requested by Eric Blake, for libvirt.
3212
3213 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3214
3215         bootstrap: compute gnulib_extra_files after updating build_aux
3216         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3217         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3218
3219 2011-04-05  Eric Blake  <eblake@redhat.com>
3220
3221         bootstrap: preserve git whitelist item sorting
3222         * build-aux/bootstrap (sort_patterns): New function.
3223         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3224
3225 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3226
3227         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3228         sc_space_tab check.
3229
3230 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3231
3232         areadlink, areadlinkat: rewrite in terms of careadlinkat
3233         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3234         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3235         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3236         (malloc, realloc): Remove #undefs.
3237         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3238         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3239         readlink, ssize_t, stdint, unistd.
3240         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3241         areadlink, stdint.
3242
3243         careadlinkat: new module
3244         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3245         * modules/careadlinkat: New files, written by me with
3246         a review and feedback from Ben Pfaff in
3247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3248
3249 2011-04-01  Bruno Haible  <bruno@clisp.org>
3250
3251         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3252         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3253         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3254         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3255         Reported by Bruce Korb <bruce.korb@gmail.com>.
3256
3257 2011-04-01  Bruno Haible  <bruno@clisp.org>
3258
3259         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3260         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3261         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3262         * modules/wcpcpy (Depends-on): Add extensions.
3263         * modules/wcpncpy (Depends-on): Likewise.
3264         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3265         systems.
3266         * doc/posix-functions/wcpncpy.texi: Likewise.
3267         * doc/posix-functions/wcwidth.texi: Likewise.
3268
3269 2011-03-31  Eric Blake  <eblake@redhat.com>
3270
3271         nonblocking: fix mingw test failures
3272         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3273         non-blocking flag on regular file.
3274         (get_nonblocking_flag): Set errno on invalid fd.
3275         * tests/test-nonblocking.c (main): Avoid test failure on
3276         directories if fchdir is not active.
3277         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3278
3279 2011-03-31  Bruno Haible  <bruno@clisp.org>
3280
3281         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3282         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3283         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3284         Reported by Simon Josefsson <simon@josefsson.org>.
3285
3286 2011-03-31  Bruno Haible  <bruno@clisp.org>
3287         and Eric Blake  <eblake@redhat.com>
3288
3289         nonblocking: new module
3290         * modules/nonblocking: New module.
3291         * modules/nonblocking-tests: Likewise.
3292         * lib/nonblocking.h: New file.
3293         * lib/nonblocking.c: Likewise.
3294         * tests/test-nonblocking.c: New test.
3295         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3296
3297 2011-03-30  Bruno Haible  <bruno@clisp.org>
3298
3299         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3300         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3301         instead of 'printf' format for GCC >= 4.4.
3302         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3303         (fprintf, printf, vfprintf, vprintf): Declare with
3304         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3305         the system's vfprintf() function.
3306         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3307
3308 2011-03-30  Eric Blake  <eblake@redhat.com>
3309
3310         passfd: fix scoping bug
3311         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3312         before sendmsg/recvmsg.
3313
3314         passfd: standardize coding conventions
3315         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3316         can be learned at compile time.
3317         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3318         ifdefs.
3319         (sendfd, recvfd): Follow gnulib code conventions.
3320
3321         passfd: fix incorrect sendmsg arguments
3322         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3323         incorrect msg_controllen value.
3324         * modules/passfd-tests (Depends-on): Check for alarm.
3325         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3326         Reported by Bastien ROUCARIES.
3327
3328 2011-03-30  Bruno Haible  <bruno@clisp.org>
3329
3330         c-strcasestr: Relicense under LGPLv2+.
3331         * modules/c-strcasestr (License): Change to LGPLv2+.
3332         Requested by Eric Blake, for libvirt.
3333
3334 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3335
3336         * users.txt: Add libidn2.  Fix libtasn1 link.
3337
3338 2011-03-30  Jim Meyering  <meyering@redhat.com>
3339
3340         tests: readlink* ("",... fails with EINVAL on newer kernels
3341         readlink and readlinkat have typically failed with ENOENT for
3342         the invalid, empty file name,  "".  However, with the advent
3343         of linux-2.6.39, they fail with EINVAL.
3344         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3345         when operating on the empty file name.
3346         * tests/test-readlink.h (test_readlink): Likewise.
3347
3348 2011-03-29  Bruno Haible  <bruno@clisp.org>
3349
3350         Relicense some modules under LGPLv2+, for libidn2.
3351         * modules/array-mergesort (License): Change to LGPLv2+.
3352         * modules/c-strcaseeq (License): Likewise.
3353         * modules/striconveh (License): Likewise.
3354         * modules/striconveha (License): Likewise.
3355         * modules/uniconv/base (License): Likewise.
3356         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3357         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3358         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3359         * modules/unictype/base (License): Likewise.
3360         * modules/unictype/bidiclass-of (License): Likewise.
3361         * modules/unictype/category-M (License): Likewise.
3362         * modules/unictype/category-none (License): Likewise.
3363         * modules/unictype/category-of (License): Likewise.
3364         * modules/unictype/category-test (License): Likewise.
3365         * modules/unictype/category-test-withtable (License): Likewise.
3366         * modules/unictype/combining-class (License): Likewise.
3367         * modules/unictype/joiningtype-of (License): Likewise.
3368         * modules/unictype/scripts (License): Likewise.
3369         * modules/uninorm/base (License): Likewise.
3370         * modules/uninorm/canonical-decomposition (License): Likewise.
3371         * modules/uninorm/composition (License): Likewise.
3372         * modules/uninorm/decompose-internal (License): Likewise.
3373         * modules/uninorm/decomposition-table (License): Likewise.
3374         * modules/uninorm/nfc (License): Likewise.
3375         * modules/uninorm/nfd (License): Likewise.
3376         * modules/uninorm/u32-normalize (License): Likewise.
3377         * modules/unistr/base (License): Likewise.
3378         * modules/unistr/u32-cpy (License): Likewise.
3379         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3380         * modules/unistr/u32-to-u8 (License): Likewise.
3381         * modules/unistr/u32-uctomb (License): Likewise.
3382         * modules/unistr/u8-check (License): Likewise.
3383         * modules/unistr/u8-mblen (License): Likewise.
3384         * modules/unistr/u8-mbtouc (License): Likewise.
3385         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3386         * modules/unistr/u8-mbtoucr (License): Likewise.
3387         * modules/unistr/u8-prev (License): Likewise.
3388         * modules/unistr/u8-strlen (License): Likewise.
3389         * modules/unistr/u8-to-u32 (License): Likewise.
3390         * modules/unistr/u8-uctomb (License): Likewise.
3391         * modules/unitypes (License): Likewise.
3392         Requested by Simon Josefsson.
3393
3394 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3395
3396         lib-symbol-visibility: Add a notice.
3397         * modules/lib-symbol-visibility (Notice): New field.
3398
3399 2011-03-29  Bruno Haible  <bruno@clisp.org>
3400
3401         getaddrinfo: Doc fix.
3402         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3403         section "fixed in Gnulib".
3404
3405 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3406
3407         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3408         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3409
3410 2011-03-26  Bruno Haible  <bruno@clisp.org>
3411
3412         unictype/property-byname: Reduce the number of load-time relocations.
3413         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3414         (UC_PROPERTY_INDEX_*): New enumeration values.
3415         (uc_property_byname): Convert an index from the lookup table to an
3416         uc_property_t.
3417         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3418         values.
3419
3420 2011-03-26  Bruno Haible  <bruno@clisp.org>
3421
3422         unictype/property-byname: Allow omitted word separators and aliases.
3423         * lib/unictype/pr_byname.gperf: Add property names without word
3424         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3425         for 'space'.
3426
3427 2011-03-26  Bruno Haible  <bruno@clisp.org>
3428
3429         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3430         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3431         also hyphens to space.
3432         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3433         without spaces.
3434         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3435
3436 2011-03-26  Bruno Haible  <bruno@clisp.org>
3437
3438         unictype/joiningtype-byname: Recognize long names as well.
3439         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3440         a long name.
3441         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3442         unictype/joiningtype_byname.h.
3443         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3444         * lib/unictype/joiningtype_byname.gperf: New file.
3445         * modules/unictype/joiningtype-byname (Files): Add
3446         lib/unictype/joiningtype_byname.gperf.
3447         (Depends-on): Add gperf.
3448         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3449         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3450         long names.
3451
3452         Tests for module 'unictype/joiningtype-longname'.
3453         * modules/unictype/joiningtype-longname-tests: New file.
3454         * tests/unictype/test-joiningtype_longname.c: New file.
3455
3456         New module 'unictype/joiningtype-longname'.
3457         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3458         * lib/unictype/joiningtype_longname.c: New file.
3459         * modules/unictype/joiningtype-longname: New file.
3460         * modules/unictype/joiningtype-all (Depends-on): Add
3461         unictype/joiningtype-longname.
3462
3463 2011-03-26  Bruno Haible  <bruno@clisp.org>
3464
3465         unictype/bidiclass-byname: Recognize long names as well.
3466         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3467         name.
3468         * lib/unictype/bidi_byname.c: Include <string.h>,
3469         unictype/bidi_byname.h.
3470         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3471         * lib/unictype/bidi_byname.gperf: New file.
3472         * modules/unictype/bidiclass-byname (Files): Add
3473         lib/unictype/bidi_byname.gperf.
3474         (Depends-on): Add gperf.
3475         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3476         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3477         long names.
3478
3479         Tests for module 'unictype/bidiclass-longname'.
3480         * modules/unictype/bidiclass-longname-tests: New file.
3481         * tests/unictype/test-bidi_longname.c: New file.
3482
3483         New module 'unictype/bidiclass-longname'.
3484         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3485         * lib/unictype/bidi_longname.c: New file.
3486         * modules/unictype/bidiclass-longname: New file.
3487         * modules/unictype/bidiclass-all (Depends-on): Add
3488         unictype/bidiclass-longname.
3489
3490 2011-03-26  Bruno Haible  <bruno@clisp.org>
3491
3492         unictype/bidi*: Rename modules.
3493         * modules/unictype/bidiclass-all: Renamed from
3494         modules/unictype/bidicategory-all.
3495         * modules/unictype/bidiclass-name: Renamed from
3496         modules/unictype/bidiclass-name.
3497         (Description): Update.
3498         * modules/unictype/bidiclass-name-tests: Renamed from
3499         modules/unictype/bidicategory-name-tests.
3500         * modules/unictype/bidiclass-byname: Renamed from
3501         modules/unictype/bidicategory-byname.
3502         (Description): Update.
3503         * modules/unictype/bidiclass-byname-tests: Renamed from
3504         modules/unictype/bidicategory-byname-tests.
3505         * modules/unictype/bidiclass-of: Renamed from
3506         modules/unictype/bidicategory-of.
3507         (Description): Update.
3508         * modules/unictype/bidiclass-of-tests: Renamed from
3509         modules/unictype/bidicategory-of-tests.
3510         * modules/unictype/bidiclass-test: Renamed from
3511         modules/unictype/bidicategory-test.
3512         (Description): Update.
3513         * modules/unictype/bidiclass-test-tests: Renamed from
3514         modules/unictype/bidicategory-test-tests.
3515         * modules/unictype/bidicategory-all: New file, a simple redirection.
3516         * modules/unictype/bidicategory-name: Likewise.
3517         * modules/unictype/bidicategory-byname: Likewise.
3518         * modules/unictype/bidicategory-of: Likewise.
3519         * modules/unictype/bidicategory-test: Likewise.
3520         * modules/unictype/property-bidi-* (Dependencies): Update.
3521         * lib/unictype/bidi_*.c: Update comment.
3522
3523 2011-03-26  Bruno Haible  <bruno@clisp.org>
3524
3525         unictype/bidi*: Rename functions, part 2.
3526         * modules/unictype/bidicategory-name (configure.ac): Update required
3527         libunistring version.
3528         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3529
3530 2011-03-25  Bruno Haible  <bruno@clisp.org>
3531
3532         New module 'unictype/combining-class-all'.
3533         * modules/unictype/combining-class-all: New file.
3534
3535         Tests for module 'unictype/combining-class-byname'.
3536         * modules/unictype/combining-class-byname-tests: New file.
3537         * tests/unictype/test-combiningclass_byname.c: New file.
3538
3539         New module 'unictype/combining-class-byname'.
3540         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3541         * lib/unictype/combiningclass_byname.c: New file.
3542         * lib/unictype/combiningclass_byname.gperf: New file.
3543         * modules/unictype/combining-class-byname: New file.
3544
3545         Tests for module 'unictype/combining-class-longname'.
3546         * modules/unictype/combining-class-longname-tests: New file.
3547         * tests/unictype/test-combiningclass_longname.c: New file.
3548
3549         New module 'unictype/combining-class-longname'.
3550         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3551         * lib/unictype/combiningclass_longname.c: New file.
3552         * modules/unictype/combining-class-longname: New file.
3553
3554         Tests for module 'unictype/combining-class-name'.
3555         * modules/unictype/combining-class-name-tests: New file.
3556         * tests/unictype/test-combiningclass_name.c: New file.
3557
3558         New module 'unictype/combining-class-name'.
3559         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3560         * lib/unictype/combiningclass_name.c: New file.
3561         * modules/unictype/combining-class-name: New file.
3562
3563 2011-03-25  Bruno Haible  <bruno@clisp.org>
3564
3565         unictype/combining-class: Rename source files.
3566         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3567         of unictype/combining.h.
3568         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3569         Update.
3570         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3571         * modules/unictype/combining-class (Description): Fix.
3572         (Files, Makefile.am): Update.
3573         * tests/unictype/test-combiningclass.c: Renamed from
3574         tests/unictype/test-combining.c.
3575         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3576
3577 2011-03-25  Bruno Haible  <bruno@clisp.org>
3578
3579         unictype: Update list of canonical combining classes.
3580         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3581
3582 2011-03-25  Bruno Haible  <bruno@clisp.org>
3583
3584         unictype/category-byname: Recognize long names as well.
3585         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3586         a long name.
3587         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3588         unictype/categ_byname.h.
3589         (UC_CATEGORY_INDEX_*): New enumeration values.
3590         (uc_general_category_byname): Use uc_general_category_lookup and
3591         convert from index to value.
3592         * lib/unictype/categ_byname.gperf: New file.
3593         * modules/unictype/category-byname (Files): Add
3594         lib/unictype/categ_byname.gperf.
3595         (Depends-on): Add gperf.
3596         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3597         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3598         long names.
3599
3600         Tests for module 'unictype/category-longname'.
3601         * modules/unictype/category-longname-tests: New file.
3602         * tests/unictype/test-categ_longname.c: New file.
3603
3604         New module 'unictype/category-longname'.
3605         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3606         * lib/unictype/categ_longname.c: New file.
3607         * modules/unictype/category-longname: New file.
3608         * modules/unictype/category-all (Depends-on): Add it.
3609
3610 2011-03-25  Bruno Haible  <bruno@clisp.org>
3611
3612         Tests for module 'unictype/category-LC'.
3613         * modules/unictype/category-LC-tests: New file.
3614         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3615
3616         New module 'unictype/category-LC'.
3617         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3618         (UC_CATEGORY_LC): New declaration.
3619         (UC_CASED_LETTER): New macro.
3620         * lib/gen-uni-tables.c (is_category_LC): New function.
3621         (output_categories): Also handle category LC.
3622         (UC_CATEGORY_MASK_LC): New enumeration value.
3623         (general_category_byname): Also handle category LC.
3624         * lib/unictype/categ_LC.c: New file.
3625         * lib/unictype/categ_LC.h: New file, automatically generated.
3626         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3627         category LC.
3628         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3629         * modules/unictype/category-LC: New file.
3630         * modules/unictype/category-byname (Depends-on): Add
3631         unictype/category-LC.
3632         * modules/unictype/category-all (Depends-on): Likewise.
3633
3634 2011-03-25  Eric Blake  <eblake@redhat.com>
3635
3636         xmalloc: revert yesterday's regression
3637         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3638         realloc's underlying behavior (allowing allocation of zero-size
3639         objects, especially if malloc-gnu is also in use).
3640
3641 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3642
3643         maint.mk: add missing version to VC-tag
3644         * top/maint.mk: git tag was missing actual tag name; add it.
3645
3646         valgrind: do leak checking, and exit with code 1 on error (not 0)
3647         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3648         to VALGRIND.
3649
3650 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3651
3652         posix-modules: say what it does.
3653         * posix-modules: Add a line to the --help output saying what it does.
3654
3655 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3656
3657         xmalloc: Do not leak if underlying realloc is C99 compatible.
3658         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3659         This avoids a leak on C99-based systems.  See
3660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3661
3662 2011-03-24  Eric Blake  <eblake@redhat.com>
3663
3664         realloc: document portability problem
3665         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3666         passing 0 size to realloc.
3667
3668 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3669
3670         doc: update users.txt
3671         * users.txt: Add cvsps, tmpwatch
3672
3673 2011-03-23  Matt Rice  <ratmice@gmail.com>
3674
3675         doc: update users.txt
3676         * users.txt: Add gdb.
3677
3678 2011-03-23  Jim Meyering  <meyering@redhat.com>
3679
3680         doc: update users.txt
3681         Looking through matches up to the following URL (there are still
3682         several more pages), I found several projects that use gnulib:
3683         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3684         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3685         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3686
3687 2011-03-22  Bruno Haible  <bruno@clisp.org>
3688
3689         unictype/bidi*: Rename functions.
3690         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3691         uc_bidi_class, uc_is_bidi_class): New declarations.
3692         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3693         uc_bidi_category_byname.
3694         (uc_bidi_category_byname): New function.
3695         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3696         u_bidi_category_name.
3697         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3698         (uc_bidi_category_name): New function.
3699         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3700         uc_bidi_category.
3701         (uc_bidi_category): New function.
3702         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3703         uc_is_bidi_category. Invoke uc_bidi_class.
3704         (uc_is_bidi_category): New function.
3705         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3706         instead of uc_bidi_category_byname.
3707         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3708         instead of uc_bidi_category_name.
3709         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3710         uc_bidi_category.
3711         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3712         instead of uc_is_bidi_category.
3713
3714 2011-03-21  Bruno Haible  <bruno@clisp.org>
3715
3716         New module 'unictype/joininggroup-all'.
3717         * modules/unictype/joininggroup-all: New file.
3718
3719         Tests for module 'unictype/joininggroup-of'.
3720         * modules/unictype/joininggroup-of-tests: New file.
3721         * tests/unictype/test-joininggroup_of.c: New file.
3722         * tests/unictype/test-joininggroup_of.h: New file, automatically
3723         generated by gen-uni-tables.
3724
3725         New module 'unictype/joininggroup-of'.
3726         * modules/unictype/joininggroup-of: New file.
3727         * lib/unictype/joininggroup_of.c: New file.
3728         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3729         gen-uni-tables.
3730
3731         Tests for module 'unictype/joininggroup-byname'.
3732         * modules/unictype/joininggroup-byname-tests: New file.
3733         * tests/unictype/test-joininggroup_byname.c: New file.
3734
3735         New module 'unictype/joininggroup-byname'.
3736         * modules/unictype/joininggroup-byname: New file.
3737         * lib/unictype/joininggroup_byname.c: New file.
3738         * lib/unictype/joininggroup_byname.gperf: New file.
3739
3740         Tests for module 'unictype/joininggroup-name'.
3741         * modules/unictype/joininggroup-name-tests: New file.
3742         * tests/unictype/test-joininggroup_name.c: New file.
3743
3744         New module 'unictype/joininggroup-name'.
3745         * modules/unictype/joininggroup-name: New file.
3746         * lib/unictype/joininggroup_name.c: New file.
3747         * lib/unictype/joininggroup_name.h: New file.
3748
3749         New module 'unictype/joiningtype-all'.
3750         * modules/unictype/joiningtype-all: New file.
3751
3752         Tests for module 'unictype/joiningtype-of'.
3753         * modules/unictype/joiningtype-of-tests: New file.
3754         * tests/unictype/test-joiningtype_of.c: New file.
3755         * tests/unictype/test-joiningtype_of.h: New file, automatically
3756         generated by gen-uni-tables.
3757
3758         New module 'unictype/joiningtype-of'.
3759         * modules/unictype/joiningtype-of: New file.
3760         * lib/unictype/joiningtype_of.c: New file.
3761         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3762         gen-uni-tables.
3763
3764         Tests for module 'unictype/joiningtype-byname'.
3765         * modules/unictype/joiningtype-byname-tests: New file.
3766         * tests/unictype/test-joiningtype_byname.c: New file.
3767
3768         New module 'unictype/joiningtype-byname'.
3769         * modules/unictype/joiningtype-byname: New file.
3770         * lib/unictype/joiningtype_byname.c: New file.
3771
3772         Tests for module 'unictype/joiningtype-name'.
3773         * modules/unictype/joiningtype-name-tests: New file.
3774         * tests/unictype/test-joiningtype_name.c: New file.
3775
3776         New module 'unictype/joiningtype-name'.
3777         * modules/unictype/joiningtype-name: New file.
3778         * lib/unictype/joiningtype_name.c: New file.
3779
3780         unictype: Add support for Arabic shaping properties.
3781         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3782         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3783         declarations.
3784         (UC_JOINING_GROUP_*): New enumeration values.
3785         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3786         declarations.
3787         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3788         (unicode_joining_type): New variable.
3789         (UC_JOINING_GROUP_*): New enumeration values.
3790         (unicode_joining_group): New variable.
3791         (fill_arabicshaping, joining_type_as_c_identifier,
3792         output_joining_type_test, output_joining_type,
3793         joining_group_as_c_identifier, output_joining_group_test,
3794         output_joining_group): New functions.
3795         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3796         fill_arabicshaping and output_joining_type_test, output_joining_type,
3797         output_joining_group_test, output_joining_group.
3798         Reported by Simon Josefsson.
3799
3800 2011-03-21  Jim Meyering  <meyering@redhat.com>
3801
3802         strftime: fix a bug in yesterday's change
3803         * lib/strftime.c (add): Accommodate width's initial value of -1.
3804         Otherwise, nstrftime would copy uninitialized data into
3805         the result buffer.
3806
3807 2011-03-21  Jim Meyering  <meyering@redhat.com>
3808
3809         tests: add strftime-tests module
3810         * tests/test-strftime.c: New file.
3811         * modules/strftime-tests: New module.
3812
3813 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3814
3815         strftime: don't assume a byte count fits in 'int'
3816         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3817         found this problem by static analysis, using gcc -Wstrict-overflow
3818         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3819         on an integer overflow having undefined behavior, but it turns out
3820         that the argument is a size, which might not fit in 'int' anyway,
3821
3822 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3823
3824         stdio: don't require ignore_value around fwrite
3825
3826         This patch works around libc bug 11959
3827         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3828         Without this patch, applications must often write
3829         ignore_value (fwrite (...)) even though the ignore_value is
3830         not helpful here.  It's common to write many objects, using
3831         fwrite/printf/etc., and then use ferror to detect output error.
3832
3833         I considered making this patch optional, but decided against it,
3834         because libc is obviously being inconsistent here: there is no
3835         reason libc should insist that user code must inspect fwrite
3836         return's value without also insisting that it inspect printf's,
3837         putchar's, etc.  If user code wants to have a strict style where
3838         all these functions' values are checked (so that ferror need not
3839         be checked), we could add support for that style in a new gnulib
3840         module, but in the meantime it's better to be consistent and to
3841         support common usage.
3842
3843         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3844         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3845         that we are compiling in checking mode, and if not C++, and
3846         if not already wrapping fwrite for some other reason.
3847         (fwrite): #define to rpl_fwrite if the latter is defined.
3848
3849 2011-03-20  Bruno Haible  <bruno@clisp.org>
3850
3851         verror: Fix compilation error introduced on 2011-02-13.
3852         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3853         instead of __attribute__.
3854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3855
3856 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3857             Bruno Haible  <bruno@clisp.org>
3858
3859         socklen: do not depend on sys_socket
3860         While trying to modify Emacs to use gnulib's socklen module,
3861         I discovered a circular dependency: socklen depends on sys_socket
3862         and vice versa.  Emacs can use socklen, but it does not need
3863         sys_socket because it has its own substitute for sys/socket.h.
3864         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3865         gl_TYPE_SOCKLEN_T.
3866         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3867         gl_PREREQ_SYS_H_SOCKET.
3868         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3869         gl_PREREQ_SYS_H_SOCKET.
3870         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3871         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3872         * modules/socklen (Depends-on): Do not depend on sys_socket.
3873         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3874
3875 2011-03-20  Jim Meyering  <meyering@redhat.com>
3876
3877         maint.mk: sort file names *after* new transformation
3878         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3879         prefix would have led to an unwarranted failure in GNU parted.
3880         Sort after that transformation.
3881
3882 2011-03-19  Jim Meyering  <meyering@redhat.com>
3883
3884         maint.mk: fix po-file syntax-check rule
3885         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3886         Patch by Bruno Haible.
3887
3888 2011-03-19  Bruno Haible  <bruno@clisp.org>
3889
3890         socklen: Update comment.
3891         * m4/socklen.m4: Update comment about platforms.
3892
3893 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3894             Bruno Haible  <bruno@clisp.org>
3895
3896         inet_ntop, inet_pton: Simplify.
3897         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3898         documented to provide socklen_t and we already depend on sys_socket.
3899         * modules/inet_pton (Depends-on): Likewise.
3900         * lib/arpa_inet.in.h: Adjust comment.
3901
3902 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3903             Bruno Haible  <bruno@clisp.org>
3904
3905         netdb: Simplify.
3906         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3907         documented to provide socklen_t and we already depend on sys_socket.
3908         * lib/netdb.in.h: Adjust comment.
3909
3910 2011-03-19  Bruno Haible  <bruno@clisp.org>
3911
3912         sys_socket, netdb: Document problem with socklen_t.
3913         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3914         platforms.
3915         * doc/posix-headers/netdb.texi: Likewise.
3916
3917 2011-03-18  Eric Blake  <eblake@redhat.com>
3918
3919         maint.mk: let po check work in VPATH build
3920         * top/maint.mk (po_file): Allow cfg.mk override.
3921         (sc_po_check): Allow VPATH use.
3922         Reported by Jiri Denemark.
3923
3924 2011-03-16  Jim Meyering  <meyering@redhat.com>
3925
3926         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3927         Before, you would have had to create one .x-sc_ file per rule in order
3928         to exempt offending files.  Now, you may instead use a Make variable --
3929         usually defined in cfg.mk -- whose name identifies the affected rule.
3930         * top/maint.mk (_sc_excl): Define.
3931         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3932         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3933
3934 2011-03-13  Bruno Haible  <bruno@clisp.org>
3935
3936         ignore-value tests: Avoid warnings.
3937         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3938         empty for gcc < 3.4.
3939
3940 2011-03-13  Bruno Haible  <bruno@clisp.org>
3941
3942         passfd: Fix link error on Solaris.
3943         * modules/passfd (Description): Correct.
3944         (Depends-on): Add socketlib.
3945         (Link): New section.
3946         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3947
3948 2011-03-13  Bruno Haible  <bruno@clisp.org>
3949
3950         passfd: Fix link error on AIX 5.2.
3951         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3952
3953 2011-03-13  Bruno Haible  <bruno@clisp.org>
3954
3955         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3956         * lib/sys_socket.in.h: Include <stddef.h>.
3957         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3958         CMSG_FIRSTHDR. Remove unused variable.
3959
3960 2011-03-13  Bruno Haible  <bruno@clisp.org>
3961
3962         passfd: Fix compilation error on OpenBSD.
3963         * lib/passfd.c: Include <sys/uio.h>.
3964
3965 2011-03-13  Bruno Haible  <bruno@clisp.org>
3966
3967         passfd test: Fix warnings.
3968         * tests/test-passfd.c: Include <sys/wait.h>.
3969         (main): Fix typo.
3970
3971 2011-03-13  Bruno Haible  <bruno@clisp.org>
3972
3973         passfd module, part 4, tweaks.
3974         * tests/test-passfd.c: Reorder includes.
3975         (main): Fix perror and printf calls.
3976
3977 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3978
3979         passfd module, part 4.
3980         * modules/passfd-tests: New file.
3981         * tests/test-passfd.c: New file.
3982
3983 2011-03-13  Jim Meyering  <meyering@redhat.com>
3984
3985         Makefile: rely on GNU make; derive syntax-check rule names
3986         Rather than requiring that each sc_ rule be listed as a dependent
3987         of "check", use features of GNU make to derive the list.
3988         * Makefile (syntax-check-rules): Define.
3989         (check): Depend on the new variable, not the hard-coded list.
3990
3991 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3992             Bruno Haible  <bruno@clisp.org>
3993
3994         passfd module, part 3.
3995         * lib/passfd.h (recvfd): Add a flags argument.
3996         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3997         (recvfd): Add a flags argument.
3998         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3999         exists.
4000         * modules/passfd (Depends-on): Add cloexec.
4001         Suggested by Eric Blake.
4002
4003 2011-03-13  Bruno Haible  <bruno@clisp.org>
4004
4005         passfd module, part 2, tweaks.
4006         * modules/passfd (Files): Reorder.
4007         (Depends-on): Remove errno.
4008         (Include): Remove <sys/socket.h>, <sys/un.h>.
4009         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4010         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4011         specification header. Include <sys/socket.h> always. Don't include
4012         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4013         (sendfd): Clarify that it sets errno when it fails.
4014         (recvfd): Fix specification.
4015
4016 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4017
4018         passfd module, part 2.
4019         * modules/passfd: New file.
4020         * lib/passfd.h: New file.
4021         * lib/passfd.c: New file.
4022
4023 2011-03-12  Bruno Haible  <bruno@clisp.org>
4024
4025         wcswidth, mbswidth: Avoid integer overflow.
4026         * lib/wcswidth.c: Include <limits.h>.
4027         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4028         * lib/mbswidth.c: Include <limits.h>.
4029         (mbsnwidth): Avoid 'int' overflow.
4030         Reported by Jim Meyering.
4031
4032 2011-03-12  Bruno Haible  <bruno@clisp.org>
4033
4034         futimens, utimensat: Avoid endless recursion on Solaris 10.
4035         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4036         Solaris.
4037         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4038         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4039
4040 2011-03-11  Jim Meyering  <meyering@redhat.com>
4041
4042         maint.mk: relax a regexp to accommodate other formatting styles
4043         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4044         between "ngettext" and the following "(".
4045
4046 2011-03-11  Pádraig Brady <P@draigBrady.com>
4047
4048         maint.mk: suppress a false positive warning
4049         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4050         diagnostics are marked with ngettext.
4051
4052 2011-03-10  Eric Blake  <eblake@redhat.com>
4053
4054         wchar: add explicit dependencies, for Tru64
4055         * modules/mbmemcasecoll (Depends-on): Add wchar.
4056         * modules/mbtowc (Depends-on): Likewise.
4057         * modules/vasnprintf (Depends-on): Likewise.
4058         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4059         * modules/wctomb (Depends-on): Likewise.
4060         Reported by Peter O'Gorman.
4061
4062 2011-03-08  Bruno Haible  <bruno@clisp.org>
4063
4064         passfd module, part 1, tweaks.
4065         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4066         Improve indentation. Improve AC_MSG_CHECKING messages.
4067         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4068         gl_SOCKET_FAMILIES.
4069
4070 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4071
4072         passfd module, part 1.
4073         * m4/afunix.m4: New file.
4074         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4075         sockets.
4076
4077 2011-03-08  Bruno Haible  <bruno@clisp.org>
4078
4079         regex-quote: New API.
4080         * lib/regex-quote.h: Include <stdbool.h>.
4081         (struct regex_quote_spec): New type.
4082         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4083         New declarations.
4084         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4085         'const struct regex_quote_spec *' argument.
4086         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4087         (pcre_special): New constant.
4088         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4089         New functions.
4090         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4091         'const struct regex_quote_spec *' argument.
4092         * modules/regex-quote (Depends-on): Add stdbool.
4093         * tests/test-regex-quote.c (check): Update for new API. Add test for
4094         anchored results.
4095         * NEWS: Mention the API change.
4096         Reported by Reuben Thomas and Eric Blake.
4097
4098 2011-03-06  Bruno Haible  <bruno@clisp.org>
4099
4100         regex-quote: Fix creation of POSIX extended regular expressions.
4101         * lib/regex-quote.c (ere_special): Add grouping and alternation
4102         operators.
4103
4104 2011-03-05  Bruno Haible  <bruno@clisp.org>
4105
4106         doc: Improve doc regarding autopoint vs. gnulib.
4107         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4108         disable autopoint while running autoreconf.
4109         Suggested by Ralf Wildenhues.
4110
4111 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4112
4113         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4114         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4115
4116 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4117
4118         parse-duration: remove xalloc.h dependency
4119         * lib/parse-duration.c (parse_period): handle NULL return from
4120         strdup instead of calling xstrdup().
4121         * modules/parse-duration: remove "xalloc" dependency
4122
4123 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4124
4125         bootstrap: honor m4_base when running aclocal
4126         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4127
4128 2011-03-02  Jim Meyering  <meyering@redhat.com>
4129
4130         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4131         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4132         on request from Matt Booth.
4133
4134 2011-03-01  Eric Blake  <eblake@redhat.com>
4135
4136         test-link: work on Hurd
4137         * tests/test-link.h (test_link): Hurd rejects linking directories
4138         with EISDIR instead of the POSIX-mandated EPERM.
4139
4140 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4141
4142         stdio: simplify by moving files to printf-posix, sigpipe
4143         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4144         since this symbol is needed only if printf is replaced.
4145         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4146         Require gl_ASM_SYMBOL_PREFIX.
4147         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4148         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4149         (Depends-on): Add 'raise'.
4150         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4151         * modules/stdio (Files): Remove lib/stdio-write.c,
4152         m4/asm-underscore.m4.
4153         (Depends-on): Remove 'raise'.
4154
4155         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4156         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4157         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4158         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4159
4160 2011-02-28  Bruno Haible  <bruno@clisp.org>
4161
4162         localcharset: Assume ANSI C behaviour of free().
4163         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4164         calling free().
4165         Suggested by Simon Josefsson <simon@josefsson.org>.
4166
4167 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4168             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4169             Bruno Haible  <bruno@clisp.org>  (tiny change)
4170
4171         On Cygwin, use /proc file system instead of win32 API.
4172         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4173         Win32 file names.
4174         (DllMain): Simplify by removing Cygwin specific code.
4175         (find_shared_library_fullname): Use Linux specific implementation also
4176         for Cygwin.
4177         (get_shared_library_fullname): Update accordingly.
4178         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4179         Win32 file names.
4180         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4181         Cygwin specific code.
4182
4183 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4184             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4185
4186         Fix OpenMP flag detection for various Fortran compilers.
4187         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4188         OpenMP-conditional compilation construct, to force compile
4189         failure with missing OpenMP flag.
4190         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4191
4192 2011-02-25  Eric Blake  <eblake@redhat.com>
4193
4194         strstr: expand test coverage
4195         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4196         compilation.
4197         * tests/test-memmem.c (main): Duplicate tests.
4198         * tests/test-strcasestr.c (main): Likewise.
4199         * tests/test-c-strcasestr.c (main): Likewise.
4200
4201 2011-02-25  Jim Meyering  <meyering@redhat.com>
4202
4203         maint.mk: detect missing-NL-at-EOF, too
4204         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4205         it also detects when a file lacks a newline at EOF.
4206         (require_exactly_one_NL_at_EOF_): Renamed from
4207         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4208         since people may well have .x-sc_... file names tied to the
4209         existing name.  Suggested by Eric Blake.
4210
4211 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4212
4213         dirname: move m4/dos.m4 functionality into lib/dosname.h
4214
4215         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4216         extracts symbols from it, puts them into config.h; but it's much
4217         easier to use the symbols directly.  filename.h already does this,
4218         but it disagrees with dos.m4 in some respects.  This patch
4219         introduces a different include file dosname.h that packages up
4220         dos.m4, and then later we can work on merging filename.h and
4221         dosname.h.  Applications that need only the easy-to-configure
4222         symbols should consider including dosname.h rather than dirname.h.
4223         * NEWS: Mention incompatible changes.
4224         * m4/dos.m4: Remove.
4225         * lib/dosname.h, modules/dosname: New files.
4226         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4227         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4228         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4229         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4230         Include dosname.h, not dirname.h.
4231         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4232         Include dosname.h, for definitions of symbols like ISSLASH
4233         that used to be in config.h.
4234         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4235         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4236         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4237         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4238         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4239         * modules/rmdir (Files): Likewise.
4240         * modules/stat (Files): Likewise.
4241         * modules/unlink (Files): Likewise.
4242         * modules/dirname-lgpl (Depends-on): Add dosname.
4243         * modules/lstat (Depends-on): Likewise.
4244         * modules/openat (Depends-on): Likewise.
4245         * modules/rmdir (Depends-on): Likewise.
4246         * modules/savewd (Depends-on): Likewise.
4247         * modules/stat (Depends-on): Likewise.
4248         * modules/unlink (Depends-on): Likewise.
4249         * modules/openat (Depends-on): Remove dirname-lgpl.
4250         * modules/savewd (Depends-on): Likewise.
4251         * tests/test-dirname.c: Do not use removed symbols like
4252         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4253         the remaining symbols, e.g., ISSLASH ('\\').
4254
4255 2011-02-25  Eric Blake  <eblake@redhat.com>
4256
4257         strstr: revert patches that introduced bug and pessimization
4258         * lib/str-two-way.h: Add another reference.
4259         (two_way_short_needle, two_way_long_needle): Revert changes from
4260         2011-02-24; they pessimize search speed.
4261         (critical_factorization): Partially revert changes from
4262         2010-06-22; they violate the requirement that the left half of the
4263         needle be smaller than the period of the needle.
4264
4265 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4266
4267         filenamecat: remove unnecessary dependency on dirname-lgpl
4268         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4269         is no direct dependency, just an indirect one via filenamecat-lgpl.
4270
4271         remove: remove unnecessary use of m4/dos.m4
4272         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4273         * modules/remove (FILES): Remove m4/dos.m4.
4274
4275         * lib/openat-proc.c: Don't include dirname.h; not needed.
4276
4277         backupfile: remove unnecessary use of m4/dos.m4
4278         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4279         of its symbols are used by the backupfile code.  backupfile.c does
4280         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4281         for the rare case of programs that want all their backup file
4282         names to live within 8+3 limits, and dos.m4 doesn't address that.
4283         * modules/backupfile (Files): Remove m4/dos.m4.
4284
4285 2011-02-24  Jim Meyering  <meyering@redhat.com>
4286
4287         strstr: fix a bug whereby strstr would mistakenly return NULL
4288         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4289         in period calculation.
4290         (two_way_long_needle): Likewise.
4291         The original problem was reported by Mike Stump in
4292         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4293         Ralf Wildenhues provided the short needle and haystack.
4294         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4295         Add a more involved test to trigger the bug in two_way_long_needle.
4296
4297 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4298
4299         gnulib-tool: remove use of bold display in help screen
4300         * gnulib-tool (func_usage): Do not use bold display anymore in the
4301         help screen.  That was just meant to be a temporary emphasis for a
4302         backward-incompatible change.
4303
4304 2011-02-23  Bruno Haible  <bruno@clisp.org>
4305
4306         Fix misindentation of preprocessor directives.
4307         * lib/argp-namefrob.h: Reindent preprocessor directives.
4308         * lib/getopt_int.h (struct _getopt_data): Likewise.
4309         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4310         * lib/vasnprintf.c (decode_long_double): Likewise.
4311         * tests/test-argmatch.c: Insert blank lines, for clarity.
4312         * tests/test-exclude.c: Likewise.
4313
4314 2011-02-22  Bruno Haible  <bruno@clisp.org>
4315
4316         ioctl: Fix for MacOS X in 64-bit mode.
4317         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4318         value.
4319         Suggested by Eric Blake.
4320         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4321
4322 2011-02-22  Jim Meyering  <meyering@redhat.com>
4323
4324         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4325         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4326         in lib/.
4327
4328 2011-02-22  Eric Blake  <eblake@redhat.com>
4329
4330         maint: avoid any CDPATH issue
4331         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4332
4333         maint: adjust cpp indentation for my modules, as well
4334         * Makefile (sc_cpp_indent_check): Add my name.
4335         * lib/fbufmode.c: Filter through cppi.
4336         * lib/fpurge.c: Likewise.
4337         * lib/freadable.c: Likewise.
4338         * lib/freading.c: Likewise.
4339         * lib/fwritable.c: Likewise.
4340         * lib/fwriting.c: Likewise.
4341         * lib/sigaction.c: Likewise.
4342
4343 2011-02-22  Jim Meyering  <meyering@redhat.com>
4344
4345         maint: adjust cpp indentation to reflect nesting depth
4346         I.e., in a block of code that begins with an unnested "#if",
4347         put one space between the "#" in column 1 and following token.
4348         For example,
4349         -#include <sys/vfs.h>
4350         +# include <sys/vfs.h>
4351         Do this only in .c files that are part of a module I maintain.
4352         * lib/linkat.c: Filter through cppi.
4353         * lib/nanosleep.c: Likewise.
4354         * lib/openat.c: Likewise.
4355         * lib/openat-die.c: Likewise.
4356         * lib/dup3.c: Likewise.
4357         * lib/fchownat.c: Likewise.
4358         * lib/flock.c: Likewise.
4359         * lib/fsync.c: Likewise.
4360         * lib/fts.c: Likewise.
4361         * lib/getpass.c: Likewise.
4362         * lib/gettimeofday.c: Likewise.
4363         * lib/userspec.c: Likewise.
4364         * Makefile (sc_cpp_indent_check): New rule, to check this.
4365
4366 2011-02-22  Bruno Haible  <bruno@clisp.org>
4367
4368         New module 'wctomb'.
4369         * lib/stdlib.in.h (wctomb): New declaration.
4370         * lib/wctomb.c: New file.
4371         * lib/wctomb-impl.h: New file.
4372         * m4/wctomb.m4: New file.
4373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4374         REPLACE_WCTOMB.
4375         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4376         REPLACE_WCTOMB.
4377         * modules/wctomb: New file.
4378         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4379         * doc/posix-functions/wctomb.texi: Mention the new module.
4380         * modules/wctob (Depends-on): Add wctomb.
4381
4382 2011-02-22  Bruno Haible  <bruno@clisp.org>
4383
4384         New module 'mbtowc'.
4385         * lib/stdlib.in.h (mbtowc): New declaration.
4386         * lib/mbtowc.c: New file.
4387         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4388         * m4/mbtowc.m4: New file.
4389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4390         REPLACE_MBTOWC.
4391         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4392         REPLACE_MBTOWC.
4393         * modules/mbtowc: New file.
4394         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4395         * doc/posix-functions/mbtowc.texi: Mention the new module.
4396         * modules/btowc (Depends-on): Add mbtowc.
4397
4398 2011-02-22  Bruno Haible  <bruno@clisp.org>
4399
4400         wcrtomb: Add more tests for native Windows platforms.
4401         * tests/test-wcrtomb-w32-1.sh: New file.
4402         * tests/test-wcrtomb-w32-2.sh: New file.
4403         * tests/test-wcrtomb-w32-3.sh: New file.
4404         * tests/test-wcrtomb-w32-4.sh: New file.
4405         * tests/test-wcrtomb-w32-5.sh: New file.
4406         * tests/test-wcrtomb-w32.c: New file.
4407         * modules/wcrtomb-tests (Files): Add them.
4408         (Makefile.am): Arrange to run these tests.
4409         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4410         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4411
4412 2011-02-20  Bruno Haible  <bruno@clisp.org>
4413
4414         wcrtomb: Enhance test.
4415         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4416
4417 2011-02-20  Bruno Haible  <bruno@clisp.org>
4418
4419         mbrtowc: Tiny optimization.
4420         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4421
4422 2011-02-20  Jim Meyering  <meyering@redhat.com>
4423
4424         test-exclude.c: remove unmatched #endif
4425         * tests/test-exclude.c: Remove stray #endif, left over from
4426         the change of a week ago.
4427
4428 2011-02-19  Jim Meyering  <meyering@redhat.com>
4429
4430         git-version-gen: skip "-dirty" check when appropriate
4431         * build-aux/git-version-gen: Don't run any git commands when the
4432         version string comes from .tarball-version.  Prior to this, we
4433         would run git update-index --refresh even from a just-unpacked
4434         tarball directory, and that could affect a .git/ directory in a
4435         parent of the build directory.  Reported by Mike Frysinger.
4436
4437 2011-02-19  Bruno Haible  <bruno@clisp.org>
4438
4439         unictype/property-byname: Reduce the size of the 'data' segment.
4440         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4441
4442 2011-02-19  Bruno Haible  <bruno@clisp.org>
4443
4444         unictype/scripts: Reduce the size of the 'data' segment.
4445         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4446         '%pic'.
4447         * lib/unictype/scripts_byname.gperf: Regenerated.
4448
4449 2011-02-19  Bruno Haible  <bruno@clisp.org>
4450
4451         stdint: Update documentation.
4452         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4453
4454 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4455
4456         stdint: omit redundant check for wchar.h
4457         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4458         always tests whether wchar.h exists, so remove the now-redundant test.
4459
4460 2011-02-18  Bruno Haible  <bruno@clisp.org>
4461
4462         stdint: Cut dependency to module 'wchar'.
4463         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4464         include the necessary prerequisites.
4465         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4466         * modules/stdint (Depends-on): Remove wchar.
4467         (Makefile.am): Substitute HAVE_WCHAR_H.
4468         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4469
4470 2011-02-18  Eric Blake  <eblake@redhat.com>
4471
4472         longlong: skip, rather than fail, on cross-compilation
4473         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4474         when cross-compiling; regression from 2011-02-16.
4475
4476 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4477
4478         * NEWS: Mention 2011-02-08 change to stdlib.
4479
4480 2011-02-17  Bruno Haible  <bruno@clisp.org>
4481
4482         getloadavg: Add comments about platforms.
4483         * m4/getloadavg.m4: Add comment.
4484         * lib/getloadavg.c: Likewise.
4485
4486 2011-02-17  Bruno Haible  <bruno@clisp.org>
4487
4488         getloadavg: Fix link error on Solaris 2.6.
4489         * modules/getloadavg (Link): New section.
4490         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4491         linking test-getloadavg.
4492         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4493         getloadavg.
4494
4495 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4496
4497         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4498         It was 'int', but this doesn't match the IRIX 6.5 manual.
4499         Suggested by Bruno Haible in
4500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4501
4502 2011-02-17  Bruno Haible  <bruno@clisp.org>
4503
4504         havelib: Fix comments.
4505         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4506         change.
4507
4508 2011-02-17  Bruno Haible  <bruno@clisp.org>
4509
4510         havelib: Update config.rpath.
4511         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4512
4513 2011-02-17  Bruno Haible  <bruno@clisp.org>
4514
4515         getloadavg test: Add some plausibility checks.
4516         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4517         is improbable.
4518
4519 2011-02-16  Eric Blake  <eblake@redhat.com>
4520
4521         maintainer-makefile: make syntax-check a no-op from tarballs
4522         * top/maint.mk (no-vc-detected): New rule.
4523         (local-checks-available): Use it to avoid hanging if someone tries
4524         'make syntax-check' from a tarball.  Also append to any non-syntax
4525         checks already defined in cfg.mk.
4526
4527 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4528
4529         longlong: tune, particularly for common case of c99
4530
4531         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4532         or running anything if c99, or if unsigned long long int does not
4533         work.  In either case, we know the answer without further tests.
4534         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4535         it at most once, and use its results for both long long int and
4536         unsigned long long int.  This is more likely to be efficient in
4537         the common case where the program wants to check for both long
4538         long int and unsigned long long int.
4539         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4540         since the answer is already known.
4541
4542 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4543
4544         getloadavg: set errno
4545         * lib/getloadavg.c: Set errno when returning -1.  If no other
4546         error number looks appropriate, set it to ENOSYS if the getloadavg
4547         looks like it can't possibly ever work, ENOTSUP otherwise.
4548         Suggested by Bruno Haible in
4549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4550
4551         getloadavg: trim unused parts and speed up 'configure'
4552         * NEWS: Document this.
4553         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4554         always compiled if getloadavg is absent.
4555         Move test code to ...
4556         * tests/test-getloadavg.c: New file, containing previous
4557         contents of test from lib/getloadavg.c.  It also contains
4558         suggestions by Bruno Haible in
4559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4560         * modules/getloadavg-tests: New file.
4561         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4562         Do tests in the same order as they're needed for getloadavg.c.
4563         Omit setgid-related tests that generate symbols KMEM_GROUP,
4564         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4565         Do only the tests that are needed to see whether the system has
4566         getloadavg, moving the other tests into ...
4567         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4568         NLIST_NAME_UNION; nobody should be using it.  Do not define
4569         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4570         relevant, as the user of this module shouldn't care how getloadavg
4571         is implemented.
4572
4573         getloadavg: omit unused var
4574         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4575
4576 2011-02-15  Jim Meyering  <meyering@redhat.com>
4577
4578         doc: update users.txt
4579         * users.txt: Update iwhd's URL.
4580
4581 2011-02-13  Bruno Haible  <bruno@clisp.org>
4582
4583         Consistent macro naming for macros that use GCC __attribute__.
4584         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4585         _ATTRIBUTE_NONNULL_.
4586         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4587         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4588         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4589         ATTRIBUTE_DEPRECATED.
4590         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4591         ATTRIBUTE_NORETURN.
4592         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4593         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4594         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4595         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4596         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4597         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4598         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4599         ATTRIBUTE_SENTINEL.
4600         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4601         ATTRIBUTE_RETURN_CHECK.
4602         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4603         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4604         ATTRIBUTE_NORETURN.
4605         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4606         Reported by Paul Eggert.
4607
4608 2011-02-13  Bruno Haible  <bruno@clisp.org>
4609
4610         Don't interfere with a program's definition of __attribute__.
4611         * lib/argp.h (__attribute__): Remove definition.
4612         (_GL_ATTRIBUTE_FORMAT): New macro.
4613         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4614         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4615         (_GL_ATTRIBUTE_FORMAT): New macro.
4616         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4617         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4618         GCC 3 or newer.
4619         * lib/error.h (__attribute__): Remove definition.
4620         (_GL_ATTRIBUTE_FORMAT): New macro.
4621         (error, error_at_line): Use it.
4622         * lib/hash.h (__attribute__): Remove definition.
4623         (ATTRIBUTE_WUR): Update definition. Define always.
4624         * lib/openat.h (__attribute__): Remove definition.
4625         (ATTRIBUTE_NORETURN): Update definition. Define always.
4626         * lib/sigpipe-die.h (__attribute__): Remove definition.
4627         (ATTRIBUTE_NORETURN): Update definition. Define always.
4628         * lib/vasnprintf.h (__attribute__): Remove definition.
4629         (_GL_ATTRIBUTE_FORMAT): New macro.
4630         (asnprintf, vasnprintf): Use it.
4631         * lib/xalloc.h (__attribute__): Remove definition.
4632         (ATTRIBUTE_NORETURN): Update definition. Define always.
4633         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4634         * lib/xmemdup0.h (__attribute__): Remove definition.
4635         (ATTRIBUTE_NORETURN): Update definition. Define always.
4636         * lib/xprintf.h (__attribute__): Remove definition.
4637         (_GL_ATTRIBUTE_FORMAT): New macro.
4638         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4639         * lib/xstrtol.h (__attribute__): Remove definition.
4640         (ATTRIBUTE_NORETURN): Update definition. Define always.
4641         * lib/xvasprintf.h (__attribute__): Remove definition.
4642         (_GL_ATTRIBUTE_FORMAT): New macro.
4643         (xasprintf, xvasprintf): Use it.
4644         * tests/test-argmatch.c (__attribute__): Remove definition.
4645         (ATTRIBUTE_NORETURN): Update definition. Define always.
4646         * tests/test-exclude.c (__attribute__): Remove definition.
4647         (ATTRIBUTE_NORETURN): Update definition. Define always.
4648         Reported by Paul Eggert.
4649
4650 2011-02-13  Bruno Haible  <bruno@clisp.org>
4651
4652         mbrtowc: Add more tests for native Windows platforms.
4653         * tests/test-mbrtowc-w32-1.sh: New file.
4654         * tests/test-mbrtowc-w32-2.sh: New file.
4655         * tests/test-mbrtowc-w32-3.sh: New file.
4656         * tests/test-mbrtowc-w32-4.sh: New file.
4657         * tests/test-mbrtowc-w32-5.sh: New file.
4658         * tests/test-mbrtowc-w32.c: New file.
4659         * modules/mbrtowc-tests (Files): Add them.
4660         (Makefile.am): Arrange to run these tests.
4661         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4662         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4663
4664 2011-02-13  Bruno Haible  <bruno@clisp.org>
4665
4666         mbrtowc: Work around native Windows bug.
4667         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4668         guess when no suitable locale for testing was found.
4669         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4670
4671 2011-02-13  Bruno Haible  <bruno@clisp.org>
4672
4673         mbsinit: Work around mingw bug.
4674         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4675         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4676         Windows.
4677         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4678
4679 2011-02-13  Bruno Haible  <bruno@clisp.org>
4680
4681         mbsinit: Don't crash for a NULL argument.
4682         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4683         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4684
4685 2011-02-13  Bruno Haible  <bruno@clisp.org>
4686
4687         Don't interfere with a program's definition of __attribute__.
4688         * lib/stdio.in.h (__attribute__): Remove definition.
4689         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4690         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4691         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4692         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4693         * lib/string.in.h (__attribute__): Remove definition.
4694         Reported by Paul Eggert.
4695
4696 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4697
4698         stdlib: don't get in the way of non-GCC __attribute__
4699         See thread starting at
4700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4701         Revert previous stdlib change, installing the following instead:
4702         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4703         to get in the way of a non-GCC compiler that supports __attribute__.
4704         (_GL_ATTRIBUTE_RETURN): New macro.
4705         (_Exit): Use it instead of __attribute__.
4706
4707 2011-02-12  Bruno Haible  <bruno@clisp.org>
4708
4709         quotearg test: Avoid test failure on mingw.
4710         * tests/test-quotearg.sh: Convert the locale identifier from native
4711         Windows syntax to Unix syntax.
4712
4713 2011-02-12  Bruno Haible  <bruno@clisp.org>
4714
4715         setlocale: Prefer gnulib's override over libintl's override.
4716         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4717         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4718         GNULIB_defined_setlocale is set.
4719
4720 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4721
4722         stdlib: support non-GCC __attribute__
4723
4724         Fix a serious and tricky problem encountered when attempting to
4725         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4726         5.5, but it crashed due to memory corruption on Solaris 10 with
4727         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4728         bits that are otherwise zero.  This tagging is optional inside
4729         Emacs but is preferred and is used when __attribute__ ((__aligned
4730         (8))) works, as it does with both recent-enough GCC and with Sun C
4731         5.11.  However, Sun C 5.11 is not GCC and does not #define
4732         __GNUC__ and __GNUC_MINOR__.
4733
4734         When I added the getloadavg module to Emacs, it brought in
4735         stdlib.in.h, which contained this fragment:
4736
4737            #ifndef __attribute__
4738            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4739            #  define __attribute__(Spec)   /* empty */
4740            # endif
4741            #endif
4742
4743         When files that include <stdlib.h> were compiled with Sun C 5.11,
4744         the above code disabled __attribute__ ((__aligned (8))), which
4745         caused variables to not be properly aligned, which eventually led
4746         to the pointer corruption mentioned above.  (This was a bit hard
4747         to diagnose, unfortunately.)
4748
4749         Several "#define __attribute__(X) /* empty */" code snippets need
4750         to be eradicated from Gnulib to work with non-GCC compilers that
4751         support __attribute__.  The Autoconf way to do this is to test for
4752         each kind of attribute that we want support for, and selectively
4753         enable that in source code.
4754
4755         Fix this problem just for stdlib.h, by adding a test for the
4756         __noreturn__ attribute, and change stdlib.in.h to use that test
4757         when needed.  This technique can be easily generalized to the
4758         other *.in.h files and attributes, and a similar technique can be
4759         used for *.h and *.c files.  This patch is enough to solve the
4760         problem for Emacs + getloadavg, and I thought I'd publish it for
4761         feedback before undertaking further, similar fixes in other
4762         modules.
4763
4764         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4765         because it's not needed for stdlib.h.  It merely substitutes the
4766         value directly into stdlib.h.  We may well need to #define it, or
4767         similar symbols, for other modules, but it's nice to also have an
4768         option to not #define it for applications like Emacs that do not
4769         need it.
4770
4771         * lib/stdlib.in.h (__attribute__): Do not #define.
4772         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4773         be defined only if the _Exit module is also used.
4774         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4776         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4777         platforms.
4778         * modules/_Exit (Files): Add m4/attribute.m4.
4779         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4780         * m4/attribute.m4: New file.
4781
4782 2011-02-12  Bruno Haible  <bruno@clisp.org>
4783
4784         wcsrtombs: Work around bug on native Windows.
4785         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4786         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4787         instead of len.
4788         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4789
4790 2011-02-12  Bruno Haible  <bruno@clisp.org>
4791
4792         mbsrtowcs: Work around bug on native Windows.
4793         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4794         against mingw bug.
4795         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4796
4797 2011-02-12  Bruno Haible  <bruno@clisp.org>
4798
4799         Avoid setlocale bugs in tests.
4800         * modules/btowc (Dependencies): Add setlocale.
4801         * modules/c-strcase (Dependencies): Likewise.
4802         * modules/mbmemcasecmp (Dependencies): Likewise.
4803         * modules/mbmemcasecoll (Dependencies): Likewise.
4804         * modules/mbrtowc (Dependencies): Likewise.
4805         * modules/mbscasecmp (Dependencies): Likewise.
4806         * modules/mbscasestr (Dependencies): Likewise.
4807         * modules/mbschr (Dependencies): Likewise.
4808         * modules/mbscspn (Dependencies): Likewise.
4809         * modules/mbsinit (Dependencies): Likewise.
4810         * modules/mbsncasecmp (Dependencies): Likewise.
4811         * modules/mbsnrtowcs (Dependencies): Likewise.
4812         * modules/mbspbrk (Dependencies): Likewise.
4813         * modules/mbspcasecmp (Dependencies): Likewise.
4814         * modules/mbsrchr (Dependencies): Likewise.
4815         * modules/mbsrtowcs (Dependencies): Likewise.
4816         * modules/mbsspn (Dependencies): Likewise.
4817         * modules/mbsstr (Dependencies): Likewise.
4818         * modules/nl_langinfo (Dependencies): Likewise.
4819         * modules/quotearg (Dependencies): Likewise.
4820         * modules/unicase/locale-language (Dependencies): Likewise.
4821         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4822         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4823         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4824         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4825         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4826         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4827         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4828         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4829         * modules/vasnprintf-posix (Dependencies): Likewise.
4830         * modules/wcrtomb (Dependencies): Likewise.
4831         * modules/wcsnrtombs (Dependencies): Likewise.
4832         * modules/wcsrtombs (Dependencies): Likewise.
4833
4834 2011-02-12  Bruno Haible  <bruno@clisp.org>
4835
4836         setlocale: Workaround native Windows bug.
4837         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4838         succeeds but sets LC_CTYPE to "C", report a failure.
4839         * tests/test-setlocale2.sh: New file.
4840         * tests/test-setlocale2.c: New file.
4841         * modules/setlocale-tests (Files): Add the new files.
4842         (Makefile.am): Enable test-setlocale2.sh test.
4843         * doc/posix-functions/setlocale.texi: Mention workaround.
4844
4845 2011-02-11  Bruno Haible  <bruno@clisp.org>
4846
4847         Tests for module 'setlocale'.
4848         * modules/setlocale-tests: New file.
4849         * tests/test-setlocale1.sh: New file.
4850         * tests/test-setlocale1.c: New file.
4851
4852         New module 'setlocale'.
4853         * lib/locale.in.h (setlocale): New declaration.
4854         * lib/setlocale.c: New file, based on
4855         gettext/gettext-runtime/intl/setlocale.c.
4856         * m4/setlocale.m4: New file.
4857         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4858         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4859         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4860         REPLACE_SETLOCALE.
4861         * modules/setlocale: New file.
4862         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4863         * doc/posix-functions/setlocale.texi: Mention the new module.
4864
4865 2011-02-11  Bruno Haible  <bruno@clisp.org>
4866
4867         Prepare for locale dependent tests on mingw.
4868         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4869         because it has the wrong locale encoding.
4870         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4871         French_France.1252 instead of "fr".
4872         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4873         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4874         because it has the wrong locale encoding.
4875         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4876         native Windows, try Turkish_Turkey.65001.
4877         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4878         Chinese_China.54936.
4879
4880         Prepare for locale dependent tests on mingw.
4881         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4882         differently.
4883         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4884         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4885         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4886         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4887
4888 2011-02-11  Eric Blake  <eblake@redhat.com>
4889
4890         strptime: avoid compiler warnings
4891         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4892         compiler warnings about dead code.
4893         Reported by Daniel P. Berrange.
4894
4895 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4896
4897         doc: update users.txt
4898         * users.txt: Add rcs.
4899
4900 2011-02-10  John W. Eaton  <jwe@gnu.org>
4901
4902         doc: update users.txt
4903         * users.txt: Add octave.
4904
4905 2011-02-10  Jim Meyering  <meyering@redhat.com>
4906
4907         doc: update users.txt
4908         * users.txt: Add iwhd.
4909
4910 2011-02-09  Bruno Haible  <bruno@clisp.org>
4911
4912         gnulib-tool: Make copyright notice adjustment more robust.
4913         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4914         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4915         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4916         License".
4917         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4918
4919 2011-02-06  Bruno Haible  <bruno@clisp.org>
4920
4921         New module 'towctrans'.
4922         * modules/towctrans: New file.
4923         * lib/wctype.in.h (towctrans): New declaration.
4924         * lib/towctrans.c: New file.
4925         * lib/towctrans-impl.h: New file.
4926         * m4/towctrans.m4: New file.
4927         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4928         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4929         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4930         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4931         * doc/posix-functions/towctrans.texi: Mention the new module.
4932
4933 2011-02-06  Bruno Haible  <bruno@clisp.org>
4934
4935         New module 'wctrans'.
4936         * modules/wctrans: New file.
4937         * lib/wctype.in.h (wctrans): New declaration.
4938         * lib/wctrans.c: New file.
4939         * lib/wctrans-impl.h: New file.
4940         * m4/wctrans.m4: New file.
4941         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4942         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4943         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4944         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4945         * doc/posix-functions/wctrans.texi: Mention the new module.
4946
4947 2011-02-06  Bruno Haible  <bruno@clisp.org>
4948
4949         New module 'iswctype'.
4950         * modules/iswctype: New file.
4951         * lib/wctype.in.h (iswctype): New declaration.
4952         * lib/iswctype.c: New file.
4953         * lib/iswctype-impl.h: New file.
4954         * m4/iswctype.m4: New file.
4955         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4956         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4957         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4958         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4959         * doc/posix-functions/iswctype.texi: Mention the new module and the
4960         HP-UX 11.00 problem.
4961
4962 2011-02-06  Bruno Haible  <bruno@clisp.org>
4963
4964         New module 'wctype'.
4965         * modules/wctype: Change to represent the wctype() substitute.
4966         * lib/wctype.in.h (wctype): New declaration.
4967         * lib/wctype.c: New file.
4968         * lib/wctype-impl.h: New file.
4969         * m4/wctype.m4: New file.
4970         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4971         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4972         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4973         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4974         * doc/posix-functions/wctype.texi: Mention the new module and the
4975         HP-UX 11.00 problem.
4976
4977 2011-02-06  Bruno Haible  <bruno@clisp.org>
4978
4979         wctype-h: Ensure wctype_t and wctrans_t are defined.
4980         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4981         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4982         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4983         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4984         HAVE_WCTRANS_T.
4985         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4986
4987 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4988
4989         flock: fix license typo
4990
4991         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4992         omitted.
4993
4994 2011-02-08  Bruno Haible  <bruno@clisp.org>
4995
4996         Split large sed scripts, for HP-UX sed.
4997         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4998         to avoid HP-UX limit of 99 commands, in the near future.
4999         * modules/stdlib (Makefile.am): Likewise.
5000         * modules/unistd (Makefile.am): Likewise.
5001         * modules/wchar (Makefile.am): Likewise.
5002         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5003         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5004         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5005
5006 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5007             Bruno Haible  <bruno@clisp.org>
5008
5009         stdlib: improve random_r modularization
5010         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5011         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5012         you also need the random_r module to get this material right.
5013         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5014         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5015         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5016
5017 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5018
5019         stdlib: don't depend on stdint
5020         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5021         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5022         be independent of whether stdint.h is needed.
5023         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5024         here, instead of ...
5025         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5026         struct random_data should be using the random_r module, not just
5027         the stdlib module (which wouldn't make sense: what package needs
5028         just struct random_data without also needing random_r?).
5029         * modules/stdlib (Depends-on): Remove stdint.
5030
5031         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5032         See the thread rooted at
5033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5034         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5035         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5036         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5037         __VMS)); previously it was always included (via fcntl--.h).
5038         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5039         hand; this is good enough for load averages.  Also, do not use
5040         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5041         flags directly if available and don't bother otherwise.  (Packages
5042         that need the extra reliability should use the modules that define
5043         these flags on older platforms that lack them.)
5044         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5045         fcntl-safer.
5046
5047 2011-02-08  Jim Meyering  <meyering@redhat.com>
5048
5049         di-set.h, ino-map.h: add multiple-inclusion guard
5050         Technically, the guard is required only for ino-map.h, due to its
5051         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5052         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5053         * lib/ino-map.h: Likewise.
5054
5055 2011-02-06  Bruno Haible  <bruno@clisp.org>
5056
5057         iswblank: Ensure declaration on glibc systems.
5058         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5059         * modules/iswblank (Dependencies): Add 'extensions'.
5060         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5061
5062 2011-02-06  Bruno Haible  <bruno@clisp.org>
5063
5064         New module 'iswblank'.
5065         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5066         * modules/iswblank: New file.
5067         * modules/wctype-h (Files): Remove lib/iswblank.c.
5068         (Makefile.am): Substitute GNULIB_ISWBLANK.
5069         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5070         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5071         (gl_WCTYPE_H_DEFAULTS): New macro.
5072         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5073         * modules/iswblank-tests: New file.
5074         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5075         * tests/test-wctype-h.c (main): Remove iswblank tests.
5076         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5077         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5078         of 'wctype-h'.
5079         * NEWS: Mention the change.
5080         * modules/mbchar (Depends-on): Add iswblank.
5081
5082 2011-02-08  Bruno Haible  <bruno@clisp.org>
5083
5084         di-set tests: Refactor.
5085         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5086         unnecessary includes.
5087         (ASSERT): Remove macro.
5088         (main): Make C90 compliant by avoiding variable declaration after
5089         statement.
5090         * modules/di-set-tests (Files): Add tests/macros.h.
5091
5092 2011-02-08  Bruno Haible  <bruno@clisp.org>
5093
5094         ino-map tests: Refactor.
5095         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5096         unnecessary includes.
5097         (ASSERT): Remove macro.
5098         (main): Make C90 compliant by avoiding variable declaration after
5099         statement.
5100         * modules/ino-map-tests (Files): Add tests/macros.h.
5101
5102 2011-02-08  Jim Meyering  <meyering@redhat.com>
5103
5104         di-set: add "const" to a cast
5105         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5106         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5107
5108 2011-02-06  Bruno Haible  <bruno@clisp.org>
5109
5110         Rename module 'wctype' to 'wctype-h'.
5111         * modules/wctype-h: Renamed from modules/wctype.
5112         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5113         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5114         (Files, Depends-on, Makefile.am): Update.
5115         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5116         (Files, Makefile.am): Update.
5117         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5118         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5119         * doc/posix-headers/wctype.texi: Update.
5120         * doc/posix-functions/iswalnum.texi: Update.
5121         * doc/posix-functions/iswalpha.texi: Update.
5122         * doc/posix-functions/iswblank.texi: Update.
5123         * doc/posix-functions/iswcntrl.texi: Update.
5124         * doc/posix-functions/iswdigit.texi: Update.
5125         * doc/posix-functions/iswgraph.texi: Update.
5126         * doc/posix-functions/iswlower.texi: Update.
5127         * doc/posix-functions/iswprint.texi: Update.
5128         * doc/posix-functions/iswpunct.texi: Update.
5129         * doc/posix-functions/iswspace.texi: Update.
5130         * doc/posix-functions/iswupper.texi: Update.
5131         * doc/posix-functions/iswxdigit.texi: Update.
5132         * doc/posix-functions/towlower.texi: Update.
5133         * doc/posix-functions/towupper.texi: Update.
5134         * NEWS: Mention the change.
5135         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5136         * modules/mbchar (Dependencies): Likewise.
5137         * modules/mbswidth (Dependencies): Likewise.
5138         * modules/quotearg (Dependencies): Likewise.
5139         * modules/regex (Dependencies): Likewise.
5140         * modules/wcscasecmp (Dependencies): Likewise.
5141         * modules/wcsncasecmp (Dependencies): Likewise.
5142         * modules/wcwidth (Dependencies): Likewise.
5143
5144 2011-02-06  Bruno Haible  <bruno@clisp.org>
5145
5146         New module 'wcswidth'.
5147         * modules/wcswidth: New file.
5148         * lib/wchar.in.h (wcswidth): New declaration.
5149         * lib/wcswidth.c: New file.
5150         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5151         * m4/wcswidth.m4: New file.
5152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5154         REPLACE_WCSWIDTH.
5155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5156         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5157         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5158         * doc/posix-functions/wcswidth.texi: Mention the new module.
5159
5160 2011-02-06  Bruno Haible  <bruno@clisp.org>
5161
5162         New module 'wcstok'.
5163         * modules/wcstok: New file.
5164         * lib/wchar.in.h (wcstok): New declaration.
5165         * lib/wcstok.c: New file.
5166         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5167         * m4/wcstok.m4: New file.
5168         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5169         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5170         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5171         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5172         * doc/posix-functions/wcstok.texi: Mention the new module.
5173
5174 2011-02-06  Bruno Haible  <bruno@clisp.org>
5175
5176         New module 'wcsstr'.
5177         * modules/wcsstr: New file.
5178         * lib/wchar.in.h (wcsstr): New declaration.
5179         * lib/wcsstr.c: New file.
5180         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5181         * m4/wcsstr.m4: New file.
5182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5184         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5185         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5186         * doc/posix-functions/wcsstr.texi: Mention the new module.
5187
5188 2011-02-06  Bruno Haible  <bruno@clisp.org>
5189
5190         New module 'wcspbrk'.
5191         * modules/wcspbrk: New file.
5192         * lib/wchar.in.h (wcspbrk): New declaration.
5193         * lib/wcspbrk.c: New file.
5194         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5195         * m4/wcspbrk.m4: New file.
5196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5199         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5200         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5201
5202 2011-02-06  Bruno Haible  <bruno@clisp.org>
5203
5204         New module 'wcsspn'.
5205         * modules/wcsspn: New file.
5206         * lib/wchar.in.h (wcsspn): New declaration.
5207         * lib/wcsspn.c: New file.
5208         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5209         * m4/wcsspn.m4: New file.
5210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5213         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5214         * doc/posix-functions/wcsspn.texi: Mention the new module.
5215
5216 2011-02-06  Bruno Haible  <bruno@clisp.org>
5217
5218         New module 'wcscspn'.
5219         * modules/wcscspn: New file.
5220         * lib/wchar.in.h (wcscspn): New declaration.
5221         * lib/wcscspn.c: New file.
5222         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5223         * m4/wcscspn.m4: New file.
5224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5227         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5228         * doc/posix-functions/wcscspn.texi: Mention the new module.
5229
5230 2011-02-06  Bruno Haible  <bruno@clisp.org>
5231
5232         New module 'wcsrchr'.
5233         * modules/wcsrchr: New file.
5234         * lib/wchar.in.h (wcsrchr): New declaration.
5235         * lib/wcsrchr.c: New file.
5236         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5237         * m4/wcsrchr.m4: New file.
5238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5240         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5241         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5242         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5243
5244 2011-02-06  Bruno Haible  <bruno@clisp.org>
5245
5246         New module 'wcschr'.
5247         * modules/wcschr: New file.
5248         * lib/wchar.in.h (wcschr): New declaration.
5249         * lib/wcschr.c: New file.
5250         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5251         * m4/wcschr.m4: New file.
5252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5255         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5256         * doc/posix-functions/wcschr.texi: Mention the new module.
5257
5258 2011-02-06  Bruno Haible  <bruno@clisp.org>
5259
5260         New module 'wcsdup'.
5261         * modules/wcsdup: New file.
5262         * lib/wchar.in.h (wcsdup): New declaration.
5263         * lib/wcsdup.c: New file.
5264         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5265         * m4/wcsdup.m4: New file.
5266         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5267         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5268         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5269         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5270         * doc/posix-functions/wcsdup.texi: Mention the new module.
5271
5272 2011-02-06  Bruno Haible  <bruno@clisp.org>
5273
5274         New module 'wcsxfrm'.
5275         * modules/wcsxfrm: New file.
5276         * lib/wchar.in.h (wcsxfrm): New declaration.
5277         * lib/wcsxfrm.c: New file.
5278         * lib/wcsxfrm-impl.h: New file.
5279         * m4/wcsxfrm.m4: New file.
5280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5283         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5284         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5285
5286 2011-02-06  Bruno Haible  <bruno@clisp.org>
5287
5288         New module 'wcscoll'.
5289         * modules/wcscoll: New file.
5290         * lib/wchar.in.h (wcscoll): New declaration.
5291         * lib/wcscoll.c: New file.
5292         * lib/wcscoll-impl.h: New file.
5293         * m4/wcscoll.m4: New file.
5294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5297         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5298         * doc/posix-functions/wcscoll.texi: Mention the new module.
5299
5300 2011-02-06  Bruno Haible  <bruno@clisp.org>
5301
5302         New module 'wcsncasecmp'.
5303         * modules/wcsncasecmp: New file.
5304         * lib/wchar.in.h (wcsncasecmp): New declaration.
5305         * lib/wcsncasecmp.c: New file.
5306         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5307         * m4/wcsncasecmp.m4: New file.
5308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5311         HAVE_WCSNCASECMP.
5312         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5313         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5314
5315 2011-02-06  Bruno Haible  <bruno@clisp.org>
5316
5317         New module 'wcscasecmp'.
5318         * modules/wcscasecmp: New file.
5319         * lib/wchar.in.h (wcscasecmp): New declaration.
5320         * lib/wcscasecmp.c: New file.
5321         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5322         * m4/wcscasecmp.m4: New file.
5323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5325         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5326         HAVE_WCSCASECMP.
5327         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5328         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5329
5330 2011-02-05  Bruno Haible  <bruno@clisp.org>
5331
5332         New module 'wcsncmp'.
5333         * modules/wcsncmp: New file.
5334         * lib/wchar.in.h (wcsncmp): New declaration.
5335         * lib/wcsncmp.c: New file.
5336         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5337         * m4/wcsncmp.m4: New file.
5338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5341         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5342         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5343
5344 2011-02-05  Bruno Haible  <bruno@clisp.org>
5345
5346         New module 'wcscmp'.
5347         * modules/wcscmp: New file.
5348         * lib/wchar.in.h (wcscmp): New declaration.
5349         * lib/wcscmp.c: New file.
5350         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5351         * m4/wcscmp.m4: New file.
5352         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5353         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5355         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5356         * doc/posix-functions/wcscmp.texi: Mention the new module.
5357
5358 2011-02-05  Bruno Haible  <bruno@clisp.org>
5359
5360         New module 'wcsncat'.
5361         * modules/wcsncat: New file.
5362         * lib/wchar.in.h (wcsncat): New declaration.
5363         * lib/wcsncat.c: New file.
5364         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5365         * m4/wcsncat.m4: New file.
5366         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5367         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5369         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5370         * doc/posix-functions/wcsncat.texi: Mention the new module.
5371
5372 2011-02-05  Bruno Haible  <bruno@clisp.org>
5373
5374         New module 'wcscat'.
5375         * modules/wcscat: New file.
5376         * lib/wchar.in.h (wcscat): New declaration.
5377         * lib/wcscat.c: New file.
5378         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5379         * m4/wcscat.m4: New file.
5380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5383         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5384         * doc/posix-functions/wcscat.texi: Mention the new module.
5385
5386 2011-02-05  Bruno Haible  <bruno@clisp.org>
5387
5388         New module 'wcpncpy'.
5389         * modules/wcpncpy: New file.
5390         * lib/wchar.in.h (wcpncpy): New declaration.
5391         * lib/wcpncpy.c: New file.
5392         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5393         * m4/wcpncpy.m4: New file.
5394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5396         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5397         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5398         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5399
5400 2011-02-05  Bruno Haible  <bruno@clisp.org>
5401
5402         New module 'wcsncpy'.
5403         * modules/wcsncpy: New file.
5404         * lib/wchar.in.h (wcsncpy): New declaration.
5405         * lib/wcsncpy.c: New file.
5406         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5407         * m4/wcsncpy.m4: New file.
5408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5411         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5412         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5413
5414 2011-02-05  Bruno Haible  <bruno@clisp.org>
5415
5416         New module 'wcpcpy'.
5417         * modules/wcpcpy: New file.
5418         * lib/wchar.in.h (wcpcpy): New declaration.
5419         * lib/wcpcpy.c: New file.
5420         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5421         * m4/wcpcpy.m4: New file.
5422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5424         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5425         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5426         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5427
5428 2011-02-05  Bruno Haible  <bruno@clisp.org>
5429
5430         New module 'wcscpy'.
5431         * modules/wcscpy: New file.
5432         * lib/wchar.in.h (wcscpy): New declaration.
5433         * lib/wcscpy.c: New file.
5434         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5435         * m4/wcscpy.m4: New file.
5436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5439         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5440         * doc/posix-functions/wcscpy.texi: Mention the new module.
5441
5442 2011-02-05  Bruno Haible  <bruno@clisp.org>
5443
5444         New module 'wcsnlen'.
5445         * modules/wcsnlen: New file.
5446         * lib/wchar.in.h (wcsnlen): New declaration.
5447         * lib/wcsnlen.c: New file.
5448         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5449         * m4/wcsnlen.m4: New file.
5450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5453         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5454         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5455
5456 2011-02-05  Bruno Haible  <bruno@clisp.org>
5457
5458         New module 'wcslen'.
5459         * modules/wcslen: New file.
5460         * lib/wchar.in.h (wcslen): New declaration.
5461         * lib/wcslen.c: New file.
5462         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5463         * m4/wcslen.m4: New file.
5464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5467         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5468         * doc/posix-functions/wcslen.texi: Mention the new module.
5469
5470 2011-02-05  Bruno Haible  <bruno@clisp.org>
5471
5472         New module 'wmemset'.
5473         * modules/wmemset: New file.
5474         * lib/wchar.in.h (wmemset): New declaration.
5475         * lib/wmemset.c: New file.
5476         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5477         * m4/wmemset.m4: New file.
5478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5480         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5481         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5482         * doc/posix-functions/wmemset.texi: Mention the new module.
5483
5484 2011-02-05  Bruno Haible  <bruno@clisp.org>
5485
5486         New module 'wmemmove'.
5487         * modules/wmemmove: New file.
5488         * lib/wchar.in.h (wmemmove): New declaration.
5489         * lib/wmemmove.c: New file.
5490         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5491         * m4/wmemmove.m4: New file.
5492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5494         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5495         HAVE_WMEMMOVE.
5496         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5497         * doc/posix-functions/wmemmove.texi: Mention the new module.
5498
5499 2011-02-05  Bruno Haible  <bruno@clisp.org>
5500
5501         New module 'wmemcpy'.
5502         * modules/wmemcpy: New file.
5503         * lib/wchar.in.h (wmemcpy): New declaration.
5504         * lib/wmemcpy.c: New file.
5505         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5506         * m4/wmemcpy.m4: New file.
5507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5509         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5510         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5511         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5512
5513 2011-02-05  Bruno Haible  <bruno@clisp.org>
5514
5515         New module 'wmemcmp'.
5516         * modules/wmemcmp: New file.
5517         * lib/wchar.in.h (wmemcmp): New declaration.
5518         * lib/wmemcmp.c: New file.
5519         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5520         * m4/wmemcmp.m4: New file.
5521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5523         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5524         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5525         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5526
5527 2011-02-07  Jim Meyering  <meyering@redhat.com>
5528
5529         di-set, ino-map: new modules, from coreutils
5530         * lib/di-set.c: New file.
5531         * lib/di-set.h: Likewise.
5532         * lib/ino-map.c: Likewise.
5533         * lib/ino-map.h: Likewise.
5534         * modules/di-set: Likewise.
5535         * modules/di-set-tests: Likewise.
5536         * modules/ino-map: Likewise.
5537         * modules/ino-map-tests: Likewise.
5538         * tests/test-di-set.c: Likewise.
5539         * tests/test-ino-map.c: Likewise.
5540
5541 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5542
5543         getloadavg: merge minor changes from Emacs
5544
5545         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5546         (getloadavg): Use memset, not bzero.
5547
5548         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5549         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5550         clash (bug#86).
5551
5552 2010-11-14  Bruno Haible  <bruno@clisp.org>
5553
5554         Allow multiple gnulib generated replacements to coexist.
5555         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5556         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5557         * lib/langinfo.in.h (nl_item): Likewise.
5558         * lib/math.in.h (_NaN, NAN): Likewise.
5559         * lib/netdb.in.h (struct addrinfo): Likewise.
5560         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5561         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5562         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5563         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5564         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5565         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5566         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5567         pthread_mutexattr_init, pthread_mutexattr_settype,
5568         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5569         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5570         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5571         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5572         * lib/sched.in.h (struct sched_param): Likewise.
5573         * lib/se-selinux.in.h (security_class_t, security_context_t,
5574         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5575         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5576         lsetfilecon, fsetfilecon, security_check_context,
5577         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5578         Likewise.
5579         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5580         Likewise.
5581         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5582         _gl_function_taking_int_returning_void_t, union sigval,
5583         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5584         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5585         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5586         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5587         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5588         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5589         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5590         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5591         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5592         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5593         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5594         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5595         socklen_t, rpl_fd_isset): Likewise.
5596         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5597         * lib/sys_time.in.h (struct timeval): Likewise.
5598         * lib/sys_times.in.h (struct tms): Likewise.
5599         * lib/sys_utsname.in.h (struct utsname):
5600         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5601         * lib/unistd.in.h (getpagesize): Likewise.
5602         * lib/wchar.in.h (mbstate_t): Likewise.
5603         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5604         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5605         towlower, towupper): Likewise.
5606         Reported by Sam Steingold <sds@gnu.org>.
5607
5608 2011-02-05  Eric Blake  <eblake@redhat.com>
5609
5610         unsetenv: work around Haiku issues
5611         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5612         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5613
5614 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5615
5616         libposix: avoid calling error() within libposix
5617         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5618         is defined.
5619
5620 2011-02-05  Eric Blake  <eblake@redhat.com>
5621
5622         strerror_r-posix: port to cygwin
5623         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5624         implementation.
5625         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5626         * tests/test-strerror_r.c (main): Fix test.
5627         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5628         issue.
5629
5630 2011-02-05  Bruno Haible  <bruno@clisp.org>
5631
5632         New module 'wmemchr'.
5633         * modules/wmemchr: New file.
5634         * lib/wchar.in.h (wmemchr): New declaration.
5635         * lib/wmemchr.c: New file.
5636         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5637         * m4/wmemchr.m4: New file.
5638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5640         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5641         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5642         * doc/posix-functions/wmemchr.texi: Mention the new module.
5643
5644 2011-02-04  Eric Blake  <eblake@redhat.com>
5645
5646         fdopendir: detect FreeBSD bug
5647         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5648         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5649
5650 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5651
5652         stdbool: do not define HAVE_STDBOOL_H
5653         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5654         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5655         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5656         imported from the latest Autoconf git.  It was motivated by Emacs,
5657         which uses gnulib but does not need HAVE_STDBOOL_H.
5658
5659 2011-02-04  Bruno Haible  <bruno@clisp.org>
5660
5661         wcsnrtombs: Prepare for new module wwcsnrtombs.
5662         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5663         * lib/wcsnrtombs.c: Include it.
5664         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5665
5666         wcsrtombs: Prepare for new module wwcsrtombs.
5667         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5668         * lib/wcsrtombs.c: Include it.
5669         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5670
5671         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5672         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5673         * lib/mbsnrtowcs.c: Include it.
5674         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5675
5676         mbsrtowcs: Prepare for new module mbsrtowwcs.
5677         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5678         * lib/mbsrtowcs.c: Include it.
5679         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5680
5681 2011-02-04  Bruno Haible  <bruno@clisp.org>
5682
5683         vasnprintf: Reduce use of malloc for small format strings.
5684         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5685         (arguments): Add room for the first 7 arguments.
5686         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5687         (char_directives, u8_directives, u16_directives, u32_directives): Add
5688         room for the first 7 directives.
5689         * lib/printf-parse.c: Include <string.h>.
5690         (PRINTF_PARSE): Change memory handling code so that it uses the first
5691         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5692         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5693         Reported by Pádraig Brady <P@draigbrady.com>.
5694
5695 2011-01-31  Eric Blake  <eblake@redhat.com>
5696
5697         dup2: work around Haiku bug
5698         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5699         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5700         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5701         * tests/test-dup2.c (main): Enhance test.
5702
5703 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5704
5705         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5706         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5707         declared by eglibc 2.11.2.
5708         * lib/stdio.in.h: Likewise.
5709
5710 2011-01-31  Eric Blake  <eblake@redhat.com>
5711
5712         ignore-value: add missing test dependency
5713         * tests/test-ignore-value.c: Revert previous change; stdio.h
5714         provides off_t.
5715         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5716
5717 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5718
5719         mktime: clarify long_int width checking
5720         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5721         the top level, to make it clearer that the assumption about
5722         long_int width is being checked.  See
5723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5724
5725 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5726
5727         ignore-value: Fix self-test.
5728         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5729
5730 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5731
5732         TYPE_MAXIMUM: avoid theoretically undefined behavior
5733         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5734         negative number, which the C Standard says has undefined behavior.
5735         In practice this is not a problem, but might as well do it by the book.
5736         Reported by Rich Felker and Eric Blake; see
5737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5738         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5739         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5741         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5742         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5743         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5744
5745         mktime: #undef mktime before #defining it
5746         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5747
5748         mktime: systematically normalize tm_isdst comparisons
5749         * lib/mktime.c (isdst_differ): New function.
5750         (__mktime_internal): Use it systematically for all isdst comparisons.
5751         This completes the fix for libc BZ #6723, and removes the need for
5752         normalizing tm_isdst.  See
5753         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5754         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5755
5756         mktime: fix some integer overflow issues and sidestep the rest
5757
5758         This was prompted by a bug report by Benjamin Lindner for MinGW
5759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5760         His bug is due to signed integer overflow (0 - INT_MIN), and I
5761         I scanned through mktime.c looking for other integer overflow
5762         problems, fixing all the bugs I found.
5763
5764         Although the C Standard says the resulting code is still not safe
5765         in the presence of integer overflow, in practice it should be good
5766         enough for all real-world two's-complement implementations, except
5767         for debugging environments that deliberately trap on integer
5768         overflow (e.g., gcc -ftrapv).
5769
5770         * lib/mktime.c (WRAPV): New macro.
5771         (SHR): Also check that long_int and time_t shift right in the
5772         usual way, before using the fast-but-unportable method.
5773         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5774         used.  The code already assumed two's complement, so there's
5775         no need to test for alternatives.  All uses removed.
5776         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5777         the C standard.  Problem reported by Rich Felker in
5778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5779         (twos_complement_arithmetic): Also check long_int and time_t.
5780         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5781         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5782         (__mktime_internal): Avoid integer overflow with unary subtraction
5783         in two instances where -1 - X is an adequate replacement for -X,
5784         since the calculations are approximate.
5785
5786 2011-01-29  Eric Blake  <eblake@redhat.com>
5787
5788         mktime: avoid infinite loop
5789         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5790         type; behavior is still undefined but portable to all known targets.
5791         Reported by Rich Felker.
5792
5793 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5794
5795         rename, unlink, same-inode: Relicense.
5796         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5797         * modules/unlink (License): Likewise.
5798         * modules/same-inode (License): Likewise.
5799
5800 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5801
5802         mktime: avoid problems on NetBSD 5 / i386
5803         * lib/mktime.c (long_int): New type.  This works around a problem
5804         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5805         but time_t is 64 bits, and where I expect the existing code is
5806         wrong in some cases.
5807         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5808         (ydhms_diff): Bring back the compile-time check for wide-enough
5809         year and yday.
5810
5811         mktime: fix misspelling in comment
5812         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5813         This merges all recent glibc changes of importance.
5814
5815 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5816
5817         move-if-change: cope with concurrent mv of identical file.
5818         * build-aux/move-if-change (CMPPROG): Accept environment
5819         variable as an override for `cmp'.
5820         (usage): Document CMPPROG.
5821         Adjust comparison to drop stdout.  Cope with failure of mv if
5822         the target file exists and is identical to the source, for
5823         parallel builds.
5824         Report from H.J. Lu against binutils in PR binutils/12283.
5825
5826 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5827
5828         * users.txt: Mention sharutils.
5829
5830 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5831
5832         * users.txt: Mention OATH Toolkit.
5833
5834 2011-01-27  Bruno Haible  <bruno@clisp.org>
5835
5836         Prepare for supporting FreeBSD 10.
5837         * build-aux/config.libpath: Remove handling of freebsd1*.
5838
5839 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5840
5841         Prepare for supporting FreeBSD 10.
5842         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5843         match FreeBSD 10.0.
5844
5845 2011-01-27  Bruno Haible  <bruno@clisp.org>
5846
5847         vma-iter, get-rusage-as: Add OpenBSD support.
5848         * modules/vma-iter (configure.ac): Test for mquery.
5849         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5850         * lib/vma-iter.c: Include <sys/mman.h>.
5851         (vma_iterate): Add an implementation based on mquery().
5852         * lib/resource-ext.h (get_rusage_as): Update comments.
5853         * lib/get-rusage-as.c: Likewise.
5854         * lib/get-rusage-data.c: Likewise.
5855
5856 2011-01-26  Karl Berry  <karl@gnu.org>
5857
5858         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5859         variables to make it easier to override the makeinfo program used.
5860
5861 2011-01-26  Eric Blake  <eblake@redhat.com>
5862
5863         fcntl: work around Haiku F_DUPFD bugs
5864         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5865         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5866         cloexec bit on duplication.
5867         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5868
5869 2011-01-26  Bruno Haible  <bruno@clisp.org>
5870
5871         Enable memory leak tests on AIX.
5872         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5873         * tests/test-fprintf-posix3.c (main): Likewise.
5874
5875 2011-01-26  Bruno Haible  <bruno@clisp.org>
5876
5877         Tests for module 'get-rusage-data'.
5878         * modules/get-rusage-data-tests: New file.
5879         * tests/test-get-rusage-data.c: New file.
5880
5881         New module 'get-rusage-data'.
5882         * lib/resource-ext.h (get_rusage_data): New declaration.
5883         * lib/get-rusage-data.c: New file.
5884         * modules/get-rusage-data: New file.
5885
5886 2011-01-25  Bruno Haible  <bruno@clisp.org>
5887
5888         get-rusage-as: Allow for easier testing.
5889         * lib/resource-ext.h (get_rusage_as): Add comment.
5890         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5891         (main): New function for interactive testing.
5892
5893 2011-01-25  Bruno Haible  <bruno@clisp.org>
5894
5895         vma-iter: Treat Haiku like BeOS.
5896         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5897         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5898
5899 2011-01-25  Eric Blake  <eblake@redhat.com>
5900
5901         c-stack: fix regression on cygwin when libsigsegv is present
5902         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5903
5904 2011-01-24  Bruno Haible  <bruno@clisp.org>
5905
5906         vma-iter: Avoid empty intervals.
5907         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5908         on an empty interval.
5909
5910 2011-01-24  Jim Meyering  <meyering@redhat.com>
5911
5912         u64: remove unnecessary #include
5913         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5914
5915 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5916
5917         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5918         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5919
5920 2011-01-23  Bruno Haible  <bruno@clisp.org>
5921
5922         New module 'vma-iter'.
5923         * lib/vma-iter.h: New file.
5924         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5925         * modules/vma-iter: New file.
5926         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5927         for get_rusage_as_via_iterator.
5928         (vma_iterate_callback): New function.
5929         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5930         * modules/get-rusage-as (Depends-on): Add vma-iter.
5931
5932 2011-01-23  Bruno Haible  <bruno@clisp.org>
5933
5934         uninorm: Tweak includes.
5935         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5936         Reported by Jim Meyering.
5937
5938 2011-01-23  Bruno Haible  <bruno@clisp.org>
5939
5940         get-rusage-as: Improve on NetBSD.
5941         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5942         /proc, like on FreeBSD.
5943
5944 2011-01-23  Jim Meyering  <meyering@redhat.com>
5945
5946         xreadlink.h: remove unnecessary #include
5947         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5948
5949         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5950         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5951
5952 2011-01-23  Bruno Haible  <bruno@clisp.org>
5953
5954         get-rusage-as: Fix bug.
5955         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5956         original limit when aborting the first loop.
5957
5958 2011-01-23  Bruno Haible  <bruno@clisp.org>
5959
5960         wctype: Ensure valid C syntax.
5961         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5962         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5963
5964 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5965
5966         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5968         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5969         as they are needed only for configure's test case.
5970         This removes two unnecessary symbols from config.h.
5971
5972         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5973         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5975         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5976         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5977         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5978         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5979         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5980         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5981         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5982         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5984         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5985         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5986         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5987         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5988         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5989         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5990
5991 2011-01-21  Eric Blake  <eblake@redhat.com>
5992
5993         maintainer-makefile: work with older git for submodule check
5994         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5995         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5996         Reported by Matthias Bolte.
5997
5998         bootstrap: minor portability fixes
5999         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6000         (usage): Omit leading capital and trailing . on help phrases, per
6001         GNU Coding Standards.
6002         (check_versions, top level): Prefix messages with script name.
6003
6004 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6005
6006         bootstrap: support --no-git option
6007         * build-aux/bootstrap: Add --no-git option, to be used when
6008         --gnulib-srcdir points to the exact desired checkout.
6009
6010 2011-01-21  Eric Blake  <eblake@redhat.com>
6011
6012         strerror_r-posix: work with glibc 2.13
6013         * lib/strerror_r.c (strerror_r): Fix return type.
6014
6015 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6016             Bruno Haible  <bruno@clisp.org>
6017
6018         uN_strstr: New unit tests.
6019         * modules/unistr/u8-strstr-tests: New file.
6020         * modules/unistr/u16-strstr-tests: New file.
6021         * modules/unistr/u32-strstr-tests: New file.
6022         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6023         * tests/unistr/test-u8-strstr.c: New file.
6024         * tests/unistr/test-u16-strstr.c: New file.
6025         * tests/unistr/test-u32-strstr.c: New file.
6026
6027 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6028             Bruno Haible  <bruno@clisp.org>
6029
6030         Make uN_strstr functions O(n) worst-case.
6031         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6032         16-bit and 32-bit unit cases, use the unibyte algorithm from
6033         lib/mbsstr.c.
6034         * lib/unistr/u8-strstr.c: Include <string.h>.
6035         (UNIT_IS_UINT8_T): New macro.
6036         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6037         (U_STRLEN, U_STRNLEN): New macros.
6038         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6039         (U_STRLEN, U_STRNLEN): New macros.
6040         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6041         (configure.ac): Update required libunistring version.
6042         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6043         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6044         malloca.
6045         (configure.ac): Update required libunistring version.
6046         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6047         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6048         malloca.
6049         (configure.ac): Update required libunistring version.
6050
6051 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6052             Bruno Haible  <bruno@clisp.org>
6053
6054         Prepare for faster uN_strstr functions.
6055         * lib/str-kmp.h: Support definable UNITs.
6056         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6057         needle_len argument.
6058         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6059         * lib/mbscasestr.c (mbscasestr): Likewise.
6060
6061 2011-01-21  Pádraig Brady <P@draigBrady.com>
6062
6063         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6064         * tests/test-malloca.c (main): Unset the environment variable
6065         to greatly speed up the test.
6066         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6067         * modules/malloca-tests: Depend on unsetenv.
6068
6069 2011-01-21  Pádraig Brady <P@draigBrady.com>
6070
6071         ignore-value: remove stdint dependency
6072         * lib/ignore-value.h: Remove <stdint.h>
6073         * modules/ignore-value: Remove stdint dependency.
6074
6075 2011-01-21  Jim Meyering  <meyering@redhat.com>
6076
6077         maint.mk: adjust variable name to be consistent with other gl_ vars
6078         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6079         to be lower case.
6080
6081 2011-01-20  Jim Meyering  <meyering@redhat.com>
6082
6083         maint.mk: make "check" depend on public-submodule-commit by default
6084         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6085
6086 2011-01-20  Bruno Haible  <bruno@clisp.org>
6087
6088         mbfile, mbiter: Complete change from 2008-12-21.
6089         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6090         * m4/mbiter.m4 (gl_MBITER): Likewise.
6091
6092 2011-01-20  Jim Meyering  <meyering@redhat.com>
6093
6094         init.sh: insert space between each function name and "()"
6095         * tests/init.sh: Make it a little easier to see that a function's
6096         name is "warn_", and not "warn" when looking at the first part of
6097         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6098
6099 2011-01-20  Jim Meyering  <meyering@redhat.com>
6100
6101         mountlist: clean up code formatting
6102         * lib/mountlist.c (read_file_system_list): Split a long line,
6103         correct bracing style, use NULL in place of "(struct statfs *)0",
6104         don't parenthesize return value, add spaces around "=" and after
6105         ";-in-for-stmt".
6106
6107 2011-01-14  Markus Duft <mduft@gentoo.org>
6108
6109         mountlist: add support for Interix
6110         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6111         Apply statvfs to all entries of /dev/fs.
6112         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6113         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6114
6115 2011-01-20  Jim Meyering  <meyering@redhat.com>
6116
6117         maint.mk: improve the public-submodule-commit rule
6118         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6119         to suppress printing of its commands... unless V=1.
6120         Add git submodule's --quiet option to suppress printing of e.g.,
6121         "Entering gnulib" output.
6122         "cd" into $(srcdir) before running git submodule.
6123
6124 2011-01-20  Bruno Haible  <bruno@clisp.org>
6125
6126         include_next: Fix bug introduced on 2011-01-18.
6127         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6128         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6129         ac_cv_header_... variable if the second argument is not 'check'.
6130         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6131         gl_NEXT_HEADERS_INTERNAL.
6132
6133 2011-01-20  Bruno Haible  <bruno@clisp.org>
6134
6135         Allow the user to avoid the GNULIB_TEST_* macros.
6136         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6137         Suggested by Paul Eggert.
6138
6139 2011-01-14  Jim Meyering  <meyering@redhat.com>
6140
6141         bootstrap: avoid failure when there is no .gitmodules file
6142         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6143         has been assigned to, even when its value is the empty string.
6144         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6145         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6146         Reported by John W. Eaton <jwe@gnu.org>.
6147
6148 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6149
6150         assume <ctype.h>, ..., <time.h> exist
6151         For years gnulib has been assuming the existence of the headers
6152         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6153         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6154         them, since they don't appear to be needed.
6155         * README (Portability guidelines): Document this.
6156         * lib/flock.c: Assume <fcntl.h> exists.
6157         * lib/regex_internal.h: Assume <locale.h> exists.
6158         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6159         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6160         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6161         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6162         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6163         * m4/regex.m4 (gl_REGEX): Likewise.
6164         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6165         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6166         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6167         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6168         * tests/test-argp.c: Likewise.
6169         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6170
6171         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6172         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6173         AA_APPLE_UNIVERSAL_BUILD.  See
6174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6175         * NEWS: Document this.
6176
6177 2011-01-19  Eric Blake  <eblake@redhat.com>
6178
6179         c-stack: assume stack overflow if SA_SIGINFO unsupported
6180         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6181         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6182         sigaction will work.
6183         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6184         behavior match Linux.
6185         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6186
6187         stdbool-tests: accomodate Haiku
6188         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6189
6190         binary-io: fix O_TEXT on Haiku
6191         * modules/binary-io (Depends-on): Add fcntl-h.
6192         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6193         than blindly undefining O_TEXT.
6194         Reported by Scott McCreary.
6195
6196 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6197
6198         include_next: do not check for standard headers like stddef.h
6199
6200         I found this problem when modifying Emacs to use gnulib.
6201         I noticed that it added HAVE_STDDEF_H to config.h, even though
6202         gnulib always assumes <stddef.h> exists as per README and this
6203         symbol is unnecessary.
6204         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6205         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6206         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6207         faster for headers like stddef.h that are known to exist.
6208         (gl_CHECK_NEXT_HEADERS): Use it.
6209         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6210         rather than gl_CHECK_NEXT_HEADERS.
6211         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6212         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6213
6214 2011-01-18  Eric Blake  <eblake@redhat.com>
6215
6216         ansi-c++-opt: skip C++ dependency style if C++ is unused
6217         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6218         tests when we know C++ compilation is not desired.
6219         Reported by Scott McCreary.
6220
6221 2011-01-18  Bruno Haible  <bruno@clisp.org>
6222
6223         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6224         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6225         (main): Perform test also when getrlimit and setrlimit don't exist or
6226         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6227         limiting the address space size using setrlimit, compare the address
6228         space size before and after the the test.
6229         * tests/test-dprintf-posix2.c: Likewise.
6230         * tests/test-fprintf-posix3.sh: Update skip messages.
6231         * tests/test-dprintf-posix2.sh: Likewise.
6232         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6233         * modules/dprintf-posix-tests (Depends-on): Likewise.
6234         Reported by Bruce Korb <bkorb@gnu.org> and
6235         Gary V. Vaughan <gary@gnu.org>.
6236
6237 2011-01-18  Bruno Haible  <bruno@clisp.org>
6238
6239         get-rusage-as: Improvement for Cygwin.
6240         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6241         areas that are merely reserved.
6242
6243 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6244
6245         strftime: remove dependencies on multibyte modules
6246
6247         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6248         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6249         only if __osf__ is defined, and I suspect OSF doesn't need these
6250         other modules.  If my guess is wrong, we'll need to come up with a
6251         variant of strftime that doesn't need the multibyte modules.
6252
6253         I discovered this problem when attempting modify Emacs to use the
6254         strftime module.  With the previous gnulib, this caused Emacs to
6255         need 31 new files, ranging from lib/config.charset to
6256         m4/wint_t.m4.  This was overkill and I expect would be offputting
6257         to the Emacs maintainers.  After this change, only 6 new files are
6258         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6259         stdbool.m4, and tm_gmtoff.m4.
6260
6261         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6262         Suggested by Bruno Haible in
6263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6264         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6265         and do not check for wchar.h.
6266         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6267         (Depends-on): Remove mbrlen, mbsinit, wchar.
6268
6269 2011-01-18  Bruno Haible  <bruno@clisp.org>
6270
6271         Tests for module 'get-rusage-as'.
6272         * modules/get-rusage-as-tests: New file.
6273         * tests/test-get-rusage-as.c: New file.
6274
6275         New module 'get-rusage-as'.
6276         * modules/get-rusage-as: New file.
6277         * lib/resource-ext.h: New file.
6278         * lib/get-rusage-as.c: New file.
6279
6280 2011-01-17  Eric Blake  <eblake@redhat.com>
6281
6282         sigaction: relax license from LGPLv3+ to LGPLv2+
6283         * modules/sigaction (License): Relax to LGPLv2+.
6284
6285 2011-01-14  Bruno Haible  <bruno@clisp.org>
6286
6287         filemode: Make function declarations usable in C++ mode.
6288         * lib/filemode.h: Enclose function declarations in extern "C" block.
6289         Reported by John W. Eaton <jwe@gnu.org>.
6290
6291 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6292
6293         save-cwd: no longer include "xgetcwd.h"
6294         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6295         This avoids a compilation failure in projects that use save-cwd
6296         without also using the xgetcwd module.
6297
6298 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6299
6300         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6301         This is so that a program like Emacs, which needs only dtoastr,
6302         does not have to bother with distributing and compiling ftoastr
6303         and ldtoastr.
6304         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6305         * modules/dtoastr, modules/ldtoastr: New files.
6306         * modules/ftoastr: Now works just for 'float'.
6307         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6308         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6309         dtoastr.c, ldtoastr.c.
6310
6311 2011-01-11  Jim Meyering  <meyering@redhat.com>
6312
6313         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6314         There is no need to work around the lack of the fchdir function,
6315         since gnulib can now provide a replacement when required.
6316         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6317         * modules/save-cwd (Depends-on): Add fchdir.
6318
6319 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6320
6321         openat, save-cwd: avoid xmalloc
6322
6323         This removes a direct (but undocumented) dependency of openat on
6324         xalloc, along with an indirect dependency via save-cwd.  It also
6325         removes a dependency of save-cwd on xgetcwd, and thereby
6326         indirectly on xalloc.  This change causes the openat substitute
6327         to fall back on save_cwd when memory is tight, and for save_cwd to
6328         fail instead of dying when memory is tight, but that's good enough.
6329         Problem and initial idea for fix reported by Bastien Roucaries in
6330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6331
6332         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6333         xalloc.h (for xmalloc).
6334         (openat_proc_name): Use malloc, not xmalloc.
6335         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6336         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6337
6338         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6339         This avoids heap allocation for file names whose lengths are in
6340         the range 512..1023, with the upper bound increasing to at most
6341         4031 depending on the platform's PATH_MAX.  (We do not want
6342         pathmax.h here as it might supply a non-constant PATH_MAX.)
6343         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6344         Perhaps they should be moved to malloca.h?
6345         (OPENAT_BUFFER_SIZE): Use them.
6346
6347 2011-01-10  Bruno Haible  <bruno@clisp.org>
6348
6349         doc: Update users.txt.
6350         * users.txt: Add recutils.
6351
6352 2011-01-09  Karl Berry  <karl@gnu.org>
6353
6354         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6355
6356         * doc/configmake.texi: New file.
6357         * doc/gnulib.texi: Include it.
6358         * modules/configmake: Move documentation from here.
6359
6360 2011-01-09  Bruno Haible  <bruno@clisp.org>
6361
6362         Update to Unicode 6.0.0.
6363         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6364         (get_lbp): Update for Unicode 6.0.0.
6365         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6366         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6367         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6368         U+11001, U+11038..U+11046. Remove U+06DE.
6369         (uc_width): Fix bounds of planes.
6370         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6371         lib/uniwidth/width.c.
6372         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6373         trailing whitespace removed.
6374         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6375         without comments, but with the original copyright notice.
6376         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6377         * lib/unicase/ignorable.h: Likewise.
6378         * lib/unicase/tocasefold.h: Likewise.
6379         * lib/unicase/tolower.h: Likewise.
6380         * lib/unicase/totitle.h: Likewise.
6381         * lib/unicase/toupper.h: Likewise.
6382         * lib/unictype/bidi_of.h: Likewise.
6383         * lib/unictype/blocks.h: Likewise.
6384         * lib/unictype/categ_C.h: Likewise.
6385         * lib/unictype/categ_Cn.h: Likewise.
6386         * lib/unictype/categ_L.h: Likewise.
6387         * lib/unictype/categ_Ll.h: Likewise.
6388         * lib/unictype/categ_Lm.h: Likewise.
6389         * lib/unictype/categ_Lo.h: Likewise.
6390         * lib/unictype/categ_Lu.h: Likewise.
6391         * lib/unictype/categ_M.h: Likewise.
6392         * lib/unictype/categ_Mc.h: Likewise.
6393         * lib/unictype/categ_Me.h: Likewise.
6394         * lib/unictype/categ_Mn.h: Likewise.
6395         * lib/unictype/categ_N.h: Likewise.
6396         * lib/unictype/categ_Nd.h: Likewise.
6397         * lib/unictype/categ_No.h: Likewise.
6398         * lib/unictype/categ_P.h: Likewise.
6399         * lib/unictype/categ_Po.h: Likewise.
6400         * lib/unictype/categ_S.h: Likewise.
6401         * lib/unictype/categ_Sc.h: Likewise.
6402         * lib/unictype/categ_Sk.h: Likewise.
6403         * lib/unictype/categ_Sm.h: Likewise.
6404         * lib/unictype/categ_So.h: Likewise.
6405         * lib/unictype/categ_of.h: Likewise.
6406         * lib/unictype/combining.h: Likewise.
6407         * lib/unictype/ctype_alnum.h: Likewise.
6408         * lib/unictype/ctype_alpha.h: Likewise.
6409         * lib/unictype/ctype_graph.h: Likewise.
6410         * lib/unictype/ctype_lower.h: Likewise.
6411         * lib/unictype/ctype_print.h: Likewise.
6412         * lib/unictype/ctype_punct.h: Likewise.
6413         * lib/unictype/ctype_upper.h: Likewise.
6414         * lib/unictype/decdigit.h: Likewise.
6415         * lib/unictype/digit.h: Likewise.
6416         * lib/unictype/numeric.h: Likewise.
6417         * lib/unictype/pr_alphabetic.h: Likewise.
6418         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6419         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6420         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6421         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6422         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6423         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6424         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6425         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6426         * lib/unictype/pr_case_ignorable.h: Likewise.
6427         * lib/unictype/pr_cased.h: Likewise.
6428         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6429         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6430         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6431         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6432         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6433         * lib/unictype/pr_combining.h: Likewise.
6434         * lib/unictype/pr_composite.h: Likewise.
6435         * lib/unictype/pr_currency_symbol.h: Likewise.
6436         * lib/unictype/pr_decimal_digit.h: Likewise.
6437         * lib/unictype/pr_deprecated.h: Likewise.
6438         * lib/unictype/pr_format_control.h: Likewise.
6439         * lib/unictype/pr_grapheme_base.h: Likewise.
6440         * lib/unictype/pr_grapheme_extend.h: Likewise.
6441         * lib/unictype/pr_grapheme_link.h: Likewise.
6442         * lib/unictype/pr_id_continue.h: Likewise.
6443         * lib/unictype/pr_id_start.h: Likewise.
6444         * lib/unictype/pr_ideographic.h: Likewise.
6445         * lib/unictype/pr_lowercase.h: Likewise.
6446         * lib/unictype/pr_math.h: Likewise.
6447         * lib/unictype/pr_numeric.h: Likewise.
6448         * lib/unictype/pr_other_alphabetic.h: Likewise.
6449         * lib/unictype/pr_other_id_continue.h: Likewise.
6450         * lib/unictype/pr_other_math.h: Likewise.
6451         * lib/unictype/pr_punctuation.h: Likewise.
6452         * lib/unictype/pr_sentence_terminal.h: Likewise.
6453         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6454         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6455         * lib/unictype/pr_unified_ideograph.h: Likewise.
6456         * lib/unictype/pr_uppercase.h: Likewise.
6457         * lib/unictype/pr_xid_continue.h: Likewise.
6458         * lib/unictype/pr_xid_start.h: Likewise.
6459         * lib/unictype/scripts.h: Likewise.
6460         * lib/unictype/scripts_byname.gperf: Likewise.
6461         * lib/unictype/sy_java_ident.h: Likewise.
6462         * lib/unigbrk/gbrkprop.h: Likewise.
6463         * lib/unilbrk/lbrkprop1.h: Likewise.
6464         * lib/unilbrk/lbrkprop2.h: Likewise.
6465         * lib/uninorm/decomposition-table2.h: Likewise.
6466         * lib/uniwbrk/wbrkprop.h: Likewise.
6467         * tests/unicase/test-cased.c: Likewise.
6468         * tests/unicase/test-ignorable.c: Likewise.
6469         * tests/unicase/test-uc_tolower.c: Likewise.
6470         * tests/unicase/test-uc_totitle.c: Likewise.
6471         * tests/unicase/test-uc_toupper.c: Likewise.
6472         * tests/unictype/test-categ_C.c: Likewise.
6473         * tests/unictype/test-categ_Cn.c: Likewise.
6474         * tests/unictype/test-categ_L.c: Likewise.
6475         * tests/unictype/test-categ_Ll.c: Likewise.
6476         * tests/unictype/test-categ_Lm.c: Likewise.
6477         * tests/unictype/test-categ_Lo.c: Likewise.
6478         * tests/unictype/test-categ_Lu.c: Likewise.
6479         * tests/unictype/test-categ_M.c: Likewise.
6480         * tests/unictype/test-categ_Mc.c: Likewise.
6481         * tests/unictype/test-categ_Me.c: Likewise.
6482         * tests/unictype/test-categ_Mn.c: Likewise.
6483         * tests/unictype/test-categ_N.c: Likewise.
6484         * tests/unictype/test-categ_Nd.c: Likewise.
6485         * tests/unictype/test-categ_No.c: Likewise.
6486         * tests/unictype/test-categ_P.c: Likewise.
6487         * tests/unictype/test-categ_Po.c: Likewise.
6488         * tests/unictype/test-categ_S.c: Likewise.
6489         * tests/unictype/test-categ_Sc.c: Likewise.
6490         * tests/unictype/test-categ_Sk.c: Likewise.
6491         * tests/unictype/test-categ_Sm.c: Likewise.
6492         * tests/unictype/test-categ_So.c: Likewise.
6493         * tests/unictype/test-ctype_alnum.c: Likewise.
6494         * tests/unictype/test-ctype_alpha.c: Likewise.
6495         * tests/unictype/test-ctype_graph.c: Likewise.
6496         * tests/unictype/test-ctype_lower.c: Likewise.
6497         * tests/unictype/test-ctype_print.c: Likewise.
6498         * tests/unictype/test-ctype_punct.c: Likewise.
6499         * tests/unictype/test-ctype_upper.c: Likewise.
6500         * tests/unictype/test-decdigit.h: Likewise.
6501         * tests/unictype/test-digit.h: Likewise.
6502         * tests/unictype/test-numeric.h: Likewise.
6503         * tests/unictype/test-pr_alphabetic.c: Likewise.
6504         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6505         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6506         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6507         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6508         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6509         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6510         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6511         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6512         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6513         * tests/unictype/test-pr_cased.c: Likewise.
6514         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6515         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6516         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6517         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6518         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6519         * tests/unictype/test-pr_combining.c: Likewise.
6520         * tests/unictype/test-pr_composite.c: Likewise.
6521         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6522         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6523         * tests/unictype/test-pr_deprecated.c: Likewise.
6524         * tests/unictype/test-pr_format_control.c: Likewise.
6525         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6526         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6527         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6528         * tests/unictype/test-pr_id_continue.c: Likewise.
6529         * tests/unictype/test-pr_id_start.c: Likewise.
6530         * tests/unictype/test-pr_ideographic.c: Likewise.
6531         * tests/unictype/test-pr_lowercase.c: Likewise.
6532         * tests/unictype/test-pr_math.c: Likewise.
6533         * tests/unictype/test-pr_numeric.c: Likewise.
6534         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6535         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6536         * tests/unictype/test-pr_other_math.c: Likewise.
6537         * tests/unictype/test-pr_punctuation.c: Likewise.
6538         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6539         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6540         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6541         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6542         * tests/unictype/test-pr_uppercase.c: Likewise.
6543         * tests/unictype/test-pr_xid_continue.c: Likewise.
6544         * tests/unictype/test-pr_xid_start.c: Likewise.
6545         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6546         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6547         changes.
6548         * lib/unictype/categ_Cc.h: Likewise.
6549         * lib/unictype/categ_Cf.h: Likewise.
6550         * lib/unictype/categ_Co.h: Likewise.
6551         * lib/unictype/categ_Cs.h: Likewise.
6552         * lib/unictype/categ_Lt.h: Likewise.
6553         * lib/unictype/categ_Nl.h: Likewise.
6554         * lib/unictype/categ_Pc.h: Likewise.
6555         * lib/unictype/categ_Pd.h: Likewise.
6556         * lib/unictype/categ_Pe.h: Likewise.
6557         * lib/unictype/categ_Pf.h: Likewise.
6558         * lib/unictype/categ_Pi.h: Likewise.
6559         * lib/unictype/categ_Ps.h: Likewise.
6560         * lib/unictype/categ_Z.h: Likewise.
6561         * lib/unictype/categ_Zl.h: Likewise.
6562         * lib/unictype/categ_Zp.h: Likewise.
6563         * lib/unictype/categ_Zs.h: Likewise.
6564         * lib/unictype/ctype_blank.h: Likewise.
6565         * lib/unictype/ctype_cntrl.h: Likewise.
6566         * lib/unictype/ctype_digit.h: Likewise.
6567         * lib/unictype/ctype_space.h: Likewise.
6568         * lib/unictype/ctype_xdigit.h: Likewise.
6569         * lib/unictype/mirror.h: Likewise.
6570         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6571         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6572         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6573         * lib/unictype/pr_bidi_control.h: Likewise.
6574         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6575         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6576         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6577         * lib/unictype/pr_bidi_pdf.h: Likewise.
6578         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6579         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6580         * lib/unictype/pr_dash.h: Likewise.
6581         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6582         * lib/unictype/pr_diacritic.h: Likewise.
6583         * lib/unictype/pr_extender.h: Likewise.
6584         * lib/unictype/pr_hex_digit.h: Likewise.
6585         * lib/unictype/pr_hyphen.h: Likewise.
6586         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6587         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6588         * lib/unictype/pr_ignorable_control.h: Likewise.
6589         * lib/unictype/pr_iso_control.h: Likewise.
6590         * lib/unictype/pr_join_control.h: Likewise.
6591         * lib/unictype/pr_left_of_pair.h: Likewise.
6592         * lib/unictype/pr_line_separator.h: Likewise.
6593         * lib/unictype/pr_logical_order_exception.h: Likewise.
6594         * lib/unictype/pr_non_break.h: Likewise.
6595         * lib/unictype/pr_not_a_character.h: Likewise.
6596         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6597         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6598         * lib/unictype/pr_other_id_start.h: Likewise.
6599         * lib/unictype/pr_other_lowercase.h: Likewise.
6600         * lib/unictype/pr_other_uppercase.h: Likewise.
6601         * lib/unictype/pr_paired_punctuation.h: Likewise.
6602         * lib/unictype/pr_paragraph_separator.h: Likewise.
6603         * lib/unictype/pr_pattern_syntax.h: Likewise.
6604         * lib/unictype/pr_pattern_white_space.h: Likewise.
6605         * lib/unictype/pr_private_use.h: Likewise.
6606         * lib/unictype/pr_quotation_mark.h: Likewise.
6607         * lib/unictype/pr_radical.h: Likewise.
6608         * lib/unictype/pr_soft_dotted.h: Likewise.
6609         * lib/unictype/pr_space.h: Likewise.
6610         * lib/unictype/pr_titlecase.h: Likewise.
6611         * lib/unictype/pr_variation_selector.h: Likewise.
6612         * lib/unictype/pr_white_space.h: Likewise.
6613         * lib/unictype/pr_zero_width.h: Likewise.
6614         * lib/unictype/sy_c_ident.h: Likewise.
6615         * lib/unictype/sy_c_whitespace.h: Likewise.
6616         * lib/unictype/sy_java_whitespace.h: Likewise.
6617         * lib/uninorm/composition-table.gperf: Likewise.
6618         * lib/uninorm/decomposition-table1.h: Likewise.
6619         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6620         LB8.
6621         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6622         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6623         * modules/unictype/*: Bump version number of expected libunistring
6624         version.
6625
6626 2011-01-09  Bruno Haible  <bruno@clisp.org>
6627
6628         Update to Unicode 5.2.0.
6629         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6630         trailing whitespace removed.
6631
6632 2011-01-09  Bruno Haible  <bruno@clisp.org>
6633
6634         New Unicode character properties, from Unicode 5.2.0.
6635         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6636         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6637         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6638         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6639         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6640         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6641         uc_is_property_cased, uc_is_property_case_ignorable,
6642         uc_is_property_changes_when_lowercased,
6643         uc_is_property_changes_when_uppercased,
6644         uc_is_property_changes_when_titlecased,
6645         uc_is_property_changes_when_casefolded,
6646         uc_is_property_changes_when_casemapped): New declarations.
6647         * lib/unictype/pr_byname.gperf: Add the new properties.
6648         * modules/unictype/property-byname (Depends-on): Depend on the new
6649         properties modules.
6650         * modules/unictype/property-all (Depends-on): Likewise.
6651         * MODULES.html.sh (Unicode string functions): Add
6652         unictype/property-case-ignorable, unictype/property-cased,
6653         unictype/property-changes-when-casefolded,
6654         unictype/property-changes-when-casemapped,
6655         unictype/property-changes-when-lowercased,
6656         unictype/property-changes-when-titlecased,
6657         unictype/property-changes-when-uppercased.
6658
6659         New module 'unictype/property-changes-when-casemapped'.
6660         * modules/unictype/property-changes-when-casemapped: New file.
6661         * lib/unictype/pr_changes_when_casemapped.c: New file.
6662         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6663         generated by gen-uni-tables.
6664         * modules/unictype/property-changes-when-casemapped-tests: New file.
6665         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6666         automatically generated by gen-uni-tables.
6667
6668         New module 'unictype/property-changes-when-casefolded'.
6669         * modules/unictype/property-changes-when-casefolded: New file.
6670         * lib/unictype/pr_changes_when_casefolded.c: New file.
6671         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6672         generated by gen-uni-tables.
6673         * modules/unictype/property-changes-when-casefolded-tests: New file.
6674         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6675         automatically generated by gen-uni-tables.
6676
6677         New module 'unictype/property-changes-when-titlecased'.
6678         * modules/unictype/property-changes-when-titlecased: New file.
6679         * lib/unictype/pr_changes_when_titlecased.c: New file.
6680         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6681         generated by gen-uni-tables.
6682         * modules/unictype/property-changes-when-titlecased-tests: New file.
6683         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6684         automatically generated by gen-uni-tables.
6685
6686         New module 'unictype/property-changes-when-uppercased'.
6687         * modules/unictype/property-changes-when-uppercased: New file.
6688         * lib/unictype/pr_changes_when_uppercased.c: New file.
6689         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6690         generated by gen-uni-tables.
6691         * modules/unictype/property-changes-when-uppercased-tests: New file.
6692         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6693         automatically generated by gen-uni-tables.
6694
6695         New module 'unictype/property-changes-when-lowercased'.
6696         * modules/unictype/property-changes-when-lowercased: New file.
6697         * lib/unictype/pr_changes_when_lowercased.c: New file.
6698         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6699         generated by gen-uni-tables.
6700         * modules/unictype/property-changes-when-lowercased-tests: New file.
6701         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6702         automatically generated by gen-uni-tables.
6703
6704         New module 'unictype/property-case-ignorable'.
6705         * modules/unictype/property-case-ignorable: New file.
6706         * lib/unictype/pr_case_ignorable.c: New file.
6707         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6708         by gen-uni-tables.
6709         * modules/unictype/property-case-ignorable-tests: New file.
6710         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6711         generated by gen-uni-tables.
6712
6713         New module 'unictype/property-cased'.
6714         * modules/unictype/property-cased: New file.
6715         * lib/unictype/pr_cased.c: New file.
6716         * lib/unictype/pr_cased.h: New file, automatically generated by
6717         gen-uni-tables.
6718         * modules/unictype/property-cased-tests: New file.
6719         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6720         gen-uni-tables.
6721
6722 2011-01-09  Bruno Haible  <bruno@clisp.org>
6723
6724         Update to Unicode 5.2.0.
6725         * lib/gen-uni-tables.c (output_predicate, output_category,
6726         output_combclass, output_bidi_category, output_decimal_digit_test,
6727         output_decimal_digit, output_digit_test, output_digit,
6728         output_numeric_test, output_numeric, output_mirror, output_scripts,
6729         output_scripts_byname, output_blocks, output_ident_category): Fix
6730         comment header.
6731         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6732         get_wbp.
6733         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6734         items.
6735         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6736         Changes_When_Lowercased, Changes_When_Uppercased,
6737         Changes_When_Titlecased, Changes_When_Casefolded,
6738         Changes_When_Casemapped.
6739         (is_property_alphabetic, is_property_default_ignorable_code_point):
6740         Update for Unicode 5.2.0.
6741         (is_property_cased, is_property_case_ignorable,
6742         is_property_changes_when_lowercased,
6743         is_property_changes_when_uppercased,
6744         is_property_changes_when_titlecased,
6745         is_property_changes_when_casefolded,
6746         is_property_changes_when_casemapped): New functions.
6747         (output_properties): Output also the properties cased, case_ignorable,
6748         changes_when_lowercased, changes_when_uppercased,
6749         changes_when_titlecased, changes_when_casefolded,
6750         changes_when_casemapped.
6751         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6752         Unicode TR#11 revision 17 -> 19.
6753         (LBP_CP): New enumeration value.
6754         (LBP_*): Adjust values accordingly.
6755         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6756         TR#14 revision 22 -> 24.
6757         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6758         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6759         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6760         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6761         is_WBP_MIDLETTER.
6762         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6763         the code1 and code2 of each composition rule.
6764         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6765         * lib/unicase/ignorable.h: Likewise.
6766         * lib/unicase/tocasefold.h: Likewise.
6767         * lib/unicase/tolower.h: Likewise.
6768         * lib/unicase/totitle.h: Likewise.
6769         * lib/unicase/toupper.h: Likewise.
6770         * lib/unictype/bidi_of.h: Likewise.
6771         * lib/unictype/blocks.h: Likewise.
6772         * lib/unictype/categ_C.h: Likewise.
6773         * lib/unictype/categ_Cf.h: Likewise.
6774         * lib/unictype/categ_Cn.h: Likewise.
6775         * lib/unictype/categ_L.h: Likewise.
6776         * lib/unictype/categ_Ll.h: Likewise.
6777         * lib/unictype/categ_Lm.h: Likewise.
6778         * lib/unictype/categ_Lo.h: Likewise.
6779         * lib/unictype/categ_Lu.h: Likewise.
6780         * lib/unictype/categ_M.h: Likewise.
6781         * lib/unictype/categ_Mc.h: Likewise.
6782         * lib/unictype/categ_Mn.h: Likewise.
6783         * lib/unictype/categ_N.h: Likewise.
6784         * lib/unictype/categ_Nd.h: Likewise.
6785         * lib/unictype/categ_Nl.h: Likewise.
6786         * lib/unictype/categ_No.h: Likewise.
6787         * lib/unictype/categ_P.h: Likewise.
6788         * lib/unictype/categ_Pd.h: Likewise.
6789         * lib/unictype/categ_Po.h: Likewise.
6790         * lib/unictype/categ_S.h: Likewise.
6791         * lib/unictype/categ_Sc.h: Likewise.
6792         * lib/unictype/categ_So.h: Likewise.
6793         * lib/unictype/categ_of.h: Likewise.
6794         * lib/unictype/combining.h: Likewise.
6795         * lib/unictype/ctype_alnum.h: Likewise.
6796         * lib/unictype/ctype_alpha.h: Likewise.
6797         * lib/unictype/ctype_graph.h: Likewise.
6798         * lib/unictype/ctype_lower.h: Likewise.
6799         * lib/unictype/ctype_print.h: Likewise.
6800         * lib/unictype/ctype_punct.h: Likewise.
6801         * lib/unictype/ctype_upper.h: Likewise.
6802         * lib/unictype/decdigit.h: Likewise.
6803         * lib/unictype/digit.h: Likewise.
6804         * lib/unictype/numeric.h: Likewise.
6805         * lib/unictype/pr_alphabetic.h: Likewise.
6806         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6807         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6808         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6809         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6810         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6811         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6812         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6813         * lib/unictype/pr_combining.h: Likewise.
6814         * lib/unictype/pr_composite.h: Likewise.
6815         * lib/unictype/pr_currency_symbol.h: Likewise.
6816         * lib/unictype/pr_dash.h: Likewise.
6817         * lib/unictype/pr_decimal_digit.h: Likewise.
6818         * lib/unictype/pr_deprecated.h: Likewise.
6819         * lib/unictype/pr_diacritic.h: Likewise.
6820         * lib/unictype/pr_extender.h: Likewise.
6821         * lib/unictype/pr_grapheme_base.h: Likewise.
6822         * lib/unictype/pr_grapheme_extend.h: Likewise.
6823         * lib/unictype/pr_grapheme_link.h: Likewise.
6824         * lib/unictype/pr_id_continue.h: Likewise.
6825         * lib/unictype/pr_id_start.h: Likewise.
6826         * lib/unictype/pr_ideographic.h: Likewise.
6827         * lib/unictype/pr_ignorable_control.h: Likewise.
6828         * lib/unictype/pr_logical_order_exception.h: Likewise.
6829         * lib/unictype/pr_lowercase.h: Likewise.
6830         * lib/unictype/pr_numeric.h: Likewise.
6831         * lib/unictype/pr_other_alphabetic.h: Likewise.
6832         * lib/unictype/pr_punctuation.h: Likewise.
6833         * lib/unictype/pr_sentence_terminal.h: Likewise.
6834         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6835         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6836         * lib/unictype/pr_unified_ideograph.h: Likewise.
6837         * lib/unictype/pr_uppercase.h: Likewise.
6838         * lib/unictype/pr_xid_continue.h: Likewise.
6839         * lib/unictype/pr_xid_start.h: Likewise.
6840         * lib/unictype/pr_zero_width.h: Likewise.
6841         * lib/unictype/scripts.h: Likewise.
6842         * lib/unictype/scripts_byname.gperf: Likewise.
6843         * lib/unictype/sy_java_ident.h: Likewise.
6844         * lib/unigbrk/gbrkprop.h: Likewise.
6845         * lib/unilbrk/lbrkprop1.h: Likewise.
6846         * lib/unilbrk/lbrkprop2.h: Likewise.
6847         * lib/unilbrk/lbrktables.h: Likewise.
6848         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6849         LBP_CP. Implement rule LB30.
6850         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6851         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6852         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6853         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6854         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6855         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6856         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6857         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6858         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6859         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6860         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6861         bits instead of 16 bits in the code1 and code2 of each composition
6862         rule.
6863         (uc_composition): Update for Unicode 5.2.0.
6864         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6865         * lib/uninorm/decomposition-table2.h: Likewise.
6866         * lib/uniwbrk/wbrkprop.h: Likewise.
6867         * tests/unicase/test-cased.c: Likewise.
6868         * tests/unicase/test-ignorable.c: Likewise.
6869         * tests/unicase/test-uc_tolower.c: Likewise.
6870         * tests/unicase/test-uc_totitle.c: Likewise.
6871         * tests/unicase/test-uc_toupper.c: Likewise.
6872         * tests/unictype/test-categ_C.c: Likewise.
6873         * tests/unictype/test-categ_Cf.c: Likewise.
6874         * tests/unictype/test-categ_Cn.c: Likewise.
6875         * tests/unictype/test-categ_L.c: Likewise.
6876         * tests/unictype/test-categ_Ll.c: Likewise.
6877         * tests/unictype/test-categ_Lm.c: Likewise.
6878         * tests/unictype/test-categ_Lo.c: Likewise.
6879         * tests/unictype/test-categ_Lu.c: Likewise.
6880         * tests/unictype/test-categ_M.c: Likewise.
6881         * tests/unictype/test-categ_Mc.c: Likewise.
6882         * tests/unictype/test-categ_Mn.c: Likewise.
6883         * tests/unictype/test-categ_N.c: Likewise.
6884         * tests/unictype/test-categ_Nd.c: Likewise.
6885         * tests/unictype/test-categ_Nl.c: Likewise.
6886         * tests/unictype/test-categ_No.c: Likewise.
6887         * tests/unictype/test-categ_P.c: Likewise.
6888         * tests/unictype/test-categ_Pd.c: Likewise.
6889         * tests/unictype/test-categ_Po.c: Likewise.
6890         * tests/unictype/test-categ_S.c: Likewise.
6891         * tests/unictype/test-categ_Sc.c: Likewise.
6892         * tests/unictype/test-categ_So.c: Likewise.
6893         * tests/unictype/test-ctype_alnum.c: Likewise.
6894         * tests/unictype/test-ctype_alpha.c: Likewise.
6895         * tests/unictype/test-ctype_graph.c: Likewise.
6896         * tests/unictype/test-ctype_lower.c: Likewise.
6897         * tests/unictype/test-ctype_print.c: Likewise.
6898         * tests/unictype/test-ctype_punct.c: Likewise.
6899         * tests/unictype/test-ctype_upper.c: Likewise.
6900         * tests/unictype/test-decdigit.h: Likewise.
6901         * tests/unictype/test-digit.h: Likewise.
6902         * tests/unictype/test-numeric.h: Likewise.
6903         * tests/unictype/test-pr_alphabetic.c: Likewise.
6904         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6905         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6906         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6907         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6908         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6909         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6910         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6911         * tests/unictype/test-pr_combining.c: Likewise.
6912         * tests/unictype/test-pr_composite.c: Likewise.
6913         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6914         * tests/unictype/test-pr_dash.c: Likewise.
6915         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6916         * tests/unictype/test-pr_deprecated.c: Likewise.
6917         * tests/unictype/test-pr_diacritic.c: Likewise.
6918         * tests/unictype/test-pr_extender.c: Likewise.
6919         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6920         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6921         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6922         * tests/unictype/test-pr_id_continue.c: Likewise.
6923         * tests/unictype/test-pr_id_start.c: Likewise.
6924         * tests/unictype/test-pr_ideographic.c: Likewise.
6925         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6926         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6927         * tests/unictype/test-pr_lowercase.c: Likewise.
6928         * tests/unictype/test-pr_numeric.c: Likewise.
6929         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6930         * tests/unictype/test-pr_punctuation.c: Likewise.
6931         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6932         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6933         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6934         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6935         * tests/unictype/test-pr_uppercase.c: Likewise.
6936         * tests/unictype/test-pr_xid_continue.c: Likewise.
6937         * tests/unictype/test-pr_xid_start.c: Likewise.
6938         * tests/unictype/test-pr_zero_width.c: Likewise.
6939         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6940         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6941         changed behaviour: line breaking is now disallowed between a letter
6942         or '=' and '('.
6943         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6944         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6945         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6946         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6947         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6948         lib/uniwidth/width.c.
6949         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6950         without comments, but with the original copyright notice.
6951         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6952         changes.
6953         * lib/unictype/categ_Cc.h: Likewise.
6954         * lib/unictype/categ_Co.h: Likewise.
6955         * lib/unictype/categ_Cs.h: Likewise.
6956         * lib/unictype/categ_Lt.h: Likewise.
6957         * lib/unictype/categ_Me.h: Likewise.
6958         * lib/unictype/categ_Pc.h: Likewise.
6959         * lib/unictype/categ_Pe.h: Likewise.
6960         * lib/unictype/categ_Pf.h: Likewise.
6961         * lib/unictype/categ_Pi.h: Likewise.
6962         * lib/unictype/categ_Ps.h: Likewise.
6963         * lib/unictype/categ_Sk.h: Likewise.
6964         * lib/unictype/categ_Sm.h: Likewise.
6965         * lib/unictype/categ_Z.h: Likewise.
6966         * lib/unictype/categ_Zl.h: Likewise.
6967         * lib/unictype/categ_Zp.h: Likewise.
6968         * lib/unictype/categ_Zs.h: Likewise.
6969         * lib/unictype/ctype_blank.h: Likewise.
6970         * lib/unictype/ctype_cntrl.h: Likewise.
6971         * lib/unictype/ctype_digit.h: Likewise.
6972         * lib/unictype/ctype_space.h: Likewise.
6973         * lib/unictype/ctype_xdigit.h: Likewise.
6974         * lib/unictype/mirror.h: Likewise.
6975         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6976         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6977         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6978         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6979         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6980         * lib/unictype/pr_bidi_control.h: Likewise.
6981         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6982         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6983         * lib/unictype/pr_bidi_pdf.h: Likewise.
6984         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6985         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6986         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6987         * lib/unictype/pr_format_control.h: Likewise.
6988         * lib/unictype/pr_hex_digit.h: Likewise.
6989         * lib/unictype/pr_hyphen.h: Likewise.
6990         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6991         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6992         * lib/unictype/pr_iso_control.h: Likewise.
6993         * lib/unictype/pr_join_control.h: Likewise.
6994         * lib/unictype/pr_left_of_pair.h: Likewise.
6995         * lib/unictype/pr_line_separator.h: Likewise.
6996         * lib/unictype/pr_math.h: Likewise.
6997         * lib/unictype/pr_non_break.h: Likewise.
6998         * lib/unictype/pr_not_a_character.h: Likewise.
6999         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7000         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7001         * lib/unictype/pr_other_id_continue.h: Likewise.
7002         * lib/unictype/pr_other_id_start.h: Likewise.
7003         * lib/unictype/pr_other_lowercase.h: Likewise.
7004         * lib/unictype/pr_other_math.h: Likewise.
7005         * lib/unictype/pr_other_uppercase.h: Likewise.
7006         * lib/unictype/pr_paired_punctuation.h: Likewise.
7007         * lib/unictype/pr_paragraph_separator.h: Likewise.
7008         * lib/unictype/pr_pattern_syntax.h: Likewise.
7009         * lib/unictype/pr_pattern_white_space.h: Likewise.
7010         * lib/unictype/pr_private_use.h: Likewise.
7011         * lib/unictype/pr_quotation_mark.h: Likewise.
7012         * lib/unictype/pr_radical.h: Likewise.
7013         * lib/unictype/pr_soft_dotted.h: Likewise.
7014         * lib/unictype/pr_space.h: Likewise.
7015         * lib/unictype/pr_titlecase.h: Likewise.
7016         * lib/unictype/pr_variation_selector.h: Likewise.
7017         * lib/unictype/pr_white_space.h: Likewise.
7018         * lib/unictype/sy_c_ident.h: Likewise.
7019         * lib/unictype/sy_c_whitespace.h: Likewise.
7020         * lib/unictype/sy_java_whitespace.h: Likewise.
7021         * modules/uni*/*: Bump version number of expected libunistring version.
7022         Reported by Simon Josefsson.
7023
7024 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7025
7026         useless-if-before-free: fix typo in --help and make the internal,
7027         automatic version date update process work once again.
7028         --help output contained a NUL character instead of the
7029         backslash-zero that was intended.  Also, the "must lie within
7030         the first 8 lines" line is on line 9, and hence not getting
7031         automatically updated.
7032         * build-aux/useless-if-before-free: Fix the former by adding a
7033         backslash, and the latter by condensing the three lines of what-it-does
7034         to a single line, leaving one line of slack for the future.
7035
7036 2011-01-09  Bruno Haible  <bruno@clisp.org>
7037
7038         uniwidth/width: Fix width of U+1D173..U+1D17A.
7039         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7040         symbolic_width, output_width_property_test): New functions.
7041         (main): Invoke output_nonspacing_property, output_width_property_test.
7042         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7043         U+1D173..U+1D17A.
7044         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7045         1.
7046         * modules/uniwidth/*: Bump version number of expected libunistring
7047         version.
7048         * modules/unilbrk/*: Likewise.
7049
7050 2011-01-08  Bruno Haible  <bruno@clisp.org>
7051
7052         uninorm tests: Preserve copyright of Unicode data file.
7053         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7054         Mention modifications.
7055
7056 2011-01-08  Bruno Haible  <bruno@clisp.org>
7057
7058         gen-uni-tables: Prepare for Unicode 5.2.0.
7059         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7060         (debug_output_lbp, output_lbp): Update.
7061
7062 2011-01-08  Bruno Haible  <bruno@clisp.org>
7063
7064         unilbrk: Clarify gen-uni-tables.c code.
7065         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7066         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7067         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7068
7069 2011-01-07  Bruno Haible  <bruno@clisp.org>
7070
7071         strtod: Restore errno when successfully parsing Infinity or NaN.
7072         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7073         restore the original errno.
7074
7075 2011-01-07  Bruno Haible  <bruno@clisp.org>
7076
7077         remove test: Avoid failure on HP-UX 11.
7078         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7079
7080 2011-01-07  Bruno Haible  <bruno@clisp.org>
7081
7082         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7083         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7084         error code.
7085
7086 2011-01-07  Pádraig Brady <P@draigBrady.com>
7087
7088         ignore-value: fixup comments, and add Eric Blake
7089         as an author since he rewrote the macros.
7090         * lib/ignore-value.h (ignore_value):  State that
7091         we now support aggregates.  Also specify exactly
7092         when the GCC warn_unused_result feature was added.
7093
7094 2011-01-06  Eric Blake  <eblake@redhat.com>
7095
7096         ignore-value: support aggregate types
7097         * lib/ignore-value.h (ignore_value): Provide separate gcc
7098         definition.
7099         * modules/ignore-value-tests: New test module.
7100         * tests/test-ignore-value.c: New test.
7101
7102         maint.mk: improve sc_prohibit_strcmp regex
7103         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7104         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7105         definition of STRNEQ.
7106
7107         signal: work around Haiku issue with SIGBUS
7108         * lib/siglist.h: Add comment.
7109         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7110         strsignal's favoring of SIGSEGV.
7111         * tests/test-signal.c (main): Avoid test failure.
7112         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7113         Reported by Scott McCreary.
7114
7115         maint.mk: add pre-release check to ensure submodule commits are public
7116         * top/maint.mk (public-submodule-commit): New rule.
7117         (submodule-checks): New variable.
7118         (alpha beta stable): Depend on the variable.
7119
7120 2011-01-05  Pádraig Brady <P@draigBrady.com>
7121         and Jim Meyering  <meyering@redhat.com>
7122
7123         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7124         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7125         (ATTRIBUTE_DEPRECATED): Define.
7126         (_ignore_case): New function.
7127         (ignore_value): New macro, to replace the old function.
7128         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7129         * modules/ignore-value (Depends-on): Add stdint.
7130
7131 2011-01-04  Eric Blake  <eblake@redhat.com>
7132
7133         doc: regenerate INSTALL
7134         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7135         @firstparagraphindent support, now that autoconf dropped it.
7136         (INSTALL_PRELUDE): Reinstate old macro.
7137         * doc/install.texi: Resync from autoconf.
7138         * doc/INSTALL: Reflect recent autoconf update.
7139         * doc/INSTALL.ISO: Likewise.
7140         * doc/INSTALL.UTF-8: Likewise.
7141         Reported by Karl Berry.
7142
7143 2011-01-04  Bruce Korb  <address@hidden>
7144
7145         git-version-gen: avoid a sub-shell
7146         * build-aux/git-version-gen: Redirect stderr in `...` via
7147         "exec 2>...", rather than via an added sub-shell.
7148
7149 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7150
7151         git-version-gen: use (...) rather than sh -c '...'
7152         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7153         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7154
7155 2011-01-03  Jim Meyering  <meyering@redhat.com>
7156
7157         git-version-gen: convert leading TABs to spaces
7158         * build-aux/git-version-gen: Expand leading TABs.
7159
7160         git-version-gen: handle failed "git rev-list"
7161         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7162         from git and proceeding as if it had succeeded but printed no SHA1
7163         checksums, suppress the diagnostic and handle the failure.
7164         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7165
7166         git-version-gen: include command name in one more diagnostic
7167         * build-aux/git-version-gen: When the required .tarball-version file
7168         was missing or unreadable, you might see the diagnostic from "cat",
7169         but no trace of the name of the invoking script.  Now, you still see
7170         the diagnostic from cat, but also get one from "git-version-gen: ".
7171         Inspired by a patch from Bruce Korb.
7172
7173         update-copyright: adjust test to match changed code
7174         * tests/test-update-copyright.sh: Change test's expected output
7175         to match new actual output.
7176
7177 2011-01-02  Bruno Haible  <bruno@clisp.org>
7178
7179         getlogin_r: Avoid test failure on HP-UX 11.
7180         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7181         ERANGE when the second argument is zero.
7182         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7183         portability problem.
7184
7185 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7186
7187         * build-aux/update-copyright: doc Simon's changes
7188
7189 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7190
7191         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7192         environment variable.
7193
7194 2011-01-02  Bruno Haible  <bruno@clisp.org>
7195
7196         unigbrk: Avoid gcc warnings.
7197         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7198         unused variable.
7199         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7200         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7201         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7202         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7203         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7204         Change type of first argument to 'const char *'.
7205         (main): Remove unused variable.
7206         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7207         type of first argument to 'const char *'.
7208         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7209         Likewise.
7210         (main): Change type of variable 's'.
7211         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7212         to 'int'.
7213
7214 2011-01-02  Bruno Haible  <bruno@clisp.org>
7215
7216         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7217         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7218         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7219         bug.
7220         * lib/pwrite.c: Undo 2010-12-31 patch.
7221         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7222
7223 2011-01-02  Bruno Haible  <bruno@clisp.org>
7224
7225         pread: Fix test whether it works.
7226         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7227
7228 2011-01-02  Bruno Haible  <bruno@clisp.org>
7229
7230         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7231         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7232         ends in "6". Don't require a specific month name. Try also the locale
7233         names found on HP-UX 11 and Solaris 7.
7234
7235 2011-01-02  Bruno Haible  <bruno@clisp.org>
7236
7237         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7238         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7239         C linkage.
7240         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7241
7242 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7243
7244         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7245         for consistency, since the "cluster" term is not used elsewhere.
7246         * lib/unigbrk.in.h: Update name.
7247         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7248         * lib/unigbrk/u16-grapheme-next.c: Update name.
7249         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7250         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7251         * lib/unigbrk/u32-grapheme-next.c: Update name.
7252         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7253         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7254         * lib/unigbrk/u8-grapheme-next.c: Update name.
7255         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7256         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7257         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7258         Suggested by Bruno Haible.
7259
7260 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7261
7262         Remove module 'u8-grapheme-len' as too redundant with
7263         'u8-grapheme-next'.
7264         * modules/unigbrk/u8-grapheme-len: Delete file.
7265         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7266         * lib/unigbrk.in.h: Remove prototype for deleted function.
7267         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7268         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7269
7270         Remove module 'u16-grapheme-len' as too redundant with
7271         'u16-grapheme-next'.
7272         * modules/unigbrk/u16-grapheme-len: Delete file.
7273         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7274         * lib/unigbrk.in.h: Remove prototype for deleted function.
7275         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7276         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7277
7278         Remove module 'u32-grapheme-len' as too redundant with
7279         'u32-grapheme-next'.
7280         * modules/unigbrk/u32-grapheme-len: Delete file.
7281         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7282         * lib/unigbrk.in.h: Remove prototype for deleted function.
7283         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7284         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7285
7286         Suggested by Bruno Haible.
7287
7288 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7289
7290         * unigbrk.in.h: Fix typo: "ben" => "been".
7291         Reported by Bruno Haible.
7292
7293 2011-01-01  Jim Meyering  <meyering@redhat.com>
7294
7295         maint: update almost all copyright ranges to include 2011
7296         Run the new "make update-copyright" rule.
7297
7298 2011-01-01  Jim Meyering  <meyering@redhat.com>
7299
7300         maint: update-copyright: exempt doc/INSTALL*
7301         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7302         since they are generated.  Suggested by Bruno Haible.
7303
7304 2011-01-01  Jim Meyering  <meyering@redhat.com>
7305
7306         maint: refine the update-copyright rule
7307         * Makefile (update-copyright): Also exclude any file that includes
7308         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7309         code that merely generates the comment.
7310
7311 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7312
7313         New module 'u8-grapheme-len'.
7314         * modules/unigbrk/u8-grapheme-len: New file.
7315         * modules/unigbrk/u8-grapheme-len-tests: New file.
7316         * lib/unigbrk.in.h: Add prototype for new function.
7317         * lib/unigbrk/u8-grapheme-len.c: New file.
7318         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7319
7320         New module 'u16-grapheme-len'.
7321         * modules/unigbrk/u16-grapheme-len: New file.
7322         * modules/unigbrk/u16-grapheme-len-tests: New file.
7323         * lib/unigbrk.in.h: Add prototype for new function.
7324         * lib/unigbrk/u16-grapheme-len.c: New file.
7325         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7326
7327         New module 'u32-grapheme-len'.
7328         * modules/unigbrk/u32-grapheme-len: New file.
7329         * modules/unigbrk/u32-grapheme-len-tests: New file.
7330         * lib/unigbrk.in.h: Add prototype for new function.
7331         * lib/unigbrk/u32-grapheme-len.c: New file.
7332         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7333
7334         New module 'u8-grapheme-next'.
7335         * modules/unigbrk/u8-grapheme-next: New file.
7336         * modules/unigbrk/u8-grapheme-next-tests: New file.
7337         * lib/unigbrk.in.h: Add prototype for new function.
7338         * lib/unigbrk/u8-grapheme-next.c: New file.
7339         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7340
7341         New module 'u16-grapheme-next'.
7342         * modules/unigbrk/u16-grapheme-next: New file.
7343         * modules/unigbrk/u16-grapheme-next-tests: New file.
7344         * lib/unigbrk.in.h: Add prototype for new function.
7345         * lib/unigbrk/u16-grapheme-next.c: New file.
7346         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7347
7348         New module 'u32-grapheme-next'.
7349         * modules/unigbrk/u32-grapheme-next: New file.
7350         * modules/unigbrk/u32-grapheme-next-tests: New file.
7351         * lib/unigbrk.in.h: Add prototype for new function.
7352         * lib/unigbrk/u32-grapheme-next.c: New file.
7353         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7354
7355         New module 'u8-grapheme-prev'.
7356         * modules/unigbrk/u8-grapheme-prev: New file.
7357         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7358         * lib/unigbrk.in.h: Add prototype for new function.
7359         * lib/unigbrk/u8-grapheme-prev.c: New file.
7360         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7361
7362         New module 'u16-grapheme-prev'.
7363         * modules/unigbrk/u16-grapheme-prev: New file.
7364         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7365         * lib/unigbrk.in.h: Add prototype for new function.
7366         * lib/unigbrk/u16-grapheme-prev.c: New file.
7367         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7368
7369         New module 'u32-grapheme-prev'.
7370         * modules/unigbrk/u32-grapheme-prev: New file.
7371         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7372         * lib/unigbrk.in.h: Add prototype for new function.
7373         * lib/unigbrk/u32-grapheme-prev.c: New file.
7374         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7375
7376         New module 'u8-grapheme-breaks'.
7377         * modules/unigbrk/u8-grapheme-breaks: New file.
7378         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7379         * lib/unigbrk.in.h: Add prototype for new function.
7380         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7381         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7382
7383         New module 'u16-grapheme-breaks'.
7384         * modules/unigbrk/u16-grapheme-breaks: New file.
7385         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7386         * lib/unigbrk.in.h: Add prototype for new function.
7387         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7388         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7389
7390         New module 'u32-grapheme-breaks'.
7391         * modules/unigbrk/u32-grapheme-breaks: New file.
7392         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7393         * lib/unigbrk.in.h: Add prototype for new function.
7394         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7395         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7396
7397         New module 'ulc-grapheme-breaks'.
7398         * modules/unigbrk/ulc-grapheme-breaks: New file.
7399         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7400         * m4/locale-ar.m4: New file.
7401         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7402         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7403         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7404
7405 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7406
7407         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7408         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7409         modified how this file was generated before I initially submitted
7410         the module, but failed to regenerate it.  This meant that several
7411         of the level2 entries were wrong.
7412         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7413         Remove the division-by-2 that is folded into the table now that
7414         gbrkprop.h has been regenerated properly.  Now -1 entries are
7415         handled correctly.
7416
7417         New module 'unigbrk/uc-gbrk-prop-tests'.
7418         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7419         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7420         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7421         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7422
7423 2011-01-01  Bruno Haible  <bruno@clisp.org>
7424
7425         Avoid use of hexadecimal escapes.
7426         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7427         instead of hexadecimal escapes.
7428
7429 2011-01-01  Jim Meyering  <meyering@redhat.com>
7430
7431         maint: new rule to update copyright year ranges
7432         * Makefile (update-copyright): New rule.
7433
7434         maint: indent with TABs in Makefile
7435         * Makefile: Expand leading sequences of spaces to TABs
7436
7437         version-etc: update the copyright year it reports
7438         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7439
7440 2010-12-31  Bruno Haible  <bruno@clisp.org>
7441
7442         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7443         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7444         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7445         zero.
7446
7447 2010-12-31  Bruno Haible  <bruno@clisp.org>
7448
7449         pwrite: Work around HP-UX 11.11 bug.
7450         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7451         works and set REPLACE_PWRITE if not.
7452         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7453         function.
7454         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7455
7456 2010-12-31  Bruno Haible  <bruno@clisp.org>
7457
7458         pread: Work around HP-UX 11 bugs.
7459         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7460         and set REPLACE_PREAD if not.
7461         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7462
7463 2010-12-31  Eric Blake  <eblake@redhat.com>
7464
7465         nl_langinfo: fix YESEXPR on Irix 6.5
7466         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7467         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7468         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7469         it.
7470
7471 2010-12-31  Bruno Haible  <bruno@clisp.org>
7472
7473         iconv: Document HP-UX 11 bug.
7474         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7475
7476 2010-12-31  Bruno Haible  <bruno@clisp.org>
7477
7478         ldexpl: Fix link error on HP-UX 11.
7479         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7480         LDEXPL_LIBM, using $ISNANL_LIBM.
7481
7482 2010-12-31  Eric Blake  <eblake@redhat.com>
7483
7484         ftello: avoid compilation failure with SunStudio c89
7485         * lib/ftello.c (ftello): Use lseek, not llseek.
7486
7487         tests: avoid failing coreutils tests on cygwin
7488         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7489         (create_exe_shims_): Return 0 when skipping.
7490
7491 2010-12-31  Bruno Haible  <bruno@clisp.org>
7492
7493         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7494         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7495
7496 2010-12-31  Bruno Haible  <bruno@clisp.org>
7497
7498         waitpid: Fix link error in C++ mode.
7499         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7500
7501 2010-12-31  Bruno Haible  <bruno@clisp.org>
7502
7503         isnan: Use GCC built-ins when possible.
7504         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7505         __builtin_isnan.
7506         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7507         (isnan): Define using GCC built-ins for GCC >= 4.0.
7508
7509 2010-12-31  Bruno Haible  <bruno@clisp.org>
7510
7511         isnand: Fix mistake.
7512         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7513         __builtin_isnand.
7514
7515 2010-12-31  Bruno Haible  <bruno@clisp.org>
7516
7517         open: Avoid C++ error on HP-UX 11.
7518         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7519
7520 2010-12-31  Bruno Haible  <bruno@clisp.org>
7521
7522         time_r: Add missing declarations on HP-UX 11.
7523         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7524         instead of HAVE_LOCALTIME_R.
7525         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7526         HAVE_LOCALTIME_R always.
7527         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7528         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7529         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7530         HAVE_LOCALTIME_R.
7531         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7532         * doc/posix-functions/localtime_r.texi: Likewise.
7533
7534 2010-12-29  Eric Blake  <eblake@redhat.com>
7535
7536         mountlist: tweak previous commit
7537         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7538         Reported by Paul Eggert.
7539
7540         mountlist: fix local drive detection on cygwin
7541         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7542         that works for cygwin.
7543
7544 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7545
7546         ftoastr, snprintf: ftoastr + snprintf module
7547         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7548         since the snprintf module now should be good enough here.
7549         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7550         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7551         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7552         GNULIB_SNPRINTF only for the test directory, and the latter
7553         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7554         seems to suffice by itself.
7555
7556 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7557
7558         alloca: one step towards thread-safety
7559         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7560         need for a static variable.  All callers changed.  This does not
7561         make the alloca replacement thread-safe, but it's one step.
7562
7563         tests: minor indenting change
7564         * tests/init.sh: Sync from coreutils housekeeping patch
7565         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7566         to keep lines within 80 columns.
7567
7568 2010-12-28  Jim Meyering  <meyering@redhat.com>
7569
7570         regex: don't infloop on persistent failing calloc
7571         * lib/regexec.c (build_trtable): Return failure indication upon
7572         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7573         In glibc, this was fixed for version 2.13:
7574         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7575
7576 2010-12-28  Bruno Haible  <bruno@clisp.org>
7577             Paul Eggert <eggert@cs.ucla.edu>
7578
7579         linkat: Make implementation robust against system behaviour variations.
7580         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7581         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7582         way, and to -2 if it needs a generic runtime test.
7583         * lib/linkat.c (solaris_optimized_link_immediate,
7584         solaris_optimized_link_follow): New functions.
7585         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7586         (check_same_link): Use it.
7587
7588 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7589
7590         New module 'unigbrk/base'.
7591         * modules/unigbrk/base: New file.
7592         * lib/unigbrk.in.h: New file.
7593
7594         New module 'unigbrk/uc-gbrk-prop'.
7595         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7596         * modules/unigbrk/uc-gbrk-prop: New file.
7597         * lib/unigbrk/gbrkprop.h: New file.
7598         * lib/unigbrk/uc-gbrk-prop.c: New file.
7599
7600         New module 'unigbrk/uc-is-grapheme-break'.
7601         * modules/unigbrk/uc-is-grapheme-break: New file.
7602         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7603         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7604         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7605         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7606         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7607
7608         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7609
7610 2010-12-27  Bruno Haible  <bruno@clisp.org>
7611
7612         linkat test: Avoid failure on Solaris 11 2010-11.
7613         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7614
7615 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7616
7617         utimens: work around glibc rounding bug on more platforms
7618         * lib/utimens.c (fdutimens): Work around rounding bug even if
7619         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7620         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7621
7622 2010-12-27  Bruno Haible  <bruno@clisp.org>
7623
7624         select tests: Improve comments.
7625         * tests/test-select.c (do_select): Add comments.
7626
7627 2010-12-27  Bruno Haible  <bruno@clisp.org>
7628
7629         select tests: Safer way of handling timeout.
7630         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7631         at every invocation.
7632
7633 2010-12-27  Bruno Haible  <bruno@clisp.org>
7634
7635         select tests: Use 'bool' where appropriate.
7636         * tests/test-select.c (connect_to_socket): Change argument type to
7637         'bool'.
7638
7639 2010-12-27  Bruno Haible  <bruno@clisp.org>
7640
7641         select tests: Use existing modules.
7642         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7643         (configure.ac): Don't test for unistd.h.
7644         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7645         declared in <unistd.h>.
7646
7647 2010-12-27  Bruno Haible  <bruno@clisp.org>
7648
7649         mbrtowc: Work around a Solaris 7 bug.
7650         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7651         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7652         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7653         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7654         MBRTOWC_NULL_ARG1_BUG.
7655         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7656         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7657         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7658         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7659
7660 2010-12-27  Jim Meyering  <meyering@redhat.com>
7661
7662         read-file.c: tweak syntax
7663         * lib/read-file.c (fread_file): Remove space after "*" in function
7664         definitions.
7665
7666 2010-12-27  Bruno Haible  <bruno@clisp.org>
7667
7668         times test: Avoid gcc warnings on OSF/1.
7669         * tests/test-times.c (main): Cast printf arguments from clock_t to
7670         'long int'.
7671
7672 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7673
7674         utimens: work around glibc rounding bug on older Linux kernels
7675         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7676         on Linux with a glibc whose utimes might not work, then work
7677         around a longstanding glibc bug involving rounding rather than
7678         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7679         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7680
7681 2010-12-26  Bruno Haible  <bruno@clisp.org>
7682
7683         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7684         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7685         _GL_CXXALIAS_SYS.
7686         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7687
7688 2010-12-26  Bruno Haible  <bruno@clisp.org>
7689
7690         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7691         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7692         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7693         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7694         looking for the declaration.
7695         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7696         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7697         problem.
7698         * doc/posix-functions/inet_pton.texi: Likewise.
7699
7700 2010-12-26  Bruno Haible  <bruno@clisp.org>
7701
7702         arpa_inet: Use the common idioms with C++ support.
7703         * lib/arpa_inet.in.h: Include c++defs.h.
7704         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7705         support.
7706         * modules/arpa_inet (Depends-on): Add c++defs.
7707         (Makefile.am): Substitute the contents of c++defs.h.
7708         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7709         * modules/arpa_inet-c++-tests: New file.
7710         * tests/test-arpa_inet-c++.cc: New file.
7711
7712 2010-12-25  Bruno Haible  <bruno@clisp.org>
7713
7714         Fix more C++ link errors on Solaris 8.
7715         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7716         $(LIB_EACCESS).
7717         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7718         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7719         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7720         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7721         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7722
7723 2010-12-25  Bruno Haible  <bruno@clisp.org>
7724
7725         printf-posix: Fix link error when a non-GCC compiler is used.
7726         * lib/stdio.in.h (printf): When not using GCC, override printf
7727         correctly.
7728         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7729
7730 2010-12-25  Bruno Haible  <bruno@clisp.org>
7731
7732         strerror_r-posix: Update doc.
7733         * doc/posix-functions/strerror_r.texi: Update doc about the return
7734         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7735
7736 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7737
7738         utimens: simplify the logic of the previous change
7739         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7740         This should not affect whether the test succeeds or fails.
7741
7742         utimens: configure better on hosts with NFS clock skew
7743         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7744         uses the clock of the local host.  It might use the clock of the
7745         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7746         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7747
7748 2010-12-25  Bruno Haible  <bruno@clisp.org>
7749
7750         ptsname test: Avoid failure on Solaris.
7751         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7752         open a pseudo-terminal; don't use BSD-style ptys.
7753         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7754
7755 2010-12-25  Bruno Haible  <bruno@clisp.org>
7756
7757         ptsname: Avoid ERANGE failure on some systems.
7758         * lib/ptsname.c (buffer): Increase size.
7759
7760 2010-12-25  Bruno Haible  <bruno@clisp.org>
7761
7762         rename, renameat: Avoid test failures at NFS mounted locations.
7763         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7764         so that subsequent mkdir calls succeed.
7765
7766 2010-12-25  Bruno Haible  <bruno@clisp.org>
7767
7768         iswblank: Fix C++ link error on Solaris 8.
7769         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7770         _GL_FUNCDECL_SYS.
7771
7772 2010-12-25  Bruno Haible  <bruno@clisp.org>
7773
7774         unistd: Fix C++ link error on Solaris 8.
7775         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7776
7777 2010-12-25  Bruno Haible  <bruno@clisp.org>
7778
7779         readlink doc: Mention an old glibc bug.
7780         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7781
7782 2010-12-25  Bruno Haible  <bruno@clisp.org>
7783
7784         fcntl-h: Fix for use of C++ on glibc systems.
7785         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7786         also on glibc systems in C++ mode.
7787         Reported by Gary V. Vaughan <gary@gnu.org>.
7788
7789 2010-12-25  Bruno Haible  <bruno@clisp.org>
7790
7791         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7792         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7793
7794 2010-12-25  Bruno Haible  <bruno@clisp.org>
7795
7796         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7797         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7798         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7799         test whether truncl works according to ISO C 99 with IEC 60559.
7800         * m4/truncl-ieee.m4: New file.
7801         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7802         m4/signbit.m4.
7803         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7804
7805 2010-12-25  Bruno Haible  <bruno@clisp.org>
7806
7807         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7808         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7809         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7810         test whether ceill works according to ISO C 99 with IEC 60559.
7811         * m4/ceill-ieee.m4: New file.
7812         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7813         m4/signbit.m4.
7814         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7815
7816 2010-12-25  Bruno Haible  <bruno@clisp.org>
7817
7818         Ensure all prerequisites of <wchar.h> are included.
7819         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7820         before <wchar.h>.
7821         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7822         gl_MBRLEN_NUL_RETVAL): Likewise.
7823         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7824         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7825         AC_FUNC_MBRTOWC): Likewise.
7826         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7827         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7828         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7829         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7830         Likewise.
7831         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7832         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7833         (gl_WCHAR_H): Improve comments.
7834         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7835
7836 2010-12-25  Bruno Haible  <bruno@clisp.org>
7837
7838         strtok_r: Fix C syntax error in autoconf macro.
7839         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7840         characters in test program.
7841
7842 2010-12-24  Bruno Haible  <bruno@clisp.org>
7843
7844         ceil, trunc, round: Fix gcc warnings.
7845         * lib/ceil.c (MIN): Undefine before redefining.
7846         * lib/trunc.c (MIN): Likewise.
7847         * lib/round.c (MIN): Likewise.
7848         Include <math.h> first.
7849
7850 2010-12-24  Bruno Haible  <bruno@clisp.org>
7851
7852         select tests: Avoid failures on OSF/1 5.1.
7853         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7854         failure of closing the last socket; it may fail with ECONNRESET.
7855
7856 2010-12-24  Eric Blake  <eblake@redhat.com>
7857
7858         stdint: avoid HP-UX 10.20 preprocessor bug
7859         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7860         than #if.
7861         * tests/test-floor2.c (main): Likewise.
7862         Reported by Peter O'Gorman.
7863
7864         pipe: make obsoletion transition easier
7865         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7866         * modules/pipe (Files): Include revived file.
7867         (Include): Drop reference, to mirror getdate's behavior.
7868
7869 2010-12-24  Bruno Haible  <bruno@clisp.org>
7870
7871         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7872         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7873         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7874         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7875
7876 2010-12-24  Bruno Haible  <bruno@clisp.org>
7877
7878         gethostname: Ensure declaration on NonStop Kernel.
7879         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7880         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7881
7882 2010-12-24  Bruno Haible  <bruno@clisp.org>
7883
7884         sys_select: Ensure all necessary types on NonStop Kernel.
7885         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7886         include <sys/time.h>.
7887         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7888         NonStop Kernel.
7889         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7890
7891 2010-12-24  Bruno Haible  <bruno@clisp.org>
7892
7893         sys_select: Remove unneeded include.
7894         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7895         have <sys/select.h>.
7896
7897 2010-12-24  Bruno Haible  <bruno@clisp.org>
7898
7899         gethostname: Provide a fallback for HOST_NAME_MAX.
7900         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7901         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7902         instead.
7903         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7904
7905 2010-12-24  Bruno Haible  <bruno@clisp.org>
7906
7907         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7908         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7909         (SA_RESTART): Likewise.
7910         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7911
7912 2010-12-24  Bruno Haible  <bruno@clisp.org>
7913
7914         signal: Define NSIG.
7915         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7916         * tests/test-signal.c (nsig): New variable.
7917         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7918
7919 2010-12-24  Bruno Haible  <bruno@clisp.org>
7920
7921         rename, renameat: Avoid test failures on OSF/1 5.1.
7922         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7923         alternative error codes.
7924         * tests/test-renameat.c (main): Likewise.
7925
7926 2010-12-24  Bruno Haible  <bruno@clisp.org>
7927
7928         *printf: Detect large precisions bug on Solaris 10/SPARC.
7929         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7930         by Paul Eggert.
7931         * tests/test-snprintf-posix.h (test_function): Add this test code here
7932         too.
7933         * tests/test-sprintf-posix.h (test_function): Likewise.
7934         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7935         * tests/test-vasprintf-posix.c (test_function): Likewise.
7936         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7937         around by gnulib.
7938         * doc/posix-functions/printf.texi: Likewise.
7939         * doc/posix-functions/snprintf.texi: Likewise.
7940         * doc/posix-functions/sprintf.texi: Likewise.
7941         * doc/posix-functions/vfprintf.texi: Likewise.
7942         * doc/posix-functions/vprintf.texi: Likewise.
7943         * doc/posix-functions/vsnprintf.texi: Likewise.
7944         * doc/posix-functions/vsprintf.texi: Likewise.
7945         * doc/posix-functions/dprintf.texi: Undo last commit.
7946         * doc/posix-functions/vdprintf.texi: Likewise.
7947
7948 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7949
7950         tests: port test-fdutimensat.c to Solaris 8
7951         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7952         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7953         On Solaris 8, it fails with errno == ENOSYS, because there is no
7954         futimens (so it can't use the fd), and there is no lutimens (so it
7955         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7956
7957         vsnprintf: make more consistent with snprintf; doc fixes
7958
7959         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7960         the byte count return problem was promoted from the snprintf-posix
7961         to the snprintf module.
7962         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7963         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7964         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7965         * tests/test-snprintf.c (main): Check the byte count returned.
7966         * tests/test-vsnprintf.c (main): Likewise.
7967
7968 2010-12-23  Eric Blake  <eblake@redhat.com>
7969
7970         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7971         * modules/sigpipe (License): Relax license.
7972
7973 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7974
7975         doc: document Solaris printf bug with large float precisions
7976         * doc/posix-functions/dprintf.texi (dprintf):
7977         * doc/posix-functions/fprintf.texi (fprintf):
7978         * doc/posix-functions/printf.texi (printf):
7979         * doc/posix-functions/snprintf.texi (snprintf):
7980         * doc/posix-functions/sprintf.texi (sprintf):
7981         * doc/posix-functions/vdprintf.texi (vdprintf):
7982         * doc/posix-functions/vfprintf.texi (vfprintf):
7983         * doc/posix-functions/vprintf.texi (vprintf):
7984         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7985         * doc/posix-functions/vsprintf.texi (vsprintf):
7986         Mention that these functions mishandle large floating point
7987         precisions on Solaris 10.  The same bug is also present in Solaris
7988         8, and I assume earlier.  This causes "cd gnulib-tests; make
7989         check" to fail on Solaris 8 (and I assume, later) when building
7990         the latest coreutils, in test-vasprintf-posix's call to
7991         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7992         the wide flavors (e.g., wprintf) so this patch just updates the
7993         documentation for the narrow ones.
7994
7995         test-posixtm.c: add two tests
7996         * tests/test-posixtm.c: Add two tests, to highlight the
7997         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7998         around this bug; this is merely to document it.
7999
8000 2010-12-22  Bruno Haible  <bruno@clisp.org>
8001
8002         getlogin_r: Work around portability problem on OSF/1.
8003         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8004         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8005         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8006         test for a truncated result.
8007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8008         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8009         * modules/getlogin_r (Depends-on): Add memchr.
8010         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8011
8012 2010-12-22  Bruno Haible  <bruno@clisp.org>
8013
8014         ptsname: Avoid test failure on OSF/1 5.1.
8015         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8016         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8017         (same_slave): New function.
8018         (main): Use it to compare ptsname's result with the expected file name.
8019
8020 2010-12-22  Bruno Haible  <bruno@clisp.org>
8021
8022         Port extended stdio modules to HP NonStop Kernel.
8023         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8024         macros.
8025         * lib/fbufmode.c: Update comments.
8026         * lib/fflush.c: Likewise.
8027         * lib/fpurge.c: Likewise.
8028         * lib/freadable.c: Likewise.
8029         * lib/freadahead.c: Likewise.
8030         * lib/freading.c: Likewise.
8031         * lib/freadptr.c: Likewise.
8032         * lib/freadseek.c: Likewise.
8033         * lib/fseeko.c: Likewise.
8034         * lib/fseterr.c: Likewise.
8035         * lib/fwritable.c: Likewise.
8036         * lib/fwriting.c: Likewise.
8037         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8038
8039 2010-12-22  Bruno Haible  <bruno@clisp.org>
8040
8041         ttyname_r: Work around bug on OSF/1 5.1.
8042         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8043         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8044         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8045         present.
8046         * lib/ttyname_r.c (ttyname_r): Update comments.
8047
8048 2010-12-22  Bruno Haible  <bruno@clisp.org>
8049
8050         round: Implement result sign according to IEEE 754.
8051         * lib/round.c (MIN, MINUS_ZERO): New macros.
8052         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8053         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8054         * tests/test-round-ieee.c (main): Likewise.
8055         * tests/test-roundl-ieee.c (main): Likewise.
8056
8057         trunc: Implement result sign according to IEEE 754.
8058         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8059         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8060         * tests/test-trunc2.c: Include minus-zero.h.
8061         (MINUS_ZERO): New macro.
8062         (trunc_reference): Keep in sync with lib/trunc.c.
8063         * tests/test-truncf2.c: Include minus-zero.h.
8064         (MINUS_ZERO): New macro.
8065         (truncf_reference): Keep in sync with lib/trunc.c.
8066         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8067         * tests/test-trunc-ieee.c (main): Likewise.
8068         * tests/test-truncl-ieee.c (main): Likewise.
8069
8070         ceil: Implement result sign according to IEEE 754.
8071         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8072         (FUNC): Return -0.0 for -1 < x < 0.
8073         * tests/test-ceil2.c: Include minus-zero.h.
8074         (MINUS_ZERO): New macro.
8075         (ceil_reference): Keep in sync with lib/ceil.c.
8076         * tests/test-ceilf2.c: Include minus-zero.h.
8077         (MINUS_ZERO): New macro.
8078         (ceilf_reference): Keep in sync with lib/ceil.c.
8079         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8080         * tests/test-ceil-ieee.c (main): Likewise.
8081         * tests/test-ceill-ieee.c (main): Likewise.
8082
8083         floor: Implement result sign according to IEEE 754.
8084         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8085         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8086         * tests/test-floorf2.c (floorf_reference): Likewise.
8087         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8088         * tests/test-floor-ieee.c (main): Likewise.
8089         * tests/test-floorl-ieee.c (main): Likewise.
8090
8091 2010-12-22  Bruno Haible  <bruno@clisp.org>
8092
8093         getaddrinfo: Update doc.
8094         * doc/posix-functions/gai_strerror.texi: Return type is also different
8095         on AIX and HP-UX.
8096
8097 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8098
8099         getaddrinfo, inet_ntop: Update doc for Solaris.
8100         * doc/posix-functions/gai_strerror.texi: Return type is also an
8101         issue on Solaris 9 and earlier.
8102         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8103         on Solaris 10 and earlier.
8104
8105 2010-12-21  Bruno Haible  <bruno@clisp.org>
8106
8107         New module 'roundl-ieee'.
8108         * modules/roundl-ieee: New file.
8109         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8110         test whether roundl works according to ISO C 99 with IEC 60559.
8111         * m4/roundl-ieee.m4: New file.
8112         * modules/roundl-ieee-tests: New file.
8113         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8114         * tests/test-roundl.c (main): Remove signbit tests.
8115         * modules/roundl-tests (Depends-on): Remove signbit.
8116         * doc/posix-functions/roundl.texi: Mention the new module.
8117
8118 2010-12-21  Bruno Haible  <bruno@clisp.org>
8119
8120         New module 'truncl-ieee'.
8121         * modules/truncl-ieee: New file.
8122         * modules/truncl-ieee-tests: New file.
8123         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8124         * tests/test-truncl.c (main): Remove signbit tests.
8125         * modules/truncl-tests (Depends-on): Remove signbit.
8126         * doc/posix-functions/truncl.texi: Mention the new module.
8127
8128 2010-12-21  Bruno Haible  <bruno@clisp.org>
8129
8130         New module 'ceill-ieee'.
8131         * modules/ceill-ieee: New file.
8132         * modules/ceill-ieee-tests: New file.
8133         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8134         * tests/test-ceill.c (main): Remove signbit tests.
8135         * modules/ceill-tests (Depends-on): Remove signbit.
8136         * doc/posix-functions/ceill.texi: Mention the new module.
8137
8138 2010-12-21  Bruno Haible  <bruno@clisp.org>
8139
8140         New module 'floorl-ieee'.
8141         * modules/floorl-ieee: New file.
8142         * modules/floorl-ieee-tests: New file.
8143         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8144         * tests/test-floorl.c (main): Remove signbit tests.
8145         * modules/floorl-tests (Depends-on): Remove signbit.
8146         * doc/posix-functions/floorl.texi: Mention the new module.
8147
8148 2010-12-21  Bruno Haible  <bruno@clisp.org>
8149
8150         New module 'round-ieee'.
8151         * modules/round-ieee: New file.
8152         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8153         whether round works according to ISO C 99 with IEC 60559.
8154         * m4/round-ieee.m4: New file.
8155         * modules/round-ieee-tests: New file.
8156         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8157         * tests/test-round1.c (main): Remove signbit tests.
8158         * modules/round-tests (Depends-on): Remove 'signbit'.
8159         * doc/posix-functions/round.texi: Mention the new module.
8160
8161 2010-12-21  Bruno Haible  <bruno@clisp.org>
8162
8163         New module 'trunc-ieee'.
8164         * modules/trunc-ieee: New file.
8165         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8166         whether trunc works according to ISO C 99 with IEC 60559.
8167         * m4/trunc-ieee.m4: New file.
8168         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8170         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8171         * modules/trunc-ieee-tests: New file.
8172         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8173         * tests/test-trunc1.c (main): Remove signbit tests.
8174         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8175         * doc/posix-functions/trunc.texi: Mention the new module.
8176
8177 2010-12-21  Bruno Haible  <bruno@clisp.org>
8178
8179         New module 'ceil-ieee'.
8180         * modules/ceil-ieee: New file.
8181         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8182         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8183         ISO C 99 with IEC 60559.
8184         * m4/ceil-ieee.m4: New file.
8185         * modules/ceil (Files): Add lib/ceil.c.
8186         (Depends-on): Add 'float'.
8187         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8188         * lib/math.in.h (ceil): New declaration.
8189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8190         REPLACE_CEIL.
8191         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8192         * modules/ceil-ieee-tests: New file.
8193         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8194         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8195         * doc/posix-functions/ceil.texi: Mention the new module.
8196
8197 2010-12-21  Bruno Haible  <bruno@clisp.org>
8198
8199         New module 'floor-ieee'.
8200         * modules/floor-ieee: New file.
8201         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8202         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8203         ISO C 99 with IEC 60559.
8204         * m4/floor-ieee.m4: New file.
8205         * modules/floor (Files): Add lib/floor.c.
8206         (Depends-on): Add 'float'.
8207         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8208         * lib/math.in.h (floor): New declaration.
8209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8210         REPLACE_FLOOR.
8211         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8212         * modules/floor-ieee-tests: New file.
8213         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8214         * tests/test-math-c++.cc: Check the signature of 'floor'.
8215         * doc/posix-functions/floor.texi: Mention the new module.
8216
8217 2010-12-21  Bruno Haible  <bruno@clisp.org>
8218
8219         New module 'roundf-ieee'.
8220         * modules/roundf-ieee: New file.
8221         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8222         test whether roundf works according to ISO C 99 with IEC 60559.
8223         * m4/roundf-ieee.m4: New file.
8224         * modules/roundf-ieee-tests: New file.
8225         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8226         * tests/test-roundf1.c (main): Remove signbit tests.
8227         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8228         * doc/posix-functions/roundf.texi: Mention the new module.
8229
8230 2010-12-21  Bruno Haible  <bruno@clisp.org>
8231
8232         New module 'truncf-ieee'.
8233         * modules/truncf-ieee: New file.
8234         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8235         test whether truncf works according to ISO C 99 with IEC 60559.
8236         * m4/truncf-ieee.m4: New file.
8237         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8239         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8240         * modules/truncf-ieee-tests: New file.
8241         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8242         * tests/test-truncf1.c (main): Remove signbit tests.
8243         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8244         * doc/posix-functions/truncf.texi: Mention the new module.
8245
8246 2010-12-21  Bruno Haible  <bruno@clisp.org>
8247
8248         New module 'ceilf-ieee'.
8249         * modules/ceilf-ieee: New file.
8250         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8251         test whether ceilf works according to ISO C 99 with IEC 60559.
8252         * m4/ceilf-ieee.m4: New file.
8253         * modules/ceilf-ieee-tests: New file.
8254         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8255         * tests/test-ceilf1.c (main): Remove signbit tests.
8256         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8257         * doc/posix-functions/ceilf.texi: Mention the new module.
8258
8259 2010-12-21  Bruno Haible  <bruno@clisp.org>
8260
8261         New module 'floorf-ieee'.
8262         * modules/floorf-ieee: New file.
8263         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8264         test whether floorf works according to ISO C 99 with IEC 60559.
8265         * m4/floorf-ieee.m4: New file.
8266         * modules/floorf-ieee-tests: New file.
8267         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8268         * tests/test-floorf1.c (main): Remove signbit tests.
8269         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8270         * doc/posix-functions/floorf.texi: Mention the new module.
8271
8272 2010-12-21  Bruno Haible  <bruno@clisp.org>
8273
8274         Support for minus zero in autoconf macros.
8275         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8276         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8277         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8278         * tests/minus-zero.h: Update comments.
8279
8280 2010-12-21  Bruno Haible  <bruno@clisp.org>
8281
8282         Tests for module 'ceil'.
8283         * modules/ceil-tests: New file.
8284         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8285         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8286
8287 2010-12-21  Bruno Haible  <bruno@clisp.org>
8288
8289         Tests for module 'floor'.
8290         * modules/floor-tests: New file.
8291         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8292         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8293
8294 2010-12-21  Bruno Haible  <bruno@clisp.org>
8295
8296         math: Fix indentation.
8297         * lib/math.in.h (floorf): Fix indentation.
8298
8299 2010-12-21  Bruno Haible  <bruno@clisp.org>
8300
8301         Fix cross-compilation guesses on Solaris.
8302         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8303         not match "solaris2.10".
8304         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8305         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8306         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8307
8308 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8309
8310         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8311         This fixes a problem observed with the latest coreutils snapshot
8312         that caused a test to fail on Solaris 8.  src/csplit.c's call
8313         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8314         earlier, instead of returning the number of bytes that would have
8315         been generated; this causes csplit to incorrectly report memory
8316         exhaustion.
8317         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8318         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8319         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8320         comments to match.
8321         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8322         Fix typo in matching older versions of Solaris: "solaris2.10"
8323         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8324         only for guessing while cross-compiling.
8325         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8326
8327 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8328
8329         ftoastr: fix comment again
8330         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8332         Also, simplify example a bit by using flags = 0.
8333
8334 2010-12-20  Bruno Haible  <bruno@clisp.org>
8335
8336         round*, trunc*: Update documentation regarding glibc.
8337         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8338         * doc/posix-functions/round.texi: Likewise.
8339         * doc/posix-functions/roundl.texi: Likewise.
8340         * doc/posix-functions/truncf.texi: Likewise.
8341         * doc/posix-functions/trunc.texi: Likewise.
8342         * doc/posix-functions/truncl.texi: Likewise.
8343
8344 2010-12-20  Bruno Haible  <bruno@clisp.org>
8345
8346         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8347         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8348         * doc/posix-functions/round.texi: Likewise.
8349         * doc/posix-functions/roundl.texi: Likewise.
8350
8351 2010-12-20  Bruno Haible  <bruno@clisp.org>
8352
8353         ttyname_r: Add missing declaration on HP-UX 11.
8354         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8355         HAVE_TTYNAME_R.
8356         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8357         declared. Set HAVE_TTYNAME_R always.
8358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8359         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8360         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8361         HAVE_TTYNAME_R.
8362         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8363
8364 2010-12-20  Bruno Haible  <bruno@clisp.org>
8365
8366         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8367         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8368         * doc/posix-functions/getlogin_r.texi: Likewise.
8369         * tests/test-getlogin.c: Include <errno.h>.
8370         (main): Avoid test failure on HP-UX 11.11.
8371         * tests/test-getlogin_r.c (main): Likewise.
8372
8373 2010-12-20  Bruno Haible  <bruno@clisp.org>
8374
8375         getlogin_r: Add missing declaration on HP-UX 11.
8376         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8377         declared also when it exists as a function.
8378         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8379
8380 2010-12-20  Bruno Haible  <bruno@clisp.org>
8381
8382         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8383         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8384         through wcrtomb.
8385
8386 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8387
8388         ftoastr: fix comment
8389         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8390         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8391
8392 2010-12-19  Bruno Haible  <bruno@clisp.org>
8393
8394         isnan: Ensure it is a macro.
8395         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8396         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8397         Solaris.
8398
8399 2010-12-19  Bruno Haible  <bruno@clisp.org>
8400
8401         ldexpl test: Fix link error on OSF/1 5.1.
8402         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8403
8404 2010-12-19  Bruno Haible  <bruno@clisp.org>
8405
8406         wctype: Make it work in C++ mode on OSF/1 5.1.
8407         * lib/wctype.in.h (iswblank): Declare but not define here.
8408         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8409         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8410         * modules/wctype (Files): Add lib/iswblank.c.
8411
8412 2010-12-19  Bruno Haible  <bruno@clisp.org>
8413
8414         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8415         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8416         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8417
8418 2010-12-19  Bruno Haible  <bruno@clisp.org>
8419
8420         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8421         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8422         _POSIX_PII_SOCKET.
8423         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8424         * doc/posix-functions/recvfrom.texi: Likewise.
8425         * doc/posix-functions/send.texi: Likewise.
8426         * doc/posix-functions/sendto.texi: Likewise.
8427
8428 2010-12-19  Bruno Haible  <bruno@clisp.org>
8429
8430         tcgetsid: Add missing declaration on OSF/1 5.1.
8431         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8432         HAVE_TCGETSID.
8433         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8434         Don't set HAVE_TCGETSID.
8435         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8436         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8437         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8438         HAVE_TCGETSID.
8439         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8440
8441 2010-12-19  Bruno Haible  <bruno@clisp.org>
8442
8443         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8444         * lib/stdio.in.h: During the include_next statement, let recursive
8445         includes of this file include only the system header file.
8446
8447 2010-12-19  Bruno Haible  <bruno@clisp.org>
8448
8449         iconv_open: Fix regression from 2010-12-04.
8450         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8451         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8452
8453 2010-12-19  Bruno Haible  <bruno@clisp.org>
8454
8455         stdbool test: Avoid a gcc warning.
8456         * tests/test-stdbool.c (main): Fail if e1 is false.
8457         Reported by Jim Meyering.
8458
8459 2010-12-19  Jim Meyering  <meyering@redhat.com>
8460
8461         setenv: restore to working order
8462         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8463         mistakenly removed.
8464         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8465         HAVE_SETENV.
8466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8467         HAVE_SETENV.
8468
8469 2010-12-19  Bruno Haible  <bruno@clisp.org>
8470
8471         Document some different function declarations on OSF/1 5.1.
8472         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8473         * doc/posix-functions/inet_ntop.texi: Likewise.
8474         * doc/posix-functions/gethostname.texi: Likewise.
8475         * lib/unistd.in.h (gethostname): Update comment.
8476
8477 2010-12-19  Bruno Haible  <bruno@clisp.org>
8478
8479         doc: Mention vasprintf-posix module.
8480         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8481         the 'vasprintf-posix' module.
8482         * doc/glibc-functions/vasprintf.texi: Likewise.
8483
8484 2010-12-19  Bruno Haible  <bruno@clisp.org>
8485
8486         unsetenv: Add missing declaration on OSF/1 5.1.
8487         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8488         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8489         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8491         not HAVE_UNSETENV.
8492         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8493         HAVE_UNSETENV.
8494         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8495
8496 2010-12-19  Bruno Haible  <bruno@clisp.org>
8497
8498         setenv: Add missing declaration on OSF/1 5.1.
8499         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8500         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8501         declared. Don't set HAVE_SETENV.
8502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8503         not HAVE_SETENV.
8504         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8505         HAVE_SETENV.
8506         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8507
8508 2010-12-19  Bruno Haible  <bruno@clisp.org>
8509
8510         nl_langinfo tests: Avoid gcc warning.
8511         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8512
8513 2010-12-19  Bruno Haible  <bruno@clisp.org>
8514
8515         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8516         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8517         _GL_CXXALIAS_SYS.
8518
8519 2010-12-19  Bruno Haible  <bruno@clisp.org>
8520
8521         stdbool: Relax test.
8522         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8523         address to 'bool' work in static initializer, for compilers other than
8524         GCC.
8525
8526 2010-12-19  Bruno Haible  <bruno@clisp.org>
8527
8528         ftello: Add missing declaration on OSF/1 5.1.
8529         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8530         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8532         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8533         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8534
8535 2010-12-19  Bruno Haible  <bruno@clisp.org>
8536
8537         fseeko: Add missing declaration on OSF/1 5.1.
8538         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8539         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8541         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8542         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8543
8544 2010-12-19  Bruno Haible  <bruno@clisp.org>
8545
8546         fchdir: Add missing declaration on OSF/1 5.1.
8547         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8550         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8551         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8552
8553 2010-12-19  Bruno Haible  <bruno@clisp.org>
8554
8555         relocatable-prog-wrapper: Separate from relocatable-prog.
8556         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8557         uninstall-relocwrapper rule here.
8558         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8559         Reported by Ian Beckwith <ianb@erislabs.net>.
8560
8561 2010-12-19  Bruno Haible  <bruno@clisp.org>
8562
8563         unistr/u8-mbsnlen: Add missing dependency.
8564         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8565         Reported by Ian Beckwith <ianb@erislabs.net>.
8566
8567 2010-12-19  Bruno Haible  <bruno@clisp.org>
8568
8569         iconv: Make it possible again to use this module without 'iconv-h'.
8570         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8571         if it is not defined.
8572         Reported by Ian Beckwith <ianb@erislabs.net>.
8573
8574 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8575
8576         acl: port to Solaris 8 when copying from tmpfs to ufs
8577         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8578         error number.  Problem observed on Solaris 8 with latest
8579         coreutils, with "mv A B", where A is on a tmpfs file system and B
8580         is on a ufs file system.  This caused coreutils' mv/part-symlink
8581         test to fail.
8582
8583         tests: set fail=0 at start
8584         * tests/init.sh (setup_): Move fail=0 initialization here ...
8585         (mktempd_): ... from here, so that tests can rely on fail being
8586         set to 0 initially.  This fixes a problem in coreutils; see:
8587         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8588
8589 2010-12-18  Bruno Haible  <bruno@clisp.org>
8590
8591         memmem-simple: Stylistic changes.
8592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8593         Fix preprocessor directive indentation.
8594
8595 2010-12-15  Pádraig Brady <P@draigBrady.com>
8596
8597         memmem, memmem-simple: reorganize and expand empty needle check
8598         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8599         functional checks to memmem-simple so that one has a fully functional
8600         memmem by using just this module.
8601         Restrict the performance only check to the memmem module.
8602         Also expand the empty needle check to ensure the correct
8603         pointer is returned, not just a non NULL pointer.
8604         * doc/glibc-functions/memmem.texi: Rearrange the portability
8605         documentation to correlate with the rearranged checks.
8606         Clarify exactly how the memmem and memmem-simple modules
8607         relate to each other.
8608
8609 2010-12-15  Pádraig Brady <P@draigBrady.com>
8610             Bruno Haible  <bruno@clisp.org>
8611
8612         Improve cross-compilation guesses for uClibc.
8613         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8614         that uClibc does not have the glibc bug.
8615         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8616         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8617
8618 2010-12-14  Eric Blake  <eblake@redhat.com>
8619
8620         configmake: provide fallbacks for oldest supported autotools
8621         * m4/configmake.m4: New file.
8622         * modules/configmake (Files): Ship it.
8623         (configure.ac): Use it to guarantee fallbacks.
8624
8625 2010-12-13  Pádraig Brady <P@draigBrady.com>
8626
8627         read-file: Improve handling of large files
8628         * lib/read-file.c (fread_file): Minimize realloc()s
8629         for regular files, and better manage sizes around SIZE_MAX.
8630
8631 2010-12-13  Eric Blake  <eblake@redhat.com>
8632
8633         cloexec, fcntl: relax license
8634         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8635         consent from all contributors.
8636         * modules/fcntl (License): Likewise.
8637
8638 2010-12-10  Bruno Haible  <bruno@clisp.org>
8639
8640         Tests for module 'pipe-posix'.
8641         * modules/pipe-posix-tests: New file.
8642         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8643
8644 2010-12-10  Bruno Haible  <bruno@clisp.org>
8645
8646         pipe-posix: Make it work in C++ mode.
8647         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8648         (pipe): Use common idiom, not a macro definition.
8649         * lib/pipe.c: New file.
8650         * m4/pipe.m4: New file.
8651         * modules/pipe-posix (Description): Enhance.
8652         (Files): Add lib/pipe.c, m4/pipe.m4.
8653         (configure.ac): Invoke gl_FUNC_PIPE.
8654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8655         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8656         * tests/test-unistd-c++.cc: Check the signature of pipe.
8657
8658 2010-12-10  Bruno Haible  <bruno@clisp.org>
8659
8660         Rename module 'pipe' to 'spawn-pipe'.
8661         * modules/spawn-pipe: New file, renamed from modules/pipe.
8662         (Files, configure.ac, Makefile.am): Update.
8663         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8664         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8665         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8666         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8667         "spawn-pipe.h" instead of "pipe.h".
8668         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8669         to gl_SPAWN_PIPE.
8670         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8671         (Files, Makefile.am): Update.
8672         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8673         Update.
8674         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8675         Include "spawn-pipe.h" instead of "pipe.h".
8676         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8677         * lib/javacomp.c: Likewise.
8678         * lib/javaversion.c: Likewise.
8679         * lib/pipe-filter-gi.c: Likewise.
8680         * lib/pipe-filter-ii.c: Likewise.
8681         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8682         * modules/javacomp (Depends-on): Likewise.
8683         * modules/javaversion (Depends-on): Likewise.
8684         * modules/pipe-filter-gi (Depends-on): Likewise.
8685         * modules/pipe-filter-ii (Depends-on): Likewise.
8686         * MODULES.html.sh (Executing programs): Update.
8687         * NEWS: Mention the change.
8688
8689 2010-12-10  Eric Blake  <eblake@redhat.com>
8690
8691         pipe-posix: new module
8692         * modules/pipe-posix: New file.
8693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8694         (gl_UNISTD_H): Check for declaration.
8695         * modules/unistd (Makefile.am): Substitute it.
8696         * lib/unistd.in.h (pipe): Provide it for mingw.
8697         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8698         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8699
8700 2010-12-07  Bruno Haible  <bruno@clisp.org>
8701
8702         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8703         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8704         u8_strcmp_gnu.
8705         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8706
8707 2010-12-06  Bruno Haible  <bruno@clisp.org>
8708
8709         Update internal documentation.
8710         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8711
8712 2010-12-04  Bruno Haible  <bruno@clisp.org>
8713
8714         Put more information about failed tests into the test return codes.
8715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8716         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8717         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8718         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8719         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8720         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8721         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8722         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8723         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8725         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8726         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8727         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8728         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8729         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8730         returns a bit mask.
8731         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8732         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8733         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8734         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8735         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8739         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8740         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8741         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8742         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8743         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8744         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8745         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8746         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8747         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8748         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8749         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8750         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8751         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8752         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8753         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8754         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8755         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8756         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8757         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8758         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8759         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8760         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8761         gl_PRINTF_PRECISION): Likewise.
8762         * m4/regex.m4 (gl_REGEX): Likewise.
8763         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8764         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8765         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8766         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8769         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8770         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8771         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8772         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8773         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8774         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8775         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8776         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8777         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8778         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8779         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8780         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8782         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8783         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8784         enumerated value.
8785         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8786
8787 2010-12-04  Bruno Haible  <bruno@clisp.org>
8788
8789         Update for Solaris 11 2010-11.
8790         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8791         Express, released in November 2010.
8792
8793 2010-12-04  Bruno Haible  <bruno@clisp.org>
8794
8795         nproc: Relax license.
8796         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8797         and Paul Eggert.
8798         Requested by Ludovic Courtès <ludo@gnu.org>.
8799
8800 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8801
8802         utimecmp: fine-grained src to nearby coarse-grained dest
8803
8804         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8805         and the source is on a file system with higher-resolution time
8806         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8807         not work, and the time stamps are close together, the algorithm to
8808         determine the exact resolution from the read-back mtime was buggy:
8809         it had a "!=" where it should have had an "==".  This bug has been
8810         in the code ever since it was introduced to gnulib.
8811         Problem reported by Dan Jacobson in
8812         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8813
8814 2010-11-30  Bruno Haible  <bruno@clisp.org>
8815
8816         strerror_r-posix: Fix autoconf test.
8817         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8818
8819 2010-11-28  Bruno Haible  <bruno@clisp.org>
8820             Paul Eggert  <eggert@cs.ucla.edu>
8821
8822         Tests for module 'getdomainname'.
8823         * modules/getdomainname-tests: New file.
8824         * tests/test-getdomainname.c: New file, based on
8825         tests/test-gethostname.c.
8826
8827 2010-11-28  Bruno Haible  <bruno@clisp.org>
8828             Paul Eggert  <eggert@cs.ucla.edu>
8829
8830         getdomainname: Use the system function when possible.
8831         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8832         (getdomainname): Replace if needed. Provide the declaration if it is
8833         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8834         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8835         (getdomainname): When the system has getdomainname, call the system
8836         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8837         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8838         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8839         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8840         the function if its second argument is of type 'int' or if it is found
8841         in libnsl.
8842         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8843         <sys/systeminfo.h> and sysinfo().
8844         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8846         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8847         HAVE_GETDOMAINNAME.
8848         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8849         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8850         * doc/glibc-functions/getdomainname.texi: Document the problems with
8851         the getdomainname declaration.
8852
8853 2010-11-28  Bruno Haible  <bruno@clisp.org>
8854
8855         sys_socket: Ensure ss_family field on AIX.
8856         * lib/sys_socket.in.h (ss_family): New macro definition.
8857         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8858         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8859         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8860         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8861         * modules/sys_socket (Makefile.am): Substitute
8862         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8863         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8864
8865 2010-11-27  Bruno Haible  <bruno@clisp.org>
8866
8867         readline: Improve configure output.
8868         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8869         "checking for readline..." result understandable.
8870
8871 2010-11-27  Bruno Haible  <bruno@clisp.org>
8872
8873         *printf-posix: Detect a bug on Solaris 10/x86.
8874         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8875         for floating-point output.
8876         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8877         directive.
8878         * tests/test-snprintf-posix.h (test_function): Likewise.
8879         * tests/test-sprintf-posix.h (test_function): Likewise.
8880         * tests/test-vasprintf-posix.c (test_function): Likewise.
8881         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8882         * doc/posix-functions/printf.texi: Likewise.
8883         * doc/posix-functions/snprintf.texi: Likewise.
8884         * doc/posix-functions/sprintf.texi: Likewise.
8885         * doc/posix-functions/vfprintf.texi: Likewise.
8886         * doc/posix-functions/vprintf.texi: Likewise.
8887         * doc/posix-functions/vsnprintf.texi: Likewise.
8888         * doc/posix-functions/vsprintf.texi: Likewise.
8889         * doc/glibc-functions/obstack_printf.texi: Likewise.
8890         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8891
8892 2010-11-27  Bruno Haible  <bruno@clisp.org>
8893
8894         Fix link error when module libunistring-optional is in use.
8895         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8896         * modules/striconveha-tests (Makefile.am): Likewise.
8897
8898 2010-11-27  Bruno Haible  <bruno@clisp.org>
8899
8900         regex: Mention link dependencies.
8901         * modules/regex (Link): New section.
8902         * modules/rpmatch (Link): Likewise.
8903         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8904
8905 2010-11-27  Bruno Haible  <bruno@clisp.org>
8906
8907         ftoastr: Fix compilation error on Solaris.
8908         * lib/ftoastr.c: Include <config.h>.
8909
8910 2010-11-27  Bruno Haible  <bruno@clisp.org>
8911
8912         getloadavg: Update documentation.
8913         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8914
8915 2010-11-27  Bruno Haible  <bruno@clisp.org>
8916
8917         sys_socket: Fix test whether the functions are declared.
8918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8919         not <sys/select.h>.
8920
8921 2010-11-27  Bruno Haible  <bruno@clisp.org>
8922
8923         getpass: Make sure to get system declaration on some platforms.
8924         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8925         gl_USE_SYSTEM_EXTENSIONS.
8926         * modules/getpass (Depends-on): Add extensions.
8927
8928 2010-11-26  Bruno Haible  <bruno@clisp.org>
8929
8930         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8931         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8932         'iconv' module is present.
8933         (ICONV_CONST): New macro.
8934         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8935         ICONV_CONST.
8936         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8937         set ICONV_CONST.
8938         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8939         here.
8940         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8941         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8942         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8943         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8944         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8945         present.
8946
8947 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8948
8949         ftoastr: comment fix
8950         * lib/ftoastr.c: "little" -> "little or no" in comment
8951
8952 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8953
8954         stdint: port to GCC 4.3 + OSX + Octave
8955         On this platform, stdint.h is buggy and defines int64_t to long
8956         long int.  The replacement defined it to long int, causing
8957         problems with C++ style name mangling.  Instead, trust the system
8958         definition if INT64_MAX is defined, and likewise for the unsigned
8959         variant.   Problem reported by Jarno Rajahalme in
8960         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8961         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8962         and don't mess with int64_t and INT64_MAX in this case.
8963         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8964
8965 2010-11-24  Bruno Haible  <bruno@clisp.org>
8966
8967         doc: Corrections regarding MacOS X 10.4 and 10.5.
8968         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8969         MacOS X.
8970         Reported by Simon Josefsson.
8971
8972 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8973
8974         Uninstall ".bin" files installed by relocwrapper.
8975         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8976         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8977         unless it is already there.
8978
8979 2010-11-21  Bruno Haible  <bruno@clisp.org>
8980
8981         Update for NetBSD 5.0.
8982         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8983         NetBSD; the test fails on NetBSD 5.0.
8984         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8985         about NetBSD.
8986
8987 2010-11-21  Bruno Haible  <bruno@clisp.org>
8988
8989         Update for HP-UX 11.23 and HP-UX 11.31.
8990         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8991         HP-UX.
8992
8993 2010-11-21  Bruno Haible  <bruno@clisp.org>
8994
8995         Update for MacOS X 10.5.
8996         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8997         MacOS X; the test fails on MacOS X 10.5.8.
8998         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8999         about MacOS X.
9000
9001 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9002
9003         bootstrap: add bootstrap_sync option.
9004         See discussion at
9005         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9006         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9007         * build-aux/bootstrap: Accept --bootstrap-sync to update
9008         bootstrap if it is not identical to the local gnulib's
9009         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9010         enable this by default.  Accept --no-bootstrap-sync to disable
9011         it.
9012
9013 2010-11-20  Bruno Haible  <bruno@clisp.org>
9014
9015         Ensure that <features.h> is included before __GLIBC__ is tested.
9016         * lib/printf-parse.h: Include <features.h>.
9017         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9018         Reported by Mike Frysinger <vapier@gentoo.org>.
9019
9020         Ensure that <features.h> is included before __GLIBC__ is tested.
9021         * lib/wchar.in.h: Include <features.h>.
9022         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9023         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9024         Reported by Mike Frysinger <vapier@gentoo.org>.
9025
9026         Ensure that <features.h> is included before __GLIBC__ is tested.
9027         * lib/arpa_inet.in.h: Include <features.h>.
9028         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9029         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9030         Reported by Mike Frysinger <vapier@gentoo.org>.
9031
9032         Ensure that <features.h> is included before __GLIBC__ is tested.
9033         * build-aux/link-warning.h: Include <features.h>.
9034         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9035         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9036         Reported by Mike Frysinger <vapier@gentoo.org>.
9037
9038         Ensure that <features.h> is included before __GLIBC__ is tested.
9039         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9040         Reported by Mike Frysinger <vapier@gentoo.org>.
9041
9042 2010-11-20  Bruno Haible  <bruno@clisp.org>
9043
9044         memmem: Fix autoconf test.
9045         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9046
9047 2010-11-20  Bruno Haible  <bruno@clisp.org>
9048
9049         Port to uClibc.
9050         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9051         * lib/fcntl.in.h: Likewise.
9052         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9053         * lib/mbrtowc.c (mbrtowc): Likewise.
9054         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9055         * lib/strerror_r.c: Likewise.
9056         * lib/unistr/u8-strnlen.c: Likewise.
9057         * lib/vasnprintf.c (decimal_point_char): Likewise.
9058         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9059         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9060         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9061         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9062         * tests/test-sigaction.c (handler, main): Likewise.
9063         * lib/freading.h: Treat uClibc like a non-glibc platform.
9064         * lib/freading.c: Likewise.
9065         * lib/gettext.h: Likewise.
9066         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9067         Likewise.
9068         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9069         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9070         * lib/propername.c (proper_name_utf8): Likewise.
9071         * lib/spawn.in.h: Likewise.
9072         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9073         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9074         mem_cd_iconveh_internal): Likewise.
9075         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9076         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9077         strstr, strcasestr): Likewise.
9078         * lib/unicodeio.c (unicode_to_mb): Likewise.
9079         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9080         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9081         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9082         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9083         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9084         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9085         * lib/unistr/u8-stpncpy.c: Likewise.
9086         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9087         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9088         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9089         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9090         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9091         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9092         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9093         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9094         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9095         Likewise.
9096         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9097         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9098         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9099         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9100         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9101         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9102         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9103         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9104         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9105         * tests/test-striconveha.c (main): Likewise.
9106         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9107         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9108         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9109         * doc/posix-functions/getline.texi: Likewise.
9110         Reported by Mike Frysinger <vapier@gentoo.org>.
9111
9112 2010-11-20  Bruno Haible  <bruno@clisp.org>
9113
9114         nproc: Fix condition.
9115         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9116         HAVE_PTHREAD_AFFINITY_NP.
9117
9118 2010-11-20  Bruno Haible  <bruno@clisp.org>
9119
9120         Fix a comment.
9121         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9122
9123 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9124
9125         ftoastr: don't assume snprintf
9126         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9127         Implement a subset of snprintf here, by using sprintf safely.
9128         * modules/ftoastr (Depends-on): Remove snprintf.
9129
9130 2010-11-19  Jim Meyering  <meyering@redhat.com>
9131
9132         test-rename.h: fix compilation failure
9133         * tests/test-rename.h (test_rename): Add omitted "}".
9134
9135 2010-11-17  Jim Meyering  <meyering@redhat.com>
9136
9137         maint.mk: add a URL discussing the no-@acronym policy
9138         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9139
9140 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9141
9142         ftoastr: depend on snprintf, improve comments
9143         * lib/ftoastr.c: Also mention Loitsch's draft.
9144         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9145         needed in the current implementation, but it might simplify
9146         speeding up the code later.
9147         * modules/ftoastr: Depend on snprintf; this improves portability.
9148         Suggested by Bruno Haible in the same email.
9149
9150         ftoastr: port to hosts lacking strtof and strtold
9151         Problem reported by Bruno Haible in
9152         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9153         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9154         environment and strtold (and presumably strtof) are not available.
9155         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9156         (configure.ac): Require gl_C99_STRTOLD.
9157
9158 2010-11-18  Bruno Haible  <bruno@clisp.org>
9159
9160         c-strtold: Avoid link error on AIX 7.
9161         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9162         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9163         (gl_C_STRTOLD): Test whether strtold_l exists.
9164         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9165
9166 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9167
9168         intprops: new macro INT_BITS_STRLEN_BOUND
9169         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9170         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9171         not exposed.  Also, it uses a slightly tighter bound than before;
9172         though this makes no practical difference, we might as well be as
9173         tight as we easily can.
9174
9175         ftoastr: new module, for lossless conversion of floats to short strings
9176         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9177         * modules/ftoastr: New files.
9178
9179 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9180
9181         bootstrap: port to Solaris sed
9182         * build-aux/bootstrap (get_version): Port to Solaris sed.
9183         See Ralf Wildenhues's note in
9184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9185
9186 2010-11-14  Jim Meyering  <meyering@redhat.com>
9187
9188         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9189         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9190         and move definition closer to sole use.
9191
9192 2010-11-13  Jim Meyering  <meyering@redhat.com>
9193
9194         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9195         Now we require at least autoconf-2.59, which means the work-around
9196         is no longer needed.
9197         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9198         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9199         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9200         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9201         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9202
9203 2010-11-13  Bruno Haible  <bruno@clisp.org>
9204
9205         rename, renameat: Avoid test failures at NFS mounted locations.
9206         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9207         functions.
9208         (test_rename): Use assert_nonexistent.
9209         * tests/test-rename.c: Include <dirent.h>.
9210         * tests/test-renameat.c: Likewise.
9211         Reported by Gary V. Vaughan <gary@gnu.org>.
9212
9213         rename, renameat: Document Linux bug with NFS
9214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9215         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9216         * doc/posix-functions/renameat.texi: Likewise.
9217         Suggested by Eric Blake.
9218
9219 2010-11-13  Bruno Haible  <bruno@clisp.org>
9220
9221         rename test: Add comments.
9222         * tests/test-rename.h (test_rename): Add structure and comments.
9223
9224 2010-11-13  Eric Blake  <eblake@redhat.com>
9225
9226         maintainer-makefile: cover a few more files
9227         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9228         scripts generated within C files, for libvirt.
9229
9230 2010-11-13  Bruno Haible  <bruno@clisp.org>
9231
9232         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9233         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9234         character, return the number of bytes that belong together, not always
9235         1.
9236         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9237         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9238         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9239         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9240         number of bytes of an invalid character.
9241         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9242         (main): Invoke it.
9243         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9244         results.
9245         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9246         malformed byte sequences.
9247         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9248         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9249         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9250         Reported by Ben Pfaff and Paolo Bonzini.
9251
9252 2010-11-13  Bruno Haible  <bruno@clisp.org>
9253
9254         openat: Work around glibc bug with fchownat() and empty file names.
9255         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9256         (gl_FUNC_FCHOWNAT): Invoke it.
9257         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9258         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9259         Reported by Gary V. Vaughan <gary@gnu.org>.
9260
9261 2010-11-13  Bruno Haible  <bruno@clisp.org>
9262
9263         openat: Ensure autoconf macro ordering.
9264         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9265         gl_USE_SYSTEM_EXTENSIONS.
9266         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9267
9268 2010-11-13  Bruno Haible  <bruno@clisp.org>
9269
9270         Update comments.
9271         * lib/unistr/u8-check.c: Update file name in comments.
9272         * lib/unistr/u8-mblen.c: Likewise.
9273         * lib/unistr/u8-prev.c: Likewise.
9274         * lib/unistr/u8-strmblen.c: Likewise.
9275         * lib/unistr/u8-strmbtouc.c: Likewise.
9276
9277 2010-11-13  Jim Meyering  <meyering@redhat.com>
9278
9279         tests: avoid test failure on Solaris 10 due to lack of PATH export
9280         * tests/test-update-copyright.sh: Don't forget to export PATH.
9281
9282         init.sh: ensure that IFS is defined, just in case...
9283         * tests/init.sh (setup_): Ensure that IFS is defined,
9284         so that saving and restoring it works as expected.  This
9285         appears to be useful at least for an old version of dash
9286         from a long time ago (RH 6).  See here for details:
9287         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9288
9289         maint.mk: tighten "test a == b" check
9290         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9291         test to files that contain something like #!/bin/sh.
9292         Without this, coreutils would get two false positives in
9293         the comments of C source files.
9294
9295 2010-11-12  Eric Blake  <eblake@redhat.com>
9296
9297         bootstrap: fix typo in previous attempt
9298         * build-aux/bootstrap (buildreq): Correct the grouping.
9299         Reported by Paul Eggert.
9300
9301         maintainer-makefile: prohibit test x == x
9302         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9303         Based on a report by Matthias Bolte.
9304
9305         bootstrap: allow FreeBSD gzip
9306         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9307         which has no '.' and goes to stderr.
9308         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9309         Reported by Matthias Bolte.
9310
9311         maintainer-makefile: check for i18n setup
9312         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9313         will likely work.
9314
9315 2010-11-12  Bruno Haible  <bruno@clisp.org>
9316
9317         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9318         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9319         * lib/nanosleep.c (nanosleep): Likewise.
9320
9321 2010-11-11  Bruno Haible  <bruno@clisp.org>
9322
9323         fcntl-h: Fix for use of C++ on glibc systems.
9324         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9325         also on glibc systems in C++ mode.
9326         Reported by Gary V. Vaughan <gary@gnu.org>.
9327
9328 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9329
9330         mknod: avoid false failure with dash
9331         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9332
9333 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9334
9335         unlink: Fix "is it should" typo in diagnostic.
9336         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9337         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9338
9339 2010-11-11  Bruno Haible  <bruno@clisp.org>
9340
9341         Tests for module 'strerror_r-posix'.
9342         * modules/strerror_r-posix-tests: New file.
9343         * tests/test-strerror_r.c: New file.
9344         * tests/test-string-c++.cc: Check the signature of strerror_r.
9345
9346         New module 'strerror_r-posix'.
9347         * lib/string.in.h (strerror_r): New declaration.
9348         * lib/strerror_r.c: New file.
9349         * m4/strerror_r.m4: New file.
9350         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9351         of strerror_r.
9352         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9353         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9354         * modules/strerror_r-posix: New file.
9355         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9356         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9357         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9358         portability problems.
9359
9360 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9361
9362         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9363         line is also considered for output. Quoted function name in shell
9364         command, so temporary files for functions like MyClass::operator()
9365         are removed correctly without errors.
9366
9367 2010-11-09  Bruno Haible  <bruno@clisp.org>
9368
9369         * doc/posix-functions/strerror.texi: List more failing platforms.
9370
9371         * doc/posix-functions/strerror.texi: Add a comment.
9372
9373 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9374
9375         fdopendir: fix bug on MacOS X when low on file descriptors
9376
9377         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9378         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9379         All callers changed.
9380         (fdopendir): Invoke save_cwd at the top level, not after using
9381         multiple dup() calls to use up file descriptors.  Then retry
9382         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9383         less than the maximum number of open file descriptors, because
9384         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9385         on Mac OS X 10.6.4 for tar 1.24
9386         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9387         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9388         and for tar 1.25
9389         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9390
9391 2010-11-07  Bruno Haible  <bruno@clisp.org>
9392
9393         vasnprintf: Support I flag on glibc systems.
9394         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9395         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9396         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9397         snprintf function.
9398         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9399         glibc systems.
9400         * tests/test-vasnprintf-posix3.c: New file.
9401         * modules/vasnprintf-posix-tests (Files): Add it.
9402         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9403
9404 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9405
9406         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9407         * MODULES.html.sh: For compiler warnings, use name
9408         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9409
9410 2010-11-05  Eric Blake  <eblake@redhat.com>
9411
9412         ceil, floor: avoid spurious failure with icc
9413         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9414         [denormals-as-zero] when optimizing without -mieee-fp option.
9415         * tests/test-floorf2.c (floorf_reference): Likewise.
9416         * tests/test-ceilf1.c (dummy): New function.
9417         (main): Use it to outsmart icc's optimization.
9418         * tests/test-floorf1.c (dummy, main): Likewise.
9419
9420         tests: require working signbit
9421         * modules/ceilf-tests (Depends-on): Add signbit.
9422         * modules/ceill-tests (Depends-on): Likewise.
9423         * modules/floorf-tests (Depends-on): Likewise.
9424         * modules/floorl-tests (Depends-on): Likewise.
9425         * modules/round-tests (Depends-on): Likewise.
9426         * modules/roundf-tests (Depends-on): Likewise.
9427         * modules/roundl-tests (Depends-on): Likewise.
9428         * modules/trunc-tests (Depends-on): Likewise.
9429         * modules/truncf-tests (Depends-on): Likewise.
9430         * modules/truncl-tests (Depends-on): Likewise.
9431
9432         strtod: work around icc bug
9433         * lib/strtod.c (minus_zero): Define to working value.
9434         (strtod): Use it to avoid icc bug.
9435
9436         copysign: enhance tests
9437         * modules/copysign-tests (Files): Add minus-zero.h.
9438         * tests/test-copysign.c (main): Also test zeros.
9439
9440 2010-11-04  Eric Blake  <eblake@redhat.com>
9441
9442         ceil, floor, round, trunc: enhance tests of -0
9443         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9444         * tests/test-ceill.c (main): Likewise.
9445         * tests/test-floorf1.c (main): Likewise.
9446         * tests/test-floorl.c (main): Likewise.
9447         * tests/test-round1.c (main): Likewise.
9448         * tests/test-roundf1.c (main): Likewise.
9449         * tests/test-roundl.c (main): Likewise.
9450         * tests/test-trunc1.c (main): Likewise.
9451         * tests/test-truncf1.c (main): Likewise.
9452         * tests/test-truncl.c (main): Likewise.
9453
9454 2010-11-04  Eric Blake  <eblake@redhat.com>
9455
9456         frexp, tests: work around ICC bug with -zero
9457         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9458         works with more compilers.
9459         * tests/minus-zero.h: New file.
9460         * modules/ceilf-tests (Files): Include it.
9461         * modules/ceill-tests (Files): Likewise.
9462         * modules/floorf-tests (Files): Likewise.
9463         * modules/floorl-tests (Files): Likewise.
9464         * modules/frexp-nolibm-tests (Files): Likewise.
9465         * modules/frexp-tests (Files): Likewise.
9466         * modules/frexpl-nolibm-tests (Files): Likewise.
9467         * modules/frexpl-tests (Files): Likewise.
9468         * modules/isnan-tests (Files): Likewise.
9469         * modules/isnand-nolibm-tests (Files): Likewise.
9470         * modules/isnand-tests (Files): Likewise.
9471         * modules/isnanf-nolibm-tests (Files): Likewise.
9472         * modules/isnanf-tests (Files): Likewise.
9473         * modules/isnanl-nolibm-tests (Files): Likewise.
9474         * modules/isnanl-tests (Files): Likewise.
9475         * modules/round-tests (Files): Likewise.
9476         * modules/roundf-tests (Files): Likewise.
9477         * modules/roundl-tests (Files): Likewise.
9478         * modules/ldexpl-tests (Files): Likewise.
9479         * modules/signbit-tests (Files): Likewise.
9480         * modules/snprintf-posix-tests (Files): Likewise.
9481         * modules/sprintf-posix-tests (Files): Likewise.
9482         * modules/strtod-tests (Files): Likewise.
9483         * modules/trunc-tests (Files): Likewise.
9484         * modules/truncf-tests (Files): Likewise.
9485         * modules/truncl-tests (Files): Likewise.
9486         * modules/vsnprintf-posix-tests (Files): Likewise.
9487         * modules/vsprintf-posix-tests (Files): Likewise.
9488         * modules/vasnprintf-posix-tests (Files): Likewise.
9489         * modules/vasprintf-posix-tests (Files): Likewise.
9490         * tests/test-ceilf1.c (main): Use it.
9491         * tests/test-ceill.c (main): Likewise.
9492         * tests/test-floorf1.c (main): Likewise.
9493         * tests/test-floorl.c (main): Likewise.
9494         * tests/test-frexp.c (main): Likewise.
9495         * tests/test-frexpl.c (main): Likewise.
9496         * tests/test-isnan.c (main): Likewise.
9497         * tests/test-isnand.h (main): Likewise.
9498         * tests/test-isnanf.h (main): Likewise.
9499         * tests/test-isnanl.h (main): Likewise.
9500         * tests/test-ldexpl.c (main): Likewise.
9501         * tests/test-round.c (main): Likewise.
9502         * tests/test-roundf.c (main): Likewise.
9503         * tests/test-roundl.c (main): Likewise.
9504         * tests/test-signbit.c (test_signbitf, test_signbitd)
9505         (test_signbitl): Likewise.
9506         * tests/test-snprintf-posix.h (test_function): Likewise.
9507         * tests/test-sprintf-posix.h (test_function): Likewise.
9508         * tests/test-strtod.c (main): Likewise.
9509         * tests/test-trunc1.c (main): Likewise.
9510         * tests/test-truncf1.c (main): Likewise.
9511         * tests/test-truncl.c (main): Likewise.
9512
9513         isnanl: work around icc bug
9514         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9515
9516 2010-11-03  Eric Blake  <eblake@redhat.com>
9517
9518         tests: fix compiler warnings
9519         * tests/test-getopt.h (test_getopt): Fix condition.
9520         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9521         * tests/test-pipe2.c (main): Likewise.
9522         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9523
9524         utimens: fix broken m4 test
9525         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9526
9527 2010-10-28  Bruno Haible  <bruno@clisp.org>
9528
9529         posix_spawn*, getdtablesize: Relax license.
9530         * modules/posix_spawn (License): Change to LGPLv2+.
9531         * modules/posix_spawnp (License): Likewise.
9532         * modules/posix_spawn-internal (License): Likewise.
9533         * modules/posix_spawnattr_init (License): Likewise.
9534         * modules/posix_spawnattr_getflags (License): Likewise.
9535         * modules/posix_spawnattr_setflags (License): Likewise.
9536         * modules/posix_spawnattr_getpgroup (License): Likewise.
9537         * modules/posix_spawnattr_setpgroup (License): Likewise.
9538         * modules/posix_spawnattr_getschedparam (License): Likewise.
9539         * modules/posix_spawnattr_setschedparam (License): Likewise.
9540         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9541         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9542         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9543         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9544         * modules/posix_spawnattr_getsigmask (License): Likewise.
9545         * modules/posix_spawnattr_setsigmask (License): Likewise.
9546         * modules/posix_spawnattr_destroy (License): Likewise.
9547         * modules/posix_spawn_file_actions_init (License): Likewise.
9548         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9549         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9550         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9551         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9552         * modules/getdtablesize (License): Likewise.
9553         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9554
9555 2010-10-26  Bruno Haible  <bruno@clisp.org>
9556
9557         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9558         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9559         Cygwin and mingw.
9560         Suggested by Eric Blake.
9561
9562 2010-10-26  Bruno Haible  <bruno@clisp.org>
9563
9564         stdio: Work around compilation error due to renameat() on Solaris 10.
9565         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9566         * lib/renameat.c: Don't include <unistd.h> here.
9567         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9568         Reported by Paul Eggert and Eric Blake.
9569
9570 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9571
9572         renameat: port to Solaris 10, which declares renameat in unistd.h
9573
9574         * lib/renameat.c: Include unistd.h before stdio.h, because
9575         Solaris 10 declares renameat in unistd.h.  Problem encountered
9576         when building GNU tar 1.24 on Solaris 10.
9577
9578 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9579
9580         fdopendir: fix C89 compilation
9581         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9582         compilers.
9583
9584 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9585
9586         inttostr: simplify by removing unnecessary redundancy
9587         * lib/anytostr.c: Don't include verify.h.
9588         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9589         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9590         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9591         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9592         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9593         Likewise.
9594         * modules/inttostr (Depends-on): Remove 'verify'.
9595
9596 2010-10-23  Bruno Haible  <bruno@clisp.org>
9597
9598         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9599         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9600         Reported by Eric Blake.
9601
9602 2010-10-23  Bruno Haible  <bruno@clisp.org>
9603
9604         Tests: Fix LOCALE_JA on MirBSD 10.
9605         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9606         to an UTF-8 locale.
9607         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9608         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9609         Reported by Eric Blake.
9610
9611 2010-10-21  Bruno Haible  <bruno@clisp.org>
9612
9613         nl_langinfo test: Avoid test failure on NetBSD 5.
9614         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9615         Reported by Eric Blake.
9616
9617 2010-10-21  Eric Blake  <eblake@redhat.com>
9618
9619         c-stack: work around libsigsegv 2.8 bug
9620         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9621         overflow on at least PowerPC64.
9622
9623 2010-10-17  Bruno Haible  <bruno@clisp.org>
9624
9625         userspec: Drop redundant file.
9626         * modules/userspec (Files): Remove lib/inttostr.h.
9627
9628 2010-10-17  Bruno Haible  <bruno@clisp.org>
9629
9630         nl_langinfo tests: Silence some warnings.
9631         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9632         Reported by Jim Meyering.
9633
9634 2010-10-17  Bruno Haible  <bruno@clisp.org>
9635
9636         Make use of GCC's attribute __alloc_size__.
9637         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9638         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9639         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9640         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9641         __alloc_size__.
9642         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9643         Suggested by Jim Meyering.
9644
9645 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9646
9647         bootstrap: anchor .gitignore entries.
9648         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9649         with...
9650         (insert_vc_ignore): ... this new function, which prepends `/' to
9651         all .gitignore entries before passing them to
9652         insert_sorted_if_absent.
9653
9654 2010-10-16  Bruno Haible  <bruno@clisp.org>
9655
9656         nextafter: Fix configure check.
9657         * modules/nextafter (configure.ac): Correct expected prototype.
9658
9659 2010-10-16  Bruno Haible  <bruno@clisp.org>
9660
9661         termios: Update documentation.
9662         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9663
9664 2010-10-16  Bruno Haible  <bruno@clisp.org>
9665
9666         tests: Make them compile with TinyCC.
9667         * tests/test-strstr.c (main): Remove parentheses around array
9668         initializer.
9669
9670 2010-10-15  Eric Blake  <eblake@redhat.com>
9671
9672         ignore-value: make header idempotent
9673         * lib/ignore-value.h: Add double-inclusion guards.
9674         Reported by Stefan Berger.
9675
9676 2010-10-15  Jim Meyering  <meyering@redhat.com>
9677
9678         GNUmakefile: handle "stable" target, not "major"
9679         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9680         lists in maint.mk and announce-gen.  Without this, "make stable"
9681         would fail to ensure that $(VERSION) is up to date.
9682
9683 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9684
9685         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9686         & co.
9687
9688 2010-10-14  Bruno Haible  <bruno@clisp.org>
9689
9690         vasnprintf: Don't set errno to 0.
9691         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9692         block that sets it to 0.
9693         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9694
9695 2010-10-14  Bruno Haible  <bruno@clisp.org>
9696
9697         socketlib: Fix.
9698         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9699         gl_PREREQ_SYS_H_WINSOCK2.
9700         Reported by Ian Beckwith <ianb@erislabs.net>.
9701
9702 2010-10-13  Jim Meyering  <meyering@redhat.com>
9703
9704         test-select-stdin.c: avoid warn_unused_result warnings
9705         * tests/test-select-stdin.c: Include "macros.h".
9706         ASSERT that read and fflush succeed.
9707
9708 2010-10-13  Jim Meyering  <meyering@redhat.com>
9709
9710         git-version-gen: do require git-VC'd files in cwd
9711         * build-aux/git-version-gen: Reject a git version string
9712         if there are no commits associated with the current directory.
9713         This avoids an unlikely false-positive (unrelated dir whose parent
9714         repository also contains a tag matching v*), as pointed out
9715         by Giuseppe Scrivano in
9716         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9717
9718 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9719
9720         argv-iter: omit nonconforming declaration
9721         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9722         enum arg_iter_err declaration, which doesn't conform to C99.
9723         Solaris 10 cc warns about this.
9724
9725 2010-10-13  Eric Blake  <eblake@redhat.com>
9726
9727         termios: fix compilation on mingw
9728         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9729         (gl_TERMIOS_H): Adjust it on mingw.
9730         * modules/termios (Makefile.am): Substitute new key.
9731         * lib/termios.in.h (includes): Make include_next conditional.
9732         * doc/posix-headers/termios.texi (termios.h): Update
9733         documentation.
9734         Reported by Daniel P. Berrange.
9735
9736 2010-10-13  Jim Meyering  <meyering@redhat.com>
9737
9738         git-version-gen: don't require that .git/ be in the current dir
9739         * build-aux/git-version-gen: Adjust this script so that it works
9740         when run from any working directory beneath the top-level .git/-
9741         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9742         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9743
9744         test-select: avoid warn_unused_result warnings
9745         * tests/test-select.c: Include "macros.h".
9746         ASSERT that each call to read, write, and pipe succeeds.
9747         While not technically required, also check each "close".
9748         * modules/select-tests (Files): Add tests/macros.h.
9749
9750         test-symlinkat: remove declaration of unused local
9751         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9752
9753         test-inttostr: avoid shadowing warnings
9754         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9755         and use malloc rather than the stack for the same reason as
9756         mentioned in the comment justifying the other allocation.
9757
9758 2010-10-11  Bruno Haible  <bruno@clisp.org>
9759
9760         stdlib: Allow multiple gnulib generated replacements to coexist.
9761         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9762         Reported by Sam Steingold <sds@gnu.org>.
9763
9764 2010-10-11  Jim Meyering  <meyering@redhat.com>
9765
9766         fix a documentation typo
9767         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9768
9769 2010-10-11  Eric Blake  <eblake@redhat.com>
9770
9771         futimens: work around Solaris 11 bug
9772         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9773         * tests/test-futimens.h (test_futimens): Enhance, rather than
9774         weaken test.
9775         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9776
9777 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9778
9779         Indentation.
9780         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9781         higher-level operators more to the left.
9782
9783 2010-10-11  Jim Meyering  <meyering@redhat.com>
9784
9785         test-futimens: avoid unwarranted test failure on Solaris 5.11
9786         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9787         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9788         because it tries to dereference the NULL name argument.
9789
9790 2010-10-11  Bruno Haible  <bruno@clisp.org>
9791
9792         Indentation.
9793         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9794         indentation.
9795
9796 2010-10-11  Jim Meyering  <meyering@redhat.com>
9797
9798         spawn.in.h: make indentation consistent with parentheses
9799         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9800         Make indentation consistent with parentheses.
9801
9802 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9803
9804         Fix mismatched parens in previous commit
9805         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9806         parens.
9807
9808 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9809
9810         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9811
9812         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9813         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9814         * lib/malloca.c: Include "verify.h".
9815         (verify1): Remove, replacing with a verify call.
9816         * lib/relocwrapper.c (verify1): Likewise.
9817         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9818         Likewise.
9819         * modules/malloca (Depends-on): Add 'verify'.
9820         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9821         * modules/vasnprintf (Depends-on): Add 'verify'.
9822         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9823         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9824         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9825         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9826         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9827         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9828         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9829
9830         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9831
9832         Formerly the style was sometimes 2*X - 1, because the C standard
9833         was wrongly thought to disallow ?: in integral constant expressions.
9834         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9835         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9836         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9837         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9838         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9839         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9840         verify that time_t cannot be floating.
9841
9842 2010-10-08  Eric Blake  <eblake@redhat.com>
9843
9844         time: enforce recent POSIX ruling that time_t is integral
9845         * lib/time.in.h (__time_t_must_be_integral): Detect any
9846         problematic systems, allowing the rest of gnulib to assume POSIX.
9847
9848 2010-10-08  Jim Meyering  <meyering@redhat.com>
9849
9850         fdopendir: fix a bug on systems lacking openat and /proc support
9851         OpenBSD 4.7 is one such system.  The most noticeable effect was
9852         failure of any application making nontrivial use of fts: rm, du,
9853         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9854           ./rm: traversal failed: `a': Bad file descriptor
9855         Debugging that, you see that even though FD 6 was closed just
9856         prior to the opendir call in fd_clone_opendir, its resulting
9857         dir->dd_fd was 8, rather than the expected value of 6:
9858
9859         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9860         93                close (fd);
9861         (gdb) n
9862         94                dir = fd_clone_opendir (dupfd);
9863         (gdb) n
9864         95                saved_errno = errno;
9865         (gdb) p dir->dd_fd
9866         $11 = 8
9867
9868         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9869         The problem is that on OpenBSD, fd_clone_opendir has to resort
9870         to using the old-style save/restore CWD mechanism, due to its
9871         lack of openat/proc support, and *that* would steal the FD (6)
9872         that opendir was supposed to use.
9873
9874         The fix is to squirrel away the desired FD so that save_cwd uses a
9875         different one, and then free the dest FD right before calling opendir.
9876         That guarantees opendir will use the required file descriptor.
9877
9878         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9879
9880 2010-10-08  Bruno Haible  <bruno@clisp.org>
9881
9882         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9883         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9884
9885 2010-10-08  Bruno Haible  <bruno@clisp.org>
9886
9887         nanosleep: Make replacement POSIX compliant.
9888         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9889         is out of range.
9890         Reported by Jim Meyering.
9891
9892 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9893
9894         bootstrap: add hook for altering gnulib.mk, for Bison
9895         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9896         the Bison bootstrapping process can rewrite file names and variables
9897         in this file before later parts of 'bootstrap' use the file.
9898         Bison wants to include lib/gnulib.mk from the top-level makefile,
9899         so it needs the file names in this file to be relative to the top
9900         level, not relative to lib; plus it needs variable names to be
9901         rewritten.
9902         (slurp): Use the new function.
9903
9904         bootstrap: reformat for readability
9905         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9906
9907 2010-10-08  Eric Blake  <eblake@redhat.com>
9908
9909         docs: update cygwin progress
9910         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9911         1.7.7.
9912         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9913         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9914         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9915         * doc/posix-functions/carg.texi (carg): Likewise.
9916         * doc/posix-functions/cargf.texi (cargf): Likewise.
9917         * doc/posix-functions/casin.texi (casin): Likewise.
9918         * doc/posix-functions/casinf.texi (casinf): Likewise.
9919         * doc/posix-functions/casinh.texi (casinh): Likewise.
9920         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9921         * doc/posix-functions/catan.texi (catan): Likewise.
9922         * doc/posix-functions/catanf.texi (catanf): Likewise.
9923         * doc/posix-functions/catanh.texi (catanh): Likewise.
9924         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9925         * doc/posix-functions/ccos.texi (ccos): Likewise.
9926         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9927         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9928         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9929         * doc/posix-functions/cexp.texi (cexp): Likewise.
9930         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9931         * doc/posix-functions/cimag.texi (cimag): Likewise.
9932         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9933         * doc/posix-functions/clog.texi (clog): Likewise.
9934         * doc/posix-functions/clogf.texi (clogf): Likewise.
9935         * doc/posix-functions/conj.texi (conj): Likewise.
9936         * doc/posix-functions/conjf.texi (conjf): Likewise.
9937         * doc/posix-functions/cpow.texi (cpow): Likewise.
9938         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9939         * doc/posix-functions/cproj.texi (cproj): Likewise.
9940         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9941         * doc/posix-functions/creal.texi (creal): Likewise.
9942         * doc/posix-functions/crealf.texi (crealf): Likewise.
9943         * doc/posix-functions/csin.texi (csin): Likewise.
9944         * doc/posix-functions/csinf.texi (csinf): Likewise.
9945         * doc/posix-functions/csinh.texi (csinh): Likewise.
9946         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9947         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9948         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9949         * doc/posix-functions/ctan.texi (ctan): Likewise.
9950         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9951         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9952         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9953         * doc/posix-headers/complex.texi (complex.h): Likewise.
9954
9955 2010-10-07  Jim Meyering  <meyering@redhat.com>
9956
9957         parse-datetime: avoid compilation failure on OpenBSD 4.7
9958         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9959         This works around a compilation failure on OpenBSD 4.7:
9960         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9961
9962 2010-10-07  Eric Blake  <eblake@redhat.com>
9963
9964         docs: update cygwin progress
9965         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9966         1.7.6.
9967         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9968         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9969         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9970         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9971         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9972         Likewise.
9973         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9974         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9975         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9976         Likewise.
9977         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9978         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9979         Likewise.
9980         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9981         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9982         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9983         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9984         Likewise.
9985         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9986         Likewise.
9987         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9988
9989         docs: update parse-datetime history
9990         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9991         documentation of this function's history and alternatives.
9992
9993         cygwin: use more robust version check
9994         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9995         exclude an eventual cygwin 1.9.1.
9996         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9997         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9998         (gl_FUNC_STRCASESTR): Likewise.
9999         Reported by Bruno Haible.
10000
10001 2010-10-06  Bruno Haible  <bruno@clisp.org>
10002
10003         string, sys_select: Avoid #including large headers unless necessary.
10004         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10005         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10006         OSF/1, BeOS, Haiku.
10007         Reported by Jim Meyering.
10008
10009 2010-10-05  Eric Blake  <eblake@redhat.com>
10010
10011         memmem, strstr, strcasestr: fix bug with long periodic needle
10012         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10013         periodic needle having false positive.
10014         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10015         and cygwin 1.7.7.
10016         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10017         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10018         (gl_FUNC_STRCASESTR): Likewise.
10019         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10020         * tests/test-memmem.c (main): Expose the bug.
10021         * tests/test-strcasestr.c (main): Likewise.
10022         * tests/test-strstr.c (main): Likewise.
10023         * tests/test-c-strcasestr.c (main): Likewise.
10024         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10025         * doc/posix-functions/strstr.texi (strstr): Likewise.
10026         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10027         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10028
10029 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10030
10031         parse-datetime: do some more renaming
10032         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10033         parse_datetime, not get_date.  Mention the renaming.
10034         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10035         in comments.
10036         * m4/bison.m4: Likewise.
10037
10038 2010-10-05  Eric Blake  <eblake@redhat.com>
10039
10040         parse-datetime: better name than get_date
10041         * NEWS: Reword the deprecation notice.
10042         * modules/get_date: Rename to modules/parse-datetime.
10043         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10044         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10045         * lib/get_date.y: Rename to lib/parse-datetime.y.
10046         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10047         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10048         * doc/getdate.texi: Provide fallback wrapper.
10049         * lib/getdate.h: Move guts, and wrap...
10050         * lib/parse-datetime.h: ...new file.
10051         * lib/parse-datetime.y (get_date): Rename...
10052         (parse_datetime): ...to this.
10053         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10054         (gl_PARSE_DATETIME): ...to this.
10055         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10056         documentation.
10057         * modules/getdate (Files): Provide fallback docs and header.
10058         (Notice, Depends-on): Update references.
10059         * tests/test-parse-datetime.c: Likewise.
10060         * DEPENDENCIES: Likewise.
10061         * MODULES.html.sh (Date and time <time.h>): Likewise.
10062         * doc/parse-datetime.texi (Date input formats)
10063         (Authors of parse_datetime): Likewise.
10064         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10065         (Include): Likewise.
10066         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10067         * gnulib-tool: Likewise.
10068         * m4/bison.m4 (gl_BISON): Likewise.
10069         Suggested by Bruno Haible.
10070
10071 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10072
10073         more ports to Solaris tr, which needs [] around ranges
10074         * gnulib-tool: Solaris tr needs [] around ranges.
10075         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10076         * tests/test-pipe-filter-gi1.c (main): Likewise.
10077         * tests/test-pipe-filter-ii1.c (main): Likewise.
10078
10079 2010-10-05  Eric Blake  <eblake@redhat.com>
10080
10081         bootstrap: fix Solaris regression
10082         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10083         around ranges.
10084         Reported by Pádraig Brady.
10085
10086         bootstrap: work with pkg-config
10087         * build-aux/bootstrap (check_versions): Also transliterate - in
10088         prerequisite name.
10089         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10090         prerequisites that were already found, to avoid confusion.
10091         Reported by Justin Clift.
10092
10093         faccessat: remove unused wrappers
10094         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10095         presence of these wrappers dragged in -lgen on Solaris.
10096         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10097
10098 2010-10-05  Jim Meyering  <meyering@redhat.com>
10099
10100         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10101         * Makefile (sc_pragma_columns): New syntax-check rule.
10102
10103 2010-10-04  Bruno Haible  <bruno@clisp.org>
10104
10105         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10106         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10107         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10108         Reported by Bruce Korb and Eric Blake.
10109
10110 2010-10-04  Bruno Haible  <bruno@clisp.org>
10111
10112         threadlib: Make option --with-libpth-prefix work.
10113         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10114         use $LIBPTH, not just -lpth.
10115
10116 2010-10-04  Bruno Haible  <bruno@clisp.org>
10117
10118         Avoid line length limitation from HP NonStop system header files.
10119         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10120         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10121         * lib/ctype.in.h: Likewise.
10122         * lib/dirent.in.h: Likewise.
10123         * lib/errno.in.h: Likewise.
10124         * lib/fcntl.in.h: Likewise.
10125         * lib/float.in.h: Likewise.
10126         * lib/getopt.in.h: Likewise.
10127         * lib/iconv.in.h: Likewise.
10128         * lib/inttypes.in.h: Likewise.
10129         * lib/langinfo.in.h: Likewise.
10130         * lib/locale.in.h: Likewise.
10131         * lib/math.in.h: Likewise.
10132         * lib/netdb.in.h: Likewise.
10133         * lib/netinet_in.in.h: Likewise.
10134         * lib/poll.in.h: Likewise.
10135         * lib/pthread.in.h: Likewise.
10136         * lib/pty.in.h: Likewise.
10137         * lib/sched.in.h: Likewise.
10138         * lib/se-selinux.in.h: Likewise.
10139         * lib/search.in.h: Likewise.
10140         * lib/signal.in.h: Likewise.
10141         * lib/spawn.in.h: Likewise.
10142         * lib/stdarg.in.h: Likewise.
10143         * lib/stddef.in.h: Likewise.
10144         * lib/stdint.in.h: Likewise.
10145         * lib/stdio.in.h: Likewise.
10146         * lib/stdlib.in.h: Likewise.
10147         * lib/string.in.h: Likewise.
10148         * lib/strings.in.h: Likewise.
10149         * lib/sys_file.in.h: Likewise.
10150         * lib/sys_ioctl.in.h: Likewise.
10151         * lib/sys_select.in.h: Likewise.
10152         * lib/sys_socket.in.h: Likewise.
10153         * lib/sys_stat.in.h: Likewise.
10154         * lib/sys_time.in.h: Likewise.
10155         * lib/sys_times.in.h: Likewise.
10156         * lib/sys_utsname.in.h: Likewise.
10157         * lib/sys_wait.in.h: Likewise.
10158         * lib/sysexits.in.h: Likewise.
10159         * lib/termios.in.h: Likewise.
10160         * lib/time.in.h: Likewise.
10161         * lib/unistd.in.h: Likewise.
10162         * lib/wchar.in.h: Likewise.
10163         * lib/wctype.in.h: Likewise.
10164         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10165         * modules/ctype (Makefile.am): Likewise.
10166         * modules/dirent (Makefile.am): Likewise.
10167         * modules/errno (Makefile.am): Likewise.
10168         * modules/fcntl-h (Makefile.am): Likewise.
10169         * modules/float (Makefile.am): Likewise.
10170         * modules/getopt-posix (Makefile.am): Likewise.
10171         * modules/iconv-h (Makefile.am): Likewise.
10172         * modules/inttypes (Makefile.am): Likewise.
10173         * modules/langinfo (Makefile.am): Likewise.
10174         * modules/locale (Makefile.am): Likewise.
10175         * modules/math (Makefile.am): Likewise.
10176         * modules/netdb (Makefile.am): Likewise.
10177         * modules/netinet_in (Makefile.am): Likewise.
10178         * modules/poll-h (Makefile.am): Likewise.
10179         * modules/pthread (Makefile.am): Likewise.
10180         * modules/pty (Makefile.am): Likewise.
10181         * modules/sched (Makefile.am): Likewise.
10182         * modules/search (Makefile.am): Likewise.
10183         * modules/selinux-h (Makefile.am): Likewise.
10184         * modules/signal (Makefile.am): Likewise.
10185         * modules/spawn (Makefile.am): Likewise.
10186         * modules/stdarg (Makefile.am): Likewise.
10187         * modules/stddef (Makefile.am): Likewise.
10188         * modules/stdint (Makefile.am): Likewise.
10189         * modules/stdio (Makefile.am): Likewise.
10190         * modules/stdlib (Makefile.am): Likewise.
10191         * modules/string (Makefile.am): Likewise.
10192         * modules/strings (Makefile.am): Likewise.
10193         * modules/sys_file (Makefile.am): Likewise.
10194         * modules/sys_ioctl (Makefile.am): Likewise.
10195         * modules/sys_select (Makefile.am): Likewise.
10196         * modules/sys_socket (Makefile.am): Likewise.
10197         * modules/sys_stat (Makefile.am): Likewise.
10198         * modules/sys_time (Makefile.am): Likewise.
10199         * modules/sys_times (Makefile.am): Likewise.
10200         * modules/sys_utsname (Makefile.am): Likewise.
10201         * modules/sys_wait (Makefile.am): Likewise.
10202         * modules/sysexits (Makefile.am): Likewise.
10203         * modules/termios (Makefile.am): Likewise.
10204         * modules/time (Makefile.am): Likewise.
10205         * modules/unistd (Makefile.am): Likewise.
10206         * modules/wchar (Makefile.am): Likewise.
10207         * modules/wctype (Makefile.am): Likewise.
10208
10209 2010-10-04  Bruno Haible  <bruno@clisp.org>
10210
10211         read-file tests: Avoid a test failure on NonStop Kernel.
10212         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10213         a regular file.
10214         Reported by Joachim Schmitz <schmitz@hp.com>.
10215
10216 2010-10-03  Bruno Haible  <bruno@clisp.org>
10217
10218         gnulib-tool: Fixes for --create-testdir with --libtool.
10219         * gnulib-tool (func_get_automake_snippet): Don't augment
10220         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10221         an executable.
10222         (func_create_testdir): Handle module 'alloca' like func_import.
10223         Reported by Bruce Korb <bruce.korb@gmail.com>.
10224
10225 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10226
10227         Avoid some lines longer than 80 characters.
10228         * lib/stdint.in.h: Break long comment lines.
10229         * lib/math.in.h: Likewise.
10230         (_GL_NUM_UINT_WORDS): New macro, for readability.
10231         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10232         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10233         * lib/stdlib.in.h: Likewise.
10234         * lib/spawn.in.h: Likewise.
10235         * lib/sys_socket.in.h: Update an URL.
10236         * lib/sys_stat.in.h: Break long line.
10237
10238 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10239
10240         Improve pmccabe2html.
10241         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10242         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10243         when the sources change. Remove the line in the HTML about "Used
10244         ranges" (which implied that there might be other unused ranges),
10245         rename "Resume" to "Summary" (easier to understand for more users).
10246         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10247         styles, and some unnecessary blank lines.
10248
10249 2010-10-03  Bruno Haible  <bruno@clisp.org>
10250             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10251
10252         acl: Add support for ACLs on NonStop Kernel.
10253         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10254         Check whether the function aclsort() exists.
10255         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10256         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10257         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10258         (acl_nontrivial [HAVE_ACLSORT]: New function.
10259         (file_has_acl): Implement for NonStop Kernel.
10260         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10261         (qset_acl): Implement for NonStop Kernel.
10262         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10263         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10264         (main): Implement for NonStop Kernel.
10265         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10266         Kernel. Handle this flavor.
10267         * tests/test-set-mode-acl.sh: Likewise.
10268         * tests/test-copy-acl.sh: Likewise.
10269         * tests/test-copy-file.sh: Likewise.
10270
10271 2010-10-03  Bruno Haible  <bruno@clisp.org>
10272
10273         Info about ACLs on NonStop Kernel.
10274         * doc/acl-resources.txt: Add info about NonStop Kernel.
10275         References by Joachim Schmitz <schmitz@hp.com>.
10276
10277 2010-10-02  Bruno Haible  <bruno@clisp.org>
10278
10279         Define missing EDQUOT on NonStop Kernel.
10280         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10281         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10282         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10283         missing.
10284         * doc/posix-headers/errno.texi: Mention the NSK bug.
10285         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10286         Reported by Joachim Schmitz <schmitz@hp.com>.
10287
10288 2010-10-02  Bruno Haible  <bruno@clisp.org>
10289
10290         Update doc for POSIX:2008.
10291         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10292         Update URL of POSIX specification.
10293
10294 2010-10-02  Bruno Haible  <bruno@clisp.org>
10295
10296         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10297         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10298         from gnulib, not from Automake.
10299
10300 2010-10-02  Bruno Haible  <bruno@clisp.org>
10301
10302         New module 'system-posix'.
10303         * modules/system-posix: New file.
10304         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10305         module is present.
10306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10307         GNULIB_SYSTEM_POSIX.
10308         * modules/stdlib (Depends-on): Remove sys_wait.
10309         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10310         * doc/posix-functions/system.texi: Mention the new module.
10311         * doc/posix-headers/stdlib.texi: Likewise.
10312         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10313         define test_sys_wait_macros to a no-op.
10314         Reported by Sam Steingold <sds@gnu.org>.
10315
10316 2010-09-30  Bruno Haible  <bruno@clisp.org>
10317
10318         More renaming from 'getdate' to 'get_date'.
10319         * doc/get_date.texi: Renamed from doc/getdate.texi.
10320         * modules/get_date (Files): Update.
10321         * MODULES.html.sh (Date and time <time.h>): Update.
10322         * DEPENDENCIES: Update.
10323         * gnulib-tool: Update comment.
10324         * m4/bison.m4 (gl_BISON): Likewise.
10325         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10326
10327 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10328
10329         bootstrap: support ACLOCAL_FLAGS during aclocal
10330         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10331         can add additional -I dir for third-party .m4 files.
10332
10333 2010-09-30  Eric Blake  <eblake@redhat.com>
10334
10335         bootstrap: use glibtoolize on MacOS
10336         * build-aux/bootstrap (check_versions): Convert libtool into
10337         libtoolize.
10338         (tool search): Move libtool check earlier, and look for
10339         glibtoolize for MacOS.
10340         (gnulib_tool_options): Auto-add --libtool when appropriate.
10341         Reported by Justin Clift.
10342
10343         poll: fix typo that broke test on MacOS
10344         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10345         Reported by Justin Clift.
10346
10347         getdate: rename to get_date
10348         Note: getdate.h is not renamed, to minimize client impact.
10349         * modules/getdate: Mark obsolete.  Move old contents...
10350         * modules/get_date: ...to new module name.
10351         * modules/getdate-tests: Move...
10352         * modules/get_date-tests: ...here.
10353         * m4/getdate.m4: Move...
10354         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10355         * lib/getdate.y: Move...
10356         * lib/get_date.y: ...here.
10357         * tests/test-getdate.c: Move...
10358         * tests/test-get_date.c: ...here.
10359         * doc/posix-functions/getdate.texi (getdate): Update name.
10360         * NEWS: Mention the change.
10361
10362 2010-09-29  Bruno Haible  <bruno@clisp.org>
10363
10364         Separate the module 'waitpid' from the module 'sys_wait'.
10365         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10366         present.
10367         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10368         gl_MODULE_INDICATOR_FOR_TESTS.
10369         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10370         * modules/sys_wait (Depends-on): Remove waitpid.
10371         (Makefile.am): Substitute GNULIB_WAITPID.
10372         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10373         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10374         signature only if the 'waitpid' module is present.
10375         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10376         * NEWS: Mention the change.
10377         * modules/grantpt (Depends-on): Add waitpid.
10378         * modules/wait-process (Depends-on): Likewise.
10379
10380 2010-09-29  Bruno Haible  <bruno@clisp.org>
10381
10382         More tests for module 'sys_wait'.
10383         * modules/sys_wait-c++-tests: New file.
10384         * tests/test-sys_wait-c++.cc: New file.
10385         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10386         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10387
10388 2010-09-29  Bruno Haible  <bruno@clisp.org>
10389
10390         New module 'waitpid'.
10391         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10392         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10393         Don't include <process.h>.
10394         (waitpid): Declare only, using modern idiom.
10395         * m4/waitpid.m4: New file.
10396         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10397         * modules/waitpid: New file.
10398         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10399         (Makefile.am): Update.
10400         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10401
10402 2010-09-28  Bruno Haible  <bruno@clisp.org>
10403
10404         poll: Assume ANSI C.
10405         * lib/poll.c (poll): Use an ANSI C declaration.
10406
10407 2010-09-28  Bruno Haible  <bruno@clisp.org>
10408
10409         poll-h: Create poll.h on all platforms.
10410         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10411         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10412         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10413         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10414         (gl_REPLACE_POLL_H): Don't set POLL_H.
10415         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10416         * modules/poll-h (Depends-on): Add include_next.
10417         (Makefile.am): Create poll.h unconditionally. Substitute also
10418         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10419
10420 2010-09-28  Bruno Haible  <bruno@clisp.org>
10421
10422         Tests for module 'poll-h'.
10423         * modules/poll-h-c++-tests: New file.
10424         * tests/test-poll-h-c++.cc: New file.
10425
10426         Tests for module 'poll-h'.
10427         * modules/poll-h-tests: New file.
10428         * tests/test-poll-h.c: New file.
10429
10430 2010-09-28  Bruno Haible  <bruno@clisp.org>
10431
10432         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10433         * modules/poll-h (Depends-on): Add 'extensions'.
10434
10435 2010-09-28  Bruno Haible  <bruno@clisp.org>
10436
10437         New module 'poll-h'.
10438         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10439         (poll): Use modern idiom.
10440         * modules/poll-h: New file.
10441         * modules/poll (Files): Remove lib/poll.in.h.
10442         (Depends-on): Add poll-h.
10443         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10444         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10445         * m4/poll_h.m4: New file.
10446         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10447         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10448         and invoke gl_REPLACE_POLL_H.
10449         * lib/poll.c: Use common idiom.
10450         * tests/test-poll.c: Likewise.
10451         * doc/posix-headers/poll.texi: Mention the poll-h module.
10452         Suggested by Eric Blake.
10453
10454 2010-09-26  Bruno Haible  <bruno@clisp.org>
10455
10456         sys_wait: Implement WSTOPSIG.
10457         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10458         Reported by Simon Josefsson.
10459
10460 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10461
10462         stdlib, sys_wait: Avoid compilation error on mingw.
10463         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10464
10465 2010-09-26  Bruno Haible  <bruno@clisp.org>
10466
10467         stdlib tests: Avoid code duplication.
10468         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10469         * modules/sys_wait-tests (Files): Likewise.
10470         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10471         * tests/test-stdlib.c: Include test-sys_wait.h.
10472         (main): Invoke test_sys_wait_macros.
10473         * tests/test-sys_wait.c: Include test-sys_wait.h.
10474         (main): Invoke test_sys_wait_macros.
10475
10476 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10477
10478         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10479         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10480         sure Windows sockets are working before calling getaddrinfo.
10481         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10482         * doc/gnulib.texi (Windows sockets): Fix typo.
10483
10484 2010-09-25  Bruno Haible  <bruno@clisp.org>
10485
10486         Tests for module 'regex-quote'.
10487         * modules/regex-quote-tests: New file.
10488         * tests/test-regex-quote.c: New file.
10489
10490         New module 'regex-quote'.
10491         * lib/regex-quote.h: New file.
10492         * lib/regex-quote.c: New file.
10493         * modules/regex-quote: New file.
10494         Suggested by Reuben Thomas <rrt@sc3d.org>.
10495
10496 2010-09-24  Bruno Haible  <bruno@clisp.org>
10497
10498         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10499         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10500
10501 2010-09-23  Bruno Haible  <bruno@clisp.org>
10502
10503         setenv: Relax license.
10504         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10505         Blake.
10506         Requested by Eric Blake.
10507
10508 2010-09-22  Bruno Haible  <bruno@clisp.org>
10509
10510         termios: Relax license.
10511         * modules/termios (License): Change to LGPLv2+.
10512         Requested by Eric Blake.
10513
10514 2010-09-22  Bruno Haible  <bruno@clisp.org>
10515
10516         threadlib: Allow the package to change the default to 'no'.
10517         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10518         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10519         Reported by Paul Eggert.
10520
10521 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10522             Bruno Haible  <bruno@clisp.org>
10523
10524         Fix endless loop in mbmemcasecoll.
10525         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10526         byte.
10527         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10528
10529 2010-09-22  Bruno Haible  <bruno@clisp.org>
10530
10531         Tests for module 'memcoll'.
10532         * modules/memcoll-tests: New file.
10533         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10534
10535         memcoll, xmemcoll: Clarify size vs. length.
10536         * modules/memcoll.c (memcoll0): Clarify specification.
10537         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10538         passed to collate_error.
10539
10540 2010-09-22  Bruno Haible  <bruno@clisp.org>
10541
10542         Tests for module 'memcasecmp'.
10543         * modules/memcasecmp-tests: New file.
10544         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10545
10546 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10547
10548         * lib/pthread.in.h: Add split double-inclusion guard, and include
10549         system <pthread.h> if there is one.  Use @@-style as in other
10550         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10551         pthread.h doesn't.
10552         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10553         (pthread_mutexattr_settype, pthread_mutex_trylock):
10554         New static inline functions, if there's no system <pthread.h>.
10555         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10556         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10557         Approximate with mutexes if the system lacks spinlocks, as in
10558         MacOS.
10559         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10560         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10561         @@-style.  Check for spinlocks separately.
10562         (gl_PTHREAD_DEFAULTS): New macro.
10563         * modules/pthread: Redo to use a more typical style for in.h files.
10564
10565 2010-09-21  Eric Blake  <eblake@redhat.com>
10566
10567         net_if: enhance tests
10568         * tests/test-net_if.c (main): Move signature checks earlier.
10569         Print failures to stderr.
10570         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10571         Document the bug that we do not yet fix.
10572
10573 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10574
10575         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10576         about gnulib, not GSS.
10577
10578 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10579
10580         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10581         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10582         for Emacs.
10583         * build-aux/pmccabe2html: Make Makefile.am example code more
10584         cut-and-paste friendly.
10585
10586 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10587
10588         * tests/test-net_if.c: New file.
10589         * modules/net_if-tests: New file.
10590
10591 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10592
10593         pthread: add pthread_spin_destroy
10594         * lib/pthread.in.h (pthread_spin_destroy): New function.
10595
10596 2010-09-19  Bruno Haible  <bruno@clisp.org>
10597
10598         gnulib-tool: Fix --help output.
10599         * gnulib-tool (func_usage): Fix help message.
10600         Reported by Reuben Thomas <rrt@sc3d.org>.
10601
10602 2010-09-18  Jim Meyering  <meyering@redhat.com>
10603
10604         maint.mk: avoid unexpanded \n in two diagnostics
10605         * top/maint.mk (sc_prohibit_always_true_header_tests):
10606         Don't use a literal \n in a halt=... assignment.  It would not be
10607         expanded, and the two \n bytes would appear in the diagnostic output
10608         rather than the desired newline.  Use halt=$$(printf ... instead.
10609         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10610
10611 2010-09-18  Bruno Haible  <bruno@clisp.org>
10612
10613         netinet_in: Doc tweak.
10614         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10615         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10616
10617 2010-09-18  Jim Meyering  <meyering@redhat.com>
10618
10619         init.sh: correct an outdated comment
10620         * tests/init.sh (create_exe_shims_):  s/function/alias/
10621
10622         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10623         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10624         a file named "*.exe" is removed between the glob expansion and the
10625         processing of that oddly named file.
10626
10627 2010-09-17  Eric Blake  <eblake@redhat.com>
10628
10629         mirbsd: add some more support
10630         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10631         in BSD family.
10632         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10633         devices as OpenBSD.
10634         * m4/host-os.m4 (mirbsd): Add MirBSD.
10635
10636         tests: fix unportable assumption on sys/wait.h
10637         * tests/test-sys_wait.c (main): Relax test.
10638         * tests/test-stdlib.c (main): Likewise.
10639
10640         init.sh: accomodate directory with no .exes
10641         * tests/init.sh: Accomodate directory containing only scripts.
10642
10643         tests: avoid compiler warning
10644         * tests/test-stdlib.c (main): Use the variable.
10645
10646         fdutimens, fdutimensat: update signature, again
10647         * lib/utimens.h (gl_futimens): Delete, and move signature...
10648         (fdutimens): ...here.
10649         (fdutimensat): Rearrange signature.
10650         (lutimensat): Rename variable for clarity.
10651         * lib/fdutimensat.c (fdutimensat): Update signature.
10652         * lib/utimens.c (fdutimens): Likewise.
10653         (gl_futimens): Delete.
10654         (utimens, lutimens): Update callers.
10655         * lib/futimens.c (futimens): Likewise.
10656         * tests/test-fdutimensat.c: Likewise.
10657         * tests/test-utimens.c: Likewise.
10658         * tests/test-futimens.h: Update comment.
10659         * NEWS: Mention this.
10660         Suggested by Paul Eggert.
10661
10662 2010-09-17  Bruno Haible  <bruno@clisp.org>
10663
10664         Take over the maintenance of some older macros from Autoconf.
10665         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10666         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10667         GNU Autoconf.
10668         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10669         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10670
10671 2010-09-17  Eric Blake  <eblake@redhat.com>
10672
10673         fdutimensat: drop atflag validation
10674         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10675         with valid fd, to close a race scenario where futimens is
10676         unsupported and FILE was replaced by a symlink.
10677         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10678         accordingly.
10679         Suggested by Paul Eggert.
10680
10681 2010-09-16  Bruno Haible  <bruno@clisp.org>
10682
10683         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10684         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10685
10686 2010-09-16  Bruno Haible  <bruno@clisp.org>
10687
10688         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10689         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10690         login_tty exists.
10691         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10692
10693 2010-09-16  Bruno Haible  <bruno@clisp.org>
10694
10695         login_tty: Make the replacement code work on BSD systems.
10696         * lib/login_tty.c: Include <sys/ioctl.h>.
10697         (login_tty): Use ioctl TIOCSCTTY when available.
10698         * modules/login_tty (Depends-on): Add sys_ioctl.
10699         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10700
10701 2010-09-16  Bruno Haible  <bruno@clisp.org>
10702
10703         login_tty: Stricter unit test.
10704         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10705         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10706         and tcgetsid() after login_tty.
10707         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10708
10709 2010-09-16  Bruno Haible  <bruno@clisp.org>
10710
10711         New module 'tcgetsid'.
10712         * lib/tcgetsid.c: New file.
10713         * m4/tcgetsid.m4: New file.
10714         * modules/tcgetsid: New file.
10715         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10716         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10717         GNULIB_TCGETSID, HAVE_TCGETSID.
10718         * lib/termios.in.h: Include <sys/types.h>.
10719         (tcgetsid): New declaration.
10720         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10721         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10722         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10723         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10724
10725 2010-09-16  Bruno Haible  <bruno@clisp.org>
10726
10727         Tests for module 'termios'.
10728         * modules/termios-c++-tests: New file.
10729         * modules/termios-tests: New file.
10730         * tests/test-termios-c++.cc: New file.
10731         * tests/test-termios.c: New file.
10732
10733         New module 'termios'.
10734         * modules/termios: New file.
10735         * lib/termios.in.h: New file.
10736         * m4/termios_h.m4: New file.
10737         * doc/posix-headers/termios.texi: Mention the new module.
10738
10739 2010-09-16  Eric Blake  <eblake@redhat.com>
10740
10741         fdutimensat: add an atflag parameter
10742         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10743         * lib/utimens.h (fdutimensat): Update prototype.
10744         * tests/test-fdutimensat.c: Adjust test to match.
10745         * NEWS: Document the change.
10746         Suggested by Paul Eggert.
10747
10748 2010-09-16  Bruno Haible  <bruno@clisp.org>
10749
10750         Fix typos in comments.
10751         * lib/striconveh.h: Fix typo in comment.
10752         * lib/login_tty.c (login_tty): Likewise.
10753
10754 2010-09-15  Bruno Haible  <bruno@clisp.org>
10755
10756         stdlib: clarify MirBSD WEXITSTATUS bug
10757         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10758         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10759
10760 2010-09-15  Eric Blake  <eblake@redhat.com>
10761
10762         stdlib: work around MirBSD WEXITSTATUS bug
10763         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10764         * modules/stdlib (Depends-on): Add sys_wait.
10765         * tests/test-sys_wait.c (main): Enhance test.
10766         * tests/test-stdlib.c (main): Likewise.
10767         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10768
10769         docs: mention MacOS issue with WEXITSTATUS(constant)
10770         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10771         issue.
10772         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10773
10774         strnlen: add tests
10775         * modules/strnlen-tests: New file.
10776         * tests/test-strnlen.c: Likewise.
10777
10778 2010-09-14  Bruno Haible  <bruno@clisp.org>
10779
10780         unistr/base: Avoid link errors when module 'libunistring' is also used.
10781         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10782         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10783         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10784         Declare also when HAVE_LIBUNISTRING is set.
10785         Reported by Pádraig Brady <P@draigbrady.com>.
10786
10787 2010-09-14  Eric Blake  <eblake@redhat.com>
10788
10789         test-rawmemchr: make more robust
10790         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10791         (Depends-on, configure.ac): Add needed prerequisites to use it.
10792         * modules/memchr-tests (Files, Depends-on, configure.ac):
10793         Likewise, to avoid implicit reliance on memchr module prereqs.
10794         * tests/test-memchr.c (main): Ensure proper masking.
10795         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10796         reads.
10797
10798         memchr: detect glibc Alpha bug
10799         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10800         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10801         Alpha.
10802         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10803         * tests/test-memchr.c (main): Enhance test.
10804         Reported by Nelson H. F. Beebe.
10805
10806 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10807
10808         fts, getcwd, glob: audit for dirfd returning -1
10809         * lib/fts.c (opendir): Remove #define; no longer used.
10810         (opendirat): New arg PDIR_FD.  All callers changed.
10811         (fts_build, _opendir2): Use new opendirat to avoid the need for
10812         dirfd, or for checking whether dirfd returns a negative value.
10813         Don't use opendir; always use openat followed by fdopendir.
10814         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10815         it.
10816         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10817         returns -1 here.
10818         * modules/fts (Depends-on): Remove dirfd.
10819         * modules/getcwd (Depends-on): Likewise.
10820
10821 2010-09-13  Eric Blake  <eblake@redhat.com>
10822
10823         float: fix broken MirBSD header
10824         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10825         * doc/posix-headers/float.texi (float.h): Document it.
10826
10827 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10828
10829         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10830         * lib/fts.c (opendirat): New arg extra_flags.
10831         (__opendir2): Use it to avoid following symlinks when opening
10832         a directory, if symlinks are not supposed to be followed.  See
10833         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10834
10835         fdopendir: preserve argument fd before returning
10836         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10837         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10838         (fdopendir): Use them, arranging for FD to be open to the same
10839         directory that it was when it started.  (It might be temporarily
10840         closed while fdopendir is running, so this not thread- or
10841         signal-safe.)  Be careful to do the right thing even when file
10842         descriptors are scarce and dup fails with errno == EMFILE.  See
10843         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10844
10845 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10846
10847         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10848         * NEWS: Document change.
10849         * m4/regex.m4: Disable test for regoff_t size.
10850
10851 2010-09-13  Jim Meyering  <meyering@redhat.com>
10852
10853         fts: don't operate on an invalid file descriptor after failed dup
10854         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10855         negative file descriptor.
10856
10857 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10858
10859         savedir: add streamsavedir, deprecate fdsavedir
10860         * NEWS: Mention deprecation of fdsavedir.
10861         * lib/savedir.c (streamsavedir): New extern function, whose name
10862         ends in "savedir" to be consistent with the others.  This differs
10863         from savedirstream in that it doesn't close its argument.  The
10864         next version of GNU tar will use this instead of fdsavedir, to
10865         avoid some race conditions and conserve file descriptors.
10866         (savedirstream): Reimplement as a wrapper around streamsavedir.
10867         (fdsavedir): Add a comment deprecating this function.  As far as
10868         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10869         * lib/savedir.h (streamsavedir): New decl.
10870         (fdsavedir): Add a comment deprecating this.
10871
10872 2010-09-10  Bruno Haible  <bruno@clisp.org>
10873
10874         langinfo: Fix last commit.
10875         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10876         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10878
10879 2010-09-10  Bruno Haible  <bruno@clisp.org>
10880
10881         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10882         * lib/progreloc.c (O_EXEC): Define fallback.
10883
10884 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10885
10886         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10887         * NEWS: Document recent changes to fcntl-h.
10888         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10889         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10890         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10891         Similarly for O_SEARCH; this last was already true, but not documented.
10892         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10893         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10894         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10895         Likewise.
10896         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10897         is zero, not whether it is defined.
10898         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10899         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10900         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10901
10902 2010-09-10  Bruno Haible  <bruno@clisp.org>
10903
10904         langinfo, nl_langinfo: Fix for IRIX 5.3.
10905         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10906         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10907         HAVE_LANGINFO_YESEXPR.
10908         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10909         HAVE_LANGINFO_YESEXPR.
10910         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10911         HAVE_LANGINFO_T_FMT_AMPM is 0.
10912         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10913         HAVE_LANGINFO_YESEXPR is 0.
10914         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10915         NOEXPR.
10916         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10917         * doc/posix-functions/nl_langinfo.texi: Likewise.
10918         Reported by Eric Blake.
10919
10920 2010-09-10  Bruno Haible  <bruno@clisp.org>
10921
10922         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10923         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10924         on FreeBSD 8.0 and OpenBSD 4.6.
10925         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10926         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10927         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10928         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10929         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10930         ac_includes_default.
10931         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10932
10933 2010-09-09  Eric Blake  <eblake@redhat.com>
10934
10935         strsignal: work around NetBSD bug
10936         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10937         * lib/string.in.h (includes): Likewise.
10938         * doc/posix-functions/strsignal.texi (strsignal): Document the
10939         bug.
10940         Reported by Nelson H. F. Beebe.
10941
10942         gnulib-tool: work with NetBSD /bin/sh
10943         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10944         (func_get_description, func_get_comment, func_get_status)
10945         (func_get_notice, func_get_applicability, func_get_filelist)
10946         (func_get_dependencies, func_get_autoconf_early_snippet)
10947         (func_get_autoconf_snippet, func_get_automake_snippet)
10948         (func_get_include_directive, func_get_link_directive)
10949         (func_get_license, func_get_maintainer, func_import): Avoid
10950         shell syntax errors from parsing syntax extensions.
10951
10952 2010-09-09  Bruno Haible  <bruno@clisp.org>
10953
10954         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10955         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10956         a reliable way to determine whether the 'alias' command works.
10957
10958 2010-09-08  Jim Meyering  <meyering@redhat.com>
10959
10960         init.sh: penalize a set-x-impaired shell; don't disqualify it
10961         * tests/init.sh: Too many shells corrupt application stderr when
10962         you set -x, so we can't afford to disqualify them, since at least
10963         on Irix-6.5, that would disqualify all bourne shells.
10964         Instead, use a two-pass approach.
10965         On the first pass, try to find a shell that meets the stricter
10966         condition that set -x does not corrupt stderr.
10967         If no shell meets the stricter condition, retest each candidate
10968         shell, but without that extra condition.  Finally, when
10969         VERBOSE=yes is requested and set -x might cause trouble, simply
10970         issue a warning and refrain from enabling debug output.
10971
10972 2010-09-08  Eric Blake  <eblake@redhat.com>
10973
10974         unsetenv: fix OpenBSD bug
10975         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10976         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10977         documentation.
10978         Reported by Jim Meyering.
10979
10980         strtod: work around IRIX 6.5 bug
10981         * lib/strtod.c (strtod): Reparse number on shorter string if
10982         exponent parse was invalid.
10983         * tests/test-strtod.c (main): Add check for "0x1p 2".
10984         Reported by Tom G. Christensen.
10985
10986         getopt: optimize previous patch
10987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10988         empty variable.  Speed up awk script.
10989         Reported by Paolo Bonzini.
10990
10991 2010-09-08  Jim Meyering  <meyering@redhat.com>
10992
10993         test.sh: disqualify shells for which set -x corrupts stderr
10994         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10995         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10996         appear in stderr output.  For example, this command:
10997             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10998         prints "P=1" on those two systems:
10999
11000 2010-09-08  Bruno Haible  <bruno@clisp.org>
11001
11002         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11003         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11004         commands, because some shells ignore redirections when there is an
11005         error in the command lookup.
11006         Reported by Eric Blake.
11007
11008 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11009
11010         * lib/regex.h: Fix a mention of `regex_compile' (should be
11011         `re_compile_pattern').
11012         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11013         (re_set_registers): Correct name of parameter in comment.
11014
11015         * doc/regex.texi: Add documentation for missing syntax flags.
11016         Remove commented-out documentation of defunct syntax option
11017         RE_NO_EMPTY_ALTS.
11018         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11019         Add documentation of re_set_registers.
11020         Document trick to re-use a pattern buffer by setting fastmap manually.
11021         Update documentation of struct re_pattern_buffer per public members.
11022         Uncomment documentation of equivalence class operators and
11023         collating symbol operators, since they are now implemented,
11024         Explain leftmost-longest matching in relation to alternatives.
11025         Tidy documentation of substring matching.
11026         Remove POSIX documentation, which is done better in
11027         glibc, and refer the reader there. Keep BSD API documentation, as
11028         that is not readily available elsewhere.
11029
11030 2010-09-07  Eric Blake  <eblake@redhat.com>
11031
11032         getopt: handle POSIXLY_CORRECT set but not exported
11033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11034         export state of POSIXLY_CORRECT, due to bash set -o posix.
11035         Reported by Dustin J. Mitchell.
11036
11037 2010-09-05  Bruno Haible  <bruno@clisp.org>
11038
11039         gnulib-tool: Highlight the changed options.
11040         * gnulib-tool (func_usage): Display the --import, --add-import,
11041         --remove-import explanations in bold font.
11042
11043 2010-09-06  Karl Berry  <karl@gnu.org>
11044
11045         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11046
11047 2010-09-05  Bruno Haible  <bruno@clisp.org>
11048
11049         uniwidth/width: Update comment.
11050         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11051         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11052
11053 2010-09-05  Bruno Haible  <bruno@clisp.org>
11054
11055         isinf, isnan: Relax license.
11056         * modules/isinf (License): Change from GPL to LGPL, with consent from
11057         Ben Pfaff.
11058         * modules/isnan (License): Likewise.
11059         Requested by Ludovic Courtès.
11060
11061 2010-09-04  Bruno Haible  <bruno@clisp.org>
11062
11063         gnulib-tool: Help migration from --import to --add-import or --update.
11064         * gnulib-tool: Emit a verbose error message when --import is used
11065         without any module name.
11066
11067 2010-09-04  Bruno Haible  <bruno@clisp.org>
11068
11069         Update doc about gnulib-tool.
11070         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11071         'gnulib-tool --update' in more detail.
11072         Reported by Eric Blake.
11073
11074 2010-09-04  Bruno Haible  <bruno@clisp.org>
11075
11076         gnulib-tool: Change --import. New options --add/remove-import.
11077         * gnulib-tool: New options --add-import, --remove-import.
11078         (func_usage): Document them.
11079         (have_associative): Define always.
11080         (func_import): In import mode, don't merge the specified settings with
11081         the cached settings. Implement remove-import mode.
11082         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11083         Explain when to use them versus --import.
11084         (Simple update): Use --add-import instead of --import.
11085         * NEWS: Mention the change.
11086
11087 2010-09-04  Bruno Haible  <bruno@clisp.org>
11088
11089         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11090         separate gnulib.mk.
11091
11092 2010-09-04  Bruno Haible  <bruno@clisp.org>
11093
11094         gnulib-tool: Don't talk about CVS any more.
11095         * gnulib-tool (func_usage, func_import): Write "version control"
11096         instead of CVS.
11097
11098 2010-09-04  Jim Meyering  <meyering@redhat.com>
11099
11100         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11101         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11102         false positives (whose names may be ill-chosen) when searching
11103         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11104         would cause a false-positive.
11105
11106         avoid coreutils "make distcheck" failure
11107         Coreutils tests with an absolute build directory name that contains
11108         a space.  Not quoting this directory name caused a failure.
11109         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11110         * tests/test-vc-list-files-cvs.sh: Likewise.
11111
11112 2010-09-04  Bruno Haible  <bruno@clisp.org>
11113
11114         gnulib-tool: Avoid error when run in a package without Makefile.am.
11115         * gnulib-tool: When collecting the m4dirs in a package that does not
11116         have a Makefile.am, eliminate those directories that contain no
11117         gnulib-cache.m4. Fix expression that counts these directories.
11118
11119 2010-09-04  Bruno Haible  <bruno@clisp.org>
11120
11121         update-copyright test: Improve output when perl is missing or too old.
11122         * tests/test-update-copyright.sh: Move test of Perl version down after
11123         the test whether Perl exists. Provide an explanation relating Perl's
11124         error message to Automake's SKIP: message.
11125
11126 2010-09-04  Bruno Haible  <bruno@clisp.org>
11127
11128         Don't augment PATH in TESTS_ENVIRONMENT.
11129         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11130         set abs_aux_dir instead of augmenting PATH.
11131         * modules/vc-list-files-tests (Makefile.am): Likewise.
11132         * tests/test-update-copyright.sh: Augment PATH here.
11133         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11134         path_prepend_.
11135         * tests/test-vc-list-files-git.sh: Likewise.
11136
11137 2010-09-04  Jim Meyering  <meyering@redhat.com>
11138
11139         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11140         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11141
11142 2010-09-04  Bruno Haible  <bruno@clisp.org>
11143
11144         strdup: Fix compilation error in C++ mode.
11145         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11146         the macro.
11147
11148 2010-09-04  Bruno Haible  <bruno@clisp.org>
11149
11150         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11151         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11152         macro into a function.
11153         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11154
11155 2010-09-04  Bruno Haible  <bruno@clisp.org>
11156
11157         Set PATH_SEPARATOR the same way autoconf does.
11158         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11159         the value of PATH_SEPARATOR the same way autoconf-generated configure
11160         scripts do.
11161         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11162         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11163
11164 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11165
11166         Set PATH_SEPARATOR the same way autoconf does.
11167         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11168         the same way autoconf-generated configure scripts do.
11169         * posix-modules: Likewise.
11170
11171 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11172
11173         hash: fix safe_hasher const typo
11174         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11175         const; otherwise, there is a type error later.
11176
11177 2010-09-02  Jim Meyering  <meyering@redhat.com>
11178
11179         test-update-copyright.sh: require perl 5.8.0
11180         * tests/test-update-copyright.sh: Require 5.8.0,
11181         which Tom G. Christensen has confirmed is adequate,
11182         while 5.6.1 is not.
11183
11184 2010-09-02  Eric Blake  <eblake@redhat.com>
11185
11186         tests: init.sh improvements for re-exec'ing with zsh
11187         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11188         -vx through shell re-exec.
11189         Reported by Tom G. Christensen.
11190
11191         wctype: fix typo in previous commit
11192         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11193         Reported by Ludovic Courtès.
11194
11195 2010-09-02  Jim Meyering  <meyering@redhat.com>
11196
11197         test-update-copyright.sh: skip test if Perl is too old
11198         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11199         Reported by Tom G. Christensen.
11200
11201 2010-09-02  Bruno Haible  <bruno@clisp.org>
11202
11203         wctype: Avoid compilation error on IRIX 6.5.30.
11204         * lib/wctype.in.h (iswblank): Declare with a replacement if
11205         REPLACE_ISWBLANK is set.
11206         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11207         declared. Set REPLACE_ISWBLANK.
11208         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11209         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11210         * doc/posix-headers/wctype.texi: Likewise.
11211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11212
11213 2010-09-01  Bruno Haible  <bruno@clisp.org>
11214
11215         New module 'socketlib'.
11216         * modules/socketlib: New file.
11217         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11218         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11219         * modules/sockets (Depends-on): Add socketlib.
11220         Suggested by Sam Steingold <sds@gnu.org>.
11221
11222 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11223
11224         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11225
11226         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11227         when one needs search access to a directory but not read access.
11228         On systems where it is available, it works in some cases where
11229         O_RDONLY does not, namely on directories that are searchable but
11230         not readable, and which need only to be searchable.  If O_SEARCH
11231         is not available, fall back to the traditional method of using
11232         O_RDONLY.
11233
11234         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11235         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11236         when opening a directory that needs only to be searchable.
11237         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11238         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11239         * lib/openat-proc.c (openat_proc_name): Likewise.
11240         * lib/openat.c (openat_needs_fchdir): Likewise.
11241         * lib/save-cwd.c (save_cwd): Likewise.
11242         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11243
11244 2010-08-28  Bruno Haible  <bruno@clisp.org>
11245
11246         New module 'host-cpu-c-abi'.
11247         * modules/host-cpu-c-abi: New file.
11248         * m4/host-cpu-c-abi.m4: New file, based on part of
11249         clisp/src/m4/general.m4.
11250         Requested by Sam Steingold <sds@gnu.org>.
11251
11252 2010-08-31  Eric Blake  <eblake@redhat.com>
11253         and Jim Meyering  <meyering@redhat.com>
11254
11255         hash: factor, and guard against misbehaving hasher function
11256         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11257         of table->hasher's return value.  Also protect against a hash value
11258         so large that adding it to table->bucket results in a NULL pointer.
11259         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11260         Use it in place of open-coded check-and-abort.
11261
11262 2010-08-30  Bruno Haible  <bruno@clisp.org>
11263
11264         hash: silence spurious clang warning
11265         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11266         Reported by Eric Blake.
11267
11268 2010-08-30  Eric Blake  <eblake@redhat.com>
11269
11270         strstr, memmem, strcasestr: avoid leaked shell message
11271         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11272         FreeBSD.
11273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11274         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11275
11276         tests: silence clang warning
11277         * tests/test-malloca.c (do_allocation): Avoid dead store.
11278
11279 2010-08-29  Bruno Haible  <bruno@clisp.org>
11280
11281         gettext: Fix recent mistake.
11282         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11283
11284 2010-08-29  Bruno Haible  <bruno@clisp.org>
11285
11286         selinux-h: Offer a --without-selinux option.
11287         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11288         --without-selinux was specified, skip all tests and define
11289         HAVE_SELINUX_SELINUX_H to 0.
11290         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11291         set LIB_SELINUX to empty.
11292         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11293         gl_LIBSELINUX. If --without-selinux was specified, replace
11294         selinux/context.h.
11295         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11296
11297 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11298             Bruno Haible  <bruno@clisp.org>
11299
11300         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11301         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11302         of HAVE_REALLOC.
11303         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11304         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11305         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11306         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11307
11308 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11309             Bruno Haible  <bruno@clisp.org>
11310
11311         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11312         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11313         HAVE_CALLOC.
11314         * lib/xmalloc.c: Update accordingly.
11315         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11316         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11317         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11318
11319 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11320             Bruno Haible  <bruno@clisp.org>
11321
11322         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11323         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11324         HAVE_MALLOC.
11325         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11326         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11327         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11328
11329 2010-08-29  Bruno Haible  <bruno@clisp.org>
11330
11331         Update modules list.
11332         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11333         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11334         (String handling <string.h>): Add astrxfrm.
11335         (File system functions): Add readlinkat.
11336
11337 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11338
11339         Tests for module 'realloc-gnu'.
11340         * modules/realloc-gnu-tests: New file.
11341         * tests/test-realloc-gnu.c: New file.
11342
11343         Tests for module 'calloc-gnu'.
11344         * modules/calloc-gnu-tests: New file.
11345         * tests/test-calloc-gnu.c: New file.
11346
11347         Tests for module 'malloc-gnu'.
11348         * modules/malloc-gnu-tests: New file.
11349         * tests/test-malloc-gnu.c: New file.
11350
11351 2010-08-28  Bruno Haible  <bruno@clisp.org>
11352
11353         Rename module 'realloc' -> 'realloc-gnu'.
11354         * modules/realloc-gnu: New file, copied from modules/realloc.
11355         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11356         obsolete.
11357         * modules/mgetgroups (Depends-on): Update.
11358         * doc/posix-functions/realloc.texi: Update.
11359         * NEWS: Mention the change.
11360
11361         Rename module 'calloc' -> 'calloc-gnu'.
11362         * modules/calloc-gnu: New file, copied from modules/calloc.
11363         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11364         obsolete.
11365         * doc/posix-functions/calloc.texi: Update.
11366         * NEWS: Mention the change.
11367
11368         Rename module 'malloc' -> 'malloc-gnu'.
11369         * modules/malloc-gnu: New file, copied from modules/malloc.
11370         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11371         obsolete.
11372         * modules/argp (Depends-on): Update.
11373         * modules/regex (Depends-on): Update.
11374         * doc/posix-functions/malloc.texi: Update.
11375         * NEWS: Mention the change.
11376
11377 2010-08-28  Eric Blake  <eblake@redhat.com>
11378
11379         pread, pwrite: add missing dependency
11380         * modules/pread (Depends-on): Add extensions.
11381         * modules/pwrite (Depends-on): Likewise.
11382
11383 2010-08-28  Bruno Haible  <bruno@clisp.org>
11384
11385         unistr/u*-strchr: Fix tests dependencies.
11386         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11387         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11388         Reported by Ian Beckwith <ianb@erislabs.net>.
11389
11390 2010-08-28  Bruno Haible  <bruno@clisp.org>
11391
11392         read-file: Don't occupy too much unused memory.
11393         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11394
11395 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11396             Eric Blake  <eblake@redhat.com>
11397             Bruno Haible  <bruno@clisp.org>
11398
11399         read-file: Avoid memory reallocations with regular files.
11400         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11401         (fread_file): With regular files, use the remaining length as the
11402         initial buffer size.  Check against overflow.
11403         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11404         sys_stat.
11405
11406 2010-08-28  Bruno Haible  <bruno@clisp.org>
11407
11408         ftello: Relax license.
11409         * modules/ftello (License): Relax to LGPLv2+.
11410         Reported by Eric Blake.
11411
11412 2010-08-28  Bruno Haible  <bruno@clisp.org>
11413
11414         Avoid relocwrapper link errors due to gnulib replacement functions.
11415         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11416         function.
11417         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11418
11419 2010-08-28  Bruno Haible  <bruno@clisp.org>
11420
11421         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11422         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11423         defined.
11424         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11425         Suggested by Eric Blake.
11426
11427 2010-08-28  Bruno Haible  <bruno@clisp.org>
11428
11429         sys_socket, netdb: Ensure socklen_t gets defined.
11430         * modules/sys_socket (Depends-on): Add socklen.
11431         * modules/netdb (Depends-on): Likewise.
11432         * modules/getaddrinfo (Depends-on): Remove socklen.
11433         * modules/getsockopt (Depends-on): Likewise.
11434         * modules/setsockopt (Depends-on): Likewise.
11435         * tests/test-sys_socket.c: Check that socklen_t is defined.
11436         * tests/test-netdb.c: Likewise.
11437         * m4/socklen.m4: Update comments.
11438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11439
11440 2010-08-27  Eric Blake  <eblake@redhat.com>
11441
11442         login_tty: add missing dependency
11443         * modules/login_tty (Depends-on): Add pty.
11444
11445 2010-08-26  Eric Blake  <eblake@redhat.com>
11446
11447         lib-symbol-versions: fix m4 quoting
11448         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11449         format for AC_LINK_IFELSE.
11450
11451         glob: fix compile test
11452         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11453
11454         btowc: fix missing file
11455         * modules/btowc (Files): Also ship locale-fr.m4.
11456
11457         lseek: fix link test
11458         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11459         AC_LINK_IFELSE.
11460
11461         include_next: silence autoconf 2.68 warning
11462         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11463         AC_COMPILE_IFELSE as special.
11464         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11465         autoconf < 2.68.
11466
11467         acl: fix compilation test
11468         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11469         AC_COMPILE_IFELSE.
11470
11471 2010-08-26  Bruno Haible  <bruno@clisp.org>
11472
11473         Modernize AC_TRY_RUN invocations.
11474         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11475         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11476         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11477         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11478         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11479         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11480         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11481         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11482         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11483         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11484         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11485         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11486         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11487         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11488         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11489         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11490         gl_MBRLEN_NUL_RETVAL): Likewise.
11491         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11492         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11493         Likewise.
11494         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11495         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11496         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11497         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11498         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11499         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11500         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11501         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11502         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11503         Likewise.
11504         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11505         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11506         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11507         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11508         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11509         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11511         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11512         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11513         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11514
11515 2010-08-26  Bruno Haible  <bruno@clisp.org>
11516
11517         Modernize AC_TRY_LINK invocations.
11518         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11519         AC_TRY_LINK.
11520         * m4/argp.m4 (gl_ARGP): Likewise.
11521         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11522         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11523         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11524         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11525         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11526         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11527         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11528         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11529         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11530         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11531         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11532         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11533         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11534         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11535         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11536         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11537         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11538         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11539         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11540         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11541         Likewise.
11542         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11543         Likewise.
11544         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11545         Likewise.
11546         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11547         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11548         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11549         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11550         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11551         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11552         * m4/servent.m4 (gl_SERVENT): Likewise.
11553         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11554         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11555         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11556         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11557         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11558         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11559         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11560         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11561         * modules/tsearch-tests (configure.ac): Likewise.
11562
11563 2010-08-26  Bruno Haible  <bruno@clisp.org>
11564
11565         Modernize AC_TRY_COMPILE invocations.
11566         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11567         AC_TRY_COMPILE.
11568         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11569         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11570         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11571         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11572         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11573         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11574         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11575         * m4/lock.m4 (gl_LOCK): Likewise.
11576         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11577         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11578         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11579         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11580         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11581         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11582         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11583         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11584         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11585         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11586         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11587         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11588         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11589         extraneous semicolon.
11590
11591 2010-08-26  Jim Meyering  <meyering@redhat.com>
11592
11593         stat-time: relax license LGPL
11594         * modules/stat-time (License): Change from GPL to LGPL,
11595         with consent from all contributors, for use in libguile.
11596         Requested by Ludovic Courtès.
11597
11598 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11599
11600         poll: return immediately on POLLHUP.
11601         * lib/poll.c (poll): Always set timeout before wait_timeout is
11602         computed.
11603
11604 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11605
11606         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11607         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11608         rmdir ("dir/.//"), unlinkat.
11609
11610 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11611
11612         stdbool: avoid spurious failure with modern xlc
11613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11614
11615 2010-08-24  Bruno Haible  <bruno@clisp.org>
11616
11617         getloadavg: simplify code
11618         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11619         gl_have_func. Update comments.
11620
11621 2010-08-24  Eric Blake  <eblake@redhat.com>
11622
11623         getloadavg: don't define SVR4 on cygwin
11624         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11625         only define SVR4 when -lkvm is required.
11626         Reported by Yaakov Selkowitz.
11627
11628 2010-08-24  Bruno Haible  <bruno@clisp.org>
11629
11630         priv-set: fix comment
11631         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11632
11633 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11634
11635         priv-set: fix comments
11636         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11637         to match code, as suggested by David Bartley in:
11638         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11639
11640 2010-08-23  Eric Blake  <eblake@redhat.com>
11641
11642         stdbool: avoid rejecting clang
11643         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11644         * tests/test-stdbool.c: Enable more tests if using the system
11645         <stdbool.h> instead of the gnulib replacement.
11646         (main): Move xlc bug test to a runtime test for all compilers.
11647         Reported by Anders Kaseorg.
11648
11649         argz: fix shell quoting issue
11650         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11651         Reported by Charles Wilson.
11652
11653 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11654             Erik Faye-Lund <kusmabite@gmail.com>
11655
11656         poll, select: handle ERROR_BROKEN_PIPE.
11657         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11658         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11659         * lib/select.c (win32_compute_revents): Do not mark a pipe
11660         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11661
11662 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11663
11664         fts: allow compilation with C++
11665         * lib/fts_.h: Specify extern "C" linkage with C++.
11666
11667 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11668
11669         Fix gnulib-tool sed script de-commentation for AIX sed.
11670         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11671         sed.
11672
11673 2010-08-17  Eric Blake  <eblake@redhat.com>
11674
11675         test-stddef: test for (some) offsetof bugs
11676         * tests/test-stddef.c: Enhance test to ensure correct type of
11677         offsetof.
11678         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11679         that we are not fixing at this time.
11680
11681 2010-08-15  Bruno Haible  <bruno@clisp.org>
11682
11683         stpncpy: Allow stpncpy to be defined as a macro.
11684         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11685         if it's already correctly declared.
11686         * lib/string.in.h (stpncpy): Undefine before redefining.
11687         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11688
11689 2010-08-14  Bruno Haible  <bruno@clisp.org>
11690
11691         Rename module 'memxfrm' to 'amemxfrm'.
11692         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11693         (amemxfrm): Renamed from memxfrm.
11694         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11695         (amemxfrm): Renamed from memxfrm.
11696         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11697         * NEWS: Mention the change.
11698         * MODULES.html.sh (String handling <string.h>): Update.
11699         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11700         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11701         * lib/unicase/u16-casexfrm.c: Likewise.
11702         * lib/unicase/u32-casexfrm.c: Likewise.
11703         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11704         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11705         * lib/uninorm/u16-normxfrm.c: Likewise.
11706         * lib/uninorm/u32-normxfrm.c: Likewise.
11707         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11708         memxfrm.
11709         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11710         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11711         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11712         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11713         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11714         Suggested by Paul Eggert.
11715
11716 2010-08-14  Bruno Haible  <bruno@clisp.org>
11717
11718         Tests for module 'astrxfrm'.
11719         * modules/astrxfrm-tests: New file.
11720         * tests/test-astrxfrm.c: New file.
11721
11722         New module 'astrxfrm'.
11723         * lib/astrxfrm.h: New file.
11724         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11725         * modules/astrxfrm: New file.
11726
11727 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11728
11729         regex: Tweak doc.
11730         * doc/regex.texi (Overview): Don't mention regex.c.
11731         (GNU Regular Expression Compiling): Likewise.
11732         (Match-end-of-line Operator): Mention 'not_eol'.
11733
11734 2010-08-14  Brian Gough  <bjg@gnu.org>
11735             Bruno Haible  <bruno@clisp.org>
11736
11737         git-merge-changelog: add doc relating to use with bzr and hg.
11738         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11739
11740 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11741
11742         pthread: fix pthread.h creation for srcdir != builddir
11743         * modules/pthread (Makefile.am): Fix the rule to work also in a
11744         non-srcdir build.
11745
11746 2010-08-13  Karl Berry  <karl@gnu.org>
11747
11748         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11749         * doc/posix-*/*: force line break before @url of POSIX
11750         specifications.
11751         Suggested by Werner Lemberg.
11752
11753 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11754
11755         strtod: fix const diagnostic
11756         * lib/strtod.c (strtod): Don't assign const char * to char *,
11757         as this elicits a warning from GCC when warnings are enabled.
11758
11759 2010-08-10  Pádraig Brady <P@draigbrady.com>
11760         and Eric Blake  <eblake@redhat.com>
11761
11762         copy-acl: ignore ENOTSUP on HP-UX
11763         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11764         so that it is available for HP-UX.
11765         * lib/copy-acl.c (qcopy_acl): Use it.
11766         Reported by Patrick M. Callahan.
11767
11768 2010-08-10  Eric Blake  <eblake@redhat.com>
11769
11770         open, chown: relax license
11771         * modules/open (License): Change to LGPLv2+, with consent by all
11772         authors, for use in augeas.
11773         * modules/chown (License): Likewise.
11774         * modules/lchown (Likewise): Likewise.
11775         Requested by Adam Stokes.
11776
11777 2010-08-09  Karl Berry  <karl@gnu.org>
11778
11779         * build-aux/ar-lib: new file, import from Automake.
11780         * config/srclist.txt: autocheck for updates.
11781
11782 2010-08-09  Eric Blake  <eblake@redhat.com>
11783
11784         readlinkat: adjust client modules
11785         * modules/areadlinkat (Depends-on): Use readlinkat, not
11786         symlinkat.
11787         * modules/areadlinkat-with-size (Depends-on): Likewise.
11788
11789         mknod: be more vocal about danger of running tests as root
11790         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11791         root, since that is just asking for problems.
11792         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11793
11794         readlinkat: split into its own module
11795         * modules/symlinkat: Split readlinkat...
11796         * modules/readlinkat: ...into separate module.
11797         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11798         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11799         * lib/symlinkat.c (readlinkat): Move...
11800         * lib/readlinkat.c: ...into new file.
11801         * modules/symlinkat-tests: Split readlinkat test...
11802         * modules/readlinkat-tests: ...into separate module.
11803         * tests/test-symlinkat.c: Split...
11804         * tests/test-readlinkat.c: ...into new file.
11805         * NEWS: Document the split.
11806         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11807         * lib/unistd.in.h (readlinkat): Likewise.
11808         Suggested by Bruno Haible.
11809
11810 2010-08-08  Bruno Haible  <bruno@clisp.org>
11811
11812         memxfrm: Speed up.
11813         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11814         that usually only one call to strxfrm is necessary for each string
11815         part.
11816         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11817
11818 2010-08-07  Karl Berry  <karl@gnu.org>
11819
11820         * doc/posix-headers/limits.texi,
11821         * doc/posix-functions/malloc.texi,
11822         * doc/posix-functions/strsignal.texi: missing @item.
11823         * doc/ld-version-script.texi: spurious leading i.
11824         * doc/regex.texi (Interval Operators): no commas inside @var.
11825
11826 2010-08-01  Bruno Haible  <bruno@clisp.org>
11827
11828         Integrate the regex documentation.
11829         * doc/gnulib.texi: Define 'cn' index.
11830         (Regular expressions): New a chapter that includes regex.texi and
11831         regexprops-generic.texi.
11832         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11833         syntax.
11834
11835         Whitespace cleanup.
11836         * doc/regex.texi: Remove trailing spaces.
11837
11838         Add regex documentation.
11839         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11840         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11841         Written by Kathy A. Hargreaves and Karl Berry.
11842
11843 2010-08-01  Bruno Haible  <bruno@clisp.org>
11844
11845         link: Update documentation.
11846         * doc/posix-functions/link.texi: Update regarding Solaris.
11847
11848 2010-07-31  Bruno Haible  <bruno@clisp.org>
11849
11850         Update modules list.
11851         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11852         (String handling <string.h>): Add memcmp2, memxfrm.
11853         (Container data structures): Add xlist, xsublist, xoset.
11854         (Core language properties): Add alignof, unused-parameter.
11855         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11856         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11857         (Unibyte characters <ctype.h>): New section.
11858         (String handling <string.h>): New section.
11859         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11860         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11861         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11862         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11863         tan, tanh, tanl, y0, y1, yn.
11864         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11865         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11866         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11867         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11868         unlockpt, vdprintf, vdprintf-posix.
11869         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11870         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11871         xconcat-filename.
11872         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11873         getdtablesize, pipe2, pipe2-safer.
11874         (Security): New section.
11875         (Networking functions): Add accept4.
11876         (Signal handling): Add sigpipe.
11877         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11878         mbmemcasecoll.
11879         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11880         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11881         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11882         pipe-filter-ii.
11883         (Misc): Add argp-version-etc, login_tty, parse-duration.
11884
11885 2010-07-31  Bruno Haible  <bruno@clisp.org>
11886
11887         Improve doc in MODULES.html.
11888         * modules/linkat (Description): Add the word "function".
11889         * modules/mkfifo (Description): Likewise.
11890         * modules/mknod (Description): Likewise.
11891         * modules/remove (Description): Likewise.
11892         * modules/renameat (Description): Likewise.
11893         * modules/stat (Description): Likewise.
11894         * modules/symlink (Description): Likewise.
11895         * modules/unlink (Description): Likewise.
11896
11897 2010-07-31  Bruno Haible  <bruno@clisp.org>
11898
11899         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11900         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11901         option --enable/disable-c++ instead of --enable/disable-cxx.
11902         * NEWS: Mention the change.
11903
11904 2010-07-31  Bruno Haible  <bruno@clisp.org>
11905
11906         readlink, areadlink: Relax test a bit.
11907         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11908         alternative to ENOTDIR.
11909         * tests/test-areadlink.h (test_areadlink): Likewise.
11910         Reported by Rainer Tammer.
11911
11912 2010-07-31  Bruno Haible  <bruno@clisp.org>
11913
11914         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11915         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11916         character, perform the search using U_STRCHR.
11917         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11918         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11919         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11920         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11921         Suggested by Paolo Bonzini.
11922
11923 2010-07-31  Bruno Haible  <bruno@clisp.org>
11924
11925         unistr/u*-strstr: Fix dependencies.
11926         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11927         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11928         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11929
11930 2010-07-31  Bruno Haible  <bruno@clisp.org>
11931
11932         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11933         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11934         the beginning of the loop.
11935         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11936         cases in 'switch' statement.
11937
11938         unistr/u8-strchr: Fix several bugs.
11939         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11940         the string. When not found, return NULL, not a pointer near the end.
11941
11942         More tests for unistr/u8-strchr.
11943         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11944         that the function does not read past the first occurrence of the byte
11945         being searched.
11946         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11947         * tests/unistr/test-u16-strchr.c (main): New function.
11948         * tests/unistr/test-u32-strchr.c (main): New function.
11949
11950 2010-07-31  Bruno Haible  <bruno@clisp.org>
11951
11952         posix-modules: Ignore backup files of documentation files.
11953         * posix-modules: grep only through files named *.texi.
11954
11955 2010-07-31  Bruno Haible  <bruno@clisp.org>
11956
11957         symlinkat: Fix documentation.
11958         * doc/posix-functions/readlinkat.texi: Fix module name.
11959
11960 2010-07-31  Bruno Haible  <bruno@clisp.org>
11961
11962         fchownat: Replace also when chown has the trailing slash bug.
11963         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11964         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11965         introduced on 2010-04-10.
11966         Reported by Rainer Tammer.
11967
11968 2010-07-31  Bruno Haible  <bruno@clisp.org>
11969
11970         linkat: Work around AIX 7.1 bug.
11971         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11972         whether linkat handles trailing slash correctly. If not, replace linkat
11973         and define LINKAT_TRAILING_SLASH_BUG.
11974         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11975         check whether (fd1,file1) points to a directory if file1 or file2 ends
11976         in a slash. Code taken from lib/link.c.
11977         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11978         Reported by Rainer Tammer.
11979
11980 2010-07-31  Bruno Haible  <bruno@clisp.org>
11981
11982         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11983         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11984         This disables an xlc optimization that was causing wrong test results.
11985         Reported by Rainer Tammer.
11986
11987 2010-07-31  Bruno Haible  <bruno@clisp.org>
11988
11989         iconv: Work around AIX 6.1..7.1 bug.
11990         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11991         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11992         cross-compiling, guess no on all versions of AIX.
11993         Reported by Rainer Tammer.
11994
11995 2010-07-31  Bruno Haible  <bruno@clisp.org>
11996
11997         readlink: Relax test a bit.
11998         * tests/test-readlink.h (test_readlink): Allow different errno value
11999         when readlink is called with a file name that ends in / and refers to
12000         a file.
12001         Suggested by Eric Blake.
12002         Reported by Rainer Tammer.
12003
12004 2010-07-31  Bruno Haible  <bruno@clisp.org>
12005
12006         copysign: Does not require -lm on glibc systems.
12007         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12008         gl_COMMON_DOUBLE_MATHFUNC.
12009         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12010
12011 2010-07-31  Bruno Haible  <bruno@clisp.org>
12012
12013         duplocale: Work around AIX 7.1 bug.
12014         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12015         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12016         * lib/duplocale.c (rpl_duplocale): Update comment.
12017         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12018         Reported by Rainer Tammer.
12019
12020 2010-07-30  Bruno Haible  <bruno@clisp.org>
12021
12022         dirfd: Avoid link error on AIX 7.1.
12023         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12024         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12025         exist, set REPLACE_DIRFD.
12026         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12027         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12028         * doc/posix-functions/dirfd.texi: Update.
12029         Reported by Rainer Tammer.
12030
12031 2010-07-30  Eric Blake  <eblake@redhat.com>
12032
12033         strtod: next round of AIX fixes
12034         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12035         exponent.
12036         * tests/test-strtod.c (main): Enhance tests.
12037         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12038         Reported by Rainer Tammer.
12039
12040         futimens: fix configure check
12041         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12042         Reported by Bruno Haible.
12043
12044 2010-07-30  Bruno Haible  <bruno@clisp.org>
12045
12046         getline: Update regarding AIX.
12047         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12048         Reported by Rainer Tammer.
12049
12050 2010-07-30  Bruno Haible  <bruno@clisp.org>
12051
12052         wcwidth: Drop replacement on AIX 7.
12053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12054         AIX 7.
12055         Reported by Rainer Tammer.
12056
12057 2010-07-30  Bruno Haible  <bruno@clisp.org>
12058
12059         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12060         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12061         a 'char *'.
12062         Reported by Rainer Tammer.
12063
12064 2010-07-30  Bruno Haible  <bruno@clisp.org>
12065
12066         unlink: Update regarding AIX.
12067         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12068         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12069         Reported by Rainer Tammer.
12070
12071 2010-07-30  Bruno Haible  <bruno@clisp.org>
12072
12073         symlink: Update regarding AIX.
12074         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12075         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12076         Reported by Rainer Tammer.
12077
12078 2010-07-30  Bruno Haible  <bruno@clisp.org>
12079
12080         strndup: Update regarding AIX.
12081         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12082         AIX 7.
12083         Reported by Rainer Tammer.
12084
12085 2010-07-30  Bruno Haible  <bruno@clisp.org>
12086
12087         stat: Update regarding AIX.
12088         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12089         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12090         Reported by Rainer Tammer.
12091
12092 2010-07-30  Bruno Haible  <bruno@clisp.org>
12093
12094         truncl: Fix autoconf test.
12095         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12096         whether truncl works.
12097         Reported by Rainer Tammer.
12098
12099 2010-07-30  Bruno Haible  <bruno@clisp.org>
12100
12101         round: Update regarding AIX.
12102         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12103         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12104         Reported by Rainer Tammer.
12105
12106 2010-07-30  Bruno Haible  <bruno@clisp.org>
12107
12108         rename: Update regarding AIX.
12109         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12110         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12111         Reported by Rainer Tammer.
12112
12113 2010-07-30  Bruno Haible  <bruno@clisp.org>
12114
12115         printf.m4: Update regarding AIX.
12116         * m4/printf.m4: Update comments regarding AIX.
12117         Reported by Rainer Tammer.
12118
12119 2010-07-30  Bruno Haible  <bruno@clisp.org>
12120
12121         iconv: Update regarding AIX.
12122         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12123         AIX 7.
12124         Reported by Rainer Tammer.
12125
12126 2010-07-30  Bruno Haible  <bruno@clisp.org>
12127
12128         getopt: Update regarding AIX.
12129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12130         no on AIX.
12131         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12132         Reported by Rainer Tammer.
12133
12134 2010-07-30  Bruno Haible  <bruno@clisp.org>
12135
12136         ldexpl; Update regarding AIX.
12137         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12138         on AIX 7.
12139         Reported by Rainer Tammer.
12140
12141 2010-07-30  Bruno Haible  <bruno@clisp.org>
12142
12143         frexpl: Update regarding AIX.
12144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12145         on AIX 7.
12146         Reported by Rainer Tammer.
12147
12148 2010-07-30  Bruno Haible  <bruno@clisp.org>
12149
12150         open, fopen: Update regarding AIX.
12151         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12152         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12153         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12154         * doc/posix-functions/fopen.texi: Likewise.
12155         Reported by Rainer Tammer.
12156
12157 2010-07-30  Bruno Haible  <bruno@clisp.org>
12158
12159         chown: Update doc regarding AIX.
12160         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12161         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12162         Reported by Rainer Tammer.
12163
12164 2010-07-30  Eric Blake  <eblake@redhat.com>
12165
12166         strtod: fix bug in replacement function on AIX
12167         * lib/strtod.c (strtod): Special case broken "0x" parse in
12168         underlying strtod.
12169         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12170         * doc/posix-functions/strtod.texi (strtod): Likewise.
12171         Reported by Rainer Tammer.
12172
12173 2010-07-30  Bruno Haible  <bruno@clisp.org>
12174
12175         mbrlen: Fix cross-compilation guess for AIX.
12176         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12177         guess. Leftover from 2008-12-22.
12178
12179 2010-07-30  Bruno Haible  <bruno@clisp.org>
12180
12181         mbrtowc: Fix cross-compilation guess for AIX.
12182         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12183         guess. Leftover from 2008-12-21.
12184
12185 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12186
12187         init.sh: work around trap limitation of some shells
12188         * tests/init.sh (setup_): Move exit trap outside of shell function.
12189
12190 2010-07-29  Eric Blake  <eblake@redhat.com>
12191
12192         strtod: aid debugging
12193         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12194         understanding why strtod is rejected.
12195
12196 2010-07-28  Bruno Haible  <bruno@clisp.org>
12197
12198         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12199         * lib/unistr/u8-chr.c: Include <string.h>.
12200         * tests/unistr/test-u8-chr.c: Likewise.
12201         * tests/unistr/test-u16-chr.c: Likewise.
12202         * tests/unistr/test-u32-chr.c: Likewise.
12203         * tests/unistr/test-u8-strchr.c: Likewise.
12204         * tests/unistr/test-u16-strchr.c: Likewise.
12205         * tests/unistr/test-u32-strchr.c: Likewise.
12206         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12207         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12208         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12209         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12210
12211 2010-07-28  Bruno Haible  <bruno@clisp.org>
12212
12213         Use spaces for indentation, not tabs.
12214         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12215
12216 2010-07-27  Bruno Haible  <bruno@clisp.org>
12217
12218         mbspcasecmp: Fix function specification.
12219         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12220         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12221         Reported by Eric Blake <eblake@redhat.com>.
12222
12223 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12224
12225         timespec: use cast and not conditional, as truncation isn't possible
12226         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12227         instead of a conditional.  Comment about the situation in more detail.
12228         This undoes most of the 2009-10-29 patch.
12229
12230 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12231
12232         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12233         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12234         * lib/unistr/u8-strchr.c: Likewise.
12235         * modules/unistr/u8-chr: Depend on memchr.
12236
12237         unistr/u*-strchr: add tests
12238         * modules/unistr/u8-strchr-tests: New file.
12239         * modules/unistr/u16-strchr-tests: New file.
12240         * modules/unistr/u32-strchr-tests: New file.
12241         * tests/unistr/test-strchr.h: New file.
12242         * tests/unistr/test-u8-strchr.c: New file.
12243         * tests/unistr/test-u16-strchr.c: New file.
12244         * tests/unistr/test-u32-strchr.c: New file.
12245
12246         unistr/u*-chr: test multibyte sequences more
12247         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12248         test vector.
12249         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12250         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12251         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12252
12253         unistr/u*-chr: test multibyte sequences
12254         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12255
12256         unistr/u*-chr: prepare for multibyte tests
12257         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12258         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12259         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12260         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12261         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12262         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12263
12264 2010-07-18  Bruno Haible  <bruno@clisp.org>
12265
12266         unistr/u8-strchr: Optimize non-ASCII argument case.
12267         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12268         because the first byte often matches anyway.
12269         Reported by Pádraig Brady <P@draigbrady.com>.
12270
12271 2010-07-15  Karl Berry  <karl@gnu.org>
12272
12273         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12274
12275 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12276
12277         getcwd: on Solaris, work better if ancestors are inaccessible
12278         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12279         buffer and size, try again with a large buffer.  This works better
12280         on Solaris, since its getcwd succeeds even if the path to the root
12281         is inaccessible, and this is helpful in common cases such as .zfs
12282         hidden directories.  Problem reported by J Chapman Flack in
12283         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12284         Use system getcwd if it's declared, not merely if it's partly
12285         working; use the partly-working test only to avoid needless effort
12286         if the system getcwd fails.
12287         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12288         comment that was already obsolete and is now even more obsolete.
12289         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12290         now might call strdup.
12291
12292 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12293
12294         pthread: Add enough so that coreutils/src/sort.c compiles.
12295         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12296         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12297         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12298         Include <sys/types.h>, in case it defines pthread_t.
12299         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12300         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12301         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12302         (pthread_rwlockattr_t, pthread_spinlock_t):
12303         New typedefs, if HAVE_PTHREAD_T is not defined.
12304         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12305         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12306         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12307         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12308         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12309         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12310         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12311         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12312         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12313         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12314         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12315         New macros.
12316         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12317         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12318         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12319         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12320         (pthread_spin_unlock): New dummy functions.
12321         (pthread_create): Return EAGAIN; don't set errno.
12322         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12323         require AC_C_INLINE.
12324         * modules/pthread (Depends-on): Add sched, time.
12325         (pthread.h): Use AM_V_GEN.
12326
12327 2010-07-13  Bruno Haible  <bruno@clisp.org>
12328
12329         striconveh: Don't malloc memory if the result buffer is sufficient.
12330         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12331         buffer if its size is sufficient.
12332         Reported by Ludovic Courtès <ludo@gnu.org>.
12333
12334 2010-07-13  Bruno Haible  <bruno@clisp.org>
12335
12336         strtod: Add safety check.
12337         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12338
12339 2010-07-12  Bruno Haible  <bruno@clisp.org>
12340
12341         Unify tests that set gl_cv_func_ldexpl_no_libm.
12342         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12343         gl_FUNC_LDEXPL.
12344         (gl_FUNC_LDEXPL): Invoke it.
12345         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12346
12347 2010-07-12  Bruno Haible  <bruno@clisp.org>
12348
12349         Unify tests that set gl_cv_func_ldexp_no_libm.
12350         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12351         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12352         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12353         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12354         * modules/strtod (Files): Add m4/ldexp.m4.
12355
12356 2010-07-12  Bruno Haible  <bruno@clisp.org>
12357
12358         Unify tests that set gl_cv_func_frexpl_no_libm.
12359         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12360         gl_FUNC_FREXPL_NO_LIBM.
12361         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12362         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12363
12364 2010-07-12  Bruno Haible  <bruno@clisp.org>
12365
12366         Unify tests that set gl_cv_func_frexp_no_libm.
12367         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12368         gl_FUNC_FREXP_NO_LIBM.
12369         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12370         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12371
12372 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12373
12374         memcoll: clarify sizes versus lengths, document better, and tweak perf
12375         * lib/memcoll.c (strcoll_loop, memcoll0):
12376         Improve quality of descriptive comments.  Name variables
12377         consistently as to whether they are lengths (which do not include
12378         terminating null) versus sizes (which do).
12379         * lib/xmemcoll.c (xmemcoll0): Likewise.
12380         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12381         returned when s1size == 0; this is easier to compile and saves
12382         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12383
12384 2010-07-12  Bruno Haible  <bruno@clisp.org>
12385
12386         Tests for module '_Exit'.
12387         * modules/_Exit-tests: New file.
12388         * tests/test-_Exit.sh: New file.
12389         * tests/test-_Exit.c: New file.
12390
12391         New module '_Exit'.
12392         * lib/stdlib.in.h (__attribute__): New macro.
12393         (_Exit): New declaration.
12394         * lib/_Exit.c: New file.
12395         * m4/_Exit.m4: New file.
12396         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12397         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12398         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12399         * modules/_Exit: New file.
12400         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12401         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12402
12403 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12404
12405         strtod: make it more-accurate typically, and don't require libm
12406         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12407         Include limits.h.  Don't include string.h.
12408         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12409         (locale_isspace): New function, so that no casts are needed to
12410         check whether *s is a space.
12411         (ldexp): Provide an unused dummy if not available.
12412         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12413         (strtod): Use them.  This implementation prefers to use the
12414         underlying strtod if available, falling back on our own code
12415         only to fix known bugs.  This is more likely to produce an
12416         accurate result.  Also, it avoids the use of libm functions.
12417         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12418         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12419         was absent, but it caused a test failure with coreutils.
12420         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12421         with libm.
12422         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12423         * modules/strtod-tests (Makefile.am): Likewise.
12424
12425 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12426             Bruno Haible  <bruno@clisp.org>
12427
12428         unistr/u8-strchr: Optimize ASCII argument case.
12429         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12430
12431 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12432
12433         (x)memcoll: minor tweaks
12434         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12435         is after the type that it qualifies.
12436         (memcoll0): Likewise.
12437         * lib/memcoll.h (memcoll0): Likewise.
12438         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12439         * lib/xmemcoll.h (xmemcoll0): Likewise.
12440         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12441         differs from memcoll in that the NUL byte is part of the argument.
12442         Omit the abort-checks, as performance is a real issue here.  Plus,
12443         the checks were wrong anyway (an off-by-one error).  Omit local
12444         variable 'diff', as it's a bit clearer that way.
12445         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12446         no longer needed.
12447
12448 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12449
12450         (x)memcoll: speedup when input is known to be NUL delimited
12451         * lib/memcoll.c: Include stdlib.
12452         (memcoll0): New function.
12453         (strcoll_loop): New function, refactored for use in both memcoll
12454         and memcoll0.
12455         * lib/memcoll.h (memcoll0): Add prototype.
12456         * lib/xmemcoll.c (xmemcoll0): New function.
12457         (collate_error): New function, refactored for use in both xmemcoll
12458         and xmemcoll0.
12459         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12460         * m4/memcoll.m4: add inline invocation.
12461
12462 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12463
12464         * build-aux/bootstrap: Remove any local translations
12465         from the translation project synchronization directory,
12466         so that local only translations are not distributed.
12467
12468 2010-07-04  Bruno Haible  <bruno@clisp.org>
12469
12470         fsusage: Clarify which code applies to which platforms.
12471         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12472         platform.
12473         * lib/fsusage.c (get_fs_usage): Likewise.
12474
12475 2010-07-04  Bruno Haible  <bruno@clisp.org>
12476
12477         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12478         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12479         Reported by Martin Lambers <marlam@marlam.de>.
12480
12481 2010-07-04  Jim Meyering  <meyering@redhat.com>
12482
12483         hash: once again explicitly disallow insertion of NULL
12484         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12485         inserting a NULL pointer cannot work with these functions.
12486         Add a comment with details.
12487         This reverts part of the 2010-07-01 commit, 5bef1a35
12488         "hash: extend module to deal with non-pointer keys".
12489
12490 2010-07-01  Bruno Haible  <bruno@clisp.org>
12491
12492         stdbool: Update doc.
12493         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12494         Info from Christian Weisgerber <naddy@mips.inka.de>.
12495
12496 2010-07-01  Jim Meyering  <meyering@redhat.com>
12497
12498         hash: extend module to deal with non-pointer keys
12499         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12500         but that allows insertion of non-pointer entries.
12501         Do not disallow an ENTRY value of NULL.
12502         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12503         * lib/hash.h (hash_insert0): Declare.
12504
12505 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12506
12507         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12508         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12509         not present (i.e. with autoconf 2.59 and when using gettextize, not
12510         gnulib), require AC_GNU_SOURCE instead.
12511
12512 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12513
12514         idpriv-drop: Fix tests.
12515         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12516         not to the test-idpriv-droptemp program.
12517
12518 2010-06-29  Bruno Haible  <bruno@clisp.org>
12519
12520         string: Fix syntax error with g++ 2.96.
12521         * lib/string.in.h (__pure__): Remove definition.
12522         (_GL_ATTRIBUTE_PURE): New macro.
12523         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12524         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12525         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12526
12527 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12528
12529         unitypes: Fix bug introduced on 2010-05-18.
12530         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12531
12532 2010-06-22  Eric Blake  <eblake@redhat.com>
12533
12534         memmem: slight optimization
12535         * lib/str-two-way.h (critical_factorization): Update comments.
12536         Reduce work during factorization phase.
12537         Reported by Carlos Bueno <carlos@bueno.org>.
12538
12539 2010-06-21  Bruno Haible  <bruno@clisp.org>
12540
12541         Fix HAVE_CALLOC_POSIX misnomer.
12542         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12543         !HAVE_CALLOC_POSIX.
12544         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12545         HAVE_CALLOC_POSIX.
12546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12547         instead of HAVE_CALLOC_POSIX.
12548         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12549         HAVE_CALLOC_POSIX.
12550
12551         Use modern idiom for calloc() replacement.
12552         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12553         AC_FUNC_CALLOC.
12554         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12555         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12556         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12557         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12558         (gl_REPLACE_CALLOC): New macro.
12559
12560 2010-06-21  Bruno Haible  <bruno@clisp.org>
12561
12562         Fix HAVE_REALLOC_POSIX misnomer.
12563         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12564         !HAVE_REALLOC_POSIX.
12565         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12566         HAVE_REALLOC_POSIX.
12567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12568         instead of HAVE_REALLOC_POSIX.
12569         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12570         HAVE_REALLOC_POSIX.
12571
12572         Use modern idiom for realloc() replacement.
12573         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12574         AC_FUNC_REALLOC.
12575         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12576         Autoconf's AC_FUNC_REALLOC.
12577         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12578         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12579         (gl_REPLACE_REALLOC): New macro.
12580         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12581
12582 2010-06-21  Bruno Haible  <bruno@clisp.org>
12583
12584         Fix HAVE_MALLOC_POSIX misnomer.
12585         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12586         !HAVE_MALLOC_POSIX.
12587         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12588         HAVE_MALLOC_POSIX.
12589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12590         instead of HAVE_MALLOC_POSIX.
12591         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12592         HAVE_MALLOC_POSIX.
12593
12594         Use modern idiom for malloc() replacement.
12595         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12596         AC_FUNC_MALLOC.
12597         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12598         Autoconf's AC_FUNC_MALLOC.
12599         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12600         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12601         (gl_REPLACE_MALLOC): New macro.
12602         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12603
12604 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12605
12606         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12607         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12608         This macro takes 3 arguments, not 4.
12609
12610 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12611
12612         ipv6: fix detection under mingw
12613         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12614         in6_addr.
12615
12616 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12617
12618         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12619         that strtod() works when cross-compiling to a glibc version known
12620         to work.
12621
12622 2010-06-15  Bruno Haible  <bruno@clisp.org>
12623
12624         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12625
12626 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12627
12628         select: Correct timeout.
12629         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12630
12631 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12632
12633         git-version-gen: init shell var to avoid env var influence
12634         * build-aux/git-version-gen (v): Init shell var to empty.
12635
12636 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12637
12638         priv-set: Don't assume that priv.h exists merely because getppriv does.
12639         See Jan Andersen's bug report about AIX 5L in
12640         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12641         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12642         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12643         * lib/priv-set.h: Likewise.
12644         * tests/test-priv-set.c: Likewise.
12645
12646 2010-06-13  Bruno Haible  <bruno@clisp.org>
12647
12648         relocatable: Make it easier to test whether to install wrappers.
12649         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12650         RELOCATABLE_VIA_WRAPPER.
12651
12652 2010-06-13  Bruno Haible  <bruno@clisp.org>
12653
12654         gnulib-tool: Display specified modules and dependencies differently.
12655         * gnulib-tool (func_show_module_list): New function.
12656         (func_import, func_create_testdir): Invoke it.
12657         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12658
12659 2010-06-13  Bruno Haible  <bruno@clisp.org>
12660
12661         gnulib-tool: Align code of func_import and func_create_testdir.
12662         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12663         specified_modules.
12664
12665 2010-06-12  Jim Meyering  <meyering@redhat.com>
12666
12667         test-inttostr: avoid spurious failure on Solaris 9
12668         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12669         to accept "%ju".  Reported by Bruno Haible.
12670
12671 2010-06-11  Jim Meyering  <meyering@redhat.com>
12672
12673         test-sys_socket: mark variables as used more readably
12674         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12675         as "used" explicitly via (void) statement casts.  This is more
12676         readable than using them in an artificial return expression.
12677         Suggestion from Bruno Haible.
12678
12679 2010-06-11  Bruno Haible  <bruno@clisp.org>
12680
12681         Avoid some more warnings from "gcc -Wwrite-strings".
12682         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12683         to 'const char *'.
12684         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12685         * tests/test-c-strcasestr.c (main): Likewise.
12686         * tests/test-mbscasestr1.c (main): Likewise.
12687         * tests/test-mbscasestr2.c (main): Likewise.
12688         * tests/test-memmem.c (main): Likewise.
12689         * tests/test-strstr.c (main): Likewise.
12690         * tests/test-strcasestr.c (main): Likewise.
12691
12692 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12693
12694         init.sh: change framework_failure_ to fail with status 99, not 1
12695         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12696         automake's parallel-tests rule that this is an unexpected failure,
12697         even if the test is listed in XFAIL_TESTS.
12698
12699 2010-06-11  Jim Meyering  <meyering@redhat.com>
12700
12701         test-inttostr: avoid warnings about 4-6KB literal strings
12702         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12703         Include "macros.h", for its definition of ASSERT.
12704         (CK): s/assert/ASSERT/
12705         * modules/inttostr-tests (Files): Add macros.h.
12706
12707         init.sh: don't use $ME_ or skip_ before they are defined
12708         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12709         their first uses.  Also hoist their companions: warn_, fail_,
12710         framework_failure_, $stderr_fileno.  Prompted by a patch from
12711         Stefano Lattarini.
12712
12713         test-sys_socket: avoid set-but-not-used warnings from gcc
12714         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12715         avoid warning about set-but-not-used variables.
12716
12717         test-xvasprintf: avoid 'const' discard warnings
12718         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12719         "const" when assigning from literal strings.
12720         (test_xasprintf): Add "void" in function argument list to placate
12721         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12722
12723         tests: avoid compilation warnings in argmatch and exclude tests...
12724         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12725         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12726         Since it always exits, declare with the "noreturn" attribute.
12727         * tests/test-argmatch.c: Likewise.
12728
12729         tests: avoid 'const' discard warnings in mbsstr tests
12730         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12731         * tests/test-mbsstr2.c (main): Likewise.
12732
12733         test-verify: avoid warning from gcc's -Wmissing-declarations
12734         * tests/test-verify.c (function): Declare to be static.
12735
12736         test-inttostr.c: include <string.h> for use of strcmp
12737         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12738
12739         test-linkat: avoid failed assertion on "other" architectures
12740         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12741         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12742         sparc: https://bugs.launchpad.net/bugs/591968
12743
12744 2010-06-11  Jim Meyering  <meyering@redhat.com>
12745
12746         printf.m4: avoid autoconf's "Expanded Before Required" warning
12747         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12748         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12749         autoconf warning.
12750
12751 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12752
12753         Replacement header templates are now named with ".in", not "_".
12754         * doc/gnulib-intro.texi: Correct.
12755
12756 2010-06-10  Jim Meyering  <meyering@redhat.com>
12757
12758         inttostr-tests: depend on snprintf, not snprintf-posix
12759         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12760         snprintf-posix, to avoid this aclocal failure:
12761           missing file gnulib-tests/vasnprintf.c
12762           configure.ac:45: error: expected source file, required through \
12763           AC_LIBSOURCES, not found
12764
12765 2010-06-10  Jim Meyering  <meyering@redhat.com>
12766
12767         inttostr: add a new function, inttostr, and tests
12768         The namesake function was not available.  The existence of the
12769         template file, inttostr.c makes its addition nontrivial.
12770         * lib/anytostr.c: Rename from inttostr.c.
12771         (anytostr): Rename from inttostr.
12772         * lib/inttostr.c: New file.
12773         * modules/inttostr (Files): Add anytostr.c.
12774         (Makefile.am): Set lib_SOURCES instead of ...
12775         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12776         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12777         * lib/offtostr.c: Likewise.
12778         * lib/uinttostr.c: Likewise.
12779         * lib/umaxtostr.c: Likewise.
12780         * modules/inttostr-tests: New file.
12781         * tests/test-inttostr.c: New file.  Test these functions.
12782
12783 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12784             Bruno Haible  <bruno@clisp.org>
12785
12786         Add "Extending Gnulib" chapter to manual.
12787         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12788         chapter.
12789         (Extending Gnulib): New chapter.
12790         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12791         chapter.
12792
12793 2010-06-09  Bruno Haible  <bruno@clisp.org>
12794
12795         Avoid relocwrapper link errors due to gnulib replacement functions.
12796         * lib/areadlink.c: Use the system's malloc, realloc functions.
12797         (areadlink): Set errno to ENOMEM explicitly.
12798         * modules/areadlink (Depends-on): Remove malloc-posix.
12799         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12800
12801 2010-06-09  Bruno Haible  <bruno@clisp.org>
12802
12803         Avoid relocwrapper link errors due to gnulib replacement functions.
12804         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12805         * lib/malloca.c: Likewise.
12806         * lib/relocatable.c: Likewise.
12807         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12808         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12809         * lib/setenv.c: Use the system's malloc, realloc functions.
12810         * lib/strerror.c: Use the system's sprintf function.
12811         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12812
12813 2010-06-04  Bruno Haible  <bruno@clisp.org>
12814
12815         Prefer documented low-level autoconf macro names.
12816         * m4/lib-link.m4: Use m4_translit instead of translit.
12817         * m4/environ.m4: Likewise.
12818         * m4/mathfunc.m4: Likewise.
12819         * m4/onceonly.m4: Likewise.
12820         * m4/stdint.m4: Likewise.
12821         Suggested by Eric Blake.
12822
12823 2010-06-04  Martin Lambers  <marlam@marlam.de>
12824             Bruno Haible  <bruno@clisp.org>
12825
12826         havelib: Allow library names with '+' characters.
12827         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12828         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12829
12830 2010-06-09  Bruno Haible  <bruno@clisp.org>
12831
12832         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12833         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12834         realloc failed.
12835
12836 2010-06-08  Peter Simons  <simons@cryp.to>
12837
12838         maint.mk: make the news-check rule more configurable
12839         * top/maint.mk (news-check-lines-spec): New variable.
12840         (news-check): Use "sed -n 1,10p" in place of "head".
12841
12842 2010-06-07  Jim Meyering  <meyering@redhat.com>
12843
12844         do-release-commit-and-tag: fix typo in --help
12845         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12846
12847         regex: avoid new dead-code warning with gcc-4.6.0
12848         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12849         if-block containing a while-loop.  It's been unused for at least
12850         5 years.
12851
12852 2010-06-05  Bruno Haible  <bruno@clisp.org>
12853
12854         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12855         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12856
12857 2010-06-04  Bruno Haible  <bruno@clisp.org>
12858
12859         Update to GNU gettext 0.18.1.
12860         * modules/gettext (configure.ac): Require gettext infrastructure from
12861         version 0.18.1.
12862
12863 2010-06-03  Bruno Haible  <bruno@clisp.org>
12864
12865         Don't use AC_LIBOBJ with file names in subdirectories.
12866         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12867         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12868         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12869         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12870         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12871         gl_LIBUNISTRING_LIBSOURCE.
12872         (Makefile.am): Augment lib_SOURCES here, conditionally.
12873         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12874
12875 2010-06-03  Bruno Haible  <bruno@clisp.org>
12876
12877         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12878         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12879         expansion does not end with a newline.
12880         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12881         unnecessary newline.
12882
12883 2010-06-03  Bruno Haible  <bruno@clisp.org>
12884
12885         Reduce dependencies.
12886         * tests/test-quotearg.h: New file, extracted from
12887         tests/test-quotearg.c.
12888         * tests/test-quotearg-simple.c: New file, extracted from
12889         tests/test-quotearg.c.
12890         * tests/test-quotearg.c: Don't include <ctype.h>.
12891         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12892         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12893         use_quote_double_quotes, use_quotearg_colon): Moved to
12894         tests/test-quotearg.h.
12895         (results_g, flag_results, custom_quotes, custom_results): Moved
12896         to tests/test-quotearg-simple.c.
12897         (main): Moved the part that does not depend on gettext to
12898         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12899         performed.
12900         * modules/quotearg-simple: New file.
12901         * modules/quotearg-simple-tests: New file.
12902         * modules/quotearg (Depends-on): Add quotearg-simple.
12903         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12904         (Files): Add tests/test-quotearg.h.
12905         Reported by Paolo Bonzini.
12906
12907 2010-06-03  Bruno Haible  <bruno@clisp.org>
12908
12909         Reduce dependencies.
12910         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12911
12912 2010-06-03  Bruno Haible  <bruno@clisp.org>
12913
12914         time: Undefine more broken macros.
12915         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12916         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12917         Reported by Eric Blake.
12918
12919 2010-06-03  Bruno Haible  <bruno@clisp.org>
12920
12921         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12922         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12923         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12924         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12925         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12926         Reported by Ludovic Courtès <ludo@gnu.org>.
12927
12928 2010-06-02  Eric Blake  <eblake@redhat.com>
12929
12930         time: work with mingw + pthreads-win32 library
12931         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12932         if timespec is defined only in pthread.h.
12933         * modules/time (Makefile.am): Substitute it.
12934         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12935         <pthread.h>, when needed.
12936         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12937         from the library.
12938
12939 2010-05-31  Bruno Haible  <bruno@clisp.org>
12940
12941         Avoid expanding two macros in the wrong order.
12942         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12943         gl_LIBUNISTRING if it is defined.
12944         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12945         autoconf >= 2.64.
12946         Reported by Ludovic Courtès <ludo@gnu.org>.
12947
12948 2010-05-27  Jim Meyering  <meyering@redhat.com>
12949
12950         maint.mk: also prohibit "#undef" of always-defined symbols
12951         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12952         Allow more than one space before the symbol name.
12953         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12954         the regexp uses alternation.
12955
12956 2010-05-26  Eric Blake  <eblake@redhat.com>
12957
12958         maint.mk: avoid echo -e
12959         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12960         Convert all uses of echo -* to printf.
12961         Reported by Matthias Bolte.
12962
12963 2010-05-25  Bruno Haible  <bruno@clisp.org>
12964
12965         Update to GNU gettext 0.18, part 2.
12966         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12967         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12968
12969 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12970
12971         Add missing include in test-pwrite.c.
12972         * tests/test-pwrite.c: Include string.h, for strcmp.
12973
12974 2010-05-24  Bruno Haible  <bruno@clisp.org>
12975
12976         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12977
12978 2010-05-24  Bruno Haible  <bruno@clisp.org>
12979
12980         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12981         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12982         iconveh_error argument.
12983         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12984         U_STRCONV_TO_LOCALE.
12985         * lib/unistr/u16-strcoll.c: Likewise.
12986         * lib/unistr/u32-strcoll.c: Likewise.
12987         * modules/unistr/u8-strcoll (Depends-on): Add
12988         uniconv/u8-strconv-to-enc, localcharset. Remove
12989         uniconv/u8-strconv-to-locale.
12990         (configure.ac): Bump version number.
12991         * modules/unistr/u16-strcoll (Depends-on): Add
12992         uniconv/u16-strconv-to-enc, localcharset. Remove
12993         uniconv/u16-strconv-to-locale.
12994         (configure.ac): Bump version number.
12995         * modules/unistr/u32-strcoll (Depends-on): Add
12996         uniconv/u32-strconv-to-enc, localcharset. Remove
12997         uniconv/u32-strconv-to-locale.
12998         (configure.ac): Bump version number.
12999
13000 2010-05-24  Bruno Haible  <bruno@clisp.org>
13001
13002         Avoid a test failure on NetBSD 5.0.
13003         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13004         an iconv() bug.
13005
13006 2010-05-24  Bruno Haible  <bruno@clisp.org>
13007
13008         Adjust #include directive style.
13009         * modules/regex (Includes): Recommend to write <regex.h>.
13010
13011 2010-05-24  Bruno Haible  <bruno@clisp.org>
13012
13013         regex: Don't require alloca.
13014         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13015         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13016         only inside if (0).
13017
13018 2010-05-23  Jim Meyering  <meyering@redhat.com>
13019
13020         test-renameat.c: include <sys/stat.h>
13021         * tests/test-renameat.c: Include <sys/stat.h>; required for
13022         definition of S_IS* macros.
13023
13024 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13025
13026         Update maintainer documentation for 'relocatable-prog' module.
13027         * doc/relocatable-maint.texi: Update.
13028         Comments by Bruno Haible.
13029
13030 2010-05-23  Bruno Haible  <bruno@clisp.org>
13031
13032         git-merge-changelog: Enable --split-merged-entry by default.
13033         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13034         (usage): Don't mention this option any more.
13035         Reported by Ralf Wildenhues.
13036
13037 2010-05-23  Jim Meyering  <meyering@redhat.com>
13038
13039         test-pwrite: do not leave behind a test file named "out"
13040         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13041         The trivial-looking use of init.sh is really necessary.
13042         It ensures that the temporary file, "out", is created in
13043         a temporary directory, and removed upon termination.
13044         * tests/test-pwrite.sh: Re-add file.
13045         * modules/pwrite-tests: Reference it.
13046
13047 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13048
13049         Fix output redirection buglet in init.sh.
13050         * tests/init.sh: Fix redirection of stderr.
13051
13052 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13053
13054         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13055
13056 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13057
13058         * modules/valgrind-tests: New file.
13059         * m4/valgrind-tests.m4: New file.
13060         * doc/valgrind-tests.texi: New file.
13061         * doc/gnulib.texi (Running self-tests under valgrind): New
13062         section.
13063
13064 2010-05-19  Bruno Haible  <bruno@clisp.org>
13065
13066         Clean up dead code in recent commit.
13067         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13068         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13069         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13070         Suggested by Paolo Bonzini.
13071
13072 2010-05-19  Bruno Haible  <bruno@clisp.org>
13073
13074         Avoid valgrind error reports from libunistring.
13075         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13076         * modules/libunistring (Files): Add it.
13077         * modules/libunistring-optional (Files): Likewise.
13078
13079 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13080             Bruno Haible  <bruno@clisp.org>
13081
13082         New module 'libunistring-optional'.
13083         * modules/libunistring-optional: New file.
13084         * m4/libunistring-base.m4: New file.
13085         * m4/libunistring-optional.m4: New file.
13086         * lib/unicase.in.h: Renamed from lib/unicase.h.
13087         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13088         * lib/unictype.in.h: Renamed from lib/unictype.h.
13089         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13090         * lib/uniname.in.h: Renamed from lib/uniname.h.
13091         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13092         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13093         * lib/unistr.in.h: Renamed from lib/unistr.h.
13094         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13095         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13096         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13097         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13098         gl_LIBUNISTRING. If the library was found, determine the installed
13099         version and set LIBUNISTRING_VERSION.
13100         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13101         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13102         handle a configuration option --with-included-libunistring.
13103         * modules/libunistring (Files): Add m4/absolute-header.m4.
13104         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13105         Add m4/libunistring-base.m4.
13106         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13107         (Makefile.am): Build unicase.h from unicase.in.h.
13108         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13109         Add m4/libunistring-base.m4.
13110         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13111         (Makefile.am): Build uniconv.h from uniconv.in.h.
13112         * modules/unictype/base (Files): Use unictype.in.h instead of
13113         unictype.h. Add m4/libunistring-base.m4.
13114         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13115         (Makefile.am): Build unictype.h from unictype.in.h.
13116         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13117         Add m4/libunistring-base.m4.
13118         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13119         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13120         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13121         Add m4/libunistring-base.m4.
13122         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13123         (Makefile.am): Build uniname.h from uniname.in.h.
13124         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13125         Add m4/libunistring-base.m4.
13126         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13127         (Makefile.am): Build uninorm.h from uninorm.in.h.
13128         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13129         unistdio.h. Add m4/libunistring-base.m4.
13130         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13131         (Makefile.am): Build unistdio.h from unistdio.in.h.
13132         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13133         Add m4/libunistring-base.m4.
13134         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13135         (Makefile.am): Build unistr.h from unistr.in.h.
13136         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13137         Add m4/libunistring-base.m4.
13138         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13139         (Makefile.am): Build unitypes.h from unitypes.in.h.
13140         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13141         Add m4/libunistring-base.m4.
13142         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13143         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13144         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13145         uniwidth.h. Add m4/libunistring-base.m4.
13146         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13147         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13148         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13149         instead of augmenting lib_SOURCES.
13150         * modules/unicase/empty-suffix-context: Likewise.
13151         * modules/unicase/locale-language: Likewise.
13152         * modules/unicase/tolower: Likewise.
13153         * modules/unicase/totitle: Likewise.
13154         * modules/unicase/toupper: Likewise.
13155         * modules/unicase/u8-casecmp: Likewise.
13156         * modules/unicase/u8-casecoll: Likewise.
13157         * modules/unicase/u8-casefold: Likewise.
13158         * modules/unicase/u8-casexfrm: Likewise.
13159         * modules/unicase/u8-ct-casefold: Likewise.
13160         * modules/unicase/u8-ct-tolower: Likewise.
13161         * modules/unicase/u8-ct-totitle: Likewise.
13162         * modules/unicase/u8-ct-toupper: Likewise.
13163         * modules/unicase/u8-is-cased: Likewise.
13164         * modules/unicase/u8-is-casefolded: Likewise.
13165         * modules/unicase/u8-is-lowercase: Likewise.
13166         * modules/unicase/u8-is-titlecase: Likewise.
13167         * modules/unicase/u8-is-uppercase: Likewise.
13168         * modules/unicase/u8-prefix-context: Likewise.
13169         * modules/unicase/u8-suffix-context: Likewise.
13170         * modules/unicase/u8-tolower: Likewise.
13171         * modules/unicase/u8-totitle: Likewise.
13172         * modules/unicase/u8-toupper: Likewise.
13173         * modules/unicase/u16-casecmp: Likewise.
13174         * modules/unicase/u16-casecoll: Likewise.
13175         * modules/unicase/u16-casefold: Likewise.
13176         * modules/unicase/u16-casexfrm: Likewise.
13177         * modules/unicase/u16-ct-casefold: Likewise.
13178         * modules/unicase/u16-ct-tolower: Likewise.
13179         * modules/unicase/u16-ct-totitle: Likewise.
13180         * modules/unicase/u16-ct-toupper: Likewise.
13181         * modules/unicase/u16-is-cased: Likewise.
13182         * modules/unicase/u16-is-casefolded: Likewise.
13183         * modules/unicase/u16-is-lowercase: Likewise.
13184         * modules/unicase/u16-is-titlecase: Likewise.
13185         * modules/unicase/u16-is-uppercase: Likewise.
13186         * modules/unicase/u16-prefix-context: Likewise.
13187         * modules/unicase/u16-suffix-context: Likewise.
13188         * modules/unicase/u16-tolower: Likewise.
13189         * modules/unicase/u16-totitle: Likewise.
13190         * modules/unicase/u16-toupper: Likewise.
13191         * modules/unicase/u32-casecmp: Likewise.
13192         * modules/unicase/u32-casecoll: Likewise.
13193         * modules/unicase/u32-casefold: Likewise.
13194         * modules/unicase/u32-casexfrm: Likewise.
13195         * modules/unicase/u32-ct-casefold: Likewise.
13196         * modules/unicase/u32-ct-tolower: Likewise.
13197         * modules/unicase/u32-ct-totitle: Likewise.
13198         * modules/unicase/u32-ct-toupper: Likewise.
13199         * modules/unicase/u32-is-cased: Likewise.
13200         * modules/unicase/u32-is-casefolded: Likewise.
13201         * modules/unicase/u32-is-lowercase: Likewise.
13202         * modules/unicase/u32-is-titlecase: Likewise.
13203         * modules/unicase/u32-is-uppercase: Likewise.
13204         * modules/unicase/u32-prefix-context: Likewise.
13205         * modules/unicase/u32-suffix-context: Likewise.
13206         * modules/unicase/u32-tolower: Likewise.
13207         * modules/unicase/u32-totitle: Likewise.
13208         * modules/unicase/u32-toupper: Likewise.
13209         * modules/unicase/ulc-casecmp: Likewise.
13210         * modules/unicase/ulc-casecoll: Likewise.
13211         * modules/unicase/ulc-casexfrm: Likewise.
13212         * modules/uniconv/u8-conv-from-enc: Likewise.
13213         * modules/uniconv/u8-conv-to-enc: Likewise.
13214         * modules/uniconv/u8-strconv-from-enc: Likewise.
13215         * modules/uniconv/u8-strconv-from-locale: Likewise.
13216         * modules/uniconv/u8-strconv-to-enc: Likewise.
13217         * modules/uniconv/u8-strconv-to-locale: Likewise.
13218         * modules/uniconv/u16-conv-from-enc: Likewise.
13219         * modules/uniconv/u16-conv-to-enc: Likewise.
13220         * modules/uniconv/u16-strconv-from-enc: Likewise.
13221         * modules/uniconv/u16-strconv-from-locale: Likewise.
13222         * modules/uniconv/u16-strconv-to-enc: Likewise.
13223         * modules/uniconv/u16-strconv-to-locale: Likewise.
13224         * modules/uniconv/u32-conv-from-enc: Likewise.
13225         * modules/uniconv/u32-conv-to-enc: Likewise.
13226         * modules/uniconv/u32-strconv-from-enc: Likewise.
13227         * modules/uniconv/u32-strconv-from-locale: Likewise.
13228         * modules/uniconv/u32-strconv-to-enc: Likewise.
13229         * modules/uniconv/u32-strconv-to-locale: Likewise.
13230         * modules/unictype/bidicategory-byname: Likewise.
13231         * modules/unictype/bidicategory-name: Likewise.
13232         * modules/unictype/bidicategory-of: Likewise.
13233         * modules/unictype/bidicategory-test: Likewise.
13234         * modules/unictype/block-list: Likewise.
13235         * modules/unictype/block-test: Likewise.
13236         * modules/unictype/category-C: Likewise.
13237         * modules/unictype/category-Cc: Likewise.
13238         * modules/unictype/category-Cf: Likewise.
13239         * modules/unictype/category-Cn: Likewise.
13240         * modules/unictype/category-Co: Likewise.
13241         * modules/unictype/category-Cs: Likewise.
13242         * modules/unictype/category-L: Likewise.
13243         * modules/unictype/category-Ll: Likewise.
13244         * modules/unictype/category-Lm: Likewise.
13245         * modules/unictype/category-Lo: Likewise.
13246         * modules/unictype/category-Lt: Likewise.
13247         * modules/unictype/category-Lu: Likewise.
13248         * modules/unictype/category-M: Likewise.
13249         * modules/unictype/category-Mc: Likewise.
13250         * modules/unictype/category-Me: Likewise.
13251         * modules/unictype/category-Mn: Likewise.
13252         * modules/unictype/category-N: Likewise.
13253         * modules/unictype/category-Nd: Likewise.
13254         * modules/unictype/category-Nl: Likewise.
13255         * modules/unictype/category-No: Likewise.
13256         * modules/unictype/category-P: Likewise.
13257         * modules/unictype/category-Pc: Likewise.
13258         * modules/unictype/category-Pd: Likewise.
13259         * modules/unictype/category-Pe: Likewise.
13260         * modules/unictype/category-Pf: Likewise.
13261         * modules/unictype/category-Pi: Likewise.
13262         * modules/unictype/category-Po: Likewise.
13263         * modules/unictype/category-Ps: Likewise.
13264         * modules/unictype/category-S: Likewise.
13265         * modules/unictype/category-Sc: Likewise.
13266         * modules/unictype/category-Sk: Likewise.
13267         * modules/unictype/category-Sm: Likewise.
13268         * modules/unictype/category-So: Likewise.
13269         * modules/unictype/category-Z: Likewise.
13270         * modules/unictype/category-Zl: Likewise.
13271         * modules/unictype/category-Zp: Likewise.
13272         * modules/unictype/category-Zs: Likewise.
13273         * modules/unictype/category-and: Likewise.
13274         * modules/unictype/category-and-not: Likewise.
13275         * modules/unictype/category-byname: Likewise.
13276         * modules/unictype/category-name: Likewise.
13277         * modules/unictype/category-none: Likewise.
13278         * modules/unictype/category-of: Likewise.
13279         * modules/unictype/category-or: Likewise.
13280         * modules/unictype/category-test: Likewise.
13281         * modules/unictype/combining-class: Likewise.
13282         * modules/unictype/ctype-alnum: Likewise.
13283         * modules/unictype/ctype-alpha: Likewise.
13284         * modules/unictype/ctype-blank: Likewise.
13285         * modules/unictype/ctype-cntrl: Likewise.
13286         * modules/unictype/ctype-digit: Likewise.
13287         * modules/unictype/ctype-graph: Likewise.
13288         * modules/unictype/ctype-lower: Likewise.
13289         * modules/unictype/ctype-print: Likewise.
13290         * modules/unictype/ctype-punct: Likewise.
13291         * modules/unictype/ctype-space: Likewise.
13292         * modules/unictype/ctype-upper: Likewise.
13293         * modules/unictype/ctype-xdigit: Likewise.
13294         * modules/unictype/decimal-digit: Likewise.
13295         * modules/unictype/digit: Likewise.
13296         * modules/unictype/mirror: Likewise.
13297         * modules/unictype/numeric: Likewise.
13298         * modules/unictype/property-alphabetic: Likewise.
13299         * modules/unictype/property-ascii-hex-digit: Likewise.
13300         * modules/unictype/property-bidi-arabic-digit: Likewise.
13301         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13302         * modules/unictype/property-bidi-block-separator: Likewise.
13303         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13304         * modules/unictype/property-bidi-common-separator: Likewise.
13305         * modules/unictype/property-bidi-control: Likewise.
13306         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13307         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13308         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13309         * modules/unictype/property-bidi-european-digit: Likewise.
13310         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13311         * modules/unictype/property-bidi-left-to-right: Likewise.
13312         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13313         * modules/unictype/property-bidi-other-neutral: Likewise.
13314         * modules/unictype/property-bidi-pdf: Likewise.
13315         * modules/unictype/property-bidi-segment-separator: Likewise.
13316         * modules/unictype/property-bidi-whitespace: Likewise.
13317         * modules/unictype/property-byname: Likewise.
13318         * modules/unictype/property-combining: Likewise.
13319         * modules/unictype/property-composite: Likewise.
13320         * modules/unictype/property-currency-symbol: Likewise.
13321         * modules/unictype/property-dash: Likewise.
13322         * modules/unictype/property-decimal-digit: Likewise.
13323         * modules/unictype/property-default-ignorable-code-point: Likewise.
13324         * modules/unictype/property-deprecated: Likewise.
13325         * modules/unictype/property-diacritic: Likewise.
13326         * modules/unictype/property-extender: Likewise.
13327         * modules/unictype/property-format-control: Likewise.
13328         * modules/unictype/property-grapheme-base: Likewise.
13329         * modules/unictype/property-grapheme-extend: Likewise.
13330         * modules/unictype/property-grapheme-link: Likewise.
13331         * modules/unictype/property-hex-digit: Likewise.
13332         * modules/unictype/property-hyphen: Likewise.
13333         * modules/unictype/property-id-continue: Likewise.
13334         * modules/unictype/property-id-start: Likewise.
13335         * modules/unictype/property-ideographic: Likewise.
13336         * modules/unictype/property-ids-binary-operator: Likewise.
13337         * modules/unictype/property-ids-trinary-operator: Likewise.
13338         * modules/unictype/property-ignorable-control: Likewise.
13339         * modules/unictype/property-iso-control: Likewise.
13340         * modules/unictype/property-join-control: Likewise.
13341         * modules/unictype/property-left-of-pair: Likewise.
13342         * modules/unictype/property-line-separator: Likewise.
13343         * modules/unictype/property-logical-order-exception: Likewise.
13344         * modules/unictype/property-lowercase: Likewise.
13345         * modules/unictype/property-math: Likewise.
13346         * modules/unictype/property-non-break: Likewise.
13347         * modules/unictype/property-not-a-character: Likewise.
13348         * modules/unictype/property-numeric: Likewise.
13349         * modules/unictype/property-other-alphabetic: Likewise.
13350         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13351         * modules/unictype/property-other-grapheme-extend: Likewise.
13352         * modules/unictype/property-other-id-continue: Likewise.
13353         * modules/unictype/property-other-id-start: Likewise.
13354         * modules/unictype/property-other-lowercase: Likewise.
13355         * modules/unictype/property-other-math: Likewise.
13356         * modules/unictype/property-other-uppercase: Likewise.
13357         * modules/unictype/property-paired-punctuation: Likewise.
13358         * modules/unictype/property-paragraph-separator: Likewise.
13359         * modules/unictype/property-pattern-syntax: Likewise.
13360         * modules/unictype/property-pattern-white-space: Likewise.
13361         * modules/unictype/property-private-use: Likewise.
13362         * modules/unictype/property-punctuation: Likewise.
13363         * modules/unictype/property-quotation-mark: Likewise.
13364         * modules/unictype/property-radical: Likewise.
13365         * modules/unictype/property-sentence-terminal: Likewise.
13366         * modules/unictype/property-soft-dotted: Likewise.
13367         * modules/unictype/property-space: Likewise.
13368         * modules/unictype/property-terminal-punctuation: Likewise.
13369         * modules/unictype/property-test: Likewise.
13370         * modules/unictype/property-titlecase: Likewise.
13371         * modules/unictype/property-unassigned-code-value: Likewise.
13372         * modules/unictype/property-unified-ideograph: Likewise.
13373         * modules/unictype/property-uppercase: Likewise.
13374         * modules/unictype/property-variation-selector: Likewise.
13375         * modules/unictype/property-white-space: Likewise.
13376         * modules/unictype/property-xid-continue: Likewise.
13377         * modules/unictype/property-xid-start: Likewise.
13378         * modules/unictype/property-zero-width: Likewise.
13379         * modules/unictype/scripts: Likewise.
13380         * modules/unictype/syntax-c-ident: Likewise.
13381         * modules/unictype/syntax-c-whitespace: Likewise.
13382         * modules/unictype/syntax-java-ident: Likewise.
13383         * modules/unictype/syntax-java-whitespace: Likewise.
13384         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13385         * modules/unilbrk/u8-width-linebreaks: Likewise.
13386         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13387         * modules/unilbrk/u16-width-linebreaks: Likewise.
13388         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13389         * modules/unilbrk/u32-width-linebreaks: Likewise.
13390         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13391         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13392         * modules/uniname/uniname: Likewise.
13393         * modules/uninorm/canonical-decomposition: Likewise.
13394         * modules/uninorm/composition: Likewise.
13395         * modules/uninorm/decomposing-form: Likewise.
13396         * modules/uninorm/decomposition: Likewise.
13397         * modules/uninorm/filter: Likewise.
13398         * modules/uninorm/nfc: Likewise.
13399         * modules/uninorm/nfd: Likewise.
13400         * modules/uninorm/nfkc: Likewise.
13401         * modules/uninorm/nfkd: Likewise.
13402         * modules/uninorm/u8-normalize: Likewise.
13403         * modules/uninorm/u8-normcmp: Likewise.
13404         * modules/uninorm/u8-normcoll: Likewise.
13405         * modules/uninorm/u8-normxfrm: Likewise.
13406         * modules/uninorm/u16-normalize: Likewise.
13407         * modules/uninorm/u16-normcmp: Likewise.
13408         * modules/uninorm/u16-normcoll: Likewise.
13409         * modules/uninorm/u16-normxfrm: Likewise.
13410         * modules/uninorm/u32-normalize: Likewise.
13411         * modules/uninorm/u32-normcmp: Likewise.
13412         * modules/uninorm/u32-normcoll: Likewise.
13413         * modules/uninorm/u32-normxfrm: Likewise.
13414         * modules/unistdio/u8-asnprintf: Likewise.
13415         * modules/unistdio/u8-asprintf: Likewise.
13416         * modules/unistdio/u8-snprintf: Likewise.
13417         * modules/unistdio/u8-sprintf: Likewise.
13418         * modules/unistdio/u8-u8-asnprintf: Likewise.
13419         * modules/unistdio/u8-u8-asprintf: Likewise.
13420         * modules/unistdio/u8-u8-snprintf: Likewise.
13421         * modules/unistdio/u8-u8-sprintf: Likewise.
13422         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13423         * modules/unistdio/u8-u8-vasprintf: Likewise.
13424         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13425         * modules/unistdio/u8-u8-vsprintf: Likewise.
13426         * modules/unistdio/u8-vasnprintf: Likewise.
13427         * modules/unistdio/u8-vasprintf: Likewise.
13428         * modules/unistdio/u8-vsnprintf: Likewise.
13429         * modules/unistdio/u8-vsprintf: Likewise.
13430         * modules/unistdio/u16-asnprintf: Likewise.
13431         * modules/unistdio/u16-asprintf: Likewise.
13432         * modules/unistdio/u16-snprintf: Likewise.
13433         * modules/unistdio/u16-sprintf: Likewise.
13434         * modules/unistdio/u16-u16-asnprintf: Likewise.
13435         * modules/unistdio/u16-u16-asprintf: Likewise.
13436         * modules/unistdio/u16-u16-snprintf: Likewise.
13437         * modules/unistdio/u16-u16-sprintf: Likewise.
13438         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13439         * modules/unistdio/u16-u16-vasprintf: Likewise.
13440         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13441         * modules/unistdio/u16-u16-vsprintf: Likewise.
13442         * modules/unistdio/u16-vasnprintf: Likewise.
13443         * modules/unistdio/u16-vasprintf: Likewise.
13444         * modules/unistdio/u16-vsnprintf: Likewise.
13445         * modules/unistdio/u16-vsprintf: Likewise.
13446         * modules/unistdio/u32-asnprintf: Likewise.
13447         * modules/unistdio/u32-asprintf: Likewise.
13448         * modules/unistdio/u32-snprintf: Likewise.
13449         * modules/unistdio/u32-sprintf: Likewise.
13450         * modules/unistdio/u32-u32-asnprintf: Likewise.
13451         * modules/unistdio/u32-u32-asprintf: Likewise.
13452         * modules/unistdio/u32-u32-snprintf: Likewise.
13453         * modules/unistdio/u32-u32-sprintf: Likewise.
13454         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13455         * modules/unistdio/u32-u32-vasprintf: Likewise.
13456         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13457         * modules/unistdio/u32-u32-vsprintf: Likewise.
13458         * modules/unistdio/u32-vasnprintf: Likewise.
13459         * modules/unistdio/u32-vasprintf: Likewise.
13460         * modules/unistdio/u32-vsnprintf: Likewise.
13461         * modules/unistdio/u32-vsprintf: Likewise.
13462         * modules/unistdio/ulc-asnprintf: Likewise.
13463         * modules/unistdio/ulc-asprintf: Likewise.
13464         * modules/unistdio/ulc-fprintf: Likewise.
13465         * modules/unistdio/ulc-snprintf: Likewise.
13466         * modules/unistdio/ulc-sprintf: Likewise.
13467         * modules/unistdio/ulc-vasnprintf: Likewise.
13468         * modules/unistdio/ulc-vasprintf: Likewise.
13469         * modules/unistdio/ulc-vfprintf: Likewise.
13470         * modules/unistdio/ulc-vsnprintf: Likewise.
13471         * modules/unistdio/ulc-vsprintf: Likewise.
13472         * modules/unistr/u8-check: Likewise.
13473         * modules/unistr/u8-chr: Likewise.
13474         * modules/unistr/u8-cmp: Likewise.
13475         * modules/unistr/u8-cmp2: Likewise.
13476         * modules/unistr/u8-cpy: Likewise.
13477         * modules/unistr/u8-cpy-alloc: Likewise.
13478         * modules/unistr/u8-endswith: Likewise.
13479         * modules/unistr/u8-mblen: Likewise.
13480         * modules/unistr/u8-mbsnlen: Likewise.
13481         * modules/unistr/u8-mbtouc: Likewise.
13482         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13483         * modules/unistr/u8-mbtoucr: Likewise.
13484         * modules/unistr/u8-move: Likewise.
13485         * modules/unistr/u8-next: Likewise.
13486         * modules/unistr/u8-prev: Likewise.
13487         * modules/unistr/u8-set: Likewise.
13488         * modules/unistr/u8-startswith: Likewise.
13489         * modules/unistr/u8-stpcpy: Likewise.
13490         * modules/unistr/u8-stpncpy: Likewise.
13491         * modules/unistr/u8-strcat: Likewise.
13492         * modules/unistr/u8-strchr: Likewise.
13493         * modules/unistr/u8-strcmp: Likewise.
13494         * modules/unistr/u8-strcoll: Likewise.
13495         * modules/unistr/u8-strcpy: Likewise.
13496         * modules/unistr/u8-strcspn: Likewise.
13497         * modules/unistr/u8-strdup: Likewise.
13498         * modules/unistr/u8-strlen: Likewise.
13499         * modules/unistr/u8-strmblen: Likewise.
13500         * modules/unistr/u8-strmbtouc: Likewise.
13501         * modules/unistr/u8-strncat: Likewise.
13502         * modules/unistr/u8-strncmp: Likewise.
13503         * modules/unistr/u8-strncpy: Likewise.
13504         * modules/unistr/u8-strnlen: Likewise.
13505         * modules/unistr/u8-strpbrk: Likewise.
13506         * modules/unistr/u8-strrchr: Likewise.
13507         * modules/unistr/u8-strspn: Likewise.
13508         * modules/unistr/u8-strstr: Likewise.
13509         * modules/unistr/u8-strtok: Likewise.
13510         * modules/unistr/u8-to-u16: Likewise.
13511         * modules/unistr/u8-to-u32: Likewise.
13512         * modules/unistr/u8-uctomb: Likewise.
13513         * modules/unistr/u16-check: Likewise.
13514         * modules/unistr/u16-chr: Likewise.
13515         * modules/unistr/u16-cmp: Likewise.
13516         * modules/unistr/u16-cmp2: Likewise.
13517         * modules/unistr/u16-cpy: Likewise.
13518         * modules/unistr/u16-cpy-alloc: Likewise.
13519         * modules/unistr/u16-endswith: Likewise.
13520         * modules/unistr/u16-mblen: Likewise.
13521         * modules/unistr/u16-mbsnlen: Likewise.
13522         * modules/unistr/u16-mbtouc: Likewise.
13523         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13524         * modules/unistr/u16-mbtoucr: Likewise.
13525         * modules/unistr/u16-move: Likewise.
13526         * modules/unistr/u16-next: Likewise.
13527         * modules/unistr/u16-prev: Likewise.
13528         * modules/unistr/u16-set: Likewise.
13529         * modules/unistr/u16-startswith: Likewise.
13530         * modules/unistr/u16-stpcpy: Likewise.
13531         * modules/unistr/u16-stpncpy: Likewise.
13532         * modules/unistr/u16-strcat: Likewise.
13533         * modules/unistr/u16-strchr: Likewise.
13534         * modules/unistr/u16-strcmp: Likewise.
13535         * modules/unistr/u16-strcoll: Likewise.
13536         * modules/unistr/u16-strcpy: Likewise.
13537         * modules/unistr/u16-strcspn: Likewise.
13538         * modules/unistr/u16-strdup: Likewise.
13539         * modules/unistr/u16-strlen: Likewise.
13540         * modules/unistr/u16-strmblen: Likewise.
13541         * modules/unistr/u16-strmbtouc: Likewise.
13542         * modules/unistr/u16-strncat: Likewise.
13543         * modules/unistr/u16-strncmp: Likewise.
13544         * modules/unistr/u16-strncpy: Likewise.
13545         * modules/unistr/u16-strnlen: Likewise.
13546         * modules/unistr/u16-strpbrk: Likewise.
13547         * modules/unistr/u16-strrchr: Likewise.
13548         * modules/unistr/u16-strspn: Likewise.
13549         * modules/unistr/u16-strstr: Likewise.
13550         * modules/unistr/u16-strtok: Likewise.
13551         * modules/unistr/u16-to-u32: Likewise.
13552         * modules/unistr/u16-to-u8: Likewise.
13553         * modules/unistr/u16-uctomb: Likewise.
13554         * modules/unistr/u32-check: Likewise.
13555         * modules/unistr/u32-chr: Likewise.
13556         * modules/unistr/u32-cmp: Likewise.
13557         * modules/unistr/u32-cmp2: Likewise.
13558         * modules/unistr/u32-cpy: Likewise.
13559         * modules/unistr/u32-cpy-alloc: Likewise.
13560         * modules/unistr/u32-endswith: Likewise.
13561         * modules/unistr/u32-mblen: Likewise.
13562         * modules/unistr/u32-mbsnlen: Likewise.
13563         * modules/unistr/u32-mbtouc: Likewise.
13564         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13565         * modules/unistr/u32-mbtoucr: Likewise.
13566         * modules/unistr/u32-move: Likewise.
13567         * modules/unistr/u32-next: Likewise.
13568         * modules/unistr/u32-prev: Likewise.
13569         * modules/unistr/u32-set: Likewise.
13570         * modules/unistr/u32-startswith: Likewise.
13571         * modules/unistr/u32-stpcpy: Likewise.
13572         * modules/unistr/u32-stpncpy: Likewise.
13573         * modules/unistr/u32-strcat: Likewise.
13574         * modules/unistr/u32-strchr: Likewise.
13575         * modules/unistr/u32-strcmp: Likewise.
13576         * modules/unistr/u32-strcoll: Likewise.
13577         * modules/unistr/u32-strcpy: Likewise.
13578         * modules/unistr/u32-strcspn: Likewise.
13579         * modules/unistr/u32-strdup: Likewise.
13580         * modules/unistr/u32-strlen: Likewise.
13581         * modules/unistr/u32-strmblen: Likewise.
13582         * modules/unistr/u32-strmbtouc: Likewise.
13583         * modules/unistr/u32-strncat: Likewise.
13584         * modules/unistr/u32-strncmp: Likewise.
13585         * modules/unistr/u32-strncpy: Likewise.
13586         * modules/unistr/u32-strnlen: Likewise.
13587         * modules/unistr/u32-strpbrk: Likewise.
13588         * modules/unistr/u32-strrchr: Likewise.
13589         * modules/unistr/u32-strspn: Likewise.
13590         * modules/unistr/u32-strstr: Likewise.
13591         * modules/unistr/u32-strtok: Likewise.
13592         * modules/unistr/u32-to-u16: Likewise.
13593         * modules/unistr/u32-to-u8: Likewise.
13594         * modules/unistr/u32-uctomb: Likewise.
13595         * modules/uniwbrk/u8-wordbreaks: Likewise.
13596         * modules/uniwbrk/u16-wordbreaks: Likewise.
13597         * modules/uniwbrk/u32-wordbreaks: Likewise.
13598         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13599         * modules/uniwbrk/wordbreak-property: Likewise.
13600         * modules/uniwidth/u8-strwidth: Likewise.
13601         * modules/uniwidth/u8-width: Likewise.
13602         * modules/uniwidth/u16-strwidth: Likewise.
13603         * modules/uniwidth/u16-width: Likewise.
13604         * modules/uniwidth/u32-strwidth: Likewise.
13605         * modules/uniwidth/u32-width: Likewise.
13606         * modules/uniwidth/width: Likewise.
13607         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13608         with $(LIBUNISTRING).
13609         * modules/unicase/ignorable-tests: Likewise.
13610         * modules/unicase/locale-language-tests: Likewise.
13611         * modules/unicase/tolower-tests: Likewise.
13612         * modules/unicase/totitle-tests: Likewise.
13613         * modules/unicase/toupper-tests: Likewise.
13614         * modules/unicase/u8-casecmp-tests: Likewise.
13615         * modules/unicase/u8-casecoll-tests: Likewise.
13616         * modules/unicase/u8-casefold-tests: Likewise.
13617         * modules/unicase/u8-is-cased-tests: Likewise.
13618         * modules/unicase/u8-is-casefolded-tests: Likewise.
13619         * modules/unicase/u8-is-lowercase-tests: Likewise.
13620         * modules/unicase/u8-is-titlecase-tests: Likewise.
13621         * modules/unicase/u8-is-uppercase-tests: Likewise.
13622         * modules/unicase/u8-tolower-tests: Likewise.
13623         * modules/unicase/u8-totitle-tests: Likewise.
13624         * modules/unicase/u8-toupper-tests: Likewise.
13625         * modules/unicase/u16-casecmp-tests: Likewise.
13626         * modules/unicase/u16-casecoll-tests: Likewise.
13627         * modules/unicase/u16-casefold-tests: Likewise.
13628         * modules/unicase/u16-is-cased-tests: Likewise.
13629         * modules/unicase/u16-is-casefolded-tests: Likewise.
13630         * modules/unicase/u16-is-lowercase-tests: Likewise.
13631         * modules/unicase/u16-is-titlecase-tests: Likewise.
13632         * modules/unicase/u16-is-uppercase-tests: Likewise.
13633         * modules/unicase/u16-tolower-tests: Likewise.
13634         * modules/unicase/u16-totitle-tests: Likewise.
13635         * modules/unicase/u16-toupper-tests: Likewise.
13636         * modules/unicase/u32-casecmp-tests: Likewise.
13637         * modules/unicase/u32-casecoll-tests: Likewise.
13638         * modules/unicase/u32-casefold-tests: Likewise.
13639         * modules/unicase/u32-is-cased-tests: Likewise.
13640         * modules/unicase/u32-is-casefolded-tests: Likewise.
13641         * modules/unicase/u32-is-lowercase-tests: Likewise.
13642         * modules/unicase/u32-is-titlecase-tests: Likewise.
13643         * modules/unicase/u32-is-uppercase-tests: Likewise.
13644         * modules/unicase/u32-tolower-tests: Likewise.
13645         * modules/unicase/u32-totitle-tests: Likewise.
13646         * modules/unicase/u32-toupper-tests: Likewise.
13647         * modules/unicase/ulc-casecmp-tests: Likewise.
13648         * modules/unicase/ulc-casecoll-tests: Likewise.
13649         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13650         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13651         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13652         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13653         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13654         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13655         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13656         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13657         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13658         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13659         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13660         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13661         * modules/unictype/bidicategory-byname-tests: Likewise.
13662         * modules/unictype/bidicategory-name-tests: Likewise.
13663         * modules/unictype/bidicategory-of-tests: Likewise.
13664         * modules/unictype/bidicategory-test-tests: Likewise.
13665         * modules/unictype/block-list-tests: Likewise.
13666         * modules/unictype/block-of-tests: Likewise.
13667         * modules/unictype/block-test-tests: Likewise.
13668         * modules/unictype/category-C-tests: Likewise.
13669         * modules/unictype/category-Cc-tests: Likewise.
13670         * modules/unictype/category-Cf-tests: Likewise.
13671         * modules/unictype/category-Cn-tests: Likewise.
13672         * modules/unictype/category-Co-tests: Likewise.
13673         * modules/unictype/category-Cs-tests: Likewise.
13674         * modules/unictype/category-L-tests: Likewise.
13675         * modules/unictype/category-Ll-tests: Likewise.
13676         * modules/unictype/category-Lm-tests: Likewise.
13677         * modules/unictype/category-Lo-tests: Likewise.
13678         * modules/unictype/category-Lt-tests: Likewise.
13679         * modules/unictype/category-Lu-tests: Likewise.
13680         * modules/unictype/category-M-tests: Likewise.
13681         * modules/unictype/category-Mc-tests: Likewise.
13682         * modules/unictype/category-Me-tests: Likewise.
13683         * modules/unictype/category-Mn-tests: Likewise.
13684         * modules/unictype/category-N-tests: Likewise.
13685         * modules/unictype/category-Nd-tests: Likewise.
13686         * modules/unictype/category-Nl-tests: Likewise.
13687         * modules/unictype/category-No-tests: Likewise.
13688         * modules/unictype/category-P-tests: Likewise.
13689         * modules/unictype/category-Pc-tests: Likewise.
13690         * modules/unictype/category-Pd-tests: Likewise.
13691         * modules/unictype/category-Pe-tests: Likewise.
13692         * modules/unictype/category-Pf-tests: Likewise.
13693         * modules/unictype/category-Pi-tests: Likewise.
13694         * modules/unictype/category-Po-tests: Likewise.
13695         * modules/unictype/category-Ps-tests: Likewise.
13696         * modules/unictype/category-S-tests: Likewise.
13697         * modules/unictype/category-Sc-tests: Likewise.
13698         * modules/unictype/category-Sk-tests: Likewise.
13699         * modules/unictype/category-Sm-tests: Likewise.
13700         * modules/unictype/category-So-tests: Likewise.
13701         * modules/unictype/category-Z-tests: Likewise.
13702         * modules/unictype/category-Zl-tests: Likewise.
13703         * modules/unictype/category-Zp-tests: Likewise.
13704         * modules/unictype/category-Zs-tests: Likewise.
13705         * modules/unictype/category-and-not-tests: Likewise.
13706         * modules/unictype/category-and-tests: Likewise.
13707         * modules/unictype/category-byname-tests: Likewise.
13708         * modules/unictype/category-name-tests: Likewise.
13709         * modules/unictype/category-none-tests: Likewise.
13710         * modules/unictype/category-of-tests: Likewise.
13711         * modules/unictype/category-or-tests: Likewise.
13712         * modules/unictype/category-test-withtable-tests: Likewise.
13713         * modules/unictype/combining-class-tests: Likewise.
13714         * modules/unictype/ctype-alnum-tests: Likewise.
13715         * modules/unictype/ctype-alpha-tests: Likewise.
13716         * modules/unictype/ctype-blank-tests: Likewise.
13717         * modules/unictype/ctype-cntrl-tests: Likewise.
13718         * modules/unictype/ctype-digit-tests: Likewise.
13719         * modules/unictype/ctype-graph-tests: Likewise.
13720         * modules/unictype/ctype-lower-tests: Likewise.
13721         * modules/unictype/ctype-print-tests: Likewise.
13722         * modules/unictype/ctype-punct-tests: Likewise.
13723         * modules/unictype/ctype-space-tests: Likewise.
13724         * modules/unictype/ctype-upper-tests: Likewise.
13725         * modules/unictype/ctype-xdigit-tests: Likewise.
13726         * modules/unictype/decimal-digit-tests: Likewise.
13727         * modules/unictype/digit-tests: Likewise.
13728         * modules/unictype/mirror-tests: Likewise.
13729         * modules/unictype/numeric-tests: Likewise.
13730         * modules/unictype/property-alphabetic-tests: Likewise.
13731         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13732         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13733         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13734         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13735         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13736         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13737         * modules/unictype/property-bidi-control-tests: Likewise.
13738         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13739         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13740         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13741         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13742         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13743         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13744         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13745         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13746         * modules/unictype/property-bidi-pdf-tests: Likewise.
13747         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13748         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13749         * modules/unictype/property-byname-tests: Likewise.
13750         * modules/unictype/property-combining-tests: Likewise.
13751         * modules/unictype/property-composite-tests: Likewise.
13752         * modules/unictype/property-currency-symbol-tests: Likewise.
13753         * modules/unictype/property-dash-tests: Likewise.
13754         * modules/unictype/property-decimal-digit-tests: Likewise.
13755         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13756         * modules/unictype/property-deprecated-tests: Likewise.
13757         * modules/unictype/property-diacritic-tests: Likewise.
13758         * modules/unictype/property-extender-tests: Likewise.
13759         * modules/unictype/property-format-control-tests: Likewise.
13760         * modules/unictype/property-grapheme-base-tests: Likewise.
13761         * modules/unictype/property-grapheme-extend-tests: Likewise.
13762         * modules/unictype/property-grapheme-link-tests: Likewise.
13763         * modules/unictype/property-hex-digit-tests: Likewise.
13764         * modules/unictype/property-hyphen-tests: Likewise.
13765         * modules/unictype/property-id-continue-tests: Likewise.
13766         * modules/unictype/property-id-start-tests: Likewise.
13767         * modules/unictype/property-ideographic-tests: Likewise.
13768         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13769         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13770         * modules/unictype/property-ignorable-control-tests: Likewise.
13771         * modules/unictype/property-iso-control-tests: Likewise.
13772         * modules/unictype/property-join-control-tests: Likewise.
13773         * modules/unictype/property-left-of-pair-tests: Likewise.
13774         * modules/unictype/property-line-separator-tests: Likewise.
13775         * modules/unictype/property-logical-order-exception-tests: Likewise.
13776         * modules/unictype/property-lowercase-tests: Likewise.
13777         * modules/unictype/property-math-tests: Likewise.
13778         * modules/unictype/property-non-break-tests: Likewise.
13779         * modules/unictype/property-not-a-character-tests: Likewise.
13780         * modules/unictype/property-numeric-tests: Likewise.
13781         * modules/unictype/property-other-alphabetic-tests: Likewise.
13782         * modules/unictype/property-other-default-ignorable-code-point-tests:
13783         Likewise.
13784         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13785         * modules/unictype/property-other-id-continue-tests: Likewise.
13786         * modules/unictype/property-other-id-start-tests: Likewise.
13787         * modules/unictype/property-other-lowercase-tests: Likewise.
13788         * modules/unictype/property-other-math-tests: Likewise.
13789         * modules/unictype/property-other-uppercase-tests: Likewise.
13790         * modules/unictype/property-paired-punctuation-tests: Likewise.
13791         * modules/unictype/property-paragraph-separator-tests: Likewise.
13792         * modules/unictype/property-pattern-syntax-tests: Likewise.
13793         * modules/unictype/property-pattern-white-space-tests: Likewise.
13794         * modules/unictype/property-private-use-tests: Likewise.
13795         * modules/unictype/property-punctuation-tests: Likewise.
13796         * modules/unictype/property-quotation-mark-tests: Likewise.
13797         * modules/unictype/property-radical-tests: Likewise.
13798         * modules/unictype/property-sentence-terminal-tests: Likewise.
13799         * modules/unictype/property-soft-dotted-tests: Likewise.
13800         * modules/unictype/property-space-tests: Likewise.
13801         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13802         * modules/unictype/property-test-tests: Likewise.
13803         * modules/unictype/property-titlecase-tests: Likewise.
13804         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13805         * modules/unictype/property-unified-ideograph-tests: Likewise.
13806         * modules/unictype/property-uppercase-tests: Likewise.
13807         * modules/unictype/property-variation-selector-tests: Likewise.
13808         * modules/unictype/property-white-space-tests: Likewise.
13809         * modules/unictype/property-xid-continue-tests: Likewise.
13810         * modules/unictype/property-xid-start-tests: Likewise.
13811         * modules/unictype/property-zero-width-tests: Likewise.
13812         * modules/unictype/scripts-tests: Likewise.
13813         * modules/unictype/syntax-c-ident-tests: Likewise.
13814         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13815         * modules/unictype/syntax-java-ident-tests: Likewise.
13816         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13817         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13818         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13819         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13820         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13821         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13822         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13823         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13824         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13825         * modules/uniname/uniname-tests: Likewise.
13826         * modules/uninorm/canonical-decomposition-tests: Likewise.
13827         * modules/uninorm/compat-decomposition-tests: Likewise.
13828         * modules/uninorm/composition-tests: Likewise.
13829         * modules/uninorm/decomposing-form-tests: Likewise.
13830         * modules/uninorm/decomposition-tests: Likewise.
13831         * modules/uninorm/filter-tests: Likewise.
13832         * modules/uninorm/nfc-tests: Likewise.
13833         * modules/uninorm/nfd-tests: Likewise.
13834         * modules/uninorm/nfkc-tests: Likewise.
13835         * modules/uninorm/nfkd-tests: Likewise.
13836         * modules/uninorm/u8-normcmp-tests: Likewise.
13837         * modules/uninorm/u8-normcoll-tests: Likewise.
13838         * modules/uninorm/u16-normcmp-tests: Likewise.
13839         * modules/uninorm/u16-normcoll-tests: Likewise.
13840         * modules/uninorm/u32-normcmp-tests: Likewise.
13841         * modules/uninorm/u32-normcoll-tests: Likewise.
13842         * modules/unistdio/u8-asnprintf-tests: Likewise.
13843         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13844         * modules/unistdio/u8-vasprintf-tests: Likewise.
13845         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13846         * modules/unistdio/u8-vsprintf-tests: Likewise.
13847         * modules/unistdio/u16-asnprintf-tests: Likewise.
13848         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13849         * modules/unistdio/u16-vasprintf-tests: Likewise.
13850         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13851         * modules/unistdio/u16-vsprintf-tests: Likewise.
13852         * modules/unistdio/u32-asnprintf-tests: Likewise.
13853         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13854         * modules/unistdio/u32-vasprintf-tests: Likewise.
13855         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13856         * modules/unistdio/u32-vsprintf-tests: Likewise.
13857         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13858         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13859         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13860         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13861         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13862         * modules/unistr/u8-check-tests: Likewise.
13863         * modules/unistr/u8-chr-tests: Likewise.
13864         * modules/unistr/u8-cmp-tests: Likewise.
13865         * modules/unistr/u8-cmp2-tests: Likewise.
13866         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13867         * modules/unistr/u8-cpy-tests: Likewise.
13868         * modules/unistr/u8-mblen-tests: Likewise.
13869         * modules/unistr/u8-mbsnlen-tests: Likewise.
13870         * modules/unistr/u8-mbtouc-tests: Likewise.
13871         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13872         * modules/unistr/u8-mbtoucr-tests: Likewise.
13873         * modules/unistr/u8-move-tests: Likewise.
13874         * modules/unistr/u8-next-tests: Likewise.
13875         * modules/unistr/u8-prev-tests: Likewise.
13876         * modules/unistr/u8-set-tests: Likewise.
13877         * modules/unistr/u8-stpcpy-tests: Likewise.
13878         * modules/unistr/u8-stpncpy-tests: Likewise.
13879         * modules/unistr/u8-strcat-tests: Likewise.
13880         * modules/unistr/u8-strcmp-tests: Likewise.
13881         * modules/unistr/u8-strcoll-tests: Likewise.
13882         * modules/unistr/u8-strcpy-tests: Likewise.
13883         * modules/unistr/u8-strdup-tests: Likewise.
13884         * modules/unistr/u8-strlen-tests: Likewise.
13885         * modules/unistr/u8-strmblen-tests: Likewise.
13886         * modules/unistr/u8-strmbtouc-tests: Likewise.
13887         * modules/unistr/u8-strncat-tests: Likewise.
13888         * modules/unistr/u8-strncmp-tests: Likewise.
13889         * modules/unistr/u8-strncpy-tests: Likewise.
13890         * modules/unistr/u8-strnlen-tests: Likewise.
13891         * modules/unistr/u8-to-u16-tests: Likewise.
13892         * modules/unistr/u8-to-u32-tests: Likewise.
13893         * modules/unistr/u8-uctomb-tests: Likewise.
13894         * modules/unistr/u16-check-tests: Likewise.
13895         * modules/unistr/u16-chr-tests: Likewise.
13896         * modules/unistr/u16-cmp-tests: Likewise.
13897         * modules/unistr/u16-cmp2-tests: Likewise.
13898         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13899         * modules/unistr/u16-cpy-tests: Likewise.
13900         * modules/unistr/u16-mblen-tests: Likewise.
13901         * modules/unistr/u16-mbsnlen-tests: Likewise.
13902         * modules/unistr/u16-mbtouc-tests: Likewise.
13903         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13904         * modules/unistr/u16-mbtoucr-tests: Likewise.
13905         * modules/unistr/u16-move-tests: Likewise.
13906         * modules/unistr/u16-next-tests: Likewise.
13907         * modules/unistr/u16-prev-tests: Likewise.
13908         * modules/unistr/u16-set-tests: Likewise.
13909         * modules/unistr/u16-stpcpy-tests: Likewise.
13910         * modules/unistr/u16-stpncpy-tests: Likewise.
13911         * modules/unistr/u16-strcat-tests: Likewise.
13912         * modules/unistr/u16-strcmp-tests: Likewise.
13913         * modules/unistr/u16-strcoll-tests: Likewise.
13914         * modules/unistr/u16-strcpy-tests: Likewise.
13915         * modules/unistr/u16-strdup-tests: Likewise.
13916         * modules/unistr/u16-strlen-tests: Likewise.
13917         * modules/unistr/u16-strmblen-tests: Likewise.
13918         * modules/unistr/u16-strmbtouc-tests: Likewise.
13919         * modules/unistr/u16-strncat-tests: Likewise.
13920         * modules/unistr/u16-strncmp-tests: Likewise.
13921         * modules/unistr/u16-strncpy-tests: Likewise.
13922         * modules/unistr/u16-strnlen-tests: Likewise.
13923         * modules/unistr/u16-to-u32-tests: Likewise.
13924         * modules/unistr/u16-to-u8-tests: Likewise.
13925         * modules/unistr/u16-uctomb-tests: Likewise.
13926         * modules/unistr/u32-check-tests: Likewise.
13927         * modules/unistr/u32-chr-tests: Likewise.
13928         * modules/unistr/u32-cmp-tests: Likewise.
13929         * modules/unistr/u32-cmp2-tests: Likewise.
13930         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13931         * modules/unistr/u32-cpy-tests: Likewise.
13932         * modules/unistr/u32-mblen-tests: Likewise.
13933         * modules/unistr/u32-mbsnlen-tests: Likewise.
13934         * modules/unistr/u32-mbtouc-tests: Likewise.
13935         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13936         * modules/unistr/u32-mbtoucr-tests: Likewise.
13937         * modules/unistr/u32-move-tests: Likewise.
13938         * modules/unistr/u32-next-tests: Likewise.
13939         * modules/unistr/u32-prev-tests: Likewise.
13940         * modules/unistr/u32-set-tests: Likewise.
13941         * modules/unistr/u32-stpcpy-tests: Likewise.
13942         * modules/unistr/u32-stpncpy-tests: Likewise.
13943         * modules/unistr/u32-strcat-tests: Likewise.
13944         * modules/unistr/u32-strcmp-tests: Likewise.
13945         * modules/unistr/u32-strcoll-tests: Likewise.
13946         * modules/unistr/u32-strcpy-tests: Likewise.
13947         * modules/unistr/u32-strdup-tests: Likewise.
13948         * modules/unistr/u32-strlen-tests: Likewise.
13949         * modules/unistr/u32-strmblen-tests: Likewise.
13950         * modules/unistr/u32-strmbtouc-tests: Likewise.
13951         * modules/unistr/u32-strncat-tests: Likewise.
13952         * modules/unistr/u32-strncmp-tests: Likewise.
13953         * modules/unistr/u32-strncpy-tests: Likewise.
13954         * modules/unistr/u32-strnlen-tests: Likewise.
13955         * modules/unistr/u32-to-u16-tests: Likewise.
13956         * modules/unistr/u32-to-u8-tests: Likewise.
13957         * modules/unistr/u32-uctomb-tests: Likewise.
13958         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13959         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13960         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13961         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13962         * modules/uniwidth/u8-strwidth-tests: Likewise.
13963         * modules/uniwidth/u8-width-tests: Likewise.
13964         * modules/uniwidth/u16-strwidth-tests: Likewise.
13965         * modules/uniwidth/u16-width-tests: Likewise.
13966         * modules/uniwidth/u32-strwidth-tests: Likewise.
13967         * modules/uniwidth/u32-width-tests: Likewise.
13968         * modules/uniwidth/width-tests: Likewise.
13969
13970 2010-05-18  Richard Jones  <rjones@redhat.com>
13971
13972         doc: users.txt: list hivex
13973         * users.txt: Add hivex.
13974
13975 2010-05-18  Richard Jones  <rjones@redhat.com>
13976
13977         doc: users.txt: list febootstrap
13978         * users.txt: Add febootstrap.
13979
13980 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13981
13982         bootstrap: fix an error when gnulib is not used as a git submodule
13983         * build-aux/bootstrap (gnulib_path): If its length is zero then
13984         assign "gnulib" to it.
13985         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13986
13987 2010-05-16  Bruno Haible  <bruno@clisp.org>
13988
13989         Avoid autoconf warnings about AM_ICONV.
13990         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13991         2.64.
13992
13993 2010-05-16  Bruno Haible  <bruno@clisp.org>
13994
13995         absolute-header: Make the macro usable in more situations.
13996         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13997         from gl_ABSOLUTE_HEADER.
13998         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13999
14000 2010-05-16  James Youngman  <jay@gnu.org>
14001
14002         doc: update users.txt
14003         * users.txt: Add CSSC.
14004
14005 2010-05-16  Jim Meyering  <meyering@redhat.com>
14006
14007         init.sh: fix an error in the previous change; add more comments
14008         * tests/init.sh: Compare exit code in loop against 9, not 2.
14009         Patch by Bruno Haible.
14010         Make the two tests more similar by adding an empty "then" clause.
14011         Add comments.
14012
14013         init.sh: avoid unnecessary shell re-exec
14014         * tests/init.sh: Improve the re-exec-required check to first test the
14015         current shell.  If it passes the test, do not search for a shell that
14016         does pass, and do not re-exec.  This test is particularly contorted to
14017         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14018         of $(...) evokes a syntax error and causes immediate shell exit with
14019         status 2.  Bruno Haible reported that the re-exec made it impossible
14020         to single-step through any init.sh-using script.
14021
14022 2010-05-16  Bruno Haible  <bruno@clisp.org>
14023
14024         Fix collision between gnulib's and libintl's printf replacements.
14025         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14026         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14027         (printf): When using GNU C, map the __printf__ function to rpl_printf
14028         via __asm__. When not using GNU C, define rpl_printf instead of
14029         __printf__.
14030         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14031         commit.
14032         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14033         commit.
14034         * m4/asm-underscore.m4: New file.
14035         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14036         * modules/stdio (Files): Add m4/asm-underscore.m4.
14037         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14038         Reported by Ben Pfaff.
14039
14040 2010-05-16  Bruno Haible  <bruno@clisp.org>
14041
14042         verify: Avoid skipping the test on openSUSE 11.0.
14043         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14044
14045 2010-05-13  Bruno Haible  <bruno@clisp.org>
14046
14047         Avoid useless warnings from G++.
14048         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14049         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14050         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14051
14052 2010-05-11  Jim Meyering  <meyering@redhat.com>
14053
14054         maint.mk: tweak preceding change
14055         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14056         regexps tighter by anchoring at EOL, and make the new group "shy"
14057         for slightly decreased overhead.
14058
14059 2010-05-11  Eric Blake  <eblake@redhat.com>
14060
14061         maint.mk: gnulib doesn't guarantee NSIG
14062         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14063
14064 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14065
14066         test-pwrite.c: Remove unused variable declaration.
14067         * tests/test-pwrite.c (main): Remove read_buf declaration.
14068
14069         Remove useless test-pwrite.sh file.
14070         * tests/test-pwrite.sh: Delete file.
14071         * modules/pwrite-tests: Remove references.
14072         Reported by Bruno Haible.
14073
14074 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14075
14076         init.sh: fix a typo
14077         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14078
14079 2010-05-10  Jim Meyering  <meyering@redhat.com>
14080
14081         maint.mk: avoid using a temporary file in the always-defined-macros check
14082         * top/maint.mk (.re-defmac): Remove rule.
14083         (gl_trap_): Remove definition.
14084         (sc_prohibit_always-defined_macros): Rewrite not to create and
14085         depend on a temporary file.  Instead, depend on GNU grep's ability
14086         to read a list of regular expressions from stdin when given "-f -".
14087
14088 2010-05-09  Bruno Haible  <bruno@clisp.org>
14089
14090         Update to GNU gettext 0.18, part 1.
14091         * m4/gettext.m4: Update to GNU gettext 0.18.
14092         * m4/intl.m4: Likewise.
14093         * m4/po.m4: Likewise.
14094         * modules/gettext (Files): Add m4/fcntl-o.m4.
14095         (configure.ac): Require gettext infrastructure from version 0.18.
14096
14097 2010-05-09  Jim Meyering  <meyering@redhat.com>
14098
14099         init.sh: enable MALLOC_PERTURB_
14100         * tests/init.sh: Enable glibc's malloc-perturbing option.
14101
14102         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14103         With my recent change in init.sh from the two-line form:
14104             -#   : ${srcdir=.}
14105             -#   . "$srcdir/init.sh"; path_prepend_ .
14106             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14107         I noticed that using the one-line form would cause this test
14108         to fail with a false-positive, or to stop working altogether,
14109         depending on whether help-version changed or all the tests did.
14110         * top/maint.mk (_hv_regex): Remove this definition.
14111         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14112         (_hv_regex_strong): Use a stronger regex to check for conformance.
14113         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14114         Give a separate diagnostic for lack of conforming use.
14115
14116         maint.mk: prohibit definition of symbols defined by gnulib
14117         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14118         definition of symbols defined by gnulib.
14119
14120 2010-05-09  Bruno Haible  <bruno@clisp.org>
14121
14122         acl: Avoid test failure on Cygwin-hosted mingw.
14123         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14124
14125 2010-05-09  Bruno Haible  <bruno@clisp.org>
14126
14127         error: Use system's fcntl function.
14128         * lib/error.c (fcntl): Undefine.
14129
14130 2010-05-09  Jim Meyering  <meyering@redhat.com>
14131
14132         verify: adjust formatting to be more consistent
14133         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14134         argument-list '('s, and after one comma.
14135
14136 2010-05-09  Bruno Haible  <bruno@clisp.org>
14137
14138         error: More reliable output on mingw.
14139         * lib/error.c: Include <windows.h>.
14140         (is_open): New function.
14141         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14142         defined.
14143
14144 2010-05-09  Bruno Haible  <bruno@clisp.org>
14145
14146         vasnprintf: Fix syntax errors in libintl build on mingw.
14147         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14148         pad_ourselves and prec_ourselves after use.
14149
14150 2010-05-08  Bruno Haible  <bruno@clisp.org>
14151
14152         * lib/config.charset: Update comments for Cygwin 1.7.
14153         * lib/localcharset.c: Likewise.
14154
14155 2010-05-07  Jim Meyering  <meyering@redhat.com>
14156
14157         init.sh: improve comments
14158         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14159         . "${srcdir=.}/init.sh"; path_prepend_ .
14160         Add a note about path_prepend_ and the alternative of using
14161         TESTS_ENVIRONMENT.
14162
14163 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14164
14165         exclude: Unescape hashed patterns in wildcard mode.
14166         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14167         to the hash list.
14168         * tests/test-exclude8.sh: New test case.
14169         * modules/exclude-tests: Add new test.
14170
14171 2010-05-05  Eric Blake  <eblake@redhat.com>
14172
14173         verify: automate tests
14174         * modules/verify-tests: New module.
14175         * tests/test-verify.sh: New file.
14176         * tests/test-verify.c: Guard each negative test with a unique id.
14177         Also avoid warning about unused left hand of comma expressions.
14178
14179 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14180
14181         Further improvements to verify.h, suggested by Eric Blake.
14182         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14183         the GL_* versions, to avoid collision with OpenGL.
14184         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14185         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14186         than testing merely whether it's defined.
14187
14188         Modify verify.h to pacify gcc -Wredundant_decls.
14189         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14190         These use the prefix "GL_" since they're likely to be useful elsewhere.
14191         We may need to break them out into a different .h file.
14192         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14193         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14194         of verify_function__.
14195
14196 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14197
14198         Tests for module pwrite.
14199         * modules/pwrite-tests: New file.
14200         * tests/test-pwrite.sh: New file.
14201         * tests/test-pwrite.c: New file.
14202
14203         New module pwrite.
14204         * lib/unistd.in.h (pwrite): New declaration.
14205         * lib/pwrite.c: New file, from glibc with modifications.
14206         * m4/pwrite.m4: New file.
14207         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14208         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14209         REPLACE_PWRITE.
14210         * modules/pwrite: New file.
14211         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14212         REPLACE_PWRITE.
14213         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14214         * doc/posix-functions/pwrite.texi: Mention the new module.
14215
14216 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14217
14218         pread: Update documentation.
14219         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14220
14221 2010-05-04  Eric Blake  <eblake@redhat.com>
14222
14223         docs: update cygwin progress
14224         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14225         this bug.
14226         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14227         Added in cygwin 1.7.2.
14228         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14229         Likewise.
14230         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14231         Likewise.
14232         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14233         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14234         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14235         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14236         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14237         Mention nproc module.
14238         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14239         bug in cygwin 1.7.5 addition.
14240         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14241         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14242         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14243         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14244         1.7.5.
14245         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14246         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14247         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14248         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14249         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14250         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14251         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14252         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14253         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14254         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14255         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14256         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14257         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14258         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14259         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14260         Likewise.
14261         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14262         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14263         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14264         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14265         Likewise.
14266         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14267         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14268         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14269         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14270         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14271         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14272         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14273         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14274         Likewise.
14275         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14276         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14277         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14278         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14279         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14280         Likewise.
14281         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14282         Likewise.
14283         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14284         Likewise.
14285         * doc/glibc-functions/xdrrec_endofrecord.texi
14286         (xdrrec_endofrecord): Likewise.
14287         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14288         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14289         Likewise.
14290         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14291         Likewise.
14292
14293 2010-05-04  Jim Meyering  <meyering@redhat.com>
14294
14295         gendocs.sh: make its "-s FILE" option more useful
14296         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14297         $PACKAGE to reflect the probably-different basename of "FILE".
14298
14299 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14300
14301         bootstrap: don't ignore download_po_files failure
14302         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14303         failure.
14304
14305 2010-05-03  Jim Meyering  <meyering@redhat.com>
14306
14307         maint.mk: allow to pass options to gendocs.sh
14308         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14309         (gendocs_options_): New overridable variable.
14310
14311         gnu-web-doc-update: don't ignore configure or build failure
14312         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14313
14314         announce-gen: backslash-escape '@'s in --help output
14315         * build-aux/announce-gen: Fix syntax errors.
14316
14317         maint.mk, announce-gen: allow project-specific announcement mail headers
14318         * top/maint.mk (translation_project_): Define default.
14319         (announcement_Cc_, announcement_mail_headers_): Likewise.
14320         (announcement): Invoke announce-gen with new --mail-headers option.
14321         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14322
14323         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14324         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14325         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14326         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14327         line in the "err2" output file when running "make check" in verbose
14328         mode (i.e., with set -x enabled).
14329
14330 2010-05-03  Bruno Haible  <bruno@clisp.org>
14331
14332         wctob: Fix for weird platforms.
14333         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14334         argument value.
14335
14336 2010-05-03  Jim Meyering  <meyering@redhat.com>
14337
14338         maint.mk: prohibit unwarranted use of <strings.h>
14339         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14340         strings.h in a file that does not also use strcasecmp, strncasecmp,
14341         ffs or ffsll.
14342
14343         maint.mk: remove obsolete comments
14344         * top/maint.mk: Remove stale, commented-out rules.
14345
14346 2010-05-02  Bruno Haible  <bruno@clisp.org>
14347
14348         wcwidth: Declare also when it's aliased.
14349         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14350         macro.
14351
14352 2010-05-02  Bruno Haible  <bruno@clisp.org>
14353
14354         Fix regression from 2010-04-25.
14355         * gnulib-tool (func_modules_transitive_closure): Check the status of
14356         all modules, not only of the tests that are of the form foo-tests where
14357         foo is a module.
14358
14359 2010-05-02  Bruno Haible  <bruno@clisp.org>
14360
14361         wctob: Work around nasty Cygwin 1.7.2 bug.
14362         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14363         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14364
14365 2010-05-01  Bruno Haible  <bruno@clisp.org>
14366
14367         fpurge: Sharper test.
14368         * tests/test-fpurge.c (main): Add one more ftell check.
14369         * modules/fpurge-tests (Depends-on): Add ftell.
14370         Suggested by Eric Blake.
14371
14372 2010-05-01  Bruno Haible  <bruno@clisp.org>
14373
14374         ftello: Another test.
14375         * tests/test-ftello3.c: New file.
14376         * modules/ftello-tests (Files): Add it.
14377         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14378         MOSTLYCLEANFILES.
14379
14380         ftell: Another test.
14381         * tests/test-ftell3.c: New file.
14382         * modules/ftell-tests (Files): Add it.
14383         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14384         MOSTLYCLEANFILES.
14385
14386 2010-05-01  Bruno Haible  <bruno@clisp.org>
14387
14388         ftell, ftello: Work around Solaris bug.
14389         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14390         * lib/ftello.c: Include stdio-impl.h.
14391         (ftello): On Solaris, when _IOWRT is set, compute the result without
14392         looking at _IOREAD.
14393         * modules/ftello (Files): Add lib/stdio-impl.h.
14394         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14395         * doc/posix-functions/ftello.texi: Likewise.
14396         Reported by Eric Blake.
14397
14398 2010-05-01  Bruno Haible  <bruno@clisp.org>
14399
14400         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14401         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14402         the _IOWRT flag is also set.
14403
14404 2010-05-01  Bruno Haible  <bruno@clisp.org>
14405
14406         Fix doc about a HP-UX stdio bug.
14407         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14408         * doc/posix-functions/ftello.texi: Likewise.
14409
14410 2010-05-01  Bruno Haible  <bruno@clisp.org>
14411
14412         lseek test: Fix failure on Solaris.
14413         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14414         output.
14415
14416 2010-04-30  Jim Meyering  <meyering@redhat.com>
14417
14418         bootstrap: don't ignore failure to generate po*/Makevars
14419         * build-aux/bootstrap (with_gettext): Don't ignore failure
14420         to create po/Makevars or runtime-po/Makevars.
14421
14422 2010-04-29  Eric Blake  <eblake@redhat.com>
14423
14424         headers: relax license to LGPLv2+
14425         * modules/fcntl-h (License): Relax license.
14426         * modules/getopt-posix (License): Likewise.
14427         * modules/locale (License): Likewise.
14428         * modules/math (License): Likewise.
14429         * modules/pty (License): Likewise.
14430         * modules/sched (License): Likewise.
14431         * modules/search (License): Likewise.
14432         * modules/spawn (License): Likewise.
14433         * modules/stdarg (License): Likewise.
14434         * modules/sysexits (License): Likewise.
14435
14436 2010-04-29  Jim Meyering  <meyering@redhat.com>
14437
14438         inttypes: relax license to LGPLv2+
14439         * modules/inttypes (License): Relax license.
14440
14441 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14442
14443         * top/maint.mk (indent): Run twice to produce idempotent results.
14444
14445 2010-04-28  Bruno Haible  <bruno@clisp.org>
14446
14447         getdate: Generate getdate.c in the source directory.
14448         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14449         MOSTLYCLEANFILES.
14450         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14451
14452 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14453
14454         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14455         is not declared as a const *; avoid warnings in that case.
14456
14457 2010-04-28  Eric Blake  <eblake@redhat.com>
14458
14459         canonicalize-lgpl: avoid compiler warning
14460         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14461         declaration' / 'extraneous semicolon' warning with some compilers.
14462         Reported by Andreas Gruenbacher.
14463
14464 2010-04-28  Jim Meyering  <meyering@redhat.com>
14465
14466         init.sh: ensure a more reliable exit status when exiting via trap
14467         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14468         Inspired by patches from Dmitry V. Levin.
14469         Also trap on signal 3 (SIGQUIT).
14470
14471 2010-04-27  Bruno Haible  <bruno@clisp.org>
14472
14473         Update doc about utimes().
14474         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14475         'utimens' module.
14476         Reported by Andreas Gruenbacher <agruen@suse.de>.
14477
14478 2010-04-27  Eric Blake  <eblake@redhat.com>
14479
14480         full-read, full-write: relax license
14481         * modules/full-read (License): Drop to LGPLv2+.
14482         * modules/full-write (License): Likewise.
14483         * modules/safe-read (License): Likewise.
14484         * modules/safe-write (License): Likewise.
14485
14486         pthread: mention library for linking
14487         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14488
14489 2010-04-27  Jim Meyering  <meyering@redhat.com>
14490
14491         maint.mk: fix a bug introduced in last change
14492         * top/maint.mk (gl_assured_headers_): Now that all names are on
14493         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14494         is not anchored to end of word, it should be adequate.
14495
14496         maint.mk: avoid side-effect in latest syntax-check
14497         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14498         to run commands via $(shell...), and hence to incur cost only when
14499         the new rule is actually run.
14500
14501         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14502         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14503         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14504         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14505         (gl_assured_headers_, az_, AZ_): Define.
14506         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14507
14508 2010-04-26  Jim Meyering  <jim@meyering.net>
14509             Bruno Haible  <bruno@clisp.org>
14510
14511         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14512         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14513         Prompted by an exchange with Gilles Espinasse.
14514
14515 2010-04-26  Jim Meyering  <meyering@redhat.com>
14516
14517         git-version-gen: aesthetic tweak
14518         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14519         so that the command remains on a single line.
14520
14521 2010-04-26  Eric Blake  <eblake@redhat.com>
14522
14523         git-version-gen: allow use on EBCDIC hosts
14524         * build-aux/git-version-gen (dirty): Use literal rather than tying
14525         ourselves to ascii.
14526         Reported by Steve Goetze.
14527
14528 2010-04-25  Bruno Haible  <bruno@clisp.org>
14529
14530         netdb: Add support for GNULIB_POSIXCHECK.
14531         * lib/netdb.in.h: Include warn-on-use.h.
14532         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14533         functions are used when GNULIB_POSIXCHECK is defined and the
14534         getaddrinfo module is not in use.
14535         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14536         freeaddrinfo, gai_strerror, getnameinfo are declared.
14537         * modules/netdb (Depends-on): Add warn-on-use.
14538         (Makefile.am): Include warn-on-use.h in netdb.h.
14539
14540 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14541
14542         build: avoid "make check" failure without .git/ directory
14543         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14544         there is no .git/ directory.
14545
14546 2010-04-25  Bruno Haible  <bruno@clisp.org>
14547
14548         ptsname: Fix misuse of ttyname_r.
14549         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14550         of errno.
14551
14552 2010-04-25  Bruno Haible  <bruno@clisp.org>
14553
14554         ttyname_r: Make it work on Solaris 10.
14555         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14556         if the system function has the POSIX declaration. Test whether the
14557         function fails if the buffer is less than 128 bytes large.
14558         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14559         system's ttyname_r function. Provide a reasonably large buffer.
14560         * modules/ttyname_r (Depends-on): Add extensions.
14561         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14562
14563 2010-04-25  Bruno Haible  <bruno@clisp.org>
14564
14565         Use the 'extensions' module for some more functions on Solaris.
14566         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14567         module.
14568         * doc/posix-functions/ctime_r.texi: Likewise.
14569         * doc/posix-functions/getgrgid_r.texi: Likewise.
14570         * doc/posix-functions/getgrnam_r.texi: Likewise.
14571         * doc/posix-functions/getpwnam_r.texi: Likewise.
14572         * doc/posix-functions/getpwuid_r.texi: Likewise.
14573         * doc/posix-functions/readdir_r.texi: Likewise.
14574         * doc/posix-functions/sigwait.texi: Likewise.
14575         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14576         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14577
14578 2010-04-25  Bruno Haible  <bruno@clisp.org>
14579
14580         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14581         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14582         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14583         * lib/ttyname_r.c: Include <limits.h>.
14584         (ttyname_r): Define using the system's ttyname_r function, if it exists
14585         and not on Solaris.
14586         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14587         set.
14588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14589         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14590         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14591         Reported by Simon Josefsson.
14592
14593 2010-04-25  Bruno Haible  <bruno@clisp.org>
14594
14595         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14596         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14597         * doc/posix-functions/ctime_r.texi: Likewise.
14598         * doc/posix-functions/getgrgid_r.texi: Likewise.
14599         * doc/posix-functions/getgrnam_r.texi: Likewise.
14600         * doc/posix-functions/getlogin_r.texi: Likewise.
14601         * doc/posix-functions/getpwnam_r.texi: Likewise.
14602         * doc/posix-functions/getpwuid_r.texi: Likewise.
14603         * doc/posix-functions/readdir_r.texi: Likewise.
14604         * doc/posix-functions/sigwait.texi: Likewise.
14605         * doc/posix-functions/ttyname_r.texi: Likewise.
14606         Reported by Simon Josefsson.
14607
14608 2010-04-25  Bruno Haible  <bruno@clisp.org>
14609
14610         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14611         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14612         also to --create-testdir.
14613         (func_acceptable): Don't consider the status of *-tests modules here.
14614         (func_modules_transitive_closure): Consider it here, before including a
14615         test module.
14616         (func_import, func_create_testdir): Set inc_all_direct_tests,
14617         inc_all_indirect_tests.
14618         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14619         --create-testdir and --create-megatestdir.
14620
14621 2010-04-25  Bruno Haible  <bruno@clisp.org>
14622
14623         gnulib-tool: Add --without-*-tests options.
14624         * gnulib-tool (func_usage): Document the --without-*-tests options.
14625         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14626         excl_unportable_tests): New variables.
14627         Fail if they are specified with --import or --update.
14628         (func_acceptable): Respect the excl_*_tests variables.
14629         (func_import): Set the excl_*_tests variables to empty.
14630
14631 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14632             Bruno Haible  <bruno@clisp.org>
14633
14634         Work around a MacOS X 10.4 bug with openpty.
14635         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14636         * tests/test-openpty.c (main): Close the master side explicitly.
14637
14638 2010-04-25  Bruno Haible  <bruno@clisp.org>
14639
14640         strnlen: Fix a C++ test error on MacOS X and Solaris.
14641         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14642         the function is not declared.
14643         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14644         Simon Josefsson.
14645
14646 2010-04-24  Bruno Haible  <bruno@clisp.org>
14647
14648         Avoid a gcc warning.
14649         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14650         of correct type for %08lx directive.
14651         Reported by Eric Blake.
14652
14653 2010-04-24  Bruno Haible  <bruno@clisp.org>
14654
14655         vasnprintf: Correct errno value in case of out-of-memory.
14656         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14657         or sprintf. Use the errno value from SNPRINTF or sprintf.
14658         Reported by Ian Beckwith <ianb@erislabs.net>.
14659
14660 2010-04-24  Bruno Haible  <bruno@clisp.org>
14661
14662         ansi-c++-opt: Find correct compiler when cross-compiling.
14663         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14664         AC_CHECK_PROGS.
14665         Reported by Simon Josefsson.
14666
14667 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14668
14669         vc-list-files: Add support for subversion
14670         * build-aux/vc-list-files: Use "svn list" to generate the list of
14671         files controlled by subversion.
14672
14673 2010-04-23  Jim Meyering  <meyering@redhat.com>
14674
14675         vc-list-files tests: convert to use init.sh
14676         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14677         path_prepend_.
14678         Use Exit, not exit.
14679         Use skip_ rather than open coding it.
14680         Remove trap set-up and compare definitions.
14681         * tests/test-vc-list-files-git.sh: Likewise.
14682         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14683
14684 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14685
14686         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14687         backup files.
14688
14689 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14690
14691         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14692
14693 2010-04-20  Eric Blake  <eblake@redhat.com>
14694
14695         tests: be robust to ignored SIGPIPE
14696         * tests/test-select-in.sh: Consume all output.
14697         * tests/test-lseek.sh: Check correct exit status, while avoiding
14698         EPIPE.
14699
14700 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14701             Bruno Haible  <bruno@clisp.org>
14702
14703         visibility: Don't use -fvisibility if it leads to a warning.
14704         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14705         yes, don't pretend that visibility works if it leads to a warning.
14706         Reported by Mike Gran <spk121@yahoo.com>.
14707
14708 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14709
14710         * build-aux/bootstrap: Use "git -h" for testing for supported options
14711         instead of "git --help".  The short-form option only shows a summary,
14712         and doesn't layout the full man page.  Grep for the full option name
14713         in the summary, too.
14714
14715 2010-04-19  Bruno Haible  <bruno@clisp.org>
14716
14717         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14718         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14719         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14720         mention of RELOCATABLE_STRIP.
14721         Reported by Sylvain Beucler <beuc@beuc.net>.
14722
14723 2010-04-19  Bruno Haible  <bruno@clisp.org>
14724
14725         * lib/diffseq.h: Fix typo in comment.
14726         Reported by Eric Blake.
14727
14728 2010-04-19  Bruno Haible  <bruno@clisp.org>
14729
14730         ioctl: Move autoconf macro to a .m4 file.
14731         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14732         * modules/ioctl (Files): Add it.
14733         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14734         Reported by Ian Beckwith <ianb@erislabs.net>.
14735
14736 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14737             Bruno Haible  <bruno@clisp.org>
14738
14739         diffseq: Accommodate use-case with abstract arrays.
14740         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14741         is not defined.
14742         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14743         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14744
14745 2010-04-18  Bruno Haible  <bruno@clisp.org>
14746
14747         * doc/posix-headers/stdbool.texi: More precise wording.
14748
14749 2010-04-17  Jim Meyering  <meyering@redhat.com>
14750
14751         maint.mk: use gnu-style indentation in an embedded perl script
14752         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14753         Rename variable: s/two/last_two_bytes/
14754
14755 2010-04-16  Eric Blake  <eblake@redhat.com>
14756
14757         test-stdbool: skip test that fails with Solaris CC
14758         * tests/test-stdbool.c (f): Skip test that causes compilation
14759         error under buggy C++ compiler.
14760         * lib/stdbool.in.h: Document the limitation.
14761         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14762
14763         setenv: allow compilation with C++
14764         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14765         register keyword.
14766
14767         stdint: allow test to pass with C++
14768         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14769
14770         getopt: allow compilation with C++
14771         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14772         struct.
14773         * lib/getopt.c (_getopt_internal_r): Use correct type.
14774         Reported by Dagobert Michelson, via Joel E. Denny.
14775
14776 2010-04-16  Bruno Haible  <bruno@clisp.org>
14777
14778         Override netdb.h always.
14779         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14780         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14781         Reported by Ludovic Courtès <ludo@gnu.org>.
14782
14783 2010-04-15  Bruno Haible  <bruno@clisp.org>
14784
14785         openpty: Fix mistake from 2010-03-21.
14786         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14787         Reported by Simon Josefsson.
14788
14789 2010-04-15  Eric Blake  <eblake@redhat.com>
14790
14791         test-forkpty: fix expected signature
14792         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14793         Reported by Simon Josefsson.
14794
14795 2010-04-15  Jim Meyering  <meyering@redhat.com>
14796
14797         maint.mk: texinfo_suffix_re_: correct the default regexp
14798         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14799
14800         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14801         make it configurable via texinfo_suffix_re_.
14802
14803 2010-04-14  Eric Blake  <eblake@redhat.com>
14804
14805         strtok_r: relax license to LGPLv2+
14806         * modules/strtok_r (License): Relax license.
14807         Reported by Matthias Bolte.
14808
14809 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14810
14811         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14812         version 1.4.4 by default instead of requiring the libgcrypt
14813         version used during build.  This makes it possible to use the
14814         application with older but still binary compatible libgcrypt
14815         versions.
14816
14817 2010-04-13  Eric Blake  <eblake@redhat.com>
14818
14819         getopt-gnu: match recent glibc fixes and posix ruling
14820         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14821         '+' handling, when requesting extensions.
14822         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14823         'W;' handling.
14824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14825         * doc/posix-functions/getopt.texi (getopt): Document this.
14826         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14827         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14828         Likewise.
14829
14830         getopt: merge bug fixes from glibc
14831         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14832         diagnostics.  Honor '+:' correctly.  Reject ';'.
14833
14834         getopt-posix: detect MacOS bug
14835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14836         optind when missing a required argument.
14837         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14838         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14839         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14840         Likewise.
14841
14842         getopt-posix: avoid spurious failure on Solaris
14843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14844         an indicator that setting optind=1 is sufficient for reset.
14845
14846         getopt-posix: avoid spurious failure on FreeBSD
14847         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14848         in POSIX mode, since the m4 test uses it.
14849
14850         gnulib-tool: silence warning on BSD sh
14851         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14852
14853 2010-04-13  Jim Meyering  <meyering@redhat.com>
14854
14855         doc: users.txt: GNU patch now uses gnulib
14856         * users.txt: Add patch.
14857
14858 2010-04-12  Jim Meyering  <meyering@redhat.com>
14859
14860         maint.mk: generate more concise timing data for syntax-check rules
14861         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14862         " done" from each line that reports a syntax-check test duration.
14863
14864 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14865
14866         git-version-gen: use "git update-index..." rather than "git status"
14867         * build-aux/git-version-gen: Use git update-index --refresh, not
14868         "git status".  With some versions of git, "git status" would fail
14869         to update the index and result in an unwarranted "-dirty" suffix.
14870
14871 2010-04-11  Jim Meyering  <meyering@redhat.com>
14872
14873         openat: correct formatting (no semantic change)
14874         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14875         Suggested by Bruno Haible.
14876
14877 2010-04-11  Bruno Haible  <bruno@clisp.org>
14878
14879         Stricter declaration checking in testdirs.
14880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14881         If for_tests is true, augment AM_CPPFLAGS to define
14882         GNULIB_STRICT_CHECKING.
14883         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14884         GNULIB_STRICT_CHECKING is defined, verify that the function is
14885         declared.
14886
14887 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14888             Bruno Haible  <bruno@clisp.org>
14889
14890         libunistring: Improve configure output.
14891         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14892         Don't say "consider installing GNU libunistring" when checking again
14893         with libiconv.
14894
14895 2010-04-11  Bruno Haible  <bruno@clisp.org>
14896
14897         libunistring: Correct value of $LTLIBUNISTRING.
14898         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14899         correct the value of $LTLIBUNISTRING.
14900
14901 2010-04-11  Bruno Haible  <bruno@clisp.org>
14902
14903         havelib: Add static libraries to LIBS in the right order.
14904         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14905         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14906
14907 2010-04-11  Bruno Haible  <bruno@clisp.org>
14908
14909         libunistring: Detect libunistring also when it depends on libiconv.
14910         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14911         the second AC_LIB_HAVE_LINKFLAGS invocation.
14912
14913 2010-04-11  James Youngman  <jay@gnu.org>
14914
14915         close-stream: declare local scalars to be "const"
14916         * lib/close-stream.c (close_stream): Make boolean variables const
14917         to document the fact that we set but do not change them.
14918
14919 2010-04-11  Bruno Haible  <bruno@clisp.org>
14920
14921         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14922
14923 2010-04-11  Jim Meyering  <meyering@redhat.com>
14924
14925         maint.mk: don't include dist-check.mk
14926         * top/maint.mk: Remove bogus include directive.
14927
14928         maint.mk: improve empty-line-at-EOF check
14929         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14930         solution, rather than tail+Perl-based one.  The latter would read
14931         a few kilobytes from the end of each file, and did not handle empty
14932         files properly.
14933
14934         maint.mk: print the elapsed time for each syntax-check rule
14935         * top/maint.mk (sc_m_rules_): Save start time in a file.
14936         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14937         (local-check): Interpose the .z rules
14938
14939 2010-04-11  Jim Meyering  <meyering@redhat.com>
14940
14941         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14942         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14943         empty file with one that ends in an empty line.
14944
14945 2010-04-10  Bruno Haible  <bruno@clisp.org>
14946
14947         mkdir: Make it work on mingw64.
14948         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14949         * lib/mkdir.c: Update comment.
14950         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14951
14952 2010-04-10  Bruno Haible  <bruno@clisp.org>
14953
14954         Don't override improved macro from newer autoconf.
14955         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14956         autoconf >= 2.62.
14957         Reported by Joel E. Denny <jdenny@clemson.edu>.
14958
14959 2010-04-10  Jim Meyering  <meyering@redhat.com>
14960
14961         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14962         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14963
14964         maint.mk: correct a diagnostic
14965         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14966         in diagnostic; now use $prohibit.
14967
14968 2010-04-10  Bruno Haible  <address@hidden>
14969
14970         fchownat: Fix a C++ test error on Solaris 8.
14971         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14972         the function does not exist.
14973
14974 2010-04-10  Bruno Haible  <bruno@clisp.org>
14975
14976         vasnprintf: Add more tests.
14977         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14978         (test_function): Test converting an invalid wide string.
14979
14980         vasnprintf: Correct handling of unconvertible wide string arguments.
14981         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14982         VASNPRINTF.
14983         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14984         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14985         smaller than the expected maximum need for the directive. Set errno to
14986         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14987         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14988         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14989         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14990         * modules/vasnprintf (Files): Add m4/printf.m4.
14991         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14992
14993 2010-04-10  Bruno Haible  <bruno@clisp.org>
14994
14995         vasnprintf: Fix crash in %ls directive.
14996         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14997         string is passed as argument to %ls, with no precision and no width.
14998         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14999
15000 2010-04-10  Bruno Haible  <bruno@clisp.org>
15001
15002         vasnprintf: Fix multiple test failures on mingw.
15003         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15004         _snprintf, or snwprintf, not _snwprintf.
15005
15006 2010-04-10  Bruno Haible  <bruno@clisp.org>
15007
15008         write: Fix a C++ test error on mingw.
15009         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15010
15011 2010-04-10  Bruno Haible  <bruno@clisp.org>
15012
15013         vasnprintf test: Reduce code duplication.
15014         * tests/test-vasnprintf.c (test_function): New function, extracted from
15015         test_vasnprintf.
15016         (test_vasnprintf, test_asnprintf): Invoke it.
15017
15018 2010-04-10  Bruno Haible  <bruno@clisp.org>
15019
15020         strnlen: Fix warning in C++ mode on MacOS X.
15021         * lib/string.in.h (strnlen): Use the modern idiom.
15022         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15023         defining strnlen as a macro already in <config.h>.
15024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15025         REPLACE_STRNLEN.
15026         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15027         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15028
15029 2010-04-08  James Youngman  <jay@gnu.org>
15030
15031         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15032         the example.
15033
15034 2010-04-09  Jim Meyering  <meyering@redhat.com>
15035
15036         maint.mk: print better diagnostic when there is no $(_hv_file)
15037         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15038         announce that when $(_hv_file) (aka help-version) does not exist.
15039
15040         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15041         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15042         not try to interpret its random input bytes.  Jarno Rajahalme reported
15043         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15044         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15045         (mktempd_): Likewise, just in case.
15046
15047         ftruncate: add two years to projected module removal date: 2012
15048         * m4/ftruncate.m4: Adjust comments.
15049
15050         ftruncate: mark module as obsolete; even MinGW provides it, now
15051         * modules/ftruncate (Status): Obsolete.
15052         (Notice): Say that.
15053         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15054         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15055
15056 2010-04-08  Bruno Haible  <bruno@clisp.org>
15057
15058         Fix side effects from tests-related modules.
15059         * modules/dprintf-posix (Comment): New section.
15060         * modules/fprintf-posix (Comment): Likewise.
15061         * modules/obstack-printf-posix (Comment): Likewise.
15062         * modules/printf-posix (Comment): Likewise.
15063         * modules/snprintf-posix (Comment): Likewise.
15064         * modules/sprintf-posix (Comment): Likewise.
15065         * modules/vasnprintf-posix (Comment): Likewise.
15066         * modules/vasprintf-posix (Comment): Likewise.
15067         * modules/vdprintf-posix (Comment): Likewise.
15068         * modules/vfprintf-posix (Comment): Likewise.
15069         * modules/vprintf-posix (Comment): Likewise.
15070         * modules/vsnprintf-posix (Comment): Likewise.
15071         * modules/vsprintf-posix (Comment): Likewise.
15072         * modules/xprintf-posix (Comment): Likewise.
15073         * modules/xvasprintf-posix (Comment): Likewise.
15074         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15075         * modules/floorf-tests (Depends-on): Likewise.
15076         * modules/round-tests (Depends-on): Likewise.
15077         * modules/roundf-tests (Depends-on): Likewise.
15078         * modules/trunc-tests (Depends-on): Likewise.
15079         * modules/truncf-tests (Depends-on): Likewise.
15080         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15081         'fprintf-posix' module is not present.
15082         * tests/test-floorf2.c (check): Likewise.
15083         * tests/test-trunc2.c (check): Likewise.
15084         * tests/test-truncf2.c (check): Likewise.
15085         * tests/test-round2.c (equal): Likewise.
15086         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15087
15088 2010-04-07  Karl Berry  <karl@gnu.org>
15089
15090         * config/srclist.txt,
15091         * config/srclistvars.sh,
15092         * config/srclist-update: doc fixes.
15093
15094 2010-04-07  Jim Meyering  <meyering@redhat.com>
15095
15096         maint.mk: add a PATH crosschecking syntax-check rule
15097         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15098         Useful if you use a test like the one in help-version (coreutils,
15099         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15100         printed by prog --version.
15101
15102 2010-04-06  Bruno Haible  <bruno@clisp.org>
15103
15104         Fix link error on mingw.
15105         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15106         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15107
15108 2010-04-06  Bruno Haible  <bruno@clisp.org>
15109
15110         Assume rmdir exists.
15111         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15112
15113 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15114
15115         doc: update users.txt
15116         * users.txt: Add gcal.
15117
15118 2010-04-06  Jim Meyering  <meyering@redhat.com>
15119
15120         init.sh: simply unset TMPDIR rather than risking env -i
15121         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15122         although it probably works fine on all Unix-based systems, some
15123         systems (Cygwin?) cannot tolerate a totally cleared environment.
15124         Suggestion from Eric Blake.
15125
15126 2010-04-06  Jim Meyering  <meyering@redhat.com>
15127
15128         init.sh: portability fix: use env's POSIX-specified -i option not -u
15129         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15130         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15131
15132 2010-04-05  Bruno Haible  <bruno@clisp.org>
15133
15134         btowc: Work around Cygwin 1.7.2 bug.
15135         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15136         does not map NUL to 0.
15137         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15138
15139 2010-04-05  Bruno Haible  <bruno@clisp.org>
15140
15141         Make the multithread modules work on Cygwin 1.7.2.
15142         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15143         imported symbols can be declared weak, so that it returns "no" on
15144         Cygwin 1.7.2.
15145
15146 2010-04-05  Bruno Haible  <bruno@clisp.org>
15147
15148         Use the module 'strncat'.
15149         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15150
15151         Tests for module 'strncat'.
15152         * modules/strncat-tests: New file.
15153         * tests/test-strncat.c: New file.
15154
15155         New module 'strncat'.
15156         * lib/string.in.h (strncat): New declaration.
15157         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15158         * m4/strncat.m4: New file, based on m4/memchr.m4.
15159         * modules/strncat: New file.
15160         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15161         is declared.
15162         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15163         REPLACE_STRNCAT.
15164         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15165         REPLACE_STRNCAT.
15166         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15167         module.
15168         * tests/test-string-c++.cc: Check signature of strncat.
15169
15170 2010-04-05  Jim Meyering  <meyering@redhat.com>
15171
15172         xstrtoumax-tests: convert to use init.sh
15173         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15174         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15175         Use Exit, not exit.
15176         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15177
15178         xstrtoimax-tests: convert to use init.sh
15179         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15180         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15181         Use Exit, not exit.
15182         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15183
15184 2010-04-05  Bruno Haible  <bruno@clisp.org>
15185
15186         sys_socket: Avoid #define replacements in C++ mode.
15187         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15188         warning to the function if possible, rather than #defining the symbol
15189         to a dysfunctional alias.
15190
15191 2010-04-05  Bruno Haible  <bruno@clisp.org>
15192
15193         fseeko: Fix C++ test error on mingw.
15194         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15195         gl_FUNC_FSEEKO.
15196         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15197         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15198         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15199         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15200
15201 2010-04-05  Bruno Haible  <bruno@clisp.org>
15202
15203         duplocale: Improve test output.
15204         * tests/test-duplocale.c (main): Print reason for skipped test.
15205
15206 2010-04-05  Bruno Haible  <bruno@clisp.org>
15207
15208         Assume rmdir exists.
15209         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15210         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15211
15212 2010-04-05  Bruno Haible  <bruno@clisp.org>
15213
15214         Fix link error on Solaris 8 with cc.
15215         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15216
15217 2010-04-05  Bruno Haible  <bruno@clisp.org>
15218
15219         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15220         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15221
15222 2010-04-05  Bruno Haible  <bruno@clisp.org>
15223
15224         vasprintf: Update documentation.
15225         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15226
15227 2010-04-05  Bruno Haible  <bruno@clisp.org>
15228
15229         ptsname: Improve test.
15230         * tests/test-ptsname.c (main): Also try the various master names of BSD
15231         systems.
15232
15233 2010-04-05  Bruno Haible  <bruno@clisp.org>
15234
15235         memchr: Avoid a possible C++ test error.
15236         * lib/string.in.h (memchr): Provide declaration if function is missing.
15237         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15238         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15240         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15241
15242 2010-04-05  Bruno Haible  <bruno@clisp.org>
15243
15244         strtok_r: Improve idiom.
15245         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15246         AC_LIBOBJ is used.
15247
15248 2010-04-05  Bruno Haible  <bruno@clisp.org>
15249
15250         strdup: Improve idiom.
15251         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15252         AC_LIBOBJ is used.
15253         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15254         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15255         when AC_LIBOBJ is used.
15256
15257 2010-04-05  Bruno Haible  <bruno@clisp.org>
15258
15259         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15260         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15261         don't set REPLACE_MBSINIT to 1.
15262         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15263         don't set REPLACE_MBRTOWC to 1.
15264         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15265         exist, don't set REPLACE_MBSRTOWCS to 1.
15266         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15267         exist, don't set REPLACE_MBSNRTOWCS to 1.
15268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15269         don't set REPLACE_WCRTOMB to 1.
15270         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15271         exist, don't set REPLACE_WCSRTOMBS to 1.
15272         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15273         exist, don't set REPLACE_WCSNRTOMBS to 1.
15274
15275 2010-04-05  Bruno Haible  <bruno@clisp.org>
15276
15277         ldexpl: Improve idiom.
15278         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15279         make sure to set HAVE_DECL_LDEXPL to 0.
15280
15281 2010-04-05  Jim Meyering  <meyering@redhat.com>
15282
15283         xstrtol-tests: convert to use init.sh
15284         * modules/xstrtol-tests (Files): Add tests/init.sh.
15285         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15286         Use Exit, not exit.
15287         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15288
15289         atexit-tests: convert to use init.sh
15290         * modules/atexit-tests (Files): Add tests/init.sh.
15291         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15292         Use Exit, not exit.
15293         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15294
15295         init.sh: fix typo
15296         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15297
15298         init.sh: make it easier for a test script to write to the tty, ...
15299         when using automake's parallel-tests mode.
15300         * tests/init.sh (stderr_fileno_): Define overridable variable.
15301         (warn_): New function, to use it.
15302         (fail_, skip_, framework_failure_): Use warn_.
15303
15304 2010-04-04  Bruno Haible  <bruno@clisp.org>
15305
15306         btowc: Avoid warning.
15307         * lib/btowc.c: Include <stdlib.h>.
15308         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15309
15310 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15311             Bruno Haible  <bruno@clisp.org>
15312
15313         wchar: Port to NetBSD 1.5.
15314         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15315         * lib/wctype.in.h (WEOF): Likewise.
15316
15317 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15318             Bruno Haible  <bruno@clisp.org>
15319
15320         Port extended stdio to NetBSD 1.5.
15321         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15322         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15323         older.
15324
15325 2010-04-04  Bruno Haible  <bruno@clisp.org>
15326
15327         string: Remove unused substitution.
15328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15329         HAVE_DECL_STRERROR.
15330         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15331
15332 2010-04-04  Bruno Haible  <bruno@clisp.org>
15333
15334         strtod: Avoid a possible C++ test error.
15335         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15336         set REPLACE_STRTOD.
15337
15338 2010-04-04  Bruno Haible  <bruno@clisp.org>
15339
15340         strerror: Update documentation.
15341         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15342
15343 2010-04-04  Bruno Haible  <bruno@clisp.org>
15344
15345         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15346         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15347         _GL_CXXALIAS_SYS_CAST.
15348
15349 2010-04-04  Bruno Haible  <bruno@clisp.org>
15350
15351         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15352         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15353         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15354         REPLACE_FREXPL to 1.
15355         * doc/posix-functions/frexpl.texi: Update documentation.
15356
15357 2010-04-04  Bruno Haible  <bruno@clisp.org>
15358
15359         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15360         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15361
15362 2010-04-04  Bruno Haible  <bruno@clisp.org>
15363
15364         Implement nanosleep for native Windows.
15365         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15366
15367 2010-04-04  Bruno Haible  <bruno@clisp.org>
15368
15369         math: Fix some C++ test errors on Solaris 8.
15370         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15371
15372 2010-04-04  Bruno Haible  <bruno@clisp.org>
15373
15374         math: Fix some C++ test errors on Cygwin.
15375         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15376         truncl): Provide declaration if the system does not have it.
15377         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15378         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15379         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15380         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15381         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15382         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15383         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15384         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15385         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15386         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15387         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15388         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15389         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15390         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15391         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15392         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15394         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15395         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15396         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15397         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15398         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15399
15400 2010-04-04  Bruno Haible  <bruno@clisp.org>
15401
15402         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15403         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15404         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15405         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15406         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15407         * m4/isinf.m4 (gl_ISINF): Likewise.
15408         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15409
15410 2010-04-04  Bruno Haible  <bruno@clisp.org>
15411
15412         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15413         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15414
15415 2010-04-04  Bruno Haible  <bruno@clisp.org>
15416
15417         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15418         * modules/tmpfile (configure.ac): Update.
15419
15420         tmpfile: Fix C++ test error on mingw.
15421         * lib/stdio.in.h (tmpfile): New declaration.
15422         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15423         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15424         * modules/tmpfile (Depends-on): Add stdio.
15425         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15426         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15427         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15428         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15429         REPLACE_TMPFILE.
15430         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15431
15432 2010-04-04  Bruno Haible  <bruno@clisp.org>
15433
15434         ioctl: Fix C++ test error on mingw.
15435         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15436         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15437         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15438
15439 2010-04-03  Bruno Haible  <bruno@clisp.org>
15440
15441         wcwidth: Fix C++ test error on mingw.
15442         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15444         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15445
15446 2010-04-03  Bruno Haible  <bruno@clisp.org>
15447
15448         nanosleep: Fix C++ test error on mingw.
15449         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15450         * lib/time.in.h (nanosleep): Use modern idiom.
15451         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15452         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15453         REPLACE_NANOSLEEP to 1.
15454         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15455         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15456
15457 2010-04-03  Bruno Haible  <bruno@clisp.org>
15458
15459         strptime: Fix C++ test error on mingw.
15460         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15461         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15462         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15463         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15464         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15465         not REPLACE_STRPTIME.
15466         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15467         REPLACE_STRPTIME.
15468
15469 2010-04-03  Bruno Haible  <bruno@clisp.org>
15470
15471         timegm: Fix C++ test error on mingw.
15472         * lib/time.in.h (timegm): Use modern idiom.
15473         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15474         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15475         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15476         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15477
15478 2010-04-03  Bruno Haible  <bruno@clisp.org>
15479
15480         timegm: Assume declaration if function exists.
15481         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15482         if it exists. Don't clobber ac_cv_func_timegm.
15483
15484 2010-04-03  Bruno Haible  <bruno@clisp.org>
15485
15486         time_r: Fix C++ test error on mingw.
15487         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15488         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15489         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15490         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15491         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15492
15493 2010-04-03  Bruno Haible  <bruno@clisp.org>
15494
15495         time_r: Minor updates.
15496         * modules/time_r (Description): Mention the provided functions.
15497         * lib/time_r.c: Don't include <string.h>.
15498         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15499         * doc/posix-functions/localtime_r.texi: Likewise.
15500
15501 2010-04-03  Bruno Haible  <bruno@clisp.org>
15502
15503         time: Fix regression introduced on 2010-03-08.
15504         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15505         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15506
15507 2010-04-03  Jim Meyering  <meyering@redhat.com>
15508
15509         maint.mk: don't silently disable project-specific syntax-check rules
15510         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15511         that they need to convert their project-specific syntax-check rules
15512         to use the new _sc_search_regexp.
15513
15514 2010-04-03  Bruno Haible  <bruno@clisp.org>
15515
15516         fchdir: Fix regression introduced on 2010-03-08.
15517         * lib/unistd.in.h (fchdir): Fix declaration.
15518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15520         REPLACE_FCHDIR.
15521         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15522         REPLACE_FCHDIR.
15523
15524 2010-04-03  Bruno Haible  <bruno@clisp.org>
15525
15526         getpagesize: Fix C++ test error on mingw.
15527         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15528         system does not declare the function.
15529         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15530         declared.
15531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15532         HAVE_DECL_GETPAGESIZE.
15533         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15534
15535 2010-04-03  Bruno Haible  <bruno@clisp.org>
15536
15537         stdio: Make C++ tests work on mingw.
15538         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15539         does not declare the function.
15540
15541 2010-04-03  Bruno Haible  <bruno@clisp.org>
15542
15543         ftello: Fix C++ test error on mingw.
15544         * lib/stdio.in.h (ftello): Use modern idiom.
15545         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15546         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15547         is missing and that it needs to be replaced.
15548         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15550         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15551
15552 2010-04-03  Bruno Haible  <bruno@clisp.org>
15553
15554         fseeko: Fix C++ test error on mingw.
15555         * lib/stdio.in.h (fseeko): Use modern idiom.
15556         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15558         is missing and that it needs to be replaced.
15559         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15561         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15562
15563 2010-04-03  Bruno Haible  <bruno@clisp.org>
15564
15565         mkstemp: Fix C++ test error on mingw.
15566         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15567         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15568         function is missing and that it needs to be replaced.
15569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15570         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15571
15572 2010-04-03  Bruno Haible  <bruno@clisp.org>
15573
15574         stpncpy: Fix C++ test error on mingw.
15575         * lib/string.in.h (stpncpy): Use modern idiom.
15576         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15577         function is missing and that it needs to be replaced.
15578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15579         REPLACE_STPNCPY.
15580         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15581
15582 2010-04-03  Bruno Haible  <bruno@clisp.org>
15583
15584         sys_stat: Fix C++ test error on mingw.
15585         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15586         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15587
15588 2010-04-03  Bruno Haible  <bruno@clisp.org>
15589
15590         pty: Update doc.
15591         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15592
15593 2010-04-03  Bruno Haible  <bruno@clisp.org>
15594
15595         unistd: Fix C++ test error on mingw.
15596         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15597
15598 2010-04-03  Bruno Haible  <bruno@clisp.org>
15599
15600         Update doc regarding mingw.
15601         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15602         * doc/glibc-functions/login_tty.texi: Likewise.
15603         * doc/glibc-functions/forkpty.texi: Likewise.
15604
15605 2010-04-03  Bruno Haible  <bruno@clisp.org>
15606
15607         stdlib: Avoid compilation failure of c-strtold on mingw.
15608         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15609
15610 2010-04-03  Bruno Haible  <bruno@clisp.org>
15611
15612         locale: Make C++ tests work on Cygwin and mingw.
15613         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15614         cannot provide the function.
15615         Reported by Simon Josefsson.
15616
15617 2010-04-03  Bruno Haible  <bruno@clisp.org>
15618
15619         localename: Port to MacOS X 10.6.
15620         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15621         memory layout of the locales in MacOS X 10.6 as well.
15622         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15623
15624 2010-04-02  Bruno Haible  <bruno@clisp.org>
15625
15626         gnulib-tool: Ensure that long-running tests are executed last.
15627         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15628         running tests after the one for the other tests.
15629
15630 2010-04-02  Bruno Haible  <bruno@clisp.org>
15631
15632         gnulib-tool: Ensure the tests in the main directory are executed first.
15633         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15634         start with the current directory.
15635
15636 2010-04-02  Bruno Haible  <bruno@clisp.org>
15637
15638         Tests for module 'havelib', moved here from GNU gettext.
15639         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15640         modifications.
15641         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15642         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15643         with modifications.
15644         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15645         modifications.
15646         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15647         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15648         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15649         with modifications.
15650         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15651         with modifications.
15652         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15653         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15654         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15655         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15656         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15657         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15658         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15659         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15660         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15661         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15662         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15663         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15664         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15665         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15666         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15667         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15668         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15669         with modifications.
15670         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15671         with modifications.
15672         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15673         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15674         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15675         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15676         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15677         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15678         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15679         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15680         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15681         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15682         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15683         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15684         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15685         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15686         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15687         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15688         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15689         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15690         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15691         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15692         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15693         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15694         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15695         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15696         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15697         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15698         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15699         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15700         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15701         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15702         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15703         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15704         * tests/havelib/rpathx/rpathx.c: New file, from
15705         gettext/autoconf-lib-link.
15706         * tests/havelib/rpathx/Makefile.am: New file, from
15707         gettext/autoconf-lib-link.
15708         * tests/havelib/rpathx/configure.ac: New file, from
15709         gettext/autoconf-lib-link with modifications.
15710         * tests/havelib/rpathy/rpathy.c: New file, from
15711         gettext/autoconf-lib-link.
15712         * tests/havelib/rpathy/Makefile.am: New file, from
15713         gettext/autoconf-lib-link.
15714         * tests/havelib/rpathy/configure.ac: New file, from
15715         gettext/autoconf-lib-link with modifications.
15716         * tests/havelib/rpathz/rpathz.c: New file, from
15717         gettext/autoconf-lib-link.
15718         * tests/havelib/rpathz/Makefile.am: New file, from
15719         gettext/autoconf-lib-link.
15720         * tests/havelib/rpathz/configure.ac: New file, from
15721         gettext/autoconf-lib-link with modifications.
15722         * tests/havelib/rpathlx/usex.c: New file, from
15723         gettext/autoconf-lib-link.
15724         * tests/havelib/rpathlx/Makefile.am: New file, from
15725         gettext/autoconf-lib-link.
15726         * tests/havelib/rpathlx/configure.ac: New file, from
15727         gettext/autoconf-lib-link with modifications.
15728         * tests/havelib/rpathly/usey.c: New file, from
15729         gettext/autoconf-lib-link.
15730         * tests/havelib/rpathly/Makefile.am: New file, from
15731         gettext/autoconf-lib-link.
15732         * tests/havelib/rpathly/configure.ac: New file, from
15733         gettext/autoconf-lib-link with modifications.
15734         * tests/havelib/rpathlz/usez.c: New file, from
15735         gettext/autoconf-lib-link.
15736         * tests/havelib/rpathlz/Makefile.am: New file, from
15737         gettext/autoconf-lib-link.
15738         * tests/havelib/rpathlz/configure.ac: New file, from
15739         gettext/autoconf-lib-link with modifications.
15740         * tests/havelib/rpathlyx/usey.c: New file, from
15741         gettext/autoconf-lib-link.
15742         * tests/havelib/rpathlyx/Makefile.am: New file, from
15743         gettext/autoconf-lib-link.
15744         * tests/havelib/rpathlyx/configure.ac: New file, from
15745         gettext/autoconf-lib-link with modifications.
15746         * tests/havelib/rpathlzyx/usez.c: New file, from
15747         gettext/autoconf-lib-link.
15748         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15749         gettext/autoconf-lib-link.
15750         * tests/havelib/rpathlzyx/configure.ac: New file, from
15751         gettext/autoconf-lib-link with modifications.
15752         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15753         with modifications.
15754
15755 2010-04-02  Bruno Haible  <bruno@clisp.org>
15756
15757         gnulib-tool: Create distributed built sources also for the tests.
15758         * gnulib-tool (func_create_testdir): Also generate distributed built
15759         sources in the tests directory.
15760
15761 2010-04-02  Bruno Haible  <bruno@clisp.org>
15762
15763         gnulib-tool: Obey user's environment variables.
15764         * gnulib-tool (func_create_testdir): When creating built sources,
15765         respect the environment variables for autoconf, automake, etc. given by
15766         the user.
15767
15768 2010-04-02  Bruno Haible  <bruno@clisp.org>
15769
15770         gnulib-tool: Provide the value of --m4-base to modules.
15771         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15772         of gl_m4_base.
15773
15774 2010-04-02  Eric Blake  <eblake@redhat.com>
15775
15776         maint.mk: fix some fallout
15777         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15778         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15779
15780 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15781
15782         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15783         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15784         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15785         (sc_cast_of_x_alloc_return_value): Likewise.
15786         (sc_cast_of_alloca_return_value): Likewise.
15787         (sc_space_tab): Likewise.
15788         (sc_prohibit_atoi_atof): Likewise.
15789         (sc_prohibit_magic_number_exit): Likewise.
15790         (sc_error_exit_success): Likewise.
15791         (sc_file_system): Likewise.
15792         (sc_prohibit_have_config_h): Likewise.
15793         (sc_require_config_h): Likewise.
15794         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15795         (sc_obsolete_symbols): Likewise.
15796         (sc_changelog): Likewise.
15797         (sc_program_name): Likewise.
15798         (sc_the_the): Likewise.
15799         (sc_trailing_blank): Likewise.
15800         (sc_two_space_separator_in_usage): Likewise.
15801         (sc_useless_cpp_parens): Likewise.
15802         (sc_GPL_version): Likewise.
15803         (sc_GFDL_version): Likewise.
15804         (sc_texinfo_acronym): Likewise.
15805         (sc_prohibit_cvs_keyword): Likewise.
15806         (sc_prohibit_stat_st_blocks): Likewise.
15807         (sc_prohibit_S_IS_definition): Likewise.
15808         (sc_redundant_const): Likewise.
15809         (sc_makefile_TAB_only_indentation): Likewise.
15810         (sc_m4_quote_check): Likewise.
15811         (sc_makefile_path_separator_check): Likewise.
15812         (sc_copyright_check): Likewise.
15813         (sc_Wundef_boolean): Likewise.
15814         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15815
15816         maint.mk: match 0 or more whitespace-before-function-call '('
15817         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15818         that have zero or two-and-more spaces between the function name
15819         and the open parenthesis.
15820         (sc_error_message_warn_fatal): Likewise.
15821         (sc_error_message_uppercase): Likewise.
15822         (sc_error_message_period): Likewise.
15823
15824 2010-03-31  Eric Blake  <eblake@redhat.com>
15825
15826         maint.mk: check for [ as well as test
15827         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15828         Based on a libvirt report by Matthias Bolte.
15829
15830         gnumakefile: don't squelch _version output
15831         * top/GNUmakefile (_version): Create one-shot dependency rather
15832         than using $(shell) when version must be regenerated.
15833         (_autoreconf): Run verbosely, by default.
15834
15835         sys_time: avoid compiler warnings
15836         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15837         unconditional, fixing regression from 2010-03-29.
15838         Reported by Simon Josefsson.
15839
15840 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15841
15842         maint.mk: s/_header_without_use/_sc_header_without_use/
15843         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15844         (sc_prohibit_assert_without_use): Use the new name.
15845         (sc_prohibit_close_stream_without_use): Likewise.
15846         (sc_prohibit_getopt_without_use): Likewise.
15847         (sc_prohibit_quotearg_without_use): Likewise.
15848         (sc_prohibit_quote_without_use): Likewise.
15849         (sc_prohibit_long_options_without_use): Likewise.
15850         (sc_prohibit_inttostr_without_use): Likewise.
15851         (sc_prohibit_ignore_value_without_use): Likewise.
15852         (sc_prohibit_error_without_use): Likewise.
15853         (sc_prohibit_xalloc_without_use): Likewise.
15854         (sc_prohibit_hash_without_use): Likewise.
15855         (sc_prohibit_hash_pjw_without_use): Likewise.
15856         (sc_prohibit_safe_read_without_use): Likewise.
15857         (sc_prohibit_argmatch_without_use): Likewise.
15858         (sc_prohibit_canonicalize_without_use): Likewise.
15859         (sc_prohibit_root_dev_ino_without_use): Likewise.
15860         (sc_prohibit_openat_without_use): Likewise.
15861         (sc_prohibit_c_ctype_without_use): Likewise.
15862         (sc_prohibit_signal_without_use): Likewise.
15863         (sc_prohibit_intprops_without_use): Likewise.
15864
15865 2010-03-30  Eric Blake  <eblake@redhat.com>
15866
15867         maint: improve module indicators
15868         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15869         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15870         columns, and avoid extra macro expansion.
15871
15872         fdopendir: work around FreeBSD bug
15873         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15874         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15875         * modules/dirent (Makefile.am): Substitute it.
15876         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15877         declaration.
15878         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15879         fix.
15880         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15881
15882 2010-03-29  Bruno Haible  <bruno@clisp.org>
15883
15884         Emit #pragma system_header after the inclusion guard, not before.
15885         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15886         guard that spans the entire file, not before. This enables an
15887         optimization in GCC's preprocessor.
15888         * lib/ctype.in.h: Likewise.
15889         * lib/dirent.in.h: Likewise.
15890         * lib/errno.in.h: Likewise.
15891         * lib/float.in.h: Likewise.
15892         * lib/getopt.in.h: Likewise.
15893         * lib/iconv.in.h: Likewise.
15894         * lib/langinfo.in.h: Likewise.
15895         * lib/locale.in.h: Likewise.
15896         * lib/math.in.h: Likewise.
15897         * lib/netdb.in.h: Likewise.
15898         * lib/netinet_in.in.h: Likewise.
15899         * lib/pty.in.h: Likewise.
15900         * lib/sched.in.h: Likewise.
15901         * lib/se-selinux.in.h: Likewise.
15902         * lib/search.in.h: Likewise.
15903         * lib/spawn.in.h: Likewise.
15904         * lib/stdarg.in.h: Likewise.
15905         * lib/stdint.in.h: Likewise.
15906         * lib/string.in.h: Likewise.
15907         * lib/strings.in.h: Likewise.
15908         * lib/sys_file.in.h: Likewise.
15909         * lib/sys_ioctl.in.h: Likewise.
15910         * lib/sys_time.in.h: Likewise.
15911         * lib/sys_times.in.h: Likewise.
15912         * lib/sys_utsname.in.h: Likewise.
15913         * lib/sys_wait.in.h: Likewise.
15914         * lib/sysexits.in.h: Likewise.
15915         * lib/wctype.in.h: Likewise.
15916
15917 2010-03-28  James Youngman  <jay@gnu.org>
15918
15919         save-cwd: don't leak a file descriptor when the caller execs.
15920         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15921         saved file descriptor.
15922         * modules/save-cwd (Depends-on): Depend on cloexec.
15923
15924 2010-03-29  Bruno Haible  <bruno@clisp.org>
15925
15926         Remove vestiges of fts-lgpl module.
15927         * lib/fts_.h: Assume GNULIB_FTS is 1.
15928         * lib/fts.c: Likewise.
15929         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15930
15931 2010-03-28  Bruno Haible  <bruno@clisp.org>
15932
15933         Fix definition of tests witness macro.
15934         * gnulib-tool (func_import): Fix definition of witness macro.
15935
15936 2010-03-28  Bruno Haible  <bruno@clisp.org>
15937
15938         Fix ioctl's protoype on glibc systems.
15939         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15940         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15941         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15942         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15943         signature. If not, arrange to replace the ioctl function.
15944         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15945         REPLACE_IOCTL.
15946         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15947         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15948         Reported by Ludovic Courtès <ludo@gnu.org>.
15949
15950 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15951
15952         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15953         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15954         made it so grep -r --include=GLOB* ... did not work.
15955
15956 2010-03-26  Jim Meyering  <meyering@redhat.com>
15957             Eric Blake  <eblake@redhat.com>
15958
15959         maint.mk: prohibit use of test's -o and -a operators
15960         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15961
15962 2010-03-28  Bruno Haible  <bruno@clisp.org>
15963
15964         Remove unused GNULIB_XYZ macro definitions.
15965         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15966         invocation.
15967
15968 2010-03-28  Bruno Haible  <bruno@clisp.org>
15969
15970         Mark privileged tests modules.
15971         * modules/idpriv-drop-tests (Status): New section.
15972         * modules/idpriv-droptemp-tests (Status): New section.
15973
15974 2010-03-28  Bruno Haible  <bruno@clisp.org>
15975
15976         Split C++ tests into separate tests modules.
15977         * modules/dirent-c++-tests: New file, extracted from
15978         modules/dirent-tests.
15979         * modules/dirent-tests: Depend on it.
15980         * modules/fcntl-h-c++-tests: New file, extracted from
15981         modules/fcntl-h-tests.
15982         * modules/fcntl-h-tests: Depend on it.
15983         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15984         * modules/glob-tests: Depend on it.
15985         * modules/iconv-h-c++-tests: New file, extracted from
15986         modules/iconv-h-tests.
15987         * modules/iconv-h-tests: Depend on it.
15988         * modules/langinfo-c++-tests: New file, extracted from
15989         modules/langinfo-tests.
15990         * modules/langinfo-tests: Depend on it.
15991         * modules/locale-c++-tests: New file, extracted from
15992         modules/locale-tests.
15993         * modules/locale-tests: Depend on it.
15994         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15995         * modules/math-tests: Depend on it.
15996         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15997         * modules/pty-tests: Depend on it.
15998         * modules/search-c++-tests: New file, extracted from
15999         modules/search-tests.
16000         * modules/search-tests: Depend on it.
16001         * modules/signal-c++-tests: New file, extracted from
16002         modules/signal-tests.
16003         * modules/signal-tests: Depend on it.
16004         * modules/spawn-c++-tests: New file, extracted from
16005         modules/spawn-tests.
16006         * modules/spawn-tests: Depend on it.
16007         * modules/stdio-c++-tests: New file, extracted from
16008         modules/stdio-tests.
16009         * modules/stdio-tests: Depend on it.
16010         * modules/stdlib-c++-tests: New file, extracted from
16011         modules/stdlib-tests.
16012         * modules/stdlib-tests: Depend on it.
16013         * modules/string-c++-tests: New file, extracted from
16014         modules/string-tests.
16015         * modules/string-tests: Depend on it.
16016         * modules/sys_ioctl-c++-tests: New file, extracted from
16017         modules/sys_ioctl-tests.
16018         * modules/sys_ioctl-tests: Depend on it.
16019         * modules/sys_select-c++-tests: New file, extracted from
16020         modules/sys_select-tests.
16021         * modules/sys_select-tests: Depend on it.
16022         * modules/sys_socket-c++-tests: New file, extracted from
16023         modules/sys_socket-tests.
16024         * modules/sys_socket-tests: Depend on it.
16025         * modules/sys_stat-c++-tests: New file, extracted from
16026         modules/sys_stat-tests.
16027         * modules/sys_stat-tests: Depend on it.
16028         * modules/sys_time-c++-tests: New file, extracted from
16029         modules/sys_time-tests.
16030         * modules/sys_time-tests: Depend on it.
16031         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16032         * modules/time-tests: Depend on it.
16033         * modules/unistd-c++-tests: New file, extracted from
16034         modules/unistd-tests.
16035         * modules/unistd-tests: Depend on it.
16036         * modules/wchar-c++-tests: New file, extracted from
16037         modules/wchar-tests.
16038         * modules/wchar-tests: Depend on it.
16039         * modules/wctype-c++-tests: New file, extracted from
16040         modules/wctype-tests.
16041         * modules/wctype-tests: Depend on it.
16042         Reported by Simon Josefsson.
16043
16044 2010-03-28  Bruno Haible  <bruno@clisp.org>
16045
16046         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16047         * gnulib-tool (func_exists_module): New function, extracted from
16048         func_verify_module.
16049         (func_verify_module): Use it.
16050         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16051         'foo' only if 'foo' exists.
16052         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16053         module.
16054
16055 2010-03-28  Bruno Haible  <bruno@clisp.org>
16056
16057         gnulib-tool: Add support for special categories of tests.
16058         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16059         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16060         (func_usage): Document them.
16061         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16062         inc_unportable_tests, inc_all_tests): New variables.
16063         (func_acceptable): Consider these variables.
16064         (func_modules_transitive_closure): Make it work when the 'Status' field
16065         consists of multiple words.
16066         (func_import): Store and restore the values of inc_cxx_tests,
16067         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16068         inc_all_tests in gnulib-comp.m4.
16069         (func_create_testdir): Set inc_all_tests to true.
16070         * doc/gnulib.texi (Extra tests modules): New section.
16071         Suggested by Jim Meyering.
16072
16073 2010-03-28  Bruno Haible  <bruno@clisp.org>
16074
16075         ansi-c++-opt: Allow turning off the C++ build by default.
16076         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16077         gl_CXX_CHOICE_DEFAULT_NO is defined.
16078         Requested by Eric Blake.
16079
16080 2010-03-28  Bruno Haible  <bruno@clisp.org>
16081
16082         unistd: Avoid #define replacements in C++ mode.
16083         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16084         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16085         setsockopt, shutdown, select): In C++, attach a warning to the function
16086         if possible, rather than #defining the symbol to a dysfunctional alias.
16087         Reported by John W. Eaton <jwe@gnu.org>.
16088
16089 2010-03-28  Bruno Haible  <bruno@clisp.org>
16090
16091         Fix link errors on mingw.
16092         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16093         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16094         $(LIBSOCKET).
16095         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16096         $(LIBSOCKET).
16097
16098 2010-03-28  Bruno Haible  <bruno@clisp.org>
16099             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16100
16101         lib-ignore: Determine different options for different compilers.
16102         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16103         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16104         Add comments.
16105         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16106         * NEWS: Mention the change.
16107
16108 2010-03-27  Bruno Haible  <bruno@clisp.org>
16109
16110         Remove unused GNULIB_XYZ macro definitions.
16111         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16112         * modules/fseek (configure.ac): Likewise.
16113         * modules/ioctl (configure.ac): Likewise.
16114         * modules/open (configure.ac): Likewise.
16115         * modules/stdlib-safer (configure.ac): Likewise.
16116
16117 2010-03-27  Bruno Haible  <bruno@clisp.org>
16118
16119         Add a remark about certain modules.
16120         * modules/malloc (Comment): New section.
16121         * modules/realloc (Comment): Likewise.
16122         * modules/sigpipe (Comment): Likewise.
16123
16124 2010-03-27  Bruno Haible  <bruno@clisp.org>
16125
16126         Resolve conflict between the two kinds of module indicators.
16127         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16128         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16129         * modules/canonicalize (configure.ac): Invoke
16130         gl_MODULE_INDICATOR_FOR_TESTS.
16131         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16132         GNULIB_XYZ.
16133         * tests/test-dirent-c++.cc: Likewise.
16134         * tests/test-dirent-safer.c: Likewise.
16135         * tests/test-dup2.c: Likewise.
16136         * tests/test-fchdir.c: Likewise.
16137         * tests/test-fcntl-h-c++.cc: Likewise.
16138         * tests/test-getopt.c: Likewise.
16139         * tests/test-getopt.h: Likewise.
16140         * tests/test-langinfo-c++.cc: Likewise.
16141         * tests/test-locale-c++.cc: Likewise.
16142         * tests/test-math-c++.cc: Likewise.
16143         * tests/test-pty-c++.cc: Likewise.
16144         * tests/test-search-c++.cc: Likewise.
16145         * tests/test-signal-c++.cc: Likewise.
16146         * tests/test-spawn-c++.cc: Likewise.
16147         * tests/test-stdio-c++.cc: Likewise.
16148         * tests/test-stdlib-c++.cc: Likewise.
16149         * tests/test-string-c++.cc: Likewise.
16150         * tests/test-sys_ioctl-c++.cc: Likewise.
16151         * tests/test-sys_select-c++.cc: Likewise.
16152         * tests/test-sys_socket-c++.cc: Likewise.
16153         * tests/test-sys_stat-c++.cc: Likewise.
16154         * tests/test-sys_time-c++.cc: Likewise.
16155         * tests/test-time-c++.cc: Likewise.
16156         * tests/test-unistd-c++.cc: Likewise.
16157         * tests/test-wchar-c++.cc: Likewise.
16158         * tests/uninorm/test-u8-nfc.c: Likewise.
16159         * tests/uninorm/test-u8-nfd.c: Likewise.
16160         * tests/uninorm/test-u8-nfkc.c: Likewise.
16161         * tests/uninorm/test-u8-nfkd.c: Likewise.
16162         * tests/uninorm/test-u16-nfc.c: Likewise.
16163         * tests/uninorm/test-u16-nfd.c: Likewise.
16164         * tests/uninorm/test-u16-nfkc.c: Likewise.
16165         * tests/uninorm/test-u16-nfkd.c: Likewise.
16166         * tests/uninorm/test-u32-nfc.c: Likewise.
16167         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16168         * tests/uninorm/test-u32-nfd.c: Likewise.
16169         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16170         * tests/uninorm/test-u32-nfkc.c: Likewise.
16171         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16172         * tests/uninorm/test-u32-nfkd.c: Likewise.
16173         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16174         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16175
16176 2010-03-27  Bruno Haible  <bruno@clisp.org>
16177
16178         Distinguish two kinds of module indicators.
16179         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16180         gl_MODULE_INDICATOR.
16181         (gl_MODULE_INDICATOR): New macro.
16182         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16183         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16184         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16185         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16186         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16187         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16188         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16189         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16190         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16191         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16192         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16193         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16194         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16195         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16196         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16197         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16198         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16199         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16200         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16201         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16202         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16203         * modules/cloexec (configure.ac): Likewise.
16204         * modules/getopt-gnu (configure.ac): Likewise.
16205         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16206         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16207         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16208         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16209
16210 2010-03-27  Bruno Haible  <bruno@clisp.org>
16211
16212         New module description field 'Comment'.
16213         * gnulib-tool: New option --extract-comment.
16214         (func_usage): Document it.
16215         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16216         (func_get_comment): New function.
16217         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16218
16219 2010-03-27  Bruno Haible  <bruno@clisp.org>
16220
16221         Addendum to 2010-02-07 commit.
16222         * gnulib-tool (func_usage): Document --extract-applicability option.
16223
16224 2010-03-27  Bruno Haible  <bruno@clisp.org>
16225
16226         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16227         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16228         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16229         rather than link errors.
16230
16231 2010-03-27  Bruno Haible  <bruno@clisp.org>
16232
16233         Avoid side effects from tests-related modules on the compilation of lib.
16234         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16235         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16236         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16237         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16238         macro.
16239         (func_import): Define a witness macro. Assign it a value that depends
16240         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16241         tests-related modules.
16242         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16243         Reported by Jim Meyering.
16244
16245 2010-03-27  Bruno Haible  <bruno@clisp.org>
16246
16247         Factorize common .m4 code.
16248         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16249         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16250         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16251         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16252         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16253         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16254         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16255         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16256         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16257         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16258         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16259         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16260         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16261         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16262         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16263         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16264         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16265         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16266         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16267         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16268         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16270         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16271         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16272         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16273         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16274         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16275         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16276         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16277         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16278         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16279         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16280
16281 2010-03-27  Bruno Haible  <bruno@clisp.org>
16282
16283         Fix a compilation error on Cygwin with g++ >= 4.3.
16284         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16285         if it is undefined or if we alias it to chmod.
16286         (lstat): Don't warn about the use of this function if it is undefined
16287         or if we alias it to stat.
16288         Reported by Simon Josefsson.
16289
16290 2010-03-27  Bruno Haible  <bruno@clisp.org>
16291
16292         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16293         * modules/getlogin (configure.ac): Update.
16294
16295         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16296         * modules/getlogin_r (configure.ac): Update.
16297
16298         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16300         * modules/inet_ntop (configure.ac): Update.
16301
16302         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16303         * modules/inet_pton (configure.ac): Update.
16304
16305         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16306         * modules/mbslen (configure.ac): Update.
16307
16308         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16309         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16310         * modules/forkpty (configure.ac): Update.
16311         * modules/openpty (configure.ac): Update.
16312
16313 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16314
16315         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16316         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16317
16318 2010-03-25  Eric Blake  <eblake@redhat.com>
16319
16320         maint: use pragma consistently across replacement headers
16321         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16322         * lib/dirent.in.h (system_header): Likewise.
16323         * lib/errno.in.h (system_header): Likewise.
16324         * lib/float.in.h (system_header): Likewise.
16325         * lib/getopt.in.h (system_header): Likewise.
16326         * lib/iconv.in.h (system_header): Likewise.
16327         * lib/inttypes.in.h (system_header): Likewise.
16328         * lib/langinfo.in.h (system_header): Likewise.
16329         * lib/locale.in.h (system_header): Likewise.
16330         * lib/math.in.h (system_header): Likewise.
16331         * lib/netdb.in.h (system_header): Likewise.
16332         * lib/netinet_in.in.h (system_header): Likewise.
16333         * lib/pty.in.h (system_header): Likewise.
16334         * lib/sched.in.h (system_header): Likewise.
16335         * lib/se-selinux.in.h (system_header): Likewise.
16336         * lib/search.in.h (system_header): Likewise.
16337         * lib/spawn.in.h (system_header): Likewise.
16338         * lib/stdarg.in.h (system_header): Likewise.
16339         * lib/stdint.in.h (system_header): Likewise.
16340         * lib/string.in.h (system_header): Likewise.
16341         * lib/strings.in.h (system_header): Likewise.
16342         * lib/sys_file.in.h (system_header): Likewise.
16343         * lib/sys_ioctl.in.h (system_header): Likewise.
16344         * lib/sys_socket.in.h (system_header): Likewise.
16345         * lib/sys_times.in.h (system_header): Likewise.
16346         * lib/sys_utsname.in.h (system_header): Likewise.
16347         * lib/sys_wait.in.h (system_header): Likewise.
16348         * lib/sysexits.in.h (system_header): Likewise.
16349         * lib/unistd.in.h (system_header): Likewise.
16350         * lib/wctype.in.h (system_header): Likewise.
16351
16352         arpa/inet: fix mingw compilation warning
16353         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16354         Reported by Matthew Bolte.
16355
16356 2010-03-25  Bruno Haible  <bruno@clisp.org>
16357
16358         Avoid collision between gnulib wrapper and libintl wrapper.
16359         * lib/printf.c (printf): Don't define if a printf wrapper is already
16360         defined in intl/printf.c.
16361         Reported by Michel Boaventura <michel@michelboaventura.com>.
16362
16363 2010-03-25  Bruno Haible  <bruno@clisp.org>
16364
16365         Use ANSI C.
16366         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16367
16368 2010-03-25  Bruno Haible  <bruno@clisp.org>
16369
16370         Minor formatting changes.
16371         * lib/acosl.c: Insert space before function argument list.
16372         * lib/argz.c: Likewise.
16373         * lib/asinl.c: Likewise.
16374         * lib/expl.c: Likewise.
16375         * lib/gen-uni-tables.c: Likewise.
16376         * lib/gettext.h: Likewise.
16377         * lib/glthread/lock.h: Likewise.
16378         * lib/tanl.c: Likewise.
16379         * lib/uniname/uniname.c: Likewise.
16380         * tests/test-idpriv-drop.c: Likewise.
16381         * tests/test-idpriv-droptemp.c: Likewise.
16382         * tests/test-lock.c: Likewise.
16383         * tests/test-tls.c: Likewise.
16384         * lib/argp-help.c: Insert space before function-like macro argument
16385         list.
16386         * lib/memcmp.c: Likewise.
16387         * tests/test-base64.c: Likewise.
16388         * lib/localename.c: Insert space before sizeof's argument list.
16389         * lib/safe-alloc.h: Likewise.
16390         * lib/file-set.h: Insert space before macro argument list.
16391         * tests/test-argp.c: Likewise.
16392         * lib/argp-namefrob.h: Insert space before function parameter list.
16393         * lib/getaddrinfo.c: Likewise.
16394         * lib/netdb.in.h: Likewise.
16395         * lib/parse-duration.h: Likewise.
16396         * lib/parse-duration.c: Likewise.
16397         * lib/poll.c: Likewise.
16398         * lib/select.c: Likewise.
16399         * lib/trim.h: Likewise.
16400         * tests/test-usleep.c: Likewise.
16401         * lib/ldexpl.c: Insert space before function parameter list and before
16402         function argument list.
16403         * lib/logl.c: Likewise.
16404         * lib/sqrtl.c: Likewise.
16405         * lib/trim.c: Likewise.
16406         * lib/cosl.c: Use GNU style indentation. Insert space before function
16407         argument list.
16408         * lib/sinl.c: Likewise.
16409         * lib/tsearch.c: Insert space after 'for'.
16410         Reported by Jim Meyering.
16411
16412 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16413
16414         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16415         config header before grepping, as it's not present before
16416         autoreconf/configure are run.  Reported by Simon Josefsson.
16417
16418 2010-03-23  Bruno Haible  <bruno@clisp.org>
16419
16420         pt_chown: Make it work with automake < 1.11.
16421         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16422         Reported by Simon Josefsson.
16423
16424 2010-03-23  Bruno Haible  <bruno@clisp.org>
16425
16426         pt_chown: Don't depend on GPLed modules.
16427         * lib/pt_chown.c: Don't include idpriv.h.
16428         (main): Don't drop privileges.
16429         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16430         Reported by Simon Josefsson.
16431
16432 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16433
16434         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16435         suggestions from karl@freefriends.org (Karl Berry).
16436
16437 2010-03-22  Eric Blake  <eblake@redhat.com>
16438
16439         gethostname: further tweaks
16440         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16441         are overriding gethostname.
16442         Suggested by Bruno Haible.
16443
16444 2010-03-21  Bruno Haible  <bruno@clisp.org>
16445
16446         Fix comments.
16447         * lib/forkpty.c (rpl_forkpty): Fix comment.
16448         * lib/openpty.c (rpl_openpty): Likewise.
16449         Reported by Eric Blake.
16450
16451 2010-03-22  Eric Blake  <eblake@redhat.com>
16452
16453         gethostname: fix build on mingw
16454         * lib/unistd.in.h (includes): Work around fact that mingw
16455         <winsock2.h> re-includes <unistd.h>, by avoiding any
16456         redeclarations if we are being included by <winsock2.h>.
16457         Reported by Matthias Bolte.
16458
16459 2010-03-21  Bruno Haible  <bruno@clisp.org>
16460
16461         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16462         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16463         modifications.
16464         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16465         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16466         provide the replacement.
16467         * modules/forkpty (Depends-on): Add openpty, login_tty.
16468         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16469         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16470         * doc/glibc-functions/forkpty.texi: More supported platforms.
16471         * config/srclist.txt: Add forkpty.c (commented).
16472
16473 2010-03-21  Bruno Haible  <bruno@clisp.org>
16474
16475         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16476         (Makefile.am): Verify that PTY_LIB is defined.
16477
16478         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16479
16480 2010-03-21  Bruno Haible  <bruno@clisp.org>
16481
16482         Tests for module 'login_tty'.
16483         * modules/login_tty-tests: New file.
16484         * tests/test-login_tty.c: New file.
16485
16486         New module 'login_tty'.
16487         * lib/login_tty.c: New file.
16488         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16489         * modules/login_tty: New file.
16490         * doc/glibc-functions/login_tty.texi: Mention the new module.
16491
16492 2010-03-21  Bruno Haible  <bruno@clisp.org>
16493
16494         login_tty: Documentation.
16495         * doc/glibc-functions/login_tty.texi: New file.
16496         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16497
16498 2010-03-21  Bruno Haible  <bruno@clisp.org>
16499
16500         pty: Consistent macro naming.
16501         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16502         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16503         * modules/pty (configure.ac): Update.
16504
16505 2010-03-21  Bruno Haible  <bruno@clisp.org>
16506
16507         Tests for openpty: Make stricter.
16508         * tests/test-openpty.c (main): Add test of canonical processing and
16509         erase.
16510         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16511
16512         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16513         * lib/openpty.c (openpty): New replacement function.
16514         * lib/pty.in.h: Include <termios.h>.
16515         (openpty): Update declaration. Add comments.
16516         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16517         is not declared, arrange to provide the replacement. Check for _getpty
16518         and posix_openpt.
16519         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16520         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16521         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16522         * modules/pty-tests (test_pty_c___LDADD): New variable.
16523         * doc/glibc-functions/openpty.texi: More supported platforms.
16524
16525 2010-03-21  Bruno Haible  <bruno@clisp.org>
16526
16527         setenv: Tweaks.
16528         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16529         the test program.
16530         * doc/posix-functions/setenv.texi: Update platforms list.
16531
16532 2010-03-21  Bruno Haible  <bruno@clisp.org>
16533
16534         New module 'unlockpt'.
16535         * lib/unlockpt.c: New file, from glibc with modifications.
16536         * m4/unlockpt.m4: New file.
16537         * modules/unlockpt: New file.
16538         * lib/stdlib.in.h (unlockpt): New declaration.
16539         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16540         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16541         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16542         HAVE_UNLOCKPT.
16543         * doc/posix-functions/unlockpt.texi: Mention the new module.
16544         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16545         * config/srclist.txt: Add unlockpt.c (commented).
16546
16547 2010-03-21  Jim Meyering  <meyering@redhat.com>
16548
16549         maint.mk: prohibit inclusion of "intprops.h" without use
16550         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16551
16552 2010-03-21  Bruno Haible  <bruno@clisp.org>
16553
16554         New module 'grantpt'.
16555         * lib/grantpt.c: New file, from glibc with modifications.
16556         * m4/grantpt.m4: New file.
16557         * modules/grantpt: New file.
16558         * lib/stdlib.in.h (grantpt): New declaration.
16559         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16560         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16561         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16562         HAVE_GRANTPT.
16563         * doc/posix-functions/grantpt.texi: Mention the new module.
16564         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16565         * config/srclist.txt: Add grantpt.c (commented).
16566
16567 2010-03-21  Bruno Haible  <bruno@clisp.org>
16568
16569         New module 'pt_chown'.
16570         * lib/pt_chown.c: New file, from glibc with modifications.
16571         * lib/pty-private.h: New file, from glibc with modifications.
16572         * modules/pt_chown: New file.
16573         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16574
16575 2010-03-21  Bruno Haible  <bruno@clisp.org>
16576
16577         Tests for module 'ptsname'.
16578         * modules/ptsname-tests: New file.
16579         * tests/test-ptsname.c: New file.
16580
16581         New module 'ptsname'.
16582         * lib/ptsname.c: New file, from glibc with modifications.
16583         * m4/ptsname.m4: New file.
16584         * modules/ptsname: New file.
16585         * lib/stdlib.in.h (ptsname): New declaration.
16586         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16587         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16588         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16589         HAVE_PTSNAME.
16590         * doc/posix-functions/ptsname.texi: Mention the new module.
16591         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16592         * config/srclist.txt: Add ptsname.c (commented).
16593
16594 2010-03-21  Bruno Haible  <bruno@clisp.org>
16595
16596         Tests for module 'ttyname_r'.
16597         * modules/ttyname_r-tests: New file.
16598         * tests/test-ttyname_r.c: New file.
16599
16600         New module 'ttyname_r'.
16601         * lib/ttyname_r.c: New file.
16602         * m4/ttyname_r.m4: New file.
16603         * modules/ttyname_r: New file.
16604         * lib/unistd.in.h (ttyname_r): New declaration.
16605         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16606         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16607         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16608         HAVE_TTYNAME_R.
16609         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16610         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16611
16612 2010-03-20  Bruno Haible  <bruno@clisp.org>
16613
16614         signal: Undefine macro definitions in C++ mode.
16615         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16616         sigfillset): Undefine macro definitions from the system header in C++
16617         mode.
16618         Reported by John W. Eaton <jwe@gnu.org>.
16619
16620 2010-03-20  Bruno Haible  <bruno@clisp.org>
16621
16622         Ensure no #include statements inside extern "C" { ... }.
16623         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16624         contain #include statements.
16625         * lib/time.in.h: Likewise.
16626
16627 2010-03-20  Bruno Haible  <bruno@clisp.org>
16628
16629         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16630         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16631         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16632         Reported by John W. Eaton <jwe@gnu.org>.
16633
16634 2010-03-20  Bruno Haible  <bruno@clisp.org>
16635
16636         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16637         Reported by Jim Meyering.
16638
16639 2010-03-20  Bruno Haible  <bruno@clisp.org>
16640
16641         pipe: Set errno upon failure.
16642         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16643         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16644         errno value in error message.
16645
16646 2010-03-20  Bruno Haible  <bruno@clisp.org>
16647             Jim Meyering  <meyering@redhat.com>
16648
16649         lchown: Avoid "unused variable" warning.
16650         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16651
16652 2010-03-20  Bruno Haible  <bruno@clisp.org>
16653
16654         Work around unlink() bug on MacOS X 10.5.6.
16655         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16656         attempting to unlink a parent directory.
16657         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16658         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16659         activate for the replacement function.
16660         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16661
16662 2010-03-20  Bruno Haible  <bruno@clisp.org>
16663
16664         Fix link errors on Solaris 8.
16665         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16666         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16667
16668 2010-03-19  Jim Meyering  <meyering@redhat.com>
16669
16670         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16671         The _LIBC implementation of build_range_exp correctly honors the
16672         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16673         However, the non-_LIBC implementation would ignore that syntax-bit
16674         flag and return REG_ERANGE unconditionally.
16675         This change makes it honor that flag.
16676         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16677         Make two pointer parameters "const".
16678         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16679         (parse_bracket_exp): Update caller.
16680
16681         regex.m4: correct the reversed range endpoint ([b-a]) test
16682         * m4/regex.m4: When requiring that [b-a] evoke failure,
16683         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16684         test pass once again for x86-based systems.
16685
16686 2010-03-19  Bruno Haible  <bruno@clisp.org>
16687
16688         scandir: Fix link error on Solaris 8.
16689         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16690         macros.
16691
16692 2010-03-19  Bruno Haible  <bruno@clisp.org>
16693
16694         getusershell: Fix documentation.
16695         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16696         module.
16697         * doc/glibc-functions/setusershell.texi: Likewise.
16698
16699         getusershell: Provide declaration, missing on Solaris 9.
16700         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16701         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16702         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16703         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16705         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16706         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16707         HAVE_GETUSERSHELL.
16708         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16709
16710 2010-03-19  Bruno Haible  <bruno@clisp.org>
16711
16712         wctype: Provide iswblank function.
16713         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16714         exists and is fine.
16715         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16716         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16717         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16718         * doc/posix-functions/iswblank.texi: Update.
16719
16720 2010-03-19  Bruno Haible  <bruno@clisp.org>
16721
16722         Tests of module 'pty' in C++ mode.
16723         * modules/pty-tests: New file.
16724         * tests/test-pty-c++.cc: New file.
16725         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16726
16727 2010-03-19  Eric Blake  <eblake@redhat.com>
16728
16729         logb: fix documentation
16730         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16731         1.5 declaration bug.
16732
16733         forkpty, openpty: prefer glibc's const-safe prototype
16734         * lib/forkpty.c (rpl_forkpty): New file.
16735         * lib/openpty.c (rpl_openpty): Likewise.
16736         * modules/forkpty (Files): Distribute it.
16737         * modules/openpty (Files): Likewise.
16738         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16739         check...
16740         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16741         replacement for for non-const BSD signature.
16742         * modules/pty (Makefile.am): Substitute witnesses.
16743         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16744         * tests/test-forkpty.c: Update signature check.
16745         * tests/test-openpty.c: Likewise.
16746         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16747         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16748
16749         forkpty, openpty: split functions into new modules
16750         * modules/pty (Makefile.am): Substitute new witnesses.
16751         (Libraries): Move library detection...
16752         * modules/forkpty: ...into new module.
16753         * modules/openpty: Another new module.
16754         * modules/pty-tests: Rename and split...
16755         * modules/forkpty-tests: ...to this...
16756         * modules/openpty-tests: ...and this.
16757         * tests/test-pty.c: Rename and split...
16758         * tests/test-forkpty.c: ...to this...
16759         * tests/test-openpty.c: ...and this.
16760         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16761         (gl_PTY): Split library searching...
16762         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16763         (gl_FORKPTY, gl_OPENPTY): New macros.
16764         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16765         * NEWS: Mention the split.
16766         * MODULES.html.sh (Misc): Document the modules.
16767         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16768         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16769
16770         pty: improve replacement header
16771         * lib/pty.in.h: New file.
16772         * modules/pty (Files): Ship it.
16773         (Makefile.am): Always build replacement.
16774         * m4/pty.m4: Rename...
16775         * m4/pty_h.m4: ...to this.
16776         (gl_PTY): Modernize setting of witness macros; update check of
16777         forkpty to take proper advantage of cache.
16778         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16779
16780         getopt: avoid compiler warning
16781         * lib/getopt.c (attribute_hidden): Remove unused macro.
16782
16783 2010-03-18  Bruno Haible  <bruno@clisp.org>
16784
16785         Fix link errors on Solaris 8.
16786         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16787         * modules/search-tests (test_search_c___LDADD): Likewise.
16788         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16789         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16790         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16791         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16792         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16793         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16794         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16795
16796 2010-03-18  Bruno Haible  <bruno@clisp.org>
16797
16798         Fix bug introduced on 2010-03-14.
16799         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16800         (gl_SPAWN_H): Require it.
16801         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16802         Reported by Simon Josefsson.
16803
16804 2010-03-18  Bruno Haible  <bruno@clisp.org>
16805
16806         Fix typo introduced on 2009-12-31.
16807         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16808         posix_spawn_file_actions_adddup2.
16809
16810 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16811         and Eric Blake  <eblake@redhat.com>
16812
16813         test-vc-list-files-git: make more robust
16814         * tests/test-vc-list-files-git.sh: Unset problematic environment
16815         variables.  Chain commands together.
16816
16817 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16818
16819         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16820         `AC_CHECK_DECL' invocation.
16821
16822 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16823
16824         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16825         appears before executable statements. Suggested by Petr Sumbera
16826         <Petr.Sumbera@Sun.COM>.
16827
16828 2010-03-14  Bruno Haible  <bruno@clisp.org>
16829
16830         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16831         portability problems. Instead use a simpler test.
16832         (main): Check that invalid arguments are rejected only on Linux.
16833
16834 2010-03-14  Bruno Haible  <bruno@clisp.org>
16835
16836         Fix bug introduced on 2009-12-31.
16837         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16838         gl_PREREQ_SYS_H_WINSOCK2 always.
16839         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16840         SYS_SOCKET_H variable.
16841         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16842         Update comments.
16843         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16844         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16845         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16846         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16847         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16848
16849 2010-03-14  Bruno Haible  <bruno@clisp.org>
16850
16851         Fix values returned by sinl, cosl.
16852         * lib/trigl.h: Add specification comments.
16853         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16854         that combines the values from the precomputed table with the values of
16855         the Chebyshev polynomials.
16856
16857 2010-03-14  Bruno Haible  <bruno@clisp.org>
16858
16859         Fix compilation error when modules 'posix_spawn[p]' are not used.
16860         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16861         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16862
16863 2010-03-14  Bruno Haible  <bruno@clisp.org>
16864
16865         Fix compilation error on mingw when module 'time_r' is not used.
16866         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16867         is 1.
16868         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16869         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16870         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16871         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16872
16873 2010-03-14  Bruno Haible  <bruno@clisp.org>
16874
16875         Fix compilation error with Sun C.
16876         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16877         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16878         instead of GCC specific ULONG_LONG_MAX.
16879         * lib/xstrtoll.c: Likewise.
16880         * lib/xstrtoull.c: Likewise.
16881
16882 2010-03-13  Bruno Haible  <bruno@clisp.org>
16883
16884         Allow the user to disable C++ code and tests.
16885         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16886         (gl_PROG_ANSI_CXX): Require it.
16887
16888 2010-03-13  Bruno Haible  <bruno@clisp.org>
16889
16890         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16891         cases.
16892
16893 2010-03-13  Bruno Haible  <bruno@clisp.org>
16894
16895         Test that gnulib does not break the standard C++ headers.
16896         * tests/test-locale-c++2.cc: New file.
16897         * modules/locale-tests (Files): Add it.
16898         (Makefile.am): Compile it for test-locale-c++.
16899         * tests/test-math-c++2.cc: New file.
16900         * modules/math-tests (Files): Add it.
16901         (Makefile.am): Compile it for test-math-c++.
16902         * tests/test-signal-c++2.cc: New file.
16903         * modules/signal-tests (Files): Add it.
16904         (Makefile.am): Compile it for test-signal-c++.
16905         * tests/test-stdio-c++2.cc: New file.
16906         * modules/stdio-tests (Files): Add it.
16907         (Makefile.am): Compile it for test-stdio-c++.
16908         * tests/test-stdlib-c++2.cc: New file.
16909         * modules/stdlib-tests (Files): Add it.
16910         (Makefile.am): Compile it for test-stdlib-c++.
16911         * tests/test-string-c++2.cc: New file.
16912         * modules/string-tests (Files): Add it.
16913         (Makefile.am): Compile it for test-string-c++.
16914         * tests/test-time-c++2.cc: New file.
16915         * modules/time-tests (Files): Add it.
16916         (Makefile.am): Compile it for test-time-c++.
16917         Reported by John W. Eaton <jwe@gnu.org>.
16918
16919 2010-03-13  Bruno Haible  <bruno@clisp.org>
16920
16921         * gnulib-tool (func_usage): Clarify which options are available for
16922         --create-testdir and --create-megatestdir.
16923
16924 2010-03-13  Bruno Haible  <bruno@clisp.org>
16925
16926         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16927         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16928         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16929         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16930         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16931         when appropriate.
16932         Reported by Jim Meyering.
16933
16934 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16935
16936         * gnulib-tool (func_import): Explain origin of code.
16937
16938 2010-03-12  Bruno Haible  <bruno@clisp.org>
16939
16940         Fix problem with automake's definition of CXXLINK.
16941         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16942         Reported by Simon Josefsson and Ludovic Courtès.
16943
16944 2010-03-12  Bruno Haible  <bruno@clisp.org>
16945
16946         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16947         stable releases.
16948
16949 2010-03-11  Bruno Haible  <bruno@clisp.org>
16950
16951         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16952         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16953         whether the system provides one variant or multiple variants of the
16954         function.
16955         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16956         C++ compilers.
16957         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16958         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16959         Reported by Jim Meyering.
16960
16961 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16962
16963         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16964
16965 2010-03-08  Bruno Haible  <bruno@clisp.org>
16966
16967         gnulib-tool: Add support for --libtool in --create-testdir.
16968         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16969         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16970
16971 2010-03-08  Eric Blake  <eblake@redhat.com>
16972
16973         gnulib-tool.texi: mention possibility of git submodule
16974         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16975         submodules.
16976         * doc/.gitignore: Ignore another generated file.
16977
16978 2010-03-08  Karl Berry  <karl@gnu.org>
16979
16980         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16981         of committing gnulib files while skipping others.
16982
16983 2010-03-07  Bruno Haible  <bruno@clisp.org>
16984
16985         Tests of module 'wctype' in C++ mode.
16986         * tests/test-wctype-c++.cc: New file.
16987         * modules/wctype-tests (Files): Add it and tests/signature.h.
16988         (Depends-on): Add ansi-c++-opt.
16989         (Makefile.am): Arrange to compile and run test-wctype-c++.
16990
16991         Tests of module 'wchar' in C++ mode.
16992         * tests/test-wchar-c++.cc: New file.
16993         * modules/wchar-tests (Files): Add it and tests/signature.h.
16994         (Depends-on): Add ansi-c++-opt.
16995         (Makefile.am): Arrange to compile and run test-wchar-c++.
16996         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16997         gl_MODULE_INDICATOR.
16998
16999         Tests of module 'unistd' in C++ mode.
17000         * tests/test-unistd-c++.cc: New file.
17001         * modules/unistd-tests (Files): Add it and tests/signature.h.
17002         (Depends-on): Add ansi-c++-opt.
17003         (Makefile.am): Arrange to compile and run test-unistd-c++.
17004         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17005         gl_MODULE_INDICATOR.
17006
17007         Tests of module 'time' in C++ mode.
17008         * tests/test-time-c++.cc: New file.
17009         * modules/time-tests (Files): Add it and tests/signature.h.
17010         (Depends-on): Add ansi-c++-opt.
17011         (Makefile.am): Arrange to compile and run test-time-c++.
17012         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17013
17014         Tests of module 'sys_time' in C++ mode.
17015         * tests/test-sys_time-c++.cc: New file.
17016         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17017         (Depends-on): Add ansi-c++-opt.
17018         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17019         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17020         gl_MODULE_INDICATOR.
17021
17022         Tests of module 'sys_stat' in C++ mode.
17023         * tests/test-sys_stat-c++.cc: New file.
17024         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17025         (Depends-on): Add ansi-c++-opt.
17026         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17027         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17028         gl_MODULE_INDICATOR.
17029
17030         Tests of module 'sys_socket' in C++ mode.
17031         * tests/test-sys_socket-c++.cc: New file.
17032         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17033         (Depends-on): Add ansi-c++-opt.
17034         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17035         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17036         gl_MODULE_INDICATOR.
17037
17038         Tests of module 'sys_select' in C++ mode.
17039         * tests/test-sys_select-c++.cc: New file.
17040         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17041         (Depends-on): Add ansi-c++-opt.
17042         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17043         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17044         gl_MODULE_INDICATOR.
17045
17046         Tests of module 'sys_ioctl' in C++ mode.
17047         * tests/test-sys_ioctl-c++.cc: New file.
17048         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17049         (Depends-on): Add ansi-c++-opt.
17050         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17051         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17052         gl_MODULE_INDICATOR.
17053
17054         Tests of module 'string' in C++ mode.
17055         * tests/test-string-c++.cc: New file.
17056         * modules/string-tests (Files): Add it and tests/signature.h.
17057         (Depends-on): Add ansi-c++-opt.
17058         (Makefile.am): Arrange to compile and run test-string-c++.
17059         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17060         gl_MODULE_INDICATOR.
17061
17062         Tests of module 'stdlib' in C++ mode.
17063         * tests/test-stdlib-c++.cc: New file.
17064         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17065         (Depends-on): Add ansi-c++-opt.
17066         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17067         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17068         gl_MODULE_INDICATOR.
17069
17070         Tests of module 'stdio' in C++ mode.
17071         * tests/test-stdio-c++.cc: New file.
17072         * modules/stdio-tests (Files): Add it and tests/signature.h.
17073         (Depends-on): Add ansi-c++-opt.
17074         (Makefile.am): Arrange to compile and run test-stdio-c++.
17075         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17076         gl_MODULE_INDICATOR.
17077
17078         Tests of module 'spawn' in C++ mode.
17079         * tests/test-spawn-c++.cc: New file.
17080         * modules/spawn-tests (Files): Add it and tests/signature.h.
17081         (Depends-on): Add ansi-c++-opt.
17082         (Makefile.am): Arrange to compile and run test-spawn-c++.
17083         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17084         gl_MODULE_INDICATOR.
17085
17086         Tests of module 'signal' in C++ mode.
17087         * tests/test-signal-c++.cc: New file.
17088         * modules/signal-tests (Files): Add it and tests/signature.h.
17089         (Depends-on): Add ansi-c++-opt.
17090         (Makefile.am): Arrange to compile and run test-signal-c++.
17091         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17092         gl_MODULE_INDICATOR.
17093
17094         Tests of module 'search' in C++ mode.
17095         * tests/test-search-c++.cc: New file.
17096         * modules/search-tests (Files): Add it and tests/signature.h.
17097         (Depends-on): Add ansi-c++-opt.
17098         (Makefile.am): Arrange to compile and run test-search-c++.
17099         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17100         gl_MODULE_INDICATOR.
17101
17102         Tests of module 'math' in C++ mode.
17103         * tests/test-math-c++.cc: New file.
17104         * modules/math-tests (Files): Add it and tests/signature.h.
17105         (Depends-on): Add ansi-c++-opt.
17106         (Makefile.am): Arrange to compile and run test-math-c++.
17107         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17108
17109         Tests of module 'locale' in C++ mode.
17110         * tests/test-locale-c++.cc: New file.
17111         * modules/locale-tests (Files): Add it and tests/signature.h.
17112         (Depends-on): Add ansi-c++-opt.
17113         (Makefile.am): Arrange to compile and run test-locale-c++.
17114         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17115         gl_MODULE_INDICATOR.
17116
17117         Tests of module 'langinfo' in C++ mode.
17118         * tests/test-langinfo-c++.cc: New file.
17119         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17120         (Depends-on): Add ansi-c++-opt.
17121         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17122         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17123         gl_MODULE_INDICATOR.
17124
17125         Tests of module 'iconv-h' in C++ mode.
17126         * tests/test-iconv-h-c++.cc: New file.
17127         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17128         (Depends-on): Add ansi-c++-opt.
17129         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17130
17131         Tests of module 'glob' in C++ mode.
17132         * tests/test-glob-c++.cc: New file.
17133         * modules/glob-tests (Files): Add it.
17134         (Depends-on): Add ansi-c++-opt.
17135         (Makefile.am): Arrange to compile and run test-glob-c++.
17136
17137         Tests of module 'fcntl-h' in C++ mode.
17138         * tests/test-fcntl-h-c++.cc: New file.
17139         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17140         (Depends-on): Add ansi-c++-opt.
17141         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17142         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17143         gl_MODULE_INDICATOR.
17144
17145         Tests of module 'dirent' in C++ mode.
17146         * tests/test-dirent-c++.cc: New file.
17147         * modules/dirent-tests (Files): Add it and tests/signature.h.
17148         (Depends-on): Add ansi-c++-opt.
17149         (Makefile.am): Arrange to compile and run test-dirent-c++.
17150         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17151         gl_MODULE_INDICATOR.
17152
17153         New module 'ansi-c++-opt'.
17154         * modules/ansi-c++-opt: New file.
17155         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17156
17157         Document C++ namespace mode.
17158         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17159
17160         wctype: Avoid #define replacements in C++ mode.
17161         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17162         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17163         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17164         In C++, define a namespaced alias symbol.
17165         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17166         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17167         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17168         rule.
17169
17170         wchar: Avoid #define replacements in C++ mode.
17171         * lib/wchar.in.h: Include c++defs.h.
17172         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17173         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17174         symbol.
17175         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17176         * modules/wchar (Depends-on): Add c++defs.
17177         (Makefile.am): Update wchar.h rule.
17178
17179         unistd: Avoid #define replacements in C++ mode.
17180         * lib/unistd.in.h: Include c++defs.h.
17181         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17182         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17183         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17184         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17185         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17186         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17187         symbol.
17188         (environ): Update.
17189         * modules/unistd (Depends-on): Add c++defs.
17190         (Makefile.am): Update unistd.h rule.
17191
17192         time: Avoid #define replacements in C++ mode.
17193         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17194         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17195         define a namespaced alias symbol.
17196         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17197         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17198         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17199         * modules/time (Depends-on): Add c++defs, warn-on-use.
17200         (Makefile.am): Update time.h rule.
17201         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17202         * modules/nanosleep (configure.ac): Likewise.
17203         * modules/strptime (configure.ac): Likewise.
17204         * modules/timegm (configure.ac): Likewise.
17205
17206         sys_time: Avoid #define replacements in C++ mode.
17207         * lib/sys_time.in.h: Include c++defs.h.
17208         (gettimeofday): In C++, define a namespaced alias symbol.
17209         * modules/sys_time (Depends-on): Add c++defs.
17210         (Makefile.am): Update sys/time.h rule.
17211
17212         sys_stat: Avoid #define replacements in C++ mode.
17213         * lib/sys_stat.in.h: Include c++defs.h.
17214         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17215         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17216         namespaced alias symbol.
17217         In C++, define a namespaced alias symbol.
17218         * modules/sys_stat (Depends-on): Add c++defs.
17219         (Makefile.am): Update sys/stat.h rule.
17220
17221         sys_socket: Avoid #define replacements in C++ mode.
17222         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17223         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17224         definitions also when the system has a <sys/socket.h>.
17225         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17226         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17227         In C++, define a namespaced alias symbol.
17228         * modules/sys_socket (Depends-on): Add c++defs.
17229         (Makefile.am): Update sys/socket.h rule.
17230
17231         sys_select: Avoid #define replacements in C++ mode.
17232         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17233         definitions also when the system has a <sys/select.h>.
17234         (select): In C++, define a namespaced alias symbol.
17235         * modules/sys_select (Depends-on): Add c++defs.
17236         (Makefile.am): Update sys/select.h rule.
17237
17238         sys_ioctl: Avoid #define replacements in C++ mode.
17239         * lib/sys_ioctl.in.h: Include c++defs.h.
17240         (ioctl): In C++, define a namespaced alias symbol.
17241         * modules/sys_ioctl (Depends-on): Add c++defs.
17242         (Makefile.am): Update sys/ioctl.h rule.
17243
17244         string: Avoid #define replacements in C++ mode.
17245         * lib/string.in.h: Include c++defs.h.
17246         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17247         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17248         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17249         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17250         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17251         * modules/string (Depends-on): Add c++defs.
17252         (Makefile.am): Update string.h rule.
17253
17254         stdlib: Avoid #define replacements in C++ mode.
17255         * lib/stdlib.in.h: Include c++defs.h.
17256         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17257         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17258         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17259         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17260         symbol.
17261         * modules/stdlib (Depends-on): Add c++defs.
17262         (Makefile.am): Update stdlib.h rule.
17263
17264         stdio: Avoid #define replacements in C++ mode.
17265         * lib/stdio.in.h: Include c++defs.h.
17266         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17267         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17268         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17269         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17270         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17271         namespaced alias symbol.
17272         * modules/stdio (Depends-on): Add c++defs.
17273         (Makefile.am): Update stdio.h rule.
17274
17275         spawn: Avoid #define replacements in C++ mode.
17276         * lib/spawn.in.h: Include c++defs.h.
17277         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17278         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17279         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17280         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17281         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17282         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17283         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17284         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17285         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17286         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17287         In C++, define a namespaced alias symbol.
17288         * modules/spawn (Depends-on): Add c++defs.
17289         (Makefile.am): Update spawn.h rule.
17290
17291         signal: Avoid #define replacements in C++ mode.
17292         * lib/signal.in.h: Include c++defs.h.
17293         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17294         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17295         namespaced alias symbol.
17296         * modules/signal (Depends-on): Add c++defs.
17297         (Makefile.am): Update signal.h rule.
17298
17299         search: Avoid #define replacements in C++ mode.
17300         * lib/search.in.h: Include c++defs.h.
17301         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17302         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17303         symbol.
17304         * modules/search (Depends-on): Add c++defs.
17305         (Makefile.am): Update search.h rule.
17306
17307         math: Avoid #define replacements in C++ mode.
17308         * lib/math.in.h: Include c++defs.h.
17309         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17310         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17311         trunc, truncl): In C++, define a namespaced alias symbol.
17312         * modules/math (Depends-on): Add c++defs.
17313         (Makefile.am): Update math.h rule.
17314
17315         locale: Avoid #define replacements in C++ mode.
17316         * lib/locale.in.h: Include c++defs.h.
17317         (duplocale): In C++, define a namespaced alias symbol.
17318         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17319         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17320         * modules/locale (Depends-on): Add c++defs.
17321         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17322
17323         langinfo: Avoid #define replacements in C++ mode.
17324         * lib/langinfo.in.h: Include c++defs.h.
17325         (nl_langinfo): In C++, define a namespaced alias symbol.
17326         * modules/langinfo (Depends-on): Add c++defs.
17327         (Makefile.am): Update langinfo.h rule.
17328
17329         iconv-h: Avoid #define replacements in C++ mode.
17330         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17331         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17332         symbol.
17333         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17334         whenever iconv is present.
17335         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17336         (Makefile.am): Update iconv.h rule.
17337
17338         glob: Avoid #define replacements in C++ mode.
17339         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17340         (_gl_glob_errfunc_fn): New type.
17341         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17342         symbol.
17343         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17344         (Makefile.am): Update glob.h rule.
17345
17346         fcntl-h: Avoid #define replacements in C++ mode.
17347         * lib/fcntl.in.h: Include c++defs.h.
17348         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17349         * modules/fcntl-h (Depends-on): Add c++defs.
17350         (Makefile.am): Update fcntl.h rule.
17351
17352         dirent: Avoid #define replacements in C++ mode.
17353         * lib/dirent.in.h: Include c++defs.h.
17354         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17355         namespaced alias symbol.
17356         (dirfd): Update declaration.
17357         * modules/dirent (Depends-on): Add c++defs.
17358         (Makefile.am): Update dirent.h rule.
17359
17360         ctype: Make it usable in C++ code.
17361         * lib/ctype.in.h: Include c++defs.h.
17362         (isblank): Declare as extern "C".
17363         * modules/ctype (Depends-on): Add c++defs.
17364         (Makefile.am): Update ctype.h rule.
17365
17366         New module 'c++defs'.
17367         * modules/c++defs: New file.
17368         * build-aux/c++defs.h: New file.
17369         Reported by John W. Eaton <jwe@gnu.org>.
17370
17371 2010-03-07  Bruno Haible  <bruno@clisp.org>
17372
17373         logb: Provide missing declaration for Cygwin.
17374         * lib/math.in.h (logb): New declaration.
17375         * m4/logb.m4: New file.
17376         * modules/logb (Files): Add m4/logb.m4.
17377         (Depends-on): Add math.
17378         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17379         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17381         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17382         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17383
17384 2010-03-07  Bruno Haible  <bruno@clisp.org>
17385
17386         Fix test-cond link error.
17387         * tests/test-cond.c: Include <stdio.h>.
17388
17389 2010-03-07  Bruno Haible  <bruno@clisp.org>
17390
17391         Fix test-dirent-safer link error.
17392         * modules/dirent-safer-tests (Makefile.am): Define
17393         test_dirent_safer_LDADD.
17394
17395 2010-03-07  Bruno Haible  <bruno@clisp.org>
17396
17397         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17398         among default module list.
17399
17400 2010-03-07  Bruno Haible  <bruno@clisp.org>
17401
17402         Fix link error on platforms with GNU libiconv.
17403         * modules/unistr/u8-strcoll-tests (Makefile): Define
17404         test_u8_strcoll_LDADD.
17405         * modules/unistr/u16-strcoll-tests (Makefile): Define
17406         test_u16_strcoll_LDADD.
17407         * modules/unistr/u32-strcoll-tests (Makefile): Define
17408         test_u32_strcoll_LDADD.
17409
17410 2010-03-07  Bruno Haible  <bruno@clisp.org>
17411
17412         Use POSIX declarations for socket functions.
17413         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17414         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17415         rpl_sendto): Change declaration to match POSIX.
17416         * lib/connect.c (rpl_connect): Likewise.
17417         * lib/accept.c (rpl_accept): Likewise.
17418         * lib/bind.c (rpl_bind): Likewise.
17419         * lib/getpeername.c (rpl_getpeername): Likewise.
17420         * lib/getsockname.c (rpl_getsockname): Likewise.
17421         * lib/recv.c (rpl_recv): Likewise.
17422         * lib/send.c (rpl_send): Likewise.
17423         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17424         * lib/sendto.c (rpl_sendto): Likewise.
17425
17426 2010-03-06  Bruno Haible  <bruno@clisp.org>
17427
17428         Clarify access, euidaccess, faccessat.
17429         * doc/posix-functions/faccessat.texi: Mention security problem under
17430         "Other problems", not "Portability problems".
17431         * doc/posix-functions/access.texi: Likewise. Mention a related security
17432         problem.
17433         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17434         * lib/euidaccess.c: Add comments about platforms.
17435         * lib/unistd.in.h (access, euidaccess): Add warnings.
17436
17437 2010-03-07  Bruno Haible  <bruno@clisp.org>
17438
17439         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17440         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17441         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17442         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17443         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17444         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17445         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17446         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17447         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17448         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17449         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17450         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17451         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17452         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17453         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17454         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17455         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17456         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17457         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17458         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17459         Likewise.
17460         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17461         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17462         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17463         Likewise.
17464         * tests/test-spawn.c (main): Make it work when
17465         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17466
17467 2010-03-07  Bruno Haible  <bruno@clisp.org>
17468
17469         Fix incorrect Makefile.am generation in German locale.
17470         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17471         Execute sed command with character range in C locale.
17472
17473 2010-03-06  Bruno Haible  <bruno@clisp.org>
17474
17475         Tests for module 'iconv-h'.
17476         * modules/iconv-h-tests: New file.
17477         * tests/test-iconv-h.c: New file.
17478
17479         New module 'iconv-h'.
17480         * modules/iconv-h: New file.
17481         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17482         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17483         (configure.ac): Remove gl_ICONV_H.
17484         (Makefile.am): Remove rule for iconv.h.
17485
17486 2010-03-06  Bruno Haible  <bruno@clisp.org>
17487
17488         More consistent naming of *.m4 files.
17489         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17490         * modules/wctype (Files): Update.
17491
17492         More consistent naming of *.m4 files.
17493         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17494         * modules/wchar (Files): Update.
17495
17496 2010-03-06  Jim Meyering  <meyering@redhat.com>
17497
17498         euidaccess: relax license to LGPLv2+
17499         * modules/euidaccess (License): Relax to LGPLv2+.
17500
17501 2010-03-06  Bruno Haible  <bruno@clisp.org>
17502
17503         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17504         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17505         (Makefile.am): Augment lib_SOURCES instead.
17506
17507 2010-03-04  Jim Meyering  <meyering@redhat.com>
17508
17509         utime: remove obsolete module
17510         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17511         unnecessary for years, and has been marked as obsolete for 10 months.
17512         * modules/utime: Remove file.
17513         * lib/utime.c: Remove file.
17514         * m4/utime.m4: Remove file.
17515         * m4/utimes-null.m4: Remove file.
17516         * doc/posix-functions/utime.texi (utime): Remove reference to
17517         the module.  Move the sole "fixed by gnulib" item into the
17518         "problems not fixed by Gnulib" list.
17519         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17520
17521 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17522
17523         * modules/exit (License): Relax license to LGPLv2+.
17524         (Status): Mark as obsolete.
17525         * NEWS: Mention deprecated 'exit' module.
17526         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17527         of now obsolete 'exit'.
17528
17529 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17530
17531         fts-lgpl: remove unused module
17532         * modules/fts-lgpl: Remove.
17533         * MODULES.html.sh (func_all_modules): Adjust.
17534         * check-module (find_included_lib_files): Adjust.
17535         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17536
17537 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17538
17539         copy-acl: enhance Solaris ACL error handling
17540         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17541         * lib/set-mode-acl.c (qset_acl): Likewise.
17542
17543 2010-03-02  Bruno Haible  <bruno@clisp.org>
17544
17545         spawn: Don't override the system defined values on FreeBSD 8.
17546         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17547         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17548         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17549         if HAVE_POSIX_SPAWN is 1.
17550         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17551
17552 2010-03-01  Bruno Haible  <bruno@clisp.org>
17553
17554         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17555         regarding Automake.
17556
17557 2010-02-25  Bruno Haible  <bruno@clisp.org>
17558
17559         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17560         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17561         setting, not afterwards.
17562         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17563
17564 2010-02-24  Eric Blake  <eblake@redhat.com>
17565
17566         bootstrap, git-version-gen: use timestamp
17567         * build-aux/git-version-gen (scriptversion): Force UTC.
17568         * build-aux/bootstrap (scriptversion): New variable.
17569
17570         bootstrap: allow older git
17571         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17572         older than 1.6.4.  Requested by the libvirt project.
17573
17574 2010-02-23  Eric Blake  <eblake@redhat.com>
17575
17576         warn-on-use: work with old autoconf
17577         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17578         AS_VAR semantics of autoconf 2.60.
17579         Reported by Bruno Haible.
17580
17581         bootstrap: improve some comments
17582         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17583         clarification comments.
17584
17585         gettimeofday: provide correct function
17586         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17587         when replacement is declared, otherwise provide gettimeofday.
17588         Reported by Michael Goffioul.
17589
17590 2010-02-23  Jim Meyering  <meyering@redhat.com>
17591
17592         lib-ignore: relax license to "unlimited", not LGPLv2+
17593         * modules/lib-ignore (License): Relax to "unlimited".
17594
17595 2010-02-23  Jim Meyering  <meyering@redhat.com>
17596
17597         lib-ignore: relax license to LGPLv2+
17598         * modules/lib-ignore (License): Relax to LGPLv2+.
17599
17600 2010-02-22  Eric Blake  <eblake@redhat.com>
17601
17602         lseek: avoid bash 3.2 broken pipe bug
17603         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17604         warning from bash 3.2.
17605         Reported by Ben Pfaff, with analysis from Bruno Haible.
17606
17607         bootstrap: support non-FSF copyright holder
17608         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17609         bootstrap.conf override of COPYRIGHT_HOLDER.
17610         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17611
17612         bootstrap: interoperate with gettext 0.14.1
17613         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17614
17615         bootstrap: allow for alternate submodule location
17616         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17617         hardcoding submodule location.
17618         (gnulib_mk): Allow direct use of Makefile.am.
17619
17620         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17621         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17622         rather than reconfiguring where the submodule points.
17623
17624         gettimeofday: restore support for platforms that lack function
17625         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17626         replacement if function is missing.
17627         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17628         * modules/sys_time (Makefile.am): Substitute it.
17629         * lib/sys_time.in.h (gettimeofday): Check it.
17630         Reported by Michael Goffioul.
17631
17632 2010-02-21  Bruno Haible  <bruno@clisp.org>
17633
17634         * lib/stdio.in.h (obstack_printf): Fix typo.
17635
17636 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17637
17638         vc-list-files: use bzr ls's -R option
17639         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17640         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17641
17642 2010-02-21  Jim Meyering  <meyering@redhat.com>
17643
17644         init.sh: fix EXEEXT shims to work also for names like test-prog
17645         * tests/init.sh: Re-exec a better shell, when needed.
17646         If the current shell lacks support for posix $(...), an init.sh-using
17647         test will now try to find a shell that supports that.  If EXEEXT is
17648         nonempty, we also require support for hyphen-in-alias-name and shell
17649         substitutions like ${var#glob}.  Failure to find such a shell results
17650         in a skipped test.
17651
17652 2010-02-21  Bruno Haible  <bruno@clisp.org>
17653
17654         Really work around around "broken pipe" error message from bash 3.2.
17655         * gnulib-tool (func_reset_sigpipe): Remove function.
17656         (echo): In bash 3.2, define to a function that uses printf.
17657         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17658
17659 2010-02-20  Bruno Haible  <bruno@clisp.org>
17660
17661         Restore support for automake 1.9.6 with autoconf 2.61.
17662         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17663         Reported by James Youngman <jay@gnu.org>.
17664
17665 2010-02-20  Bruno Haible  <bruno@clisp.org>
17666
17667         Improve *printf warning condition.
17668         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17669         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17670         and the function is overridden due to SIGPIPE emulation.
17671
17672 2010-02-20  Bruno Haible  <bruno@clisp.org>
17673
17674         * lib/stdio.in.h: Tweak comments.
17675
17676 2010-02-19  Bruno Haible  <bruno@clisp.org>
17677
17678         Make it easier to find modules. New gnulib-tool option '--find'.
17679         * gnulib-tool: New option --find.
17680         (func_usage): Document it.
17681         (func_sanitize_modulelist): New function, extracted from
17682         func_all_modules.
17683         (func_all_modules): Invoke it.
17684         * doc/gnulib-tool.texi (Which modules?): New node.
17685
17686 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17687
17688         * lib/sys_select.in.h: Provide select replacement even if
17689         sys/select.h exists on a system, for Interix.
17690
17691 2010-02-18  Jim Meyering  <meyering@redhat.com>
17692
17693         init.sh: don't use $(...) just yet
17694         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17695         to accommodate e.g., Solaris' /bin/sh.
17696
17697 2010-02-17  Bruno Haible  <bruno@clisp.org>
17698
17699         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17700         Reported by Ludovic Courtès <ludo@gnu.org>.
17701
17702 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17703
17704         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17705         linking with -lintl.
17706
17707 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17708
17709         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17710         if not provided by the system's netdb.h.  Reported by
17711         ludo@gnu.org (Ludovic Courtès).
17712
17713 2010-02-15  Jim Meyering  <meyering@redhat.com>
17714
17715         init.sh: improve portability and efficiency
17716         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17717         "dummy" in a for loop.
17718         Use '!', not '^' to select the complement of a character set used
17719         in a "case" statement.
17720         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17721         Suggestions from Eric Blake.
17722
17723         init.sh: automatically accommodate programs with the .exe suffix
17724         Automatically arrange for an invocation of "prog" to execute the
17725         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17726         may use the simpler "prog", yet still work when built on a system
17727         that requires specifying the added suffix.
17728         Do this by constructing a function named "prog" that invokes
17729         "prog.exe" for each .exe file in selected directories.
17730         * tests/init.sh (find_exe_basenames_): New function.
17731         (create_exe_shim_functions_): New function.
17732         (path_prepend_): Use it.
17733
17734         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17735         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17736         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17737
17738 2010-02-14  Jim Meyering  <meyering@redhat.com>
17739
17740         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17741         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17742         (sc_prohibit_hash_pjw_without_use): New rule.
17743
17744         maint.mk: allow the default upload destination dir to be overridden
17745         * top/maint.mk (upload_dest_dir_): Define with a default that
17746         preserves the status quo.
17747         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17748         Reported by Peter Simons.
17749
17750         maint.mk: prohibit inclusion of "hash.h" without_use
17751         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17752
17753 2010-02-10  Jim Meyering  <meyering@redhat.com>
17754
17755         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17756         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17757
17758 2010-02-09  Eric Blake  <ebb9@byu.net>
17759         and Bruno Haible  <bruno@clisp.org>
17760
17761         obstack-printf-posix: ensure declaration
17762         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17763         extracted from gl_FUNC_OBSTACK_PRINTF.
17764         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17765         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17766         Likewise.
17767         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17768         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17769         0.
17770
17771 2010-02-08  Bruno Haible  <bruno@clisp.org>
17772
17773         gnulib-tool: Fix typo in 2010-02-07 commit.
17774         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17775         Reported by Eric Blake.
17776
17777 2010-02-07  Bruno Haible  <bruno@clisp.org>
17778
17779         gnulib-tool: Fix up caching patches.
17780         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17781         option --no-cache. Use associative arrays when supported by the shell.
17782         (sed_comments): New variable.
17783         (modcache): Renamed from do_cache.
17784         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17785         abbreviate unnecessarily.
17786         (have_associative): New variable.
17787         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17788         way also for ksh and zsh.
17789         (func_init_sed_convert_to_cache_statements): New function, extracted
17790         from func_cache_lookup_module. Add support for associative arrays.
17791         Don't set the c_MODULE_cached variable here. Ignore all lines before
17792         the first field header. Remove only the final newline, not all trailing
17793         newlines. Support empty fields correctly. Limit the use of 'eval' to
17794         assignments.
17795         (func_get_description, func_get_status, func_get_notice,
17796         func_get_applicability, func_get_filelist, func_get_dependencies,
17797         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17798         func_get_automake_snippet, func_get_include_directive,
17799         func_get_link_directive, func_get_license, func_get_maintainer):
17800         Update documentation. List the unoptimized code first. Add support for
17801         associative arrays. Limit the use of 'eval' to assignments.
17802         (func_get_applicability): Undo stylistic pessimisations.
17803         (func_get_automake_snippet, func_get_include_directive): Reduce code
17804         duplication.
17805         (func_modules_transitive_closure, func_modules_add_dummy,
17806         func_modules_notice, func_modules_to_filelist, func_add_file,
17807         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17808         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17809         func_create_testdir, func_create_megatestdir): Update documentation.
17810
17811 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17812
17813         * gnulib-tool (func_cache_lookup_module): Store the module name
17814         belonging to the cache variable; error out if two different
17815         module names map to the same cache variable name.
17816
17817 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17818
17819         gnulib-tool: Make caching optional.
17820         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17821         Update matching short versions of --no-changelog.
17822         (func_usage): Update.
17823         (sed_extract_cache_prog): Renamed from ...
17824         (sed_extract_prog): ... this; revert to old extraction script.
17825         (func_get_description, func_get_status)
17826         (func_get_notice, func_get_applicability, func_get_filelist)
17827         (func_get_dependencies, func_get_autoconf_early_snippet)
17828         (func_get_autoconf_snippet, func_get_automake_snippet)
17829         (func_get_include_directive, func_get_link_directive)
17830         (func_get_license, func_get_maintainer): If $do_cache is false,
17831         use old, non-caching extraction scripts.
17832         Suggestion by Bruno Haible.
17833
17834 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17835
17836         gnulib-tool: cache module metainformation.
17837         * gnulib-tool (sed_extract_prog): Match newline before each
17838         header, and rewrite header to a shell variable suffix.
17839         (func_cache_var, func_cache_lookup_module): New functions,
17840         to turn a module name into a cache variable prefix, and to
17841         look up and cache module metainformation.
17842         (func_get_description, func_get_status)
17843         (func_get_notice, func_get_applicability, func_get_filelist)
17844         (func_get_dependencies, func_get_autoconf_early_snippet)
17845         (func_get_autoconf_snippet, func_get_automake_snippet)
17846         (func_get_include_directive, func_get_link_directive)
17847         (func_get_license, func_get_maintainer): Use
17848         func_cache_lookup_module.
17849
17850 2010-02-07  Bruno Haible  <bruno@clisp.org>
17851
17852         fnctl: Fix missing dependency.
17853         * modules/fcntl (Depends-on): Add getdtablesize.
17854         Reported by John W. Eaton <jwe@gnu.org>.
17855
17856 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17857
17858         Argp: fix recognition of short alias options.
17859
17860         * lib/argp-parse.c (convert_options): Fix improper use of
17861         `|' between character values.
17862         * tests/test-argp.c (group1_option): New alias option
17863         --read (-r).
17864         (group1_parser): Special handling for 'r'.
17865         (test15): New test case.
17866         (test_fun): Add test15.
17867         * tests/test-argp-2.sh: Update expected --help and --usage
17868         outputs.
17869
17870 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17871
17872         * tests/test-argp.c: Fix indentation.
17873
17874 2010-02-04  Eric Blake  <ebb9@byu.net>
17875
17876         gettimeofday: expose type of second argument
17877         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17878         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17879         * tests/test-gettimeofday.c: Use it to silence warning.
17880         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17881         the issue.
17882
17883 2010-02-03  Jim Meyering  <meyering@redhat.com>
17884
17885         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17886         * lib/regcomp.c (TYPE_SIGNED): Define.
17887         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17888
17889         regcomp.c: avoid a new -Wshadow warning
17890         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17891
17892 2010-02-01  Jim Meyering  <meyering@redhat.com>
17893
17894         removing useless parentheses in cpp #define directives
17895         For motivation, see commit c0221df4, "define STREQ(a,b)
17896         consistently, removing useless parentheses"
17897         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17898         * lib/mountlist.c (MNT_IGNORE): Likewise.
17899         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17900
17901 2010-02-01  Eric Blake  <ebb9@byu.net>
17902
17903         sys_time: use link-warning
17904         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17905         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17906         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17907         * modules/sys_time (Depends-on): Add warn-on-use.
17908         (Makefile.am): Always build replacement.
17909         (configure.ac): Update substitutions.
17910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17911         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17912         bother with SYS_TIME_H.
17913         * modules/gettimeofday (configure.ac): Declare indicator.
17914         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17915         in use.
17916
17917         closein-tests: silence compiler warning
17918         * tests/test-closein.c (main): Ignore fread result.
17919         * modules/closein-tests (Depends-on): Add ignore-value.
17920
17921         tests: silence warning about system return
17922         * tests/test-areadlink-with-size.c (main): Ignore system result.
17923         * tests/test-areadlink.c (main): Likewise.
17924         * tests/test-areadlinkat-with-size.c (main): Likewise.
17925         * tests/test-areadlinkat.c (main): Likewise.
17926         * tests/test-canonicalize-lgpl.c (main): Likewise.
17927         * tests/test-canonicalize.c (main): Likewise.
17928         * tests/test-chown.c (main): Likewise.
17929         * tests/test-fchownat.c (main): Likewise.
17930         * tests/test-fdutimensat.c (main): Likewise.
17931         * tests/test-fstatat.c (main): Likewise.
17932         * tests/test-futimens.c (main): Likewise.
17933         * tests/test-lchown.c (main): Likewise.
17934         * tests/test-link.c (main): Likewise.
17935         * tests/test-linkat.c (main): Likewise.
17936         * tests/test-lstat.c (main): Likewise.
17937         * tests/test-mkdir.c (main): Likewise.
17938         * tests/test-mkdirat.c (main): Likewise.
17939         * tests/test-mkfifo.c (main): Likewise.
17940         * tests/test-mkfifoat.c (main): Likewise.
17941         * tests/test-mknod.c (main): Likewise.
17942         * tests/test-readlink.c (main): Likewise.
17943         * tests/test-remove.c (main): Likewise.
17944         * tests/test-rename.c (main): Likewise.
17945         * tests/test-renameat.c (main): Likewise.
17946         * tests/test-rmdir.c (main): Likewise.
17947         * tests/test-symlink.c (main): Likewise.
17948         * tests/test-symlinkat.c (main): Likewise.
17949         * tests/test-unlink.c (main): Likewise.
17950         * tests/test-unlinkat.c (main): Likewise.
17951         * tests/test-utimens.c (main): Likewise.
17952         * tests/test-utimensat.c (main): Likewise.
17953         * modules/areadlink-tests (Depends-on): Add ignore-value.
17954         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17955         * modules/areadlinkat-tests (Depends-on): Likewise.
17956         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17957         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17958         * modules/canonicalize-tests (Depends-on): Likewise.
17959         * modules/chown-tests (Depends-on): Likewise.
17960         * modules/fdutimensat-tests (Depends-on): Likewise.
17961         * modules/futimens-tests (Depends-on): Likewise.
17962         * modules/lchown-tests (Depends-on): Likewise.
17963         * modules/link-tests (Depends-on): Likewise.
17964         * modules/linkat-tests (Depends-on): Likewise.
17965         * modules/lstat-tests (Depends-on): Likewise.
17966         * modules/mkdir-tests (Depends-on): Likewise.
17967         * modules/mkfifo-tests (Depends-on): Likewise.
17968         * modules/mkfifoat-tests (Depends-on): Likewise.
17969         * modules/mknod-tests (Depends-on): Likewise.
17970         * modules/openat-tests (Depends-on): Likewise.
17971         * modules/readlink-tests (Depends-on): Likewise.
17972         * modules/remove-tests (Depends-on): Likewise.
17973         * modules/rename-tests (Depends-on): Likewise.
17974         * modules/renameat-tests (Depends-on): Likewise.
17975         * modules/rmdir-tests (Depends-on): Likewise.
17976         * modules/symlink-tests (Depends-on): Likewise.
17977         * modules/symlinkat-tests (Depends-on): Likewise.
17978         * modules/unlink-tests (Depends-on): Likewise.
17979         * modules/utimens-tests (Depends-on): Likewise.
17980         * modules/utimensat-tests (Depends-on): Likewise.
17981
17982 2010-01-31  Bruno Haible  <bruno@clisp.org>
17983
17984         Perform the same test for many <math.h> functions.
17985         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17986         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17987         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17988         of gl_MATHFUNC.
17989         * modules/acos (configure.ac): Likewise.
17990         * modules/asin (configure.ac): Likewise.
17991         * modules/atan (configure.ac): Likewise.
17992         * modules/atan2 (configure.ac): Likewise.
17993         * modules/cbrt (configure.ac): Likewise.
17994         * modules/copysign (configure.ac): Likewise.
17995         * modules/cos (configure.ac): Likewise.
17996         * modules/cosh (configure.ac): Likewise.
17997         * modules/erf (configure.ac): Likewise.
17998         * modules/erfc (configure.ac): Likewise.
17999         * modules/exp (configure.ac): Likewise.
18000         * modules/fmod (configure.ac): Likewise.
18001         * modules/hypot (configure.ac): Likewise.
18002         * modules/j0 (configure.ac): Likewise.
18003         * modules/j1 (configure.ac): Likewise.
18004         * modules/jn (configure.ac): Likewise.
18005         * modules/lgamma (configure.ac): Likewise.
18006         * modules/log (configure.ac): Likewise.
18007         * modules/log10 (configure.ac): Likewise.
18008         * modules/log1p (configure.ac): Likewise.
18009         * modules/pow (configure.ac): Likewise.
18010         * modules/remainder (configure.ac): Likewise.
18011         * modules/sin (configure.ac): Likewise.
18012         * modules/sinh (configure.ac): Likewise.
18013         * modules/tan (configure.ac): Likewise.
18014         * modules/tanh (configure.ac): Likewise.
18015         * modules/y0 (configure.ac): Likewise.
18016         * modules/y1 (configure.ac): Likewise.
18017         * modules/yn (configure.ac): Likewise.
18018         Suggested by Paolo Bonzini.
18019
18020 2010-01-31  Bruno Haible  <bruno@clisp.org>
18021
18022         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18023
18024 2010-01-31  Bruno Haible  <bruno@clisp.org>
18025
18026         Work around getdelim() bug on FreeBSD 8.0.
18027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18028         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18029         not work.
18030         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18031         is 1.
18032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18033         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18034         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18035         a non-zero size.
18036         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18037
18038 2010-01-31  Bruno Haible  <bruno@clisp.org>
18039
18040         Work around getline() bug on FreeBSD 8.0.
18041         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18042         and a non-zero size.
18043         * tests/test-getline.c (main): Likewise.
18044         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18045         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18046
18047 2010-01-28  Eric Blake  <ebb9@byu.net>
18048
18049         regex: fix build failure
18050         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18051         platforms.
18052
18053 2010-01-28  Jim Meyering  <meyering@redhat.com>
18054
18055         regex: do not ignore memory allocation failure
18056         * lib/regex_internal.c (create_cd_newstate): Detect
18057         re_node_set_init_copy failure.   Extracted from glibc commit
18058         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18059
18060         regex: sync more white-space changes from libc
18061         * lib/regex_internal.c: White-space only changes.
18062         * lib/regexec.c: Likewise.
18063
18064         regex: add many uses of __attribute_warn_unused_result__
18065         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18066         * lib/regexec.c: Likewise.
18067         Extracted from a messy glibc commit.
18068
18069         regcomp.c: spelling and merge-artifact from glibc
18070         * lib/regcomp.c: Merge remainder of glibc's
18071         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18072
18073         regcomp.c: sync white-space changes from glibc
18074         * lib/regcomp.c: Merge to accommodate white space
18075         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18076
18077         regcomp.c: do not ignore internal return values
18078         * lib/regcomp.c: Do not ignore internal return values.
18079         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18080         but without its white-space changes and spelling fixes.
18081
18082         regex_internal.h: define __attribute_warn_unused_result__
18083         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18084
18085         maint: add a syntax-check rule to check for vulnerable Makefile.in
18086         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18087
18088 2010-01-27  Jim Meyering  <meyering@redhat.com>
18089
18090         ncftpput-ftp: clean up spaces
18091         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18092         Remove trailing blanks.
18093
18094 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18095
18096         * build-aux/git-version-gen: Fix copyright statement.
18097         * build-aux/gnupload: Likewise.
18098         * tests/test-arcfour.c: Likewise.
18099         * tests/test-arctwo.c: Likewise.
18100         * tests/test-count-one-bits.c: Likewise.
18101         * tests/test-crc.c: Likewise.
18102         * tests/test-des.c: Likewise.
18103         * tests/test-gc-arcfour.c: Likewise.
18104         * tests/test-gc-arctwo.c: Likewise.
18105         * tests/test-gc-des.c: Likewise.
18106         * tests/test-gc-hmac-md5.c: Likewise.
18107         * tests/test-gc-hmac-sha1.c: Likewise.
18108         * tests/test-gc-md2.c: Likewise.
18109         * tests/test-gc-md4.c: Likewise.
18110         * tests/test-gc-md5.c: Likewise.
18111         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18112         * tests/test-gc-rijndael.c: Likewise.
18113         * tests/test-gc-sha1.c: Likewise.
18114         * tests/test-gc.c: Likewise.
18115         * tests/test-gethostname.c: Likewise.
18116         * tests/test-gettimeofday.c: Likewise.
18117         * tests/test-hash.c: Likewise.
18118         * tests/test-hmac-md5.c: Likewise.
18119         * tests/test-hmac-sha1.c: Likewise.
18120         * tests/test-md2.c: Likewise.
18121         * tests/test-md4.c: Likewise.
18122         * tests/test-md5.c: Likewise.
18123         * tests/test-memchr.c: Likewise.
18124         * tests/test-memchr2.c: Likewise.
18125         * tests/test-memcmp.c: Likewise.
18126         * tests/test-memmem.c: Likewise.
18127         * tests/test-memrchr.c: Likewise.
18128         * tests/test-rawmemchr.c: Likewise.
18129         * tests/test-read-file.c: Likewise.
18130         * tests/test-rijndael.c: Likewise.
18131         * tests/test-sockets.c: Likewise.
18132         * tests/test-strchrnul.c: Likewise.
18133         * tests/test-strstr.c: Likewise.
18134         * tests/test-strtod.c: Likewise.
18135         * build-aux/ncftpput-ftp: Likewise.
18136
18137 2010-01-26  Eric Blake  <ebb9@byu.net>
18138
18139         ignore-value: update recommended header name
18140         * modules/ignore-value (Include): Only use <> for headers that
18141         exist in glibc.
18142
18143 2010-01-26  Jim Meyering  <meyering@redhat.com>
18144
18145         test-userspec.c: avoid compiler warnings
18146         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18147         and "initialization discards qualifiers..." warnings.
18148         Put the first "uid" in its own scope, and make char* members "const".
18149
18150 2010-01-25  Bruno Haible  <bruno@clisp.org>
18151
18152         gnulib-tool: Make warning diagnostics consistent.
18153         * gnulib-tool (func_warning): New function.
18154         Use it everywhere where gnulib-tool produces output to stderr and it is
18155         not a fatal error.
18156
18157 2010-01-25  Bruno Haible  <bruno@clisp.org>
18158
18159         Fix test dependencies.
18160         * modules/xstrtol-tests (Depends-on): Add inttypes.
18161         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18162
18163 2010-01-25 Pádraig Brady <P@draigBrady.com>
18164
18165         syntax-check: detect incorrect boolean macro values in config.h
18166         * modules/maintainer-makefile (configure.ac): Parameterize the location
18167         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18168         The logic is from Eric Blake and the location indicated by Jim Meyering.
18169         Note the more natural CONFIG_HEADER name is prohibited by automake
18170         for backwards compatibility reasons.
18171         * top/maint.mk (sc_Wundef_boolean): New rule.
18172
18173 2010-01-25  Jim Meyering  <meyering@redhat.com>
18174
18175         bootstrap: detect MacOS 10.6's shasum, too
18176         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18177         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18178
18179 2010-01-23  Jim Meyering  <meyering@redhat.com>
18180
18181         xstrtoll: new module
18182         * modules/xstrtoll: New file.
18183         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18184         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18185         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18186         ./configure fails if you use this module and lack "long long".
18187         * modules/xstrtoll-tests: New module.
18188         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18189         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18190         new init.sh-based test framework.
18191
18192 2010-01-24  Bruno Haible  <bruno@clisp.org>
18193
18194         Tests for module 'yn'.
18195         * modules/yn-tests: New file.
18196         * tests/test-yn.c: New file.
18197
18198         Tests for module 'y1'.
18199         * modules/y1-tests: New file.
18200         * tests/test-y1.c: New file.
18201
18202         Tests for module 'y0'.
18203         * modules/y0-tests: New file.
18204         * tests/test-y0.c: New file.
18205
18206         Tests for module 'tanh'.
18207         * modules/tanh-tests: New file.
18208         * tests/test-tanh.c: New file.
18209
18210         Tests for module 'tan'.
18211         * modules/tan-tests: New file.
18212         * tests/test-tan.c: New file.
18213
18214         Tests for module 'sqrt'.
18215         * modules/sqrt-tests: New file.
18216         * tests/test-sqrt.c: New file.
18217
18218         Tests for module 'sinh'.
18219         * modules/sinh-tests: New file.
18220         * tests/test-sinh.c: New file.
18221
18222         Tests for module 'sin'.
18223         * modules/sin-tests: New file.
18224         * tests/test-sin.c: New file.
18225
18226         Tests for module 'rint'.
18227         * modules/rint-tests: New file.
18228         * tests/test-rint.c: New file.
18229
18230         Tests for module 'remainder'.
18231         * modules/remainder-tests: New file.
18232         * tests/test-remainder.c: New file.
18233
18234         Tests for module 'pow'.
18235         * modules/pow-tests: New file.
18236         * tests/test-pow.c: New file.
18237
18238         Tests for module 'nextafter'.
18239         * modules/nextafter-tests: New file.
18240         * tests/test-nextafter.c: New file.
18241
18242         Tests for module 'modf'.
18243         * modules/modf-tests: New file.
18244         * tests/test-modf.c: New file.
18245
18246         Tests for module 'logb'.
18247         * modules/logb-tests: New file.
18248         * tests/test-logb.c: New file.
18249
18250         Tests for module 'log1p'.
18251         * modules/log1p-tests: New file.
18252         * tests/test-log1p.c: New file.
18253
18254         Tests for module 'log10'.
18255         * modules/log10-tests: New file.
18256         * tests/test-log10.c: New file.
18257
18258         Tests for module 'log'.
18259         * modules/log-tests: New file.
18260         * tests/test-log.c: New file.
18261
18262         Tests for module 'lgamma'.
18263         * modules/lgamma-tests: New file.
18264         * tests/test-lgamma.c: New file.
18265
18266         Tests for module 'ldexp'.
18267         * modules/ldexp-tests: New file.
18268         * tests/test-ldexp.c: New file.
18269
18270         Tests for module 'jn'.
18271         * modules/jn-tests: New file.
18272         * tests/test-jn.c: New file.
18273
18274         Tests for module 'j1'.
18275         * modules/j1-tests: New file.
18276         * tests/test-j1.c: New file.
18277
18278         Tests for module 'j0'.
18279         * modules/j0-tests: New file.
18280         * tests/test-j0.c: New file.
18281
18282         Tests for module 'hypot'.
18283         * modules/hypot-tests: New file.
18284         * tests/test-hypot.c: New file.
18285
18286         Tests for module 'fmod'.
18287         * modules/fmod-tests: New file.
18288         * tests/test-fmod.c: New file.
18289
18290         Tests for module 'fabs'.
18291         * modules/fabs-tests: New file.
18292         * tests/test-fabs.c: New file.
18293
18294         Tests for module 'exp'.
18295         * modules/exp-tests: New file.
18296         * tests/test-exp.c: New file.
18297
18298         Tests for module 'erfc'.
18299         * modules/erfc-tests: New file.
18300         * tests/test-erfc.c: New file.
18301
18302         Tests for module 'erf'.
18303         * modules/erf-tests: New file.
18304         * tests/test-erf.c: New file.
18305
18306         Tests for module 'cosh'.
18307         * modules/cosh-tests: New file.
18308         * tests/test-cosh.c: New file.
18309
18310         Tests for module 'cos'.
18311         * modules/cos-tests: New file.
18312         * tests/test-cos.c: New file.
18313
18314         Tests for module 'copysign'.
18315         * modules/copysign-tests: New file.
18316         * tests/test-copysign.c: New file.
18317
18318         Tests for module 'cbrt'.
18319         * modules/cbrt-tests: New file.
18320         * tests/test-cbrt.c: New file.
18321
18322         Tests for module 'atan2'.
18323         * modules/atan2-tests: New file.
18324         * tests/test-atan2.c: New file.
18325
18326         Tests for module 'atan'.
18327         * modules/atan-tests: New file.
18328         * tests/test-atan.c: New file.
18329
18330         Tests for module 'asin'.
18331         * modules/asin-tests: New file.
18332         * tests/test-asin.c: New file.
18333
18334         Tests for module 'acos'.
18335         * modules/acos-tests: New file.
18336         * tests/test-acos.c: New file.
18337
18338 2010-01-24  Bruno Haible  <bruno@clisp.org>
18339
18340         Fix tests for common <math.h> functions.
18341         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18342         code snippet that references the function pointer, rather than merely
18343         calling the function. Substitute the FUNC_LIBM variable.
18344         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18345         * modules/acos (configure.ac): Likewise.
18346         * modules/asin (configure.ac): Likewise.
18347         * modules/atan (configure.ac): Likewise.
18348         * modules/atan2 (configure.ac): Likewise.
18349         * modules/cbrt (configure.ac): Likewise.
18350         * modules/copysign (configure.ac): Likewise.
18351         * modules/cos (configure.ac): Likewise.
18352         * modules/cosh (configure.ac): Likewise.
18353         * modules/erf (configure.ac): Likewise.
18354         * modules/erfc (configure.ac): Likewise.
18355         * modules/exp (configure.ac): Likewise.
18356         * modules/fabs (configure.ac): Likewise.
18357         * modules/fmod (configure.ac): Likewise.
18358         * modules/hypot (configure.ac): Likewise.
18359         * modules/j0 (configure.ac): Likewise.
18360         * modules/j1 (configure.ac): Likewise.
18361         * modules/jn (configure.ac): Likewise.
18362         * modules/ldexp (configure.ac): Likewise.
18363         * modules/lgamma (configure.ac): Likewise.
18364         * modules/log (configure.ac): Likewise.
18365         * modules/log10 (configure.ac): Likewise.
18366         * modules/log1p (configure.ac): Likewise.
18367         * modules/logb (configure.ac): Likewise.
18368         * modules/modf (configure.ac): Likewise.
18369         * modules/nextafter (configure.ac): Likewise.
18370         * modules/pow (configure.ac): Likewise.
18371         * modules/remainder (configure.ac): Likewise.
18372         * modules/rint (configure.ac): Likewise.
18373         * modules/sin (configure.ac): Likewise.
18374         * modules/sinh (configure.ac): Likewise.
18375         * modules/tan (configure.ac): Likewise.
18376         * modules/tanh (configure.ac): Likewise.
18377         * modules/y0 (configure.ac): Likewise.
18378         * modules/y1 (configure.ac): Likewise.
18379         * modules/yn (configure.ac): Likewise.
18380
18381 2010-01-24  Bruno Haible  <bruno@clisp.org>
18382
18383         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18384         * tests/test-acosl.c (x): New variable.
18385         (main): Store argument in x and fetch it from x.
18386         * tests/test-asinl.c (x): New variable.
18387         (main): Store argument in x and fetch it from x.
18388         * tests/test-atanl.c (x): New variable.
18389         (main): Store argument in x and fetch it from x.
18390         * tests/test-cosl.c (x): New variable.
18391         (main): Store argument in x and fetch it from x.
18392         * tests/test-expl.c (x): New variable.
18393         (main): Store argument in x and fetch it from x.
18394         * tests/test-logl.c (x): New variable.
18395         (main): Store argument in x and fetch it from x.
18396         * tests/test-sinl.c (x): New variable.
18397         (main): Store argument in x and fetch it from x.
18398         * tests/test-sqrtl.c (x): New variable.
18399         (main): Store argument in x and fetch it from x.
18400         * tests/test-tanl.c (x): New variable.
18401         (main): Store argument in x and fetch it from x.
18402
18403 2010-01-24  Bruno Haible  <bruno@clisp.org>
18404
18405         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18406         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18407         assignments to the initial TESTS_ENVIRONMENT.
18408         * doc/gnulib.texi (Unit test modules): Document it.
18409         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18410         TESTS_ENVIRONMENT.
18411         * modules/btowc-tests (Makefile.am): Likewise.
18412         * modules/c-stack-tests (Makefile.am): Likewise.
18413         * modules/c-strcase-tests (Makefile.am): Likewise.
18414         * modules/copy-file-tests (Makefile.am): Likewise.
18415         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18416         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18417         * modules/mbrtowc-tests (Makefile.am): Likewise.
18418         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18419         * modules/mbscasestr-tests (Makefile.am): Likewise.
18420         * modules/mbschr-tests (Makefile.am): Likewise.
18421         * modules/mbscspn-tests (Makefile.am): Likewise.
18422         * modules/mbsinit-tests (Makefile.am): Likewise.
18423         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18424         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18425         * modules/mbspbrk-tests (Makefile.am): Likewise.
18426         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18427         * modules/mbsrchr-tests (Makefile.am): Likewise.
18428         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18429         * modules/mbsspn-tests (Makefile.am): Likewise.
18430         * modules/mbsstr-tests (Makefile.am): Likewise.
18431         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18432         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18433         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18434         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18435         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18436         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18437         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18438         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18439         * modules/wcrtomb-tests (Makefile.am): Likewise.
18440         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18441         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18442         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18443         assignments from TESTS_ENVIRONMENT.
18444         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18445         augmentation.
18446         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18447         * modules/atexit-tests (Makefile.am): Likewise.
18448         * modules/binary-io-tests (Makefile.am): Likewise.
18449         * modules/closein-tests (Makefile.am): Likewise.
18450         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18451         * modules/exclude-tests (Makefile.am): Likewise.
18452         * modules/fflush-tests (Makefile.am): Likewise.
18453         * modules/fpending-tests (Makefile.am): Likewise.
18454         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18455         * modules/freadahead-tests (Makefile.am): Likewise.
18456         * modules/freadptr-tests (Makefile.am): Likewise.
18457         * modules/freadseek-tests (Makefile.am): Likewise.
18458         * modules/fseek-tests (Makefile.am): Likewise.
18459         * modules/fseeko-tests (Makefile.am): Likewise.
18460         * modules/ftell-tests (Makefile.am): Likewise.
18461         * modules/ftello-tests (Makefile.am): Likewise.
18462         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18463         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18464         * modules/lseek-tests (Makefile.am): Likewise.
18465         * modules/parse-duration-tests (Makefile.am): Likewise.
18466         * modules/perror-tests (Makefile.am): Likewise.
18467         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18468         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18469         * modules/pipe-tests (Makefile.am): Likewise.
18470         * modules/pread-tests (Makefile.am): Likewise.
18471         * modules/printf-posix-tests (Makefile.am): Likewise.
18472         * modules/select-tests (Makefile.am): Likewise.
18473         * modules/sigpipe-tests (Makefile.am): Likewise.
18474         * modules/tsearch-tests (Makefile.am): Likewise.
18475         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18476         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18477         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18478         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18479         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18480         * modules/version-etc-tests (Makefile.am): Likewise.
18481         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18482         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18483         * modules/xalloc-die-tests (Makefile.am): Likewise.
18484         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18485         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18486         * modules/xstrtol-tests (Makefile.am): Likewise.
18487         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18488         * modules/yesno-tests (Makefile.am): Likewise.
18489         Suggested by Jim Meyering.
18490
18491 2010-01-24  Bruno Haible  <bruno@clisp.org>
18492
18493         More documentation.
18494         * doc/gnulib.texi (Writing modules): New chapter.
18495         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18496         the new chapter.
18497
18498 2010-01-24  Jim Meyering  <meyering@redhat.com>
18499
18500         maint.mk: do not prepend "./" after filtering
18501         * top/maint.mk (_prepend_srcdir_prefix): New variable
18502         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18503         "./" when $(srcdir) is ".".
18504
18505         define STREQ(a,b) consistently, removing useless parentheses
18506         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18507         since the only risk is that "a" or "b" contains an unparenthesized
18508         comma, but if either did that, STREQ would have 3 or more arguments.
18509         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18510         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18511         * lib/hash-triple.c (STREQ): Likewise.
18512         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18513         * lib/getugroups.c (STREQ): Likewise.
18514
18515 2010-01-23  Jim Meyering  <meyering@redhat.com>
18516
18517         maint.mk: fix syntax-check in a non-srcdir build directory
18518         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18519         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18520
18521 2010-01-22  Jim Meyering  <meyering@redhat.com>
18522
18523         userspec: add unit tests
18524         * tests/test-userspec.c: New file.
18525         * modules/userspec-tests: Likewise.
18526
18527 2010-01-21  Jim Meyering  <meyering@redhat.com>
18528
18529         maint.mk: handle source file names containing "." robustly
18530         * top/maint.mk (_dot_escaped_srcdir): Define.
18531         (VC_LIST): Use it in LHS of sed substitution.
18532
18533 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18534
18535         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18536         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18537         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18538         from a non-srcdir build.
18539
18540 2010-01-20  Eric Blake  <ebb9@byu.net>
18541
18542         warn-on-use: use instead of link-warning
18543         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18544         * modules/unistd (Depends-on, Makefile.am): Likewise.
18545         * modules/arpa_inet (Depends-on): Replace link-warning with
18546         warn-on-use.
18547         (Makefile.am): Update rules accordingly.
18548         * modules/ctype (Depends-on, Makefile.am): Likewise.
18549         * modules/dirent (Depends-on, Makefile.am): Likewise.
18550         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18551         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18552         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18553         * modules/locale (Depends-on, Makefile.am): Likewise.
18554         * modules/math (Depends-on, Makefile.am): Likewise.
18555         * modules/search (Depends-on, Makefile.am): Likewise.
18556         * modules/signal (Depends-on, Makefile.am): Likewise.
18557         * modules/spawn (Depends-on, Makefile.am): Likewise.
18558         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18559         * modules/string (Depends-on, Makefile.am): Likewise.
18560         * modules/strings (Depends-on, Makefile.am): Likewise.
18561         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18562         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18563         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18564         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18565         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18566         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18567         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18568         * modules/wchar (Depends-on, Makefile.am): Likewise.
18569         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18570         should be poisoned.
18571         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18572         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18573         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18574         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18575         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18576         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18577         * m4/math_h.m4 (gl_MATH_H): Likewise.
18578         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18579         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18580         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18581         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18582         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18583         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18584         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18585         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18586         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18589         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18590         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18591         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18592         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18593         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18594         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18595         GL_LINK_WARNING.
18596         * lib/ctype.in.h: Likewise.
18597         * lib/dirent.in.h: Likewise.
18598         * lib/fcntl.in.h: Likewise.
18599         * lib/inttypes.in.h: Likewise.
18600         * lib/langinfo.in.h: Likewise.
18601         * lib/locale.in.h: Likewise.
18602         * lib/math.in.h: Likewise.
18603         * lib/search.in.h: Likewise.
18604         * lib/signal.in.h: Likewise.
18605         * lib/spawn.in.h: Likewise.
18606         * lib/stdio.in.h: Likewise.
18607         * lib/stdlib.in.h: Likewise.
18608         * lib/string.in.h: Likewise.
18609         * lib/strings.in.h: Likewise.
18610         * lib/sys_file.in.h: Likewise.
18611         * lib/sys_ioctl.in.h: Likewise.
18612         * lib/sys_select.in.h: Likewise.
18613         * lib/sys_socket.in.h: Likewise.
18614         * lib/sys_stat.in.h: Likewise.
18615         * lib/sys_times.in.h: Likewise.
18616         * lib/sys_utsname.in.h: Likewise.
18617         * lib/unistd.in.h: Likewise.
18618         * lib/wchar.in.h: Likewise.
18619
18620 2010-01-20  Bruno Haible  <bruno@clisp.org>
18621
18622         Avoid duplicate -lm.
18623         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18624         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18626         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18627         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18628         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18629         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18630         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18631         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18632         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18633         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18634         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18635         Reported by Paolo Bonzini.
18636
18637 2010-01-19  Bruno Haible  <bruno@clisp.org>
18638
18639         langinfo, nl_langinfo: Relicense under LGPLv2+.
18640         * modules/langinfo (License): Change to LGPLv2+.
18641         * modules/nl_langinfo (License): Likewise.
18642         Patch by David Lutterkort <lutter@redhat.com>.
18643
18644 2010-01-19  Bruno Haible  <bruno@clisp.org>
18645
18646         Avoid compilation error with cc on OSF/1 5.1.
18647         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18648         statement, not before.
18649         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18650
18651 2010-01-18  Bruno Haible  <bruno@clisp.org>
18652
18653         Avoid a link error due to the __printf__ symbol.
18654         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18655         and 2.6.x.
18656         (__format__, __printf__): Remove definitions.
18657         * lib/argp-fmtstream.h: Likewise.
18658         * lib/argp.h: Likewise.
18659         * lib/error.h: Likewise.
18660         * lib/vasnprintf.h: Likewise.
18661         * lib/xprintf.h: Likewise.
18662         * lib/xvasprintf.h: Likewise.
18663         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18664
18665 2010-01-18  Bruno Haible  <bruno@clisp.org>
18666
18667         Tests for module 'tanl'.
18668         * modules/tanl-tests: New file.
18669         * tests/test-tanl.c: New file.
18670
18671         Tests for module 'sqrtl'.
18672         * modules/sqrtl-tests: New file.
18673         * tests/test-sqrtl.c: New file.
18674
18675         Tests for module 'sinl'.
18676         * modules/sinl-tests: New file.
18677         * tests/test-sinl.c: New file.
18678
18679         Tests for module 'logl'.
18680         * modules/logl-tests: New file.
18681         * tests/test-logl.c: New file.
18682
18683         Tests for module 'expl'.
18684         * modules/expl-tests: New file.
18685         * tests/test-expl.c: New file.
18686
18687         Tests for module 'cosl'.
18688         * modules/cosl-tests: New file.
18689         * tests/test-cosl.c: New file.
18690
18691         Tests for module 'atanl'.
18692         * modules/atanl-tests: New file.
18693         * tests/test-atanl.c: New file.
18694
18695         Tests for module 'asinl'.
18696         * modules/asinl-tests: New file.
18697         * tests/test-asinl.c: New file.
18698
18699         Tests for module 'acosl'.
18700         * modules/acosl-tests: New file.
18701         * tests/test-acosl.c: New file.
18702
18703         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18704         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18705         tanl): Use the standard gnulib idiom.
18706         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18707         * lib/sinl.c: Likewise.
18708         * lib/tanl.c: Don't include trigl.c.
18709         (kernel_tanl): Make static.
18710         * lib/sincosl.c: Include trigl.h first.
18711         * lib/trigl.c: Likewise.
18712         * m4/acosl.m4: New file.
18713         * m4/asinl.m4: New file.
18714         * m4/atanl.m4: New file.
18715         * m4/cosl.m4: New file.
18716         * m4/expl.m4: New file.
18717         * m4/logl.m4: New file.
18718         * m4/sinl.m4: New file.
18719         * m4/sqrtl.m4: New file.
18720         * m4/tanl.m4: New file.
18721         * m4/mathl.m4: Remove file.
18722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18723         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18724         Don't initialize GNULIB_MATHL.
18725         * modules/acosl: New file.
18726         * modules/asinl: New file.
18727         * modules/atanl: New file.
18728         * modules/cosl: New file.
18729         * modules/expl: New file.
18730         * modules/logl: New file.
18731         * modules/sinl: New file.
18732         * modules/sqrtl: New file.
18733         * modules/tanl: New file.
18734         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18735         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18736         substitute GNULIB_MATHL.
18737         * modules/mathl: Rewritten.
18738         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18739         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18740         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18741         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18742         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18743         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18744         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18745         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18746         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18747
18748 2010-01-18  Bruno Haible  <bruno@clisp.org>
18749
18750         sqrt: Make gl_FUNC_SQRT requirable.
18751         * m4/sqrt.m4: New file.
18752         * modules/sqrt (Files): Add it.
18753         (configure.ac): Invoke gl_FUNC_SQRT.
18754
18755 2010-01-18  Bruno Haible  <bruno@clisp.org>
18756
18757         New modules for common <math.h> functions.
18758         * m4/mathfunc.m4: New file.
18759         * modules/acos: New file.
18760         * modules/asin: New file.
18761         * modules/atan: New file.
18762         * modules/atan2: New file.
18763         * modules/cbrt: New file.
18764         * modules/copysign: New file.
18765         * modules/cos: New file.
18766         * modules/cosh: New file.
18767         * modules/erf: New file.
18768         * modules/erfc: New file.
18769         * modules/exp: New file.
18770         * modules/fabs: New file.
18771         * modules/fmod: New file.
18772         * modules/hypot: New file.
18773         * modules/j0: New file.
18774         * modules/j1: New file.
18775         * modules/jn: New file.
18776         * modules/ldexp: New file.
18777         * modules/lgamma: New file.
18778         * modules/log: New file.
18779         * modules/log10: New file.
18780         * modules/log1p: New file.
18781         * modules/logb: New file.
18782         * modules/modf: New file.
18783         * modules/nextafter: New file.
18784         * modules/pow: New file.
18785         * modules/remainder: New file.
18786         * modules/rint: New file.
18787         * modules/sin: New file.
18788         * modules/sinh: New file.
18789         * modules/sqrt: New file.
18790         * modules/tan: New file.
18791         * modules/tanh: New file.
18792         * modules/y0: New file.
18793         * modules/y1: New file.
18794         * modules/yn: New file.
18795         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18796         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18797         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18798         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18799         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18800         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18801         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18802         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18803         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18804         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18805         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18806         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18807         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18808         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18809         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18810         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18811         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18812         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18813         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18814         * doc/posix-functions/log.texi: Mention the 'log' module.
18815         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18816         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18817         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18818         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18819         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18820         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18821         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18822         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18823         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18824         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18825         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18826         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18827         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18828         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18829         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18830         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18831
18832 2010-01-18  Jim Meyering  <meyering@redhat.com>
18833
18834         ignore-value: relax license to LGPLv2+
18835         * modules/ignore-value (License): Relax to LGPLv2+.
18836
18837         getdate: don't leak when TZ contains two or more '"'s
18838         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18839         double quote in TZ after the first one.
18840
18841         readtokens: do not leak internal token_lengths buffer
18842         * lib/readtokens.c (readtokens): Free the local, lengths,
18843         when the supplied "token_lengths" parameter is NULL.
18844
18845 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18846
18847         Fix a couple of missing LIBTHREAD link failures on AIX.
18848         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18849         $(LIBTHREAD).
18850         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18851
18852         Link test-poll against INET_PTON_LIB.
18853         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18854         for inet_pton on Solaris 10.
18855
18856 2010-01-17  Bruno Haible  <bruno@clisp.org>
18857
18858         unistdio/*-sprintf: Fix typo in module description.
18859         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18860         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18861         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18862         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18863         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18864         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18865         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18867
18868 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18869
18870         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18871         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18872         variables in shell case patterns, for AIX and HP-UX ksh.
18873
18874         Split large sed scripts, for HP-UX sed.
18875         * modules/stdio: Split sed scripts around 50 sed commands,
18876         to avoid HP-UX limit of 99 commands, in the near future.
18877         * modules/string: Likewise.
18878         * modules/unistd: Likewise.
18879
18880         gnulib-tool: avoid writing in the current directory.
18881         * gnulib-tool (func_emit_lib_Makefile_am)
18882         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18883         not in the current directory, so concurrent gnulib-tool
18884         instances do not interfere.
18885
18886 2010-01-16  Jim Meyering  <meyering@redhat.com>
18887
18888         doc: update users.txt
18889         * users.txt: Add grep.
18890         (diffutils, gzip): Update URLs.
18891
18892 2010-01-12  Bruno Haible  <bruno@clisp.org>
18893
18894         posix_spawn: Avoid test failure on Cygwin.
18895         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18896         characters.
18897         Reported by Simon Josefsson.
18898
18899 2010-01-12  Bruno Haible  <bruno@clisp.org>
18900
18901         * tests/test-cond.c (main): When skipping the test, show the reason.
18902
18903 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18904
18905         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18906
18907 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18908
18909         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18910         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18911
18912 2010-01-12  Eric Blake  <ebb9@byu.net>
18913
18914         build: guarantee AS_VAR_IF
18915         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18916         (gl_AS_VAR_IF): Move...
18917         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18918         Reported by Simon Josefsson.
18919
18920 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18921
18922         * lib/stdio.in.h: Fix typo.
18923
18924 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18925
18926         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18927         libgpg-error.
18928
18929 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18930
18931         * tests/test-xalloc-die.sh: Use $EXEEXT.
18932
18933 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18934             Bruno Haible  <bruno@clisp.org>
18935
18936         getlogin, getlogin_r: Avoid test failure.
18937         * tests/test-getlogin.c: Include <stdio.h>.
18938         (main): Skip the test when the function fails because stdin is not a
18939         tty.
18940         * tests/test-getlogin_r.c: Include <stdio.h>.
18941         (main): Skip the test when the function fails because stdin is not a
18942         tty.
18943
18944 2010-01-11  Eric Blake  <ebb9@byu.net>
18945
18946         tests: avoid more large file warnings
18947         * tests/test-fflush.c: Avoid warning about ftell use.
18948         * tests/test-fseek.c: Avoid warning about fseek use.
18949
18950 2010-01-10  Bruno Haible  <bruno@clisp.org>
18951
18952         nproc: Work better on Linux when /proc and /sys are not mounted.
18953         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18954         as lower bound when, on glibc/Linux systems,
18955         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18956         Suggested by Pádraig Brady <P@draigbrady.com>.
18957         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18958
18959         nproc: Refactor.
18960         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18961         extracted from num_processors.
18962         (num_processors): Call it.
18963
18964 2010-01-11  Jim Meyering  <meyering@redhat.com>
18965
18966         utimecmp: avoid new warning from upcoming gcc-4.5.0
18967         * lib/utimecmp.c (BILLION): Define using #define rather than an
18968         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18969
18970 2010-01-11  Eric Blake  <ebb9@byu.net>
18971
18972         math: add portability warnings for classification macros
18973         * modules/math (Depends-on): Add warn-on-use.
18974         (Makefile.am): Provide new substitutions.
18975         * m4/math_h.m4 (gl_MATH_H): Require inline.
18976         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18977         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18978         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18979         implement warnings.
18980
18981         unistd: warn on use of environ without module
18982         * modules/unistd (Depends-on): Add warn-on-use.
18983         (Makefile.am): Provide new substitutions.
18984         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18985         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18986
18987         stdio: warn on suspicious uses
18988         * modules/stdio (Depends-on): Add warn-on-use.
18989         (Makefile.am): Provide new substitutions.
18990         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18991         fseeko.
18992         * lib/stdio.in.h (gets): Always warn on use.
18993         (fseek, ftell): Adjust when warnings are issued, and honor
18994         _GL_NO_LARGE_FILES as a way to silence the warning.
18995         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18996         any warning about large file offsets.
18997         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18998         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18999         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19000         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19001         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19002         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19003         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19004         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19005
19006         warn-on-use: new module
19007         * modules/warn-on-use: New file.
19008         * build-aux/warn-on-use.h: Likewise.
19009         * m4/warn-on-use.m4: Likewise.
19010         * MODULES.html.sh (Support for building): Mention it.
19011
19012 2010-01-10  Bruno Haible  <bruno@clisp.org>
19013
19014         Tests for module 'unistr/u32-strdup'.
19015         * modules/unistr/u32-strdup-tests: New file.
19016         * tests/unistr/test-u32-strdup.c: New file.
19017
19018         Tests for module 'unistr/u16-strdup'.
19019         * modules/unistr/u16-strdup-tests: New file.
19020         * tests/unistr/test-u16-strdup.c: New file.
19021
19022         Tests for module 'unistr/u8-strdup'.
19023         * modules/unistr/u8-strdup-tests: New file.
19024         * tests/unistr/test-u8-strdup.c: New file.
19025         * tests/unistr/test-strdup.h: New file.
19026
19027         Tests for module 'unistr/u32-strncmp'.
19028         * modules/unistr/u32-strncmp-tests: New file.
19029         * tests/unistr/test-u32-strncmp.c: New file.
19030
19031         Tests for module 'unistr/u16-strncmp'.
19032         * modules/unistr/u16-strncmp-tests: New file.
19033         * tests/unistr/test-u16-strncmp.c: New file.
19034
19035         Tests for module 'unistr/u8-strncmp'.
19036         * modules/unistr/u8-strncmp-tests: New file.
19037         * tests/unistr/test-u8-strncmp.c: New file.
19038         * tests/unistr/test-strncmp.h: New file.
19039
19040         Tests for module 'unistr/u32-strcoll'.
19041         * modules/unistr/u32-strcoll-tests: New file.
19042         * tests/unistr/test-u32-strcoll.c: New file.
19043
19044         Tests for module 'unistr/u16-strcoll'.
19045         * modules/unistr/u16-strcoll-tests: New file.
19046         * tests/unistr/test-u16-strcoll.c: New file.
19047
19048         Tests for module 'unistr/u8-strcoll'.
19049         * modules/unistr/u8-strcoll-tests: New file.
19050         * tests/unistr/test-u8-strcoll.c: New file.
19051
19052         Tests for module 'unistr/u32-strcmp'.
19053         * modules/unistr/u32-strcmp-tests: New file.
19054         * tests/unistr/test-u32-strcmp.c: New file.
19055         * tests/unistr/test-u32-strcmp.h: New file.
19056
19057         Tests for module 'unistr/u16-strcmp'.
19058         * modules/unistr/u16-strcmp-tests: New file.
19059         * tests/unistr/test-u16-strcmp.c: New file.
19060         * tests/unistr/test-u16-strcmp.h: New file.
19061
19062         Tests for module 'unistr/u8-strcmp'.
19063         * modules/unistr/u8-strcmp-tests: New file.
19064         * tests/unistr/test-u8-strcmp.c: New file.
19065         * tests/unistr/test-u8-strcmp.h: New file.
19066         * tests/unistr/test-strcmp.h: New file.
19067
19068         Tests for module 'unistr/u32-strncat'.
19069         * modules/unistr/u32-strncat-tests: New file.
19070         * tests/unistr/test-u32-strncat.c: New file.
19071
19072         Tests for module 'unistr/u16-strncat'.
19073         * modules/unistr/u16-strncat-tests: New file.
19074         * tests/unistr/test-u16-strncat.c: New file.
19075
19076         Tests for module 'unistr/u8-strncat'.
19077         * modules/unistr/u8-strncat-tests: New file.
19078         * tests/unistr/test-u8-strncat.c: New file.
19079         * tests/unistr/test-strncat.h: New file.
19080
19081         Tests for module 'unistr/u32-strcat'.
19082         * modules/unistr/u32-strcat-tests: New file.
19083         * tests/unistr/test-u32-strcat.c: New file.
19084
19085         Tests for module 'unistr/u16-strcat'.
19086         * modules/unistr/u16-strcat-tests: New file.
19087         * tests/unistr/test-u16-strcat.c: New file.
19088
19089         Tests for module 'unistr/u8-strcat'.
19090         * modules/unistr/u8-strcat-tests: New file.
19091         * tests/unistr/test-u8-strcat.c: New file.
19092         * tests/unistr/test-strcat.h: New file.
19093
19094         Tests for module 'unistr/u32-stpncpy'.
19095         * modules/unistr/u32-stpncpy-tests: New file.
19096         * tests/unistr/test-u32-stpncpy.c: New file.
19097
19098         Tests for module 'unistr/u16-stpncpy'.
19099         * modules/unistr/u16-stpncpy-tests: New file.
19100         * tests/unistr/test-u16-stpncpy.c: New file.
19101
19102         Tests for module 'unistr/u8-stpncpy'.
19103         * modules/unistr/u8-stpncpy-tests: New file.
19104         * tests/unistr/test-u8-stpncpy.c: New file.
19105         * tests/unistr/test-stpncpy.h: New file.
19106
19107         Tests for module 'unistr/u32-strncpy'.
19108         * modules/unistr/u32-strncpy-tests: New file.
19109         * tests/unistr/test-u32-strncpy.c: New file.
19110
19111         Tests for module 'unistr/u16-strncpy'.
19112         * modules/unistr/u16-strncpy-tests: New file.
19113         * tests/unistr/test-u16-strncpy.c: New file.
19114
19115         Tests for module 'unistr/u8-strncpy'.
19116         * modules/unistr/u8-strncpy-tests: New file.
19117         * tests/unistr/test-u8-strncpy.c: New file.
19118         * tests/unistr/test-strncpy.h: New file.
19119
19120         Tests for module 'unistr/u32-stpcpy'.
19121         * modules/unistr/u32-stpcpy-tests: New file.
19122         * tests/unistr/test-u32-stpcpy.c: New file.
19123
19124         Tests for module 'unistr/u16-stpcpy'.
19125         * modules/unistr/u16-stpcpy-tests: New file.
19126         * tests/unistr/test-u16-stpcpy.c: New file.
19127
19128         Tests for module 'unistr/u8-stpcpy'.
19129         * modules/unistr/u8-stpcpy-tests: New file.
19130         * tests/unistr/test-u8-stpcpy.c: New file.
19131         * tests/unistr/test-stpcpy.h: New file.
19132
19133         Tests for module 'unistr/u32-strcpy'.
19134         * modules/unistr/u32-strcpy-tests: New file.
19135         * tests/unistr/test-u32-strcpy.c: New file.
19136
19137         Tests for module 'unistr/u16-strcpy'.
19138         * modules/unistr/u16-strcpy-tests: New file.
19139         * tests/unistr/test-u16-strcpy.c: New file.
19140
19141         Tests for module 'unistr/u8-strcpy'.
19142         * modules/unistr/u8-strcpy-tests: New file.
19143         * tests/unistr/test-u8-strcpy.c: New file.
19144         * tests/unistr/test-strcpy.h: New file.
19145
19146         Tests for module 'unistr/u32-strnlen'.
19147         * modules/unistr/u32-strnlen-tests: New file.
19148         * tests/unistr/test-u32-strnlen.c: New file.
19149
19150         Tests for module 'unistr/u16-strnlen'.
19151         * modules/unistr/u16-strnlen-tests: New file.
19152         * tests/unistr/test-u16-strnlen.c: New file.
19153
19154         Tests for module 'unistr/u8-strnlen'.
19155         * modules/unistr/u8-strnlen-tests: New file.
19156         * tests/unistr/test-u8-strnlen.c: New file.
19157         * tests/unistr/test-strnlen.h: New file.
19158
19159         Tests for module 'unistr/u32-strlen'.
19160         * modules/unistr/u32-strlen-tests: New file.
19161         * tests/unistr/test-u32-strlen.c: New file.
19162
19163         Tests for module 'unistr/u16-strlen'.
19164         * modules/unistr/u16-strlen-tests: New file.
19165         * tests/unistr/test-u16-strlen.c: New file.
19166
19167         Tests for module 'unistr/u8-strlen'.
19168         * modules/unistr/u8-strlen-tests: New file.
19169         * tests/unistr/test-u8-strlen.c: New file.
19170
19171         Tests for module 'unistr/u32-prev'.
19172         * modules/unistr/u32-prev-tests: New file.
19173         * tests/unistr/test-u32-prev.c: New file.
19174
19175         Tests for module 'unistr/u16-prev'.
19176         * modules/unistr/u16-prev-tests: New file.
19177         * tests/unistr/test-u16-prev.c: New file.
19178
19179         Tests for module 'unistr/u8-prev'.
19180         * modules/unistr/u8-prev-tests: New file.
19181         * tests/unistr/test-u8-prev.c: New file.
19182
19183         Tests for module 'unistr/u32-next'.
19184         * modules/unistr/u32-next-tests: New file.
19185         * tests/unistr/test-u32-next.c: New file.
19186
19187         Tests for module 'unistr/u16-next'.
19188         * modules/unistr/u16-next-tests: New file.
19189         * tests/unistr/test-u16-next.c: New file.
19190
19191         Tests for module 'unistr/u8-next'.
19192         * modules/unistr/u8-next-tests: New file.
19193         * tests/unistr/test-u8-next.c: New file.
19194
19195         Tests for module 'unistr/u32-strmbtouc'.
19196         * modules/unistr/u32-strmbtouc-tests: New file.
19197         * tests/unistr/test-u32-strmbtouc.c: New file.
19198
19199         Tests for module 'unistr/u16-strmbtouc'.
19200         * modules/unistr/u16-strmbtouc-tests: New file.
19201         * tests/unistr/test-u16-strmbtouc.c: New file.
19202
19203         Tests for module 'unistr/u8-strmbtouc'.
19204         * modules/unistr/u8-strmbtouc-tests: New file.
19205         * tests/unistr/test-u8-strmbtouc.c: New file.
19206
19207         Tests for module 'unistr/u32-strmblen'.
19208         * modules/unistr/u32-strmblen-tests: New file.
19209         * tests/unistr/test-u32-strmblen.c: New file.
19210
19211         Tests for module 'unistr/u16-strmblen'.
19212         * modules/unistr/u16-strmblen-tests: New file.
19213         * tests/unistr/test-u16-strmblen.c: New file.
19214
19215         Tests for module 'unistr/u8-strmblen'.
19216         * modules/unistr/u8-strmblen-tests: New file.
19217         * tests/unistr/test-u8-strmblen.c: New file.
19218
19219         Tests for module 'unistr/u32-cpy-alloc'.
19220         * modules/unistr/u32-cpy-alloc-tests: New file.
19221         * tests/unistr/test-u32-cpy-alloc.c: New file.
19222
19223         Tests for module 'unistr/u16-cpy-alloc'.
19224         * modules/unistr/u16-cpy-alloc-tests: New file.
19225         * tests/unistr/test-u16-cpy-alloc.c: New file.
19226
19227         Tests for module 'unistr/u8-cpy-alloc'.
19228         * modules/unistr/u8-cpy-alloc-tests: New file.
19229         * tests/unistr/test-u8-cpy-alloc.c: New file.
19230         * tests/unistr/test-cpy-alloc.h: New file.
19231
19232         Tests for module 'unistr/u32-mbsnlen'.
19233         * modules/unistr/u32-mbsnlen-tests: New file.
19234         * tests/unistr/test-u32-mbsnlen.c: New file.
19235
19236         Tests for module 'unistr/u16-mbsnlen'.
19237         * modules/unistr/u16-mbsnlen-tests: New file.
19238         * tests/unistr/test-u16-mbsnlen.c: New file.
19239
19240         Tests for module 'unistr/u8-mbsnlen'.
19241         * modules/unistr/u8-mbsnlen-tests: New file.
19242         * tests/unistr/test-u8-mbsnlen.c: New file.
19243
19244         Tests for module 'unistr/u32-chr'.
19245         * modules/unistr/u32-chr-tests: New file.
19246         * tests/unistr/test-u32-chr.c: New file.
19247
19248         Tests for module 'unistr/u16-chr'.
19249         * modules/unistr/u16-chr-tests: New file.
19250         * tests/unistr/test-u16-chr.c: New file.
19251
19252         Tests for module 'unistr/u8-chr'.
19253         * modules/unistr/u8-chr-tests: New file.
19254         * tests/unistr/test-u8-chr.c: New file.
19255         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19256
19257         Tests for module 'unistr/u32-cmp2'.
19258         * modules/unistr/u32-cmp2-tests: New file.
19259         * tests/unistr/test-u32-cmp2.c: New file.
19260
19261         Tests for module 'unistr/u16-cmp2'.
19262         * modules/unistr/u16-cmp2-tests: New file.
19263         * tests/unistr/test-u16-cmp2.c: New file.
19264
19265         Tests for module 'unistr/u8-cmp2'.
19266         * modules/unistr/u8-cmp2-tests: New file.
19267         * tests/unistr/test-u8-cmp2.c: New file.
19268         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19269
19270         Tests for module 'unistr/u32-cmp'.
19271         * modules/unistr/u32-cmp-tests: New file.
19272         * tests/unistr/test-u32-cmp.c: New file.
19273
19274         Tests for module 'unistr/u16-cmp'.
19275         * modules/unistr/u16-cmp-tests: New file.
19276         * tests/unistr/test-u16-cmp.c: New file.
19277
19278         Tests for module 'unistr/u8-cmp'.
19279         * modules/unistr/u8-cmp-tests: New file.
19280         * tests/unistr/test-u8-cmp.c: New file.
19281         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19282
19283         Tests for module 'unistr/u32-set'.
19284         * modules/unistr/u32-set-tests: New file.
19285         * tests/unistr/test-u32-set.c: New file.
19286
19287         Tests for module 'unistr/u16-set'.
19288         * modules/unistr/u16-set-tests: New file.
19289         * tests/unistr/test-u16-set.c: New file.
19290
19291         Tests for module 'unistr/u8-set'.
19292         * modules/unistr/u8-set-tests: New file.
19293         * tests/unistr/test-u8-set.c: New file.
19294         * tests/unistr/test-set.h: New file.
19295
19296         Tests for module 'unistr/u32-move'.
19297         * modules/unistr/u32-move-tests: New file.
19298         * tests/unistr/test-u32-move.c: New file.
19299
19300         Tests for module 'unistr/u16-move'.
19301         * modules/unistr/u16-move-tests: New file.
19302         * tests/unistr/test-u16-move.c: New file.
19303
19304         Tests for module 'unistr/u8-move'.
19305         * modules/unistr/u8-move-tests: New file.
19306         * tests/unistr/test-u8-move.c: New file.
19307         * tests/unistr/test-move.h: New file.
19308
19309         Tests for module 'unistr/u32-cpy'.
19310         * modules/unistr/u32-cpy-tests: New file.
19311         * tests/unistr/test-u32-cpy.c: New file.
19312
19313         Tests for module 'unistr/u16-cpy'.
19314         * modules/unistr/u16-cpy-tests: New file.
19315         * tests/unistr/test-u16-cpy.c: New file.
19316
19317         Tests for module 'unistr/u8-cpy'.
19318         * modules/unistr/u8-cpy-tests: New file.
19319         * tests/unistr/test-u8-cpy.c: New file.
19320         * tests/unistr/test-cpy.h: New file.
19321
19322 2010-01-09  Bruno Haible  <bruno@clisp.org>
19323
19324         Tests for module 'unistr/u32-uctomb'.
19325         * modules/unistr/u32-uctomb-tests: New file.
19326         * tests/unistr/test-u32-uctomb.c: New file.
19327
19328         Tests for module 'unistr/u16-uctomb'.
19329         * modules/unistr/u16-uctomb-tests: New file.
19330         * tests/unistr/test-u16-uctomb.c: New file.
19331
19332         Tests for module 'unistr/u8-uctomb'.
19333         * modules/unistr/u8-uctomb-tests: New file.
19334         * tests/unistr/test-u8-uctomb.c: New file.
19335
19336         Tests for module 'unistr/u32-mbtoucr'.
19337         * modules/unistr/u32-mbtoucr-tests: New file.
19338         * tests/unistr/test-u32-mbtoucr.c: New file.
19339
19340         Tests for module 'unistr/u16-mbtoucr'.
19341         * modules/unistr/u16-mbtoucr-tests: New file.
19342         * tests/unistr/test-u16-mbtoucr.c: New file.
19343
19344         Tests for module 'unistr/u8-mbtoucr'.
19345         * modules/unistr/u8-mbtoucr-tests: New file.
19346         * tests/unistr/test-u8-mbtoucr.c: New file.
19347
19348         Tests for module 'unistr/u32-mbtouc'.
19349         * modules/unistr/u32-mbtouc-tests: New file.
19350         * tests/unistr/test-u32-mbtouc.c: New file.
19351
19352         Tests for module 'unistr/u16-mbtouc'.
19353         * modules/unistr/u16-mbtouc-tests: New file.
19354         * tests/unistr/test-u16-mbtouc.c: New file.
19355
19356         Tests for module 'unistr/u8-mbtouc'.
19357         * modules/unistr/u8-mbtouc-tests: New file.
19358         * tests/unistr/test-u8-mbtouc.c: New file.
19359
19360         Tests for module 'unistr/u32-mbtouc-unsafe'.
19361         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19362         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19363         * tests/unistr/test-u32-mbtouc.h: New file.
19364
19365         Tests for module 'unistr/u16-mbtouc-unsafe'.
19366         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19367         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19368         * tests/unistr/test-u16-mbtouc.h: New file.
19369
19370         Tests for module 'unistr/u8-mbtouc-unsafe'.
19371         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19372         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19373         * tests/unistr/test-u8-mbtouc.h: New file.
19374
19375         Tests for module 'unistr/u32-mblen'.
19376         * modules/unistr/u32-mblen-tests: New file.
19377         * tests/unistr/test-u32-mblen.c: New file.
19378
19379         Tests for module 'unistr/u16-mblen'.
19380         * modules/unistr/u16-mblen-tests: New file.
19381         * tests/unistr/test-u16-mblen.c: New file.
19382
19383         Tests for module 'unistr/u8-mblen'.
19384         * modules/unistr/u8-mblen-tests: New file.
19385         * tests/unistr/test-u8-mblen.c: New file.
19386
19387         Tests for module 'unistr/u32-to-u16'.
19388         * modules/unistr/u32-to-u16-tests: New file.
19389         * tests/unistr/test-u32-to-u16.c: New file.
19390
19391         Tests for module 'unistr/u32-to-u8'.
19392         * modules/unistr/u32-to-u8-tests: New file.
19393         * tests/unistr/test-u32-to-u8.c: New file.
19394
19395         Tests for module 'unistr/u16-to-u32'.
19396         * modules/unistr/u16-to-u32-tests: New file.
19397         * tests/unistr/test-u16-to-u32.c: New file.
19398
19399         Tests for module 'unistr/u16-to-u8'.
19400         * modules/unistr/u16-to-u8-tests: New file.
19401         * tests/unistr/test-u16-to-u8.c: New file.
19402
19403         Tests for module 'unistr/u8-to-u32'.
19404         * modules/unistr/u8-to-u32-tests: New file.
19405         * tests/unistr/test-u8-to-u32.c: New file.
19406
19407         Tests for module 'unistr/u8-to-u16'.
19408         * modules/unistr/u8-to-u16-tests: New file.
19409         * tests/unistr/test-u8-to-u16.c: New file.
19410
19411         Tests for module 'unistr/u32-check'.
19412         * modules/unistr/u32-check-tests: New file.
19413         * tests/unistr/test-u32-check.c: New file.
19414
19415         Tests for module 'unistr/u16-check'.
19416         * modules/unistr/u16-check-tests: New file.
19417         * tests/unistr/test-u16-check.c: New file.
19418
19419         Tests for module 'unistr/u8-check'.
19420         * modules/unistr/u8-check-tests: New file.
19421         * tests/unistr/test-u8-check.c: New file.
19422
19423         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19424         (category_equals): New function.
19425         (main): Add more tests.
19426         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19427
19428         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19429
19430 2010-01-10  Bruno Haible  <bruno@clisp.org>
19431
19432         unistr/u*-strcoll: Try harder to distinguish different strings.
19433         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19434         compare s1 and s2 to see if they are different.
19435
19436 2010-01-10  Bruno Haible  <bruno@clisp.org>
19437
19438         unistr/u*-stpncpy: Fix the return value.
19439         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19440         description of the return value consistent with stpncpy in glibc.
19441         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19442         written non-NUL unit.
19443
19444 2010-01-10  Bruno Haible  <bruno@clisp.org>
19445
19446         unistr/u*-next: Add missing dependencies.
19447         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19448         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19449         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19450
19451 2010-01-10  Bruno Haible  <bruno@clisp.org>
19452
19453         unistr/u8-mbsnlen: Fix return value for incomplete character.
19454         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19455         u8_mblen.
19456         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19457         Remove unistr/u8-mblen.
19458         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19459         u16_mblen.
19460         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19461         Remove unistr/u16-mblen.
19462
19463 2010-01-10  Bruno Haible  <bruno@clisp.org>
19464
19465         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19466         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19467         Reported by Brian Gough <bjg@gnu.org> and
19468         Chris Clayton <chris2553@googlemail.com> via
19469         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19470
19471 2010-01-09  Bruno Haible  <bruno@clisp.org>
19472
19473         unistr/u16-to-u32: Reject invalid input.
19474         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19475         u16_mbtouc.
19476         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19477         Remove unistr/u16-mbtouc.
19478
19479         unistr/u16-to-u8: Reject invalid input.
19480         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19481         u16_mbtouc.
19482         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19483         Remove unistr/u16-mbtouc.
19484
19485         unistr/u8-to-u32: Reject invalid input.
19486         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19487         u8_mbtouc.
19488         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19489         Remove unistr/u8-mbtouc.
19490
19491         unistr/u8-to-u16: Reject invalid input.
19492         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19493         u8_mbtouc.
19494         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19495         Remove unistr/u8-mbtouc.
19496
19497 2010-01-09  Bruno Haible  <bruno@clisp.org>
19498
19499         Tests for module 'getlogin'.
19500         * modules/getlogin-tests: New file.
19501         * tests/test-getlogin.c: New file.
19502
19503         New module 'getlogin'.
19504         * lib/unistd.in.h (getlogin): New declaration.
19505         * lib/getlogin.c: New file.
19506         * m4/getlogin.m4: New file.
19507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19508         HAVE_GETLOGIN.
19509         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19510         HAVE_GETLOGIN.
19511         * modules/getlogin: New file.
19512         * doc/posix-functions/getlogin.texi: Mention the new module.
19513         Reported by John W. Eaton <jwe@gnu.org>.
19514
19515 2010-01-09  Bruno Haible  <bruno@clisp.org>
19516
19517         getlogin_r: Support for native Windows.
19518         * lib/getlogin_r.c: Include <windows.h>
19519         (getlogin_r): Implement for native Windows.
19520         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19521         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19522         via John W. Eaton <jwe@gnu.org>.
19523
19524 2010-01-09  Bruno Haible  <bruno@clisp.org>
19525
19526         getlogin_r: Small fixes.
19527         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19528         succeeds.
19529         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19530         before testing whether getlogin_r is declared. No need to set
19531         HAVE_DECL_GETLOGIN_R to 1.
19532         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19533
19534 2010-01-09  Bruno Haible  <bruno@clisp.org>
19535
19536         * lib/unistd.in.h (getlogin_r): Add comment.
19537
19538 2010-01-09  Bruno Haible  <bruno@clisp.org>
19539
19540         Tests for module 'getlogin_r'.
19541         * modules/getlogin_r-tests: New file.
19542         * tests/test-getlogin_r.c: New file.
19543
19544 2010-01-09  Jim Meyering  <meyering@redhat.com>
19545
19546         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19547         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19548         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19549
19550 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19551
19552         * lib/dup2.c (rpl_dup2): Improve comment.
19553
19554 2010-01-08  Eric Blake  <ebb9@byu.net>
19555
19556         maint.mk: allow packages to add makefile @@ exceptions
19557         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19558         (sc_makefile_check): Rename...
19559         (sc_makefile_at_at_check): ...to this, and use hook.
19560
19561         dup2: work around mingw bug
19562         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19563         Reported by Simon Josefsson.
19564
19565 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19566
19567         glob: Fix C++ compilation.
19568         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19569         C++.
19570
19571 2010-01-07  Bruno Haible  <bruno@clisp.org>
19572
19573         Fix indentation of wctype.in.h, broken since 2007-01-06.
19574         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19575
19576 2010-01-07  Bruno Haible  <bruno@clisp.org>
19577
19578         mbslen: Avoid collision with system function.
19579         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19580         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19581         * m4/mbslen.m4: New file.
19582         * modules/mbslen (Files): Add it.
19583         (configure.ac): Invoke gl_MBSLEN.
19584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19585         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19586         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19587         via Ian Beckwith <ianb@erislabs.net>.
19588
19589 2010-01-07  Bruno Haible  <bruno@clisp.org>
19590
19591         dirent: Document the last fix.
19592         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19593
19594 2010-01-07  Bruno Haible  <bruno@clisp.org>
19595
19596         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19597         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19598         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19599         va_list are defined.
19600         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19601         Reported by Eric Blake.
19602
19603 2010-01-07  Bruno Haible  <bruno@clisp.org>
19604
19605         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19606         * modules/xlist (Depends-on): Add 'list',
19607         * modules/xoset (Depends-on): Add 'oset'.
19608         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19609
19610 2010-01-07  Bruno Haible  <bruno@clisp.org>
19611
19612         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19613         * doc/posix-functions/strncasecmp.texi: Likewise.
19614
19615 2010-01-07  Bruno Haible  <bruno@clisp.org>
19616
19617         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19618
19619 2010-01-07  John W. Eaton  <jwe@octave.org>
19620
19621         wctype: allow C++ use
19622         * lib/wctype.in.h: Add extern "C" block for C++.
19623
19624 2010-01-06  Eric Blake  <ebb9@byu.net>
19625
19626         maint.mk: detect incorrect GFDL usage
19627         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19628
19629 2010-01-06  Jim Meyering  <meyering@redhat.com>
19630         and Eric Blake  <ebb9@byu.net>
19631
19632         maint.mk: ignore multi-line copyright in NEWS
19633         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19634
19635 2010-01-06  Eric Blake  <ebb9@byu.net>
19636
19637         select: add missing dependency
19638         * modules/select-tests (Depends-on): Move sockets dependency...
19639         * modules/select (Depends-on): ...here.
19640         Reported by Ian Beckwith.
19641
19642         doc: regenerate INSTALL
19643         * doc/INSTALL: Reflect recent autoconf update.
19644         * doc/INSTALL.ISO: Likewise.
19645         * doc/INSTALL.UTF-8: Likewise.
19646
19647         pread: fix compilation on glibc
19648         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19649         Reported by Ralf Wildenhues.
19650
19651         dirent: fix test failure
19652         * lib/dirent.in.h (includes): Guarantee ino_t.
19653         Reported by Ralf Wildenhues.
19654
19655 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19656
19657         linkat, renameat: avoid bad free
19658         * lib/at-func2.c (at_func2): Fix typo.
19659         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19660
19661 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19662
19663         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19664         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19665         to avoid failure of symlink test later.
19666
19667 2010-01-06  Eric Blake  <ebb9@byu.net>
19668
19669         stdio, unistd: guarantee ssize_t
19670         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19671         2008 are exposed when needed.
19672         * lib/stdio.in.h (includes): Likewise.
19673         Reported by Ralf Wildenhues.
19674
19675 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19676
19677         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19678         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19679         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19680
19681 2010-01-06  Jim Meyering  <meyering@redhat.com>
19682
19683         readtokens: this module *does* require xalloc.h
19684         It uses only functions that were omitted by the old syntax-check rule.
19685         * lib/readtokens.c: Include "xalloc.h" once again.
19686         * modules/readtokens (Depends-on): Add xalloc.
19687         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19688
19689 2010-01-05  Eric Blake  <ebb9@byu.net>
19690
19691         maint: support 'make announcement' from a VPATH build
19692         * top/maint.mk (announcement): Look for correct NEWS file.
19693
19694 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19695
19696         utimens (fdutimens): ignore a negative FD, per contract
19697         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19698         when we have a valid file descriptor.  Otherwise, using a brand
19699         new glibc (with just-patched futimens that now fails with EBADF)
19700         would cause this function to fail with ENOSYS.
19701         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19702         See also http://bugzilla.redhat.com/552320.
19703
19704 2010-01-05  Eric Blake  <ebb9@byu.net>
19705
19706         strcase: document what it provides
19707         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19708         gnulib module.
19709         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19710         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19711
19712 2010-01-05  Jim Meyering  <meyering@redhat.com>
19713
19714         maint: remove useless inclusions of "xalloc.h"
19715         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19716         * lib/readtokens.c: Likewise.
19717         * lib/same.c: Likewise.
19718         * modules/getloadavg (Depends-on): Remove xalloc.
19719         * modules/readtokens: Likewise.
19720         * modules/same: Likewise.
19721
19722         maint.mk: include 4 more function names in alloca.h-checking regexp
19723         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19724         regexp.  Before, we would give a false-positive (saying alloca.h
19725         is included unnecessarily) when the only uses involved omitted symbols.
19726
19727         xalloc.h: use consistent formatting
19728         * lib/xalloc.h: Move declarations to start in the first column.
19729
19730 2010-01-05  Eric Blake  <ebb9@byu.net>
19731
19732         mkdir: avoid xalloc
19733         * lib/mkdir.c (includes): Drop unused header.
19734         Reported by John W. Eaton.
19735
19736 2010-01-04  Jim Meyering  <meyering@redhat.com>
19737
19738         nl_langinfo: avoid configure-time syntax error
19739         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19740         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19741         the empty string.  Don't let that provoke a shell syntax error.
19742
19743         regcomp, regexec, fnmatch: avoid array bounds read error
19744         * lib/regcomp.c (build_equiv_class): From glibc:
19745         Use only the low 24 bits of a findidx return value as an index
19746         into the weights array.  Patch by Ulrich Drepper:
19747         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19748         * lib/regexec.c (check_node_accept_bytes): Likewise.
19749         * lib/fnmatch_loop.c (FCT): Likewise.
19750
19751         regcomp: skip collseq lookup when there are no rules
19752         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19753         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19754
19755         regcomp: recognize ill-formed { } expressions
19756         * lib/regcomp.c (parse_dup_op): From glibc:
19757         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19758
19759         regcomp: fix typo in comment
19760         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19761         s/satisfy/satisfies/.
19762
19763         regcomp: sync from glibc: remove dead store
19764         * lib/regcomp.c (duplicate_node_closure): Remove useless
19765         search_duplicated_node call and dead store.
19766
19767         regcomp: sync from glibc; always use nl_langinfo
19768         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19769         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19770         * modules/regex (Depends-on): Add nl_langinfo.
19771
19772 2010-01-04  Eric Blake  <ebb9@byu.net>
19773
19774         fdopendir: fix configure test
19775         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19776
19777 2010-01-01  Bruno Haible  <bruno@clisp.org>
19778
19779         wchar: Remove unused configure check.
19780         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19781
19782 2010-01-01  Eric Blake  <ebb9@byu.net>
19783
19784         headers: make check of system header explicit
19785         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19786         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19787         ourselves.
19788         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19789         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19790         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19791         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19792         internals.
19793         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19794         missing.
19795         Suggested by Bruno Haible.
19796
19797 2010-01-01  Jim Meyering  <meyering@redhat.com>
19798
19799         ChangeLog: tweak to eliminate unnecessary copyright line
19800         * ChangeLog: Remove a copyright line that was mistakenly updated
19801         by today's update-copyright run.  Reported by Eric Blake.
19802
19803         test-update-copyright: don't let envvar setting cause test failure
19804         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19805
19806 2010-01-01  Bruno Haible  <bruno@clisp.org>
19807
19808         localename: Avoid gcc warning.
19809         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19810         function if it is not used.
19811
19812 2010-01-01  Jim Meyering  <meyering@redhat.com>
19813
19814         update nearly all FSF copyright year lists to include 2010
19815         Use the same procedure as for 2009, outlined in
19816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19817
19818         version-etc: set COPYRIGHT_YEAR to 2010
19819         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19820
19821 2009-12-31  Eric Blake  <ebb9@byu.net>
19822
19823         doc: correct availability of cygwin 1.5.x getopt
19824         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19825         variables.
19826         * doc/posix-functions/opterr.texi (opterr): Likewise.
19827         * doc/posix-functions/optind.texi (optind): Likewise.
19828         * doc/posix-functions/optopt.texi (optopt): Likewise.
19829         * doc/posix-functions/tzname.texi (tzname): Likewise.
19830
19831         openat: update maintainer
19832         * modules/openat (Maintainer): Add myself.
19833
19834         utimens: avoid shadowing warning
19835         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19836         buffers into one, to avoid shadowing, as well as avoiding a
19837         redundant stat.
19838         Reported by Jim Meyering.
19839
19840         test-dup2: avoid compiler warning
19841         * tests/test-dup2.c (is_inheritable): Only define if used.
19842
19843 2010-01-01  Bruno Haible  <bruno@clisp.org>
19844
19845         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19846         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19847         defined, use wctomb instead of wcrtomb.
19848
19849 2010-01-01  Bruno Haible  <bruno@clisp.org>
19850
19851         iconv: Reject native Solaris iconv.
19852         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19853         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19854
19855 2009-12-31  Bruno Haible  <bruno@clisp.org>
19856
19857         * tests/test-signal.c (main): Remove test of 'SIG'.
19858
19859 2009-12-31  Bruno Haible  <bruno@clisp.org>
19860
19861         spawn: Fix incomplete fix.
19862         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19863         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19864         warnings for GNULIB_POSIXCHECK again.
19865         Reported by Eric Blake.
19866
19867 2009-12-31  Bruno Haible  <bruno@clisp.org>
19868
19869         Avoid namespace pollution on glibc systems.
19870         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19871         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19872         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19873         glibc systems.
19874
19875 2009-12-31  Bruno Haible  <bruno@clisp.org>
19876
19877         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19878         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19879         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19880         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19881         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19882         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19883         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19884
19885 2009-12-31  Bruno Haible  <bruno@clisp.org>
19886
19887         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19888         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19889         afterwards.
19890
19891 2009-12-31  Bruno Haible  <bruno@clisp.org>
19892
19893         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19894         SYS_UTSNAME_H.
19895
19896 2009-12-31  Bruno Haible  <bruno@clisp.org>
19897
19898         spawn: Fix misapplied patch.
19899         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19900         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19901         warnings for GNULIB_POSIXCHECK.
19902
19903 2009-12-31  Bruno Haible  <bruno@clisp.org>
19904
19905         times: Update after sys_times changed.
19906         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19907         * modules/times (Files): Add it.
19908         (configure.ac): Invoke gl_FUNC_TIMES.
19909
19910 2009-12-31  Bruno Haible  <bruno@clisp.org>
19911
19912         Use AC_C_INLINE where necessary.
19913         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19914         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19915         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19916         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19917         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19918         * m4/mbiter.m4 (gl_MBITER): Likewise.
19919         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19920         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19921         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19922         * modules/u64 (configure.ac): Likewise.
19923
19924 2009-12-31  Bruno Haible  <bruno@clisp.org>
19925
19926         Use AC_C_INLINE instead of module 'inline' where possible.
19927         * modules/inline (Description): Clarify purpose.
19928         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19929         * modules/count-one-bits (Depends-on): Remove inline.
19930         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19931         * modules/openat (Depends-on): Remove inline.
19932         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19933         instead of depending on module 'inline'.
19934         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19935         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19936         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19937         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19938         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19939         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19940         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19941         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19942         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19943         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19944         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19945         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19946         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19947         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19948         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19949         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19950         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19951         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19952         Likewise.
19953         * modules/unictype/property-ascii-hex-digit (Depends-on,
19954         configure.ac): Likewise.
19955         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19956         configure.ac): Likewise.
19957         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19958         configure.ac): Likewise.
19959         * modules/unictype/property-bidi-block-separator (Depends-on,
19960         configure.ac): Likewise.
19961         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19962         configure.ac): Likewise.
19963         * modules/unictype/property-bidi-common-separator (Depends-on,
19964         configure.ac): Likewise.
19965         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19966         Likewise.
19967         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19968         configure.ac): Likewise.
19969         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19970         configure.ac): Likewise.
19971         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19972         configure.ac): Likewise.
19973         * modules/unictype/property-bidi-european-digit (Depends-on,
19974         configure.ac): Likewise.
19975         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19976         configure.ac): Likewise.
19977         * modules/unictype/property-bidi-left-to-right (Depends-on,
19978         configure.ac): Likewise.
19979         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19980         configure.ac): Likewise.
19981         * modules/unictype/property-bidi-other-neutral (Depends-on,
19982         configure.ac): Likewise.
19983         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19984         Likewise.
19985         * modules/unictype/property-bidi-segment-separator (Depends-on,
19986         configure.ac): Likewise.
19987         * modules/unictype/property-bidi-whitespace (Depends-on,
19988         configure.ac): Likewise.
19989         * modules/unictype/property-combining (Depends-on, configure.ac):
19990         Likewise.
19991         * modules/unictype/property-composite (Depends-on, configure.ac):
19992         Likewise.
19993         * modules/unictype/property-currency-symbol (Depends-on,
19994         configure.ac): Likewise.
19995         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19996         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19997         Likewise.
19998         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19999         configure.ac): Likewise.
20000         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20001         Likewise.
20002         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20003         Likewise.
20004         * modules/unictype/property-extender (Depends-on, configure.ac):
20005         Likewise.
20006         * modules/unictype/property-format-control (Depends-on, configure.ac):
20007         Likewise.
20008         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20009         Likewise.
20010         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20011         Likewise.
20012         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20013         Likewise.
20014         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20015         Likewise.
20016         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20017         Likewise.
20018         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20019         Likewise.
20020         * modules/unictype/property-id-start (Depends-on, configure.ac):
20021         Likewise.
20022         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20023         Likewise.
20024         * modules/unictype/property-ids-binary-operator (Depends-on,
20025         configure.ac): Likewise.
20026         * modules/unictype/property-ids-trinary-operator (Depends-on,
20027         configure.ac): Likewise.
20028         * modules/unictype/property-ignorable-control (Depends-on,
20029         configure.ac): Likewise.
20030         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20031         Likewise.
20032         * modules/unictype/property-join-control (Depends-on, configure.ac):
20033         Likewise.
20034         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20035         Likewise.
20036         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20037         Likewise.
20038         * modules/unictype/property-logical-order-exception (Depends-on,
20039         configure.ac): Likewise.
20040         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20041         Likewise.
20042         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20043         * modules/unictype/property-non-break (Depends-on, configure.ac):
20044         Likewise.
20045         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20046         Likewise.
20047         * modules/unictype/property-numeric (Depends-on, configure.ac):
20048         Likewise.
20049         * modules/unictype/property-other-alphabetic (Depends-on,
20050         configure.ac): Likewise.
20051         * modules/unictype/property-other-default-ignorable-code-point
20052         (Depends-on, configure.ac): Likewise.
20053         * modules/unictype/property-other-grapheme-extend (Depends-on,
20054         configure.ac): Likewise.
20055         * modules/unictype/property-other-id-continue (Depends-on,
20056         configure.ac): Likewise.
20057         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20058         Likewise.
20059         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20060         Likewise.
20061         * modules/unictype/property-other-math (Depends-on, configure.ac):
20062         Likewise.
20063         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20064         Likewise.
20065         * modules/unictype/property-paired-punctuation (Depends-on,
20066         configure.ac): Likewise.
20067         * modules/unictype/property-paragraph-separator (Depends-on,
20068         configure.ac): Likewise.
20069         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20070         Likewise.
20071         * modules/unictype/property-pattern-white-space (Depends-on,
20072         configure.ac): Likewise.
20073         * modules/unictype/property-private-use (Depends-on, configure.ac):
20074         Likewise.
20075         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20076         Likewise.
20077         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20078         Likewise.
20079         * modules/unictype/property-radical (Depends-on, configure.ac):
20080         Likewise.
20081         * modules/unictype/property-sentence-terminal (Depends-on,
20082         configure.ac): Likewise.
20083         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20084         Likewise.
20085         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20086         * modules/unictype/property-terminal-punctuation (Depends-on,
20087         configure.ac): Likewise.
20088         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20089         Likewise.
20090         * modules/unictype/property-unassigned-code-value (Depends-on,
20091         configure.ac): Likewise.
20092         * modules/unictype/property-unified-ideograph (Depends-on,
20093         configure.ac): Likewise.
20094         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20095         Likewise.
20096         * modules/unictype/property-variation-selector (Depends-on,
20097         configure.ac): Likewise.
20098         * modules/unictype/property-white-space (Depends-on, configure.ac):
20099         Likewise.
20100         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20101         Likewise.
20102         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20103         Likewise.
20104         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20105         Likewise.
20106         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20107         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20108         Likewise.
20109
20110 2009-12-31  Bruno Haible  <bruno@clisp.org>
20111
20112         Remove unnecessary AC_C_INLINE invocation.
20113         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20114         since 2009-08-21.
20115
20116 2009-12-31  Jim Meyering  <meyering@redhat.com>
20117
20118         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20119         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20120         With this change, we can all remove the gpg_key_ID = ... definition
20121         from our respective cfg.mk files.
20122
20123         maint.mk: create announcement template in ~/, not in /tmp
20124         * top/maint.mk (emit_upload_commands): Adjust.
20125         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20126         Remove temporary file, .ci-msg.
20127
20128 2009-12-31  Eric Blake  <ebb9@byu.net>
20129
20130         link-warning: always build headers with link warnings
20131         * modules/arpa_inet (Makefile.am): Always build replacement
20132         header.
20133         * modules/ctype (Makefile.am): Likewise.
20134         * modules/dirent (Makefile.am): Likewise.
20135         * modules/inttypes (Makefile.am): Likewise.
20136         * modules/langinfo (Makefile.am): Likewise.
20137         * modules/locale (Makefile.am): Likewise.
20138         * modules/spawn (Makefile.am): Likewise.
20139         * modules/sys_file (Makefile.am): Likewise.
20140         * modules/sys_ioctl (Makefile.am): Likewise.
20141         * modules/sys_select (Makefile.am): Likewise.
20142         * modules/sys_socket (Makefile.am): Likewise.
20143         * modules/sys_times (Makefile.am): Likewise.
20144         * modules/sys_utsname (Makefile.am): Likewise.
20145         * modules/sys_wait (Makefile.am): Likewise.
20146         * modules/wchar (Makefile.am): Likewise.
20147         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20148         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20149         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20150         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20151         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20152         Likewise.
20153         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20154         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20155         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20156         Likewise.
20157         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20158         Likewise.
20159         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20160         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20161         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20163         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20164         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20165         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20166         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20167         (gl_WCHAR_H_DEFAULTS): Likewise.
20168
20169 2009-12-31  Eric Blake  <ebb9@byu.net>
20170
20171         signal, spawn: use link warnings
20172         * lib/signal.in.h (sigset_t): Make unconditional.
20173         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20174         (sigpending, sigprocmask, sigaction): Add link warnings.
20175         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20176         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20177         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20178         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20179         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20180         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20181         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20182         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20183         (posix_spawn_file_actions_destroy)
20184         (posix_spawn_file_actions_addopen)
20185         (posix_spawn_file_actions_addclose)
20186         (posix_spawn_file_actions_adddup2): Likewise.
20187         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20188         * tests/test-signal.c (main): Enhance test.
20189
20190         spawn: improve wrapper support
20191         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20192         (gl_SPAWN_H_DEFAULTS): New defaults.
20193         * modules/spawn (Makefile.am): Substitute them.
20194         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20195         Only declare if missing or broken.
20196
20197         sys_times, sys_utsname: use include_next
20198         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20199         header.
20200         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20201         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20202         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20203         * modules/sys_times (Depends-on): Add include_next.
20204         (Makefile.am): Substitute additional values.
20205         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20206         * lib/sys_times.in.h (includes): Include native header, if
20207         available.
20208         * lib/sys_utsname.in.h (includes): Likewise.
20209         * tests/test-sys_times.c (main): Enhance test.
20210
20211         fdutimensat: revert prior patch
20212         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20213         utimens.h.
20214         Reported by Bruno Haible.
20215
20216 2009-12-30  Eric Blake  <ebb9@byu.net>
20217
20218         sys_wait: drop link-warning dependency
20219         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20220         link-warning efforts.
20221         * lib/sys_wait.in.h: Likewise.
20222
20223         fdutimensat: remove bogus dependency
20224         * modules/fdutimensat (Depends-on): Drop inline.
20225
20226         unistd: fix typo
20227         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20228
20229 2009-12-30  Bruno Haible  <bruno@clisp.org>
20230
20231         Fix compilation error with Solaris cc.
20232         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20233         * lib/unicase/u16-is-invariant.c: Likewise.
20234         * lib/unicase/u32-is-invariant.c: Likewise.
20235         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20236
20237 2009-12-30  Bruno Haible  <bruno@clisp.org>
20238
20239         Fix test crash.
20240         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20241         locales.
20242         Reported by Simon Josefsson <simon@josefsson.org>.
20243
20244 2009-12-30  Bruno Haible  <bruno@clisp.org>
20245
20246         Fix compilation error on most platforms.
20247         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20248         Reported by Simon Josefsson <simon@josefsson.org>
20249         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20250
20251 2009-12-30  Eric Blake  <ebb9@byu.net>
20252
20253         futimens, utimensat: work around ntfs-3g bug
20254         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20255         a ctime bug is present, and expand workaround to cover ntfs-3g.
20256         * lib/utimens.c (fdutimens, lutimens): Likewise.
20257         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20258         (validate_timespec): Adjust return value.
20259         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20260         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20261         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20262
20263 2009-12-29  Eric Blake  <ebb9@byu.net>
20264
20265         link-warning: make usage consistent
20266         * modules/ctype (Depends-on): Add link-warning.
20267         (Makefile.am): Update rules accordingly.
20268         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20269         * modules/locale (Depends-on, Makefile.am): Likewise.
20270         * modules/sys_file (Makefile.am): Likewise.
20271         * modules/getopt-posix (Makefile.am): Delete unused link warning
20272         efforts.
20273         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20274         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20275         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20276         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20277
20278         stdio: remove unused variables
20279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20280         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20281         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20282
20283         tests: test more substitute headers
20284         * modules/ctype-tests: New file.
20285         * modules/dirent-tests: Likewise.
20286         * modules/spawn-tests: Likewise.
20287         * modules/sys_file-tests: Likewise.
20288         * modules/sys_ioctl-tests: Likewise.
20289         * modules/sys_wait-tests: Likewise.
20290         * tests/test-ctype.c: Likewise.
20291         * tests/test-dirent.c: Likewise.
20292         * tests/test-spawn.c: Likewise.
20293         * tests/test-sys_file.c: Likewise.
20294         * tests/test-sys_ioctl.c: Likewise.
20295         * tests/test-sys_wait.c: Likewise.
20296         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20297         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20298         whether or not flock is in use.
20299
20300         tests: remove License section from module
20301         * modules/arpa_inet-tests: Remove unneeded section.
20302         * modules/byteswap-tests: Likewise.
20303         * modules/ceilf-tests: Likewise.
20304         * modules/ceill-tests: Likewise.
20305         * modules/crypto/des-tests: Likewise.
20306         * modules/crypto/gc-arcfour-tests: Likewise.
20307         * modules/crypto/gc-arctwo-tests: Likewise.
20308         * modules/crypto/gc-des-tests: Likewise.
20309         * modules/crypto/gc-hmac-md5-tests: Likewise.
20310         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20311         * modules/crypto/gc-md2-tests: Likewise.
20312         * modules/crypto/gc-md4-tests: Likewise.
20313         * modules/crypto/gc-md5-tests: Likewise.
20314         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20315         * modules/crypto/gc-rijndael-tests: Likewise.
20316         * modules/crypto/gc-sha1-tests: Likewise.
20317         * modules/crypto/gc-tests: Likewise.
20318         * modules/crypto/md2-tests: Likewise.
20319         * modules/crypto/md4-tests: Likewise.
20320         * modules/fcntl-h-tests: Likewise.
20321         * modules/floorf-tests: Likewise.
20322         * modules/floorl-tests: Likewise.
20323         * modules/frexp-nolibm-tests: Likewise.
20324         * modules/frexp-tests: Likewise.
20325         * modules/frexpl-nolibm-tests: Likewise.
20326         * modules/frexpl-tests: Likewise.
20327         * modules/getaddrinfo-tests: Likewise.
20328         * modules/inttypes-tests: Likewise.
20329         * modules/isfinite-tests: Likewise.
20330         * modules/isinf-tests: Likewise.
20331         * modules/ldexpl-tests: Likewise.
20332         * modules/locale-tests: Likewise.
20333         * modules/math-tests: Likewise.
20334         * modules/netdb-tests: Likewise.
20335         * modules/netinet_in-tests: Likewise.
20336         * modules/printf-frexp-tests: Likewise.
20337         * modules/printf-frexpl-tests: Likewise.
20338         * modules/priv-set-tests: Likewise.
20339         * modules/random_r-tests: Likewise.
20340         * modules/round-tests: Likewise.
20341         * modules/roundf-tests: Likewise.
20342         * modules/roundl-tests: Likewise.
20343         * modules/search-tests: Likewise.
20344         * modules/select-tests: Likewise.
20345         * modules/signal-tests: Likewise.
20346         * modules/stdbool-tests: Likewise.
20347         * modules/stddef-tests: Likewise.
20348         * modules/stdint-tests: Likewise.
20349         * modules/stdio-tests: Likewise.
20350         * modules/stdlib-tests: Likewise.
20351         * modules/string-tests: Likewise.
20352         * modules/strings-tests: Likewise.
20353         * modules/sys_select-tests: Likewise.
20354         * modules/sys_socket-tests: Likewise.
20355         * modules/sys_stat-tests: Likewise.
20356         * modules/sys_time-tests: Likewise.
20357         * modules/sys_utsname-tests: Likewise.
20358         * modules/sysexits-tests: Likewise.
20359         * modules/time-tests: Likewise.
20360         * modules/trunc-tests: Likewise.
20361         * modules/truncf-tests: Likewise.
20362         * modules/truncl-tests: Likewise.
20363         * modules/tsearch-tests: Likewise.
20364         * modules/unistd-tests: Likewise.
20365         * modules/wchar-tests: Likewise.
20366         * modules/wctype-tests: Likewise.
20367
20368         tests: fix license on several tests
20369         * tests/test-des.c: Update to GPLv3+.
20370         * tests/test-flock.c: Likewise.
20371         * tests/test-fsync.c: Likewise.
20372         * tests/test-futimens.h: Likewise.
20373         * tests/test-gc-arcfour.c: Likewise.
20374         * tests/test-gc-arctwo.c: Likewise.
20375         * tests/test-gc-des.c: Likewise.
20376         * tests/test-gc-hmac-md5.c: Likewise.
20377         * tests/test-gc-hmac-sha1.c: Likewise.
20378         * tests/test-gc-md2.c: Likewise.
20379         * tests/test-gc-md4.c: Likewise.
20380         * tests/test-gc-md5.c: Likewise.
20381         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20382         * tests/test-gc-rijndael.c: Likewise.
20383         * tests/test-gc-sha1.c: Likewise.
20384         * tests/test-gc.c: Likewise.
20385         * tests/test-getcwd.c: Likewise.
20386         * tests/test-link.c: Likewise.
20387         * tests/test-link.h: Likewise.
20388         * tests/test-lutimens.h: Likewise.
20389         * tests/test-md2.c: Likewise.
20390         * tests/test-md4.c: Likewise.
20391         * tests/test-mkdir.h: Likewise.
20392         * tests/test-rename.c: Likewise.
20393         * tests/test-rename.h: Likewise.
20394         * tests/test-safe-alloc.c: Likewise.
20395         * tests/test-utimens-common.h: Likewise.
20396         * tests/test-utimens.h: Likewise.
20397
20398         maint: sync license texts
20399         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20400         * doc/gpl-3.0.texi: Revert copyright year update.
20401         * doc/lgpl-3.0.texi: Likewise.
20402
20403 2009-12-29  Jim Meyering  <meyering@redhat.com>
20404
20405         update nearly all FSF copyright year lists to include 2009
20406         The files named by the following are exempted:
20407             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20408               test -f "$dst" && { echo "$dst"; continue; }
20409               test -d "$dst" || continue
20410               echo "$dst"/$(basename "$src")
20411             done > exempt
20412             git ls-files tests/unictype >> exempt
20413         In the remaining files, convert to all-interval notation if
20414         - there is already at least one year interval like 2000-2003
20415         - the file is maintained by me
20416         - the file is in lib/uni*/, where that style already prevails
20417         Otherwise, use update-copyright's default.
20418
20419 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20420         and Eric Blake  <ebb9@byu.net>
20421
20422         tests: don't require debug system() to pass
20423         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20424         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20425         * tests/test-unlink.h (test_unlink_func): Likewise.
20426         * tests/test-fstatat.c (main): ...into callers.
20427         * tests/test-lstat.c (main): Likewise.
20428         * tests/test-rmdir.c (main): Likewise.
20429         * tests/test-unlink.c (main): Likewise.
20430         * tests/test-unlinkat.c (main): Likewise.
20431         * tests/test-areadlink-with-size.c (main): Don't require a
20432         debug-only system call to pass, aiding cross-testing to mingw.
20433         * tests/test-areadlink.c (main): Likewise.
20434         * tests/test-areadlinkat-with-size.c (main): Likewise.
20435         * tests/test-areadlinkat.c (main): Likewise.
20436         * tests/test-canonicalize-lgpl.c (main): Likewise.
20437         * tests/test-canonicalize.c (main): Likewise.
20438         * tests/test-chown.c (main): Likewise.
20439         * tests/test-fchownat.c (main): Likewise.
20440         * tests/test-lchown.c (main): Likewise.
20441         * tests/test-fdutimensat.c (main): Likewise.
20442         * tests/test-futimens.c (main): Likewise.
20443         * tests/test-link.c (main): Likewise.
20444         * tests/test-linkat.c (main): Likewise.
20445         * tests/test-mkdir.c (main): Likewise.
20446         * tests/test-mkdirat.c (main): Likewise.
20447         * tests/test-mkfifo.c (main): Likewise.
20448         * tests/test-mkfifoat.c (main): Likewise.
20449         * tests/test-mknod.c (main): Likewise.
20450         * tests/test-readlink.c (main): Likewise.
20451         * tests/test-remove.c (main): Likewise.
20452         * tests/test-rename.c (main): Likewise.
20453         * tests/test-renameat.c (main): Likewise.
20454         * tests/test-symlink.c (main): Likewise.
20455         * tests/test-symlinkat.c (main): Likewise.
20456         * tests/test-utimens.c (main): Likewise.
20457         * tests/test-utimensat.c (main): Likewise.
20458
20459 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20460
20461         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20462         on $(UNUSED_PARAMETER_H) to avoid build failure.
20463
20464 2009-12-28  Jim Meyering  <meyering@redhat.com>
20465
20466         update-copyright: you may specify a max. line length other than 72
20467         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20468
20469         maint: use consistent FSF copyright line syntax
20470         * lib/posixtm.c: Add missing comma in FSF copyright line.
20471         * lib/posixtm.h: Likewise.
20472         * lib/getugroups.c: Add missing ", Inc.".
20473
20474         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20475         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20476         FSF copyright line.  Remove trailing blanks.
20477
20478 2009-12-28  Eric Blake  <ebb9@byu.net>
20479
20480         test-dup2: reduce dependencies
20481         * modules/cloexec (Configure.ac): Set witness.
20482         * modules/dup2-tests (Depends-on): Drop cloexec.
20483         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20484         not present.
20485         Suggested by Bruno Haible.
20486
20487 2009-12-26  Bruno Haible  <bruno@clisp.org>
20488
20489         Remove an unneeded dependency.
20490         * modules/fseterr (Depends-on): Remove dup2.
20491
20492 2009-12-26  Eric Blake  <ebb9@byu.net>
20493
20494         tests: use macros.h in more places
20495         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20496         (ASSERT_STREAM): Provide default of stderr.
20497         * tests/test-dirent-safer.c: Include macros.h, using alternate
20498         stream for assertions.
20499         * tests/test-dup-safer.c: Likewise.
20500         * tests/test-freopen-safer.c: Likewise.
20501         * tests/test-getopt.c: Likewise.
20502         * tests/test-openat-safer.c: Likewise.
20503         * tests/test-pipe.c: Likewise.
20504         * tests/test-popen-safer.c: Likewise.
20505         * modules/dirent-safer-tests (Files): Include macros.h.
20506         * modules/unistd-safer-tests (Files): Likewise.
20507         * modules/freopen-safer-tests (Files): Likewise.
20508         * modules/getopt-posix-tests (Files): Likewise.
20509         * modules/openat-safer-tests (Files): Likewise.
20510         * modules/pipe-tests (Files): Likewise.
20511
20512 2009-12-26  Bruno Haible  <bruno@clisp.org>
20513
20514         javacomp: Portability fix.
20515         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20516         that it also works on Solaris.
20517
20518 2009-12-26  Bruno Haible  <bruno@clisp.org>
20519
20520         localename: Fix storage allocation of gl_locale_name_thread's result.
20521         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20522         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20523         all platforms that have 'uselocale'.
20524         (gl_locale_name_thread_unsafe): New function, extracted from
20525         gl_locale_name_thread.
20526         (gl_locale_name_thread): Call struniq on all platforms that have
20527         'uselocale'.
20528         * tests/test-localename.c (test_locale_name_thread): Check that the
20529         resulting strings are permanently allocated.
20530         * modules/localename-tests (Depends-on): Add strdup.
20531
20532 2009-12-26  Bruno Haible  <bruno@clisp.org>
20533
20534         * tests/test-localename.c (categories): Fill in the strings.
20535
20536 2009-12-26  Jim Meyering  <meyering@redhat.com>
20537
20538         isdir: complete the removal of m4/isdir.m4
20539         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20540
20541         isdir: clean up, since at least grep still uses it
20542         * lib/isdir.c: Include "isdir.h".
20543         (S_ISDIR): Remove now-unneeded definition.
20544         * modules/isdir (Files): Add lib/isdir.h.
20545         * lib/isdir.h: New file, with declaration.
20546         * m4/isdir.m4: Remove file -- unneeded.
20547
20548 2009-12-25  Bruno Haible  <bruno@clisp.org>
20549
20550         selinux-h: Make generated .h files standalone.
20551         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20552         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20553         * lib/se-selinux.in.h: Likewise.
20554         * modules/selinux-h (Depends-on): Add unused-parameter.
20555         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20556         selinux/selinux.h and selinux/context.h.
20557         Suggested by Eric Blake.
20558
20559 2009-12-25  Bruno Haible  <bruno@clisp.org>
20560
20561         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20562         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20563         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20564         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20565         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20566
20567 2009-12-24  Bruno Haible  <bruno@clisp.org>
20568
20569         openat: Fix warning.
20570         * lib/openat-proc.c: Include <unistd.h>.
20571
20572 2009-12-24  Bruno Haible  <bruno@clisp.org>
20573
20574         New module 'unused-parameter'.
20575         * build-aux/unused-parameter.h: New file, extracted from earlier
20576         gnulib-common.m4.
20577         * modules/unused-parameter: New file.
20578         * lib/unistr.h: Include unused-parameter.h.
20579         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20580         _GL_UNUSED.
20581         * modules/unistr/base (Depends-on): Add unused-parameter.
20582
20583 2009-12-24  Bruno Haible  <bruno@clisp.org>
20584
20585         Add missing dependencies to 'extensions' module.
20586         * m4/extensions.m4: Add comment.
20587         * modules/accept4 (Depends-on): Add extensions.
20588         * modules/dup3 (Depends-on): Likewise.
20589         * modules/fcntl (Depends-on): Likewise.
20590         * modules/futimens (Depends-on): Likewise.
20591         * modules/mknod (Depends-on): Likewise.
20592         * modules/pipe2 (Depends-on): Likewise.
20593         * modules/stat-time (Depends-on): Likewise.
20594         * modules/strcasestr-simple (Depends-on): Likewise.
20595         * modules/strsignal (Depends-on): Likewise.
20596         * modules/utimensat (Depends-on): Likewise.
20597         * modules/localcharset (Depends-on): Likewise. Needed because of
20598         gl_FCNTL_O_FLAGS.
20599         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20600         AC_TYPE_MBSTATE_T.
20601         * modules/wcsnrtombs (Depends-on): Likewise.
20602         * modules/wcsrtombs (Depends-on): Likewise.
20603
20604 2009-12-24  Bruno Haible  <bruno@clisp.org>
20605
20606         binary-io: Avoid gcc warning due to SET_BINARY.
20607         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20608         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20609
20610 2009-12-24  Bruno Haible  <bruno@clisp.org>
20611
20612         Avoid future namespace pollution on glibc systems.
20613         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20614         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20615         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20616         glibc systems.
20617
20618 2009-12-24  Bruno Haible  <bruno@clisp.org>
20619
20620         Refactor common macros used in tests.
20621         * tests/macros.h: New file.
20622         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20623         and/or <stdlib.h>, if appropriate.
20624         (ASSERT, SIZEOF): Remove macros.
20625         * tests/test-areadlink-with-size.c: Likewise.
20626         * tests/test-areadlinkat.c: Likewise.
20627         * tests/test-areadlinkat-with-size.c: Likewise.
20628         * tests/test-argmatch.c: Likewise.
20629         * tests/test-argv-iter.c: Likewise.
20630         * tests/test-array-mergesort.c: Likewise.
20631         * tests/test-array_list.c: Likewise.
20632         * tests/test-array_oset.c: Likewise.
20633         * tests/test-avltree_list.c: Likewise.
20634         * tests/test-avltree_oset.c: Likewise.
20635         * tests/test-avltreehash_list.c: Likewise.
20636         * tests/test-base64.c: Likewise.
20637         * tests/test-binary-io.c: Likewise.
20638         * tests/test-bitrotate.c: Likewise.
20639         * tests/test-btowc.c: Likewise.
20640         * tests/test-byteswap.c: Likewise.
20641         * tests/test-c-ctype.c: Likewise.
20642         * tests/test-c-stack.c: Likewise.
20643         * tests/test-c-strcasecmp.c: Likewise.
20644         * tests/test-c-strcasestr.c: Likewise.
20645         * tests/test-c-strncasecmp.c: Likewise.
20646         * tests/test-c-strstr.c: Likewise.
20647         * tests/test-canonicalize-lgpl.c: Likewise.
20648         * tests/test-canonicalize.c: Likewise.
20649         * tests/test-carray_list.c: Likewise.
20650         * tests/test-ceilf1.c: Likewise.
20651         * tests/test-ceilf2.c: Likewise.
20652         * tests/test-ceill.c: Likewise.
20653         * tests/test-chown.c: Likewise.
20654         * tests/test-cloexec.c: Likewise.
20655         * tests/test-copy-acl.c: Likewise.
20656         * tests/test-copy-file.c: Likewise.
20657         * tests/test-count-one-bits.c: Likewise.
20658         * tests/test-dprintf-posix.c: Likewise.
20659         * tests/test-dup2.c: Likewise.
20660         * tests/test-dup3.c: Likewise.
20661         * tests/test-duplocale.c: Likewise.
20662         * tests/test-fbufmode.c: Likewise.
20663         * tests/test-fchdir.c: Likewise.
20664         * tests/test-fchownat.c: Likewise.
20665         * tests/test-fcntl-safer.c: Likewise.
20666         * tests/test-fcntl.c: Likewise.
20667         * tests/test-fdopendir.c: Likewise.
20668         * tests/test-fdutimensat.c: Likewise.
20669         * tests/test-fflush2.c: Likewise.
20670         * tests/test-file-has-acl.c: Likewise.
20671         * tests/test-filevercmp.c: Likewise.
20672         * tests/test-flock.c: Likewise.
20673         * tests/test-floorf1.c: Likewise.
20674         * tests/test-floorf2.c: Likewise.
20675         * tests/test-floorl.c: Likewise.
20676         * tests/test-fnmatch.c: Likewise.
20677         * tests/test-fopen.h: Likewise.
20678         * tests/test-fpending.c: Likewise.
20679         * tests/test-fprintf-posix.c: Likewise.
20680         * tests/test-fpurge.c: Likewise.
20681         * tests/test-freadable.c: Likewise.
20682         * tests/test-freadahead.c: Likewise.
20683         * tests/test-freading.c: Likewise.
20684         * tests/test-freadptr.c: Likewise.
20685         * tests/test-freadptr2.c: Likewise.
20686         * tests/test-freadseek.c: Likewise.
20687         * tests/test-freopen.c: Likewise.
20688         * tests/test-frexp.c: Likewise.
20689         * tests/test-frexpl.c: Likewise.
20690         * tests/test-fseek.c: Likewise.
20691         * tests/test-fseeko.c: Likewise.
20692         * tests/test-fstatat.c: Likewise.
20693         * tests/test-fstrcmp.c: Likewise.
20694         * tests/test-fsync.c: Likewise.
20695         * tests/test-ftell.c: Likewise.
20696         * tests/test-ftello.c: Likewise.
20697         * tests/test-func.c: Likewise.
20698         * tests/test-futimens.c: Likewise.
20699         * tests/test-fwritable.c: Likewise.
20700         * tests/test-fwriting.c: Likewise.
20701         * tests/test-getcwd.c: Likewise.
20702         * tests/test-getdate.c: Likewise.
20703         * tests/test-getdelim.c: Likewise.
20704         * tests/test-getdtablesize.c: Likewise.
20705         * tests/test-getgroups.c: Likewise.
20706         * tests/test-getline.c: Likewise.
20707         * tests/test-getndelim2.c: Likewise.
20708         * tests/test-glob.c: Likewise.
20709         * tests/test-hash.c: Likewise.
20710         * tests/test-i-ring.c: Likewise.
20711         * tests/test-iconv-utf.c: Likewise.
20712         * tests/test-iconv.c: Likewise.
20713         * tests/test-idpriv-drop.c: Likewise.
20714         * tests/test-idpriv-droptemp.c: Likewise.
20715         * tests/test-inet_ntop.c: Likewise.
20716         * tests/test-inet_pton.c: Likewise.
20717         * tests/test-isblank.c: Likewise.
20718         * tests/test-isfinite.c: Likewise.
20719         * tests/test-isinf.c: Likewise.
20720         * tests/test-isnan.c: Likewise.
20721         * tests/test-isnand.h: Likewise.
20722         * tests/test-isnanf.h: Likewise.
20723         * tests/test-isnanl.h: Likewise.
20724         * tests/test-lchown.c: Likewise.
20725         * tests/test-ldexpl.c: Likewise.
20726         * tests/test-link.c: Likewise.
20727         * tests/test-linkat.c: Likewise.
20728         * tests/test-linked_list.c: Likewise.
20729         * tests/test-linkedhash_list.c: Likewise.
20730         * tests/test-localename.c: Likewise.
20731         * tests/test-lseek.c: Likewise.
20732         * tests/test-lstat.c: Likewise.
20733         * tests/test-mbmemcasecmp.c: Likewise.
20734         * tests/test-mbmemcasecoll.c: Likewise.
20735         * tests/test-mbrtowc.c: Likewise.
20736         * tests/test-mbscasecmp.c: Likewise.
20737         * tests/test-mbscasestr1.c: Likewise.
20738         * tests/test-mbscasestr2.c: Likewise.
20739         * tests/test-mbscasestr3.c: Likewise.
20740         * tests/test-mbscasestr4.c: Likewise.
20741         * tests/test-mbschr.c: Likewise.
20742         * tests/test-mbscspn.c: Likewise.
20743         * tests/test-mbsinit.c: Likewise.
20744         * tests/test-mbsncasecmp.c: Likewise.
20745         * tests/test-mbsnrtowcs.c: Likewise.
20746         * tests/test-mbspbrk.c: Likewise.
20747         * tests/test-mbspcasecmp.c: Likewise.
20748         * tests/test-mbsrchr.c: Likewise.
20749         * tests/test-mbsrtowcs.c: Likewise.
20750         * tests/test-mbsspn.c: Likewise.
20751         * tests/test-mbsstr1.c: Likewise.
20752         * tests/test-mbsstr2.c: Likewise.
20753         * tests/test-mbsstr3.c: Likewise.
20754         * tests/test-memchr.c: Likewise.
20755         * tests/test-memchr2.c: Likewise.
20756         * tests/test-memcmp.c: Likewise.
20757         * tests/test-memmem.c: Likewise.
20758         * tests/test-memrchr.c: Likewise.
20759         * tests/test-mkdir.c: Likewise.
20760         * tests/test-mkdirat.c: Likewise.
20761         * tests/test-mkfifo.c: Likewise.
20762         * tests/test-mkfifoat.c: Likewise.
20763         * tests/test-mknod.c: Likewise.
20764         * tests/test-nanosleep.c: Likewise.
20765         * tests/test-nl_langinfo.c: Likewise.
20766         * tests/test-obstack-printf.c: Likewise.
20767         * tests/test-open.c: Likewise.
20768         * tests/test-openat.c: Likewise.
20769         * tests/test-pipe-filter-gi1.c: Likewise.
20770         * tests/test-pipe-filter-gi2-main.c: Likewise.
20771         * tests/test-pipe-filter-ii1.c: Likewise.
20772         * tests/test-pipe-filter-ii2-main.c: Likewise.
20773         * tests/test-pipe2.c: Likewise.
20774         * tests/test-popen.h: Likewise.
20775         * tests/test-posixtm.c: Likewise.
20776         * tests/test-pread.c: Likewise.
20777         * tests/test-printf-frexp.c: Likewise.
20778         * tests/test-printf-frexpl.c: Likewise.
20779         * tests/test-printf-posix.c: Likewise.
20780         * tests/test-priv-set.c: Likewise.
20781         * tests/test-quotearg.c: Likewise.
20782         * tests/test-random_r.c: Likewise.
20783         * tests/test-rawmemchr.c: Likewise.
20784         * tests/test-rbtree_list.c: Likewise.
20785         * tests/test-rbtree_oset.c: Likewise.
20786         * tests/test-rbtreehash_list.c: Likewise.
20787         * tests/test-readlink.c: Likewise.
20788         * tests/test-remove.c: Likewise.
20789         * tests/test-rename.c: Likewise.
20790         * tests/test-renameat.c: Likewise.
20791         * tests/test-rmdir.c: Likewise.
20792         * tests/test-round1.c: Likewise.
20793         * tests/test-roundf1.c: Likewise.
20794         * tests/test-roundl.c: Likewise.
20795         * tests/test-safe-alloc.c: Likewise.
20796         * tests/test-sameacls.c: Likewise.
20797         * tests/test-set-mode-acl.c: Likewise.
20798         * tests/test-setenv.c: Likewise.
20799         * tests/test-sigaction.c: Likewise.
20800         * tests/test-signbit.c: Likewise.
20801         * tests/test-sleep.c: Likewise.
20802         * tests/test-snprintf-posix.c: Likewise.
20803         * tests/test-snprintf.c: Likewise.
20804         * tests/test-sprintf-posix.c: Likewise.
20805         * tests/test-stat-time.c: Likewise.
20806         * tests/test-stat.c: Likewise.
20807         * tests/test-strcasestr.c: Likewise.
20808         * tests/test-strchrnul.c: Likewise.
20809         * tests/test-strerror.c: Likewise.
20810         * tests/test-striconv.c: Likewise.
20811         * tests/test-striconveh.c: Likewise.
20812         * tests/test-striconveha.c: Likewise.
20813         * tests/test-strsignal.c: Likewise.
20814         * tests/test-strstr.c: Likewise.
20815         * tests/test-strtod.c: Likewise.
20816         * tests/test-strverscmp.c: Likewise.
20817         * tests/test-symlink.c: Likewise.
20818         * tests/test-symlinkat.c: Likewise.
20819         * tests/test-trunc1.c: Likewise.
20820         * tests/test-trunc2.c: Likewise.
20821         * tests/test-truncf1.c: Likewise.
20822         * tests/test-truncf2.c: Likewise.
20823         * tests/test-truncl.c: Likewise.
20824         * tests/test-uname.c: Likewise.
20825         * tests/test-unlink.c: Likewise.
20826         * tests/test-unlinkat.c: Likewise.
20827         * tests/test-unsetenv.c: Likewise.
20828         * tests/test-usleep.c: Likewise.
20829         * tests/test-utimens.c: Likewise.
20830         * tests/test-utimensat.c: Likewise.
20831         * tests/test-vasnprintf-posix.c: Likewise.
20832         * tests/test-vasnprintf-posix2.c: Likewise.
20833         * tests/test-vasnprintf.c: Likewise.
20834         * tests/test-vasprintf-posix.c: Likewise.
20835         * tests/test-vasprintf.c: Likewise.
20836         * tests/test-vdprintf-posix.c: Likewise.
20837         * tests/test-vfprintf-posix.c: Likewise.
20838         * tests/test-vprintf-posix.c: Likewise.
20839         * tests/test-vsnprintf-posix.c: Likewise.
20840         * tests/test-vsnprintf.c: Likewise.
20841         * tests/test-vsprintf-posix.c: Likewise.
20842         * tests/test-wcrtomb.c: Likewise.
20843         * tests/test-wcsnrtombs.c: Likewise.
20844         * tests/test-wcsrtombs.c: Likewise.
20845         * tests/test-wctype.c: Likewise.
20846         * tests/test-wcwidth.c: Likewise.
20847         * tests/test-xfprintf-posix.c: Likewise.
20848         * tests/test-xmemdup0.c: Likewise.
20849         * tests/test-xprintf-posix.c: Likewise.
20850         * tests/test-xvasprintf.c: Likewise.
20851         * tests/unicase/test-locale-language.c: Likewise.
20852         * tests/unicase/test-mapping-part1.h: Likewise.
20853         * tests/unicase/test-predicate-part1.h: Likewise.
20854         * tests/unicase/test-u8-casecmp.c: Likewise.
20855         * tests/unicase/test-u8-casecoll.c: Likewise.
20856         * tests/unicase/test-u8-casefold.c: Likewise.
20857         * tests/unicase/test-u8-is-cased.c: Likewise.
20858         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20859         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20860         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20861         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20862         * tests/unicase/test-u8-tolower.c: Likewise.
20863         * tests/unicase/test-u8-totitle.c: Likewise.
20864         * tests/unicase/test-u8-toupper.c: Likewise.
20865         * tests/unicase/test-u16-casecmp.c: Likewise.
20866         * tests/unicase/test-u16-casecoll.c: Likewise.
20867         * tests/unicase/test-u16-casefold.c: Likewise.
20868         * tests/unicase/test-u16-is-cased.c: Likewise.
20869         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20870         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20871         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20872         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20873         * tests/unicase/test-u16-tolower.c: Likewise.
20874         * tests/unicase/test-u16-totitle.c: Likewise.
20875         * tests/unicase/test-u16-toupper.c: Likewise.
20876         * tests/unicase/test-u32-casecmp.c: Likewise.
20877         * tests/unicase/test-u32-casecoll.c: Likewise.
20878         * tests/unicase/test-u32-casefold.c: Likewise.
20879         * tests/unicase/test-u32-is-cased.c: Likewise.
20880         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20881         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20882         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20883         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20884         * tests/unicase/test-u32-tolower.c: Likewise.
20885         * tests/unicase/test-u32-totitle.c: Likewise.
20886         * tests/unicase/test-u32-toupper.c: Likewise.
20887         * tests/unicase/test-ulc-casecmp.c: Likewise.
20888         * tests/unicase/test-ulc-casecoll.c: Likewise.
20889         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20890         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20891         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20892         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20893         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20894         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20895         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20896         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20897         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20898         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20899         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20900         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20901         * tests/unictype/test-bidi_byname.c: Likewise.
20902         * tests/unictype/test-bidi_name.c: Likewise.
20903         * tests/unictype/test-bidi_of.c: Likewise.
20904         * tests/unictype/test-bidi_test.c: Likewise.
20905         * tests/unictype/test-block_list.c: Likewise.
20906         * tests/unictype/test-block_of.c: Likewise.
20907         * tests/unictype/test-block_test.c: Likewise.
20908         * tests/unictype/test-categ_and.c: Likewise.
20909         * tests/unictype/test-categ_and_not.c: Likewise.
20910         * tests/unictype/test-categ_byname.c: Likewise.
20911         * tests/unictype/test-categ_name.c: Likewise.
20912         * tests/unictype/test-categ_none.c: Likewise.
20913         * tests/unictype/test-categ_of.c: Likewise.
20914         * tests/unictype/test-categ_or.c: Likewise.
20915         * tests/unictype/test-categ_test_withtable.c: Likewise.
20916         * tests/unictype/test-combining.c: Likewise.
20917         * tests/unictype/test-decdigit.c: Likewise.
20918         * tests/unictype/test-digit.c: Likewise.
20919         * tests/unictype/test-mirror.c: Likewise.
20920         * tests/unictype/test-numeric.c: Likewise.
20921         * tests/unictype/test-pr_byname.c: Likewise.
20922         * tests/unictype/test-pr_test.c: Likewise.
20923         * tests/unictype/test-predicate-part1.h: Likewise.
20924         * tests/unictype/test-scripts.c: Likewise.
20925         * tests/unictype/test-sy_c_ident.c: Likewise.
20926         * tests/unictype/test-sy_java_ident.c: Likewise.
20927         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20928         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20929         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20930         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20931         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20932         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20933         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20934         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20935         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20936         * tests/uninorm/test-compat-decomposition.c: Likewise.
20937         * tests/uninorm/test-composition.c: Likewise.
20938         * tests/uninorm/test-decomposing-form.c: Likewise.
20939         * tests/uninorm/test-decomposition.c: Likewise.
20940         * tests/uninorm/test-u8-nfc.c: Likewise.
20941         * tests/uninorm/test-u8-nfd.c: Likewise.
20942         * tests/uninorm/test-u8-nfkc.c: Likewise.
20943         * tests/uninorm/test-u8-nfkd.c: Likewise.
20944         * tests/uninorm/test-u8-normcmp.c: Likewise.
20945         * tests/uninorm/test-u8-normcoll.c: Likewise.
20946         * tests/uninorm/test-u16-nfc.c: Likewise.
20947         * tests/uninorm/test-u16-nfd.c: Likewise.
20948         * tests/uninorm/test-u16-nfkc.c: Likewise.
20949         * tests/uninorm/test-u16-nfkd.c: Likewise.
20950         * tests/uninorm/test-u16-normcmp.c: Likewise.
20951         * tests/uninorm/test-u16-normcoll.c: Likewise.
20952         * tests/uninorm/test-u32-nfc.c: Likewise.
20953         * tests/uninorm/test-u32-nfd.c: Likewise.
20954         * tests/uninorm/test-u32-nfkc.c: Likewise.
20955         * tests/uninorm/test-u32-nfkd.c: Likewise.
20956         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20957         * tests/uninorm/test-u32-normcmp.c: Likewise.
20958         * tests/uninorm/test-u32-normcoll.c: Likewise.
20959         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20960         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20961         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20962         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20963         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20964         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20965         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20966         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20967         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20968         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20969         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20970         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20971         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20972         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20973         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20974         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20975         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20976         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20977         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20978         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20979         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20980         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20981         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20982         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20983         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20984         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20985         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20986         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20987         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20988         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20989         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20990         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20991         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20992         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20993         * tests/uniwidth/test-u8-width.c: Likewise.
20994         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20995         * tests/uniwidth/test-u16-width.c: Likewise.
20996         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20997         * tests/uniwidth/test-u32-width.c: Likewise.
20998         * tests/uniwidth/test-uc_width.c: Likewise.
20999         * tests/uniwidth/test-uc_width2.c: Likewise.
21000         * modules/acl-tests (Files): Add tests/macros.h.
21001         * modules/areadlink-tests (Files): Likewise.
21002         * modules/areadlink-with-size-tests (Files): Likewise.
21003         * modules/areadlinkat-tests (Files): Likewise.
21004         * modules/areadlinkat-with-size-tests (Files): Likewise.
21005         * modules/argmatch-tests (Files): Likewise.
21006         * modules/argv-iter-tests (Files): Likewise.
21007         * modules/array-list-tests (Files): Likewise.
21008         * modules/array-mergesort-tests (Files): Likewise.
21009         * modules/array-oset-tests (Files): Likewise.
21010         * modules/avltree-list-tests (Files): Likewise.
21011         * modules/avltree-oset-tests (Files): Likewise.
21012         * modules/avltreehash-list-tests (Files): Likewise.
21013         * modules/base64-tests (Files): Likewise.
21014         * modules/binary-io-tests (Files): Likewise.
21015         * modules/bitrotate-tests (Files): Likewise.
21016         * modules/btowc-tests (Files): Likewise.
21017         * modules/byteswap-tests (Files): Likewise.
21018         * modules/c-ctype-tests (Files): Likewise.
21019         * modules/c-stack-tests (Files): Likewise.
21020         * modules/c-strcase-tests (Files): Likewise.
21021         * modules/c-strcasestr-tests (Files): Likewise.
21022         * modules/c-strstr-tests (Files): Likewise.
21023         * modules/canonicalize-lgpl-tests (Files): Likewise.
21024         * modules/canonicalize-tests (Files): Likewise.
21025         * modules/carray-list-tests (Files): Likewise.
21026         * modules/ceilf-tests (Files): Likewise.
21027         * modules/ceill-tests (Files): Likewise.
21028         * modules/chown-tests (Files): Likewise.
21029         * modules/cloexec-tests (Files): Likewise.
21030         * modules/copy-file-tests (Files): Likewise.
21031         * modules/count-one-bits-tests (Files): Likewise.
21032         * modules/dprintf-posix-tests (Files): Likewise.
21033         * modules/dup2-tests (Files): Likewise.
21034         * modules/dup3-tests (Files): Likewise.
21035         * modules/duplocale-tests (Files): Likewise.
21036         * modules/fbufmode-tests (Files): Likewise.
21037         * modules/fchdir-tests (Files): Likewise.
21038         * modules/fcntl-safer-tests (Files): Likewise.
21039         * modules/fcntl-tests (Files): Likewise.
21040         * modules/fdopendir-tests (Files): Likewise.
21041         * modules/fdutimensat-tests (Files): Likewise.
21042         * modules/fflush-tests (Files): Likewise.
21043         * modules/filevercmp-tests (Files): Likewise.
21044         * modules/flock-tests (Files): Likewise.
21045         * modules/floorf-tests (Files): Likewise.
21046         * modules/floorl-tests (Files): Likewise.
21047         * modules/fnmatch-tests (Files): Likewise.
21048         * modules/fopen-safer-tests (Files): Likewise.
21049         * modules/fopen-tests (Files): Likewise.
21050         * modules/fpending-tests (Files): Likewise.
21051         * modules/fprintf-posix-tests (Files): Likewise.
21052         * modules/fpurge-tests (Files): Likewise.
21053         * modules/freadable-tests (Files): Likewise.
21054         * modules/freadahead-tests (Files): Likewise.
21055         * modules/freading-tests (Files): Likewise.
21056         * modules/freadptr-tests (Files): Likewise.
21057         * modules/freadseek-tests (Files): Likewise.
21058         * modules/freopen-tests (Files): Likewise.
21059         * modules/frexp-nolibm-tests (Files): Likewise.
21060         * modules/frexp-tests (Files): Likewise.
21061         * modules/frexpl-nolibm-tests (Files): Likewise.
21062         * modules/frexpl-tests (Files): Likewise.
21063         * modules/fseek-tests (Files): Likewise.
21064         * modules/fseeko-tests (Files): Likewise.
21065         * modules/fstrcmp-tests (Files): Likewise.
21066         * modules/fsync-tests (Files): Likewise.
21067         * modules/ftell-tests (Files): Likewise.
21068         * modules/ftello-tests (Files): Likewise.
21069         * modules/func-tests (Files): Likewise.
21070         * modules/futimens-tests (Files): Likewise.
21071         * modules/fwritable-tests (Files): Likewise.
21072         * modules/fwriting-tests (Files): Likewise.
21073         * modules/getcwd-tests (Files): Likewise.
21074         * modules/getdate-tests (Files): Likewise.
21075         * modules/getdelim-tests (Files): Likewise.
21076         * modules/getdtablesize-tests (Files): Likewise.
21077         * modules/getgroups-tests (Files): Likewise.
21078         * modules/getline-tests (Files): Likewise.
21079         * modules/getndelim2-tests (Files): Likewise.
21080         * modules/glob-tests (Files): Likewise.
21081         * modules/hash-tests (Files): Likewise.
21082         * modules/i-ring-tests (Files): Likewise.
21083         * modules/iconv-tests (Files): Likewise.
21084         * modules/iconv_open-utf-tests (Files): Likewise.
21085         * modules/idpriv-drop-tests (Files): Likewise.
21086         * modules/idpriv-droptemp-tests (Files): Likewise.
21087         * modules/inet_ntop-tests (Files): Likewise.
21088         * modules/inet_pton-tests (Files): Likewise.
21089         * modules/isblank-tests (Files): Likewise.
21090         * modules/isfinite-tests (Files): Likewise.
21091         * modules/isinf-tests (Files): Likewise.
21092         * modules/isnan-tests (Files): Likewise.
21093         * modules/isnand-nolibm-tests (Files): Likewise.
21094         * modules/isnand-tests (Files): Likewise.
21095         * modules/isnanf-nolibm-tests (Files): Likewise.
21096         * modules/isnanf-tests (Files): Likewise.
21097         * modules/isnanl-nolibm-tests (Files): Likewise.
21098         * modules/isnanl-tests (Files): Likewise.
21099         * modules/lchown-tests (Files): Likewise.
21100         * modules/ldexpl-tests (Files): Likewise.
21101         * modules/link-tests (Files): Likewise.
21102         * modules/linkat-tests (Files): Likewise.
21103         * modules/linked-list-tests (Files): Likewise.
21104         * modules/linkedhash-list-tests (Files): Likewise.
21105         * modules/localename-tests (Files): Likewise.
21106         * modules/lseek-tests (Files): Likewise.
21107         * modules/lstat-tests (Files): Likewise.
21108         * modules/mbmemcasecmp-tests (Files): Likewise.
21109         * modules/mbmemcasecoll-tests (Files): Likewise.
21110         * modules/mbrtowc-tests (Files): Likewise.
21111         * modules/mbscasecmp-tests (Files): Likewise.
21112         * modules/mbscasestr-tests (Files): Likewise.
21113         * modules/mbschr-tests (Files): Likewise.
21114         * modules/mbscspn-tests (Files): Likewise.
21115         * modules/mbsinit-tests (Files): Likewise.
21116         * modules/mbsncasecmp-tests (Files): Likewise.
21117         * modules/mbsnrtowcs-tests (Files): Likewise.
21118         * modules/mbspbrk-tests (Files): Likewise.
21119         * modules/mbspcasecmp-tests (Files): Likewise.
21120         * modules/mbsrchr-tests (Files): Likewise.
21121         * modules/mbsrtowcs-tests (Files): Likewise.
21122         * modules/mbsspn-tests (Files): Likewise.
21123         * modules/mbsstr-tests (Files): Likewise.
21124         * modules/memchr-tests (Files): Likewise.
21125         * modules/memchr2-tests (Files): Likewise.
21126         * modules/memcmp-tests (Files): Likewise.
21127         * modules/memmem-tests (Files): Likewise.
21128         * modules/memrchr-tests (Files): Likewise.
21129         * modules/mkdir-tests (Files): Likewise.
21130         * modules/mkfifo-tests (Files): Likewise.
21131         * modules/mkfifoat-tests (Files): Likewise.
21132         * modules/mknod-tests (Files): Likewise.
21133         * modules/nanosleep-tests (Files): Likewise.
21134         * modules/nl_langinfo-tests (Files): Likewise.
21135         * modules/obstack-printf-tests (Files): Likewise.
21136         * modules/open-tests (Files): Likewise.
21137         * modules/openat-tests (Files): Likewise.
21138         * modules/pipe-filter-gi-tests (Files): Likewise.
21139         * modules/pipe-filter-ii-tests (Files): Likewise.
21140         * modules/pipe2-tests (Files): Likewise.
21141         * modules/popen-safer-tests (Files): Likewise.
21142         * modules/popen-tests (Files): Likewise.
21143         * modules/posixtm-tests (Files): Likewise.
21144         * modules/pread-tests (Files): Likewise.
21145         * modules/printf-frexp-tests (Files): Likewise.
21146         * modules/printf-frexpl-tests (Files): Likewise.
21147         * modules/printf-posix-tests (Files): Likewise.
21148         * modules/priv-set-tests (Files): Likewise.
21149         * modules/quotearg-tests (Files): Likewise.
21150         * modules/random_r-tests (Files): Likewise.
21151         * modules/rawmemchr-tests (Files): Likewise.
21152         * modules/rbtree-list-tests (Files): Likewise.
21153         * modules/rbtree-oset-tests (Files): Likewise.
21154         * modules/rbtreehash-list-tests (Files): Likewise.
21155         * modules/readlink-tests (Files): Likewise.
21156         * modules/remove-tests (Files): Likewise.
21157         * modules/rename-tests (Files): Likewise.
21158         * modules/renameat-tests (Files): Likewise.
21159         * modules/rmdir-tests (Files): Likewise.
21160         * modules/round-tests (Files): Likewise.
21161         * modules/roundf-tests (Files): Likewise.
21162         * modules/roundl-tests (Files): Likewise.
21163         * modules/safe-alloc-tests (Files): Likewise.
21164         * modules/setenv-tests (Files): Likewise.
21165         * modules/sigaction-tests (Files): Likewise.
21166         * modules/signbit-tests (Files): Likewise.
21167         * modules/sleep-tests (Files): Likewise.
21168         * modules/snprintf-posix-tests (Files): Likewise.
21169         * modules/snprintf-tests (Files): Likewise.
21170         * modules/sprintf-posix-tests (Files): Likewise.
21171         * modules/stat-tests (Files): Likewise.
21172         * modules/stat-time-tests (Files): Likewise.
21173         * modules/strcasestr-tests (Files): Likewise.
21174         * modules/strchrnul-tests (Files): Likewise.
21175         * modules/strerror-tests (Files): Likewise.
21176         * modules/striconv-tests (Files): Likewise.
21177         * modules/striconveh-tests (Files): Likewise.
21178         * modules/striconveha-tests (Files): Likewise.
21179         * modules/strsignal-tests (Files): Likewise.
21180         * modules/strstr-tests (Files): Likewise.
21181         * modules/strtod-tests (Files): Likewise.
21182         * modules/strverscmp-tests (Files): Likewise.
21183         * modules/symlink-tests (Files): Likewise.
21184         * modules/symlinkat-tests (Files): Likewise.
21185         * modules/trunc-tests (Files): Likewise.
21186         * modules/truncf-tests (Files): Likewise.
21187         * modules/truncl-tests (Files): Likewise.
21188         * modules/uname-tests (Files): Likewise.
21189         * modules/unicase/cased-tests (Files): Likewise.
21190         * modules/unicase/ignorable-tests (Files): Likewise.
21191         * modules/unicase/locale-language-tests (Files): Likewise.
21192         * modules/unicase/tolower-tests (Files): Likewise.
21193         * modules/unicase/totitle-tests (Files): Likewise.
21194         * modules/unicase/toupper-tests (Files): Likewise.
21195         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21196         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21197         * modules/unicase/u8-casefold-tests (Files): Likewise.
21198         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21199         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21200         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21201         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21202         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21203         * modules/unicase/u8-tolower-tests (Files): Likewise.
21204         * modules/unicase/u8-totitle-tests (Files): Likewise.
21205         * modules/unicase/u8-toupper-tests (Files): Likewise.
21206         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21207         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21208         * modules/unicase/u16-casefold-tests (Files): Likewise.
21209         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21210         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21211         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21212         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21213         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21214         * modules/unicase/u16-tolower-tests (Files): Likewise.
21215         * modules/unicase/u16-totitle-tests (Files): Likewise.
21216         * modules/unicase/u16-toupper-tests (Files): Likewise.
21217         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21218         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21219         * modules/unicase/u32-casefold-tests (Files): Likewise.
21220         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21221         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21222         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21223         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21224         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21225         * modules/unicase/u32-tolower-tests (Files): Likewise.
21226         * modules/unicase/u32-totitle-tests (Files): Likewise.
21227         * modules/unicase/u32-toupper-tests (Files): Likewise.
21228         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21229         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21230         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21231         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21232         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21233         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21234         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21235         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21236         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21237         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21238         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21239         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21240         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21241         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21242         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21243         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21244         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21245         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21246         * modules/unictype/block-list-tests (Files): Likewise.
21247         * modules/unictype/block-of-tests (Files): Likewise.
21248         * modules/unictype/block-test-tests (Files): Likewise.
21249         * modules/unictype/category-C-tests (Files): Likewise.
21250         * modules/unictype/category-Cc-tests (Files): Likewise.
21251         * modules/unictype/category-Cf-tests (Files): Likewise.
21252         * modules/unictype/category-Cn-tests (Files): Likewise.
21253         * modules/unictype/category-Co-tests (Files): Likewise.
21254         * modules/unictype/category-Cs-tests (Files): Likewise.
21255         * modules/unictype/category-L-tests (Files): Likewise.
21256         * modules/unictype/category-Ll-tests (Files): Likewise.
21257         * modules/unictype/category-Lm-tests (Files): Likewise.
21258         * modules/unictype/category-Lo-tests (Files): Likewise.
21259         * modules/unictype/category-Lt-tests (Files): Likewise.
21260         * modules/unictype/category-Lu-tests (Files): Likewise.
21261         * modules/unictype/category-M-tests (Files): Likewise.
21262         * modules/unictype/category-Mc-tests (Files): Likewise.
21263         * modules/unictype/category-Me-tests (Files): Likewise.
21264         * modules/unictype/category-Mn-tests (Files): Likewise.
21265         * modules/unictype/category-N-tests (Files): Likewise.
21266         * modules/unictype/category-Nd-tests (Files): Likewise.
21267         * modules/unictype/category-Nl-tests (Files): Likewise.
21268         * modules/unictype/category-No-tests (Files): Likewise.
21269         * modules/unictype/category-P-tests (Files): Likewise.
21270         * modules/unictype/category-Pc-tests (Files): Likewise.
21271         * modules/unictype/category-Pd-tests (Files): Likewise.
21272         * modules/unictype/category-Pe-tests (Files): Likewise.
21273         * modules/unictype/category-Pf-tests (Files): Likewise.
21274         * modules/unictype/category-Pi-tests (Files): Likewise.
21275         * modules/unictype/category-Po-tests (Files): Likewise.
21276         * modules/unictype/category-Ps-tests (Files): Likewise.
21277         * modules/unictype/category-S-tests (Files): Likewise.
21278         * modules/unictype/category-Sc-tests (Files): Likewise.
21279         * modules/unictype/category-Sk-tests (Files): Likewise.
21280         * modules/unictype/category-Sm-tests (Files): Likewise.
21281         * modules/unictype/category-So-tests (Files): Likewise.
21282         * modules/unictype/category-Z-tests (Files): Likewise.
21283         * modules/unictype/category-Zl-tests (Files): Likewise.
21284         * modules/unictype/category-Zp-tests (Files): Likewise.
21285         * modules/unictype/category-Zs-tests (Files): Likewise.
21286         * modules/unictype/category-and-not-tests (Files): Likewise.
21287         * modules/unictype/category-and-tests (Files): Likewise.
21288         * modules/unictype/category-byname-tests (Files): Likewise.
21289         * modules/unictype/category-name-tests (Files): Likewise.
21290         * modules/unictype/category-none-tests (Files): Likewise.
21291         * modules/unictype/category-of-tests (Files): Likewise.
21292         * modules/unictype/category-or-tests (Files): Likewise.
21293         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21294         * modules/unictype/combining-class-tests (Files): Likewise.
21295         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21296         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21297         * modules/unictype/ctype-blank-tests (Files): Likewise.
21298         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21299         * modules/unictype/ctype-digit-tests (Files): Likewise.
21300         * modules/unictype/ctype-graph-tests (Files): Likewise.
21301         * modules/unictype/ctype-lower-tests (Files): Likewise.
21302         * modules/unictype/ctype-print-tests (Files): Likewise.
21303         * modules/unictype/ctype-punct-tests (Files): Likewise.
21304         * modules/unictype/ctype-space-tests (Files): Likewise.
21305         * modules/unictype/ctype-upper-tests (Files): Likewise.
21306         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21307         * modules/unictype/decimal-digit-tests (Files): Likewise.
21308         * modules/unictype/digit-tests (Files): Likewise.
21309         * modules/unictype/mirror-tests (Files): Likewise.
21310         * modules/unictype/numeric-tests (Files): Likewise.
21311         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21312         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21313         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21314         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21315         Likewise.
21316         * modules/unictype/property-bidi-block-separator-tests (Files):
21317         Likewise.
21318         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21319         Likewise.
21320         * modules/unictype/property-bidi-common-separator-tests (Files):
21321         Likewise.
21322         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21323         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21324         Likewise.
21325         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21326         Likewise.
21327         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21328         Likewise.
21329         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21330         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21331         Likewise.
21332         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21333         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21334         Likewise.
21335         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21336         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21337         * modules/unictype/property-bidi-segment-separator-tests (Files):
21338         Likewise.
21339         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21340         * modules/unictype/property-byname-tests (Files): Likewise.
21341         * modules/unictype/property-combining-tests (Files): Likewise.
21342         * modules/unictype/property-composite-tests (Files): Likewise.
21343         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21344         * modules/unictype/property-dash-tests (Files): Likewise.
21345         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21346         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21347         Likewise.
21348         * modules/unictype/property-deprecated-tests (Files): Likewise.
21349         * modules/unictype/property-diacritic-tests (Files): Likewise.
21350         * modules/unictype/property-extender-tests (Files): Likewise.
21351         * modules/unictype/property-format-control-tests (Files): Likewise.
21352         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21353         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21354         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21355         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21356         * modules/unictype/property-hyphen-tests (Files): Likewise.
21357         * modules/unictype/property-id-continue-tests (Files): Likewise.
21358         * modules/unictype/property-id-start-tests (Files): Likewise.
21359         * modules/unictype/property-ideographic-tests (Files): Likewise.
21360         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21361         * modules/unictype/property-ids-trinary-operator-tests (Files):
21362         Likewise.
21363         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21364         * modules/unictype/property-iso-control-tests (Files): Likewise.
21365         * modules/unictype/property-join-control-tests (Files): Likewise.
21366         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21367         * modules/unictype/property-line-separator-tests (Files): Likewise.
21368         * modules/unictype/property-logical-order-exception-tests (Files):
21369         Likewise.
21370         * modules/unictype/property-lowercase-tests (Files): Likewise.
21371         * modules/unictype/property-math-tests (Files): Likewise.
21372         * modules/unictype/property-non-break-tests (Files): Likewise.
21373         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21374         * modules/unictype/property-numeric-tests (Files): Likewise.
21375         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21376         * modules/unictype/property-other-default-ignorable-code-point-tests
21377         (Files): Likewise.
21378         * modules/unictype/property-other-grapheme-extend-tests (Files):
21379         Likewise.
21380         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21381         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21382         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21383         * modules/unictype/property-other-math-tests (Files): Likewise.
21384         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21385         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21386         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21387         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21388         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21389         * modules/unictype/property-private-use-tests (Files): Likewise.
21390         * modules/unictype/property-punctuation-tests (Files): Likewise.
21391         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21392         * modules/unictype/property-radical-tests (Files): Likewise.
21393         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21394         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21395         * modules/unictype/property-space-tests (Files): Likewise.
21396         * modules/unictype/property-terminal-punctuation-tests (Files):
21397         Likewise.
21398         * modules/unictype/property-test-tests (Files): Likewise.
21399         * modules/unictype/property-titlecase-tests (Files): Likewise.
21400         * modules/unictype/property-unassigned-code-value-tests (Files):
21401         Likewise.
21402         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21403         * modules/unictype/property-uppercase-tests (Files): Likewise.
21404         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21405         * modules/unictype/property-white-space-tests (Files): Likewise.
21406         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21407         * modules/unictype/property-xid-start-tests (Files): Likewise.
21408         * modules/unictype/property-zero-width-tests (Files): Likewise.
21409         * modules/unictype/scripts-tests (Files): Likewise.
21410         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21411         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21412         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21413         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21414         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21415         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21416         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21417         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21418         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21419         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21420         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21421         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21422         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21423         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21424         * modules/uninorm/composition-tests (Files): Likewise.
21425         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21426         * modules/uninorm/decomposition-tests (Files): Likewise.
21427         * modules/uninorm/filter-tests (Files): Likewise.
21428         * modules/uninorm/nfc-tests (Files): Likewise.
21429         * modules/uninorm/nfd-tests (Files): Likewise.
21430         * modules/uninorm/nfkc-tests (Files): Likewise.
21431         * modules/uninorm/nfkd-tests (Files): Likewise.
21432         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21433         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21434         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21435         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21436         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21437         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21438         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21439         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21440         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21441         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21442         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21443         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21444         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21445         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21446         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21447         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21448         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21449         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21450         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21451         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21452         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21453         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21454         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21455         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21456         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21457         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21458         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21459         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21460         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21461         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21462         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21463         * modules/uniwidth/u8-width-tests (Files): Likewise.
21464         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21465         * modules/uniwidth/u16-width-tests (Files): Likewise.
21466         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21467         * modules/uniwidth/u32-width-tests (Files): Likewise.
21468         * modules/uniwidth/width-tests (Files): Likewise.
21469         * modules/unlink-tests (Files): Likewise.
21470         * modules/unsetenv-tests (Files): Likewise.
21471         * modules/usleep-tests (Files): Likewise.
21472         * modules/utimens-tests (Files): Likewise.
21473         * modules/utimensat-tests (Files): Likewise.
21474         * modules/vasnprintf-posix-tests (Files): Likewise.
21475         * modules/vasnprintf-tests (Files): Likewise.
21476         * modules/vasprintf-posix-tests (Files): Likewise.
21477         * modules/vasprintf-tests (Files): Likewise.
21478         * modules/vdprintf-posix-tests (Files): Likewise.
21479         * modules/vfprintf-posix-tests (Files): Likewise.
21480         * modules/vprintf-posix-tests (Files): Likewise.
21481         * modules/vsnprintf-posix-tests (Files): Likewise.
21482         * modules/vsnprintf-tests (Files): Likewise.
21483         * modules/vsprintf-posix-tests (Files): Likewise.
21484         * modules/wcrtomb-tests (Files): Likewise.
21485         * modules/wcsnrtombs-tests (Files): Likewise.
21486         * modules/wcsrtombs-tests (Files): Likewise.
21487         * modules/wctype-tests (Files): Likewise.
21488         * modules/wcwidth-tests (Files): Likewise.
21489         * modules/xmemdup0-tests (Files): Likewise.
21490         * modules/xprintf-posix-tests (Files): Likewise.
21491         * modules/xvasprintf-tests (Files): Likewise.
21492
21493 2009-12-24  Eric Blake  <ebb9@byu.net>
21494
21495         test-nanosleep: fix typo
21496         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21497         patch.
21498         Reported by Bruno Haible.
21499
21500 2009-12-24  Bruno Haible  <bruno@clisp.org>
21501
21502         Reduce namespace pollution on glibc systems.
21503         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21504         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21505         systems.
21506         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21507         <getopt.h> on glibc systems.
21508         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21509         systems.
21510         * lib/fcntl.c: Include <unistd.h> here instead.
21511
21512 2009-12-24  Bruno Haible  <bruno@clisp.org>
21513
21514         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21515
21516 2009-12-24  Eric Blake  <ebb9@byu.net>
21517
21518         tests: add signature checks
21519         * tests/signature.h (SIGNATURE_CHECK): New file.
21520         * modules/atexit-tests (Files): Use it.
21521         * modules/btowc-tests (Files): Likewise.
21522         * modules/canonicalize-lgpl-tests (Files): Likewise.
21523         * modules/ceilf-tests (Files): Likewise.
21524         * modules/ceill-tests (Files): Likewise.
21525         * modules/chown-tests (Files): Likewise.
21526         * modules/dprintf-posix-tests (Files): Likewise.
21527         * modules/dup2-tests (Files): Likewise.
21528         * modules/dup3-tests (Files): Likewise.
21529         * modules/duplocale-tests (Files): Likewise.
21530         * modules/fchdir-tests (Files): Likewise.
21531         * modules/fcntl-tests (Files): Likewise.
21532         * modules/fdopendir-tests (Files): Likewise.
21533         * modules/fflush-tests (Files): Likewise.
21534         * modules/flock-tests (Files): Likewise.
21535         * modules/floorf-tests (Files): Likewise.
21536         * modules/floorl-tests (Files): Likewise.
21537         * modules/fnmatch-tests (Files): Likewise.
21538         * modules/fopen-tests (Files): Likewise.
21539         * modules/fprintf-posix-tests (Files): Likewise.
21540         * modules/freopen-tests (Files): Likewise.
21541         * modules/frexp-nolibm-tests (Files): Likewise.
21542         * modules/frexp-tests (Files): Likewise.
21543         * modules/frexpl-nolibm-tests (Files): Likewise.
21544         * modules/frexpl-tests (Files): Likewise.
21545         * modules/fseek-tests (Files): Likewise.
21546         * modules/fseeko-tests (Files): Likewise.
21547         * modules/fsync-tests (Files): Likewise.
21548         * modules/ftell-tests (Files): Likewise.
21549         * modules/ftello-tests (Files): Likewise.
21550         * modules/futimens-tests (Files): Likewise.
21551         * modules/getaddrinfo-tests (Files): Likewise.
21552         * modules/getcwd-tests (Files): Likewise.
21553         * modules/getdelim-tests (Files): Likewise.
21554         * modules/getdtablesize-tests (Files): Likewise.
21555         * modules/getgroups-tests (Files): Likewise.
21556         * modules/gethostname-tests (Files): Likewise.
21557         * modules/getline-tests (Files): Likewise.
21558         * modules/getopt-posix-tests (Files): Likewise.
21559         * modules/gettimeofday-tests (Files): Likewise.
21560         * modules/glob-tests (Files): Likewise.
21561         * modules/iconv-tests (Files): Likewise.
21562         * modules/inet_ntop-tests (Files): Likewise.
21563         * modules/inet_pton-tests (Files): Likewise.
21564         * modules/isblank-tests (Files): Likewise.
21565         * modules/lchown-tests (Files): Likewise.
21566         * modules/ldexpl-tests (Files): Likewise.
21567         * modules/link-tests (Files): Likewise.
21568         * modules/linkat-tests (Files): Likewise.
21569         * modules/lseek-tests (Files): Likewise.
21570         * modules/lstat-tests (Files): Likewise.
21571         * modules/mbrtowc-tests (Files): Likewise.
21572         * modules/mbsinit-tests (Files): Likewise.
21573         * modules/mbsnrtowcs-tests (Files): Likewise.
21574         * modules/mbsrtowcs-tests (Files): Likewise.
21575         * modules/memchr-tests (Files): Likewise.
21576         * modules/memcmp-tests (Files): Likewise.
21577         * modules/memmem-tests (Files): Likewise.
21578         * modules/memrchr-tests (Files): Likewise.
21579         * modules/mkdir-tests (Files): Likewise.
21580         * modules/mkfifo-tests (Files): Likewise.
21581         * modules/mkfifoat-tests (Files): Likewise.
21582         * modules/mknod-tests (Files): Likewise.
21583         * modules/nanosleep-tests (Files): Likewise.
21584         * modules/nl_langinfo-tests (Files): Likewise.
21585         * modules/obstack-printf-tests (Files): Likewise.
21586         * modules/open-tests (Files): Likewise.
21587         * modules/openat-tests (Files): Likewise.
21588         * modules/perror-tests (Files): Likewise.
21589         * modules/pipe2-tests (Files): Likewise.
21590         * modules/poll-tests (Files): Likewise.
21591         * modules/popen-tests (Files): Likewise.
21592         * modules/posix_spawn-tests (Files): Likewise.
21593         * modules/posix_spawnp-tests (Files): Likewise.
21594         * modules/pread-tests (Files): Likewise.
21595         * modules/printf-posix-tests (Files): Likewise.
21596         * modules/pty-tests (Files): Likewise.
21597         * modules/random_r-tests (Files): Likewise.
21598         * modules/rawmemchr-tests (Files): Likewise.
21599         * modules/readlink-tests (Files): Likewise.
21600         * modules/remove-tests (Files): Likewise.
21601         * modules/rename-tests (Files): Likewise.
21602         * modules/renameat-tests (Files): Likewise.
21603         * modules/rmdir-tests (Files): Likewise.
21604         * modules/round-tests (Files): Likewise.
21605         * modules/roundf-tests (Files): Likewise.
21606         * modules/roundl-tests (Files): Likewise.
21607         * modules/select-tests (Files): Likewise.
21608         * modules/setenv-tests (Files): Likewise.
21609         * modules/sigaction-tests (Files): Likewise.
21610         * modules/sleep-tests (Files): Likewise.
21611         * modules/snprintf-posix-tests (Files): Likewise.
21612         * modules/snprintf-tests (Files): Likewise.
21613         * modules/sprintf-posix-tests (Files): Likewise.
21614         * modules/stat-tests (Files): Likewise.
21615         * modules/strcasestr-tests (Files): Likewise.
21616         * modules/strchrnul-tests (Files): Likewise.
21617         * modules/strerror-tests (Files): Likewise.
21618         * modules/strsignal-tests (Files): Likewise.
21619         * modules/strstr-tests (Files): Likewise.
21620         * modules/strtod-tests (Files): Likewise.
21621         * modules/strverscmp-tests (Files): Likewise.
21622         * modules/symlink-tests (Files): Likewise.
21623         * modules/symlinkat-tests (Files): Likewise.
21624         * modules/times-tests (Files): Likewise.
21625         * modules/trunc-tests (Files): Likewise.
21626         * modules/truncf-tests (Files): Likewise.
21627         * modules/truncl-tests (Files): Likewise.
21628         * modules/tsearch-tests (Files): Likewise.
21629         * modules/uname-tests (Files): Likewise.
21630         * modules/unlink-tests (Files): Likewise.
21631         * modules/unsetenv-tests (Files): Likewise.
21632         * modules/usleep-tests (Files): Likewise.
21633         * modules/utimensat-tests (Files): Likewise.
21634         * modules/vasprintf-tests (Files): Likewise.
21635         * modules/vdprintf-posix-tests (Files): Likewise.
21636         * modules/vfprintf-posix-tests (Files): Likewise.
21637         * modules/vprintf-posix-tests (Files): Likewise.
21638         * modules/vsnprintf-posix-tests (Files): Likewise.
21639         * modules/vsnprintf-tests (Files): Likewise.
21640         * modules/vsprintf-posix-tests (Files): Likewise.
21641         * modules/wcrtomb-tests (Files): Likewise.
21642         * modules/wcsnrtombs-tests (Files): Likewise.
21643         * modules/wcsrtombs-tests (Files): Likewise.
21644         * modules/wcwidth-tests (Files): Likewise.
21645         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21646         * tests/test-isinf.c (isinf): Likewise.
21647         * tests/test-isnan.c (isnan): Likewise.
21648         * tests/test-signbit.c (signbit): Likewise.
21649         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21650         declaration, either as macro or with correct signature.
21651         (select): Ensure function under test is declared with correct
21652         signature in correct header.
21653         * tests/test-atexit.c (atexit): Likewise.
21654         * tests/test-btowc.c (btowc): Likewise.
21655         * tests/test-canonicalize-lgpl.c (realpath)
21656         (canonicalize_file_name): Likewise.
21657         * tests/test-ceilf1.c (ceilf): Likewise.
21658         * tests/test-ceill.c (ceill): Likewise.
21659         * tests/test-chown.c (chown): Likewise.
21660         * tests/test-dprintf-posix.c (dprintf): Likewise.
21661         * tests/test-dup2.c (dup2): Likewise.
21662         * tests/test-dup3.c (dup3): Likewise.
21663         * tests/test-duplocale.c (duplocale): Likewise.
21664         * tests/test-fchdir.c (fchdir): Likewise.
21665         * tests/test-fchownat.c (fchownat): Likewise.
21666         * tests/test-fcntl.c (fcntl): Likewise.
21667         * tests/test-fdopendir.c (fdopendir): Likewise.
21668         * tests/test-fflush.c (fflush): Likewise.
21669         * tests/test-flock.c (flock): Likewise.
21670         * tests/test-floorf1.c (floorf): Likewise.
21671         * tests/test-floorl.c (floorl): Likewise.
21672         * tests/test-fnmatch.c (fnmatch): Likewise.
21673         * tests/test-fopen.c (fopen): Likewise.
21674         * tests/test-fprintf-posix.c (fprintf): Likewise.
21675         * tests/test-freopen.c (freopen): Likewise.
21676         * tests/test-frexp.c (frexp): Likewise.
21677         * tests/test-frexpl.c (frexpl): Likewise.
21678         * tests/test-fseek.c (fseek): Likewise.
21679         * tests/test-fseeko.c (fseeko): Likewise.
21680         * tests/test-fstatat.c (fstatat): Likewise.
21681         * tests/test-fsync.c (fsync): Likewise.
21682         * tests/test-ftell.c (ftell): Likewise.
21683         * tests/test-ftello.c (ftello): Likewise.
21684         * tests/test-futimens.c (futimens): Likewise.
21685         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21686         (gai_strerror): Likewise.
21687         * tests/test-getcwd.c (getcwd): Likewise.
21688         * tests/test-getdelim.c (getdelim): Likewise.
21689         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21690         * tests/test-getgroups.c (getgroups): Likewise.
21691         * tests/test-gethostname.c (gethostname): Likewise.
21692         * tests/test-getline.c (getline): Likewise.
21693         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21694         Likewise.
21695         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21696         * tests/test-glob.c (glob, globfree): Likewise.
21697         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21698         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21699         * tests/test-inet_pton.c (inet_pton): Likewise.
21700         * tests/test-isblank.c (isblank): Likewise.
21701         * tests/test-lchown.c (lchown): Likewise.
21702         * tests/test-ldexpl.c (ldexpl): Likewise.
21703         * tests/test-link.c (link): Likewise.
21704         * tests/test-linkat.c (linkat): Likewise.
21705         * tests/test-lseek.c (lseek): Likewise.
21706         * tests/test-lstat.c (lstat): Likewise.
21707         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21708         * tests/test-mbsinit.c (mbsinit): Likewise.
21709         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21710         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21711         * tests/test-memchr.c (memchr): Likewise.
21712         * tests/test-memcmp.c (memcmp): Likewise.
21713         * tests/test-memmem.c (memmem): Likewise.
21714         * tests/test-memrchr.c (memrchr): Likewise.
21715         * tests/test-mkdir.c (mkdir): Likewise.
21716         * tests/test-mkdirat.c (mkdirat): Likewise.
21717         * tests/test-mkfifo.c (mkfifo): Likewise.
21718         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21719         * tests/test-mknod.c (mknod): Likewise.
21720         * tests/test-nanosleep.c (nanosleep): Likewise.
21721         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21722         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21723         Likewise.
21724         * tests/test-open.c (open): Likewise.
21725         * tests/test-openat.c (openat): Likewise.
21726         * tests/test-perror.c (perror): Likewise.
21727         * tests/test-pipe2.c (pipe2): Likewise.
21728         * tests/test-poll.c (poll): Likewise.
21729         * tests/test-popen.c (popen, pclose): Likewise.
21730         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21731         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21732         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21733         (posix_spawn_file_actions_destroy)
21734         (posix_spawn_file_actions_addclose)
21735         (posix_spawn_file_actions_addopen)
21736         (posix_spawn_file_actions_adddup2): Likewise.
21737         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21738         * tests/test-pread.c (pread): Likewise.
21739         * tests/test-printf-posix.c (printf): Likewise.
21740         * tests/test-pty.c (openpty, forkpty): Likewise.
21741         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21742         (random_r): Likewise.
21743         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21744         * tests/test-readlink.c (readlink): Likewise.
21745         * tests/test-remove.c (remove): Likewise.
21746         * tests/test-rename.c (rename): Likewise.
21747         * tests/test-renameat.c (renameat): Likewise.
21748         * tests/test-rmdir.c (rmdir): Likewise.
21749         * tests/test-round1.c (round): Likewise.
21750         * tests/test-roundf1.c (roundf): Likewise.
21751         * tests/test-roundl.c (roundl): Likewise.
21752         * tests/test-setenv.c (setenv): Likewise.
21753         * tests/test-sigaction.c (sigaction): Likewise.
21754         * tests/test-sleep.c (sleep): Likewise.
21755         * tests/test-snprintf.c (snprintf): Likewise.
21756         * tests/test-sprintf-posix.c (sprintf): Likewise.
21757         * tests/test-stat.c (stat): Likewise.
21758         * tests/test-stpncpy.c (stpncpy): Likewise.
21759         * tests/test-strcasestr.c (strcasestr): Likewise.
21760         * tests/test-strchrnul.c (strchrnul): Likewise.
21761         * tests/test-strerror.c (strerror): Likewise.
21762         * tests/test-strsignal.c (strsignal): Likewise.
21763         * tests/test-strstr.c (strstr): Likewise.
21764         * tests/test-strtod.c (strtod): Likewise.
21765         * tests/test-strverscmp.c (strverscmp): Likewise.
21766         * tests/test-symlink.c (symlink): Likewise.
21767         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21768         * tests/test-times.c (times): Likewise.
21769         * tests/test-trunc1.c (trunc): Likewise.
21770         * tests/test-truncf1.c (truncf): Likewise.
21771         * tests/test-truncl.c (truncl): Likewise.
21772         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21773         Likewise.
21774         * tests/test-uname.c (uname): Likewise.
21775         * tests/test-unlink.c (unlink): Likewise.
21776         * tests/test-unlinkat.c (unlinkat): Likewise.
21777         * tests/test-unsetenv.c (unsetenv): Likewise.
21778         * tests/test-usleep.c (usleep): Likewise.
21779         * tests/test-utimensat.c (utimensat): Likewise.
21780         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21781         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21782         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21783         * tests/test-vprintf-posix.c (vprintf): Likewise.
21784         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21785         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21786         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21787         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21788         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21789         * tests/test-wcwidth.c (wcwidth): Likewise.
21790
21791         build: pull in conditional headers during GNULIB_POSIXCHECK
21792         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21793         definitions from any conditionally-included headers.
21794         * lib/stdlib.in.h (includes): Likewise.
21795         * lib/unistd.in.h (includes): Likewise.
21796
21797 2009-12-24  Bruno Haible  <bruno@clisp.org>
21798
21799         * tests/test-argv-iter.c: Include header file being tested immediately
21800         after config.h.
21801         * tests/test-base64.c: Likewise.
21802         * tests/test-flock.c: Likewise.
21803         * tests/test-fsync.c: Likewise.
21804         * tests/test-getdate.c: Likewise.
21805         * tests/test-getndelim2.c: Likewise.
21806         * tests/test-isfinite.c: Likewise.
21807         * tests/test-isinf.c: Likewise.
21808         * tests/test-strerror.c: Likewise.
21809         * tests/test-strsignal.c: Likewise.
21810
21811 2009-12-23  Eric Blake  <ebb9@byu.net>
21812
21813         unistd: work around cygwin bug
21814         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21815         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21816         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21817
21818 2009-12-23  Bruno Haible  <bruno@clisp.org>
21819
21820         localename: More tests.
21821         * tests/test-localename.c (SIZEOF): New macro.
21822         (categories): New variable.
21823         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21824         test_locale_name_default): Add test w.r.t. thread locale.
21825         (test_locale_name_thread): New function.
21826         (main): Invoke it.
21827
21828         localename: Make aware of thread locale.
21829         * lib/localename.h (gl_locale_name_thread): New declaration.
21830         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21831         behaviour with respect to thread locale.
21832         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21833         <langinfo.h>, glthread/lock.h.
21834         (SIZE_BITS): New macro.
21835         (string_hash): New function.
21836         (struct hash_node): New type.
21837         (HASH_TABLE_SIZE): New macro.
21838         (struniq_hash_table, struniq_lock): New variables.
21839         (struniq): New function.
21840         (gl_locale_name_thread): New function.
21841         (gl_locale_name): Invoke it.
21842         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21843         * modules/localename (Depends-on): Add lock.
21844         Reported by Mike Gran <spk121@yahoo.com>.
21845
21846 2009-12-23  Eric Blake  <ebb9@byu.net>
21847
21848         va-args: new module
21849         * modules/va-args: New file.
21850         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21851         * MODULES.html.sh (Core language properties): Mention it.
21852
21853         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21854         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21855         named alias for __attribute__((__unused__)).
21856         * lib/chown.c: Update client.
21857         * lib/fchmodat.c: Likewise.
21858         * lib/fts.c: Likewise.
21859         * lib/getdate.y: Likewise.
21860         * lib/getgroups.c: Likewise.
21861         * lib/getopt.c: Likewise.
21862         * lib/getugroups.c: Likewise.
21863         * lib/mkdir.c: Likewise.
21864         * lib/mkfifo.c: Likewise.
21865         * lib/mkfifoat.c: Likewise.
21866         * lib/mknod.c: Likewise.
21867         * lib/mknodat.c: Likewise.
21868         * lib/readlink.c: Likewise.
21869         * lib/se-context.in.h: Likewise.
21870         * lib/se-selinux.in.h: Likewise.
21871         * lib/sockets.c: Likewise.
21872         * lib/symlink.c: Likewise.
21873         * lib/symlinkat.c: Likewise.
21874         * lib/unicodeio.c: Likewise.
21875         * lib/unistr.h: Likewise.
21876         * tests/test-areadlink.c: Likewise.
21877         * tests/test-areadlinkat.c: Likewise.
21878         * tests/test-filenamecat.c: Likewise.
21879         * tests/test-fseeko.c: Likewise.
21880         * tests/test-ftello.c: Likewise.
21881         * tests/test-getdate.c: Likewise.
21882         * tests/test-getgroups.c: Likewise.
21883         * tests/test-gethostname.c: Likewise.
21884         * tests/test-quotearg.c: Likewise.
21885         * tests/test-version-etc.c: Likewise.
21886         * tests/test-xalloc-die.c: Likewise.
21887         * tests/test-xfprintf-posix.c: Likewise.
21888         * tests/test-xprintf-posix.c: Likewise.
21889         * tests/test-xvasprintf.c: Likewise.
21890
21891         tests: avoid compiler warnings
21892         * tests/test-fcntl.c (main): Delete unused parameters.
21893         * tests/test-freopen-safer.c (main): Likewise.
21894         * tests/test-xalloc-die.c (main): Mark unused parameters.
21895         * tests/test-fseeko.c (main): Likewise.
21896         * tests/test-ftello.c (main): Likewise.
21897         * tests/test-nanosleep.c (main): Avoid declaration warning.
21898         * tests/test-sleep.c (main): Likewise.
21899         * tests/test-unsetenv.c (main): Silence warning about string
21900         literal.
21901         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21902
21903 2009-12-23  Bruno Haible  <bruno@clisp.org>
21904
21905         * tests/test-localename.c (test_locale_name): New function, extracted
21906         from main. Also test mixed situations.
21907         (test_locale_name_posix, test_locale_name_environ,
21908         test_locale_name_default): New functions.
21909         (main): Invoke them all.
21910         * modules/localename-tests (configure.ac): Test for newlocale.
21911
21912 2009-12-23  Bruno Haible  <bruno@clisp.org>
21913
21914         unistd: Ensure getcwd gets declared before being overridden.
21915         * lib/unistd.in.h: Conditionally include <io.h>.
21916
21917 2009-12-22  Bruno Haible  <bruno@clisp.org>
21918
21919         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21920         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21921         (gl_WCHAR_H): Invoke it.
21922         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21923         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21924         Reported by Karl Berry <karl@freefriends.org>.
21925
21926 2009-12-22  Eric Blake  <ebb9@byu.net>
21927
21928         math, unistd: avoid redundant includes
21929         * lib/math.in.h (isnan): No need to re-include <math.h>.
21930         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21931
21932         getsubopt: work around cygwin bug
21933         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21934         avoid conflicting with system getsubopt.
21935         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21936         bug.
21937
21938         getopt: synchronize from glibc
21939         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21940         parameter order.  Adjust all callers.
21941         (_getopt_internal_r, main): Adjust quoting in error messages.
21942         Drop considerations for outdated POSIX 1003.2 error message.
21943         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21944         callers.
21945         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21946
21947         test-getopt: test stderr behavior
21948         * modules/getopt-posix-tests (Depends-on): Add dup2.
21949         * tests/test-getopt.c (ASSERT): Avoid stderr.
21950         (main): Move stderr to a temporary file.
21951         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21952         Instead, add parameter to inform caller if output occurred.
21953         (test_getopt): Adjust all existing tests to expect silence, and
21954         add new tests of leading ":".
21955         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21956         glibc shortcomings with leading "-:" or "+:" in optstring.
21957         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21958         Likewise.
21959         * doc/posix-functions/getopt.texi (getopt): Likewise.
21960
21961         test-getopt: enhance test
21962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21963         supports optind=0.
21964         * tests/test-getopt.c (OPTIND_MIN): Move...
21965         * tests/test-getopt.h (OPTIND_MIN): ...here.
21966         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21967         Require that optind=0 works, since modern BSD supports it in
21968         addition to optreset, and since coreutils expects it.
21969         (test_getopt_long_only): New test.
21970         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21971         glibc shortcomings with 'W;', and enforcement of optind=0.
21972         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21973         Likewise.
21974
21975 2009-12-21  Bruno Haible  <bruno@clisp.org>
21976
21977         localename: Improvements for MacOS X and Cygwin.
21978         * lib/localename.h (gl_locale_name_environ): New declaration.
21979         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21980         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21981         (gl_locale_name_posix): Invoke it.
21982         (gl_locale_name_default): Add comments. Use Windows native API also on
21983         Cygwin.
21984
21985 2009-12-21  Bruno Haible  <bruno@clisp.org>
21986
21987         Update list of Win32 locale ids.
21988         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21989         (LANG_SAMI): Renamed from LANG_SAAMI.
21990         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21991         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21992         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21993         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21994         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21995         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21996         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21997         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21998         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21999         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22000         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22001         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22002         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22003         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22004         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22005         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22006         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22007         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22008         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22009         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22010         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22011         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22012         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22013         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22014         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22015         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22016         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22017         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22018         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22019         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22020         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22021         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22022         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22023         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22024         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22025         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22026         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22027         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22028         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22029         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22030         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22031         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22032         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22033         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22034         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22035         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22036         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22037         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22038         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22039         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22040         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22041         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22042         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22043         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22044         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22045         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22046         Add more languages and countries for Sami, Sorbian. Add more countries
22047         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22048         for Pashto. Change country for Syriac, Tswana.
22049
22050 2009-12-21  Eric Blake  <ebb9@byu.net>
22051
22052         test-utimens: avoid spurious failure
22053         * tests/test-chown.h (nap): Factor...
22054         * tests/nap.h: ...into new file.
22055         * tests/test-lchown.h (nap): Avoid duplication.
22056         * tests/test-utimens-common.h (nap): Use shared implementation,
22057         necessary on file systems with 1-second resolution.
22058         * modules/chown-tests (Files): Include new file.
22059         * modules/fdutimensat-tests (Files): Likewise.
22060         * modules/futimens-tests (Files): Likewise.
22061         * modules/lchown-tests (Files): Likewise.
22062         * modules/openat-tests (Files): Likewise.
22063         * modules/utimens-tests (Files): Likewise.
22064         * modules/utimensat-tests (Files): Likewise.
22065
22066 2009-12-19  Eric Blake  <ebb9@byu.net>
22067
22068         futimens, utimensat: work around Linux bug
22069         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22070         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22071         * lib/utimensat.c (rpl_utimensat): Work around it.
22072         * lib/futimens.c (rpl_futimens): Adjust comment.
22073
22074         utimens: work around Linux ctime bug
22075         * lib/utimens.c (detect_ctime_bug): New helper function.
22076         (update_timespec): Differentiate between workaround needed for
22077         this bug vs. what is needed for systems that lack utimensat.
22078         (fdutimens, lutimens): Work around bug.
22079
22080         utimens: check for ctime update
22081         * tests/test-utimens-common.h (check_ctime): Define.
22082         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22083         * tests/test-futimens.h (test_futimens): Likewise.
22084         * tests/test-lutimens.h (test_lutimens): Likewise.
22085         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22086         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22087
22088 2009-12-19  Bruno Haible  <bruno@clisp.org>
22089
22090         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22091         * tests/test-dprintf-posix2.sh: New file.
22092         * tests/test-dprintf-posix2.c: New file.
22093         * modules/dprintf-posix-tests (Files): Add them.
22094         (configure.ac): Check for getrlimit and setrlimit.
22095         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22096
22097 2009-12-19  Bruno Haible  <bruno@clisp.org>
22098
22099         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22100         * tests/test-fprintf-posix3.sh: New file.
22101         * tests/test-fprintf-posix3.c: New file.
22102         * modules/fprintf-posix-tests (Files): Add them.
22103         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22104
22105 2009-12-19  Eric Blake  <ebb9@byu.net>
22106
22107         dirfd: fix prototype
22108         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22109         * lib/dirfd.c (dirfd): Likewise.
22110
22111         canonicalize: reduce memory usage
22112         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22113         allocation to size.
22114         Reported by Solar Designer <solar@openwall.com>.
22115
22116 2009-12-19  Bruno Haible  <bruno@clisp.org>
22117
22118         New module attribute 'Applicability'.
22119         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22120         * gnulib-tool: New option --extract-applicability.
22121         (func_usage): Document it.
22122         (sed_extract_prog): Recognize it.
22123         (func_get_applicability): New function.
22124         (func_import): Generalize handling of 'link-warning' module.
22125         * modules/link-warning (Applicability): New section.
22126         * modules/arg-nonnull (Applicability): New section.
22127         Repoted by Simon Josefsson <simon@josefsson.org>.
22128
22129 2009-12-19  Bruno Haible  <bruno@clisp.org>
22130
22131         fflush: tweak
22132         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22133         * lib/fseeko.c (rpl_fseeko): Likewise.
22134
22135 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22136
22137         * lib/gl_list.h: Fix typo in comment.
22138
22139 2009-12-16  Eric Blake  <ebb9@byu.net>
22140
22141         fcntl: use to simplify other modules
22142         * modules/cloexec (Depends-on): Add fcntl.
22143         * modules/fchdir (Depends-on): Likewise.
22144         * modules/fd-safer-flag (Depends-on): Likewise.
22145         * modules/unistd-safer (Depends-on): Likewise.
22146         * modules/dup3 (configure.ac): Set module indicator.
22147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22148         missing.
22149         * lib/fchdir.c (_gl_register_dup): Fix comment.
22150         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22151         * lib/dup-safer.c (dup_safer): Likewise.
22152         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22153         * lib/dup3.c (dup3): Likewise.
22154         * tests/test-fchdir.c (main): Enhance test.
22155         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22156
22157         fcntl: port portions of fcntl to mingw
22158         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22159         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22160         replacement for mingw.
22161         * modules/fcntl (Description): Update.
22162         (Depends-on): Add dup2.
22163         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22164         * modules/fcntl-h (Makefile.am): Substitute it.
22165         * lib/fcntl.in.h (fcntl): Update declaration.
22166         (F_DUPFD, F_GETFD): New macros, when needed.
22167         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22168         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22169         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22170         we now guarantee.
22171
22172         fcntl: work around cygwin bug in F_DUPFD
22173         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22174         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22175         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22176         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22177         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22178
22179         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22180         * modules/fcntl (Files): List new files.
22181         (configure.ac): Run a test.
22182         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22183         * lib/fcntl.c (rpl_fcntl): Likewise.
22184         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22185         (gl_FCNTL_H): Always replace fcntl.h.
22186         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22187         * lib/fcntl.in.h (fcntl): Declare replacement.
22188         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22189         needed, plus a witness.
22190         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22191         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22192         * tests/test-fcntl.c: New file.
22193         * modules/fcntl-tests: Likewise.
22194
22195         binary-io: avoid potential compilation warning
22196         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22197         directives.
22198
22199         fflush: avoid compilation error on NetBSD
22200         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22201         between off_t and fpos_t, since the latter is sometimes a struct.
22202         * lib/fseeko.c (rpl_fseeko): Likewise.
22203         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22204
22205 2009-12-15  Eric Blake  <ebb9@byu.net>
22206
22207         fcntl-h, stdio, sys_ioctl: fix declarations
22208         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22209         function must not take arguments.
22210         * lib/sys_ioctl.in.h (ioctl): Likewise.
22211         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22212         (open): Add a link warning.
22213
22214 2009-12-15  Jim Meyering  <meyering@redhat.com>
22215
22216         areadlink, areadlink-with-size: relax license to LGPLv2+
22217         * modules/areadlink (License): Relax to LGPLv2+.
22218         * modules/areadlink-with-size (License): Likewise.
22219
22220 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22221             Bruno Haible  <bruno@clisp.org>
22222
22223         *printf: Fix memory leak.
22224         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22225         * lib/vfprintf.c (vfprintf): Likewise.
22226         * lib/dprintf.c (dprintf): Likewise.
22227         * lib/vdprintf.c (vdprintf): Likewise.
22228
22229 2009-12-14  Eric Blake  <ebb9@byu.net>
22230
22231         accept4: adjust module dependencies
22232         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22233
22234         utimens: one more try at avoiding compiler warning
22235         * lib/utimens.c (lutimens): Lower scope of result.
22236
22237 2009-12-13  Bruno Haible  <bruno@clisp.org>
22238
22239         Move the malloc checking from module 'list' to new module 'xlist'.
22240         * modules/xlist: New file.
22241         * lib/gl_xlist.h: New file.
22242         * lib/gl_xlist.c: New file.
22243         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22244         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22245         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22246         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22247         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22248         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22249         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22250         gl_sortedlist_nx_add): New declarations.
22251         (struct gl_list_implementation): Rename and change methods accordingly.
22252         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22253         (gl_list_nx_create): Renamed from gl_list_create.
22254         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22255         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22256         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22257         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22258         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22259         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22260         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22261         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22262         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22263         gl_list_create_empty.
22264         (gl_list_nx_create): Renamed from gl_list_create.
22265         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22266         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22267         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22268         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22269         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22270         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22271         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22272         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22273         * lib/gl_array_list.c: Don't include xalloc.h.
22274         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22275         NULL upon out-of-memory.
22276         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22277         out-of-memory.
22278         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22279         Change return type to 'int'.
22280         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22281         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22282         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22283         upon out-of-memory.
22284         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22285         upon out-of-memory.
22286         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22287         upon out-of-memory.
22288         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22289         upon out-of-memory.
22290         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22291         out-of-memory.
22292         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22293         Update.
22294         (gl_array_list_implementation): Update.
22295         * lib/gl_carray_list.c: Don't include xalloc.h.
22296         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22297         Return NULL upon out-of-memory.
22298         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22299         out-of-memory.
22300         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22301         Change return type to 'int'.
22302         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22303         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22304         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22305         upon out-of-memory.
22306         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22307         upon out-of-memory.
22308         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22309         out-of-memory.
22310         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22311         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22312         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22313         Update.
22314         (gl_carray_list_implementation): Update.
22315         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22316         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22317         gl_linked_create_empty. Return NULL upon out-of-memory.
22318         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22319         out-of-memory.
22320         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22321         Change return type to 'int'. Return -1 upon out-of-memory.
22322         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22323         out-of-memory.
22324         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22325         upon out-of-memory.
22326         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22327         upon out-of-memory.
22328         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22329         NULL upon out-of-memory.
22330         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22331         upon out-of-memory.
22332         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22333         out-of-memory.
22334         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22335         Update.
22336         * lib/gl_linked_list.c: Don't include xalloc.h.
22337         (gl_linked_list_implementation): Update.
22338         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22339         (add_to_bucket): Change return type to 'int'.
22340         (gl_linkedhash_list_implementation): Update.
22341         * lib/gl_anytree_list1.h (free_subtree): New function.
22342         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22343         gl_tree_create_empty. Return NULL upon out-of-memory.
22344         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22345         Change return type to 'int'. Return -1 upon out-of-memory.
22346         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22347         out-of-memory.
22348         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22349         (gl_tree_remove_node): New function, moved here from
22350         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22351         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22352         Update.
22353         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22354         malloc, not xmalloc. Return NULL upon out-of-memory.
22355         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22356         out-of-memory.
22357         (gl_tree_remove_node_from_tree): New function, extracted from
22358         gl_tree_remove_node.
22359         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22360         upon out-of-memory.
22361         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22362         out-of-memory.
22363         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22364         upon out-of-memory.
22365         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22366         upon out-of-memory.
22367         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22368         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22369         not xmalloc. Return NULL upon out-of-memory.
22370         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22371         out-of-memory.
22372         (gl_tree_remove_node_from_tree): New function, extracted from
22373         gl_tree_remove_node.
22374         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22375         upon out-of-memory.
22376         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22377         out-of-memory.
22378         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22379         upon out-of-memory.
22380         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22381         upon out-of-memory.
22382         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22383         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22384         gl_anytree_list1.h before gl_anyavltree_list2.h.
22385         (gl_avltree_list_implementation): Update.
22386         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22387         gl_anytree_list1.h before gl_anyavltree_list2.h.
22388         (gl_rbtree_list_implementation): Update.
22389         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22390         Change return type to 'int'. Return -1 upon out-of-memory. Use
22391         __builtin_expect.
22392         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22393         (gl_avltreehash_list_implementation): Update.
22394         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22395         (gl_rbtreehash_list_implementation): Update.
22396         * modules/array-list (Depends-on): Remove xalloc.
22397         * modules/carray-list (Depends-on): Likewise.
22398         * modules/linked-list (Depends-on): Likewise.
22399         * modules/linkedhash-list (Depends-on): Likewise.
22400         * modules/avltree-list (Depends-on): Likewise.
22401         * modules/rbtree-list (Depends-on): Likewise.
22402         * modules/avltreehash-list (Depends-on): Likewise.
22403         * modules/rbtreehash-list (Depends-on): Likewise.
22404
22405         * modules/xsublist: New file.
22406         * lib/gl_xsublist.h: New file.
22407         * lib/gl_xsublist.c: New file.
22408         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22409         (gl_sublist_nx_create): New declaration.
22410         * lib/gl_sublist.c: Don't include xalloc.h.
22411         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22412         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22413         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22414         Change return type to 'int'. Return -1 upon out-of-memory.
22415         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22416         upon out-of-memory.
22417         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22418         NULL upon out-of-memory.
22419         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22420         upon out-of-memory.
22421         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22422         NULL upon out-of-memory.
22423         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22424         NULL upon out-of-memory.
22425         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22426         upon out-of-memory.
22427         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22428         (gl_sublist_list_implementation): Update.
22429         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22430         upon out-of-memory.
22431         * modules/sublist (Depends-on): Remove xalloc.
22432
22433         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22434         * tests/test-carray_list.c: Likewise.
22435         * tests/test-linked_list.c: Likewise.
22436         * tests/test-linkedhash_list.c: Likewise.
22437         * tests/test-avltree_list.c: Likewise.
22438         * tests/test-rbtree_list.c: Likewise.
22439         * tests/test-avltreehash_list.c: Likewise.
22440         * tests/test-rbtreehash_list.c: Likewise.
22441         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22442         * modules/carray-list-tests (Makefile.am): Likewise.
22443         * modules/linked-list-tests (Makefile.am): Likewise.
22444         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22445         * modules/avltree-list-tests (Makefile.am): Likewise.
22446         * modules/rbtree-list-tests (Makefile.am): Likewise.
22447         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22448         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22449
22450         * NEWS: Mention the changes.
22451
22452         * lib/clean-temp.c: Include gl_xlist.h.
22453         * modules/clean-temp (Depends-on): Add xlist.
22454
22455         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22456         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22457
22458         * tests/test-array_oset.c: Include gl_xlist.h.
22459         * modules/array-oset-tests (Depends-on): Add xlist.
22460
22461         Reported by José E. Marchesi <jemarch@gnu.org>.
22462
22463 2009-12-13  Bruno Haible  <bruno@clisp.org>
22464
22465         Move the malloc checking from module 'oset' to new module 'xoset'.
22466         * modules/xoset: New file.
22467         * lib/gl_xoset.h: New file.
22468         * lib/gl_xoset.c: New file.
22469         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22470         declarations.
22471         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22472         (struct gl_oset_implementation): Rename and change methods accordingly.
22473         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22474         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22475         'int'. Mark as __warn_unused_result__.
22476         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22477         gl_oset_create_empty.
22478         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22479         'int'.
22480         * lib/gl_array_oset.c: Don't include xalloc.h.
22481         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22482         malloc, not xmalloc.
22483         (grow): Change return type to 'int'. Don't call xalloc_die.
22484         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22485         to 'int'.
22486         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22487         'int'.
22488         (gl_array_oset_implementation): Update.
22489         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22490         gl_tree_create_empty.
22491         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22492         'int'.
22493         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22494         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22495         xmalloc.
22496         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22497         not xmalloc.
22498         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22499         xmalloc.
22500         (gl_avltree_oset_implementation): Update.
22501         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22502         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22503         xmalloc.
22504         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22505         not xmalloc.
22506         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22507         xmalloc.
22508         (gl_rbtree_oset_implementation): Update.
22509         * modules/array-oset (Depends-on): Remove xalloc.
22510         * modules/avltree-oset (Depends-on): Likewise.
22511         * modules/rbtree-oset (Depends-on): Likewise.
22512         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22513         * tests/test-avltree_oset.c: Likewise.
22514         * tests/test-rbtree_oset.c: Likewise.
22515         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22516         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22517         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22518         * NEWS: Mention the change.
22519
22520 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22521
22522         maint.mk: allow a project to override release-prep commands
22523         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22524         commands into a new rule.
22525         (release-prep): New rule.
22526         (release-prep-hook): New overridable variable.
22527
22528 2009-12-13  Bruno Haible  <bruno@clisp.org>
22529
22530         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22531
22532 2009-12-13  Jim Meyering  <meyering@redhat.com>
22533
22534         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22535         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22536
22537 2009-12-12  Bruno Haible  <bruno@clisp.org>
22538
22539         duplocale: Tweak.
22540         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22541
22542 2009-12-12  Karl Berry  <karl@gnu.org>
22543
22544         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22545
22546 2009-12-12  Bruno Haible  <bruno@clisp.org>
22547
22548         * m4/po.m4: Undo incorrect untabification.
22549
22550 2009-12-12  Bruno Haible  <bruno@clisp.org>
22551
22552         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22553         * modules/c-strtod (Depends-on): Add locale.
22554         * modules/c-strtold (Depends-on): Likewise.
22555
22556 2009-12-12  Bruno Haible  <bruno@clisp.org>
22557
22558         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22559
22560 2009-12-11  Eric Blake  <ebb9@byu.net>
22561
22562         setenv: relax requirement in light of POSIX ruling
22563         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22564         not NULL.
22565         * tests/test-setenv.c (main): Relax test.
22566         * tests/test-unsetenv.c (main): Likewise.
22567         * doc/posix-functions/setenv.texi (setenv): Document this.
22568         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22569
22570 2009-12-11  Bruno Haible  <bruno@clisp.org>
22571
22572         New module 'fd-safer-flag'.
22573         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22574         * lib/dup-safer.c (dup_safer_flag): Remove function.
22575         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22576         * lib/fd-safer.c (fd_safer_flag): Remove function.
22577         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22578         * modules/cloexec (configure.ac): Drop indicator macro.
22579         * modules/fd-safer-flag: New file.
22580         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22581         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22582         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22583
22584 2009-12-11  Bruno Haible  <bruno@clisp.org>
22585
22586         Tests for module 'nl_langinfo'.
22587         * modules/nl_langinfo-tests: New file.
22588         * tests/test-nl_langinfo.sh: New file.
22589         * tests/test-nl_langinfo.c: New file.
22590
22591         New module 'nl_langinfo'.
22592         * lib/nl_langinfo.c: New file.
22593         * m4/nl_langinfo.m4: New file.
22594         * modules/nl_langinfo: New file.
22595         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22596
22597 2009-12-11  Bruno Haible  <bruno@clisp.org>
22598
22599         Tests for module 'langinfo'.
22600         * modules/langinfo-tests: New file.
22601         * tests/test-langinfo.c: New file.
22602
22603         New module 'langinfo'.
22604         * lib/langinfo.in.h: New file.
22605         * m4/langinfo_h.m4: New file.
22606         * modules/langinfo: New file.
22607         * doc/posix-headers/langinfo.texi: Mention the new module.
22608
22609 2009-12-11  Bruno Haible  <bruno@clisp.org>
22610
22611         * lib/config.charset: Untabify.
22612
22613 2009-12-11  Bruno Haible  <bruno@clisp.org>
22614
22615         * modules/unistd-safer (configure.ac): Drop indicator macro.
22616
22617 2009-12-11  Bruno Haible  <bruno@clisp.org>
22618
22619         Move pipe2-safer code to its own file.
22620         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22621         * lib/pipe-safer.c (pipe2_safer): Remove function.
22622         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22623         (Makefile.am): Add it to lib_SOURCES.
22624
22625 2009-12-10  Bruno Haible  <bruno@clisp.org>
22626
22627         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22628
22629 2009-12-10  Bruno Haible  <bruno@clisp.org>
22630
22631         Declare which arguments expect non-NULL values, for GCC and clang.
22632         * build-aux/arg-nonnull.h: New file.
22633         * modules/arg-nonnull: New file.
22634         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22635         (inet_ntop, inet_pton): Use it.
22636         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22637         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22638         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22639         (open, openat): Use it.
22640         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22641         (fnmatch): Use it.
22642         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22643         (getopt, getopt_long, getopt_long_only): Use it.
22644         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22645         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22646         Use it.
22647         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22648         (iconv_open): Use it.
22649         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22650         (strtoimax, strtoumax): Use it.
22651         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22652         (duplocale): Use it.
22653         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22654         (frexp, frexpl): Use it.
22655         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22656         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22657         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22658         (tsearch, tfind, tdelete, twalk): Use it.
22659         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22660         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22661         sigpending): Use it.
22662         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22663         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22664         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22665         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22666         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22667         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22668         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22669         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22670         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22671         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22672         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22673         Use it.
22674         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22675         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22676         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22677         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22678         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22679         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22680         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22681         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22682         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22683         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22684         strtoull, unsetenv): Use it.
22685         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22686         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22687         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22688         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22689         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22690         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22691         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22692         (strcasecmp, strncasecmp): Use it.
22693         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22694         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22695         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22696         rpl_setsockopt): Use it.
22697         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22698         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22699         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22700         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22701         (gettimeofday): Use it.
22702         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22703         (times): Use it.
22704         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22705         (uname): Use it.
22706         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22707         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22708         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22709         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22710         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22711         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22712         unlinkat, write): Use it.
22713         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22714         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22715         * lib/argv-iter.h: Include arg-nonnull.h.
22716         (_ATTRIBUTE_NONNULL_): Remove macro.
22717         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22718         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22719         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22720         optimization.
22721         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22722         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22723         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22724         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22725         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22726         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22727         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22728         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22729         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22730         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22731         * modules/dirent (Depends-on): Add arg-nonnull.
22732         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22733         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22734         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22735         * modules/fnmatch (Depends-on): Add arg-nonnull.
22736         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22737         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22738         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22739         * modules/glob (Depends-on): Add arg-nonnull.
22740         (Makefile.am): Insert arg-nonnull.h into glob.h.
22741         * modules/iconv_open (Depends-on): Add arg-nonnull.
22742         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22743         * modules/inttypes (Depends-on): Add arg-nonnull.
22744         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22745         * modules/locale (Depends-on): Add arg-nonnull.
22746         (Makefile.am): Insert arg-nonnull.h into locale.h.
22747         * modules/math (Depends-on): Add arg-nonnull.
22748         (Makefile.am): Insert arg-nonnull.h into math.h.
22749         * modules/netdb (Depends-on): Add arg-nonnull.
22750         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22751         * modules/search (Depends-on): Add arg-nonnull.
22752         (Makefile.am): Insert arg-nonnull.h into search.h.
22753         * modules/signal (Depends-on): Add arg-nonnull.
22754         (Makefile.am): Insert arg-nonnull.h into signal.h.
22755         * modules/spawn (Depends-on): Add arg-nonnull.
22756         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22757         * modules/stdio (Depends-on): Add arg-nonnull.
22758         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22759         * modules/stdlib (Depends-on): Add arg-nonnull.
22760         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22761         * modules/string (Depends-on): Add arg-nonnull.
22762         (Makefile.am): Insert arg-nonnull.h into string.h.
22763         * modules/strings (Depends-on): Add arg-nonnull.
22764         (Makefile.am): Insert arg-nonnull.h into strings.h.
22765         * modules/sys_socket (Depends-on): Add arg-nonnull.
22766         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22767         * modules/sys_stat (Depends-on): Add arg-nonnull.
22768         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22769         * modules/sys_time (Depends-on): Add arg-nonnull.
22770         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22771         * modules/sys_times (Depends-on): Add arg-nonnull.
22772         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22773         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22774         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22775         * modules/time (Depends-on): Add arg-nonnull.
22776         (Makefile.am): Insert arg-nonnull.h into time.h.
22777         * modules/unistd (Depends-on): Add arg-nonnull.
22778         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22779         * modules/wchar (Depends-on): Add arg-nonnull.
22780         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22781         * modules/argv-iter (Depends-on): Add arg-nonnull.
22782         * tests/test-canonicalize.c (null_ptr): New function.
22783         (main): Use it.
22784         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22785         (main): Use it.
22786         * tests/test-memmem.c (null_ptr): New function.
22787         (main): Use it.
22788         Reported by Jim Meyering.
22789
22790 2009-12-10  Bruno Haible  <bruno@clisp.org>
22791
22792         Use spaces for indentation, not tabs.
22793         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22794         * m4/*.m4: Untabify.
22795         * build-aux/*.h: Untabify.
22796         * tests/**/*.[hc]: Untabify.
22797         * README: New section "Indent with spaces, not TABs", based on
22798         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22799         * NEWS: Mention the change.
22800
22801 2009-12-10  Bruno Haible  <bruno@clisp.org>
22802
22803         pty test: Fix link error.
22804         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22805         test_pty_LDADD.
22806
22807 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22808
22809         * modules/pty: New file.
22810         * modules/pty-tests: New file.
22811         * m4/pty.m4: New file.
22812         * tests/test-pty.c: New file.
22813         * doc/glibc-headers/pty.texi: Modified.
22814         * doc/glibc-functions/forkpty.texi: Modified.
22815         * doc/glibc-functions/openpty.texi: Modified.
22816
22817 2009-12-10  Bruno Haible  <bruno@clisp.org>
22818
22819         Avoid syntax error in C++ mode.
22820         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22821
22822 2009-12-10  Bruno Haible  <bruno@clisp.org>
22823
22824         Use sed with option -e.
22825         * gnulib-tool (func_version, func_emit_copyright_notice,
22826         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22827         option -e to sed.
22828         * modules/link-warning (Makefile.am): Likewise.
22829
22830 2009-12-10  Jim Meyering  <meyering@redhat.com>
22831
22832         mgetgroups: do not write bytes beyond end of malloc'd buffer
22833         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22834         username, we call getgroups with a one-element-shorter buffer,
22835         but still told it the length was original, max_n_groups.
22836
22837 2009-12-09  Eric Blake  <ebb9@byu.net>
22838
22839         cloexec: relax license
22840         * modules/cloexec (Maintainer): Add myself.
22841         (License): Use LGPL, not GPL.
22842
22843         link-warning: optimize generation
22844         * modules/link-warning (Makefile.am): Reduce process usage.
22845
22846 2009-12-09  Bruno Haible  <bruno@clisp.org>
22847
22848         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22849         workaround was added on 2009-11-17.
22850
22851 2009-12-09  Jim Meyering  <meyering@redhat.com>
22852             Bruno Haible  <bruno@clisp.org>
22853
22854         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22855         * modules/link-warning (Makefile.am): Make the comment-removing sed
22856         command more robust in the face of bootstrap-prepended comment lines.
22857
22858 2009-12-09  Bruno Haible  <bruno@clisp.org>
22859
22860         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22861         most one group.
22862
22863 2009-12-09  Simon Josefsson <simon@josefsson.org>
22864             Bruno Haible  <bruno@clisp.org>
22865
22866         * build-aux/link-warning.h: Add copyright notice.
22867         * modules/link-warning (Makefile.am): Generate link-warning.h from
22868         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22869         * NEWS: Mention change in link-warning module.
22870         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22871         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22872         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22873         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22874         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22875         * modules/math (Makefile.am): Add dependency to math.h.
22876         * modules/search (Makefile.am): Add dependency to search.h.
22877         * modules/signal (Makefile.am): Add dependency to signal.h.
22878         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22879         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22880         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22881         * modules/string (Makefile.am): Add dependency to string.h.
22882         * modules/strings (Makefile.am): Add dependency to strings.h.
22883         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22884         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22885         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22886         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22887         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22888         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22889         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22890         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22891         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22892
22893 2009-12-09  Bruno Haible  <bruno@clisp.org>
22894
22895         fchdir: Optimize away rpl_fstat when possible.
22896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22897         REPLACE_OPEN_DIRECTORY.
22898         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22899
22900 2009-12-09  Bruno Haible  <bruno@clisp.org>
22901
22902         * lib/fchdir.c: Update comment.
22903
22904 2009-12-09  Bruno Haible  <bruno@clisp.org>
22905
22906         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22907
22908 2009-12-08  Eric Blake  <ebb9@byu.net>
22909
22910         fchdir: avoid memory leak on re-registration.
22911         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22912
22913 2009-12-08  Jim Meyering  <meyering@redhat.com>
22914
22915         init.sh: avoid Solaris 10 /bin/sh portability problem
22916         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22917         sourced script:
22918           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22919           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22920           bar
22921         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22922         and two tests used that idiom.
22923         * tests/init.sh: Update suggested usage comments.
22924         (path_prepend_): New function, to be used in place
22925         of the --src-path=DIR option.
22926         (setup_): Move PATH-prepending code into path_prepend_.
22927         * tests/test-pread.sh: Adapt to new usage.
22928         * tests/test-xalloc-die.sh: Likewise.
22929
22930 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22931
22932         * doc/gnulib.texi (Glibc pty.h): Add.
22933         * doc/glibc-functions/forkpty.texi: Add.
22934         * doc/glibc-functions/openpty.texi: Add.
22935         Suggested by Bruno Haible.
22936
22937 2009-12-08  Eric Blake  <ebb9@byu.net>
22938
22939         fchdir: fix logic bugs
22940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22941         * tests/test-fchdir.c (main): Enhance test.
22942         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22943         is in use.
22944
22945         dup2: fix logic bugs
22946         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22947         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22948         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22949         exists.
22950         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22951
22952 2009-12-07  Eric Blake  <ebb9@byu.net>
22953
22954         unlink: fix m4 detection
22955         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22956
22957         unistd-safer: add unit test
22958         * modules/unistd-safer-tests: New file.
22959         * tests/test-dup-safer.c: Likewise.
22960         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22961         * tests/test-dup2.c (setmode): Likewise.
22962         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22963
22964         cloexec: preserve text vs. binary across dup_cloexec
22965         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22966         mode.
22967         * modules/dup2-tests (Depends-on): Add binary-io.
22968         * modules/cloexec-tests (Depends-on): Likewise.
22969         * tests/test-dup2.c (setmode, is_mode): New helpers.
22970         (main): Add tests that translation mode is preserved.
22971         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22972         Reported by Bruno Haible.
22973
22974         mgetgroups: reduce duplicate listings
22975         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22976         resulting array.
22977         * tests/test-chown.h (test_chown): Simplify client.
22978         * tests/test-lchown.h (test_lchown): Likewise.
22979
22980 2009-12-06  Bruno Haible  <bruno@clisp.org>
22981
22982         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22983         value.
22984
22985 2009-12-06  Bruno Haible  <bruno@clisp.org>
22986
22987         * lib/progname.c: Include stdio.h, stdlib.h.
22988         (set_program_name): Reject a NULL argument.
22989
22990 2009-12-05  Eric Blake  <ebb9@byu.net>
22991
22992         pipe2-safer: new module
22993         * modules/pipe2-safer: New file.
22994         * lib/unistd-safer.h (pipe2_safer): New prototype.
22995         * lib/unistd--.h (pipe2): New wrapper.
22996         * lib/pipe-safer.c (pipe2_safer): New function.
22997         * modules/pipe (Depends-on): Add pipe2-safer.
22998         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22999
23000         stdlib-safer: preserve cloexec flag for mkostemp[s]
23001         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23002         fd_safer_flag.
23003
23004         unistd-safer: allow preservation of cloexec status via flag
23005         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23006         prototypes.
23007         * lib/dup-safer.c (dup_safer_flag): New function.
23008         * lib/fd-safer.c (fd_safer_flag): Likewise.
23009         * modules/cloexec (configure.ac): Set witness.
23010
23011         test-dup2: enhance test
23012         * modules/dup2-tests (Depends-on): Add cloexec.
23013         * tests/test-dup2.c (main): Enhance test.
23014
23015         cloexec: add dup_cloexec
23016         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23017         header and comments.
23018         * lib/cloexec.c (set_cloexec_flag): Add comments.
23019         (dup_cloexec): New function, with mingw implementation borrowed
23020         from...
23021         * lib/w32spawn.h (dup_noinherit): ...here.
23022         * modules/execute (Depends-on): Add cloexec.
23023         * modules/pipe (Depends-on): Likewise.
23024         * modules/cloexec (Depends-on): Add dup2.
23025         * modules/cloexec-tests (Files): New file.
23026         * tests/test-cloexec.c: Likewise.
23027
23028         test-xalloc-die: fix test for mingw
23029         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23030         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23031         directory and .exe suffix off argv[0] output.
23032
23033         test-fseeko: fix test for mingw
23034         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23035         than undefining fseek, so test will pass on mingw.
23036
23037 2009-12-05  Bruno Haible  <bruno@clisp.org>
23038
23039         * lib/progname.h (set_program_name): Clarify specification.
23040         * lib/progname.c (set_program_name): Likewise.
23041         Reported by Jim Meyering.
23042
23043 2009-12-05  Jim Meyering  <meyering@redhat.com>
23044
23045         maint.mk: backslash-escape parens in default regexp
23046         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23047         backslash-escape the literal parentheses.
23048
23049         maint.mk: news-date-check: use grep -E
23050         * top/maint.mk (today): Define a Make variable, not a...
23051         (news-date-check): ...shell variable.
23052         (news-date-regexp): Use the Make variable.
23053         Use grep's -E option.  Change the failing diagnostic to mention
23054         the variable, $(news-date-regexp).
23055
23056 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23057
23058         maintainer-makefile: allow customization of NEWS entry format
23059         * top/maint.mk (news-date-regexp): New overridable variable.
23060         (news-date-check): Use it.
23061
23062 2009-12-04  Eric Blake  <ebb9@byu.net>
23063
23064         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23065         * lib/mgetgroups.h (xgetgroups): New prototype.
23066         * lib/mgetgroups.c (xgetgroups): New wrapper.
23067         (mgetgroups): Handle ENOSYS.
23068         * modules/mgetgroups (Depends-on): Add realloc.
23069         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23070
23071         mgetgroups: avoid argument promotion issues with -1
23072         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23073         for invalid gid_t.
23074         * tests/test-chown.h (getegid, test_chown): Likewise.
23075         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23076
23077 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23078
23079         exclude: Fix header file problems.
23080         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23081
23082 2009-12-01  Jim Meyering  <meyering@redhat.com>
23083
23084         fts: fts_open: do not let an empty string cause immediate failure
23085         This is required in support of GNU rm, for which the command
23086         "rm A '' B" must process and remove both A and B, in spite of
23087         the empty string argument.
23088         * lib/fts.c (fts_open): Do not let the presence of an empty string
23089         cause fts_open to fail immediately.  Most fts-using tools must be
23090         able to process all arguments, in order, and can be expected to
23091         diagnose such arguments themselves.
23092
23093 2009-11-30  Eric Blake  <ebb9@byu.net>
23094
23095         utimens: fix compilation error
23096         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23097         Declare variable at right scope.
23098
23099 2009-11-29  Jim Meyering  <meyering@redhat.com>
23100
23101         bootstrap: handle perl-5.11's changed --version output
23102         * build-aux/bootstrap (get_version): Handle perl separately,
23103         since perl-5.11's --version output is different.
23104
23105 2009-11-28  Jim Meyering  <meyering@redhat.com>
23106
23107         userspec: depend on the inttostr module, too
23108         * modules/userspec (Depends-on): Add inttostr.
23109
23110         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23111         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23112         number of MAXUID when it evaluates to (uid_t) -1.
23113         Likewise for group ID.  Reported by Matt McCutchen in
23114         <http://savannah.gnu.org/bugs/?28113>
23115
23116         userspec: reformat to use spaces, not TABs
23117         * lib/userspec.c: Expand TABs to spaces.
23118         Add Emacs' "indent-tabs-mode: nil" hint.
23119
23120 2009-11-27  Eric Blake  <ebb9@byu.net>
23121
23122         getopt-gnu: flush out another BSD bug
23123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23124         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23125         flush out BSD bug.
23126         * tests/test-getopt.h (test_getopt): End lists with NULL.
23127         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23128         (test_getopt_long_posix): Enhance test.
23129         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23130         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23131         getopt-gnu.
23132         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23133         Likewise.
23134
23135 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23136
23137         * modules/idpriv-droptemp-tests (Notice): Fix text.
23138
23139 2009-11-27  Jim Meyering  <meyering@redhat.com>
23140
23141         test-xalloc-die: avoid spurious failure due to libtool argv difference
23142         In a libtool-enabled project, this test would fail due to a difference
23143         in the emitted program name, e.g.,
23144         -test-xalloc-die: memory exhausted
23145         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23146         Use program to avoid that.
23147         * modules/xalloc-die-tests (Depends-on): Add progname.
23148         * tests/test-xalloc-die.c: Include progname.h".
23149         (program_name): Remove decl.
23150         (main): Call set_program_name.
23151         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23152
23153 2009-11-26  Richard Jones  <rjones@redhat.com>
23154
23155         w32sock: leave win32 error in place.
23156         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23157
23158 2009-11-26  Eric Blake  <ebb9@byu.net>
23159
23160         init.sh: suggest to use skip_ and fail_ functions in comments
23161         * tests/init.sh: Add a sentence.
23162
23163 2009-11-25  Bruno Haible  <bruno@clisp.org>
23164
23165         init.sh: add documentation in comments
23166         * tests/init.sh: Add some developer and user documentation.
23167
23168 2009-11-26  Jim Meyering  <meyering@redhat.com>
23169
23170         init.sh: accommodate even those who specify bogus srcdir manually
23171         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23172         configure-time tests to be sanitized, so that there is no need to
23173         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23174         (with no double quotes) suffices.  However, since tests may be
23175         invoked manually, and since you may explicitly set srcdir to the
23176         name of a directory containing spaces, do quote its uses here.
23177         * tests/test-pread.sh: Likewise.
23178         Suggested by Bruno Haible.
23179
23180         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23181         * tests/test-pread.sh: Write no data into the pipe, because
23182         test-pread actually reads none.  This avoids a diagnostic,
23183         "bash: echo: write error: Broken pipe", that arises in the unusual
23184         event something is ignoring SIGPIPE, and might be interpreted
23185         as some sort of failure.  Reported by Bruno Haible.
23186
23187 2009-11-25  Jim Meyering  <meyering@redhat.com>
23188
23189         test-pread: cover failure with ESPIPE and EINVAL
23190         * tests/test-pread.c (main): Test for failure, too.
23191         * tests/test-pread.sh: Invoke with stdin on a pipe.
23192         Suggested by Eric Blake.
23193
23194         pread: improvement and fix
23195         * modules/pread (Depends-on): Depend on lseek, for portability to
23196         e.g., mingw.  Suggested by Eric Blake.
23197         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23198
23199         unistd.in.h: correct declaration of pread
23200         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23201         Reported by Richard W.M. Jones.
23202
23203         test-pread.sh: distribute the test script
23204         * modules/pread-tests (Files): Include test-pread.sh.
23205
23206         test-pread.sh: clean up
23207         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23208         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23209         That is unnecessary, since it's always ".".
23210         Suggestion from Eric Blake.
23211
23212         test-pread.sh: make executable
23213         * tests/test-pread.sh: Set executable bit.
23214         Reported by Eric Blake.
23215
23216         correct typo in test-pread.sh
23217         * tests/test-pread.sh: Add #! line.
23218
23219         test pread
23220         * tests/test-pread.c: New file.
23221         * tests/test-pread.sh: Likewise.
23222         * modules/pread-tests: Likewise.
23223
23224         pread: new module
23225         * modules/pread: New file.
23226         * lib/unistd.in.h (pread): Define/declare.
23227         * lib/pread.c (pread): New file.
23228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23229         * modules/unistd (Makefile.am): Substitute witnesses.
23230         * doc/posix-functions/pread.texi (pread): Update.
23231         * MODULES.html.sh: Add pread.
23232
23233 2009-11-25  Jim Meyering  <meyering@redhat.com>
23234
23235         tests/init.sh: new file to be used via most *.sh tests
23236         * tests/init.sh: New file.
23237
23238 2009-11-25  Eric Blake  <ebb9@byu.net>
23239
23240         utimens: work around older Linux failure with symlinks
23241         * lib/utimens.c (lutimensat_works_really): New variable.
23242         (fdutimens, lutimens): Use it to manage kernels that support
23243         nanosecond times on files, but not on symlinks.
23244         Reported by OndÅ™ej Vašík.
23245
23246         utimes: fix configure grammar
23247         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23248
23249 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23250
23251         regex: Fix fastmap for multibyte character ranges.
23252         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23253         characters when a multibyte character range is included.
23254
23255 2009-11-22  Andy Wingo  <wingo@pobox.com>
23256
23257         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23258         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23259
23260 2009-11-24  Bruno Haible  <bruno@clisp.org>
23261
23262         doc: Most *_l functions exist in MacOS X 10.5.
23263         * doc/posix-functions/duplocale.texi: Update platforms list.
23264         * doc/posix-functions/freelocale.texi: Likewise.
23265         * doc/posix-functions/newlocale.texi: Likewise.
23266         * doc/posix-functions/uselocale.texi: Likewise.
23267         * doc/posix-functions/isalnum_l.texi: Likewise.
23268         * doc/posix-functions/isalpha_l.texi: Likewise.
23269         * doc/posix-functions/isblank_l.texi: Likewise.
23270         * doc/posix-functions/iscntrl_l.texi: Likewise.
23271         * doc/posix-functions/isdigit_l.texi: Likewise.
23272         * doc/posix-functions/isgraph_l.texi: Likewise.
23273         * doc/posix-functions/islower_l.texi: Likewise.
23274         * doc/posix-functions/isprint_l.texi: Likewise.
23275         * doc/posix-functions/ispunct_l.texi: Likewise.
23276         * doc/posix-functions/isspace_l.texi: Likewise.
23277         * doc/posix-functions/isupper_l.texi: Likewise.
23278         * doc/posix-functions/iswalnum_l.texi: Likewise.
23279         * doc/posix-functions/iswalpha_l.texi: Likewise.
23280         * doc/posix-functions/iswblank_l.texi: Likewise.
23281         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23282         * doc/posix-functions/iswctype_l.texi: Likewise.
23283         * doc/posix-functions/iswdigit_l.texi: Likewise.
23284         * doc/posix-functions/iswgraph_l.texi: Likewise.
23285         * doc/posix-functions/iswlower_l.texi: Likewise.
23286         * doc/posix-functions/iswprint_l.texi: Likewise.
23287         * doc/posix-functions/iswpunct_l.texi: Likewise.
23288         * doc/posix-functions/iswspace_l.texi: Likewise.
23289         * doc/posix-functions/iswupper_l.texi: Likewise.
23290         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23291         * doc/posix-functions/isxdigit_l.texi: Likewise.
23292         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23293         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23294         * doc/posix-functions/strcoll_l.texi: Likewise.
23295         * doc/posix-functions/strfmon_l.texi: Likewise.
23296         * doc/posix-functions/strftime_l.texi: Likewise.
23297         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23298         * doc/posix-functions/strxfrm_l.texi: Likewise.
23299         * doc/posix-functions/tolower_l.texi: Likewise.
23300         * doc/posix-functions/toupper_l.texi: Likewise.
23301         * doc/posix-functions/towctrans_l.texi: Likewise.
23302         * doc/posix-functions/towlower_l.texi: Likewise.
23303         * doc/posix-functions/towupper_l.texi: Likewise.
23304         * doc/posix-functions/wcscoll_l.texi: Likewise.
23305         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23306         * doc/posix-functions/wctrans_l.texi: Likewise.
23307         * doc/posix-functions/wctype_l.texi: Likewise.
23308         * doc/glibc-functions/strptime_l.texi: Likewise.
23309         * doc/glibc-functions/strtod_l.texi: Likewise.
23310         * doc/glibc-functions/strtof_l.texi: Likewise.
23311         * doc/glibc-functions/strtol_l.texi: Likewise.
23312         * doc/glibc-functions/strtold_l.texi: Likewise.
23313         * doc/glibc-functions/strtoll_l.texi: Likewise.
23314         * doc/glibc-functions/strtoul_l.texi: Likewise.
23315         * doc/glibc-functions/strtoull_l.texi: Likewise.
23316         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23317         * doc/glibc-functions/wcstod_l.texi: Likewise.
23318         * doc/glibc-functions/wcstof_l.texi: Likewise.
23319         * doc/glibc-functions/wcstol_l.texi: Likewise.
23320         * doc/glibc-functions/wcstold_l.texi: Likewise.
23321         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23322         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23323         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23324
23325 2009-11-24  Bruno Haible  <bruno@clisp.org>
23326
23327         duplocale: Fix logic bug.
23328         * lib/duplocale.c: Don't include <langinfo.h>.
23329         (_NL_LOCALE_NAME): Remove macro.
23330         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23331         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23332
23333 2009-11-23  Jim Meyering  <meyering@redhat.com>
23334
23335         test-update-copyright: don't hard-code /usr/bin/perl
23336         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23337         perl to print the current year.  Gilles Espinasse reported that
23338         the replaced use of perl was hard-coded as /usr/bin/perl.
23339
23340 2009-11-23  Bruno Haible  <bruno@clisp.org>
23341
23342         duplocale: Add support for glibc 2.3.x.
23343         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23344
23345 2009-11-22  Bruno Haible  <bruno@clisp.org>
23346
23347         vasnprintf: Tiny optimization.
23348         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23349         MacOS X.
23350
23351 2009-11-22  Bruno Haible  <bruno@clisp.org>
23352
23353         Tests for module 'duplocale'.
23354         * modules/duplocale-tests: New file.
23355         * tests/test-duplocale.c: New file.
23356
23357         New module 'duplocale'.
23358         * m4/duplocale.m4: New file.
23359         * lib/locale.in.h (duplocale): New declaration.
23360         * lib/duplocale.c: New file.
23361         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23362         gl_LOCALE_H_DEFAULTS): New macros.
23363         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23364         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23365         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23366         REPLACE_DUPLOCALE.
23367         * modules/duplocale: New file.
23368         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23369
23370 2009-11-22  Bruno Haible  <bruno@clisp.org>
23371
23372         * modules/locale-tests (configure.ac): Test for newlocale function.
23373         * tests/test-locale.c: When the system has extended locale functions,
23374         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23375
23376         locale: Make locale_t available when possible.
23377         * lib/locale.in.h: Include <xlocale.h> when it exists.
23378         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23379         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23380         * modules/locale (Depends-on): Add extensions.
23381         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23382         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23383
23384 2009-11-22  Bruno Haible  <bruno@clisp.org>
23385
23386         Add comments.
23387         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23388         invocation.
23389         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23390         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23391         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23392
23393 2009-11-22  Bruno Haible  <bruno@clisp.org>
23394
23395         error: account for the possibility of freopen (stdout).
23396         * lib/error.c: Include <unistd.h>.
23397         (flush_stdout): New function, extracted from error and error_at_line.
23398         Determine stdout's fd dynamically.
23399         (error, error_at_line): Invoke flush_stdout.
23400         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23401         * modules/error (Depends-on): Add unistd.
23402
23403 2009-11-22  Bruno Haible  <bruno@clisp.org>
23404
23405         diffseq: Add comment.
23406         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23407
23408 2009-11-22  Jim Meyering  <meyering@redhat.com>
23409
23410         c-stack: avoid defining an unused static function
23411         * lib/c-stack.c (find_stack_direction): Do not define this function
23412         when it will not be used.
23413
23414         diffseq: avoid spurious gcc warnings
23415         * lib/diffseq.h (IF_LINT2): Define.
23416         (compareseq): Use it to initialize two members of "part".
23417         This avoids two used-uninitialized warnings.
23418
23419 2009-11-21  Jim Meyering  <meyering@redhat.com>
23420
23421         c-stack: avoid "ignoring return value of `write'" warning
23422         * lib/c-stack.c: Include "ignore-value.h".
23423         (die): Explicitly ignore each write return value.
23424         * modules/c-stack (Depends-on): Add ignore-value.
23425
23426 2009-11-21  Bruno Haible  <bruno@clisp.org>
23427
23428         diffseq: reduce scope of variable 'best'.
23429         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23430         variable, earlier used for two different purposes.
23431
23432 2009-11-21  Jim Meyering  <meyering@redhat.com>
23433
23434         diffseq: remove useless assignment to "best"
23435         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23436         assignment.  At that point "best" is already guaranteed to be zero.
23437
23438 2009-11-20  Eric Blake  <ebb9@byu.net>
23439
23440         build: mention ftp redirector in release announcements
23441         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23442         values that used to come from cfg.mk; mention FTP redirect URL.
23443         * build-aux/announce-gen: Mention the mirror list.
23444         Suggested by Karl Berry.
23445
23446         nanosleep: improve port to mingw
23447         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23449         LIB_NANOSLEEP, but only when needed.
23450         * modules/select (Link): Document LIBSOCKET.
23451         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23452         enough.
23453
23454         nanosleep: work around cygwin bug
23455         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23456         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23457         bug.
23458         (getnow): Delete, not needed.
23459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23460         LIB_CLOCK_GETTIME.
23461         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23462         clock-time, gettime.
23463         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23464         bug.
23465         * modules/nanosleep-tests: New test.
23466         * tests/test-nanosleep.c: New file.
23467
23468         sleep: work around cygwin bug
23469         * lib/sleep.c (rpl_sleep): Work around the bug.
23470         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23471         (gl_PREREQ_SLEEP): Delete unused macro.
23472         * modules/sleep (Depends-on): Add verify.
23473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23474         * modules/unistd (Makefile.am): Substitute witness.
23475         * lib/unistd.in.h (sleep): Update prototype.
23476         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23477         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23478         * modules/sleep-tests (Depends-on): Check for alarm.
23479
23480 2009-11-20  Jim Meyering  <meyering@redhat.com>
23481
23482         maint.mk: improve sc_prohibit_magic_number_exit
23483         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23484         so it does not match uses like System.exit(1).
23485         Add comments showing how to correct all offenders.
23486
23487 2009-11-19  Eric Blake  <ebb9@byu.net>
23488
23489         xalloc-die-tests: add missing library
23490         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23491
23492         test-xvasprintf: silence compiler warnings
23493         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23494         empty string from gcc.
23495
23496 2009-11-19  Jim Meyering  <meyering@redhat.com>
23497
23498         xfreopen: new module, from coreutils
23499         * modules/xfreopen: New module.
23500         * lib/xfreopen.c: New file.
23501         * lib/xfreopen.h: New file.
23502         * MODULES.html.sh (File stream based Input/Output"): Add it.
23503
23504 2009-11-19  Eric Blake  <ebb9@byu.net>
23505
23506         manywarnings: depend on warnings
23507         * modules/manywarnings (Depends-on): Add warnings.
23508
23509         build: avoid compiler warnings
23510         * lib/select.c (rpl_select): Delete unused variable.
23511         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23512
23513 2009-11-18  Eric Blake  <ebb9@byu.net>
23514
23515         tests: avoid false negative with --with-packager
23516         * tests/test-version-etc.sh: Discard packager information.
23517         * tests/test-argp-version-etc-1.sh: Likewise.
23518         Reported by Mike Frysinger.
23519
23520         utimens: fix regression on Solaris
23521         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23522         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23523         can only change fd timestamps via futimesat.  Instead, use an
23524         additional witness macro to avoid BSD bug.
23525         Reported by Jim Meyering.
23526
23527 2009-11-17  Eric Blake  <ebb9@byu.net>
23528
23529         usleep: use it to simplify tests
23530         * modules/stat-time-tests (Depends-on): Add usleep.
23531         (configure.ac): Drop usleep check.
23532         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23533         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23534         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23535         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23536         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23537         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23538         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23539         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23540         Likewise.
23541         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23542         * tests/test-lchown.h (nap): Likewise.
23543         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23544         * tests/test-stat-time.c (nap): Likewise.
23545         * tests/test-utimens-common.h (nap): Update comments.
23546
23547         usleep: new module
23548         * modules/usleep: New file.
23549         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23550         * lib/usleep.c (usleep): Likewise.
23551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23552         * modules/unistd (Makefile.am): Substitute witnesses.
23553         * lib/unistd.in.h (usleep): Add declaration.
23554         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23555         * MODULES.html.sh (Date and time): Likewise.
23556         * modules/usleep-tests (Depends-on): New test.
23557         * tests/test-usleep.c: New file.
23558
23559         chown: work around OpenBSD bug
23560         * lib/chown.c (rpl_chown): Work around the bug.
23561         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23562         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23563         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23564         * modules/chown (Depends-on): Add stdbool.
23565         * modules/lchown (Depends-on): Likewise.
23566         * doc/posix-functions/chown.texi (chown): Document the bug.
23567         * doc/posix-functions/lchown.texi (lchown): Likewise.
23568         * tests/test-lchown.h (test_chown): Relax test.
23569
23570         mkstemp: avoid conflict with C++ keyword template
23571         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23572         * lib/mkostemp.c (mkostemp): Likewise.
23573         * lib/mkostemps.c (mkostemps): Likewise.
23574         * lib/mkstemp.c (mkstemp): Likewise.
23575         * lib/mkstemps.c (mkstemps): Likewise.
23576
23577         xalloc-die-tests: optimize
23578         * tests/test-xalloc-die.sh: Reduce number of processes.
23579
23580 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23581
23582         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23583         patch from ludo@gnu.org (Ludovic Courtès).
23584
23585 2009-11-17  Jim Meyering  <meyering@redhat.com>
23586
23587         version-etc: use proper license string
23588         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23589         * modules/version-etc-fsf: Likewise.
23590
23591 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23592
23593         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23594         printed to stdout.  Deal with EOL differences.
23595
23596 2009-11-17  Eric Blake  <ebb9@byu.net>
23597
23598         unsetenv: work around Solaris bug
23599         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23600         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23601         Reported by Jim Meyering.
23602
23603         vasnprintf: avoid compiler warnings
23604         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23605         variables.
23606         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23607
23608 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23609
23610         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23611         settings since xalloc-die is no longer the self test,
23612         xalloc-die.sh is.
23613
23614 2009-11-17  Jim Meyering  <meyering@redhat.com>
23615
23616         test-xalloc-die.sh: make the code agree with the commit log
23617         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23618         at the end, just in case you happen to have a test-xalloc-die
23619         program in some other PATH directory.
23620
23621         test-xalloc-die.sh: fix a portability bug
23622         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23623         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23624         Otherwise, argv[0] (as often seen in diagnostics) would be too
23625         system-dependent, sometimes with, and sometimes without the leading "./".
23626
23627         version-etc-fsf: relax license to LGPLv3+
23628         * modules/version-etc-fsf (License): Relax license.
23629
23630 2009-11-16  Eric Blake  <ebb9@byu.net>
23631
23632         xalloc-die-tests: avoid printing null pointer
23633         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23634         shell script.
23635         * tests/test-xalloc-die.c (program_name): Declare.
23636         * tests/test-xalloc-die.sh (tmpfiles): New file.
23637
23638         setenv, unsetenv: work around various bugs
23639         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23640         (setenv) [HAVE_SETENV]: Work around bugs.
23641         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23642         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23643         for bugs.
23644         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23645         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23647         * modules/stdlib (Makefile.am): Update substitutions.
23648         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23649         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23650         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23651         * modules/setenv-tests: New test.
23652         * modules/unsetenv-tests: Likewise.
23653         * tests/test-setenv.c: New file.
23654         * tests/test-unsetenv.c: Likewise.
23655
23656 2009-11-16  Jim Meyering  <meyering@redhat.com>
23657
23658         version-etc: relax license to LGPLv3+
23659         * modules/version-etc (License): Relax license.
23660
23661         better AC_REQUIRE expanded-before-required-warning avoidance
23662         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23663         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23664         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23665         which is no longer needed.
23666
23667 2009-11-16  Eric Blake  <ebb9@byu.net>
23668
23669         test-freading: clean up temporary file
23670         * tests/test-freading.c (main): Remove file on success, and use
23671         ASSERT more liberally.
23672         Reported by Jim Meyering.
23673
23674 2009-11-16  Jim Meyering  <meyering@redhat.com>
23675
23676         avoid new AC_REQUIRE expanded-before-required warnings
23677         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23678         merely using it.
23679         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23680         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23681
23682 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23683
23684         * tests/test-xalloc-die.c: New file.
23685         * modules/xalloc-die-tests: New file.
23686         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23687         XFAIL_TESTS so it can be appended by modules.
23688
23689 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23690
23691         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23692         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23693
23694 2009-11-14  Eric Blake  <ebb9@byu.net>
23695
23696         fnmatch: avoid compiler warning
23697         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23698         to silence compiler warning about mismatch signedness in ?:.
23699         Reported by Robert Millan.
23700
23701         intprops: add double-inclusion guard
23702         * lib/intprops.h: Allow idempotent includes.
23703         Suggested by Bruce Korb.
23704
23705         openat: detect Solaris fchownat bug
23706         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23707         penalizing glibc chownat when only lchownat is broken.
23708         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23709         trailing slash bugs.
23710         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23711         * modules/openat-tests (Files): Include more files.
23712         (Depends-on): Add mgetgroups, sleep, stat-time.
23713         (configure.ac): Add additional checks.
23714         (Makefile.am): Build new test.
23715         * tests/test-fchownat.c: New file.
23716
23717         lchown: detect Solaris and FreeBSD bug
23718         * lib/lchown.c (rpl_lchown): Work around bug.
23719         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23721         * modules/unistd (Makefile.am): Populate it.
23722         * lib/unistd.in.h (lchown): Update declaration.
23723         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23724         * modules/lchown-tests: New file.
23725         * tests/test-lchown.h (test_lchown): Likewise.
23726         * tests/test-lchown.c (main): Likewise.
23727
23728         chown: detect Solaris and FreeBSD bug
23729         * lib/chown.c (rpl_chown): Work around bug.
23730         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23731         (gl_PREREQ_CHOWN): Delete.
23732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23733         * modules/unistd (Makefile.am): Populate it.
23734         * lib/unistd.in.h (chown): Update declaration.
23735         * lib/lchown.c (chown): Update client.
23736         * modules/lchown (Depends-on): Add lstat.
23737         * doc/posix-functions/chown.texi (chown): Document the bug.
23738         * doc/posix-functions/getgroups.texi (getgroups): Document
23739         getgroups pitfall.
23740         * modules/chown-tests: New file.
23741         * tests/test-chown.h (test_chown): Likewise.
23742         * tests/test-chown.c (main): Likewise.
23743
23744 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23745
23746         gnulib-tool: correctly detect absence of m4 directories
23747         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23748
23749 2009-11-14  Jim Meyering  <meyering@redhat.com>
23750
23751         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23752         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23753
23754 2009-11-14  John W. Eaton  <jwe@gnu.org>
23755
23756         strftime.h: wrap funtion declaration in extern "C" block
23757         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23758
23759 2009-11-13  Eric Blake  <ebb9@byu.net>
23760
23761         getgroups: avoid compiler warning
23762         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23763
23764         getgroups: work around FreeBSD bug
23765         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23766         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23767         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23768         * tests/test-getgroups.c (main): Fix buffer overrun.
23769
23770         getgroups: avoid compilation failure
23771         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23772         * modules/getgroups (Depends-on): Add stdint.
23773
23774 2009-11-13  Jim Meyering  <meyering@redhat.com>
23775
23776         test-getgroups: avoid compilation failure
23777         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23778
23779 2009-11-13  Eric Blake  <ebb9@byu.net>
23780
23781         mgetgroups: new module, taken from coreutils
23782         * modules/mgetgroups: New file.
23783         * lib/mgetgroups.h: Likewise.
23784         * lib/mgetgroups.c (mgetgroups): Likewise.
23785         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23786         * MODULES.html.sh (Users and groups): Mention it.
23787
23788         getgroups: don't expose GETGROUPS_T to user
23789         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23790         an element at a time if GETGROUPS_T is wrong size.
23791         * lib/getugroups.h (getugroups): Change signature.
23792         * lib/unistd.in.h (getgroups): Likewise.
23793         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23794         signature needs fixing.
23795         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23796         AC_TYPE_GETGROUPS.
23797         * modules/group-member (Depends-on): Add getgroups.
23798         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23799         (group_member): Rely on getgroups replacement.
23800         * lib/getugroups.c (getugroups): Use gid_t.
23801         * tests/test-getgroups.c (main): Likewise.
23802         * NEWS: Mention the signature change.
23803         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23804         problem with signature.
23805         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23806         GETGROUPS_T is still useful for setgroups.
23807
23808         getgroups, getugroups: provide stubs for mingw
23809         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23810         * lib/getugroups.c (getugroups): Likewise.
23811         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23812         function.  Modernize replacement scheme.
23813         (gl_PREREQ_GETGROUPS): Delete.
23814         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23815         * modules/getgroups (configure.ac): Declare witness.
23816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23817         * modules/unistd (Depends-on): Substitute witness.
23818         * lib/unistd.in.h (getgroups): Declare replacement.
23819
23820         getgroups: avoid calling exit
23821         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23822         drop xalloc.
23823         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23824         dependencies.
23825         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23826         exiting, in the rare case of malloc failure.
23827
23828         getgroups: fix logic error
23829         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23830         has more than 20 groups.
23831         * modules/getgroups-tests: New test.
23832         * tests/test-getgroups.c: New file.
23833
23834 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23835
23836         * tests/test-base64.c: Improve.
23837
23838 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23839
23840         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23841         Blake <ebb9@byu.net>.
23842
23843 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23844
23845         * tests/test-xvasprintf.c: Add %s%s related checks.
23846
23847 2009-11-12  Eric Blake  <ebb9@byu.net>
23848
23849         version-etc: match standards.texi style
23850         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23851         and use <> only for URLs.
23852
23853 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23854
23855         fts: do not fail on a submount during traversal
23856         * lib/fts.c (fts_build): Read the stat info again after opening
23857         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23858         Original report at http://bugzilla.redhat.com/501848.
23859
23860 2009-11-12  Jim Meyering  <meyering@redhat.com>
23861
23862         bootstrap: sync from coreutils
23863         * build-aux/bootstrap (bootstrap_epilogue): New function.
23864         Use git_modules_config in one more place.  This make bootstrap's
23865         --gnulib-srcdir option more useful for testing.
23866
23867         bootstrap: generalize autoheader check
23868         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23869         AC_CONFIG_HEADERS.
23870
23871 2009-11-11  Eric Blake  <ebb9@byu.net>
23872
23873         mkfifoat: use new modules for Solaris and BSD bugs
23874         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23875         * lib/mkfifoat.c (mknodat): Split...
23876         * lib/mknodat.c (mknodat): ...into new file.
23877         * modules/mkfifoat (Files): Ship new file.
23878         (Depends-on): Add mkfifo, mknod.
23879         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23880         (Depends-on): Add symlink.
23881         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23882         redundant with test_mkfifo.h.
23883         (do_mkfifoat, do_mknodat): New helpers.
23884
23885         mknod: new module
23886         * modules/mknod: New file.
23887         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23888         * lib/mknod.c (mknod): Likewise.
23889         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23890         defaults.
23891         * modules/sys_stat (Makefile.am): Substitute them.
23892         * lib/sys_stat.in.h (mknod): Declare replacement.
23893         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23894         Document it.
23895         * doc/posix-functions/mknod.texi (mknod): Likewise.
23896         * modules/mknod-tests: New test.
23897         * tests/test-mknod.c: Likewise.
23898
23899         mkfifo: new module
23900         * modules/mkfifo: New file.
23901         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23902         * lib/mkfifo.c (mkfifo): Likewise.
23903         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23904         defaults.
23905         * modules/sys_stat (Makefile.am): Substitute them.
23906         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23907         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23908         Document it.
23909         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23910         * modules/mkfifo-tests: New test.
23911         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23912         from test-mkfifoat.c.
23913         * tests/test-mkfifo.c: New file.
23914
23915         readlink: detect FreeBSD bug
23916         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23917         slash on symlink.
23918         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23919         * tests/test-readlink.h (test_readlink): Enhance test.
23920
23921         symlink: detect FreeBSD bug
23922         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23923         slash on symlink.
23924         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23925         * tests/test-symlink.h (test_symlink): Enhance test.
23926
23927 2009-11-10  Eric Blake  <ebb9@byu.net>
23928
23929         link: detect FreeBSD bug
23930         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23931         symlink.
23932         * doc/posix-functions/link.texi (link): Document the bug.
23933         * tests/test-link.h (test_link): Enhance test.
23934         * tests/test-linkat.c (main): Update caller.
23935
23936         unlink, remove: detect FreeBSD bug
23937         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23938         slash on symlink.
23939         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23940         * doc/posix-functions/remove.texi (remove): Likewise.
23941         * tests/test-unlink.h (test_unlink): Enhance test.
23942         * tests/test-remove.c (main): Likewise.
23943
23944 2009-11-09  Eric Blake  <ebb9@byu.net>
23945
23946         rename: detect FreeBSD bug
23947         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23948         slash on symlink.
23949         * modules/renameat-tests (Depends-on): Add filenamecat.
23950         * tests/test-rename.h (test_rename): Allow one more errno.
23951         * tests/test-renameat.c (main): Likewise.
23952         * doc/posix-functions/rename.texi (rename): Document the bug.
23953
23954         open: detect FreeBSD bug
23955         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23956         symlink.
23957         * doc/posix-functions/open.texi (open): Document the bug.
23958         * doc/posix-functions/utimes.texi (utimes): Likewise.
23959         * tests/test-open.h (test_open): Add parameters, and test symlink
23960         handling.
23961         * tests/test-open.c (main): Adjust caller.
23962         * tests/test-fcntl-safer.c (main): Likewise.
23963         * modules/open-tests (Depends-on): Add stdbool, symlink.
23964         * modules/fcntl-safer-tests (Depends-on): Likewise.
23965         * tests/test-openat.c (main): Add test-open tests.
23966
23967         stat: detect FreeBSD bug
23968         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23969         symlink.
23970         * doc/posix-functions/stat.texi (stat): Document the bug.
23971         * tests/test-stat.h (test_stat_func): Add argument.
23972         * tests/test-stat.c (main): Adjust caller.
23973         * tests/test-fstatat.c (main): Likewise.
23974         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23975         Reported by Jim Meyering.
23976
23977 2009-11-09  James Youngman  <jay@gnu.org>
23978
23979         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23980         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23981
23982 2009-11-08  Jim Meyering  <meyering@redhat.com>
23983
23984         utimens: remove invalid futimesat call
23985         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23986         It used the file descriptor of the target file as the DIR_FD
23987         parameter and NULL as the file name.  That caused failure with
23988         errno == EFAULT on FreeBSD-8.0-rc2
23989
23990 2009-11-07  Eric Blake  <ebb9@byu.net>
23991
23992         fflush, freadseek: use fseeko, not fseek
23993         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23994         (clear_ungetc_buffer): Avoid potential problems on large files.
23995         * lib/freadseek.c (freadseek): Likewise.
23996         * modules/freadseek (Depends-on): Add fseeko.
23997         * modules/fseek (configure.ac): Set a witness.
23998         * tests/test-fflush.c (main): Use fseeko.
23999         * tests/test-fpurge.c (fseek): Disable link warning.
24000         * tests/test-freadable.c (fseek): Likewise.
24001         * tests/test-freading.c (fseek): Likewise.
24002         * tests/test-fseeko.c (fseek): Likewise.
24003         * tests/test-ftell.c (fseek): Likewise.
24004         * tests/test-ftello.c (fseek): Likewise.
24005         * tests/test-fwritable.c (fseek): Likewise.
24006         * tests/test-fwriting.c (fseek): Likewise.
24007
24008 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24009
24010         * modules/memchr (Depends-on): Drop getpagesize dependency.
24011
24012 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24013
24014         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24015         Reported by Ludovic Courtès.
24016         * build-aux/pmccabe2html: Improve example usage.
24017         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24018
24019 2009-11-06  Jim Meyering  <meyering@redhat.com>
24020
24021         do-release-commit-and-tag: New module.
24022         Automate the release-commit and tag process.
24023         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24024         * modules/do-release-commit-and-tag: New file.
24025         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24026
24027 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24028
24029         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24030         because test-select.c uses inet_pton.
24031
24032 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24033
24034         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24035         GETADDRINFO_LIB.  Bump serial number.
24036         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24037         Suggested by Eric Blake <ebb9@byu.net>.
24038
24039 2009-11-05  Eric Blake  <ebb9@byu.net>
24040
24041         strtod: detect darwin bug
24042         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24043         Reported by Leo Davis.
24044
24045         freopen-safer: new module
24046         * modules/freopen-safer: New module.
24047         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24048         * lib/freopen-safer.c (freopen_safer): New file.
24049         * lib/stdio-safer.h (freopen_safer): New declaration.
24050         * lib/stdio--.h (freopen): New override.
24051         * MODULES.html.sh (File stream based Input/Output): Mention it.
24052         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24053         freopen-safer module.
24054         * doc/posix-functions/stderr.texi (stderr): Likewise.
24055         * doc/posix-functions/stdin.texi (stdin): Likewise.
24056         * doc/posix-functions/stdout.texi (stdout): Likewise.
24057         * modules/freopen-safer-tests: New test.
24058         * tests/test-reopen-safer.c: New file.
24059
24060 2009-11-05  Jim Meyering  <meyering@redhat.com>
24061
24062         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24063         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24064
24065 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24066
24067         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24068
24069 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24070
24071         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24072
24073 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24074
24075         Fix link error.
24076         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24077         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24078
24079 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24080
24081         * tests/test-func.c: Also test value of __func__.
24082
24083 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24084
24085         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24086         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24087
24088 2009-11-05  Bruno Haible  <bruno@clisp.org>
24089
24090         Fix link error.
24091         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24092         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24093         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24094
24095 2009-11-05  Bruno Haible  <bruno@clisp.org>
24096
24097         Tests for module 'inet_pton'.
24098         * modules/inet_pton-tests: New file.
24099         * tests/test-inet_pton.c: New file.
24100
24101 2009-11-05  Bruno Haible  <bruno@clisp.org>
24102
24103         Tests for module 'inet_ntop'.
24104         * modules/inet_ntop-tests: New file.
24105         * tests/test-inet_ntop.c: New file.
24106
24107 2009-11-04  Eric Blake  <ebb9@byu.net>
24108
24109         stdlib-safer: wrap all mkstemp variants
24110         * modules/mkostemp (configure.ac): Set witness.
24111         * modules/mkostemps (configure.ac): Likewise.
24112         * modules/mkstemps (configure.ac): Likewise.
24113         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24114         (mkstemps_safer): Wrap more functions.
24115         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24116         wrapping.
24117         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24118         (mkstemps_safer): Implement the wrappers.
24119
24120         mkstemps, mkostemps: new modules
24121         * modules/mkostemps: New module.
24122         * modules/mkstemps: Likewise.
24123         * lib/mkostemps.c (mkostemps): New file.
24124         * lib/mkstemps.c (mkstemps): Likewise.
24125         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24126         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24128         * modules/stdlib (Makefile.am): Substitute them.
24129         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24130         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24131         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24132         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24133         * MODULES.html.sh (File system functions): Mention them.
24134
24135         tempname: resync from glibc
24136         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24137         same values for __GT_FILE as glibc.  Abort even when assertions
24138         are disabled.
24139         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24140         match its value otherwise.  Allow idempotent inclusion.
24141         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24142         * lib/mkostemp.c (mkostemp): Likewise.
24143         * lib/mkstemp.c (mkstemp): Likewise.
24144         * lib/tmpfile.c (tmpfile): Likewise.
24145         * NEWS: Document this.
24146
24147         utimens: fix use of futimens on older Linux
24148         * lib/utimens.c (fdutimens): Use updated, rather than original,
24149         timespec to avoid bug in older Linux kernel.
24150         Reported by Simon Josefsson.
24151
24152 2009-11-04  Bruno Haible  <bruno@clisp.org>
24153
24154         Make num_processors more flexible and consistent.
24155         * lib/nproc.h (enum nproc_query): New type.
24156         (num_processors): Add a 'query' argument.
24157         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24158         (num_processors): Add a 'query' argument. Test the value of the
24159         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24160         mingw, count the number of CPUs available for the current process.
24161         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24162         Check for sched_getaffinity and sched_getaffinity_np.
24163         * modules/nproc (Depends-on): Add c-ctype, extensions.
24164         * NEWS: Mention the change.
24165
24166 2009-11-03  Bruno Haible  <bruno@clisp.org>
24167
24168         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24169
24170 2009-11-03  Jim Meyering  <meyering@redhat.com>
24171
24172         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24173         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24174         if it is defined.
24175
24176 2009-11-02  Eric Blake  <ebb9@byu.net>
24177
24178         mktime, timegm: share common declaration
24179         * lib/mktime-internal.h: New file.
24180         * lib/mktime.c: Use it rather than open-coding a declaration.
24181         * lib/timegm.c: Likewise.
24182         * modules/mktime (Files): Ship it.
24183         * modules/timegm (Files): Likewise.
24184         Suggested by Bruno Haible.
24185
24186         test-update-copyright: update test to match script changes
24187         * tests/test-update-copyright.sh: Avoid hard-coding perl
24188         location.  Don't update *.bak created by earlier runs.
24189
24190 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24191             Simon Josefsson  <simon@josefsson.org>
24192             Bruno Haible  <bruno@clisp.org>
24193
24194         Fix link error on Solaris 8.
24195         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24196         also in libnsl. Define also INET_PTON_LIB.
24197         * modules/inet_pton (Link): New section.
24198
24199 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24200             Bruno Haible  <bruno@clisp.org>
24201
24202         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24203         * modules/inet_ntop (Link): New section.
24204         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24205
24206 2009-11-02  Eric Blake  <ebb9@byu.net>
24207
24208         maint: avoid compiler warnings in m4 macros
24209         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24210         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24211
24212 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24213
24214         * m4/pmccabe2html.m4: Remove file.
24215         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24216         function.  Change maintainer.
24217         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24218         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24219         Courtès).
24220
24221 2009-10-31  Eric Blake  <ebb9@byu.net>
24222
24223         fseeko: fix m4 regression
24224         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24225         regression from 2009-10-27.
24226         Reported by Ralf Wildenhues.
24227
24228 2009-10-31  Jim Meyering  <meyering@redhat.com>
24229
24230         inttostr: aesthetics and improved (compile-time) safety
24231         Define inttype_is_signed rather than inttype_is_unsigned,
24232         since the sole use is via "#if inttype_is_signed".
24233         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24234         inttype_is_unsigned.
24235         * lib/offtostr.c (inttype_is_signed): Likewise.
24236         * lib/uinttostr.c (inttype_is_signed): Likewise.
24237         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24238         * lib/inttostr.c (inttostr): Use verify to cross-check the
24239         inttype_is_signed value and the signedness of the actual type.
24240         * modules/inttostr (Depends-on): Add verify.
24241
24242 2009-10-30  Eric Blake  <ebb9@byu.net>
24243
24244         build: avoid compiler warnings
24245         * lib/fchmodat.c (lchmod): Mark unused variables.
24246         * lib/getopt.c (_getopt_initialize): Likewise.
24247         * lib/mktime.c (__mktime_internal): Provide prototype.
24248         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24249         older gcc that do not understand #pragma GCC diagnostic.
24250         * lib/uinttostr.c (inttype_is_unsigned): Define.
24251         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24252
24253 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24254
24255         stat: fix compilation on AIX
24256         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24257         only see struct stat64.
24258
24259 2009-10-30  Eric Blake  <ebb9@byu.net>
24260
24261         exclude: make more robust
24262         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24263         rather than masking a coding bug.
24264         Suggested by Bruno Haible.
24265
24266 2009-10-30  Jim Meyering  <meyering@redhat.com>
24267
24268         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24269         Rather than putting #!/usr/bin/perl on the first line,
24270         start with a variant of what's recommended by "man perlrun" that
24271         invokes the first "perl" program from your shell's search path.
24272         * build-aux/gitlog-to-changelog: Replace #!... as above.
24273         Add a "Local Variables" perl mode setting.
24274         Prompted by a patch from Ludovic Courtès.
24275         Improved by Eric Blake.
24276         * build-aux/useless-if-before-free: Likewise.
24277         * build-aux/announce-gen: Likewise.
24278         * build-aux/update-copyright: Likewise.
24279
24280 2009-10-29  Eric Blake  <ebb9@byu.net>
24281
24282         filenamecat-lgpl: adjust clients
24283         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24284         filenamecat.
24285         * modules/renameat (Depends-on): Likewise.
24286
24287         filenamecat: split into filenamecat-lgpl
24288         * modules/filenamecat-lgpl: New module.
24289         * modules/filenamecat (Files): Move library-safe files into
24290         filenamecat-lgpl.
24291         (Depends-on): Add filenamecat-lgpl.
24292         (configure.ac): Declare witness.
24293         * lib/filenamecat.h (file_name_concat): Only declare when using
24294         GPL module.
24295         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24296         Move...
24297         * lib/filenamecat-lgpl.c: ...into new file.
24298         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24299         (gl_FILE_NAME_CONCAT): Use it.
24300         * MODULES.html.sh (File system functions): Mention new module.
24301
24302         argp: avoid memory leak
24303         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24304         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24305         base_name, since the latter malloc()s and can call exit().
24306         Leak introduced 2006-07-03.
24307
24308         dirname-lgpl: adjust clients that don't need full dirname
24309         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24310         * modules/filenamecat (Depends-on): Likewise.
24311         * modules/linkat (Depends-on): Likewise.
24312         * modules/mkancesdirs (Depends-on): Likewise.
24313         * modules/mkdir (Depends-on): Likewise.
24314         * modules/openat (Depends-on): Likewise.
24315         * modules/savewd (Depends-on): Likewise.
24316         * modules/rename (Depends-on): Likewise.
24317         (License): Relax license.
24318         * modules/mkdir-tests (Depends-on): Drop progname.
24319         (Makefile.am): Delete unneeded LDADD.
24320         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24321
24322         dirname: split into dirname-lgpl
24323         * modules/dirname-lgpl: New module.
24324         * modules/dirname (Files): Move library-safe files into
24325         dirname-lgpl.
24326         (Depends-on): Add dirname-lgpl.
24327         (configure.ac): Declare witness.
24328         * modules/double-slash-root (License): Relax license.
24329         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24330         module.
24331         * lib/dirname.c (dir_len, mdir_name): Move...
24332         * lib/dirname-lgpl.c: ...into new file.
24333         * lib/basename.c (last_component, base_len): Move...
24334         * lib/basename-lgpl.c: ...into new file.
24335         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24336         (gl_DIRNAME): Use it.
24337         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24338         Mention new module.
24339         * modules/dirname-tests (Depends-on): Add progname.
24340         * tests/test-dirname.c (program_name): Delete.
24341
24342         mkdir: make safe for libraries
24343         * modules/mkdir (Depends-on): Drop xalloc.
24344         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24345         exit.
24346
24347         tests: avoid some compiler warnings
24348         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24349         literals.
24350         * tests/test-memchr.c (main): Avoid type mismatch.
24351         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24352         * tests/test-base64.c (main): Likewise.
24353         * tests/test-getdelim.c (main): Likewise.
24354         * tests/test-gethostname.c (main): Likewise.
24355         * tests/test-getline.c (main): Likewise.
24356         * tests/test-netinet_in.c (main): Likewise.
24357         * tests/test-select.c (open_server_socket, main): Likewise.
24358         * tests/test-select-stdin.c (main): Likewise.
24359         * tests/test-sockets.c (main): Likewise.
24360         * tests/test-strsignal.c (main): Likewise.
24361         * tests/test-sys_select.c (main): Likewise.
24362         * tests/test-sys_socket.c (main): Likewise.
24363         * tests/test-u64.c (main): Likewise.
24364         * tests/test-xfprintf-posix.c (main): Likewise.
24365         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24366
24367         sockets: avoid compiler warning
24368         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24369
24370         maint: detect usage(1) and other suspicious exits
24371         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24372
24373 2009-10-29  Jim Meyering  <meyering@redhat.com>
24374
24375         timespec: long-to-int truncation could make timespec_cmp malfunction
24376         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24377         a multiple of 2^32 nanoseconds as no difference.
24378
24379 2009-10-28  Jim Meyering  <meyering@redhat.com>
24380
24381         fprintftime: wrap macro code argument in "do {...} while(0)"
24382         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24383         cpy macro must be a statement that can be followed by a semicolon.
24384         Now that the else clause contains a comment and is hence longer
24385         than one line, I require curly braces.  That in turn requires
24386         that we wrap this code block in the standard do...while(0).
24387
24388         fprintftime: remove stray semicolon from previous change
24389         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24390
24391         fprintftime: avoid a warning about ignored fwrite return value
24392         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24393         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24394         that is unsafe.
24395         * modules/fprintftime (Depends-on): Add ignore-value.
24396
24397         exclude: avoid an unwarranted warning
24398         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24399
24400 2009-10-27  Eric Blake  <ebb9@byu.net>
24401
24402         fseek: avoid compilation failure when fflush is replaced
24403         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24404         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24405         module is in use.
24406         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24407         module is not in use; since REPLACE_FSEEK worked otherwise.
24408         (GNULIB_FTELLO): Likewise for ftell.
24409         Reported by Ian Beckwith and others.
24410
24411 2009-10-27  Bruno Haible  <bruno@clisp.org>
24412
24413         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24414         Reported by Jim Meyering.
24415
24416 2009-10-27  Jim Meyering  <jim@meyering.net>
24417             Bruno Haible  <bruno@clisp.org>
24418
24419         Avoid warning despite dropping the return value of fwrite.
24420         * lib/unicodeio.c: Include ignore-value.h.
24421         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24422         * modules/unicodeio (Depends-on): Add ignore-value.
24423
24424 2009-10-26  Eric Blake  <ebb9@byu.net>
24425
24426         areadlinkat: fix fallback path
24427         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24428         pointer and zero.
24429
24430 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24431
24432         Use a better IO block size for modern systems
24433         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24434         * lib/md2.c: Likewise.
24435         * lib/md4.c: Likewise.
24436         * lib/md5.c: Likewise.
24437         * lib/sha1.c: Likewise.
24438         * lib/sha256.c: Likewise.
24439         * lib/sha512.c: Likewise.
24440
24441 2009-10-22  Eric Blake  <ebb9@byu.net>
24442
24443         tests: avoid several compiler warnings
24444         * tests/test-getcwd.c (main): Avoid buffer underflow.
24445         * tests/test-getdate.c (main): String literals are not safe with
24446         putenv, so use setenv.  Declare unused argument.
24447         * modules/getdate-tests (Depends-on): Add setenv.
24448         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24449         problems with string literals in char *.
24450         * tests/test-hash.c (main): Avoid shadowing declaration.
24451         (insert_new): Treat string literals as char const *.
24452         * tests/test-getopt.h (test_getopt): Likewise.
24453         (getopt_loop): Alter types to minimize casting elsewhere.
24454         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24455         (test_getopt_long_posix): Likewise.
24456         (do_getopt_long): Add wrapper to minimize casting.
24457         * tests/test-atexit.c (clear_temp_file): Use void.
24458         * tests/test-areadlink-with-size.c (main): Declare unused
24459         arguments.
24460         * tests/test-areadlink.c (main): Likewise.
24461         * tests/test-areadlinkat-with-size.c (main): Likewise.
24462         * tests/test-areadlinkat.c (main): Likewise.
24463         * tests/test-canonicalize-lgpl.c (main): Likewise.
24464         * tests/test-canonicalize.c (main): Likewise.
24465         * tests/test-dirent-safer.c (main): Likewise.
24466         * tests/test-dirname.c (main): Likewise.
24467         * tests/test-dup2.c (main): Likewise.
24468         * tests/test-fchdir.c (main): Likewise.
24469         * tests/test-fcntl-h.c (main): Likewise.
24470         * tests/test-fcntl-safer.c (main): Likewise.
24471         * tests/test-fdopendir.c (main): Likewise.
24472         * tests/test-fdutimensat.c (main): Likewise.
24473         * tests/test-fflush.c (main): Likewise.
24474         * tests/test-filenamecat.c (main): Likewise.
24475         * tests/test-filevercmp.c (main): Likewise.
24476         * tests/test-fopen-safer.c (main): Likewise.
24477         * tests/test-fopen.c (main): Likewise.
24478         * tests/test-fpending.c (main): Likewise.
24479         * tests/test-fpurge.c (main): Likewise.
24480         * tests/test-freading.c (main): Likewise.
24481         * tests/test-fstatat.c (main): Likewise.
24482         * tests/test-fsync.c (main): Likewise.
24483         * tests/test-futimens.c (main): Likewise.
24484         * tests/test-getndelim2.c (main): Likewise.
24485         * tests/test-gettimeofday.c (main): Likewise.
24486         * tests/test-getopt.c (main): Likewise.
24487         * tests/test-i-ring.c (main): Likewise.
24488         * tests/test-inttypes.c (main): Likewise.
24489         * tests/test-link.c (main): Likewise.
24490         * tests/test-lstat.c (main): Likewise.
24491         * tests/test-math.c (main): Likewise.
24492         * tests/test-md5.c (main): Likewise.
24493         * tests/test-memchr2.c (main): Likewise.
24494         * tests/test-memrchr.c (main): Likewise.
24495         * tests/test-mkdir.c (main): Likewise.
24496         * tests/test-mkdirat.c (main): Likewise.
24497         * tests/test-mkfifoat.c (main): Likewise.
24498         * tests/test-open.c (main): Likewise.
24499         * tests/test-openat-safer.c (main): Likewise.
24500         * tests/test-openat.c (main): Likewise.
24501         * tests/test-quotearg.c (main): Likewise.
24502         * tests/test-rawmemchr.c (main): Likewise.
24503         * tests/test-readlink.c (main): Likewise.
24504         * tests/test-remove.c (main): Likewise.
24505         * tests/test-rename.c (main): Likewise.
24506         * tests/test-renameat.c (main): Likewise.
24507         * tests/test-rmdir.c (main): Likewise.
24508         * tests/test-sha1.c (main): Likewise.
24509         * tests/test-signal.c (main): Likewise.
24510         * tests/test-sigaction.c (main): Likewise.
24511         * tests/test-stat.c (main): Likewise.
24512         * tests/test-stat-time.c (main): Likewise.
24513         * tests/test-stddef.c (main): Likewise.
24514         * tests/test-stdint.c (main): Likewise.
24515         * tests/test-stdio.c (main): Likewise.
24516         * tests/test-stdlib.c (main): Likewise.
24517         * tests/test-strchrnul.c (main): Likewise.
24518         * tests/test-strerror.c (main): Likewise.
24519         * tests/test-string.c (main): Likewise.
24520         * tests/test-strtod.c (main): Likewise.
24521         * tests/test-strverscmp.c (main): Likewise.
24522         * tests/test-symlink.c (main): Likewise.
24523         * tests/test-symlinkat.c (main): Likewise.
24524         * tests/test-sys_stat.c (main): Likewise.
24525         * tests/test-sys_time.c (main): Likewise.
24526         * tests/test-time.c (main): Likewise.
24527         * tests/test-unistd.c (main): Likewise.
24528         * tests/test-unlink.c (main): Likewise.
24529         * tests/test-unlinkat.c (main): Likewise.
24530         * tests/test-utimens.c (main): Likewise.
24531         * tests/test-utimensat.c (main): Likewise.
24532         * tests/test-version-etc.c (main): Likewise.
24533         * tests/test-wchar.c (main): Likewise.
24534         * tests/test-wctype.c (main): Likewise.
24535         * tests/test-xprintf-posix.c (main): Likewise.
24536         * tests/test-posixtm.c (main): Likewise.
24537         (STREQ): Delete unused macro.
24538         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24539         shadowed variables.
24540         * tests/test-memchr.c (main): Likewise.
24541
24542 2009-10-21  Eric Blake  <ebb9@byu.net>
24543
24544         areadlinkat: avoid failure on older glibc
24545         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24546         rather than mis-comparing 0 against FUNC_RESULT of char*.
24547
24548 2009-10-21  Bruno Haible  <bruno@clisp.org>
24549
24550         * modules/stpncpy (License): Relicense under LGPLv2+.
24551         Reported by David Lutterkort <lutter@redhat.com>.
24552
24553 2009-10-20  Eric Blake  <ebb9@byu.net>
24554
24555         utimensat: work around Solaris 9 bug
24556         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24557         has trailing slash bugs.
24558         * tests/test-lutimens.h (test_lutimens): Enhance test.
24559         * tests/test-utimens.h (test_utimens): Likewise.
24560         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24561         * doc/posix-functions/utimes.texi (utimes): Likewise.
24562         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24563         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24564         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24565         * doc/posix-functions/futimens.texi (futimens): Likewise.
24566
24567         fdutimensat: new module
24568         * modules/fdutimensat: New file.
24569         * lib/fdutimensat.c (fdutimensat): Likewise.
24570         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24571         * MODULES.html.sh (File system functions): Mention module.
24572         * modules/fdutimensat-tests: New test.
24573         * tests/test-fdutimensat.c: Likewise.
24574
24575         doc: regenerate INSTALL
24576         * doc/INSTALL: Reflect recent autoconf update.
24577         * doc/INSTALL.ISO: Likewise.
24578         * doc/INSTALL.UTF-8: Likewise.
24579
24580 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24581
24582         acl: warn if ACL support is not detected
24583         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24584
24585 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24586
24587         * lib/nproc.h: Add extern "C" block for C++.
24588
24589 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24590             Bruno Haible  <bruno@clisp.org>
24591
24592         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24593         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24594         * doc/posix-functions/isalpha.texi: Likewise.
24595         * doc/posix-functions/isblank.texi: Likewise.
24596         * doc/posix-functions/iscntrl.texi: Likewise.
24597         * doc/posix-functions/isdigit.texi: Likewise.
24598         * doc/posix-functions/isgraph.texi: Likewise.
24599         * doc/posix-functions/islower.texi: Likewise.
24600         * doc/posix-functions/isprint.texi: Likewise.
24601         * doc/posix-functions/ispunct.texi: Likewise.
24602         * doc/posix-functions/isspace.texi: Likewise.
24603         * doc/posix-functions/isupper.texi: Likewise.
24604         * doc/posix-functions/isxdigit.texi: Likewise.
24605
24606 2009-10-18  Bruno Haible  <bruno@clisp.org>
24607
24608         Tests for module 'isblank'.
24609         * modules/isblank-tests: New file.
24610         * tests/test-isblank.c: New file.
24611
24612         New module 'isblank'.
24613         * lib/isblank.c: New file.
24614         * m4/isblank.m4: New file.
24615         * modules/isblank: New file.
24616         * doc/posix-functions/isblank.texi: Mention the new module.
24617
24618 2009-10-18  Bruno Haible  <bruno@clisp.org>
24619
24620         New module 'ctype'.
24621         * lib/ctype.in.h: New file.
24622         * m4/ctype.m4: New file.
24623         * modules/ctype: New file.
24624         * doc/posix-headers/ctype.texi: Mention the new module.
24625
24626 2009-10-18  Jim Meyering  <meyering@redhat.com>
24627
24628         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24629         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24630         right after its initialization, rather than farther down.
24631         Keeping these in close proximity makes it easier to ensure
24632         that each such variable is initialized.  E.g.,
24633
24634             LIB_CLOCK_GETTIME=
24635             AC_SUBST([LIB_CLOCK_GETTIME])
24636
24637         This change also increments these serial numbers.
24638         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24639         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24641
24642 2009-10-18  Bruno Haible  <bruno@clisp.org>
24643
24644         Don't let environment variables perturb build.
24645         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24646         (gl_PREREQ_GETHRXTIME): ... not here.
24647
24648 2009-10-18  Bruno Haible  <bruno@clisp.org>
24649
24650         Avoid symlink attack in localcharset module.
24651         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24652         (O_NOFOLLOW): Define fallback.
24653         (get_charset_aliases): Don't open the file if it is a symbolic link.
24654         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24655         gl_FCNTL_H.
24656         (gl_FCNTL_H): Require it.
24657         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24658         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24659         Reported by Fergal Glynn <fglynn@veracode.com>.
24660
24661 2009-10-18  Bruno Haible  <bruno@clisp.org>
24662
24663         Implement nproc for mingw.
24664         * lib/nproc.c: Include <windows.h>
24665         (num_processors): On native Windows platforms, try GetSystemInfo.
24666
24667 2009-10-18  Bruno Haible  <bruno@clisp.org>
24668
24669         Implement nproc for IRIX.
24670         * lib/nproc.c: Include <sys/sysmp.h>.
24671         (num_processors): On IRIX systems, try sysmp.
24672         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24673
24674 2009-10-18  Bruno Haible  <bruno@clisp.org>
24675
24676         Implement nproc for HP-UX.
24677         * lib/nproc.c: Include <sys/pstat.h>
24678         (num_processors): On HP-UX systems, try pstat_getdynamic.
24679         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24680         pstat_getdynamic.
24681
24682 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24683             Bruno Haible  <bruno@clisp.org>
24684
24685         Implement nproc for NetBSD, OpenBSD.
24686         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24687         (ARRAY_SIZE): New macro.
24688         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24689         * m4/nproc.m4: New file.
24690         * modules/nproc (Files): Add m4/nproc.m4.
24691         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24692         (Makefile.am): Instead, augment lib_SOURCES.
24693
24694 2009-10-18  Bruno Haible  <bruno@clisp.org>
24695
24696         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24697         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24698         sys/param.h.
24699
24700 2009-10-16  Eric Blake  <ebb9@byu.net>
24701
24702         utimensat: new module
24703         * modules/utimensat: New file.
24704         * lib/utimensat.c (utimensat): Likewise.
24705         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24706         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24707         so we can work around Linux bugs.
24708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24709         * modules/sys_stat (Makefile.am): Substitute them.
24710         * lib/sys_stat.in.h (utimensat): Declare it.
24711         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24712         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24713         * modules/utimensat-tests: New test.
24714         * tests/test-utimensat.c: Likewise.
24715
24716         utimens: let lutimens work on non-symlinks
24717         * lib/utimens.c (lutimens): Fall back to utimens rather than
24718         failing with ENOSYS, when file is not a symlink.
24719         (utimens): Reduce redirection.
24720         * tests/test-lutimens.h (test_lutimens): Update test to cover
24721         non-symlinks.
24722         * tests/test-utimens.h (test_utimens): Update test to cover
24723         symlinks.
24724         * tests/test-utimens.c (main): Update caller.
24725
24726         utimens: cache whether utimensat syscall works
24727         * lib/utimens.c (utimensat_works_really): New cache variable.
24728         (fdutimens, lutimens): Use it to avoid failing syscall.
24729
24730         test-stat-time, test-utimens: improve portability
24731         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24732         ext4 on alpha, and for cygwin.
24733         * tests/test-utimens-common.h: New file.
24734         (nap): Factor delays into single function.
24735         * tests/test-lutimens.h (test_lutimens): Use new header.
24736         * tests/test-futimens.h (test_futimens): Likewise.
24737         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24738         timestamps to occur from same machine, as was done previously for
24739         test_utimens.
24740         * modules/utimens-tests (Files): Ship new file.
24741         * modules/futimens-tests (Files): Likewise.
24742         Reported in part by Jim Meyering.
24743
24744         sys_stat: sort replacement declarations
24745         * lib/sys_stat.in.h: Sort declarations.
24746         * lib/futimens.c (futimens): Fix typo.
24747
24748 2009-10-15  Jim Meyering  <meyering@redhat.com>
24749
24750         don't let environment settings perturb build
24751         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24752         could cause a configure-time and/or build-time malfunction.
24753         Typically, a configure-time function-in-library test is performed
24754         via code like this:
24755
24756           LIB_VAR=
24757           AC_SUBST([LIB_VAR])
24758           prefix_saved_LIBS=$LIBS
24759             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24760                        [test "$ac_cv_search_FUNC" = "none required" ||
24761                         LIB_VAR=$ac_cv_search_FUNC])
24762           LIBS=$prefix_saved_LIBS
24763
24764         However, in each of the files affected by this change, the LIB_VAR=
24765         initialization was omitted.  Thus, when set in the environment, its
24766         value would propagate into generated Makefiles when FUNC is not found
24767         in LIB_NAME.
24768         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24769         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24770         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24771
24772 2009-10-14  Eric Blake  <ebb9@byu.net>
24773
24774         fchdir: avoid infinite recursion in mingw
24775         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24776         recursing.
24777
24778         test-stat-time: port to mingw
24779         * tests/test-stat-time.c (force_unlink): Return a value.
24780         (test_ctime) [W32]: Fix compilation error.
24781         (nap): Don't call usleep with too large an argument.  Use
24782         force_unlink.
24783         * doc/pastposix-functions/usleep.texi (usleep): Document the
24784         portability issue.
24785
24786 2009-10-13  Jim Meyering  <meyering@redhat.com>
24787
24788         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24789         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24790         * modules/pipe-filter-ii: Likewise.
24791         * modules/sys_socket-tests: Likewise.
24792         * modules/tsearch-tests: Likewise.
24793         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24794         (check): Depend on it.
24795
24796 2009-10-12  Eric Blake  <ebb9@byu.net>
24797
24798         utimens-tests: port to NFS file systems
24799         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24800         comparisons to avoid spurious failures from timestamp drift
24801         between NFS machines.
24802
24803 2009-10-12  Eric Blake  <ebb9@byu.net>
24804
24805         stat-time-tests: minor cleanups
24806         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24807         * tests/test-stat-time.c (nap): Separate assignment from call.
24808         Suggested by Paolo Bonzini and Bruno Haible.
24809
24810         sys_stat: guarantee struct timespec
24811         * lib/sys_stat.in.h (includes): Always include <time.h>
24812         * modules/sys_stat (Depends-on): Add time.
24813         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24814         mode_t permission values.
24815         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24816         get at subsecond timestamps.
24817
24818 2009-10-10  Eric Blake  <ebb9@byu.net>
24819
24820         futimens: new module
24821         * modules/futimens: New file.
24822         * lib/futimens.c (futimens): Likewise.
24823         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24824         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24825         we can work around Linux bugs.
24826         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24827         * modules/sys_stat (Makefile.am): Substitute them.
24828         * lib/sys_stat.in.h (futimens): Declare it.
24829         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24830         * doc/posix-functions/futimens.texi (futimens): Likewise.
24831         * modules/futimens-tests: New test.
24832         * tests/test-futimens.c: Likewise.
24833
24834         utimens: introduce fdutimens
24835         * lib/utimens.h (fdutimens): New prototype.
24836         * lib/utimens.c (gl_futimens): Move guts...
24837         (fdutimens): ...to new interface.
24838         * tests/test-utimens.c (do_fdutimens): Use it.
24839
24840         utimens: add UTIME_NOW and UTIME_OMIT support
24841         * lib/utimens.c (validate_timespec, update_timespec): New helper
24842         functions.
24843         (gl_futimens, lutimens): Use them.
24844         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24845         stdbool, sys_stat.
24846         (Link): Mention resulting library dependency.
24847         * modules/utimecmp (Link): Likewise.
24848         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24849         (Makefile.am): Pick up library dependency.
24850         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24851         definition.
24852         * tests/test-sys_stat.c: Test the definitions.
24853         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24854         * NEWS: Document library dependency.
24855
24856         utimecmp: support symlink timestamps
24857         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24858         hashing when possible.  Use pathconf when available.
24859         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24860         * modules/utimecmp (Depends-on): Add lstat.
24861
24862         utimens: add lutimens interface
24863         * lib/utimens.c (lutimens): New function.
24864         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24865         * lib/utimens.h (lutimens): Declare new interface.
24866         * tests/test-utimens.c (main): Enhance test.
24867         * tests/test-lutimens.h (test_lutimens): New file.
24868         * modules/utimens-tests (Files): Distribute it.
24869         (Depends-on): Add symlink.
24870         (configure.ac): Check for usleep.
24871
24872         utimens: validate futimens usage
24873         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24874         fewer syscalls on failure later on.  Avoid compiler warning on
24875         mingw.
24876         * modules/utimens (Depends-on): Add dup2.
24877
24878         utimens: add test
24879         * modules/utimens-tests: New test.
24880         * tests/test-utimens.h: New file.
24881         * tests/test-futimens.h: Likewise.
24882         * tests/test-utimens.c: Likewise.
24883
24884         doc: mention timestamp portability issues
24885         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24886         instead.
24887         * doc/posix-functions/utime.texi (utime): Likewise.
24888         * doc/posix-functions/utimes.texi (utimes): Likewise.
24889         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24890         instead.
24891         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24892         module.
24893         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24894         Mention weakness with symlink timestamps.
24895         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24896         to utimensat/futimens instead.
24897         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24898
24899         test-dup2: enhance test
24900         * tests/test-dup2.c (main): Also check AT_FDCWD.
24901
24902         test-stat-time: avoid more spurious failures
24903         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24904         xfs; and avoid race if the two timestamps cross quantization edge.
24905
24906         relocatable: prefer 'file system' over 'filesystem'
24907         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24908         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24909         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24910         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24911         * lib/relocatable.c (compute_curr_prefix): Likewise.
24912
24913 2009-10-10  Jim Meyering  <meyering@redhat.com>
24914
24915         stat-time-tests: check for the usleep function
24916         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24917
24918 2009-10-10  Bruno Haible  <bruno@clisp.org>
24919
24920         * modules/xnanosleep: Put the Link section after the Include section.
24921
24922 2009-10-09  Eric Blake  <ebb9@byu.net>
24923
24924         dup2: work around FreeBSD 6.1 bug
24925         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24926         * doc/posix-functions/dup2.texi (dup2): Document it.
24927         Reported by Nelson H. F. Beebe and Jim Meyering.
24928
24929         test-stat-time: port to buggy NFS clients
24930         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24931         (test_ctime): Also skip test if mtime and ctime are skewed.
24932
24933         maint: prefer 'file system' over 'filesystem'
24934         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24935         * doc/posix-functions/lstat.texi (lstat): Likewise.
24936         * lib/file-has-acl.c (file_has_acl): Likewise.
24937         * lib/fwriteerror.c [TEST]: Likewise.
24938         * tests/test-areadlink.h (test_areadlink): Likewise.
24939         * tests/test-areadlinkat-with-size.c (main): Likewise.
24940         * tests/test-areadlinkat.c (main): Likewise.
24941         * tests/test-canonicalize-lgpl.c (main): Likewise.
24942         * tests/test-canonicalize.c (main): Likewise.
24943         * tests/test-fstatat.c (main): Likewise.
24944         * tests/test-linkat.c (main): Likewise.
24945         * tests/test-lstat.h (test_lstat_func): Likewise.
24946         * tests/test-mkdir.h (test_mkdir): Likewise.
24947         * tests/test-readlink.h (test_readlink): Likewise.
24948         * tests/test-remove.c (main): Likewise.
24949         * tests/test-rename.h (test_rename): Likewise.
24950         * tests/test-renameat.c (main): Likewise.
24951         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24952         * tests/test-symlink.h (test_symlink): Likewise.
24953         * tests/test-symlinkat.c (main): Likewise.
24954         * tests/test-unlink.h (test_unlink_func): Likewise.
24955         * tests/test-unlinkat.c (main): Likewise.
24956
24957         maint: make realtime library usage explicit
24958         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24959         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24960         * modules/settime (Link): Likewise.
24961         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24962
24963         test-stat-time: speed up execution
24964         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24965         warning on mingw.
24966         (nap): New helper function.
24967         (prepare_test): Use it to reduce sleep time.
24968         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24969         execution.
24970         * modules/stat-time-tests (configure.ac): Check for usleep.
24971
24972 2009-10-09  Jim Meyering  <meyering@redhat.com>
24973
24974         selinux-h: always use getfilecon wrappers
24975         * lib/getfilecon.c: New file.
24976         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24977         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24978         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24979         (fgetfilecon): Provide a stub.
24980         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24981         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24982         file unconditionally.
24983         When <selinux/selinux.h> is found, arrange to use wrappers.
24984         * modules/selinux-h (Files): Add getfilecon.c.
24985         (Makefile.am): Substitute include-next-related bits
24986         into the now-always-generated selinux/selinux.h file.
24987         * doc/glibc-functions/lgetfilecon.texi: New file.
24988         * doc/glibc-functions/fgetfilecon.texi: New file.
24989         * doc/glibc-functions/getfilecon.texi: New file.
24990         * doc/glibc-functions/getfilecon-desc.texi: New file.
24991         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24992         which to pull in the new files.
24993         * MODULES.html.sh (Misc): Add selinux-h.
24994
24995 2009-10-08  Jim Meyering  <meyering@redhat.com>
24996
24997         unistd: fix comment typo
24998         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24999
25000 2009-10-08  Eric Blake  <ebb9@byu.net>
25001
25002         areadlink: use SIZE_MAX consistently
25003         * modules/areadlink (Depends-on): Add stdint.
25004         * modules/areadlink-with-size (Depends-on): Likewise.
25005         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25006         gives NULL; drop sys/types, since unistd gives size_t; and add
25007         stdint for SIZE_MAX.
25008         (SIZE_MAX): Rely on headers.
25009         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25010         and add stdint.
25011         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25012         (SIZE_MAX): Likewise.
25013         (INITIAL_BUF_SIZE): Turn into enum.
25014         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25015
25016 2009-10-08  Jim Meyering  <meyering@redhat.com>
25017
25018         areadlinkat: avoid compilation failure
25019         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25020         Fix typo in comment.
25021
25022 2009-10-07  Eric Blake  <ebb9@byu.net>
25023
25024         areadlinkat-with-size: new module
25025         * modules/areadlinkat-with-size: New module.
25026         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25027         * lib/areadlink.h (areadlinkat): Declare it.
25028         * MODULES.html.sh (File system functions): Mention it.
25029         * modules/areadlinkat-with-size-tests: New test.
25030         * tests/test-areadlinkat-with-size.c: New file.
25031
25032         xreadlinkat: new module
25033         * modules/xreadlinkat: New module.
25034         * lib/xreadlinkat.c (xreadlinkat): New file.
25035         * lib/xreadlink.h (xreadlinkat): Declare it.
25036         * MODULES.html.sh (File system functions): Mention it.
25037
25038         areadlinkat: new module
25039         * lib/at-func.c (FUNC_FAIL): New define.
25040         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25041         * modules/areadlinkat: New module.
25042         * lib/linkat.c (areadlinkat): Move...
25043         * lib/areadlinkat.c (areadlinkat): ...to new file.
25044         * lib/areadlink.h (areadlinkat): Declare it.
25045         * modules/linkat (Depends-on): Add areadlinkat.
25046         * MODULES.html.sh (File system functions): Mention it.
25047         * modules/areadlinkat-tests: New test.
25048         * tests/test-areadlinkat.c: New file.
25049
25050         areadlink, areadlink-with-size: add tests
25051         * modules/areadlink-tests: New test.
25052         * modules/areadlink-with-size-tests: Likewise.
25053         * tests/test-areadlink.h: New file.
25054         * tests/test-areadlink.c: Likewise.
25055         * tests/test-areadlink-with-size.c: Likewise.
25056
25057         maint: minor cleanups
25058         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25059         _UNUSED_PARAMETER_ instead.
25060         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25061         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25062         * modules/linkat-tests (Files): Distribute test-link.h.
25063
25064         openat, utimens: whitespace cleanup
25065         * lib/openat.c: Prefer space throughout, rather than mix of 8
25066         spaces vs. tabs.
25067         * lib/at-func.c: Likewise.
25068         * lib/utimens.c: Likewise.
25069
25070         openat: avoid using wrong fd
25071         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25072         working directory chooses same fd.
25073         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25074
25075         mkdir, mkdirat: fix cygwin 1.5.x bug
25076         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25077         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25078         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25079         bug.
25080         (gl_PREREQ_MKDIR): Delete unused macro.
25081         * modules/mkdir (Files): Track file rename.
25082         (configure.ac): Update macro name.
25083         * modules/openat (Depends-on): Add mkdir.
25084         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25085
25086         mkdir, mkdirat: add tests
25087         * modules/mkdir-tests: New test.
25088         * tests/test-mkdir.h: New file.
25089         * tests/test-mkdir.c: Likewise.
25090         * tests/test-mkdirat.c: Likewise.
25091         * modules/openat-tests (Files): Add new files.
25092         (Makefile.am): Run new test.
25093
25094 2009-10-06  Eric Blake  <ebb9@byu.net>
25095
25096         doc: tweak *at function documentation
25097         * doc/posix-functions/faccessat.texi (faccessat): Mention
25098         known issue with replacement.
25099         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25100         * doc/posix-functions/linkat.texi (linkat): Likewise.
25101         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25102         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25103         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25104         * doc/posix-functions/renameat.texi (renameat): Likewise.
25105         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25106
25107         openat: fix GNU/Hurd bug in unlinkat
25108         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25109         broken.
25110         * doc/posix-functions/unlink.texi (unlink): Document this.
25111         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25112
25113         fdopendir: fix GNU/Hurd bug
25114         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25115         allowing non-directory fds.
25116         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25117         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25118         * modules/dirent (Makefile.am): Substitute it.
25119         * lib/dirent.in.h (fdopendir): Declare replacement.
25120         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25121         * tests/test-fdopendir.c (main): Test something other than
25122         /dev/null, since on Hurd that behaves like a directory.
25123
25124         test-symlink: port to GNU/Hurd
25125         * tests/test-symlink.h (test_symlink): Relax expected errno.
25126
25127         doc: tweak more cygwin information
25128         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25129         now compatible with glibc.
25130         * doc/posix-functions/getopt.texi (getopt): Likewise.
25131
25132         getopt-gnu: add another test
25133         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25134         guarantee behavior relied on by m4.
25135         * tests/test-getopt.c (main): Use it.
25136         * modules/getopt-posix-tests (Depends-on): Add setenv.
25137         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25138
25139         getopt: fix compilation on darwin
25140         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25141         include.
25142         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25143         Reported by Ludovic Courtès.
25144
25145 2009-10-06  Bruno Haible  <bruno@clisp.org>
25146
25147         * modules/size_max (Description): Discourage its use.
25148         Reported by Simon Josefsson.
25149
25150 2009-10-06  Jim Meyering  <meyering@redhat.com>
25151
25152         linkat: avoid compilation failure
25153         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25154
25155 2009-10-05  Eric Blake  <ebb9@byu.net>
25156
25157         linkat: support Linux 2.6.17
25158         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25159         linkat on Linux, but allow cache variable override.
25160         * lib/linkat.c (rpl_linkat): Define override.
25161         * modules/linkat (Depends-on): Add symlinkat.
25162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25163         * modules/unistd (Makefile.am): Substitute it.
25164         * lib/unistd.in.h (linkat): Declare replacement.
25165         Reported by Pádraig Brady.
25166
25167         quotearg: port test to systems with C.UTF-8 locale
25168         * tests/test-quotearg.c (struct result_strings): Add another
25169         member, differentiating between C.ASCII and C.UTF-8 handling.
25170         (compare_strings): Add parameter.
25171         (main): Adjust all callers.
25172
25173         getopt: avoid clash with FreeBSD _getopt_internal
25174         * lib/getopt.in.h (_getopt_internal): Override the name.
25175         * lib/getopt_int.h (includes): Pick up any overrides.
25176         Reported by Reuben Thomas.
25177
25178         hash: allow C89 compilation
25179         * lib/hash.c (check_tuning): Move declaration before statement.
25180         Reported by Reuben Thomas.
25181
25182 2009-10-05  Karl Berry  <karl@gnu.org>
25183
25184         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25185
25186 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25187             Bruno Haible  <bruno@clisp.org>
25188
25189         * lib/uname.c (uname): Use a table-driven algorithm to compute
25190         Windows NT versions.
25191
25192 2009-10-04  Bruno Haible  <bruno@clisp.org>
25193
25194         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25195         program_invocation_short_name.
25196         * modules/progname (configure.ac): Test for presence of
25197         program_invocation_short_name.
25198         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25199
25200 2009-10-04  Bruno Haible  <bruno@clisp.org>
25201
25202         * lib/progname.c (set_program_name): Fix comment.
25203         Reported by Jim Meyering.
25204
25205 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25206             Bruno Haible  <bruno@clisp.org>
25207
25208         * lib/uname.c: Include <string.h>.
25209         (uname): Do only one call to GetVersionEx in the common case.
25210
25211 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25212             Bruno Haible  <bruno@clisp.org>
25213
25214         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25215         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25216         (uname): Add support for Windows CE and various non-x86 CPU types.
25217
25218 2009-10-03  Bruno Haible  <bruno@clisp.org>
25219
25220         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25221         invocation to tests/configure.ac.
25222         Reported by Ian Beckwith <ianb@erislabs.net>.
25223
25224 2009-10-02  Eric Blake  <ebb9@byu.net>
25225
25226         fchdir: avoid compiler warning
25227         * lib/fchdir.c (canonicalize_file_name)
25228         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25229
25230         test-open: support mingw errno values
25231         * tests/test-open.h (test_open): Relax test.
25232         * tests/test-fopen.h (test_fopen): Likewise.
25233         * tests/test-openat-safer.c (main): Likewise.
25234
25235         open: fix opening directory on mingw
25236         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25237
25238         test-open: on GNU/Hurd, /dev/null is a directory
25239         * tests/test-fopen.h (main): Rename...
25240         (test_fopen): ...to this.  Use a guaranteed non-directory when
25241         confirming open behavior on trailing slash.
25242         * tests/test-openat-safer.c (main): Likewise.
25243         * tests/test-open.h (main): Likewise....
25244         (test_open): ...to this.
25245         * tests/test-fopen.c (main): Adjust caller.
25246         * tests/test-fopen-safer.c (main): Likewise.
25247         * tests/test-open.c (main): Likewise.
25248         * tests/test-fcntl-safer.c (main): Likewise.
25249         Reported by Samuel Thibault.
25250
25251         rename, fchdir: don't ignore chdir failure
25252         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25253         * lib/rename.c (rpl_rename) [W32]: Likewise.
25254         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25255         an empty destination directory if source cannot be renamed,
25256         although there is still possibility for failure.
25257         * doc/posix-functions/rename.texi (rename): Document the race.
25258         Reported by Jim Meyering.
25259
25260         maint: cleanup whitespace in recent commits
25261         * lib/rename.c (rpl_rename): Remove tabs.
25262         * tests/test-link.h (test_link): Likewise.
25263         * lib/fchdir.c (get_name): Likewise.
25264         Reported by Jim Meyering.
25265
25266 2009-10-02  Ben Pfaff  <blp@gnu.org>
25267
25268         relocatable-prog-wrapper: Add missing dependency on
25269         double-slash-root.
25270         * modules/relocatable-prog-wrapper: Add dependency.
25271         Reported by Ian Beckwith <ianb@erislabs.net>.
25272
25273 2009-10-02  Eric Blake  <ebb9@byu.net>
25274
25275         renameat: fix Solaris bugs
25276         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25277         needed fixing.
25278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25279         * modules/stdio (Makefile.am): Substitute it.
25280         * lib/stdio.in.h (renameat): Declare replacement.
25281         * lib/renameat.c (rpl_renameat): Implement fix.
25282
25283         renameat: new module
25284         * modules/renameat: New file.
25285         * lib/renameat.c (renameat): Likewise.
25286         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25288         * modules/stdio (Makefile.am): Substitute them.
25289         * lib/stdio.in.h (renameat): Declare it.
25290         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25291         * doc/posix-functions/renameat.texi (renameat): Likewise.
25292         * modules/renameat-tests: New test.
25293         * tests/test-renameat.c: Likewise.
25294
25295         rename: fix mingw bugs
25296         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25297         directory overwrite bugs.
25298
25299         rename: fix another cygwin 1.5 bug
25300         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25301         checks.
25302         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25303         unnecessary cygwin workarounds.  Also work around bug with moving
25304         full directory onto an empty one.
25305         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25306
25307         rename-dest-slash: merge into rename module
25308         * modules/rename-dest-slash (Status): Mark obsolete.
25309         (Depends-on): Add rename.
25310         (Files): Let rename do it all.
25311         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25312         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25313         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25314         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25315         * lib/rename.c (rpl_rename): Update comments.
25316
25317         rename: fix cygwin 1.5.x bugs
25318         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25319         * lib/rename.c (rpl_rename): Work around them.
25320         * modules/rename (Depends-on): Add same-inode.
25321
25322         rename: fix Solaris 10 bug
25323         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25324         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25325         was the only bug.
25326
25327         rename: fix Solaris 9 bug
25328         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25329         on non-directory.  Avoid calling exit.
25330         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25331         strdup.
25332         * modules/rename-tests (Depends-on): Drop lstat.
25333         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25334         (gl_PREREQ_RENAME): Delete unused macro.
25335
25336         rename-dest-slash: fix NetBSD bug
25337         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25338         links.
25339         * modules/rename-dest-slash (Depends-on): Add same-inode.
25340
25341         rename-tests: new test, exposes several platform bugs
25342         * modules/rename-tests: New file.
25343         * tests/test-rename.h: Likewise.
25344         * tests/test-rename.c: Likewise.
25345         * doc/posix-functions/rename.texi (rename): Improve documentation,
25346         including bugs that will eventually be fixed in gnulib.
25347
25348 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25349
25350         * lib/uname.c: Include <stdlib.h>
25351         (uname): Assume version info is available.
25352
25353 2009-10-02  Jim Meyering  <meyering@redhat.com>
25354
25355         gnu-web-doc-update: correct --help output
25356         * build-aux/gnu-web-doc-update: Make --help output relevant.
25357
25358         gnu-web-doc-update: add standard options
25359         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25360
25361         gnu-web-doc-update: New module.
25362         Use this script to automatically update the on-line web documentation
25363         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25364         * modules/gnu-web-doc-update: New file, from coreutils.
25365         * build-aux/gnu-web-doc-update: New script.
25366
25367 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25368
25369         link: LoadLibrary is not needed.
25370         * lib/link.c: Use GetModuleHandle.
25371
25372 2009-10-01  Eric Blake  <ebb9@byu.net>
25373
25374         getopt: bump serial number
25375         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25376         change.
25377
25378         tests: tighten link, rmdir, and remove tests
25379         * tests/test-link.h (includes): No need to use <config.h> here.
25380         Clean up if directory hard link was created, otherwise test for
25381         trailing '.'.
25382         * tests/test-linkat.c (main): Simplify.
25383         * tests/test-remove.c (main): Enhance test for trailing '.'.
25384         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25385
25386 2009-10-01  Jim Meyering  <meyering@redhat.com>
25387
25388         maint.mk: requiring "make major" was annoying, for a "minor" release.
25389         What is intended is "stable", to contrast with alpha and beta,
25390         so require "make stable", not "make major".
25391         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25392         (get_tool_versions): Likewise.
25393         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25394
25395 2009-09-30  Ben Pfaff  <blp@gnu.org>
25396
25397         Fix broken build of replacement for Windows tmpfile().
25398         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25399         flags argument added along with the 'mkostemp' module.
25400
25401 2009-09-28  Bruno Haible  <bruno@clisp.org>
25402
25403         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25404         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25405         to 'remove_elt'.
25406         (gl_list_remove): Update.
25407         * lib/gl_list.c (gl_list_remove): Update.
25408         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25409         to 'remove_elt'.
25410         (gl_oset_remove): Update.
25411         * lib/gl_list.c (gl_oset_remove): Update.
25412         Reported by Eric Blake.
25413
25414 2009-09-28  Eric Blake  <ebb9@byu.net>
25415
25416         doc: mention yet more cygwin 1.7 status
25417         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25418         cygwin.
25419         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25420         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25421
25422         argp: fix test failure
25423         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25424         that are not upper-case.  Pass correct range to tolower.
25425
25426 2009-09-27  Jim Meyering  <meyering@redhat.com>
25427
25428         test-yesno: work around sparc-dash here-document infelicity
25429         Without this change, the literal \177 byte in a here document
25430         would make dash 0.5.5.1-3 access uninitialized memory.
25431         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25432         Instead, use a marker, "@", and filter through tr to create the desired
25433         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25434
25435 2009-09-27  Bruno Haible  <bruno@clisp.org>
25436
25437         Disable untested support for new flavours of ACLs on AIX.
25438         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25439         progress.
25440         * lib/set-mode-acl.c (qset_acl): Likewise.
25441
25442 2008-12-07  Bruno Haible  <bruno@clisp.org>
25443
25444         Add support for new flavours of ACLs on AIX. (Untested.)
25445         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25446         (file_has_acl): Add support for newer AIX.
25447         * lib/set-mode-acl.c (qset_acl): Likewise.
25448         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25449         Rainer Tammer <tammer@tammer.net>.
25450
25451 2009-09-26  Eric Blake  <ebb9@byu.net>
25452
25453         argp: fix compilation of getopt
25454         * lib/getopt.in.h (includes): Use different guard than glibc.
25455         Reported by Sergey Poznyakoff.
25456
25457         doc: mention more cygwin 1.7 status
25458         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25459         bug.
25460         * doc/posix-functions/execl.texi (execl): Likewise.
25461         * doc/posix-functions/execle.texi (execle): Likewise.
25462         * doc/posix-functions/execlp.texi (execlp): Likewise.
25463         * doc/posix-functions/execv.texi (execv): Likewise.
25464         * doc/posix-functions/execve.texi (execve): Likewise.
25465         * doc/posix-functions/execvp.texi (execvp): Likewise.
25466         * doc/glibc-functions/canonicalize_file_name.texi
25467         (canonicalize_file_name): Cygwin 1.7 now provides this.
25468         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25469         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25470         on AT_SYMLINK_NOFOLLOW.
25471
25472 2009-09-24  Eric Blake  <ebb9@byu.net>
25473
25474         test-linkat: make test more robust
25475         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25476
25477         getopt: fix inclusion guards for cygwin
25478         * modules/getopt-posix (Depends-on): Add include-next.
25479         (Makefile.am): Substitute more items in replacement header.
25480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25481         <getopt.h>.
25482         * lib/getopt.in.h (includes): Use split inclusion guard, and
25483         prefer <getopt.h> over include <unistd.h> when one is present.
25484         (option): Also override name of 'struct option'.
25485
25486         same-inode: revert prior change; it is not yet ready
25487         * NEWS: Undo mention of this change.
25488         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25489         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25490         * lib/cycle-check.c (cycle_check): Likewise.
25491         * lib/same.c (same_name): Likewise.
25492         * lib/at-func2.c (at_func2): Likewise.
25493
25494 2009-09-23  Eric Blake  <ebb9@byu.net>
25495
25496         linkat: new module
25497         * modules/linkat: New file.
25498         * lib/at-func2.c (at_func2): Likewise.
25499         * lib/linkat.c (linkat): Likewise.
25500         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25501         * lib/openat-priv.h (at_func2): Add declaration.
25502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25503         * modules/unistd (Makefile.am): Substitute them.
25504         * lib/unistd.in.h (linkat): Declare it.
25505         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25506         * doc/posix-functions/linkat.texi (linkat): Likewise.
25507         * doc/posix-functions/link.texi (link): Tweak wording.
25508         * tests/test-link.c (main): Move guts...
25509         * tests/test-link.h (test_link): ...into new file.
25510         * modules/linkat-tests: New test.
25511         * tests/test-linkat.c: Likewise.
25512         * modules/link-tests (Files): Ship new file.
25513         (Depends-on): Add stdbool.
25514
25515         dirname: add library-safe mdir_name
25516         * lib/dirname.h (mdir_name): New prototype.
25517         * lib/dirname.c (dir_name): Move guts...
25518         (mdir_name): ...to new function that avoids xalloc_die.
25519
25520         fchdir: another mingw fix
25521         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25522         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25523         on mingw (where it has not yet been ported), and make it optional
25524         elsewhere.
25525         (_gl_register_fd): Use it.
25526
25527         same-inode: make SAME_INODE tri-state, to port to mingw
25528         * NEWS: Mention this change.
25529         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25530         st_ino always being 0.
25531         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25532         * lib/cycle-check.c (cycle_check): Likewise.
25533         * lib/same.c (same_name): Likewise.
25534
25535         lstat: avoid mingw compilation error
25536         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25537         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25538         lstat ourselves.
25539         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25540         was adequate.
25541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25542         the checks for lstat.
25543         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25544
25545         link: fix test failure on Solaris 9
25546         * lib/link.c (rpl_link): Don't assume link will catch bogus
25547         trailing slash on source.
25548
25549         test-symlinkat: enhance test
25550         * tests/test-readlink.c (main): Move guts...
25551         * tests/test-readlink.h (test_readlink): ...into new file.
25552         * tests/test-symlink.c (main): Move guts...
25553         * tests/test-symlink.h (test_symlink): ...into new file.
25554         * tests/test-symlinkat.c (main): Use new files for further
25555         coverage.
25556         (do_symlink, do_readlink): New helper functions.
25557         * modules/symlink-tests (Files): Ship new file.
25558         (Depends-on): Add stdbool.
25559         * modules/readlink-tests (Files): Ship new file.
25560         (Depends-on): Add stdbool.
25561         * modules/symlinkat-tests (Files): Use new files.
25562
25563 2009-09-23  Eric Blake  <ebb9@byu.net>
25564
25565         readlink: document portability issue with symlink length
25566         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25567         systems have bogus st_size on symlinks, and mention the
25568         areadlink-with-size module.
25569         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25570         * doc/posix-functions/readlink.texi (readlink): Mention the
25571         areadlink module, and ERANGE failure.
25572         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25573         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25574
25575         readlink: fix Solaris 9 bug with trailing slash
25576         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25577         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25578         * doc/posix-functions/readlink.texi (readlink): Document this.
25579         * modules/readlink-tests: New test.
25580         * tests/test-readlink.c: Likewise.
25581
25582         readlink: fix cygwin 1.5.x bug with return type
25583         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25584         * lib/unistd.in.h (readlink): Use ssize_t.
25585         * lib/readlink.c (readlink): Likewise.
25586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25587         * modules/unistd (Makefile.am): Substitute it.
25588         * lib/unistd.in.h (readlink): Declare replacement.
25589         * doc/posix-functions/readlink.texi (readlink): Document this.
25590
25591         symlink: use throughout gnulib
25592         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25593         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25594         symlink is not used.
25595         * modules/symlinkat (Depends-on): Add symlink.
25596         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25597         * modules/canonicalize-tests (Depends-on): Likewise.
25598         * modules/lstat-tests (Depends-on): Likewise.
25599         * modules/openat-tests (Depends-on): Likewise.
25600         * modules/remove-tests (Depends-on): Likewise.
25601         * modules/rmdir-tests (Depends-on): Likewise.
25602         * modules/unlink-tests (Depends-on): Likewise.
25603         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25604         * tests/test-canonicalize.c (symlink): Likewise.
25605         * tests/test-fstatat.c (symlink): Likewise.
25606         * tests/test-lstat.c (symlink): Likewise.
25607         * tests/test-remove.c (symlink): Likewise.
25608         * tests/test-rmdir.c (symlink): Likewise.
25609         * tests/test-unlink.c (symlink): Likewise.
25610         * tests/test-unlinkat.c (symlink): Likewise.
25611
25612         symlink: new module, for Solaris 9 bug
25613         * modules/symlink: New file.
25614         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25615         * lib/symlink.c: Likewise.
25616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25617         * modules/unistd (Makefile.am): Substitute them.
25618         * lib/unistd.in.h (symlink): Declare replacement.
25619         * MODULES.html.sh (File system functions): Mention it.
25620         * doc/posix-functions/symlink.texi (symlink): Likewise.
25621         * modules/symlink-tests: New test.
25622         * tests/test-symlink.c: Likewise.
25623
25624 2009-09-23  Bruno Haible  <bruno@clisp.org>
25625
25626         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25627         when needed.
25628         Test case: gnulib-tool --import --with-tests atexit inttypes.
25629         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25630
25631 2009-09-23  Bruno Haible  <bruno@clisp.org>
25632
25633         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25634         subcommand, not in a subshell.
25635
25636 2009-09-22  Eric Blake  <ebb9@byu.net>
25637
25638         unistd: sort replacement declarations
25639         * lib/unistd.in.h: Sort declarations.
25640
25641         open, openat: minor optimization
25642         * lib/open.c (open): If open succeeded, len is non-zero.
25643         * lib/openat.c (rpl_openat): Likewise.
25644
25645         link-follow: ensure correct result
25646         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25647         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25648         distinguish between possible failures.
25649
25650 2009-09-21  Eric Blake  <ebb9@byu.net>
25651
25652         fts: avoid compiler warning
25653         * lib/fts.c (dirent_inode_sort_may_be_useful)
25654         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25655
25656 2009-09-19  Bruno Haible  <bruno@clisp.org>
25657
25658         * lib/progreloc.c (canonicalize_file_name): New declaration.
25659
25660 2009-09-19  Eric Blake  <ebb9@byu.net>
25661
25662         link: fix quoting
25663         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25664
25665         openat: fix openat bugs on Solaris 9
25666         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25667         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25668         * modules/openat (Depends-on): Add open.
25669         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25670         * modules/fcntl-h (Makefile.am): Substitute it.
25671         * lib/fcntl.in.h (openat): Declare replacement.
25672         * doc/posix-functions/openat.texi (openat): Document this.
25673
25674         openat: move fstatat and unlinkat into correct files
25675         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25676         compiled.
25677         * lib/openat.c (fstatat, unlinkat): Move...
25678         * lib/fstatat.c (fstatat): ...into correct files.
25679         * lib/unlinkat.c (unlinkat): Likewise.
25680
25681         openat: fix unlinkat bugs on Solaris 9
25682         * lib/unlinkat.c (unlinkat): New file.
25683         * modules/openat (Depends-on): Add unlink.
25684         (Files): Distribute it.
25685         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25686         trailing slash behavior is broken.
25687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25688         * modules/unistd (Makefile.am): Substitute it.
25689         * lib/unistd.in.h (unlinkat): Declare replacement.
25690         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25691
25692         openat: fix fstatat bugs on Solaris 9
25693         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25694         stat.
25695         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25696
25697         test-unlinkat: enhance test, to expose Solaris 9 bug
25698         * tests/test-unlink.c (main): Factor guts...
25699         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25700         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25701         * tests/test-rmdir.c (main): Adjust caller.
25702         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25703         (unlinker): New helper function.
25704         (rmdirat): Enhance check.
25705         * modules/rmdir-tests (Depends-on): Add stdbool.
25706         * modules/unlink-tests (Depends-on): Likewise.
25707         (Files): Add test-unlink.h.
25708         * modules/openat-tests (Files): Likewise.
25709         (Depends-on): Add unlinkdir.
25710
25711         test-fstatat: new test, to expose Solaris 9 bugs
25712         * tests/test-stat.c (main): Factor guts...
25713         * tests/test-stat.h (test_stat_func): ...into new file.
25714         * tests/test-lstat.c (main): Factor guts...
25715         * tests/test-lstat.h (test_lstat_func): ...into new file.
25716         * tests/test-fstatat.c: New file.
25717         * modules/stat-tests (Files): Add test-stat.h.
25718         * modules/lstat-tests (Files): Add test-lstat.h.
25719         (Depends-on): Add stdbool.
25720         * modules/openat-tests (Depends-on): Add pathmax.
25721         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25722         (Makefile.am): Run new test.
25723
25724         remove: new module, for mingw and Solaris 9 bugs
25725         * modules/remove: New file.
25726         * lib/remove.c: Likewise.
25727         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25729         * modules/stdio (Makefile.am): Use them.
25730         * lib/stdio.in.h (remove): Declare replacement.
25731         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25732         * doc/posix-functions/remove.texi (remove): Likewise.
25733         * modules/remove-tests: New test.
25734         * tests/test-remove.c: Likewise.
25735
25736         unlink: new module, for Solaris 9 bug
25737         * modules/unlink: New file.
25738         * lib/unlink.c: Likewise.
25739         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25741         * modules/unistd (Makefile.am): Use them.
25742         * lib/unistd.in.h (stat): Declare replacement.
25743         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25744         * doc/posix-functions/unlink.texi (unlink): Likewise.
25745         * modules/unlink-tests: New test.
25746         * tests/test-unlink.c: Likewise.
25747
25748         lstat: fix Solaris 9 bug
25749         * lib/lstat.c (lstat): Also check for trailing slash on
25750         non-symlink, non-directories.  Use stat module to simplify logic.
25751         * doc/posix-functions/lstat.texi (lstat): Document it.
25752         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25753         (configure.ac): Check for symlink.
25754         * tests/test-lstat.c (main): Add more tests.
25755
25756         stat: add as dependency to other modules
25757         * modules/chown (Depends-on): Add stat.
25758         * modules/euidaccess (Depends-on): Likewise.
25759         * modules/fchdir (Depends-on): Likewise.
25760         * modules/isdir (Depends-on): Likewise.
25761         * modules/link (Depends-on): Likewise.
25762         * modules/lstat (Depends-on): Likewise.
25763         * modules/mkdir-p (Depends-on): Likewise.
25764         * modules/modechange (Depends-on): Likewise.
25765         * modules/open (Depends-on): Likewise.
25766         * modules/readlink (Depends-on): Likewise.
25767         * modules/same (Depends-on): Likewise.
25768
25769         stat: fix Solaris 9 bug
25770         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25771         slash.
25772         * lib/stat.c (rpl_stat): Work around it.
25773         * doc/posix-functions/stat.texi (stat): Update documentation.
25774
25775         stat: new module, for mingw bug
25776         * modules/stat: New file.
25777         * lib/stat.c: Likewise.
25778         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25780         * modules/sys_stat (Makefile.am): Use them.
25781         * lib/sys_stat.in.h (stat): Declare replacement.
25782         * lib/openat.c (fstatat): Deal with lstat and stat being function
25783         macros.
25784         * modules/openat (Depends-on): Add inline.
25785         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25786         * doc/posix-functions/stat.texi (stat): Likewise.
25787         * modules/stat-tests: New test.
25788         * tests/test-stat.c: Likewise.
25789
25790 2009-09-19  Jim Meyering  <meyering@redhat.com>
25791
25792         syntax-check: detect unnecessary inclusion of canonicalize.h
25793         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25794
25795 2009-09-19  Eric Blake  <ebb9@byu.net>
25796
25797         canonicalize-lgpl: adjust clients to use correct header
25798         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25799         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25800         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25801         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25802         * lib/progreloc.c (includes): Likewise.
25803
25804 2009-09-19  Jim Meyering  <meyering@redhat.com>
25805
25806         test-posixtm.c: correct a comment
25807         * tests/test-posixtm.c: Correct first-line comment.
25808         Spotted by Eric Blake.
25809
25810 2009-09-16  Jim Meyering  <meyering@redhat.com>
25811
25812         posixtm-tests: make T const-correct; add a test case
25813         * tests/test-posixtm.c (T): Declare const.
25814         Add a test for -(2^31+1).
25815         Remove useless can-succeed-only-in-2002 test.
25816
25817         posixtm-tests: adjust the sole failing test
25818         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25819         expected output matches what mktime now produces.  Cross-checked via
25820         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25821
25822         posixtm: move #ifdef'd tests into a new module
25823         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25824         * tests/test-posixtm.c: ... this new file.
25825         * modules/posixtm-tests: New module.
25826
25827 2009-09-19  Eric Blake  <ebb9@byu.net>
25828
25829         openat: simplify use of at-func.c
25830         * lib/at-func.c (includes): Include prerequisites here, to
25831         simplify requirements on client files.
25832         * lib/openat-priv.h: Add double-inclusion guard.
25833         * lib/faccessat.c (includes): Simplify.
25834         * lib/fchmodat.c (includes): Likewise.
25835         * lib/fchownat.c (includes): Likewise.
25836         * lib/mkdirat.c (includes): Likewise.
25837         * lib/mkfifoat.c (includes): Likewise.
25838         * lib/symlinkat.c (includes): Likewise.
25839
25840         openat: allow return of fd 0
25841         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25842         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25843         unistd-safer.
25844         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25845         <fcntl.h>; this module does not leak fds.
25846         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25847         must be allowed to return 0, leaving openat_safer to add the
25848         safety.
25849         (openat_permissive): Avoid writing to just-opened fd 2 if
25850         restoring the current directory fails.
25851         * lib/openat-die.c (openat_restore_fail): Add comment.
25852         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25853         (save_cwd): Guarantee safe fd, but without use of open_safer.
25854         * tests/test-openat.c: New test.
25855         * modules/openat-tests (Files, Makefile.am): Distribute and build
25856         new file.
25857
25858         relocatable-prog-wrapper: fix build
25859         * modules/relocatable-prog-wrapper (Files): Update name of
25860         canonicalize m4 file, broken on 2009-09-17.
25861         Reported by emad hajjar <aleppos@hotmail.com>.
25862
25863 2009-09-19  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25866         * lib/safe-alloc.c: Likewise.
25867         Reported by Ian Beckwith <ianb@erislabs.net>.
25868
25869 2009-09-18  Bruno Haible  <bruno@clisp.org>
25870
25871         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25872         Reported by <erobles@sensacd.com.mx>.
25873
25874 2009-09-17  Eric Blake  <ebb9@byu.net>
25875
25876         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25877         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25878         slashes when checking if last component is missing.
25879         * tests/test-canonicalize.c (main): Test this.
25880
25881         canonicalize, canonicalize-lgpl: honor // if distinct from /
25882         * modules/canonicalize (Files): Add double-slash-root.m4.
25883         * modules/canonicalize-lgpl (Files): Likewise.
25884         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25885         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25886         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25887         fallback definition.
25888         (canonicalize_filename_mode): Use it to protect //.
25889         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25890         (__realpath): Likewise.
25891         * tests/test-canonicalize.c (main): Test this.
25892         * tests/test-canonicalize-lgpl.c (main): Likewise.
25893         * modules/canonicalize-tests (Depends-on): Add same-inode.
25894         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25895
25896         canonicalize-lgpl: fix glibc bug with trailing slash
25897         * m4/canonicalize-lgpl.m4: Move contents...
25898         * m4/canonicalize.m4: ...here.
25899         (gl_CANONICALIZE_LGPL): Factor realpath check...
25900         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25901         glibc 2.3.5 bug, fixed 2005-04-27.
25902         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25903         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25904         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25905         * modules/canonicalize-lgpl (Files): Manage file rename.
25906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25907         * modules/stdlib (Makefile.am): Substitute witness.
25908         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25909         is needed.
25910         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25911         replacement is required.
25912         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25913         * doc/glibc-functions/canonicalize_file_name.texi
25914         (canonicalize_file_name): Document this.
25915         * doc/posix-functions/realpath.texi (realpath): Likewise.
25916
25917         canonicalize-lgpl: reject non-directory with trailing slash
25918         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25919         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25920         catches failures in glibc 2.3.5.
25921         * tests/test-canonicalize.c (main): Likewise.
25922
25923         canonicalize-lgpl: use native realpath if it works
25924         * lib/canonicalize-lgpl.c (realpath): Guard with
25925         FUNC_REALPATH_WORKS.
25926         * lib/stdlib.in.h (realpath): Make declaration optional based on
25927         HAVE_REALPATH.
25928         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25929         native realpath works.
25930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25931         * modules/stdlib (Makefile.am): Substitute witness.
25932
25933         canonicalize, canonicalize-lgpl: use <stdlib.h>
25934         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25935         (Include): Mention <stdlib.h>.
25936         (configure.ac): Mention functions we provide.
25937         * modules/canonicalize (configure.ac): Likewise.
25938         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25939         realpath if canonicalize_file_name is missing.
25940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25941         * modules/stdlib (Makefile.am): Substitute witnesses.
25942         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25943         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25944         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25945         * NEWS: Document this.
25946         * doc/glibc-functions/canonicalize_file_name.texi
25947         (canonicalize_file_name): Likewise.
25948         * doc/posix-functions/realpath.texi (realpath): Likewise.
25949         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25950
25951         test-canonicalize: consolidate into single C program
25952         * tests/test-canonicalize.sh: Delete; move setup into...
25953         * tests/test-canonicalize.c (main): ...the program, making it
25954         easier to run in debugger.  Add some tests.
25955         * modules/canonicalize-tests (Files): Remove unused file.
25956         (Depends-on): Add progname.
25957         (configure.ac, Makefile.am): Simplify.
25958
25959         test-canonicalize-lgpl: consolidate into single C program
25960         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25961         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25962         easier to run in debugger.  Add some tests.
25963         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25964         (configure.ac, Makefile.am): Simplify.
25965
25966         canonicalize: avoid resolvepath
25967         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25968         unnecessary checks.
25969         * lib/canonicalize.c (includes): Simplify.
25970         (canonicalize_file_name): Drop resolvepath implementation.
25971         * modules/canonicalize (Depends-on): Drop filenamecat.
25972
25973         canonicalize: don't lose errno
25974         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25975         over calls to free.
25976
25977         canonicalize: simplify errno handling
25978         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25979         assignment.
25980
25981         canonicalize, canonicalize-lgpl: update module dependencies
25982         * modules/canonicalize (Depends-on): Add extensions, lstat,
25983         pathmax, stdlib.
25984         (Files): Drop pathmax.h.
25985         (configure.ac): Adjust macro name.
25986         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25987         lstat, stdlib, sys_stat.
25988         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25989         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25990         extensions.
25991         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25992         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25993         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25994         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25995         declaration, if available.
25996         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25997         we can rely on the readlink module.
25998         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25999         (includes): Use <unistd.h> unconditionally.
26000
26001 2009-09-17  Eric Blake  <ebb9@byu.net>
26002
26003         maint: make Include sections of modules consistent
26004         * modules/alloca: Use only header name; no need to list #include.
26005         * modules/alloca-opt: Likewise.
26006         * modules/arpa_inet: Likewise.
26007         * modules/canon-host: Likewise.
26008         * modules/configmake: Likewise.
26009         * modules/dirent: Likewise.
26010         * modules/eealloc: Likewise.
26011         * modules/environ: Likewise.
26012         * modules/fchdir: Likewise.
26013         * modules/fcntl: Likewise.
26014         * modules/fcntl-h: Likewise.
26015         * modules/gethrxtime: Likewise.
26016         * modules/gettime: Likewise.
26017         * modules/ignore-value: Likewise.
26018         * modules/inet_ntop: Likewise.
26019         * modules/inet_pton: Likewise.
26020         * modules/inttypes: Likewise.
26021         * modules/isnand-nolibm: Likewise.
26022         * modules/isnanf-nolibm: Likewise.
26023         * modules/mbchar: Likewise.
26024         * modules/mbfile: Likewise.
26025         * modules/mbiter: Likewise.
26026         * modules/mbuiter: Likewise.
26027         * modules/netdb: Likewise.
26028         * modules/netinet_in: Likewise.
26029         * modules/nproc: Likewise.
26030         * modules/pagealign_alloc: Likewise.
26031         * modules/poll: Likewise.
26032         * modules/printf-frexp: Likewise.
26033         * modules/pthread: Likewise.
26034         * modules/putenv: Likewise.
26035         * modules/random_r: Likewise.
26036         * modules/relocatable-prog: Likewise.
26037         * modules/search: Likewise.
26038         * modules/select: Likewise.
26039         * modules/selinux-h: Likewise.
26040         * modules/settime: Likewise.
26041         * modules/signal: Likewise.
26042         * modules/size_max: Likewise.
26043         * modules/socklen: Likewise.
26044         * modules/ssize_t: Likewise.
26045         * modules/stdarg: Likewise.
26046         * modules/stdbool: Likewise.
26047         * modules/stddef: Likewise.
26048         * modules/stdint: Likewise.
26049         * modules/stdio: Likewise.
26050         * modules/stdlib: Likewise.
26051         * modules/string: Likewise.
26052         * modules/strings: Likewise.
26053         * modules/sys_file: Likewise.
26054         * modules/sys_ioctl: Likewise.
26055         * modules/sys_select: Likewise.
26056         * modules/sys_socket: Likewise.
26057         * modules/sys_stat: Likewise.
26058         * modules/sys_time: Likewise.
26059         * modules/sys_times: Likewise.
26060         * modules/sys_utsname: Likewise.
26061         * modules/sys_wait: Likewise.
26062         * modules/sysexits: Likewise.
26063         * modules/time: Likewise.
26064         * modules/times: Likewise.
26065         * modules/tmpfile: Likewise.
26066         * modules/trim: Likewise.
26067         * modules/unistd: Likewise.
26068         * modules/wchar: Likewise.
26069         * modules/wctype: Likewise.
26070
26071 2009-09-17  Bruno Haible  <bruno@clisp.org>
26072
26073         Make getdate.y compile on QNX and NetBSD 5 / i386.
26074         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26075         TIME_T_FITS_IN_LONG_INT.
26076         * lib/getdate.y (long_time_t): New type.
26077         (relative_time): Change type of 'seconds' field to long_time_t.
26078         (get_date): Update types of local variables. Check against overflow
26079         during conversion from long_time_t to time_t.
26080         Reported by Matt Kraai <kraai@ftbfs.org>
26081         and Hasso Tepper <hasso@netbsd.org>.
26082
26083 2009-09-17  Bruno Haible  <bruno@clisp.org>
26084
26085         * modules/COPYING: Update copyright years.
26086         * modules/README: Likeiwse.
26087         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26088         Reported by Ian Beckwith <ianb@erislabs.net>.
26089
26090 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26091
26092         * users.txt: Update references for gnuit package.
26093
26094 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26095
26096         * m4/getdelim.m4: Fix typo in copyright line.
26097
26098 2009-09-17  Bruno Haible  <bruno@clisp.org>
26099
26100         * lib/atoll.c: Use the standard header with GPL copyright.
26101         * lib/argz.in.h: Likewise.
26102         * lib/glob.c: Likewise.
26103         * lib/glob-libc.h: Likewise.
26104         * lib/random_r.c: Likewise.
26105         * lib/siglist.h: Likewise.
26106         * lib/strsignal.c: Likewise.
26107         Reported by Ian Beckwith <ianb@erislabs.net>.
26108
26109 2009-09-17  Eric Blake  <ebb9@byu.net>
26110
26111         rmdir: ensure correct dependency order
26112         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26113
26114 2009-09-17  Bruno Haible  <bruno@clisp.org>
26115
26116         Disable assertion that fails on NetBSD 5 / i386.
26117         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26118         Reported by Sam Steingold <sds@gnu.org>
26119         and Hasso Tepper <hasso@netbsd.org>.
26120
26121 2009-09-16  Eric Blake  <ebb9@byu.net>
26122
26123         unlinkdir: port to mingw
26124         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26125         on which no one can unlink a directory.
26126
26127         stdlib: sort witness names
26128         * modules/stdlib (Makefile.am): Sort replacements.
26129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26130         * lib/stdlib.in.h: Likewise.
26131
26132         parse-duration-tests: avoid link failure
26133         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26134         LIBINTL.
26135         Reported by Tom G. Christensen.
26136
26137         openat-tests: ensure unlinkat behaves like rmdir
26138         * tests/test-rmdir.c (main): Factor guts...
26139         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26140         * modules/rmdir-tests (Files): Ship new file.
26141         * modules/openat-tests: New test.
26142         * tests/test-unlinkat.c: Likewise.
26143
26144         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26145         * modules/rmdir-errno (Status, Notice): Now obsolete.
26146
26147         rmdir: work around cygwin 1.5.x and mingw bugs
26148         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26149         * lib/rmdir.c (rmdir): Work around it.
26150         * modules/rmdir (Status, Notice): No longer obsolete.
26151         (Files): Add dos.m4.
26152         (Depends-on): Add unistd.
26153         (configure.ac): Set witnesses.
26154         (License): Relax to LGPLv2+.
26155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26156         * modules/unistd (Makefile.am): Substitute witnesses.
26157         * lib/unistd.in.h (rmdir): Declare replacement.
26158         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26159         * modules/rmdir-tests: New tests.
26160         * tests/test-rmdir.c: Likewise.
26161
26162 2009-09-15  Eric Blake  <ebb9@byu.net>
26163
26164         fchdir: improve use of replacement functions
26165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26166         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26167         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26168         REPLACE_CLOSEDIR.
26169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26170         * modules/sys_stat (Makefile.am): Substitute correct witness.
26171         * modules/dirent (Makefile.am): Likewise.
26172         * modules/unistd (Makefile.am): Likewise.
26173         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26174         * lib/unistd.in.h (dup): Likewise.
26175         * lib/sys_stat.in.h (fstat): Likewise.
26176
26177         maint: ignore gnulib-tool temp files
26178         * .gitignore: Ignore files created during gnulib-tool --test.
26179
26180 2009-09-13  Jim Meyering  <meyering@redhat.com>
26181
26182         posixtm: don't reject a time that specify "60" as the number of seconds
26183         * lib/posixtm.c (posixtime): The code to reject invalid dates
26184         would also reject a time specified with the .60 suffix.
26185         But POSIX allows that, in order to accommodate leap seconds.
26186         So don't reject it.
26187         (main): Adjust tests accordingly.
26188         * modules/posixtm (Depends-on): Add stpcpy.
26189
26190 2009-09-11  Jim Meyering  <meyering@redhat.com>
26191
26192         announce-gen: include [$release_type] in emitted Subject:
26193         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26194         e.g., [stable] in the emitted Subject: line.
26195
26196 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26197
26198         Remove obsolete macros from several modules.
26199         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26200         obsolete Autoconf macros with their modern counterparts.
26201         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26202         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26204         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26205         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26206         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26208         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26209         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26210         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26211         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26213         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26214         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26215         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26216         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26217         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26218         * m4/time_r.m4 (gl_TIME_R): Likewise.
26219         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26220         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26221         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26222
26223         Fix copyright header in build-aux scripts.
26224         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26225         recommendation.
26226         * build-aux/ncftpput-ftp: Likewise.
26227         * build-aux/update-copyright: Likewise.
26228
26229 2009-09-09  Eric Blake  <ebb9@byu.net>
26230
26231         test-link: allow Linux choice of errno
26232         * tests/test-link.c (main): Relax test for alternate error.
26233
26234         strndup: fix improper m4 caching
26235         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26236         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26237         (gl_PREREQ_STRNDUP): Delete.
26238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26239         * modules/string (Makefile.am): Substitute it.
26240         * lib/string.in.h (strndup): Modernize prototype.
26241
26242         getcwd: port to mingw
26243         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26244         different from the POSIX assumptions made throughout the getcwd
26245         module; fortunately, the mingw getcwd does not need replacement.
26246         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26247         * modules/getcwd-tests: New test.
26248         * tests/test-getcwd.c: Likewise.
26249
26250         link: fix platform bugs
26251         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26252         * lib/link.c (link): Work around them.  Fix related mingw bug.
26253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26254         * modules/unistd (Makefile.am): Substitute it.
26255         * lib/unistd.in.h (link): Declare replacement.
26256         * doc/posix-functions/link.texi (link): Document this.
26257         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26258
26259         test-link: consolidate into single C program, test more cases
26260         * tests/test-link.sh: Delete.
26261         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26262         at least Cygwin and Solaris.
26263         * modules/link-tests (Files): Remove unused file.
26264         (Depends-on): Add errno, sys_stat.
26265         (Makefile.am): Simplify.
26266
26267 2009-09-08  Bruno Haible  <bruno@clisp.org>
26268
26269         Work around towlower, towupper bug on mingw.
26270         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26271         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26272         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26273         * doc/posix-functions/towupper.texi: Likewise.
26274         Reported by Eric Blake.
26275
26276 2009-09-08  Jim Meyering  <meyering@redhat.com>
26277
26278         build: don't try to run autoheader if we don't use it
26279         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26280         is not used in configure.ac.
26281
26282 2009-09-08  Eric Blake  <ebb9@byu.net>
26283
26284         euidaccess: fix compilation error
26285         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26286
26287         rawmemchr: relax license
26288         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26289         okay.
26290         Reported by Jim Meyering.
26291
26292         mkfifoat: new module
26293         * modules/mkfifoat: New file.
26294         * lib/mkfifoat.c: Likewise.
26295         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26297         * modules/sys_stat (Makefile.am): Use them.
26298         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26299         * MODULES.html.sh (File system functions): Mention module.
26300         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26301         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26302         * modules/mkfifoat-tests: New test.
26303         * tests/test-mkfifoat.c: Likewise.
26304
26305         strchrnul: relax license
26306         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26307         okay.
26308         Reported by Jim Meyering.
26309
26310 2009-09-08  Eric Blake  <ebb9@byu.net>
26311
26312         fstatat: fix compilation on Solaris
26313         * lib/fstatat.c (includes): Add fcntl.h.
26314         Reported by Pádraig Brady.
26315
26316 2009-09-07  Eric Blake  <ebb9@byu.net>
26317
26318         rename: modernize replacement
26319         * modules/rename (Depends-on): Add stdio.
26320         (configure.ac): Declare witness.
26321         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26322         stdio take care of replacement.
26323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26324         * modules/stdio (Makefile.am): Substitute them.
26325         * lib/stdio.in.h (rename): Declare replacement.
26326         * lib/rename.c (includes): Allow cross-compilation to non-windows
26327         machines.
26328         * doc/posix-functions/rename.texi (rename): Improve
26329         documentation.
26330
26331         stdio: sort witness names
26332         * modules/stdio (Makefile.am): Sort replacements.
26333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26334         * lib/stdio.in.h: Likewise.
26335
26336         getcwd: minor cleanups
26337         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26338         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26339
26340         openat: provide more convenience names
26341         * modules/faccessat (configure.ac): Add C witness.
26342         * lib/unistd.in.h (readlinkat): Fix typo.
26343         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26344         convenience wrappers.
26345         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26346         wrappers in syntax checks.
26347
26348 2009-09-06  Eric Blake  <ebb9@byu.net>
26349
26350         doc: fix comments in recent patches
26351         * lib/faccessat.c: Mention correct function.
26352         * lib/fchmodat.c: Likewise.
26353         * lib/fchownat.c: Likewise.
26354         * lib/symlinkat.c: Likewise.
26355         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26356         constants.
26357
26358         faccessat, symlinkat: continue cleanup of previous patch
26359         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26360         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26361         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26363         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26364         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26365         set.
26366
26367 2009-09-06  Bruno Haible  <bruno@clisp.org>
26368
26369         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26370         (fstatat): Declare if GNULIB_FSTATAT is set.
26371         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26372         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26373         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26374         * modules/fcntl-h (Files): Remove m4/openat.m4.
26375         * modules/sys_stat (Files): Remove m4/openat.m4.
26376         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26377         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26378         * modules/unistd (Files): Remove m4/openat.m4.
26379         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26380         GNULIB_OPENAT.
26381         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26382         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26384         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26385         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26386         gl_OPENAT_DEFAULTS.
26387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26388         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26389         Don't require gl_OPENAT_DEFAULTS.
26390         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26391         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26392         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26393         (gl_OPENAT_DEFAULTS): Remove macro.
26394
26395 2009-09-06  Bruno Haible  <bruno@clisp.org>
26396
26397         * modules/openat (configure.ac): Remove unneeded witness.
26398
26399 2009-09-06  Bruno Haible  <bruno@clisp.org>
26400
26401         Set errno to ENOSYS when a function is entirely unsupported.
26402         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26403         EOPNOTSUPP.
26404         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26405         * modules/chown (Depends-on): Remove errno.
26406
26407 2009-09-06  Bruno Haible  <bruno@clisp.org>
26408
26409         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26410
26411 2009-09-06  Bruno Haible  <bruno@clisp.org>
26412
26413         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26414
26415 2009-09-06  Ben Pfaff  <blp@gnu.org>
26416             Bruno Haible  <bruno@clisp.org>
26417
26418         Work around a glibc bug in strtok_r.
26419         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26420         Undefine if UNDEFINE_STRTOK_R is set.
26421         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26423         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26424         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26425         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26426         UNDEFINE_STRTOK_R.
26427         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26428
26429 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26430
26431         exclude: minor fix
26432         * lib/exclude.c: Include wctype.h
26433
26434 2009-09-06  Akim Demaille  <demaille@gostai.com>
26435
26436         bootstrap: improve error message
26437         * build-aux/bootstrap (find_tool): Upon failure, report the list
26438         of candidates.
26439         Honor the initial value of the envvar.
26440
26441 2009-09-05  Eric Blake  <ebb9@byu.net>
26442
26443         symlinkat: new module
26444         * modules/symlinkat: New file.
26445         * lib/symlinkat.c: Likewise.
26446         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26448         * modules/unistd (Makefile.am): Use them.
26449         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26450         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26451         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26452         * MODULES.html.sh (File system functions): Mention module.
26453         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26454         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26455         * modules/symlinkat-tests: New test.
26456         * tests/test-symlinkat.c: Likewise.
26457
26458         test-openat-safer: add more checks
26459         * tests/test-openat-safer.c (main): Check more code paths.
26460
26461 2009-09-05  Jim Meyering  <meyering@redhat.com>
26462
26463         syntax-check: detect unnecessary inclusion of openat.h
26464         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26465
26466 2009-09-05  Bruno Haible  <bruno@clisp.org>
26467
26468         Support towlower, towupper.
26469         * doc/posix-functions/towlower.texi: Mention module wctype.
26470         * doc/posix-functions/towupper.texi: Likewise.
26471         * lib/wctype.in.h (towlower, towupper): New functions.
26472         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26473         (ASSERT): New macro.
26474         (e): New variable.
26475         (main): Test also towlower, towupper. Test WEOF argument.
26476         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26477
26478 2009-09-05  Bruno Haible  <bruno@clisp.org>
26479
26480         Fix conversion behaviour when the input is invalid.
26481         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26482         mark occurring in first pass of indirect conversion.
26483         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26484         input.
26485         Found by clang's static analyzer.
26486
26487 2009-09-05  Bruno Haible  <bruno@clisp.org>
26488
26489         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26490         where direct conversion is possible.
26491
26492 2009-09-04  Eric Blake  <ebb9@byu.net>
26493
26494         openat: fail with ENOENT on empty name
26495         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26496         buffer.
26497
26498         link-follow: fix logic bug in prior patch
26499         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26500         reversed sense of yes and no in prior patch.  Avoid confusing
26501         compilation failure with desired semantics.
26502
26503         link-follow: accomodate mingw and cross-compilation
26504         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26505         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26506         cross-compilation results to -1, to make linkat easier to
26507         implement when cross-compiling.  Trivially support mingw.
26508         * modules/link-follow (configure.ac): Call new name.
26509         * NEWS: Mention this.
26510
26511 2009-09-03  Eric Blake  <ebb9@byu.net>
26512
26513         faccessat: compile replacement
26514         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26515         needed.
26516
26517         fts: fix compilation error
26518         * lib/fts.c (includes): Re-add "openat.h", for
26519         openat_needs_fchdir.
26520
26521         faccessat: new module
26522         * modules/faccessat: New file.
26523         * lib/faccessat.c: Likewise.
26524         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26526         * modules/unistd (Makefile.am): Use it.
26527         * lib/unistd.in.h (faccessat): Declare it.
26528         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26529         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26530         * MODULES.html.sh (File system functions): Mention it.
26531         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26532         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26533
26534         euidaccess: prefer POSIX over non-standard implementation
26535         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26536         * lib/euidaccess.c (euidaccess): Use it if available.
26537
26538         openat: make template easier to use
26539         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26540         AT_FUNC_F2 to be undefined.
26541         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26542         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26543         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26544         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26545         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26546         Likewise.
26547         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26548         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26549         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26550         Likewise.
26551
26552         openat: declare in POSIX headers
26553         * NEWS: Mention this.
26554         * modules/openat (configure.ac): Declare witnesses.
26555         (Depends-on): Add fcntl-h, sys_stat, unistd.
26556         (Include): Mention correct headers.
26557         * modules/fcntl-h (Depends-on): Add link-warning.
26558         (Files): Add openat.m4.
26559         (Makefile.am): Substitute witnesses.
26560         * modules/sys_stat (Files, Makefile.am): Likewise.
26561         * modules/unistd (Files, Makefile.am): Likewise.
26562         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26563         (gl_OPENAT_DEFAULTS): New macro.
26564         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26566         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26567         (SYS_STAT_H): Remove unused variable.
26568         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26569         * lib/fcntl--.h (includes): Remove unneeded header.
26570         * lib/openat-safer.c (includes): Likewise.
26571         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26572         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26573         appropriate headers.
26574         (__OPENAT_PREFIX): Delete.
26575         * lib/fcntl.in.h (openat): Provide declaration.
26576         (AT_FDCWD): Fix Solaris bug.
26577         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26578         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26579         * lib/fchmodat.c (includes):  Adjust to find declaration.
26580         * lib/fchownat.c (includes): Likewise.
26581         * lib/mkdirat.c (includes): Likewise.
26582         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26583         still visible.
26584
26585 2009-09-02  Eric Blake  <ebb9@byu.net>
26586
26587         errno: use consistently
26588         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26589         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26590         * lib/canonicalize.c (ELOOP): Likewise.
26591         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26592         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26593         * lib/lchown.c (EOPNOTSUPP): Likewise.
26594         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26595         * lib/savewd.c (ESTALE): Likewise.
26596         * lib/settime.c (ENOSYS): Likewise.
26597         * lib/utimens.c (ENOSYS): Likewise.
26598         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26599         * lib/chdir-safer.c (ELOOP): Likewise.
26600         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26601         * modules/c-stack (Depends-on): Add errno.
26602         * modules/canonicalize (Depends-on): Likewise.
26603         * modules/chdir-safer (Depends-on): Likewise.
26604         * modules/fdopendir (Depends-on): Likewise.
26605         * modules/inet_ntop (Depends-on): Likewise.
26606         * modules/inet_pton (Depends-on): Likewise.
26607         * modules/lchown (Depends-on): Likewise.
26608         * modules/openat (Depends-on): Likewise.
26609         * modules/savewd (Depends-on): Likewise.
26610         * modules/settime (Depends-on): Likewise.
26611         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26612
26613         fts: avoid leaking fds
26614         * modules/fts (Depends-on): Add cloexec.
26615         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26616         flag.
26617
26618         fts: make directory fds more robust
26619         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26620         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26621
26622         backupfile, chdir-long, fts, savedir: make safer
26623         * lib/backupfile.c (includes): Use "dirent--.h", since
26624         numbered_backup can write to stderr during readdir.
26625         * lib/savedir.c (includes): Likewise.
26626         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26627         emulation can write to stderr on failure.
26628         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26629         * lib/getcwd.c: Document why opendir_safer is unused.
26630         * lib/glob.c: Likewise.
26631         * lib/scandir.c: Likewise.
26632         * lib/openat-proc.c: Likewise, for open_safer.
26633         * modules/backupfile (Depends-on): Add dirent-safer.
26634         * modules/savedir (Depends-on): Likewise.
26635         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26636         * modules/chdir-long (Depends-on): Add openat-safer.
26637
26638         openat-safer: new module
26639         * modules/openat-safer: New file.
26640         * lib/openat-safer.c: Likewise.
26641         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26642         * lib/fcntl-safer.h (openat_safer): Declare.
26643         * lib/fcntl--.h (openat): Override.
26644         * MODULES.html.sh (File descriptor based I/O): Mention it.
26645         * lib/openat.h: Add double-inclusion guards.
26646         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26647         "fcntl--.h", so we can implement openat.
26648         * modules/openat-safer-tests: New test.
26649         * tests/test-openat-safer.c: New file.
26650
26651         dirent-safer: new module
26652         * modules/dirent-safer: New file.
26653         * lib/dirent--.h: Likewise.
26654         * lib/dirent-safer.h: Likewise.
26655         * lib/opendir-safer.c: Likewise.
26656         * m4/dirent-safer.m4: Likewise.
26657         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26658         * modules/dirent-safer-tests: New test.
26659         * tests/test-dirent-safer.c: New file.
26660         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26661
26662         fdopendir: optimize on mingw
26663         * lib/unistd.in.h (_gl_directory_name): New prototype.
26664         * lib/fchdir.c (_gl_directory_name): Implement it.
26665         (fchdir): Use it to simplify implementation.
26666         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26667         fchdir, when available, to avoid calling [f]chdir().
26668
26669         fdopendir: split into its own module
26670         * lib/openat.c (fdopendir): Move...
26671         * lib/fdopendir.c: ...into new file.
26672         * modules/fdopendir: New module.
26673         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26674         * modules/openat (Depends-on): Add fdopendir.
26675         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26676         fdopendir here.
26677         * modules/savedir (Depends-on): Only need fdopendir, not full
26678         openat.
26679         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26680         * lib/openat.h (fdopendir): Drop prototype.
26681         * lib/dirent.in.h (fdopendir): Provide prototype.
26682         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26683         * modules/dirent (Makefile.am): Substitute them.
26684         * MODULES.html.sh (File system functions): Mention it.
26685         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26686         * modules/fdopendir-tests: New file.
26687         * tests/test-fdopendir.c: Likewise.
26688
26689         fchdir: use more consistent macro convention
26690         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26691         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26692         REPLACE_FCHDIR, rather than relying on config.h macros.
26693         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26694         inside a single make-time REPLACE_FCHDIR block, rather than using
26695         the config.h FCHDIR_REPLACEMENT.
26696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26697         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26698         Manage fstat replacement.
26699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26700         REPLACE_FCHDIR.
26701         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26702         (Makefile.am): Substitute REPLACE_FCHDIR.
26703         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26704         FCHDIR_REPLACEMENT.
26705         * lib/dup-safer.c (dup_safer): Likewise.
26706         * lib/dup2.c (rpl_dup2): Likewise.
26707         * lib/dup3.c (rpl_dup3): Likewise.
26708         * lib/open.c (rpl_open): Likewise.
26709
26710         fchdir: simplify error handling, and support dup3
26711         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26712         stdbool, malloc-posix, realloc-posix.
26713         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26714         (ensure_dirs_slot): Return false on allocation failure.
26715         (rpl_dup2): Delete.
26716         (_gl_register_dup): New function.
26717         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26718         (_gl_register_fd): Close fd on allocation failure.
26719         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26720         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26721         prototype.
26722         (rpl_dup2_fchdir): Delete prototype.
26723         * lib/open.c (open): Update caller.
26724         * lib/dup2.c (dup2): Track fchdir metadata.
26725         * lib/dup3.c (dup3): Likewise.
26726         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26728
26729 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26730
26731         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26732         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26733         don't pass arguments to AC_OUTPUT.
26734
26735 2009-09-02  Bruno Haible  <bruno@clisp.org>
26736
26737         * modules/mkdtemp (License): Relicense under LGPLv2+.
26738         Reported by Paolo Bonzini.
26739
26740 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26741
26742         Replace uses of obsolete autoconf macros in Jim's modules.
26743         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26744         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26745         can evoke a warning from autoconf when run with -Wobsolete
26746         enabled.  They were declared obsolete for good reasons (see
26747         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26748         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26749         should not continue using the deprecated macros.
26750         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26751         obsolete Autoconf macros with modern counterparts.
26752         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26753         * m4/dos.m4 (gl_AC_DOS): Likewise.
26754         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26755         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26756         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26757         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26758         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26759         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26760         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26761         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26762         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26763         Likewise.
26764         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26765         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26766         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26767         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26768         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26769         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26770
26771 2009-09-01  Eric Blake  <ebb9@byu.net>
26772
26773         fchdir: fix off-by-one bug in previous patch
26774         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26775         (_gl_unregister_fd): Delete useless if.
26776
26777 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26778
26779         maint.mk: sort the list of syntax-check rules
26780         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26781         easier to get a sense of progress when the rules are run sequentially
26782         and take a long time.
26783
26784 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26785
26786         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26787         * modules/netinet_in: Likewise.
26788         * modules/sys_file: Likewise.
26789         * modules/sys_ioctl: Likewise.
26790         * modules/sys_select: Likewise.
26791         * modules/sys_socket: Likewise.
26792         * modules/sys_stat: Likewise.
26793         * modules/sys_time: Likewise.
26794         * modules/sys_times: Likewise.
26795         * modules/sys_utsname: Likewise.
26796         * modules/sys_wait: Likewise.
26797
26798 2009-09-01  Jim Meyering  <meyering@redhat.com>
26799
26800         fts: help ensure that return values are not ignored
26801         * lib/fts_.h (__GNUC_PREREQ): Define.
26802         (__attribute_warn_unused_result__): Define.
26803         (fts_children, fts_close, fts_open, fts_read): Declare with
26804         __attribute_warn_unused_result__.
26805
26806         fts: fts_close now fails also when closing a dir file descriptor fails
26807         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26808         and propagate to caller, along with errno.
26809
26810         announce-gen: correct formatting in --help output
26811         * build-aux/announce-gen (usage): Move the one-line description in
26812         --help output "up", to where it belongs, just after Usage:.
26813
26814 2009-08-31  Eric Blake  <ebb9@byu.net>
26815
26816         fchdir: port to mingw
26817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26818         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26819         opened, then use a substitute.
26820         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26821         replacement.
26822         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26823         (_gl_register_fd): No need to check stat if open already filters
26824         all directories.
26825         (fchdir): Fix error condition to match POSIX.
26826         * modules/fchdir (Depends-on): Add sys_stat.
26827         * doc/posix-functions/open.texi (open): Document the limitation.
26828         * modules/fchdir-tests: New file.
26829         * tests/test-fchdir.c: Likewise.
26830
26831         canonicalize: allow cross-testing from cygwin to mingw
26832         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26833         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26834         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26835         Likewise.
26836         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26837         target does not support symlinks.
26838         * tests/test-canonicalize-lgpl.sh: Likewise.
26839
26840         chown: avoid compilation warning on mingw
26841         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26842         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26843         mingw.
26844         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26845         * modules/chown (Depends-on): Add errno.
26846
26847 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26848
26849         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26850         command.
26851
26852 2009-08-31  Jim Meyering  <meyering@redhat.com>
26853
26854         canonicalize: remove useless initialization
26855         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26856         initialization of local, "end".
26857
26858 2009-08-30  Bruno Haible  <bruno@clisp.org>
26859
26860         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26861         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26862         ENOSYS.
26863
26864 2009-08-30  Bruno Haible  <bruno@clisp.org>
26865
26866         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26867         /usr/xpg4/bin/tr when it exists.
26868         * tests/test-pipe-filter-gi1.sh: Likewise.
26869
26870 2009-08-30  Bruno Haible  <bruno@clisp.org>
26871
26872         Work around deficient /usr/bin/id program on Solaris.
26873         * tests/test-file-has-acl.sh (ID): New variable.
26874         * tests/test-set-mode-acl.sh (ID): Likewise.
26875         * tests/test-copy-acl.sh (ID): Likewise.
26876         * tests/test-copy-file.sh (ID): Likewise.
26877
26878 2009-08-30  Bruno Haible  <bruno@clisp.org>
26879
26880         New module 'xstriconveh'.
26881         * lib/xstriconveh.h: New file.
26882         * lib/xstriconveh.c: New file.
26883         * modules/xstriconveh: New file.
26884
26885 2009-08-30  Bruno Haible  <bruno@clisp.org>
26886
26887         Make it easier to use mem_cd_iconveh.
26888         * lib/striconveh.h (iconveh_t): New type.
26889         (iconveh_open, iconveh_close): New declarations.
26890         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26891         with a single 'const iconveh_t *' argument.
26892         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26893         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26894         with a single 'const iconveh_t *' argument.
26895         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26896         * tests/test-striconveh.c (main): Update.
26897         * NEWS: Mention the change.
26898
26899 2009-08-30  Bruno Haible  <bruno@clisp.org>
26900
26901         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26902         problem.
26903
26904 2009-08-30  Bruno Haible  <bruno@clisp.org>
26905
26906         Work around iconv_open problem on Solaris.
26907         * lib/iconv_open-solaris.gperf: New file.
26908         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26910         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26911         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26912         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26913         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26914
26915 2009-08-29  Jim Meyering  <meyering@redhat.com>
26916
26917         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26918         * top/maint.mk (cvs-check): Remove target; it was just an alias
26919         to the better-named vc-diff-check.
26920         (maintainer-distcheck): Remove rule.  It was used only from
26921         the (alpha/beta/major) target, and all of its commands but one
26922         were coreutils-specific.
26923         (vc-dist): Remove rule.
26924         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26925         Run vc-diff-check, not vc-dist.
26926         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26927
26928 2009-08-27  Bruno Haible  <bruno@clisp.org>
26929
26930         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26931         of 0.
26932
26933 2009-08-27  Bruno Haible  <bruno@clisp.org>
26934
26935         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26936         compilers.
26937         * doc/func.texi: Document the SunPRO C bug.
26938
26939 2009-08-27  Bruno Haible  <bruno@clisp.org>
26940
26941         Fix link error on Solaris.
26942         * tests/test-parse-duration.c (xstrdup): Remove function.
26943
26944 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26945
26946         ignore-value: handle pointer types, too
26947         * lib/ignore-value.h (__attribute__): Remove definition.
26948         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26949         of a more concise and more-often effective "(void) i" statement.
26950         (ignore_ptr): New function to suppress warnings from functions that
26951         return pointers, and to make it explicit that one function doesn't
26952         handle all cases.
26953
26954 2009-08-25  Bruno Haible  <bruno@clisp.org>
26955
26956         dup2: work around a Linux bug.
26957         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26958         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26959         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26960         Reported by Simon Josefsson.
26961
26962 2009-08-25  Jim Meyering  <meyering@redhat.com>
26963
26964         libguestfs uses gnulib
26965         * users.txt: Add libguestfs.
26966
26967 2009-08-24  Eric Blake  <ebb9@byu.net>
26968
26969         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26970         * lib/pipe2.c (includes): Add binary-io.h.
26971         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26972
26973 2009-08-24  Bruno Haible  <bruno@clisp.org>
26974
26975         Tolerate declared but missing accept4 syscall.
26976         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26977         available.
26978         * lib/sys_socket.in.h (accept4): If the function is already present,
26979         override it.
26980         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26981         * modules/accept4 (Makefile.am): Compile accept4.c always.
26982         Reported by Paolo Bonzini and Eric Blake.
26983
26984 2009-08-23  Bruno Haible  <bruno@clisp.org>
26985
26986         New module 'accept4'.
26987         * lib/sys_socket.in.h (accept4): New declaration.
26988         * lib/accept4.c: New file.
26989         * m4/accept4.m4: New file.
26990         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26991         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26992         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26993         HAVE_ACCEPT4.
26994         * modules/accept4: New file.
26995         * doc/glibc-functions/accept4.texi: Mention the new module.
26996
26997 2009-08-24  Jim Meyering  <meyering@redhat.com>
26998
26999         progname: also set global program_invocation_name, when possible
27000         Before this change, a libtool-enabled program that calls glibc's
27001         error function would report the program name as
27002         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27003         * modules/progname (configure.ac): Check for a declaration of
27004         program_invocation_name.
27005         * lib/progname.c:  Include <errno.h>.
27006         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27007         Set program_invocation_name.
27008
27009 2009-08-23  Bruno Haible  <bruno@clisp.org>
27010
27011         * lib/dup3.c: Include <string.h>.
27012
27013 2009-08-23  Bruno Haible  <bruno@clisp.org>
27014
27015         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27016         * lib/pipe2.c (pipe2): Likewise.
27017         Suggested by Eric Blake.
27018
27019 2009-08-23  Bruno Haible  <bruno@clisp.org>
27020
27021         Tolerate declared but missing dup3 syscall.
27022         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27023         * lib/unistd.in.h (dup3): If the function is already present,
27024         override it.
27025         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27026         * modules/dup3 (Makefile.am): Compile dup3.c always.
27027         Reported by Paolo Bonzini.
27028
27029 2009-08-23  Bruno Haible  <bruno@clisp.org>
27030
27031         Tolerate declared but missing pipe2 syscall.
27032         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27033         available.
27034         * lib/unistd.in.h (pipe2): If the function is already present,
27035         override it.
27036         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27037         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27038         Reported by Paolo Bonzini.
27039
27040 2009-08-23  Bruno Haible  <bruno@clisp.org>
27041
27042         * lib/pipe2.c (pipe2): Move #ifs inside function.
27043
27044 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27045
27046         quotearg: document limitations of quote_these_too
27047         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27048         those limitations are created.
27049         * lib/quotearg.h (set_char_quoting): Document that digits and
27050         letters that are special after backslash are not permitted.
27051         (quotearg_char): Cross-reference set_char_quoting documentation.
27052
27053 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27054
27055         quotearg: implement custom_quoting_style
27056         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27057         right_quote fields.
27058         (set_custom_quoting): New public function.
27059         (quotearg_buffer_restyled): Add left_quote and right_quote
27060         arguments, handle them very much like locale quoting, and update
27061         all uses.
27062         (quotearg_n_custom): New public function.
27063         (quotearg_n_custom_mem): New public function.
27064         (quotearg_custom): New public function.
27065         (quotearg_custom_mem): New public function.
27066         * lib/quotearg.h: Prototype and document new public functions.
27067         (enum quoting_style): For escape_quoting_style and
27068         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27069         ignored even though they're otherwise like c_quoting_style.
27070         Add custom_quoting_style member and document with comparison to
27071         clocale_quoting_style.
27072         * tests/test-quotearg.c (custom_quotes): New array.
27073         (custom_results): New array.
27074         (main): Extend to test custom quoting.
27075
27076 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27077
27078         quotearg: fix right quote escaping when it's in quote_these_too
27079         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27080         quote, be sure to prepend only one backslash.
27081         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27082         (main): Test it.
27083
27084 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27085
27086         quotearg-tests: test escaping of embedded locale quotes
27087         * tests/test-quotearg.c (struct result_strings): Add member for
27088         new input.
27089         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27090         (inputs): Add new input.
27091         (results_g): Add expected results.
27092         (flag_results): Likewise.
27093         (locale_results): Likewise.
27094         (compare_strings): Check those.
27095
27096 2009-08-23  Bruno Haible  <bruno@clisp.org>
27097
27098         Tests for module 'dup3'.
27099         * modules/dup3-tests: New file.
27100         * tests/test-dup3.c: New file.
27101
27102         New module 'dup3'.
27103         * lib/unistd.in.h (dup3): New declaration.
27104         * lib/dup3.c: New file.
27105         * m4/dup3.m4: New file.
27106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27107         HAVE_DUP3.
27108         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27109         * modules/dup3: New file.
27110         * doc/glibc-functions/dup3.texi: Mention the new module.
27111
27112 2009-08-23  Bruno Haible  <bruno@clisp.org>
27113
27114         Tweak the dup2 test.
27115         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27116         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27117         the test file is still empty. Fix argument order of lseek.
27118
27119 2009-08-23  Bruno Haible  <bruno@clisp.org>
27120
27121         Avoid test link errors when the modules getopt-gnu, gettext are used.
27122         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27124
27125 2009-08-23  Bruno Haible  <bruno@clisp.org>
27126
27127         Fix getdtablesize() on mingw.
27128         * lib/getdtablesize.c (getdtablesize): Implement differently.
27129         * lib/unistd.in.h (getdtablesize): Improve comment.
27130
27131 2009-08-23  Bruno Haible  <bruno@clisp.org>
27132
27133         New module 'mkostemp'.
27134         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27135         * lib/stdlib.in.h (mksotemp): New declaration.
27136         * lib/mkostemp.c: New file, from glibc with modifications.
27137         * lib/tempname.h (GT_FILE): Remove outdated comment.
27138         (gen_tempname): Add flags argument.
27139         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27140         (__GT_FILE): Map to 1.
27141         (small_open, large_open): Remove macros.
27142         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27143         * lib/mkstemp.c (mkstemp): Update.
27144         * lib/mkdtemp.c (mkdtemp): Likewise.
27145         * m4/mkostemp.m4: New file.
27146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27147         HAVE_MKOSTEMP.
27148         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27149         HAVE_MKOSTEMP.
27150         * modules/mkostemp: New file, based on modules/mkstemp.
27151         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27152         * NEWS: Mention the change.
27153
27154 2009-08-23  Bruno Haible  <bruno@clisp.org>
27155
27156         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27157         Reported by Eric Blake.
27158
27159 2009-08-23  Bruno Haible  <bruno@clisp.org>
27160
27161         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27162         Reported by Eric Blake.
27163
27164 2009-08-23  Bruno Haible  <bruno@clisp.org>
27165
27166         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27167         * modules/pipe2 (Depends-on): Likewise.
27168
27169 2009-08-23  Eric Blake  <ebb9@byu.net>
27170
27171         fcntl-h: add O_TTY_INIT support
27172         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27173         * tests/test-fcntl-h.c (o): Test it.
27174         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27175
27176         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27177         * modules/fcntl: Move <fcntl.h> header replacement...
27178         * modules/fcntl-h: ...to new name, so as not to collide with
27179         like-named function.
27180         * tests/test-fcntl.c: Rename...
27181         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27182         * modules/fcntl-tests: Rename...
27183         * modules/fcntl-h-tests: ...to this.  Update test file name.
27184         * modules/chdir-long (Depends-on): Update clients.
27185         * modules/chdir-safer (Depends-on): Likewise.
27186         * modules/fcntl-safer (Depends-on): Likewise.
27187         * modules/fts (Depends-on): Likewise.
27188         * modules/mkancesdirs (Depends-on): Likewise.
27189         * modules/mkdir-p (Depends-on): Likewise.
27190         * modules/open (Depends-on): Likewise.
27191         * modules/savewd (Depends-on): Likewise.
27192         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27193         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27194
27195 2009-08-22  Bruno Haible  <bruno@clisp.org>
27196
27197         * modules/binary-io (License): Relicense under LGPL.
27198         * modules/pipe2 (License): Likewise.
27199
27200 2009-08-22  Bruno Haible  <bruno@clisp.org>
27201
27202         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27203         return value.
27204         * lib/pipe-filter-gi.c (filter_init): Likewise.
27205         Reported by Eric Blake.
27206
27207 2009-08-22  Bruno Haible  <bruno@clisp.org>
27208
27209         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27210         * modules/pipe (Depends-on): Add pipe2.
27211
27212 2009-08-22  Bruno Haible  <bruno@clisp.org>
27213
27214         Tests for module 'pipe2'.
27215         * modules/pipe2-tests: New file.
27216         * tests/test-pipe2.c: New file.
27217
27218         New module 'pipe2'.
27219         * lib/unistd.in.h (pipe2): New declaration.
27220         * lib/pipe2.c: New file.
27221         * m4/pipe2.m4: New file.
27222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27223         HAVE_PIPE2.
27224         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27225         * modules/pipe2: New file.
27226         * doc/glibc-functions/pipe2.texi: Mention the new module.
27227
27228 2009-08-22  Bruno Haible  <bruno@clisp.org>
27229
27230         Reference some new glibc functions.
27231         * doc/glibc-functions/accept4.texi: New file.
27232         * doc/glibc-functions/dup3.texi: New file.
27233         * doc/glibc-functions/mkostemp.texi: New file.
27234         * doc/glibc-functions/pipe2.texi: New file.
27235         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27236         (Glibc sys/socket.h): Refer to accept4.
27237         (Glibc unistd.h): Refer to dup3, pipe2.
27238         Reported by Eric Blake.
27239
27240 2009-08-22  Jim Meyering  <meyering@redhat.com>
27241             Bruno Haible  <bruno@clisp.org>
27242
27243         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27244         This makes it so packages using automake-1.11's silent-rules option
27245         can print e.g., a single "GEN    configmake.h" line, rather than
27246         the 30+ statements that perform the job.  If you want to see the
27247         actual commands, you can still run "make V=1".
27248         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27249         so that make output is abbreviated when those variables are defined
27250         appropriately.
27251         * modules/argz: Likewise.
27252         * modules/arpa_inet: Likewise.
27253         * modules/byteswap: Likewise.
27254         * modules/configmake: Likewise.
27255         * modules/dirent: Likewise.
27256         * modules/errno: Likewise.
27257         * modules/fcntl: Likewise.
27258         * modules/float: Likewise.
27259         * modules/fnmatch: Likewise.
27260         * modules/getopt-posix: Likewise.
27261         * modules/glob: Likewise.
27262         * modules/iconv_open: Likewise.
27263         * modules/inttypes: Likewise.
27264         * modules/localcharset: Likewise.
27265         * modules/locale: Likewise.
27266         * modules/math: Likewise.
27267         * modules/netdb: Likewise.
27268         * modules/netinet_in: Likewise.
27269         * modules/poll: Likewise.
27270         * modules/posix_spawnp-tests: Likewise.
27271         * modules/sched: Likewise.
27272         * modules/search: Likewise.
27273         * modules/selinux-h: Likewise.
27274         * modules/signal: Likewise.
27275         * modules/spawn: Likewise.
27276         * modules/stdarg: Likewise.
27277         * modules/stdbool: Likewise.
27278         * modules/stddef: Likewise.
27279         * modules/stdint: Likewise.
27280         * modules/stdio: Likewise.
27281         * modules/stdlib: Likewise.
27282         * modules/string: Likewise.
27283         * modules/strings: Likewise.
27284         * modules/sys_file: Likewise.
27285         * modules/sys_ioctl: Likewise.
27286         * modules/sys_select: Likewise.
27287         * modules/sys_socket: Likewise.
27288         * modules/sys_stat: Likewise.
27289         * modules/sys_time: Likewise.
27290         * modules/sys_times: Likewise.
27291         * modules/sys_utsname: Likewise.
27292         * modules/sys_wait: Likewise.
27293         * modules/sysexits: Likewise.
27294         * modules/time: Likewise.
27295         * modules/unistd: Likewise.
27296         * modules/wchar: Likewise.
27297         * modules/wctype: Likewise.
27298
27299 2009-08-22  Jim Meyering  <meyering@redhat.com>
27300
27301         announce-gen: detect write failure
27302         * build-aux/announce-gen: Add Coda at end.
27303         Remove equivalent-but-more-verbose block at top.
27304
27305 2009-08-19  Akim Demaille  <demaille@gostai.com>
27306
27307         bootstrap: --help to stdout.
27308         * bootstrap (usage): Don't send --help to stderr.
27309         Use a here doc instead of a long string.
27310
27311 2009-08-21  Eric Blake  <ebb9@byu.net>
27312
27313         test-popen-safer: split from test-popen
27314         * tests/test-popen.c (main): Move...
27315         * tests/test-popen.h: ...into new file.
27316         * tests/test-popen-safer2.c: New file.
27317         * modules/popen-tests (Files): Add test-popen.h.
27318         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27319         Suggested by Bruno Haible.
27320
27321         test-fcntl-safer: split from test-open
27322         * tests/test-open.c (main): Move...
27323         * tests/test-open.h: ...into new file.
27324         * tests/test-fcntl-safer.c: New file.
27325         * modules/open-tests (Files): Add test-open.h.
27326         * modules/fcntl-safer-tests: New file.
27327         Suggested by Bruno Haible.
27328
27329         test-fopen-safer: split from test-fopen
27330         * tests/test-fopen.c (main): Move...
27331         * tests/test-fopen.h: ...into new file.
27332         * tests/test-fopen-safer.c: New file.
27333         * modules/fopen-tests (Files): Add test-fopen.h.
27334         * modules/fopen-safer-tests: New file.
27335         Suggested by Bruno Haible.
27336
27337 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27338
27339         popen-safer: test O_CLOEXEC at run-time.
27340         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27341
27342 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27343
27344         fcntl: move more flags to the header
27345         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27346         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27347         * lib/fcntl.in.h: Do both things here.
27348
27349 2009-08-21  Jim Meyering  <meyering@redhat.com>
27350
27351         consistently remove $@-t before redirecting to it
27352         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27353         * modules/alloca-opt: Likewise.
27354         * modules/byteswap: Likewise.
27355         * modules/fnmatch: Likewise.
27356         * modules/getopt-posix: Likewise.
27357         * modules/glob: Likewise.
27358         * modules/poll: Likewise.
27359         * modules/posix_spawnp-tests: Likewise.
27360         * modules/sys_socket: Likewise.
27361         * modules/sysexits: Likewise.
27362
27363 2009-08-21  Eric Blake  <ebb9@byu.net>
27364
27365         popen: simplify access to original popen
27366         * lib/popen.c (rpl_popen): No need to worry about popen being a
27367         macro.
27368         Reported by Bruno Haible.
27369
27370 2009-08-20  Eric Blake  <ebb9@byu.net>
27371
27372         build: avoid some compiler warnings
27373         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27374         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27375         type.
27376         (new_exclude_segment, excluded_file_pattern_p)
27377         (excluded_file_name_p): Reduce scope.
27378         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27379         old-style declaration.
27380
27381 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27382
27383         * tests/test-exclude1.sh: Handle Windows EOL.
27384         * tests/test-exclude2.sh: Likewise.
27385         * tests/test-exclude3.sh: Likewise.
27386         * tests/test-exclude4.sh: Likewise.
27387         * tests/test-exclude5.sh: Likewise.
27388         * tests/test-exclude6.sh: Likewise.
27389         * tests/test-exclude7.sh: Likewise.
27390
27391 2009-08-19  Akim Demaille  <demaille@gostai.com>
27392
27393         bootstrap: find sha1sum when named gsha1sum.
27394         * bootstrap (find_tool): New.
27395         ($SHA1SUM): New.
27396         Use it.
27397
27398 2009-08-20  Jim Meyering  <meyering@redhat.com>
27399
27400         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27401         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27402         expression that converts "." in a file name to "\." in the resulting
27403         regexp.  Start with a dummy statement, so that prior shell variable
27404         definitions are expanded portably.  Reported by Simon Josefsson.
27405
27406 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27407
27408         Fix polling for writeability of a screen buffer.
27409         * lib/poll.c: Distinguish input and screen buffers for the
27410         Win32 implementation.
27411         * lib/select.c: Likewise.
27412
27413 2009-08-19  Eric Blake  <ebb9@byu.net>
27414
27415         popen-safer: prevent popen from clobbering std descriptors
27416         * modules/popen-safer: New file.
27417         * lib/popen-safer.c: Likewise.
27418         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27419         * lib/stdio--.h (popen): Provide override.
27420         * lib/stdio-safer.h (popen_safer): Provide declaration.
27421         * tests/test-popen.c (includes): Partially test this.
27422         * modules/popen-safer-tests: New file, for more tests.
27423         * tests/test-popen-safer.c: Likewise.
27424         * MODULES.html.sh (file stream based Input/Output): Mention it.
27425
27426         tests: test some of the *-safer modules
27427         * modules/fopen-safer (Depends-on): Add fopen.
27428         * modules/fcntl-safer (Depends-on): Add fcntl.
27429         * modules/stdlib-safer (Depends-on): Add stdlib.
27430         (configure.ac): Set indicator.
27431         * modules/unistd-safer (configure.ac): Likewise.
27432         * modules/tmpfile-safer (configure.ac): Likewise.
27433         (Depends-on): Add tmpfile.
27434         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27435         active.
27436         * tests/test-fopen.c (includes): Test safer versions when they are
27437         in use.
27438         * tests/test-open.c (includes): Likewise.
27439
27440         popen: fix cygwin 1.5 bug when stdin closed
27441         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27442         * modules/popen: New file.
27443         * modules/popen-tests: Likewise.
27444         * tests/test-popen.c: Likewise.
27445         * m4/popen.m4: Likewise.
27446         * lib/popen.c: Likewise.
27447         * lib/stdio.in.h (popen): New declaration.
27448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27449         * modules/stdio (Makefile.am): Likewise.
27450         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27451
27452 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27453
27454         maint.mk: give full control over update-copyright exclusions
27455         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27456         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27457         (update-copyright): Don't force inclusion of top-level
27458         ChangeLog.  Don't force exclusion of all COPYING files, but make
27459         them the default exclusion instead.
27460
27461 2009-08-16  Bruno Haible  <bruno@clisp.org>
27462
27463         Fix test failures on Solaris 10.
27464         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27465         tests when Solaris iconv() is used.
27466         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27467         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27468         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27469         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27470         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27471
27472 2009-08-16  Bruno Haible  <bruno@clisp.org>
27473
27474         Fix test failures on Solaris 10.
27475         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27476         'tr' program and pass it as first argument.
27477         * tests/test-pipe-filter-gi1.sh: Likewise.
27478         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27479         program as first argument.
27480         * tests/test-pipe-filter-gi1.c (main): Likewise.
27481
27482 2009-08-16  Eric Blake  <ebb9@byu.net>
27483
27484         fpurge: fix previous commits
27485         * modules/fpurge (Makefile.am): Make replacement conditional,
27486         partially reverting 2007-04-29 change; missed in previous
27487         attempt.
27488         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27489         is missing.
27490
27491 2009-08-16  Bruno Haible  <bruno@clisp.org>
27492
27493         Clarify fpurge's effect on the file position.
27494         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27495         * tests/test-fpurge.c (main): Make a second pass for checking the file
27496         position.
27497
27498 2009-08-16  Bruno Haible  <bruno@clisp.org>
27499
27500         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27501         declaration of fpurge is missing.
27502         * tests/test-fpurge.c (main): Check that the file has not more contents
27503         than expected. Close the file before removing it.
27504
27505 2009-08-15  Eric Blake  <ebb9@byu.net>
27506
27507         fpurge: don't wrap working cygwin implementation
27508         * lib/fpurge.c (fpurge): Fix comment typo.
27509         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27510         1.7 to avoid replacement.
27511         * tests/test-fpurge.c (main): Enhance test.
27512
27513 2009-08-15  Eric Blake  <ebb9@byu.net>
27514         and Jim Meyering  <meyering@redhat.com>
27515
27516         test-update-copyright: skip if perl is insufficient
27517         * tests/test-update-copyright.sh: Failure to run maintainer tool
27518         should not cause testsuite failure on cygwin 1.5.
27519
27520 2009-08-14  Eric Blake  <ebb9@byu.net>
27521
27522         doc: mention more functions added in cygwin 1.7.0
27523         * doc/posix-headers/limits.texi (limits.h): Update for recent
27524         cygwin additions.
27525         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27526         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27527         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27528         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27529         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27530
27531 2009-08-14  Eric Blake  <ebb9@byu.net>
27532
27533         maint.mk: simplify update-copyright rule
27534         * top/maint.mk (update-copyright-local): Delete, and document how
27535         to do it in cfg.mk instead.
27536         (update-copyright-exclude-regexp): Delete, and document how to do
27537         it in .x-update-copyright instead.
27538         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27539         exclude ChangeLog.
27540
27541 2009-08-14  Bruno Haible  <bruno@clisp.org>
27542
27543         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27544
27545 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27546
27547         maint.mk: support update-copyright-env
27548         * top/maint.mk (update-copyright-env): Define place-holder.
27549         (update-copyright): Expand $(update-copyright-env) before
27550         invoking update-copyright.
27551
27552 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27553
27554         update-copyright: implement forced reformatting
27555         * build-aux/update-copyright: Implement and document
27556         UPDATE_COPYRIGHT_FORCE.
27557         * tests/test-update-copyright.sh: Test it.
27558
27559 2009-08-14  Eric Blake  <ebb9@byu.net>
27560         and Bruno Haible  <bruno@clisp.org>
27561
27562         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27563         * tests/test-locale.c: Revert previous patch related to NULL.
27564         * tests/test-stdio.c: Likewise.
27565         * tests/test-stdlib.c: Likewise.
27566         * tests/test-string.c: Likewise.
27567         * tests/test-unistd.c: Likewise.
27568         * modules/time-tests (Depends-on): Add verify.
27569         * modules/wchar-tests (Depends-on): Likewise.
27570         * tests/test-time.c: Test for NULL compliance.
27571         * tests/test-wchar.c: Likewise.
27572         * modules/locale (Depends-on): Add stddef.
27573         * modules/stdio (Depends-on): Likewise.
27574         * modules/stdlib (Depends-on): Likewise.
27575         * modules/string (Depends-on): Likewise.
27576         * modules/time (Depends-on): Likewise.
27577         * modules/unistd (Depends-on): Likewise.
27578         * modules/wchar (Depends-on): Likewise.
27579         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27580         * lib/stdlib.in.h (includes): Likewise.
27581         * lib/string.in.h (includes): Likewise.
27582         * lib/time.in.h (includes): Likewise.
27583         * lib/unistd.in.h (includes): Likewise.
27584         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27585         replaced.
27586         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27587         * m4/stddef_h.m4: New file.
27588         * modules/stddef: Likewise.
27589         * lib/stddef.in.h: Likewise.
27590         * modules/stddef-tests: Likewise.
27591         * tests/test-stddef.c: Likewise.
27592         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27593         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27594         * doc/posix-headers/locale.texi (locale.h): Likewise.
27595         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27596         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27597         * doc/posix-headers/string.texi (string.h): Likewise.
27598         * doc/posix-headers/time.texi (time.h): Likewise.
27599         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27600         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27601
27602 2009-08-14  Eric Blake  <ebb9@byu.net>
27603
27604         doc: improve git diff of texinfo files
27605         * .gitattributes: Add rule for *.texi files, with hint on how to
27606         use it.
27607         Copied from m4, and based on a report by Bruno Haible.
27608
27609 2009-08-14  Bruno Haible  <bruno@clisp.org>
27610
27611         Disable multithread support by default on Cygwin 1.5.x for real.
27612         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27613
27614 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27615
27616         update-copyright: much ado about intervals
27617         * build-aux/update-copyright: Implement and document
27618         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27619         of copyright year intervals.
27620         Also, document UPDATE_COPYRIGHT_YEAR.
27621         * tests/test-update-copyright.sh: Test it.
27622
27623         update-copyright: convert 2-digit to 4-digit years
27624         * build-aux/update-copyright: Implement and document.
27625         * tests/test-update-copyright.sh: Update.
27626
27627 2009-08-14  Jim Meyering  <meyering@redhat.com>
27628
27629         test-exclude: avoid coreutils "make check" failure
27630         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27631         just as in test-argmatch.c.
27632
27633 2009-08-13  Eric Blake  <ebb9@byu.net>
27634
27635         test-dup2: fix bad assumption
27636         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27637         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27638
27639         test-version-etc: fix CRLF portability issue
27640         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27641         recognize \r.
27642         * tests/test-argp-version-etc-1.sh: Likewise.
27643
27644         getopt: update client modules
27645         * modules/argp (Depends-on): Use getopt-gnu.
27646         * modules/git-merge-changelog (Depends-on): Likewise.
27647         * modules/long-options (Depends-on): Likewise.
27648         * modules/xstrtol (Depends-on): Likewise.
27649
27650 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27651
27652         * tests/test-version-etc.sh: Don't fail on different
27653         project/version.  Don't fail on CRLF differences.  Rewrite to use
27654         multiple -e instead of multiple sed forks, suggested by Eric Blake
27655         <ebb9@byu.net>.
27656         * tests/test-argp-version-etc-1.sh: Likewise.
27657
27658 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27659
27660         * tests/test-version-etc.sh: Don't fail on different
27661         project/version.
27662
27663 2009-08-12  Bruno Haible  <bruno@clisp.org>
27664
27665         Tests for modules 'getopt-posix', 'getopt-gnu'.
27666         * modules/getopt-posix-tests: New file.
27667         * tests/test-getopt.c: New file.
27668         * tests/test-getopt.h: New file.
27669         * tests/test-getopt_long.h: New file.
27670
27671         New modules 'getopt-posix', 'getopt-gnu'.
27672         * modules/getopt-gnu: New file, renamed from modules/getopt.
27673         * modules/getopt-posix: New file.
27674         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27675         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27676         (gl_GETOPT): Remove macro.
27677         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27678         Disable the test against BSD systems that declare optreset. Test
27679         against mingw bug. Test against lack of support of optional arguments
27680         on many platforms.
27681         * doc/glibc-headers/getopt.texi: Update module name and list of
27682         relevant platforms.
27683         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27684         'getopt-gnu' and more portability problems.
27685         * NEWS: Mention the changes.
27686
27687 2009-08-12  Bruno Haible  <bruno@clisp.org>
27688
27689         Ensure that optarg etc. get declared by <unistd.h>.
27690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27691         AC_USE_SYSTEM_EXTENSIONS.
27692         * modules/getopt (Depends-on): Add 'extensions'.
27693
27694 2009-08-12  Bruno Haible  <bruno@clisp.org>
27695
27696         Avoid test link errors.
27697         * modules/pipe-filter-ii-tests (Makefile.am): Define
27698         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27699         * modules/pipe-filter-gi-tests (Makefile.am): Define
27700         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27702
27703 2009-08-12  Bruno Haible  <bruno@clisp.org>
27704
27705         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27706         gl_GETOPT_SUBSTITUTE before.
27707         (gl_GETOPT): Use it.
27708         * m4/argp.m4 (gl_ARGP): Update.
27709         Reported by Sergey Poznyakoff.
27710
27711         * m4/getopt.m4: Reorder macros.
27712         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27713         (gl_GETOPT_SUBSTITUTE): Remove macro.
27714
27715 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27716
27717         Minor improvement in gitlog-to-changelog
27718
27719         * build-aux/gitlog-to-changelog: New option `--format' makes
27720         output format string configurable.
27721
27722 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27723
27724         Optimize exclude: use hash tables for non-wildcard patterns.
27725
27726         * lib/exclude.c: Include hash.h and mbuiter.h
27727         (struct exclude_pattern, exclude_segment): New data types.
27728         (struct exclude): Rewrite.
27729         (fnmatch_pattern_has_wildcards): New function.
27730         (new_exclude_segment, free_exclude_segment): New functions.
27731         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27732         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27733         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27734         * modules/exclude: Depend on hash and mbuiter.
27735
27736         * modules/exclude-tests: New file.
27737         * tests/test-exclude.c: New file.
27738         * tests/test-exclude1.sh: New file.
27739         * tests/test-exclude2.sh: New file.
27740         * tests/test-exclude3.sh: New file.
27741         * tests/test-exclude4.sh: New file.
27742         * tests/test-exclude5.sh: New file.
27743         * tests/test-exclude6.sh: New file.
27744         * tests/test-exclude7.sh: New file.
27745
27746 2009-08-12  Bruno Haible  <bruno@clisp.org>
27747
27748         Ensure that getopt() gets declared by <unistd.h>.
27749         * lib/unistd.in.h: Conditionally include getopt.h.
27750         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27751         Set GNULIB_UNISTD_H_GETOPT.
27752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27753         GNULIB_UNISTD_H_GETOPT.
27754         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27755
27756 2009-08-12  Bruno Haible  <bruno@clisp.org>
27757
27758         Clarify logic.
27759         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27760         gl_replace_getopt instead of GETOPT_H.
27761
27762 2009-08-12  Bruno Haible  <bruno@clisp.org>
27763
27764         * m4/getopt.m4: Add comments.
27765
27766 2009-08-12  Bruno Haible  <bruno@clisp.org>
27767
27768         Disable multithread support by default on Cygwin 1.5.x.
27769         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27770         set gl_use_threads=no if not specified otherwise.
27771
27772 2009-08-11  Bruno Haible  <bruno@clisp.org>
27773
27774         Avoid compilation error on NetBSD 5.0.
27775         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27776         * tests/test-stdio.c: Likewise.
27777         * tests/test-stdlib.c: Likewise.
27778         * tests/test-string.c: Likewise.
27779         * tests/test-unistd.c: Likewise.
27780         Reported by Greg Troxel <gdt@ir.bbn.com>
27781         at <https://savannah.gnu.org/support/?106973>.
27782
27783 2009-08-11  Bruno Haible  <bruno@clisp.org>
27784
27785         * modules/dup2-tests (Depends-on): Remove close.
27786
27787         Undo 2009-07-19 commit.
27788         * modules/acl-tests (Depends-on): Remove close.
27789         * modules/binary-io-tests (Depends-on): Likewise.
27790         * modules/closein-tests (Depends-on): Likewise.
27791         * modules/flock-tests (Depends-on): Likewise.
27792         * modules/fsync-tests (Depends-on): Likewise.
27793         * modules/lseek-tests (Depends-on): Likewise.
27794         * modules/pipe-tests (Depends-on): Likewise.
27795         * modules/posix_spawn-tests (Depends-on): Likewise.
27796         * modules/posix_spawnp-tests (Depends-on): Likewise.
27797         * modules/stat-time-tests (Depends-on): Likewise.
27798         * modules/yesno-tests (Depends-on): Likewise.
27799
27800 2009-08-10  Bruno Haible  <bruno@clisp.org>
27801
27802         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27803
27804 2009-08-10  Bruno Haible  <bruno@clisp.org>
27805
27806         Fix a gcc warning.
27807         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27808
27809 2009-08-10  Bruno Haible  <bruno@clisp.org>
27810
27811         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27812         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27813         not only the first time.
27814         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27815         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27816         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27817         is 1, not only the the first time.
27818
27819 2009-08-10  Bruno Haible  <bruno@clisp.org>
27820
27821         Make it possible to use module 'gethostname' without module 'close'.
27822         * lib/unistd.in.h (close): Evoke a link error only if
27823         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27825         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27826         * modules/unistd (Makefile.am): Substitute
27827         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27828         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27829         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27830         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27831         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27832         * modules/sys_ioctl (Makefile.am): Substitute
27833         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27834         * modules/socket (configure.ac): On native Windows, set
27835         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27836         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27837         Reported by Sam Steingold <sds@gnu.org>.
27838
27839 2009-08-10  Bruno Haible  <bruno@clisp.org>
27840
27841         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27842         * modules/ioctl (configure.ac): Likewise.
27843
27844 2009-08-10  Bruno Haible  <bruno@clisp.org>
27845
27846         Avoid collision between gnulib wrapper and libintl wrapper.
27847         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27848         already defined in intl/printf.c.
27849         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27850         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27851
27852 2009-08-09  Bruno Haible  <bruno@clisp.org>
27853
27854         Make <sys/select.h> really self-contained, also on Solaris 10.
27855         * lib/sys_select.in.h: Include <string.h>.
27856         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27857         Solaris 10 problem.
27858         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27859         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27860         Reported by Jim Meyering.
27861
27862 2009-08-09  Bruno Haible  <bruno@clisp.org>
27863
27864         Avoid warnings from 'aclocal' that are due to a use of macro name
27865         AM_XGETTEXT_OPTION that is not defined in automake.
27866         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27867         automake.
27868         * modules/error (configure.ac): Likewise.
27869         * modules/propername (configure.ac): Likewise.
27870         * modules/vasprintf (configure.ac): Likewise.
27871         * modules/verror (configure.ac): Likewise.
27872         * modules/xprintf (configure.ac): Likewise.
27873         * modules/xvasprintf (configure.ac): Likewise.
27874
27875 2009-08-08  Bruno Haible  <bruno@clisp.org>
27876
27877         Avoid compilation error in C++ mode.
27878         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27879         Reported by Sam Steingold <sds@gnu.org>.
27880
27881 2009-08-08  Bruno Haible  <bruno@clisp.org>
27882
27883         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27884         for the various Unix platforms.
27885         * doc/posix-headers/limits.texi: Update platforms list regarding
27886         HOST_NAME_MAX.
27887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27888
27889 2009-08-07  Jim Meyering  <meyering@redhat.com>
27890
27891         selinux-at: fix typo in a comment
27892         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27893         Spotted by Paolo Bonzini.
27894
27895         selinux-at: remove redundant m4 code, add documentation
27896         * modules/selinux-at (configure.ac): Remove redundant code.
27897         LIB_SELINUX is already set via the dependent module, selinux-h.
27898         (Include): Add quotes around selinux-at.h.
27899         * lib/selinux-at.h: Add documentation.
27900         Reported by Bruno Haible in
27901         http://marc.info/?l=gnulib-bug&m=124958988300749
27902
27903 2009-08-07  Bruno Haible  <bruno@clisp.org>
27904
27905         Avoid link error on MacOS X 10.3 and 10.4.
27906         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27907         on non-ELF systems.
27908         * lib/argp-pv.c (argp_program_version): Likewise.
27909         Reported by Simon Josefsson.
27910
27911 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27912
27913         * tests/test-version-etc.sh: Use $EXEEXT.
27914
27915 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27916
27917         update-copyright: update documentation to point to maint.mk
27918         * build-aux/update-copyright: Here.
27919
27920 2009-08-06  Jim Meyering  <meyering@redhat.com>
27921
27922         maint.mk: support update-copyright-local
27923         * top/maint.mk (update-copyright-local): Define place-holder.
27924         (update-copyright): Depend on $(update-copyright-local).
27925
27926 2009-08-06  Jim Meyering  <meyering@redhat.com>
27927
27928         selinux-at: new module
27929         Initially written for coreutils, this module will soon be
27930         used by findutils, too.
27931         * MODULES.html.sh [Misc]: Add selinux-at.
27932         * lib/selinux-at.h: New file, from coreutils.
27933         * lib/selinux-at.c: Likewise.
27934         * modules/selinux-at: Likewise.
27935         (License): Change from LGPL to GPL, since it depends
27936         on the GPL'd openat module.
27937
27938         doc: update README
27939         * README: Remove references to cogito.
27940         Remove cvs-repo-updating instructions from 2007.
27941         Don't imply that CVS is better if you have limited disk space.
27942
27943 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27944
27945         update-copyright: support C-style comments
27946         * build-aux/update-copyright: Implement and document.
27947         * tests/test-update-copyright.sh: Test.
27948
27949 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27950
27951         update-copyright: support omitted "(C)"
27952         * build-aux/update-copyright: Implement and document.  Also,
27953         allow variable whitespace before "(C)".
27954         * tests/test-update-copyright.sh: Test.
27955
27956 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27957
27958         update-copyright: don't trip on non-FSF copyright statements
27959         * build-aux/update-copyright: Fix so that the first correctly
27960         formatted FSF copyright statement is recognized no matter what
27961         appears before it.  Update documentation.
27962         * tests/test-update-copyright.sh: Test that.
27963
27964 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27965
27966         update-copyright: clean up code a little
27967         * build-aux/update-copyright: Append "_re" to the name of any
27968         variable holding a regular expression.
27969         Replace "old" and "new" with "stmt" in variable names.
27970         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27971         handled correctly.
27972         Format code more consistently.
27973
27974 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27975
27976         update-copyright-tests: improve portability
27977         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27978         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27979
27980 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27981
27982         update-copyright: support @copyright{} and &copy;
27983         * build-aux/update-copyright: Implement and document.
27984         * tests/test-update-copyright.sh: Test.
27985
27986 2009-08-04  Jim Meyering  <meyering@redhat.com>
27987
27988         update-copyright-tests: correctly test EOL=\r\n handling
27989         * tests/test-update-copyright.sh: Put \r at the end of some lines
27990         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27991
27992         maint.mk: make update-copyright exclusion list more configurable
27993         * top/maint.mk (update-copyright): Default to excluding COPYING,
27994         but allow an override, in case someone does want to update that file.
27995
27996         maint.mk: don't update copyright date in COPYING
27997         * top/maint.mk (update-copyright): Exclude COPYING.
27998
27999         maint.mk: add a copyright-updating rule
28000         * top/maint.mk (update-copyright): New rule.
28001         Derived from coreutils/Makefile.am.
28002
28003         update-copyright: rename some variables
28004         * build-aux/update-copyright: Rename a few variables for clarity.
28005         Tweak syntax.  List Joel E. Denny as coauthor.
28006
28007 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28008
28009         update-copyright: fix bug for 2-digit last year and add tests
28010         * build-aux/update-copyright: Fix bug.
28011         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28012         specified.
28013         * modules/update-copyright-tests: New
28014         * tests/test-update-copyright.sh: New.
28015
28016 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28017
28018         update-copyright: handle leading tabs in line prefix
28019         * build-aux/update-copyright: Count leading tabs as 8 spaces
28020         when computing margin.  This helps with the formatting of
28021         ChangeLogs, for example.
28022         Fix documentation a little.
28023
28024 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28025
28026         update-copyright: support EOL=\r\n
28027         * build-aux/update-copyright: Implement that.
28028
28029 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28030
28031         update-copyright: automatically format copyright statements
28032         * build-aux/update-copyright: Implement that.
28033         Also, be a little more predictable and safer by always failing
28034         when the full copyright format is not perfectly recognized as an
28035         unbroken whole.  Discussed at
28036         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28037         Rewrite documentation.
28038
28039 2009-08-03  Bruno Haible  <bruno@clisp.org>
28040
28041         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28042
28043 2009-08-02  Bruno Haible  <bruno@clisp.org>
28044
28045         Tests for module 'uname'.
28046         * modules/uname-tests: New file.
28047         * tests/test-uname.c: New file.
28048
28049         New module 'uname'.
28050         * lib/uname.c: New file.
28051         * m4/uname.m4: New file.
28052         * modules/uname: New file.
28053         * doc/posix-functions/uname.texi: Mention the new module.
28054
28055 2009-08-02  Bruno Haible  <bruno@clisp.org>
28056
28057         Tests for module 'sys_utsname'.
28058         * modules/sys_utsname-tests: New file.
28059         * tests/test-sys_utsname.c: New file.
28060
28061         New module 'sys_utsname'.
28062         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28063         * m4/sys_utsname_h.m4: New file.
28064         * modules/sys_utsname: New file.
28065         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28066
28067 2009-08-02  Bruno Haible  <bruno@clisp.org>
28068
28069         Implicitly initialize the sockets library.
28070         * lib/gethostname.c: Include sockets.h.
28071         (rpl_gethostname): Invoke gl_sockets_startup.
28072         * lib/socket.c: Include sockets.h.
28073         (rpl_socket): Invoke gl_sockets_startup.
28074         * modules/gethostname (Depends-on): Add sockets.
28075         * modules/socket (Depends-on): Likewise.
28076         * tests/test-poll.c: Don't include sockets.h.
28077         (main): Don't invoke gl_sockets_startup.
28078         * tests/test-select.c: Don't include sockets.h.
28079         (main): Don't invoke gl_sockets_startup.
28080
28081 2009-08-02  Bruno Haible  <bruno@clisp.org>
28082
28083         Allow multiple calls to gl_sockets_startup.
28084         * lib/sockets.c (initialized_sockets_version): New variable.
28085         (gl_sockets_startup): Do nothing if already called for this or a higher
28086         version.
28087         (gl_sockets_cleanup): Reset initialized_sockets_version.
28088
28089 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28090
28091         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28092         different project/version.
28093
28094 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28095             Bruno Haible  <bruno@clisp.org>
28096
28097         Tests for module 'pipe-filter-gi'.
28098         * modules/pipe-filter-gi-tests: New file.
28099         * tests/test-pipe-filter-gi1.sh: New file.
28100         * tests/test-pipe-filter-gi1.c: New file.
28101         * tests/test-pipe-filter-gi2.sh: New file.
28102         * tests/test-pipe-filter-gi2-main.c: New file.
28103         * tests/test-pipe-filter-gi2-child.c: New file.
28104
28105         New module 'pipe-filter-gi'.
28106         * lib/pipe-filter-gi.c: New file.
28107         * modules/pipe-filter-gi: New file.
28108
28109 2009-08-02  Bruno Haible  <bruno@clisp.org>
28110             Paolo Bonzini  <bonzini@gnu.org>
28111
28112         Tests for module 'pipe-filter-ii'.
28113         * modules/pipe-filter-ii-tests: New file.
28114         * tests/test-pipe-filter-ii1.sh: New file.
28115         * tests/test-pipe-filter-ii1.c: New file.
28116         * tests/test-pipe-filter-ii2.sh: New file.
28117         * tests/test-pipe-filter-ii2-main.c: New file.
28118         * tests/test-pipe-filter-ii2-child.c: New file.
28119
28120         New module 'pipe-filter-ii'.
28121         * lib/pipe-filter.h: New file.
28122         * lib/pipe-filter-ii.c: New file.
28123         * lib/pipe-filter-aux.h: New file.
28124         * modules/pipe-filter-ii: New file.
28125
28126 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28127
28128         * lib/gc-libgcrypt.c: Change copyright to FSF.
28129         * lib/gc-gnulib.c: Likewise.
28130
28131 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28132
28133         * lib/gethostname.c: Include limits.h.
28134
28135 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28136             Bruno Haible  <bruno@clisp.org>
28137
28138         Ensure HOST_NAME_MAX as part of the gethostname module.
28139         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28140         define also HOST_NAME_MAX.
28141         * tests/test-gethostname.c: Include <limits.h>.
28142         (main): Check also HOST_NAME_MAX.
28143         * doc/posix-headers/limits.texi: Document the mingw problem.
28144
28145 2009-08-02  Bruno Haible  <bruno@clisp.org>
28146
28147         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28148         Add comments.
28149
28150 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28151
28152         * lib/gethostname.c: Add Windows wrapper.
28153         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28154         * modules/gethostname: Depend on sys_socket & errno, for also
28155         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28156         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28157
28158 2009-07-31  Jim Meyering  <meyering@redhat.com>
28159
28160         getloadavg: fix symbol name in comment
28161         * lib/getloadavg.c: Correct a typo I introduced when adding
28162         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28163         Matt Kraai spotted the problem.
28164
28165 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28166
28167         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28168         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28169         code also if ! defined N_NAME_POINTER.
28170         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28171         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28172         but the n_name member is a 12-byte array.
28173
28174 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28175
28176         update-copyright: generalize comment handling
28177         * build-aux/update-copyright: Handle copyright statements
28178         within more comment styles.
28179         Document usage.
28180         Report any file with an external copyright holder or parse failure.
28181
28182 2009-07-29  Jim Meyering  <meyering@redhat.com>
28183
28184         mktime: correct setting of REPLACE_MKTIME
28185         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28186
28187         update-copyright: new module
28188         * modules/update-copyright: New file.
28189         * build-aux/update-copyright: New file.
28190         * MODULES.html.sh (maint+release support): Add update-copyright.
28191
28192 2009-07-27  Bruno Haible  <bruno@clisp.org>
28193
28194         Fix compilation error when <ctime> is used and mktime is replaced.
28195         * lib/time.in.h (mktime): New declaration.
28196         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28197         REPLACE_MKTIME instead of defining mktime in config.h.
28198         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28199         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28200         Reported by Ross McFarland <rwmcfa1@neces.com>.
28201
28202 2009-07-27  Bruno Haible  <bruno@clisp.org>
28203
28204         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28205         Reported by Matt Kraai <mkraai@beckman.com>.
28206
28207 2009-07-25  Jim Meyering  <meyering@redhat.com>
28208
28209         maint.mk: avoid warnings about missing files
28210         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28211         diagnostic when .prev-version does not exist.
28212         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28213         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28214         nonexistent cfg.mk.
28215         Suggestions from Simon Josefsson.
28216
28217 2009-07-25  Bruno Haible  <bruno@clisp.org>
28218
28219         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28220         defined as macros. Needed on QNX 6.4.1.
28221         Reported by Matt Kraai <mkraai@beckman.com>.
28222
28223 2009-07-23  Jim Meyering  <meyering@redhat.com>
28224
28225         maint.mk: invoke "make dist" with a working value of XZ_OPT
28226         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28227
28228 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28229
28230         Make fseeko.c compile on QNX.
28231         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28232
28233 2009-07-22  Peter Simons  <simons@cryp.to>
28234
28235         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28236         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28237         * lib/md4.h: Likewise.
28238         * lib/md5.h: Likewise.
28239         * lib/sha1.h: Likewise.
28240         * lib/sha256.h: Likewise.
28241         * lib/sha512.h: Likewise.
28242
28243         tests-sha1: don't assign literal string to 'char *' variable
28244         * tests/test-sha1.c (main): Declare locals with "const" to match
28245         attributes of the right hand side.
28246
28247 2009-07-21  Eric Blake  <ebb9@byu.net>
28248
28249         dup2: fix more mingw problems
28250         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28251         fd to itself.
28252         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28253         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28254         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28255         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28256         care of mingw bugs.
28257
28258 2009-07-21  Jim Meyering  <meyering@redhat.com>
28259
28260         vc-list-files: avoid failure when /bin/sh is dash
28261         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28262         On some Debian based systems, /bin/sh is a symlink to dash, and running
28263         this command would omit the "/" following each 'tests' prefix:
28264           dash -x build-aux/vc-list-files -C . tests
28265         That is because bash and dash work differently:
28266           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28267           bash ok
28268           dash odd
28269
28270 2009-07-21  Eric Blake  <ebb9@byu.net>
28271
28272         dup2-tests: test previous patch
28273         * modules/dup2-tests: New file.
28274         * tests/test-dup2.c: Likewise.
28275         * tests/test-open.c (main): Avoid unspecified behavior.
28276         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28277         test.
28278
28279         dup2: work around mingw and cygwin 1.5 bug
28280         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28282         * modules/unistd (Makefile.am): Substitute it.
28283         * lib/unistd.in.h (dup2): Declare the replacement.
28284         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28285         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28286         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28287         * modules/execute (Depends-on): Add dup2.
28288         * modules/fseterr (Depends-on): Likewise.
28289         * modules/pipe (Depends-on): Likewise.
28290         * modules/posix_spawn-internal (Depends-on): Likewise.
28291
28292 2009-07-21  Bruno Haible  <bruno@clisp.org>
28293
28294         * modules/.gitattributes: New file.
28295
28296 2009-07-20  Bruno Haible  <bruno@clisp.org>
28297
28298         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28299         (main): Use it.
28300
28301 2009-07-20  Eric Blake  <ebb9@byu.net>
28302
28303         test-pipe: make a bit more robust.
28304         * tests/test-pipe.c (myerr): Allow error messages regardless of
28305         what we do to stderr.
28306         (test_pipe): Rearrange to avoid deadlock.
28307         (child_main): Try a larger read, to ensure we avoided deadlock.
28308         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28309         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28310         if misused.
28311
28312 2009-07-19  Jim Meyering  <meyering@redhat.com>
28313
28314         fts: avoid false-positive cycle-detection
28315         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28316         for each new command line argument.
28317
28318 2009-07-19  Bruno Haible  <bruno@clisp.org>
28319
28320         Fix build error on mingw with the modules sys_select and unistd.
28321         * modules/acl-tests (Depends-on): Add close.
28322         * modules/binary-io-tests (Depends-on): Likewise.
28323         * modules/closein-tests (Depends-on): Likewise.
28324         * modules/flock-tests (Depends-on): Likewise.
28325         * modules/fsync-tests (Depends-on): Likewise.
28326         * modules/lseek-tests (Depends-on): Likewise.
28327         * modules/pipe-tests (Depends-on): Likewise.
28328         * modules/posix_spawn-tests (Depends-on): Likewise.
28329         * modules/posix_spawnp-tests (Depends-on): Likewise.
28330         * modules/stat-time-tests (Depends-on): Likewise.
28331         * modules/yesno-tests (Depends-on): Likewise.
28332
28333 2009-07-19  Bruno Haible  <bruno@clisp.org>
28334
28335         Unify conditionals.
28336         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28337         macros, not at the compiler macros.
28338         * lib/pipe.c: Likewise.
28339         * lib/execute.c: Likewise.
28340         * lib/spawni.c: Likewise.
28341
28342 2009-07-19  Bruno Haible  <bruno@clisp.org>
28343
28344         Fix handling of closed stdin/stdout/stderr on mingw.
28345         * lib/w32spawn.h: Include unistd.h.
28346         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28347         file descriptor with O_NOINHERIT flag.
28348         (fd_safer_noinherit): New function, based on fd-safer.c.
28349         (dup_safer_noinherit): New function, based on dup-safer.c.
28350         (undup_safer_noinherit): New function.
28351         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28352         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28353         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28354         instead of fd_safer.
28355         * tests/test-pipe.c: Include <windows.h>.
28356         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28357         result.
28358
28359         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28360         from main.
28361         (test_pipe): Pass an extra argument for disambiguation.
28362         (main): Invoke parent_main or child_main.
28363
28364         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28365         consistently.
28366
28367 2009-07-18  Eric Blake  <ebb9@byu.net>
28368
28369         test-pipe: fix mingw build
28370         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28371
28372 2009-07-18  Bruno Haible  <bruno@clisp.org>
28373
28374         * modules/pipe-tests (Makefile.am): Fix typo.
28375
28376 2009-07-18  Eric Blake  <ebb9@byu.net>
28377
28378         error: fix mingw build
28379         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28380         Reported by Bruno Haible.
28381
28382         error: avoid undefined use of stdout
28383         * lib/error.c (error, error_at_line): Check that fd 1 is open
28384         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28385         is handling faults and the close_stdout module wants to report the
28386         detection of closed stdout as an error.
28387
28388 2009-07-17  Eric Blake  <ebb9@byu.net>
28389
28390         pipe: be robust in face of closed fds
28391         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28392         should cause child to misbehave.
28393         * modules/pipe-tests: New module.
28394         * tests/test-pipe.c: New file.
28395         * tests/test-pipe.sh: New file.
28396         Reported by Akim Demaille.
28397
28398 2009-07-14  Bruno Haible  <bruno@clisp.org>
28399
28400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28401         Reported by anonymous kc.
28402
28403 2009-07-07  Jim Meyering  <meyering@redhat.com>
28404
28405         maint.mk: don't look for translatable strings in *.m4 or *.mk
28406         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28407         when searching for translatable strings.
28408
28409 2009-07-05  Jim Meyering  <meyering@redhat.com>
28410
28411         remove superfluous parentheses in STREQ definition
28412         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28413         * lib/getugroups.c (STREQ): Likewise.
28414         * lib/fnmatch.c (STREQ): Likewise.
28415         Spotted by Bruno Haible.
28416
28417 2009-07-04  Jim Meyering  <meyering@redhat.com>
28418
28419         argv-iter: new module
28420         * MODULES.html.sh: Add argv-iter.
28421         * lib/argv-iter.c, lib/argv-iter.h: New files.
28422         * modules/argv-iter: New file.
28423         * modules/argv-iter-tests: New file.
28424         * tests/test-argv-iter.c: Test it.
28425
28426 2009-07-04  Bruno Haible  <bruno@clisp.org>
28427
28428         Fix assertion.
28429         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28430         contains more exact copies of a given entry than file2, leave the extra
28431         copies unpaired rather than aborting.
28432         Reported by Eric Blake.
28433
28434 2009-07-02  Bruno Haible  <bruno@clisp.org>
28435
28436         Speedup git-merge-changelog for git cherry-pick.
28437         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28438         (entries_mapping_get): New function, extracted from compute_mapping.
28439         (entries_mapping_reverse_get): New function.
28440         (compute_mapping): Add a 'full' argument. Return the result in a
28441         'struct entries_mapping'.
28442         (main): Update. Access the mappings through entries_mapping_get.
28443         Reported by Eric Blake.
28444
28445 2009-07-02  Bruno Haible  <bruno@clisp.org>
28446
28447         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28448         best_i.
28449
28450 2009-07-02  Bruno Haible  <bruno@clisp.org>
28451
28452         Speed up approximate search for matching ChangeLog entries.
28453         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28454         argument. Call fstrcmp_bounded instead of fstrcmp.
28455         (compute_mapping, try_split_merged_entry, main): Update callers.
28456
28457 2009-07-02  Bruno Haible  <bruno@clisp.org>
28458
28459         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28460
28461 2009-06-30  Bruno Haible  <bruno@clisp.org>
28462
28463         Reduce the number of uc_is_cased calls.
28464         * lib/unicase.h (casing_suffix_context_t): Add
28465         'first_char_except_ignorable' field.
28466         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28467         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28468         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28469         Update initializer.
28470         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28471         case-ignorable characters.
28472         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28473         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28474         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28475         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28476         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28477
28478 2009-06-30  Bruno Haible  <bruno@clisp.org>
28479
28480         Tests for module 'unicase/ignorable'.
28481         * modules/unicase/ignorable-tests: New file.
28482         * tests/unicase/test-ignorable.c: New file, generated by
28483         gen-uni-tables.
28484
28485         Tests for module 'unicase/cased'.
28486         * modules/unicase/cased-tests: New file.
28487         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28488         * tests/unicase/test-predicate-part1.h: New file, derived from
28489         tests/unictype/test-predicate-part1.h.
28490         * tests/unicase/test-predicate-part2.h: New file, same as
28491         tests/unictype/test-predicate-part2.h.
28492
28493         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28494         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28495         (output_casing_properties): New function.
28496         (main): Call it.
28497         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28498         * lib/unicase/cased.c: Include unictype/bitmap.h.
28499         (uc_is_cased): Define through a bitmap lookup.
28500         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28501         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28502         (uc_is_case_ignorable): Define through a bitmap lookup.
28503         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28504         lib/unictype/bitmap.h.
28505         (Depends-on): Add inline. Clean up.
28506         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28507         lib/unictype/bitmap.h.
28508         (Depends-on): Add inline. Clean up.
28509         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28510         recognition.
28511         * tests/unicase/test-u16-tolower.c (main): Likewise.
28512         * tests/unicase/test-u32-tolower.c (main): Likewise.
28513
28514 2009-06-30  Bruno Haible  <bruno@clisp.org>
28515
28516         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28517         * lib/unicase/u16-casemap.c: Likewise.
28518         * lib/unicase/u32-casemap.c: Likewise.
28519
28520 2009-06-29  Bruno Haible  <bruno@clisp.org>
28521
28522         Define u32_casefold as a wrapper around u32_ct_casefold.
28523         * lib/unicase/u32-casefold.c: Update.
28524         * modules/unicase/u32-casefold (Depends-on): Add
28525         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28526         unicase/empty-suffix-context. Clean up.
28527
28528         Define u16_casefold as a wrapper around u16_ct_casefold.
28529         * lib/unicase/u16-casefold.c: Update.
28530         * modules/unicase/u16-casefold (Depends-on): Add
28531         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28532         unicase/empty-suffix-context. Clean up.
28533
28534         Define u8_casefold as a wrapper around u8_ct_casefold.
28535         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28536         * lib/unicase/u8-casefold.c: Update.
28537         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28538         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28539
28540         Define u32_totitle as a wrapper around u32_ct_totitle.
28541         * lib/unicase/u32-totitle.c: Update.
28542         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28543         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28544
28545         Define u16_totitle as a wrapper around u16_ct_totitle.
28546         * lib/unicase/u16-totitle.c: Update.
28547         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28548         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28549
28550         Define u8_totitle as a wrapper around u8_ct_totitle.
28551         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28552         functions.
28553         (FUNC): Delegate to U_CT_TOTITLE.
28554         * lib/unicase/u8-totitle.c: Update.
28555         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28556         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28557
28558         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28559         invocation.
28560         * modules/unicase/u32-tolower (Depends-on): Add
28561         unicase/empty-prefix-context, unicase/empty-suffix-context.
28562
28563         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28564         invocation.
28565         * modules/unicase/u16-tolower (Depends-on): Add
28566         unicase/empty-prefix-context, unicase/empty-suffix-context.
28567
28568         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28569         * modules/unicase/u8-tolower (Depends-on): Add
28570         unicase/empty-prefix-context, unicase/empty-suffix-context.
28571
28572         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28573         invocation.
28574         * modules/unicase/u32-toupper (Depends-on): Add
28575         unicase/empty-prefix-context, unicase/empty-suffix-context.
28576
28577         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28578         invocation.
28579         * modules/unicase/u16-toupper (Depends-on): Add
28580         unicase/empty-prefix-context, unicase/empty-suffix-context.
28581
28582         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28583         * modules/unicase/u8-toupper (Depends-on): Add
28584         unicase/empty-prefix-context, unicase/empty-suffix-context.
28585
28586         New module 'unicase/u32-ct-casefold'.
28587         * lib/unicase/u32-ct-casefold.c: New file.
28588         * modules/unicase/u32-ct-casefold: New file.
28589
28590         New module 'unicase/u16-ct-casefold'.
28591         * lib/unicase/u16-ct-casefold.c: New file.
28592         * modules/unicase/u16-ct-casefold: New file.
28593
28594         New module 'unicase/u8-ct-casefold'.
28595         * lib/unicase/u8-ct-casefold.c: New file.
28596         * lib/unicase/u-ct-casefold.h: New file, derived from
28597         lib/unicase/u-casefold.h.
28598         * modules/unicase/u8-ct-casefold: New file.
28599
28600         New module 'unicase/u32-ct-totitle'.
28601         * lib/unicase/u32-ct-totitle.c: New file.
28602         * modules/unicase/u32-ct-totitle: New file.
28603
28604         New module 'unicase/u16-ct-totitle'.
28605         * lib/unicase/u16-ct-totitle.c: New file.
28606         * modules/unicase/u16-ct-totitle: New file.
28607
28608         New module 'unicase/u8-ct-totitle'.
28609         * lib/unicase/u8-ct-totitle.c: New file.
28610         * lib/unicase/u-ct-totitle.h: New file, derived from
28611         lib/unicase/u-totitle.h.
28612         * modules/unicase/u8-ct-totitle: New file.
28613
28614         New module 'unicase/u32-ct-tolower'.
28615         * lib/unicase/u32-ct-tolower.c: New file.
28616         * modules/unicase/u32-ct-tolower: New file.
28617
28618         New module 'unicase/u16-ct-tolower'.
28619         * lib/unicase/u16-ct-tolower.c: New file.
28620         * modules/unicase/u16-ct-tolower: New file.
28621
28622         New module 'unicase/u8-ct-tolower'.
28623         * lib/unicase/u8-ct-tolower.c: New file.
28624         * modules/unicase/u8-ct-tolower: New file.
28625
28626         New module 'unicase/u32-ct-toupper'.
28627         * lib/unicase/u32-ct-toupper.c: New file.
28628         * modules/unicase/u32-ct-toupper: New file.
28629
28630         New module 'unicase/u16-ct-toupper'.
28631         * lib/unicase/u16-ct-toupper.c: New file.
28632         * modules/unicase/u16-ct-toupper: New file.
28633
28634         New module 'unicase/u8-ct-toupper'.
28635         * lib/unicase/u8-ct-toupper.c: New file.
28636         * modules/unicase/u8-ct-toupper: New file.
28637
28638         Add context arguments to u*_casemap functions.
28639         * lib/unicase/unicasemap.h: Include unicase.h.
28640         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28641         suffix_context arguments.
28642         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28643         functions.
28644         (FUNC): Add prefix_context and suffix_context arguments. Use
28645         uc_is_cased and uc_is_case_ignorable.
28646         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28647         * lib/unicase/u16-casemap.c: Likewise.
28648         * lib/unicase/u32-casemap.c: Likewise.
28649         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28650         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28651         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28652         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28653         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28654         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28655
28656         New module 'unicase/u32-suffix-context'.
28657         * lib/unicase/u32-suffix-context.c: New file.
28658         * modules/unicase/u32-suffix-context: New file.
28659
28660         New module 'unicase/u16-suffix-context'.
28661         * lib/unicase/u16-suffix-context.c: New file.
28662         * modules/unicase/u16-suffix-context: New file.
28663
28664         New module 'unicase/u8-suffix-context'.
28665         * lib/unicase/u8-suffix-context.c: New file.
28666         * lib/unicase/u-suffix-context.h: New file.
28667         * modules/unicase/u8-suffix-context: New file.
28668
28669         New module 'unicase/empty-suffix-context'.
28670         * lib/unicase/empty-suffix-context.c: New file.
28671         * modules/unicase/empty-suffix-context: New file.
28672
28673         New module 'unicase/u32-prefix-context'.
28674         * lib/unicase/u32-prefix-context.c: New file.
28675         * modules/unicase/u32-prefix-context: New file.
28676
28677         New module 'unicase/u16-prefix-context'.
28678         * lib/unicase/u16-prefix-context.c: New file.
28679         * modules/unicase/u16-prefix-context: New file.
28680
28681         New module 'unicase/u8-prefix-context'.
28682         * lib/unicase/u8-prefix-context.c: New file.
28683         * lib/unicase/u-prefix-context.h: New file.
28684         * lib/unicase/context.h: New file.
28685         * modules/unicase/u8-prefix-context: New file.
28686
28687         New module 'unicase/empty-prefix-context'.
28688         * lib/unicase/empty-prefix-context.c: New file.
28689         * modules/unicase/empty-prefix-context: New file.
28690
28691         New module 'unicase/ignorable'.
28692         * lib/unicase/ignorable.c: New file.
28693         * modules/unicase/ignorable: New file.
28694
28695         New module 'unicase/cased'.
28696         * lib/unicase/caseprop.h: New file.
28697         * lib/unicase/cased.c: New file.
28698         * modules/unicase/cased: New file.
28699
28700         New functions for case mapping of substrings.
28701         * lib/unicase.h (casing_prefix_context_t): New type.
28702         (unicase_empty_prefix_context): New variable.
28703         (u8_casing_prefix_context, u16_casing_prefix_context,
28704         u32_casing_prefix_context, u8_casing_prefixes_context,
28705         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28706         declarations.
28707         (casing_suffix_context_t): New type.
28708         (unicase_empty_suffix_context): New variable.
28709         (u8_casing_suffix_context, u16_casing_suffix_context,
28710         u32_casing_suffix_context, u8_casing_suffixes_context,
28711         u16_casing_suffixes_context, u32_casing_suffixes_context,
28712         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28713         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28714         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28715         declarations.
28716
28717 2009-06-28  Jim Meyering  <meyering@redhat.com>
28718
28719         boostrap: indent only with spaces
28720         * build-aux/bootstrap: Indent only with spaces, never TABs.
28721
28722         bootstrap: split long lines
28723         * build-aux/bootstrap: Keep line length < 80.
28724
28725         bootstrap: sync from coreutils
28726         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28727         just as autoreconf does.  Verify a list of prerequisite
28728         package-name,version-number pairs if defined in bootstrap.conf.
28729         Refer to README-prereq, if prerequisites are not satisfied.
28730
28731 2009-06-27  Eric Blake  <ebb9@byu.net>
28732
28733         tests: add test for bogus NULL definition
28734         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28735         * tests/test-stdlib.c: Likewise.
28736         * tests/test-string.c: Likewise.
28737         * tests/test-locale.c: Likewise.
28738         * tests/test-unistd.c: Likewise.
28739         * modules/stdio-tests (Depends-on): Add verify.
28740         * modules/stdlib-tests (Depends-on): Likewise.
28741         * modules/string-tests (Depends-on): Likewise.
28742         * modules/locale-tests (Depends-on): Likewise.
28743         * modules/unistd-tests (Depends-on): Likewise.
28744
28745 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28746
28747         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28748         self-explaining comment.
28749         * m4/selinux-selinux-h: Update serial.
28750         (gl_LIBSELINUX): New macro, adding a warning for missing development
28751         packages to code extracted from...
28752         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28753         Add warning for missing development packages here, too.
28754
28755 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28756
28757         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28758
28759 2009-06-25  Eric Blake  <ebb9@byu.net>
28760
28761         version-etc: fix regression
28762         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28763         gcc.
28764         (version_etc): Use it, to catch bugs with trailing NULL.
28765         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28766         (version_etc_va): Fix logic bug.
28767         * modules/version-etc-tests: Add test.
28768         * tests/test-version-etc.c: New file.
28769         * tests/test-version-etc.sh: Likewise.
28770
28771 2009-06-25  Sam Steingold  <sds@gnu.org>
28772
28773         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28774         mbtowc declaration.
28775
28776 2009-06-25  Eric Blake  <ebb9@byu.net>
28777
28778         fpurge: migrate into <stdio.h>
28779         * lib/fpurge.h: Delete...
28780         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28781         * lib/fpurge.c (fpurge): Change declaring header.
28782         * modules/fpurge (Files): Drop deleted file.
28783         (Depends-on): Add stdio.
28784         (configure.ac): Set witness.
28785         * modules/stdio (Makefile.am): Support fpurge macros.
28786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28787         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28788         * lib/fflush.c: Update client.
28789         * tests/test-fpurge.c: Likewise.
28790         * NEWS: Mention the change.
28791
28792 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28793
28794         * lib/argp-version-etc.c (program_authors): Add const
28795         qualifier.
28796         * lib/version-etc.c: Fix typos in the comments.
28797         * modules/argp-version-etc: Depends on version-etc.
28798
28799 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28800
28801         argp-version-etc: new module.
28802
28803         * lib/argp-version-etc.c: New file.
28804         * lib/argp-version-etc.h: New file.
28805         * modules/argp-version-etc: New file.
28806         * modules/argp-version-etc-tests: New file.
28807         * tests/test-argp-version-etc.c: New test.
28808         * tests/test-argp-version-etc-1.sh: New test.
28809
28810 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28811
28812         Provide additional interfaces and documentation for version-etc
28813         module.
28814
28815         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28816         interfaces.
28817         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28818         prototypes.
28819
28820 2009-06-24  Bruno Haible  <bruno@clisp.org>
28821
28822         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28823         HAVE_LIB${NAME} macro.
28824         Reported by Sam Steingold <sds@gnu.org>.
28825
28826 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28827
28828         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28829         needed.
28830
28831 2009-06-21  Bruno Haible  <bruno@clisp.org>
28832
28833         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28834         work.
28835         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28836         together with LIB${NAME}, LTLIB${NAME}.
28837         Reported by Sam Steingold <sds@gnu.org>.
28838
28839 2009-06-20  Jim Meyering  <meyering@redhat.com>
28840
28841         tests: make sc_require_test_exit_idiom more generic
28842         * top/maint.mk (Exit_witness_file): New overridable variable.
28843         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28844         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28845
28846 2009-06-19  Jim Meyering  <meyering@redhat.com>
28847
28848         hash: reverse order of src/dst parameters in an internal interface
28849         * lib/hash.c (transfer_entries): Reverse order of parameters to
28850         put DST before SRC.  Adjust callers.
28851
28852         tests: test-hash: avoid wholesale duplication
28853         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28854         Instead, use a loop and add a single conditional.
28855
28856         tests: test-hash: allow seed selection via a command line argument
28857         * tests/test-hash.c (get_seed): New function.
28858         (main): Use it.
28859
28860 2009-06-19  Eric Blake  <ebb9@byu.net>
28861
28862         hash: avoid memory leak on allocation failure
28863         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28864         failure.  Factor repeated algorithm...
28865         (transfer_entries): ...into new helper routine.
28866         (hash_delete): React to hash_rehash return value.
28867
28868         hash: reduce memory pressure in hash_rehash no-op case
28869         * lib/hash.c (next_prime): Avoid overflow.
28870         (hash_initialize): Factor bucket size computation...
28871         (compute_bucket_size): ...into new helper function.
28872         (hash_rehash): Use new function and open coding to reduce memory
28873         pressure, and avoid a memory leak in USE_OBSTACK code.
28874         Reported by Jim Meyering.
28875
28876 2009-06-18  Eric Blake  <ebb9@byu.net>
28877
28878         hash: make rotation more obvious
28879         * modules/hash (Depends-on): Add bitrotate and stdint.
28880         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28881         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28882         (SIZE_MAX): Rely on headers for definition.
28883         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28884         (raw_hasher): Use rotr_sz.
28885         Suggested by Jim Meyering.
28886
28887         hash: fix memory leak in last patch
28888         * lib/hash.c (hash_rehash): Avoid memory leak.
28889
28890         hash: avoid no-op rehashing
28891         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28892
28893         hash: provide default callback functions
28894         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28895         (hash_initialize): Use them as defaults.
28896         * tests/test-hash.c (main): Test this.
28897
28898         hash: minor optimization
28899         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28900         when possible.
28901         (hash_initialize): Document this promise.
28902         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28903         * tests/test-hash.c (hash_compare_strings): Test this.
28904
28905 2009-06-18  Bruno Haible  <bruno@clisp.org>
28906
28907         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28908         going to be replaced anyway.
28909
28910 2009-06-18  Bruno Haible  <bruno@clisp.org>
28911
28912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28913         in one place.
28914         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28915         be replaced anyway.
28916
28917 2009-06-18  Eric Blake  <ebb9@byu.net>
28918
28919         hash: check for resize before insertion
28920         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28921         threshold before insertion, so that a pathological hash_rehash
28922         that fills every bucket can still trigger another rehash.
28923
28924 2009-06-18  Jim Meyering  <meyering@redhat.com>
28925
28926         hash-tests: add a loop around the small tests
28927         * tests/test-hash.c (main): Repeat small tests with selected
28928         small initial table sizes.
28929
28930 2009-06-17  Eric Blake  <ebb9@byu.net>
28931
28932         hash: minor cleanups
28933         * lib/hash.h (hash_entry): Make opaque, by moving...
28934         * lib/hash.c (hash_entry): ...here.
28935         (hash_insert): Clarify restrictions on what can be inserted.
28936         (hash_get_next): Clarify when it is safe to remove an element
28937         during traversal.
28938         (check_tuning): Skip verification when tuning is known safe.
28939         (hash_initialize): Clarify restrictions on tuning.
28940
28941 2009-06-17  Jim Meyering  <jim@meyering.net>
28942         and Eric Blake  <ebb9@byu.net>
28943
28944         hash-tests: new module
28945         * modules/hash-tests: New file.
28946         * tests/test-hash.c: New file.
28947
28948 2009-06-17  Eric Blake  <ebb9@byu.net>
28949
28950         strstr-simple: document new module
28951         * MODULES.html.sh: Document new module.
28952
28953         strstr, strcasestr: replace on platforms with broken memchr
28954         * modules/strstr: Split into...
28955         * modules/strstr-simple: ...new module that does not care about
28956         performance, but does care about glibc bug.
28957         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28958         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28959         if platform memchr is broken, per Debian bug 521737.
28960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28961         memchr.
28962         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28963         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28964         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28965         * modules/mountlist (Depends-on): Add strstr-simple.
28966         * modules/gen-uni-tables (Depends-on): Likewise.
28967         * modules/argz (Depends-on): Add strstr.
28968
28969 2009-06-17  Bruno Haible  <bruno@clisp.org>
28970
28971         * modules/posix_spawn-internal (Depends-on): Add errno.
28972
28973 2009-06-17  Bruno Haible  <bruno@clisp.org>
28974
28975         Define missing ESTALE on Interix 3.5.
28976         * lib/errno.in.h (ESTALE): Assign a value if missing.
28977         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28978         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28979         missing.
28980         * doc/posix-headers/errno.texi: Mention the Interix bug.
28981         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28982
28983 2009-06-15  Eric Blake  <ebb9@byu.net>
28984
28985         memchr, memchr2: add valgrind exception
28986         * lib/memchr.valgrind: New file.
28987         * lib/memchr2.valgrind: New file.
28988         * modules/memchr (Files): Distribute valgrind file.
28989         * modules/memchr2 (Files): Likewise.
28990
28991         docs: memchr is no longer obsolete
28992         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28993         * lib/string.in.h (memchr): Simplify logic.
28994
28995 2009-06-14  Jim Meyering  <meyering@redhat.com>
28996
28997         link-follow: fix the "checking..." message to not mention trailing slash
28998         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28999         never considered trailing slashes.
29000
29001 2009-06-14  Bruno Haible  <bruno@clisp.org>
29002
29003         * m4/memchr.m4: Mention also the bug on IA-64.
29004         * doc/posix-functions/memchr.texi: Likewise.
29005
29006 2009-06-12  Eric Blake  <ebb9@byu.net>
29007
29008         memchr: detect broken x86_64 and alpha implementations
29009         * modules/memchr-tests (Depends-on): Move mmap detection...
29010         * modules/memchr (Depends-on): ...here.
29011         (configure.ac): Set indicator.
29012         * lib/string.in.h (memchr): Declare replacement.
29013         * modules/string (Makefile.am): Trigger replacement.
29014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29015         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29016         bugs.
29017         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29018         * modules/getpagesize (License): Relax license.
29019
29020 2009-06-11  Bruno Haible  <bruno@clisp.org>
29021
29022         * lib/idpriv.h: Add more references.
29023
29024 2009-06-08  Bruno Haible  <bruno@clisp.org>
29025
29026         Tests for module 'idpriv-droptemp'.
29027         * modules/idpriv-droptemp-tests: New file.
29028         * tests/test-idpriv-droptemp.sh: New file.
29029         * tests/test-idpriv-droptemp.su.sh: New file.
29030         * tests/test-idpriv-droptemp.c: New file.
29031
29032         New module 'idpriv-droptemp'.
29033         * lib/idpriv-droptemp.c: New file.
29034         * modules/idpriv-droptemp: New file.
29035
29036 2009-06-08  Bruno Haible  <bruno@clisp.org>
29037
29038         Tests for module 'idpriv-drop'.
29039         * modules/idpriv-drop-tests: New file.
29040         * tests/test-idpriv-drop.sh: New file.
29041         * tests/test-idpriv-drop.su.sh: New file.
29042         * tests/test-idpriv-drop.c: New file.
29043
29044         New module 'idpriv-drop'.
29045         * lib/idpriv.h: New file.
29046         * lib-idpriv-drop.c: New file.
29047         * m4/idpriv.m4: New file.
29048         * modules/idpriv-drop: New file.
29049
29050 2009-06-08  Bruno Haible  <bruno@clisp.org>
29051
29052         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29053         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29054         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29055         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29056         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29057         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29058         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29059
29060 2009-06-08  Eric Blake  <ebb9@byu.net>
29061
29062         test-strstr: use memory fence, when possible
29063         * tests/test-strstr.c (main): Use memory fence, in order to be
29064         more likely to trigger Debian bug 521737.
29065         * modules/strstr-tests (Files): Pull in additional files.
29066
29067         memchr: no longer obsolete, for wider field testing
29068         * modules/memchr (Status, Notice): Delete, this module is no
29069         longer obsolete.
29070         * modules/vasnprintf (Depends-on): Add memchr.
29071
29072 2009-06-07  Jim Meyering  <meyering@redhat.com>
29073
29074         hash: declare some functions with the warn_unused_result attribute
29075         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29076
29077 2009-06-07  Bruno Haible  <bruno@clisp.org>
29078
29079         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29080         Reported by Eric Blake.
29081
29082 2009-06-06  Eric Blake  <ebb9@byu.net>
29083
29084         test-alignof: fix typo with long double
29085         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29086         compiler error.
29087
29088 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29089
29090         Escape non-texinfo { and }s.
29091         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29092         markup error.
29093
29094 2009-06-04  Jim Meyering  <meyering@redhat.com>
29095
29096         gitlog-to-changelog: don't infloop on an empty commit log
29097         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29098         Reported by Boris Petersen <transacid@centerim.org>.
29099
29100 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29101
29102         version-etc: extend for packagers
29103         Add three new configure options, intended for packagers:
29104           --with-packager="packager name"
29105           --with-packager-version="packager-specific version"
29106           --with-packager-bug-reports="packager bug reporting"
29107         An example with coreutils:
29108           $ ./configure \
29109             --with-packager=Gentoo \
29110             --with-packager-bug-report=http://bugs.gentoo.org/ \
29111             --with-packager-version="patchset 1.6"
29112           $ ./src/ls --version | head -n2
29113           ls (GNU coreutils) 7.1-dirty
29114           Packaged by Gentoo (patchset 1.6)
29115         Note that the bug reporting info via --help doesn't show up because
29116         coreutils uses its own custom emit_bug_reporting_address() implementation
29117         in src/system.h.  If it didn't, it'd look like:
29118           $ ./src/ls --help | tail -n4
29119           Report bugs to <bug-coreutils@gnu.org>.
29120           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29121           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29122           General help using GNU software: <http://www.gnu.org/gethelp/>.
29123         * lib/version-etc.c: Print new information, if provided.
29124         * m4/version-etc.m4: New file.
29125         * modules/version-etc (Files): Add m4/version-etc.m4.
29126         (configure.ac): Add gl_VERSION_ETC.
29127
29128 2009-05-31  Bruno Haible  <bruno@clisp.org>
29129
29130         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29131         and 'int64_t'.
29132         * modules/alignof-tests (Dependencies): Add stdint.
29133         Reported by Eric Blake.
29134
29135 2009-05-31  Bruno Haible  <bruno@clisp.org>
29136
29137         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29138         restriction due to compiler bugs.
29139         Reported by Eric Blake.
29140
29141 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29142             Bruno Haible  <bruno@clisp.org>
29143
29144         Fix test-alignof failure.
29145         * lib/alignof.h (alignof_slot): New macro.
29146         (alignof_type): New macro, with the same semantics as the previous
29147         'alignof'.
29148         (alignof): Alias to alignof_slot.
29149         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29150         check that the results are usable as constant expressions.
29151
29152 2009-05-31  Bruno Haible  <bruno@clisp.org>
29153
29154         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29155         * tests/test-memchr.c (main): Check that memchr does not read past the
29156         first occurrence of the byte.
29157         * tests/test-strstr.c (main): Update comment.
29158         Suggested by Eric Blake.
29159
29160 2009-05-30  Bruno Haible  <bruno@clisp.org>
29161
29162         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29163         detail how to use dumpbin.
29164         Reported by David Byron <dbyron@dbyron.com>.
29165
29166 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29167
29168         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29169
29170 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29171
29172         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29173
29174 2009-05-28  Bruno Haible  <bruno@clisp.org>
29175
29176         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29177         build-aux/ files.
29178
29179 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29180
29181         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29182
29183 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29184
29185         * gnulib-tool (sed_transform_main_lib_file)
29186         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29187         regexps.
29188
29189 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29190
29191         * tests/test-strstr.c: Add another self-test.
29192         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29193         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29194
29195 2009-05-23  Bruno Haible  <bruno@clisp.org>
29196
29197         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29198         change.
29199
29200 2009-05-21  Bruno Haible  <bruno@clisp.org>
29201
29202         Simplify use of mode_t varargs.
29203         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29204         uses 'mode_t' or 'int'.
29205         * lib/openat.c (openat): Likewise.
29206         * lib/open-safer.c (open_safer): Likewise.
29207         * m4/mode_t.m4: New file.
29208         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29209         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29210         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29211         * modules/open (Files): Add m4/mode_t.m4.
29212         * modules/openat (Files): Likewise.
29213         * modules/fcntl-safer (Files): Likewise.
29214         Suggested by Eric Blake.
29215
29216 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29217
29218         * doc/glibc-functions/fallocate.texi: New file.
29219         * doc/gnulib.texi: Include it.
29220
29221 2009-05-21  Eric Blake  <ebb9@byu.net>
29222             Bruno Haible  <bruno@clisp.org>
29223
29224         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29225         invocations.
29226         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29227
29228 2009-05-21  Eric Blake  <ebb9@byu.net>
29229             Bruno Haible  <bruno@clisp.org>
29230
29231         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29232         include_next. Fix of 2008-11-20 commit.
29233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29234         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29235         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29236         NEXT_MATH_H.
29237         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29238         instead of NEXT_MATH_H.
29239
29240 2009-05-21  Bruno Haible  <bruno@clisp.org>
29241
29242         Avoid redefinition warnings for SIZE_MAX.
29243         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29244         Reported by Simon Josefsson.
29245
29246 2009-05-21  Bruno Haible  <bruno@clisp.org>
29247
29248         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29249         AC_CACHE_VAL.
29250
29251 2009-05-20  Bruno Haible  <bruno@clisp.org>
29252
29253         Make zeroptr.h work on mingw.
29254         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29255         mprotect.
29256         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29257         * modules/memchr2-tests (configure.ac): Likewise.
29258         * modules/memcmp-tests (configure.ac): Likewise.
29259         * modules/memmem-tests (configure.ac): Likewise.
29260         * modules/memrchr-tests (configure.ac): Likewise.
29261         Reported by Simon Josefsson.
29262
29263 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29264
29265         * tests/test-glob.c: Include string.h for strcmp prototype.
29266
29267 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29268
29269         * modules/getdelim (Depends-on): Add explicit stdint, although it
29270         was implicitly already pulled in via realloc-posix.
29271         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29272
29273 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29274
29275         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29276         G. Christensen" <tgc@jupiterrise.com>.
29277         * m4/sys_socket_h.m4: Check for sa_family_t.
29278         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29279         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29280         * tests/test-sys_socket.c: Check that sa_family_t works.
29281
29282 2009-05-18  Eric Blake  <ebb9@byu.net>
29283
29284         maint.mk: allow gnulib_dir in VPATH build
29285         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29286
29287 2009-05-15  Jim Meyering  <meyering@redhat.com>
29288
29289         maint.mk: Give gnulib_dir a default definition.
29290         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29291         Thus, most packages no longer need to specify this variable in cfg.mk
29292
29293 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29294
29295         rename.m4: fix typos that would make non-mingw cross-configure fail
29296         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29297
29298 2009-05-13  Eric Blake  <ebb9@byu.net>
29299
29300         mmap-anon: avoid out-of-order autoconf expansion
29301         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29302         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29303         * modules/memchr-tests (Depends-on): Add extensions.
29304         * modules/memchr2-tests (Depends-on): Add extensions.
29305         * modules/memcmp-tests (Depends-on): Add extensions.
29306         * modules/memmem-tests (Depends-on): Add extensions.
29307         * modules/memrchr-tests (Depends-on): Add extensions.
29308
29309 2009-05-13  Bruno Haible  <bruno@clisp.org>
29310
29311         Make some tests ISO C 99 compliant.
29312         * tests/zerosize-ptr.h: New file.
29313         * tests/test-memchr.c: Include zerosize-ptr.h.
29314         (main): Use a zero-size object pointer instead of NULL.
29315         * tests/test-memchr2.c: Include zerosize-ptr.h.
29316         (main): Use a zero-size object pointer instead of NULL.
29317         * tests/test-memcmp.c: Include zerosize-ptr.h.
29318         (main): Use a zero-size object pointer instead of NULL.
29319         * tests/test-memmem.c: Include zerosize-ptr.h.
29320         (main): Use a zero-size object pointer instead of NULL.
29321         * tests/test-memrchr.c: Include zerosize-ptr.h.
29322         (main): Use a zero-size object pointer instead of NULL.
29323         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29324         m4/mmap-anon.m4.
29325         (Depends-on): Add getpagesize.
29326         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29327         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29328         m4/mmap-anon.m4.
29329         (Depends-on): Add getpagesize.
29330         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29331         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29332         m4/mmap-anon.m4.
29333         (Depends-on): Add getpagesize.
29334         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29335         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29336         m4/mmap-anon.m4.
29337         (Depends-on): Add getpagesize.
29338         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29339         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29340         m4/mmap-anon.m4.
29341         (Depends-on): Add getpagesize.
29342         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29343
29344 2009-05-12  Bruno Haible  <bruno@clisp.org>
29345
29346         Tests for module 'alignof'.
29347         * modules/alignof-tests: New file.
29348         * tests/test-alignof.c: New file.
29349
29350 2009-05-12  Bruno Haible  <bruno@clisp.org>
29351
29352         Fix alignof macro.
29353         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29354         vendor compilers that are always correct.
29355
29356 2009-05-12  Bruno Haible  <bruno@clisp.org>
29357
29358         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29359         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29360         not whether its fully works.
29361
29362 2009-05-12  Bruno Haible  <bruno@clisp.org>
29363
29364         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29365
29366 2009-05-12  Jim Meyering  <meyering@redhat.com>
29367
29368         * top/maint.mk: Adjust backslash alignment.
29369
29370 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29371
29372         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29373
29374 2009-05-11  Eric Blake  <ebb9@byu.net>
29375
29376         argp: avoid undefined behavior
29377         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29378         macros.
29379
29380 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29381
29382         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29383         user.name to prevent git commit from complaining.
29384
29385 2009-05-10  Bruno Haible  <bruno@clisp.org>
29386
29387         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29388         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29389         it rewrites every file name only once.
29390         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29391
29392 2009-05-08  Bruno Haible  <bruno@clisp.org>
29393
29394         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29395         instead of 'max'.
29396
29397 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29398
29399         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29400         sockaddr_storage test.
29401
29402 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29403
29404         * modules/sys_socket (Makefile.am): Substitute
29405         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29406         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29407         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29408         * tests/test-sys_socket.c: Check sockaddr_storage.
29409
29410 2009-05-08  Bruno Haible  <bruno@clisp.org>
29411
29412         New module 'alignof'.
29413         * lib/alignof.h: New file.
29414         * modules/alignof: New file.
29415
29416 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29417             Bruno Haible  <bruno@clisp.org>
29418
29419         Fix test-file-has-acl on FreeBSD.
29420         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29421         mask is implicitly added.
29422         * tests/test-file-has-acl.c: Include <signal.h>.
29423         (main): Terminate the test after 5 seconds.
29424         * modules/acl-tests (configure.ac): Check for alarm function.
29425
29426 2009-05-04  Bruno Haible  <bruno@clisp.org>
29427
29428         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29429         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29430         * modules/errno (configure.ac): Drop AC_REQUIRE.
29431         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29432         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29433
29434 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29435
29436         * modules/glob-tests: New module.
29437         * tests/test-glob.c: Add.
29438
29439 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29440
29441         * modules/fnmatch-tests: New module.
29442         * tests/test-fnmatch.c: Add.
29443
29444 2009-05-04  Eric Blake  <ebb9@byu.net>
29445
29446         maint: make the new no-submodule-changes rule VPATH-safe
29447         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29448
29449 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29450             Bruno Haible  <bruno@clisp.org>
29451
29452         acl: Fix infinite loop on FreeBSD.
29453         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29454         of return value from acl_get_entry.
29455         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29456         Likewise.
29457
29458 2009-05-03  Bruno Haible  <bruno@clisp.org>
29459
29460         * lib/acl-internal.h (acl_entries): Clarify return value.
29461         * lib/acl_entries.c (acl_entries): Likewise.
29462
29463 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29464
29465         Bug fix in acl module.
29466         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29467
29468 2009-05-03  Bruno Haible  <bruno@clisp.org>
29469
29470         Create gperf-generated file in the source dir, not in the build dir.
29471         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29472         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29473         * modules/unicase/locale-language (unicase/locale-languages.h):
29474         Likewise.
29475         * modules/unicase/special-casing (unicase/special-casing-table.h):
29476         Likewise.
29477         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29478         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29479         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29480         Reported by Ralf Wildenhues.
29481
29482 2009-05-03  Bruno Haible  <bruno@clisp.org>
29483
29484         * modules/fnmatch (Description, configure.ac): Taken from
29485         fnmatch-posix.
29486         * modules/fnmatch-posix: Turn into a symbolic reference to the
29487         'fnmatch' module, and deprecate.
29488         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29489
29490 2009-05-03  Bruno Haible  <bruno@clisp.org>
29491
29492         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29493         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29494         Reported by Ralf Wildenhues.
29495
29496 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29497
29498         * m4/fnmatch.m4: Fix fnmatch re-define.
29499
29500 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29501
29502         priv-set: new module and tests; adapt write-any-file
29503         * lib/priv-set.c: New file.
29504         * lib/priv-set.h: New file.
29505         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29506         * lib/write-any-file.c: Simplify by using priv-set module.
29507         * m4/priv-set.m4: New file.
29508         * modules/priv-set: New file.
29509         * modules/unlinkdir: Add dependency on priv-set module.
29510         * modules/write-any-file: Likewise.
29511
29512         Tests for module 'priv-set'.
29513         * modules/priv-set-tests: New file.
29514         * tests/test-priv-set.c: New file.
29515
29516 2009-05-03  Jim Meyering  <meyering@redhat.com>
29517             Bruno Haible  <bruno@clisp.org>
29518
29519         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29520         use the converted UTF-8 variant of the name instead.
29521
29522 2009-05-03  Jim Meyering  <meyering@redhat.com>
29523
29524         tests: tighten some getdate tests
29525         * tests/test-getdate.c (main): Tighten tests: require equality,
29526         not just greater than.  Set TZ envvar to UTC0.
29527
29528 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29529
29530         getdate: correctly interpret "next monday" when run on a Monday
29531         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29532         that e.g., "next tues" (when run on a tuesday) results in a date
29533         that is one week in the future, and not today's date.
29534         I.e., add a week when the wday is the same as the current one.
29535         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29536         and earlier by Martin Bernreuther and Jan Minář.
29537         * tests/test-getdate.c (main): Check that "next DAY" is always in
29538         the future and that "last DAY" is always in the past.
29539
29540 2009-05-02  Jim Meyering  <meyering@redhat.com>
29541
29542         build: ensure that a release build fails when a submodule is unclean
29543         * top/maint.mk (no-submodule-changes): New rule.
29544         (alpha beta major): Depend on it.
29545
29546 2009-05-02  Bruno Haible  <bruno@clisp.org>
29547
29548         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29549         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29550         shell variable gl_fnmatch_required to detect which variant is
29551         requested.
29552         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29553         gl_FUNC_FNMATCH_POSIX.
29554         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29555         exclude fnmatch-posix.
29556
29557 2009-05-02  Bruno Haible  <bruno@clisp.org>
29558
29559         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29560         * modules/mbsrtowcs (License): Change to LGPLv2+.
29561         * modules/strnlen1 (License): Likewise.
29562         Reported by Simon Josefsson.
29563
29564 2009-05-02  Bruno Haible  <bruno@clisp.org>
29565
29566         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29567         "cross".
29568         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29569         gnulib-tool was called with option --source-base=lib.
29570
29571 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29572
29573         Use automake *-local hooks without commands, for extensibility.
29574         * modules/localcharset (Makefile.am): Rename install-exec-local
29575         rule to install-exec-localcharset, and make it a prerequisite of
29576         install-exec-local.  Likewise, rename the uninstall-local rule to
29577         uninstall-localcharset, and make it a prerequisite of the former.
29578
29579 2009-05-01  Bruno Haible  <bruno@clisp.org>
29580
29581         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29582         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29583         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29585         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29586         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29587         m4/locale-zh.m4, m4/codeset.m4.
29588
29589         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29590         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29591         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29592         m4/locale-zh.m4.
29593
29594         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29595         REPLACE_WCRTOMB if mbstate_t must be replaced.
29596         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29597         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29598
29599 2009-05-01  Bruno Haible  <bruno@clisp.org>
29600
29601         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29602         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29603         dngettext, dcngettext, textdomain, bindtextdomain,
29604         bind_textdomain_codeset): Undefine before redefining.
29605
29606 2009-04-30  Bruno Haible  <bruno@clisp.org>
29607
29608         Fix bug introduced on 2009-04-25.
29609         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29610         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29611         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29612         is defined.
29613         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29614         is defined.
29615         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29616         is defined.
29617         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29618
29619 2009-04-28  Bruno Haible  <bruno@clisp.org>
29620
29621         Comment tweaks.
29622         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29623         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29624         * lib/unicase.h (u*_casexfrm): Likewise.
29625         Reported by Paolo Bonzini.
29626
29627 2009-04-28  Bruno Haible  <bruno@clisp.org>
29628
29629         Fix a compilation error.
29630         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29631         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29632         Reported by Jim Meyering.
29633
29634 2009-04-27  Bruno Haible  <bruno@clisp.org>
29635
29636         New module 'libunistring'.
29637         * modules/libunistring: New file.
29638         * m4/libunistring.m4: New file.
29639         * MODULES.html.sh (Unicode string functions): Add it.
29640
29641 2009-04-27  Eric Blake  <ebb9@byu.net>
29642
29643         maint.mk: allow package-specific header to provide <config.h>
29644         * top/maint.mk (sc_require_config_h): New variable.
29645         (sc_require_config_h, sc_require_config_h_first): Use it.
29646
29647 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29648
29649         * top/maint.mk (sc_avoid_if_before_free): Except
29650         useless-if-before-free script.
29651
29652 2009-04-27  Eric Blake  <ebb9@byu.net>
29653
29654         maintainer-makefile: depend on all required helper scripts
29655         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29656         useless-if-before-free.
29657         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29658         version, rather than assuming gnulib checkout is available.
29659         Reported by Simen Josefsson.
29660
29661 2009-04-26  Bruno Haible  <bruno@clisp.org>
29662
29663         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29664         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29665         "../" or "..".
29666
29667 2009-04-26  Bruno Haible  <bruno@clisp.org>
29668
29669         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29670         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29671         AC_LIB_HAVE_LINKFLAGS.
29672
29673 2009-04-26  Bruno Haible  <bruno@clisp.org>
29674
29675         Simplify calling convention of u*_conv_from_encoding.
29676         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29677         u32_conv_from_encoding): Expect a resultbuf argument and return the
29678         result directly as a pointer.
29679         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29680         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29681         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29682         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29683         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29684         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29685         Update.
29686         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29687         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29688         * lib/vasnprintf.c (VASNPRINTF): Update.
29689         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29690         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29691         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29692         * NEWS: Mention the change.
29693
29694 2009-04-26  Bruno Haible  <bruno@clisp.org>
29695
29696         Simplify calling convention of u*_conv_to_encoding.
29697         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29698         u32_conv_to_encoding): Expect a resultbuf argument and return the
29699         result directly as a pointer.
29700         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29701         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29702         freeing scaled_offsets if mem_iconveha failed.
29703         * lib/unicase/u-casexfrm.h (FUNC): Update.
29704         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29705         * lib/vasnprintf.c (VASNPRINTF): Update.
29706         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29707         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29708         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29709         * NEWS: Mention the change.
29710
29711 2009-04-26  Bruno Haible  <bruno@clisp.org>
29712
29713         Avoid test failures on AIX and OSF/1.
29714         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29715         malloc(0).
29716         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29717         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29718         Likewise.
29719         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29720         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29721         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29722         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29723         * doc/posix-functions/malloc.texi: Document the portability problem
29724         related to malloc(0).
29725
29726 2009-04-26  Bruno Haible  <bruno@clisp.org>
29727
29728         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29729         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29730         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29731
29732 2009-04-25  Bruno Haible  <bruno@clisp.org>
29733
29734         Avoid link error when creating a namespace clean library.
29735         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29736         as macro with arguments if already defined as an alias.
29737         * lib/signbitf.c (gl_signbitf): Don't undefine.
29738         * lib/signbitd.c (gl_signbitd): Don't undefine.
29739         * lib/signbitl.c (gl_signbitl): Don't undefine.
29740
29741 2009-04-25  Jim Meyering  <meyering@redhat.com>
29742
29743         vc-list-files: fix another quoting bug
29744         * build-aux/vc-list-files: Avoid sed backslash expansion
29745         of pathological directory names.
29746
29747 2009-04-25  Eric Blake  <ebb9@byu.net>
29748
29749         vc-list-files: fix shell quoting error
29750         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29751         timestamp.
29752
29753 2009-04-25  Jim Meyering  <meyering@redhat.com>
29754
29755         vc-list-files: restore lost functionality with subdir argument
29756         * build-aux/vc-list-files: When given a non-"." sub-directory
29757         argument, substitute the $dir/ prefix back onto each resulting name.
29758         Otherwise, coreutils' root_tests check would fail.
29759
29760 2009-04-24  Eric Blake  <ebb9@byu.net>
29761
29762         vc-list-files: ignore git symlinks
29763         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29764         than ls-files, to ignore git symlinks.
29765
29766         maint.mk: import improvements from m4
29767         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29768         (move_if_change): Delete unused macro.
29769         (news-date-check, vc-diff-check): Support VPATH builds.
29770         (announcement): Likewise.  Split --bootstrap-tools list...
29771         (boostrap-tools): ...into separate list, which can be overridden
29772         in cfg.mk.
29773         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29774         requiring dependency on useless-if-before-free module.
29775         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29776         Support VPATH builds.
29777
29778 2009-04-24  Jim Meyering  <meyering@redhat.com>
29779
29780         maint.mk: remove coreutils-specific rules and variables
29781         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29782         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29783         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29784
29785         maint.mk: remove obsolete rule
29786         * top/maint.mk (rel-check): Remove rule.
29787         (WGET, WGETFLAGS): Remove now-unused variables.
29788
29789 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29790
29791         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29792         consistency.
29793
29794         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29795         '$(PATH_SEPARATOR)' instead of ':'.
29796
29797 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29798
29799         * lib/getopt1.c (main): Use 'const' for static array.
29800
29801 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29802
29803         * top/maint.mk: Sync with coreutils.
29804         * NEWS: Explain incompatibilities.
29805
29806 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29807             Bruno Haible  <bruno@clisp.org>
29808
29809         Fix cross-compilation results.
29810         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29811         statement, as third argument of AC_TRY_RUN.
29812         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29813         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29814         Likewise.
29815         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29816         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29817         Likewise.
29818         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29819         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29820         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29821
29822 2009-04-20  Bruno Haible  <bruno@clisp.org>
29823
29824         Avoid test failure on mingw.
29825         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29826
29827 2009-04-20  Bruno Haible  <bruno@clisp.org>
29828
29829         Avoid compilation error on mingw.
29830         * modules/localename-tests (Depends-on): Add locale.
29831
29832 2009-04-19  Bruno Haible  <bruno@clisp.org>
29833
29834         Support for building a shared library on Windows platforms.
29835         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29836         (main): Test the presence of UNINORM_NFC here.
29837         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29838         (main): Test the presence of UNINORM_NFD here.
29839         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29840         (main): Test the presence of UNINORM_NFKC here.
29841         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29842         (main): Test the presence of UNINORM_NFKD here.
29843
29844 2009-04-19  Bruno Haible  <bruno@clisp.org>
29845
29846         Avoid a compiler warning.
29847         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29848         Change type of variable 'sequence'.
29849
29850 2009-04-19  Bruno Haible  <bruno@clisp.org>
29851
29852         * modules/configmake (Makefile.am): When the contents of configmake.h
29853         does not change, arrange to preserve its modification time.
29854
29855 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29856
29857         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29858         gettext domain.
29859
29860 2009-04-16  Jim Meyering  <meyering@redhat.com>
29861
29862         useless-if-before-free: improve conversion code
29863         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29864         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29865
29866 2009-04-14  Bruno Haible  <bruno@clisp.org>
29867
29868         * modules/fcntl (Depends-on): Add extensions.
29869         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29870
29871 2009-04-12  Ben Pfaff  <blp@gnu.org>
29872
29873         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29874         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29875
29876 2009-03-20  Ben Pfaff  <blp@gnu.org>
29877
29878         Make rename replace existing destinations on Windows.
29879         * m4/rename.m4: Add test for Mingw.
29880         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29881         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29882         * doc/posix-functions/rename.texi: Document.
29883
29884 2009-04-10  Bruno Haible  <bruno@clisp.org>
29885
29886         New include file "iconveh.h".
29887         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29888         * lib/striconveh.h: Include it.
29889         (enum iconv_ilseq_handler): Remove definition.
29890         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29891         striconveh.h.
29892         * lib/striconveha.c: Include striconveh.h.
29893         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29894         * modules/striconveh (Files): Add lib/iconveh.h.
29895         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29896         lib/striconveh.h.
29897
29898 2009-04-10  Bruno Haible  <bruno@clisp.org>
29899
29900         * lib/uniconv.h: Update comment.
29901
29902 2009-04-10  Bruno Haible  <bruno@clisp.org>
29903
29904         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29905         always.
29906         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29907         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29908         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29909         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29910         "unistring-notinline.h", so that the function gets defined always.
29911         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29912         * lib/unistr/u8-uctomb.c: Likewise.
29913         * lib/unistr/u16-mbtouc.c: Likewise.
29914         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29915         * lib/unistr/u16-uctomb.c: Likewise.
29916         * lib/unistr/u32-mbtouc.c: Likewise.
29917         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29918         * lib/unistr/u32-uctomb.c: Likewise.
29919
29920 2009-04-10  Bruno Haible  <bruno@clisp.org>
29921
29922         Mark 'utime' obsolete.
29923         * modules/utime (Status, Notice): New sections.
29924         Suggested by Jim Meyering.
29925
29926         Fix cross-compile guess for utime test.
29927         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29928         autoconf.
29929         * doc/posix-functions/utime.texi: Give more precisions.
29930         Reported by Jan <ipif@ymail.com>.
29931
29932 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29933
29934         filevercmp: correct today's change
29935         * lib/filevercmp.c: Also handle coreutils' test inputs.
29936         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29937
29938         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29939         for reporting it.
29940         * lib/filevercmp.c: Special handle for "", "." and "..".
29941         * tests/test-filevercmp.c: Enlarge the set suite.
29942
29943 2009-04-07  Jim Meyering  <meyering@redhat.com>
29944
29945         useless-if-before-free: show how to remove braced useless free, too
29946         * build-aux/useless-if-before-free: still only in a comment, though.
29947
29948 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29949
29950         maint.mk: import changes to syntax-check macros from coreutils
29951         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29952         Use them in the relevant macros.
29953
29954 2009-04-06  Bruno Haible  <bruno@clisp.org>
29955
29956         Fix unportable use of bit-fields.
29957         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29958         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29959         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29960
29961 2009-04-06  Bruno Haible  <bruno@clisp.org>
29962
29963         Avoid test failures on AIX and OSF/1.
29964         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29965         that malloc(0) = NULL.
29966         * tests/unicase/test-u8-tolower.c (check): Likewise.
29967         * tests/unicase/test-u8-totitle.c (check): Likewise.
29968         * tests/unicase/test-u8-toupper.c (check): Likewise.
29969         * tests/unicase/test-u16-casefold.c (check): Likewise.
29970         * tests/unicase/test-u16-tolower.c (check): Likewise.
29971         * tests/unicase/test-u16-totitle.c (check): Likewise.
29972         * tests/unicase/test-u16-toupper.c (check): Likewise.
29973         * tests/unicase/test-u32-casefold.c (check): Likewise.
29974         * tests/unicase/test-u32-tolower.c (check): Likewise.
29975         * tests/unicase/test-u32-totitle.c (check): Likewise.
29976         * tests/unicase/test-u32-toupper.c (check): Likewise.
29977         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29978         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29979         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29980         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29981         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29982         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29983         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29984         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29985         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29986         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29987         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29988         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29989
29990 2009-04-05  Bruno Haible  <bruno@clisp.org>
29991
29992         Work around an autoconf limitation.
29993         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29994         comment line if it would be longer than 3 KB.
29995
29996 2009-04-05  Bruno Haible  <bruno@clisp.org>
29997
29998         Avoid test failure with libiconv-1.13.
29999         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30000         of the expected test results.
30001
30002 2009-04-05  Bruno Haible  <bruno@clisp.org>
30003
30004         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30005         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30006         that it should be installed.
30007
30008 2009-04-05  Bruno Haible  <bruno@clisp.org>
30009
30010         * gnulib-tool: New option --copy-file.
30011         (func_usage): Document it.
30012         (func_dest_tmpfilename): Moved out of func_import.
30013         (func_add_file, func_update_file): New functions, extracted from
30014         func_import.
30015         (func_import): Update.
30016
30017 2009-04-05  Karl Berry  <karl@gnu.org>
30018
30019         * README: prominently mention gnulib-tool.
30020         Rearrange sections so getting the code is near the top.
30021
30022 2009-04-05  Bruno Haible  <bruno@clisp.org>
30023
30024         * lib/unicase.h: Mention u*_cmp2.
30025         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30026         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30027         * lib/unicase/ulc-casecmp.c: Likewise.
30028         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30029         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30030         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30031         unistr/u8-cmp.
30032         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30033         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30034         unistr/u16-cmp.
30035         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30036         unistr/u32-cmp.
30037
30038         * lib/uninorm.h: Mention u*_cmp2.
30039         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30040         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30041         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30042         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30043         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30044         unistr/u8-cmp.
30045         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30046         unistr/u16-cmp.
30047         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30048         unistr/u32-cmp.
30049
30050         New module 'unistr/u32-cmp2'.
30051         * lib/unistr/u32-cmp2.c: New file.
30052         * modules/unistr/u32-cmp2: New file.
30053
30054         New module 'unistr/u16-cmp2'.
30055         * lib/unistr/u16-cmp2.c: New file.
30056         * modules/unistr/u16-cmp2: New file.
30057
30058         New module 'unistr/u8-cmp2'.
30059         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30060         * lib/unistr/u8-cmp2.c: New file.
30061         * lib/unistr/u-cmp2.h: New file.
30062         * modules/unistr/u8-cmp2: New file.
30063
30064 2009-04-05  Bruno Haible  <bruno@clisp.org>
30065
30066         * lib/unictype.h (uc_property_is_valid): New macro.
30067         * tests/unictype/test-pr_byname.c (main): Use it.
30068
30069         * lib/unistr.h: Doc fixes.
30070         * lib/uniconv.h: Doc fixes.
30071         * lib/unictype.h: Doc fixes.
30072
30073 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30074
30075         Port coreutils 7.2 to Solaris 8.
30076
30077         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30078         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30079         for Solaris 8.  This is a bit of a hack, as it means it's the
30080         caller's responsibility to add -lnsl if needed, but most likely it
30081         won't be needed since only getaddrinfo uses this and getaddrinfo
30082         isn't needed on Solaris 8.
30083
30084         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30085         problem to Solaris 8 encountered with coreutils 7.2, which
30086         resulted in a message "fnmatch.c:292: warning: passing argument 4
30087         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30088         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30089
30090 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30091
30092         * m4/ld-version-script.m4: Add FIXME comment.
30093
30094 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30095
30096         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30097         SOVERSION variable.
30098
30099 2009-04-02  Bruno Haible  <bruno@clisp.org>
30100
30101         * Makefile (info, html, dvi, pdf): Combine the rules.
30102         Suggested by Jim Meyering.
30103
30104 2009-04-01  Bruno Haible  <bruno@clisp.org>
30105
30106         * Makefile (info, html, dvi, pdf): New targets.
30107         Reported by Reuben Thomas <rrt@sc3d.org>.
30108
30109 2009-04-01  Bruno Haible  <bruno@clisp.org>
30110
30111         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30112         can be put into PATH.
30113         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30114
30115 2009-04-01  Bruno Haible  <bruno@clisp.org>
30116
30117         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30118
30119 2009-04-01  Bruno Haible  <bruno@clisp.org>
30120
30121         Rename module 'visibility'.
30122         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30123         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30124         * doc/gnulib.texi: Update.
30125         * MODULES.html.sh (Misc): Update.
30126         * NEWS: Mention the change.
30127
30128 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30129
30130         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30131         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30132         Eric Blake <ebb9@byu.net> for review.
30133         * MODULES.html.sh: Add lib-msvc-compat.
30134         * doc/gnulib.texi: Link to new section.
30135         * m4/ld-output-def.m4: New file.
30136         * doc/ld-output-def.texi: New file.
30137
30138 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30139
30140         Rename ld-version-script to lib-symbol-versions.  Suggested by
30141         Bruno Haible <bruno@clisp.org>.
30142         * modules/ld-version-script: Renamed to lib-symbol-versions.
30143         * doc/ld-version-script.texi: Fix module name.
30144         * MODULES.html.sh: Add lib-symbol-versions.
30145
30146 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30147
30148         * modules/u64-tests: New file.
30149         * tests/test-u64.c: New file.
30150
30151 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30152
30153         * MODULES.html.sh: Mention u64.
30154         * modules/u64: New module.
30155         * modules/crypto/sha512: Depend on u64 module instead of providing
30156         u64.h.
30157
30158 2009-03-27  Eric Blake  <ebb9@byu.net>
30159
30160         test-strerror: make debugging EAI_SYSTEM easier
30161         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30162         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30163         failure was EAI_SYSTEM.
30164
30165 2009-03-25  Bruno Haible  <bruno@clisp.org>
30166
30167         Fix a problem with --enable-relocatable on Solaris 7.
30168         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30169         since 2008-02-24.
30170
30171 2009-03-25  Eric Blake  <ebb9@byu.net>
30172
30173         test-sockets: avoid gcc warning
30174         * tests/test-sockets.c (main): Silence compiler warning.
30175
30176 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30177
30178         New modules nproc, pthread, contributed by Glen Lenker.
30179
30180         * MODULES.html.sh: Add pthread, nproc.
30181         * lib/nproc.c: New file.
30182         * lib/nproc.h: New file.
30183         * lib/pthread.in.h: New file.
30184         * m4/pthread.m4: New file.
30185         * modules/nproc: New file.
30186         * modules/pthread: New file.
30187
30188 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30189
30190         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30191         New variable.
30192
30193 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30194
30195         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30196         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30197         * tests/test-filevercmp.c: Add tests for backup suffixes.
30198
30199 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30200
30201         * modules/stdlib (Depends-on): Add stdint, needed when defining
30202         struct random_data on, for example, HP-UX 10.20.  Reported by
30203         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30204
30205 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30206
30207         * lib/readline.c (readline): Call fflush on stdout after printing
30208         prompt.
30209
30210 2009-03-20  Bruno Haible  <bruno@clisp.org>
30211
30212         Remove dependency from 'close' module to -lws2_32 on native Windows.
30213         * lib/close-hook.h: New file.
30214         * lib/close-hook.c: New file.
30215         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30216         w32sock.h.
30217         (_gl_close_fd_maybe_socket): Remove function.
30218         (rpl_close): Invoke execute_all_close_hooks instead of
30219         _gl_close_fd_maybe_socket.
30220         * lib/sockets.c: Include close-hook.h, w32sock.h.
30221         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30222         (close_sockets_hook): New variable.
30223         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30224         (gl_sockets_cleanup): Unregister it.
30225         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30226         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30227         * modules/close-hook: New file.
30228         * modules/close (Files): Remove lib/w32sock.h.
30229         (Depends-on): Add close-hook.
30230         (Link): Remove section.
30231         * modules/sockets (Files): Add lib/w32sock.h.
30232         (Depends-on): Add close-hook.
30233         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30234         invocation.
30235         * NEWS: Mention that LIB_CLOSE is gone.
30236
30237 2009-03-23  Eric Blake  <ebb9@byu.net>
30238
30239         signal-tests: test previous patch
30240         * tests/test-signal.c: New file.
30241         * modules/signal-tests: Likewise.
30242
30243         signal.h: always support 'volatile sig_atomic_t'
30244         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30245         (gl_SIGNAL_H_DEFAULTS): Add a default.
30246         * modules/signal (Makefile.am): Substitute if needed.
30247         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30248         users can blindly add volatile.
30249         * doc/posix-headers/signal.texi (signal.h): Document it.
30250         Reported by Matthew Woehlke.
30251
30252 2009-03-23  Jim Meyering  <meyering@redhat.com>
30253
30254         pathmax: PATH_MAX: use pathconf only when available
30255         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30256         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30257         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30258         This avoids a link failure in a PSP cross-compilation environment
30259         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30260
30261         * lib/vasnprintf.c (divide): Fix typo in comment.
30262
30263 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30264
30265         * gnulib-tool (func_filter_filelist): Fix comment.
30266
30267 2009-03-20  Bruno Haible  <bruno@clisp.org>
30268
30269         Make sockets.h self-contained.
30270         * lib/sockets.c: Include sockets.h first.
30271         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30272
30273 2009-03-19  Eric Blake  <ebb9@byu.net>
30274
30275         doc: mention more functions added in cygwin 1.7.0
30276         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30277         addition.
30278         * doc/posix-functions/log2f.texi: Likewise.
30279
30280 2009-03-19  Jim Meyering  <meyering@redhat.com>
30281
30282         fsusage: avoid syntax error due to statement-before-declaration
30283         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30284         after all declarations.  Reported by Matthew Woehlke in
30285         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30286
30287 2009-03-18  Eric Blake  <ebb9@byu.net>
30288
30289         build-aux/compile: sync from automake
30290         * build-aux/compile: New file, from automake.
30291         * config/srclist.txt: Mention build-aux/compile.
30292
30293 2009-03-17  Bruno Haible  <bruno@clisp.org>
30294
30295         * lib/git-merge-changelog.c: Fix typo in comment.
30296         Reported by Reuben Thomas <rrt@sc3d.org>.
30297
30298 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30299
30300         * m4/regex.m4: update and improve help for
30301         --without-included-regex.
30302
30303 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30304
30305         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30306         failure on missing include files.
30307
30308 2009-03-17  Eric Blake  <ebb9@byu.net>
30309
30310         doc: mention more functions added in cygwin 1.7.0
30311         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30312         addition.
30313         * doc/posix-functions/fwscanf.texi: Likewise.
30314         * doc/posix-functions/swprintf.texi: Likewise.
30315         * doc/posix-functions/swscanf.texi: Likewise.
30316         * doc/posix-functions/vfwprintf.texi: Likewise.
30317         * doc/posix-functions/vfwscanf.texi: Likewise.
30318         * doc/posix-functions/vswprintf.texi: Likewise.
30319         * doc/posix-functions/vswscanf.texi: Likewise.
30320         * doc/posix-functions/vwprintf.texi: Likewise.
30321         * doc/posix-functions/vwscanf.texi: Likewise.
30322         * doc/posix-functions/wcscasecmp.texi: Likewise.
30323         * doc/posix-functions/wcsdup.texi: Likewise.
30324         * doc/posix-functions/wcsftime.texi: Likewise.
30325         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30326         * doc/posix-functions/wprintf.texi: Likewise.
30327         * doc/posix-functions/wscanf.texi: Likewise.
30328         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30329
30330 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30331
30332         maint.mk: really add $(AM_MAKEFLAGS)
30333         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30334         was inadvertently omitted in the last commit.
30335         Spotted by Bruno Haible.
30336
30337         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30338         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30339         $(AM_MAKEFLAGS)' rather than plain `make'.
30340
30341         gnulib-tool: execute $MAKE not make
30342         * gnulib-tool: Default $MAKE to 'make'.
30343         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30344         than make.  Initialize $MAKE in the do-autobuild script.
30345
30346         gnulib-tool: use $MAKE not make in generated files
30347         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30348         make, in generated files.  Initialize $MAKE in the do-autobuild
30349         script.
30350
30351         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30352
30353         GNUmakefile: disable parallelism only for multiple, recursive targets
30354         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30355         additions in the Makefile.
30356         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30357         by Automake.
30358         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30359         are listed on the command line and at least one of them is
30360         listed in $(ALL_RECURSIVE_TARGETS).
30361
30362 2009-03-14  Bruno Haible  <bruno@clisp.org>
30363
30364         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30365         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30366         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30367         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30368         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30369         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30370         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30371         unistr/u8-uctomb.
30372         * modules/unistr/u8-strchr (Depends-on): Likewise.
30373         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30374         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30375         unistr/u16-uctomb.
30376         * modules/unistr/u16-strchr (Depends-on): Likewise.
30377         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30378
30379 2009-03-12  Bruno Haible  <bruno@clisp.org>
30380
30381         Work around select() bug on Interix 3.5.
30382         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30383         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30384         * m4/select.m4: New file.
30385         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30386         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30387         * modules/select (Files): Add m4/select.m4.
30388         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30389         * modules/nanosleep (Depends-on): Add select.
30390         * modules/poll (Depends-on): Likewise.
30391         * doc/posix-functions/select.texi: Mention the Interix bug.
30392         Reported by Markus Duft <mduft@gentoo.org>.
30393
30394         * lib/select.c: Renamed from lib/winsock-select.c.
30395         * modules/select (Files): Add lib/select.c, remove
30396         lib/winsock-select.c.
30397         (configure.ac): Update.
30398
30399 2009-03-12  Jim Meyering  <meyering@redhat.com>
30400
30401         avoid gcc warnings about unused macro definitions
30402         * lib/readtokens.c (STREQ): Remove unused definition.
30403         * lib/xmalloc.c (SIZE_MAX): Likewise.
30404         * lib/openat-die.c (N_): Likewise.
30405         * lib/mountlist.c (SIZE_MAX): Remove definition.
30406         Instead, include <stdint.h>.
30407         * lib/readutmp.c: Likewise.
30408         * modules/readutmp (Depends-on): Add stdint.
30409         * modules/mountlist (Depends-on): Add stdint.
30410         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30411
30412 2009-03-10  Bruno Haible  <bruno@clisp.org>
30413
30414         Tests for module 'mbmemcasecoll'.
30415         * modules/mbmemcasecoll-tests: New file.
30416         * tests/test-mbmemcasecoll1.sh: New file.
30417         * tests/test-mbmemcasecoll2.sh: New file.
30418         * tests/test-mbmemcasecoll3.sh: New file.
30419         * tests/test-mbmemcasecoll.c: New file.
30420
30421         New module 'mbmemcasecoll'.
30422         * lib/mbmemcasecoll.h: New file.
30423         * lib/mbmemcasecoll.c: New file.
30424         * modules/mbmemcasecoll: New file.
30425
30426         * tests/test-mbmemcasecmp.h: New file, extracted from
30427         tests/test-mbmemcasecmp.c.
30428         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30429         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30430         (main): Update.
30431         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30432
30433 2009-03-09  Bruno Haible  <bruno@clisp.org>
30434
30435         Tests for module 'mbmemcasecmp'.
30436         * modules/mbmemcasecmp-tests: New file.
30437         * tests/test-mbmemcasecmp1.sh: New file.
30438         * tests/test-mbmemcasecmp2.sh: New file.
30439         * tests/test-mbmemcasecmp3.sh: New file.
30440         * tests/test-mbmemcasecmp.c: New file.
30441
30442         New module 'mbmemcasecmp'.
30443         * lib/mbmemcasecmp.h: New file.
30444         * lib/mbmemcasecmp.c: New file.
30445         * modules/mbmemcasecmp: New file.
30446
30447 2009-03-09  Bruno Haible  <bruno@clisp.org>
30448
30449         Tests for module 'unicase/ulc-casecoll'.
30450         * modules/unicase/ulc-casecoll-tests: New file.
30451         * tests/unicase/test-ulc-casecoll1.sh: New file.
30452         * tests/unicase/test-ulc-casecoll2.sh: New file.
30453         * tests/unicase/test-ulc-casecoll.c: New file.
30454
30455         New module 'unicase/ulc-casecoll'.
30456         * lib/unicase.h (ulc_casecoll): New declaration.
30457         * lib/unicase/ulc-casecoll.c: New file.
30458         * modules/unicase/ulc-casecoll: New file.
30459
30460         New module 'unicase/ulc-casexfrm'.
30461         * lib/unicase.h (ulc_casexfrm): New declaration.
30462         * lib/unicase/ulc-casexfrm.c: New file.
30463         * modules/unicase/ulc-casexfrm: New file.
30464
30465 2009-03-09  Bruno Haible  <bruno@clisp.org>
30466
30467         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30468         invocations.
30469
30470         * m4/mbscasecmp.m4: Remove file.
30471         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30472         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30473
30474         * m4/mbscasestr.m4: Remove file.
30475         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30476         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30477
30478         * m4/mbschr.m4: Remove file.
30479         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30480         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30481
30482         * m4/mbscspn.m4: Remove file.
30483         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30484         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30485
30486         * m4/mbslen.m4: Remove file.
30487         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30488         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30489
30490         * m4/mbsncasecmp.m4: Remove file.
30491         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30492         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30493
30494         * m4/mbsnlen.m4: Remove file.
30495         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30496         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30497
30498         * m4/mbspbrk.m4: Remove file.
30499         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30500         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30501
30502         * m4/mbspcasecmp.m4: Remove file.
30503         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30504         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30505
30506         * m4/mbsrchr.m4: Remove file.
30507         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30508         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30509
30510         * m4/mbssep.m4: Remove file.
30511         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30512         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30513
30514         * m4/mbsspn.m4: Remove file.
30515         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30516         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30517
30518         * m4/mbsstr.m4: Remove file.
30519         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30520         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30521
30522         * m4/mbstok_r.m4: Remove file.
30523         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30524         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30525
30526         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30527
30528         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30529         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30530
30531         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30532
30533 2009-03-08  Bruno Haible  <bruno@clisp.org>
30534
30535         Tests for module 'unicase/ulc-casecmp'.
30536         * modules/unicase/ulc-casecmp-tests: New file.
30537         * tests/unicase/test-ulc-casecmp1.sh: New file.
30538         * tests/unicase/test-ulc-casecmp2.sh: New file.
30539         * tests/unicase/test-ulc-casecmp.c: New file.
30540
30541         New module 'unicase/ulc-casecmp'.
30542         * lib/unicase.h (ulc_casecmp): New declaration.
30543         * lib/unicase/ulc-casecmp.c: New file.
30544         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30545         'const SRC_UNIT *'.
30546         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30547         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30548         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30549         * modules/unicase/ulc-casecmp: New file.
30550
30551         Tests for module 'unicase/u32-is-cased'.
30552         * modules/unicase/u32-is-cased-tests: New file.
30553         * tests/unicase/test-u32-is-cased.c: New file.
30554
30555         Tests for module 'unicase/u16-is-cased'.
30556         * modules/unicase/u16-is-cased-tests: New file.
30557         * tests/unicase/test-u16-is-cased.c: New file.
30558
30559         Tests for module 'unicase/u8-is-cased'.
30560         * modules/unicase/u8-is-cased-tests: New file.
30561         * tests/unicase/test-u8-is-cased.c: New file.
30562         * tests/unicase/test-is-cased.h: New file.
30563
30564         New module 'unicase/u32-is-cased'.
30565         * lib/unicase/u32-is-cased.c: New file.
30566         * modules/unicase/u32-is-cased: New file.
30567
30568         New module 'unicase/u16-is-cased'.
30569         * lib/unicase/u16-is-cased.c: New file.
30570         * modules/unicase/u16-is-cased: New file.
30571
30572         New module 'unicase/u8-is-cased'.
30573         * lib/unicase/u8-is-cased.c: New file.
30574         * lib/unicase/u-is-cased.h: New file.
30575         * modules/unicase/u8-is-cased: New file.
30576
30577         Tests for module 'unicase/u32-is-casefolded'.
30578         * modules/unicase/u32-is-casefolded-tests: New file.
30579         * tests/unicase/test-u32-is-casefolded.c: New file.
30580
30581         Tests for module 'unicase/u16-is-casefolded'.
30582         * modules/unicase/u16-is-casefolded-tests: New file.
30583         * tests/unicase/test-u16-is-casefolded.c: New file.
30584
30585         Tests for module 'unicase/u8-is-casefolded'.
30586         * modules/unicase/u8-is-casefolded-tests: New file.
30587         * tests/unicase/test-u8-is-casefolded.c: New file.
30588         * tests/unicase/test-is-casefolded.h: New file.
30589
30590         New module 'unicase/u32-is-casefolded'.
30591         * lib/unicase/u32-is-casefolded.c: New file.
30592         * modules/unicase/u32-is-casefolded: New file.
30593
30594         New module 'unicase/u16-is-casefolded'.
30595         * lib/unicase/u16-is-casefolded.c: New file.
30596         * modules/unicase/u16-is-casefolded: New file.
30597
30598         New module 'unicase/u8-is-casefolded'.
30599         * lib/unicase/u8-is-casefolded.c: New file.
30600         * modules/unicase/u8-is-casefolded: New file.
30601
30602         Tests for module 'unicase/u32-is-titlecase'.
30603         * modules/unicase/u32-is-titlecase-tests: New file.
30604         * tests/unicase/test-u32-is-titlecase.c: New file.
30605
30606         Tests for module 'unicase/u16-is-titlecase'.
30607         * modules/unicase/u16-is-titlecase-tests: New file.
30608         * tests/unicase/test-u16-is-titlecase.c: New file.
30609
30610         Tests for module 'unicase/u8-is-titlecase'.
30611         * modules/unicase/u8-is-titlecase-tests: New file.
30612         * tests/unicase/test-u8-is-titlecase.c: New file.
30613         * tests/unicase/test-is-titlecase.h: New file.
30614
30615         New module 'unicase/u32-is-titlecase'.
30616         * lib/unicase/u32-is-titlecase.c: New file.
30617         * modules/unicase/u32-is-titlecase: New file.
30618
30619         New module 'unicase/u16-is-titlecase'.
30620         * lib/unicase/u16-is-titlecase.c: New file.
30621         * modules/unicase/u16-is-titlecase: New file.
30622
30623         New module 'unicase/u8-is-titlecase'.
30624         * lib/unicase/u8-is-titlecase.c: New file.
30625         * modules/unicase/u8-is-titlecase: New file.
30626
30627         Tests for module 'unicase/u32-is-lowercase'.
30628         * modules/unicase/u32-is-lowercase-tests: New file.
30629         * tests/unicase/test-u32-is-lowercase.c: New file.
30630
30631         Tests for module 'unicase/u16-is-lowercase'.
30632         * modules/unicase/u16-is-lowercase-tests: New file.
30633         * tests/unicase/test-u16-is-lowercase.c: New file.
30634
30635         Tests for module 'unicase/u8-is-lowercase'.
30636         * modules/unicase/u8-is-lowercase-tests: New file.
30637         * tests/unicase/test-u8-is-lowercase.c: New file.
30638         * tests/unicase/test-is-lowercase.h: New file.
30639
30640         New module 'unicase/u32-is-lowercase'.
30641         * lib/unicase/u32-is-lowercase.c: New file.
30642         * modules/unicase/u32-is-lowercase: New file.
30643
30644         New module 'unicase/u16-is-lowercase'.
30645         * lib/unicase/u16-is-lowercase.c: New file.
30646         * modules/unicase/u16-is-lowercase: New file.
30647
30648         New module 'unicase/u8-is-lowercase'.
30649         * lib/unicase/u8-is-lowercase.c: New file.
30650         * modules/unicase/u8-is-lowercase: New file.
30651
30652         Tests for module 'unicase/u32-is-uppercase'.
30653         * modules/unicase/u32-is-uppercase-tests: New file.
30654         * tests/unicase/test-u32-is-uppercase.c: New file.
30655
30656         Tests for module 'unicase/u16-is-uppercase'.
30657         * modules/unicase/u16-is-uppercase-tests: New file.
30658         * tests/unicase/test-u16-is-uppercase.c: New file.
30659
30660         Tests for module 'unicase/u8-is-uppercase'.
30661         * modules/unicase/u8-is-uppercase-tests: New file.
30662         * tests/unicase/test-u8-is-uppercase.c: New file.
30663         * tests/unicase/test-is-uppercase.h: New file.
30664
30665         New module 'unicase/u32-is-uppercase'.
30666         * lib/unicase/u32-is-uppercase.c: New file.
30667         * modules/unicase/u32-is-uppercase: New file.
30668
30669         New module 'unicase/u16-is-uppercase'.
30670         * lib/unicase/u16-is-uppercase.c: New file.
30671         * modules/unicase/u16-is-uppercase: New file.
30672
30673         New module 'unicase/u8-is-uppercase'.
30674         * lib/unicase/u8-is-uppercase.c: New file.
30675         * modules/unicase/u8-is-uppercase: New file.
30676
30677         New module 'unicase/u32-is-invariant'.
30678         * lib/unicase/u32-is-invariant.c: New file.
30679         * modules/unicase/u32-is-invariant: New file.
30680
30681         New module 'unicase/u16-is-invariant'.
30682         * lib/unicase/u16-is-invariant.c: New file.
30683         * modules/unicase/u16-is-invariant: New file.
30684
30685         New module 'unicase/u8-is-invariant'.
30686         * lib/unicase/u8-is-invariant.c: New file.
30687         * lib/unicase/invariant.h: New file.
30688         * lib/unicase/u-is-invariant.h: New file.
30689         * modules/unicase/u8-is-invariant: New file.
30690
30691         Tests for module 'unicase/u32-casecoll'.
30692         * modules/unicase/u32-casecoll-tests: New file.
30693         * tests/unicase/test-u32-casecoll.c: New file.
30694
30695         Tests for module 'unicase/u16-casecoll'.
30696         * modules/unicase/u16-casecoll-tests: New file.
30697         * tests/unicase/test-u16-casecoll.c: New file.
30698
30699         Tests for module 'unicase/u8-casecoll'.
30700         * modules/unicase/u8-casecoll-tests: New file.
30701         * tests/unicase/test-u8-casecoll.c: New file.
30702
30703         New module 'unicase/u32-casecoll'.
30704         * lib/unicase/u32-casecoll.c: New file.
30705         * modules/unicase/u32-casecoll: New file.
30706
30707         New module 'unicase/u16-casecoll'.
30708         * lib/unicase/u16-casecoll.c: New file.
30709         * modules/unicase/u16-casecoll: New file.
30710
30711         New module 'unicase/u8-casecoll'.
30712         * lib/unicase/u8-casecoll.c: New file.
30713         * lib/unicase/u-casecoll.h: New file.
30714         * modules/unicase/u8-casecoll: New file.
30715
30716         New module 'unicase/u32-casexfrm'.
30717         * lib/unicase/u32-casexfrm.c: New file.
30718         * modules/unicase/u32-casexfrm: New file.
30719
30720         New module 'unicase/u16-casexfrm'.
30721         * lib/unicase/u16-casexfrm.c: New file.
30722         * modules/unicase/u16-casexfrm: New file.
30723
30724         New module 'unicase/u8-casexfrm'.
30725         * lib/unicase/u8-casexfrm.c: New file.
30726         * lib/unicase/u-casexfrm.h: New file.
30727         * modules/unicase/u8-casexfrm: New file.
30728
30729         Tests for module 'unicase/u32-casecmp'.
30730         * modules/unicase/u32-casecmp-tests: New file.
30731         * tests/unicase/test-u32-casecmp.c: New file.
30732
30733         Tests for module 'unicase/u16-casecmp'.
30734         * modules/unicase/u16-casecmp-tests: New file.
30735         * tests/unicase/test-u16-casecmp.c: New file.
30736
30737         Tests for module 'unicase/u8-casecmp'.
30738         * modules/unicase/u8-casecmp-tests: New file.
30739         * tests/unicase/test-u8-casecmp.c: New file.
30740         * tests/unicase/test-casecmp.h: New file.
30741
30742         New module 'unicase/u32-casecmp'.
30743         * lib/unicase/u32-casecmp.c: New file.
30744         * modules/unicase/u32-casecmp: New file.
30745
30746         New module 'unicase/u16-casecmp'.
30747         * lib/unicase/u16-casecmp.c: New file.
30748         * modules/unicase/u16-casecmp: New file.
30749
30750         New module 'unicase/u8-casecmp'.
30751         * lib/unicase/u8-casecmp.c: New file.
30752         * lib/unicase/u-casecmp.h: New file.
30753         * modules/unicase/u8-casecmp: New file.
30754
30755         Tests for module 'unicase/u32-casefold'.
30756         * modules/unicase/u32-casefold-tests: New file.
30757         * tests/unicase/test-u32-casefold.c: New file.
30758
30759         Tests for module 'unicase/u16-casefold'.
30760         * modules/unicase/u16-casefold-tests: New file.
30761         * tests/unicase/test-u16-casefold.c: New file.
30762
30763         Tests for module 'unicase/u8-casefold'.
30764         * modules/unicase/u8-casefold-tests: New file.
30765         * tests/unicase/test-u8-casefold.c: New file.
30766
30767         New module 'unicase/u32-casefold'.
30768         * lib/unicase/u32-casefold.c: New file.
30769         * modules/unicase/u32-casefold: New file.
30770
30771         New module 'unicase/u16-casefold'.
30772         * lib/unicase/u16-casefold.c: New file.
30773         * modules/unicase/u16-casefold: New file.
30774
30775         New module 'unicase/u8-casefold'.
30776         * lib/unicase/u8-casefold.c: New file.
30777         * lib/unicase/u-casefold.h: New file.
30778         * modules/unicase/u8-casefold: New file.
30779
30780         New module 'unicase/tocasefold'.
30781         * lib/unicase/casefold.h: New file.
30782         * lib/unicase/tocasefold.c: New file.
30783         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30784         * modules/unicase/tocasefold: New file.
30785
30786         Tests for module 'unicase/u32-totitle'.
30787         * modules/unicase/u32-totitle-tests: New file.
30788         * tests/unicase/test-u32-totitle.c: New file.
30789
30790         Tests for module 'unicase/u16-totitle'.
30791         * modules/unicase/u16-totitle-tests: New file.
30792         * tests/unicase/test-u16-totitle.c: New file.
30793
30794         Tests for module 'unicase/u8-totitle'.
30795         * modules/unicase/u8-totitle-tests: New file.
30796         * tests/unicase/test-u8-totitle.c: New file.
30797
30798         New module 'unicase/u32-totitle'.
30799         * lib/unicase/u32-totitle.c: New file.
30800         * modules/unicase/u32-totitle: New file.
30801
30802         New module 'unicase/u16-totitle'.
30803         * lib/unicase/u16-totitle.c: New file.
30804         * modules/unicase/u16-totitle: New file.
30805
30806         New module 'unicase/u8-totitle'.
30807         * lib/unicase/u8-totitle.c: New file.
30808         * lib/unicase/u-totitle.h: New file.
30809         * modules/unicase/u8-totitle: New file.
30810
30811         Tests for module 'unicase/u32-tolower'.
30812         * modules/unicase/u32-tolower-tests: New file.
30813         * tests/unicase/test-u32-tolower.c: New file.
30814
30815         Tests for module 'unicase/u16-tolower'.
30816         * modules/unicase/u16-tolower-tests: New file.
30817         * tests/unicase/test-u16-tolower.c: New file.
30818
30819         Tests for module 'unicase/u8-tolower'.
30820         * modules/unicase/u8-tolower-tests: New file.
30821         * tests/unicase/test-u8-tolower.c: New file.
30822
30823         New module 'unicase/u32-tolower'.
30824         * lib/unicase/u32-tolower.c: New file.
30825         * modules/unicase/u32-tolower: New file.
30826
30827         New module 'unicase/u16-tolower'.
30828         * lib/unicase/u16-tolower.c: New file.
30829         * modules/unicase/u16-tolower: New file.
30830
30831         New module 'unicase/u8-tolower'.
30832         * lib/unicase/u8-tolower.c: New file.
30833         * modules/unicase/u8-tolower: New file.
30834
30835         Tests for module 'unicase/u32-toupper'.
30836         * modules/unicase/u32-toupper-tests: New file.
30837         * tests/unicase/test-u32-toupper.c: New file.
30838
30839         Tests for module 'unicase/u16-toupper'.
30840         * modules/unicase/u16-toupper-tests: New file.
30841         * tests/unicase/test-u16-toupper.c: New file.
30842
30843         Tests for module 'unicase/u8-toupper'.
30844         * modules/unicase/u8-toupper-tests: New file.
30845         * tests/unicase/test-u8-toupper.c: New file.
30846
30847         New module 'unicase/u32-toupper'.
30848         * lib/unicase/u32-toupper.c: New file.
30849         * modules/unicase/u32-toupper: New file.
30850
30851         New module 'unicase/u16-toupper'.
30852         * lib/unicase/u16-toupper.c: New file.
30853         * modules/unicase/u16-toupper: New file.
30854
30855         New module 'unicase/u8-toupper'.
30856         * lib/unicase/u8-toupper.c: New file.
30857         * modules/unicase/u8-toupper: New file.
30858
30859         New module 'unicase/u32-casemap'.
30860         * lib/unicase/u32-casemap.c: New file.
30861         * modules/unicase/u32-casemap: New file.
30862
30863         New module 'unicase/u16-casemap'.
30864         * lib/unicase/u16-casemap.c: New file.
30865         * modules/unicase/u16-casemap: New file.
30866
30867         New module 'unicase/u8-casemap'.
30868         * lib/unicase/unicasemap.h: New file.
30869         * lib/unicase/u8-casemap.c: New file.
30870         * lib/unicase/u-casemap.h: New file.
30871         * modules/unicase/u8-casemap: New file.
30872
30873         New module 'unicase/special-casing'.
30874         * lib/unicase/special-casing.h: New file.
30875         * lib/unicase/special-casing.c: New file.
30876         * lib/unicase/special-casing-table.gperf: New file, generated by
30877         gen-uni-tables.c.
30878         * modules/unicase/special-casing: New file.
30879
30880         Tests for module 'unicase/locale-language'.
30881         * modules/unicase/locale-language-tests: New file.
30882         * tests/unicase/test-locale-language.sh: New file.
30883         * tests/unicase/test-locale-language.c: New file.
30884
30885         New module 'unicase/locale-language'.
30886         * lib/unicase/locale-language.c: New file.
30887         * lib/unicase/locale-languages.gperf: New file.
30888         * modules/unicase/locale-language: New file.
30889
30890         Generate more tables for case conversion and case folding.
30891         * lib/gen-uni-tables.c (SCC_*): New enum items.
30892         (struct special_casing_rule): New type.
30893         (casing_rules, num_casing_rules, allocated_casing_rules): New
30894         variables.
30895         (add_casing_rule, fill_casing_rules): New functions.
30896         (struct casefold_rule): New type.
30897         (casefolding_rules, num_casefolding_rules,
30898         allocated_casefolding_rules): New variables.
30899         (fill_casefolding_rules): New function.
30900         (unicode_casefold): New variable.
30901         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30902         sort_casing_rules, output_casing_rules): New functions.
30903         (main): Accept to more arguments: SpecialCasing.txt and
30904         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30905         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30906         Output mapping for casefolding.
30907
30908         * lib/unicase.h: Include stdbool.h, uninorm.h.
30909         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30910         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30911         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30912         arguments.
30913         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30914         resultp arguments.
30915         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30916         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30917         resultp arguments.
30918         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30919         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30920         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30921         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30922         declarations.
30923         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30924
30925 2009-03-08  Bruno Haible  <bruno@clisp.org>
30926
30927         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30928         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30929         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30930         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30931
30932 2009-03-07  Bruno Haible  <bruno@clisp.org>
30933
30934         Adjust u*_normcmp, u*_normcoll API.
30935         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30936         u16_normcoll, u32_normcoll): Change failure conventions.
30937         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30938         errno and return -1.
30939         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30940
30941 2009-03-07  Bruno Haible  <bruno@clisp.org>
30942
30943         Tests for module 'uninorm/u32-normcoll'.
30944         * modules/uninorm/u32-normcoll-tests: New file.
30945         * tests/uninorm/test-u32-normcoll.c: New file.
30946
30947         Tests for module 'uninorm/u16-normcoll'.
30948         * modules/uninorm/u16-normcoll-tests: New file.
30949         * tests/uninorm/test-u16-normcoll.c: New file.
30950
30951         Tests for module 'uninorm/u8-normcoll'.
30952         * modules/uninorm/u8-normcoll-tests: New file.
30953         * tests/uninorm/test-u8-normcoll.c: New file.
30954
30955 2009-03-07  Bruno Haible  <bruno@clisp.org>
30956
30957         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30958         tests/uninorm/test-u32-normcmp.c.
30959         * tests/uninorm/test-u32-normcmp.c: Include it.
30960         (test_nonascii): New function, extracted from main. Add some more
30961         tests.
30962         (main): Invoke test_ascii and test_nonascii.
30963         * modules/uninorm/u32-normcmp-tests (Files): Add
30964         tests/uninorm/test-u32-normcmp.h.
30965         (Depends-on): Remove uninorm/u32-normcmp.
30966
30967         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30968         tests/uninorm/test-u16-normcmp.c.
30969         * tests/uninorm/test-u16-normcmp.c: Include it.
30970         (test_nonascii): New function, extracted from main. Add some more
30971         tests.
30972         (main): Invoke test_ascii and test_nonascii.
30973         * modules/uninorm/u16-normcmp-tests (Files): Add
30974         tests/uninorm/test-u16-normcmp.h.
30975         (Depends-on): Remove uninorm/u16-normcmp.
30976
30977         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30978         tests/uninorm/test-u8-normcmp.c.
30979         * tests/uninorm/test-u8-normcmp.c: Include it.
30980         (test_nonascii): New function, extracted from main. Add some more
30981         tests.
30982         (main): Invoke test_ascii and test_nonascii.
30983         * modules/uninorm/u8-normcmp-tests (Files): Add
30984         tests/uninorm/test-u8-normcmp.h.
30985         (Depends-on): Remove uninorm/u8-normcmp.
30986
30987 2009-03-07  Bruno Haible  <bruno@clisp.org>
30988
30989         New module 'uninorm/u32-normcoll'.
30990         * lib/uninorm/u32-normcoll.c: New file.
30991         * modules/uninorm/u32-normcoll: New file.
30992
30993         New module 'uninorm/u16-normcoll'.
30994         * lib/uninorm/u16-normcoll.c: New file.
30995         * modules/uninorm/u16-normcoll: New file.
30996
30997         New module 'uninorm/u8-normcoll'.
30998         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30999         declarations.
31000         * lib/uninorm/u8-normcoll.c: New file.
31001         * lib/uninorm/u-normcoll.h: New file.
31002         * modules/uninorm/u8-normcoll: New file.
31003
31004         New module 'uninorm/u32-normxfrm'.
31005         * lib/uninorm/u32-normxfrm.c: New file.
31006         * modules/uninorm/u32-normxfrm: New file.
31007
31008         New module 'uninorm/u16-normxfrm'.
31009         * lib/uninorm/u16-normxfrm.c: New file.
31010         * modules/uninorm/u16-normxfrm: New file.
31011
31012         New module 'uninorm/u8-normxfrm'.
31013         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31014         declarations.
31015         * lib/uninorm/u8-normxfrm.c: New file.
31016         * lib/uninorm/u-normxfrm.h: New file.
31017         * modules/uninorm/u8-normxfrm: New file.
31018
31019 2009-03-07  Bruno Haible  <bruno@clisp.org>
31020
31021         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31022         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31023         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31024
31025 2009-03-07  Bruno Haible  <bruno@clisp.org>
31026
31027         New module 'memxfrm'.
31028         * lib/memxfrm.h: New file.
31029         * lib/memxfrm.c: New file.
31030         * modules/memxfrm: New file.
31031
31032 2009-03-07  Bruno Haible  <bruno@clisp.org>
31033
31034         New module 'memcmp2'.
31035         * lib/memcmp2.h: New file.
31036         * lib/memcmp2.c: New file.
31037         * modules/memcmp2: New file.
31038
31039 2009-03-07  Bruno Haible  <bruno@clisp.org>
31040
31041         Tests for module 'uninorm/decomposing-form'.
31042         * modules/uninorm/decomposing-form-tests: New file.
31043         * tests/uninorm/test-decomposing-form.c: New file.
31044
31045         New module 'uninorm/decomposing-form'.
31046         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31047         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31048         Add 'decomposing_variant' field.
31049         * lib/uninorm/decomposing-form.c: New file.
31050         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31051         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31052         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31053         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31054         * modules/uninorm/decomposing-form: New file.
31055         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31056         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31057
31058 2009-03-07  Bruno Haible  <bruno@clisp.org>
31059
31060         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31061         strings.
31062
31063 2009-03-06  Bruno Haible  <bruno@clisp.org>
31064
31065         Tests for module 'uninorm/u32-normcmp'.
31066         * tests/uninorm/test-u32-normcmp.c: New file.
31067         * modules/uninorm/u32-normcmp-tests: New file.
31068
31069         Tests for module 'uninorm/u16-normcmp'.
31070         * tests/uninorm/test-u16-normcmp.c: New file.
31071         * modules/uninorm/u16-normcmp-tests: New file.
31072
31073         Tests for module 'uninorm/u8-normcmp'.
31074         * tests/uninorm/test-u8-normcmp.c: New file.
31075         * modules/uninorm/u8-normcmp-tests: New file.
31076
31077         New module 'uninorm/u32-normcmp'.
31078         * lib/uninorm/u32-normcmp.c: New file.
31079         * modules/uninorm/u32-normcmp: New file.
31080
31081         New module 'uninorm/u16-normcmp'.
31082         * lib/uninorm/u16-normcmp.c: New file.
31083         * modules/uninorm/u16-normcmp: New file.
31084
31085         New module 'uninorm/u8-normcmp'.
31086         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31087         declarations.
31088         * lib/uninorm/u8-normcmp.c: New file.
31089         * lib/uninorm/u-normcmp.h: New file.
31090         * modules/uninorm/u8-normcmp: New file.
31091
31092 2009-03-06  Bruno Haible  <bruno@clisp.org>
31093
31094         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31095         Reported by Eric Blake.
31096
31097 2009-03-06  Eric Blake  <ebb9@byu.net>
31098             Bruno Haible  <bruno@clisp.org>
31099
31100         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31101         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31102         condition.
31103         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31104         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31105         condition.
31106         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31107
31108 2009-03-06  Eric Blake  <ebb9@byu.net>
31109
31110         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31111         to avoid compiler warnings.
31112         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31113
31114 2009-03-05  Bruno Haible  <bruno@clisp.org>
31115
31116         * tests/test-ftell.c (main): Disable test beyond end of file on
31117         FreeMiNT.
31118         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31119
31120 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31121
31122         * lib/filevercmp.c: Move hidden files up in ordering.
31123         * tests/test-filevercmp.c: Add tests for hidden files.
31124
31125 2009-03-04  Bruno Haible  <bruno@clisp.org>
31126
31127         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31128         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31129         AM_CFLAGS.
31130         Reported by Simon Josefsson.
31131
31132 2009-03-03  Bruno Haible  <bruno@clisp.org>
31133
31134         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31135         Reported by Simon Josefsson.
31136
31137         * doc/ld-version-script.texi: Update node reference.
31138
31139 2009-03-03  Bruno Haible  <bruno@clisp.org>
31140
31141         * modules/visibility (License): Change to 'unlimited'.
31142         Suggested by Simon Josefsson.
31143
31144 2009-03-03  Jim Meyering  <meyering@redhat.com>
31145
31146         unlinkdir: cannot_unlink_dir may modify process state
31147         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31148         it's neither thread-safe nor appropriate for use in a library.
31149
31150 2009-03-03  Eric Blake  <ebb9@byu.net>
31151
31152         test-closein: silence test under Darwin
31153         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31154         care if it dies from EPIPE or EBADF.
31155
31156 2009-03-03  Bruno Haible  <bruno@clisp.org>
31157
31158         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31159         earlier.
31160         * doc/visibility.texi: Fix @node and @section.
31161
31162 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31163
31164         * doc/gnulib.texi: Link to sections for ld version script and
31165         visibility.
31166         * doc/visibility.texi: Add @node and @section.
31167         * modules/ld-version-script: New module.
31168         * m4/ld-version-script.m4: New file.
31169         * doc/ld-version-script.texi: New file.
31170
31171 2009-03-02  David Lutterkort  <lutter@redhat.com>
31172
31173         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31175
31176 2009-03-02  Bruno Haible  <bruno@clisp.org>
31177
31178         * doc/visibility.texi: Mention libtool's -export-symbols option.
31179
31180 2009-03-02  Jim Meyering  <meyering@redhat.com>
31181
31182         announce-gen: new option: --no-print-checksums
31183         * build-aux/announce-gen (usage): Describe it.
31184         (print_checksums): Print a newline here, not in the [*] footnote.
31185         (main): Honor it.
31186
31187 2009-03-01  Bruno Haible  <bruno@clisp.org>
31188
31189         Use socklen_t in the native Windows replacements prototypes.
31190         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31191         instead of 'int'.
31192         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31193         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31194         * modules/getsockopt (Depends-on): Add socklen.
31195         * modules/setsockopt (Depends-on): Add socklen.
31196
31197 2009-03-01  Bruno Haible  <bruno@clisp.org>
31198
31199         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31200         least 4.2.
31201
31202 2009-03-01  Eric Blake  <ebb9@byu.net>
31203             Bruno Haible  <bruno@clisp.org>
31204
31205         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31206         error messages.
31207         * lib/wait-process.c (wait_subprocess): Omit error message about
31208         deadly signal sent to the child of termsigp != NULL.
31209
31210 2009-03-01  Eric Blake  <ebb9@byu.net>
31211
31212         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31213
31214 2009-03-01  Bruno Haible  <bruno@clisp.org>
31215
31216         Avoid a gcc warning.
31217         * tests/test-sched.c (b): Make global.
31218         Reported by Eric Blake.
31219
31220 2009-01-19  Martin Lambers  <marlam@marlam.de>
31221
31222         Provide POSIX semantics for socket timeout options on W32.
31223         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31224         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31225         * modules/setsockopt: Depend on sys_time module for struct timeval.
31226         * modules/getsockopt: Depend on sys_time module for struct timeval.
31227
31228 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31229
31230         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31231         __USE_GNU, for consistency with netdb.in.h.
31232         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31233
31234 2009-03-01  Bruno Haible  <bruno@clisp.org>
31235
31236         More support for FreeMiNT.
31237         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31238         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31239
31240 2009-03-01  Bruno Haible  <bruno@clisp.org>
31241
31242         More support for FreeMiNT.
31243         * lib/fpurge.c (fpurge): Correct last commit.
31244         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31245
31246 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31247
31248         Fix unportable awk script in vc-list-files.
31249         * build-aux/vc-list-files: In the replacement awk script, use
31250         substr with a second argument of 1, not zero.
31251         Report by Simon Josefsson.
31252
31253 2009-02-28  Bruno Haible  <bruno@clisp.org>
31254
31255         More support for FreeMiNT.
31256         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31257         to FreeMiNT today.
31258         * lib/fwriting.c (fwriting): Likewise.
31259         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31260
31261 2009-02-28  Bruno Haible  <bruno@clisp.org>
31262
31263         * tests/test-freadseek.c (main): Disable test beyond end of file on
31264         FreeMiNT.
31265         * tests/test-ftello.c (main): Likewise.
31266         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31267
31268 2009-02-28  Bruno Haible  <bruno@clisp.org>
31269
31270         Add tentative support for FreeMiNT.
31271         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31272         * lib/fpurge.c (fpurge): Likewise.
31273         * lib/freadable.c (freadable): Likewise.
31274         * lib/freading.c (freading): Likewise.
31275         * lib/freadptr.c (freadptr): Likewise.
31276         * lib/freadseek.c (freadptrinc): Likewise.
31277         * lib/fseeko.c (rpl_fseeko): Likewise.
31278         * lib/fseterr.c (fseterr): Likewise.
31279         * lib/fwritable.c (fwritable): Likewise.
31280         * lib/fwriting.c (fwriting): Likewise.
31281         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31282         Hourihane.
31283         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31284
31285 2009-02-28  Bruno Haible  <bruno@clisp.org>
31286
31287         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31288         SIGCHLD.
31289         Reported by Jim Meyering.
31290
31291 2009-02-28  Bruno Haible  <bruno@clisp.org>
31292
31293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31294         Mention the results of these tests on various platforms.
31295         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31296         order.
31297         * doc/posix-functions/printf.texi: Likewise.
31298         * doc/posix-functions/snprintf.texi: Likewise.
31299         * doc/posix-functions/sprintf.texi: Likewise.
31300         * doc/posix-functions/vfprintf.texi: Likewise.
31301         * doc/posix-functions/vprintf.texi: Likewise.
31302         * doc/posix-functions/vsnprintf.texi: Likewise.
31303         * doc/posix-functions/vsprintf.texi: Likewise.
31304         * doc/glibc-functions/obstack_printf.texi: Likewise.
31305         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31306
31307 2009-02-28  Bruno Haible  <bruno@clisp.org>
31308
31309         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31310         Reported by Loïc Minier <lool@dooz.org>.
31311
31312 2009-02-27  Bruno Haible  <bruno@clisp.org>
31313
31314         * gnulib-tool (func_import): Make the sed expression used to create the
31315         sed script for updating the .gitignore file POSIX compliant.
31316         Reported by Eric Blake.
31317
31318 2009-02-27  Bruno Haible  <bruno@clisp.org>
31319
31320         * gnulib-tool (sed): Don't alias as "sed --posix".
31321         Reported by Eric Blake.
31322
31323 2009-02-27  Bruno Haible  <bruno@clisp.org>
31324
31325         Avoid test link errors.
31326         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31327         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31328         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31329         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31331
31332 2009-02-27  Bruno Haible  <bruno@clisp.org>
31333
31334         Avoid spurious "(cached)" in configure output.
31335         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31336         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31337         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31338         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31339         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31340         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31341         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31342         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31343         Reported by Eric Blake.
31344
31345 2009-02-27  Eric Blake  <ebb9@byu.net>
31346
31347         printf: fix regression in previous patch
31348         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31349
31350 2009-02-27  Bruno Haible  <bruno@clisp.org>
31351
31352         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31353         value.
31354         * lib/stdint.in.h: Likewise.
31355         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31356
31357 2009-02-27  Eric Blake  <ebb9@byu.net>
31358
31359         doc: mention more functions added in cygwin 1.7.0
31360         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31361         addition.
31362         * doc/posix-functions/open_wmemstream.texi: Likewise.
31363         * doc/posix-functions/wcsnlen.texi: Likewise.
31364         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31365         * doc/posix-functions/wcstod.texi: Likewise.
31366         * doc/posix-functions/wcstof.texi: Likewise.
31367         * doc/posix-functions/wcstoimax.texi: Likewise.
31368         * doc/posix-functions/wcstok.texi: Likewise.
31369         * doc/posix-functions/wcstoumax.texi: Likewise.
31370
31371         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31373         * doc/posix-functions/fprintf.texi: Update.
31374         * doc/posix-functions/printf.texi: Update.
31375         * doc/posix-functions/snprintf.texi: Update.
31376         * doc/posix-functions/sprintf.texi: Update.
31377         * doc/posix-functions/vfprintf.texi: Update.
31378         * doc/posix-functions/vprintf.texi: Update.
31379         * doc/posix-functions/vsnprintf.texi: Update.
31380         * doc/posix-functions/vsprintf.texi: Update.
31381         * doc/glibc-functions/obstack_printf.texi: Update.
31382         * doc/glibc-functions/obstack_vprintf.texi: Update.
31383
31384 2009-02-26  Eric Blake  <ebb9@byu.net>
31385
31386         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31387         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31388         compilation bug by using runtime conversion.
31389         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31390         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31391         * modules/ceill-tests (Files): Use nan.h.
31392         * modules/floorl-tests (Files): Likewise.
31393         * modules/frexpl-tests (Files): Likewise.
31394         * modules/isnanl-tests (Files): Likewise.
31395         * modules/ldexpl-tests (Files): Likewise.
31396         * modules/roundl-tests (Files): Likewise.
31397         * modules/truncl-tests (Files): Likewise.
31398         * tests/test-ceill.c (main): Use a working NaN.
31399         * tests/test-floorl.c (main): Likewise.
31400         * tests/test-frexpl.c (main): Likewise.
31401         * tests/test-isnan.c (test_long_double): Likewise.
31402         * tests/test-isnanl.h (main): Likewise.
31403         * tests/test-ldexpl.h (main): Likewise.
31404         * tests/test-roundl.h (main): Likewise.
31405         * tests/test-truncl.h (main): Likewise.
31406         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31407
31408 2009-02-26  Eric Blake  <ebb9@byu.net>
31409             Bruno Haible  <bruno@clisp.org>
31410
31411         Work around a *printf bug with %ls on Solaris.
31412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31413         precision is specified, sprintf stops converting the wide string
31414         argument when the number of bytes that have been produced by this
31415         conversion equals or exceeds the precision.
31416         * doc/posix-functions/fprintf.texi: Update.
31417         * doc/posix-functions/printf.texi: Update.
31418         * doc/posix-functions/snprintf.texi: Update.
31419         * doc/posix-functions/sprintf.texi: Update.
31420         * doc/posix-functions/vfprintf.texi: Update.
31421         * doc/posix-functions/vprintf.texi: Update.
31422         * doc/posix-functions/vsnprintf.texi: Update.
31423         * doc/posix-functions/vsprintf.texi: Update.
31424         * doc/glibc-functions/obstack_printf.texi: Update.
31425         * doc/glibc-functions/obstack_vprintf.texi: Update.
31426
31427 2009-02-26  Eric Blake  <ebb9@byu.net>
31428
31429         stdlib: favor compiler check of random.h
31430         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31431         to avoid an ObjC random.h installed by Swarm.
31432
31433 2009-02-26  Bruno Haible  <bruno@clisp.org>
31434
31435         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31436         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31437         Reported by Gary V. Vaughan <gary@gnu.org>.
31438
31439 2009-02-26  Bruno Haible  <bruno@clisp.org>
31440
31441         Fix *printf behaviour regarding the %ls directive.
31442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31443         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31444         NEED_PRINTF_DIRECTIVE_LS.
31445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31446         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31447         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31448         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31449         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31450         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31451         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31453         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31454         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31455         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31456         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31457         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31458         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31459         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31460         * doc/posix-functions/fprintf.texi: Update.
31461         * doc/posix-functions/printf.texi: Update.
31462         * doc/posix-functions/snprintf.texi: Update.
31463         * doc/posix-functions/sprintf.texi: Update.
31464         * doc/posix-functions/vfprintf.texi: Update.
31465         * doc/posix-functions/vprintf.texi: Update.
31466         * doc/posix-functions/vsnprintf.texi: Update.
31467         * doc/posix-functions/vsprintf.texi: Update.
31468         * doc/glibc-functions/obstack_printf.texi: Update.
31469         * doc/glibc-functions/obstack_vprintf.texi: Update.
31470         Reported by Eric Blake.
31471
31472 2009-02-25  Bruno Haible  <bruno@clisp.org>
31473
31474         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31475         with known value.
31476         Reported by Gary V. Vaughan <gary@gnu.org>.
31477
31478 2009-02-25  Bruno Haible  <bruno@clisp.org>
31479
31480         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31481         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31482         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31483         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31484         Reported by Gary V. Vaughan <gary@gnu.org>.
31485
31486 2009-02-25  Bruno Haible  <bruno@clisp.org>
31487
31488         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31489         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31490         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31491         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31492         Reported by Gary V. Vaughan <gary@gnu.org>.
31493
31494 2009-02-25  Eric Blake  <ebb9@byu.net>
31495
31496         tests: skip fseek/ftell tests if ungetc is broken
31497         * m4/ungetc.m4: New file.
31498         * modules/fseek-tests: Split test, so ungetc dependency is
31499         separate from rest of test.
31500         * modules/fseeko-tests: Likewise.
31501         * modules/ftell-tests: Likewise.
31502         * modules/ftello-tests: Likewise.
31503         * tests/test-fseek.c (main): Isolate ungetc dependency.
31504         * tests/test-fseeko.c (main): Likewise.
31505         * tests/test-ftell.c (main): Likewise.
31506         * tests/test-ftello.c (main): Likewise.
31507         * tests/test-fseek2.sh: New file.
31508         * tests/test-fseeko2.sh: Likewise.
31509         * tests/test-ftell2.sh: Likewise.
31510         * tests/test-ftello2.sh: Likewise.
31511
31512 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31513
31514         test-getaddrinfo: fix usage of skip return code 77
31515         * tests/test-gettaddrinfo.c: Return skip code 77 only
31516         for first occurance of skip (4x77 is not 77)
31517
31518 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31519
31520         strtod: avoid C99 decl-after-statement
31521         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31522
31523 2009-02-24  Eric Blake  <ebb9@byu.net>
31524
31525         strtod: detect HP-UX 11.31 bug
31526         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31527         Reported by Gary V. Vaughan.
31528
31529 2009-02-23  Bruno Haible  <bruno@clisp.org>
31530
31531         Fix invalid read past end of memory block.
31532         * lib/vasnprintf.c (DCHAR_SET): Define.
31533         (local_wcslen): Define only when needed.
31534         (local_strnlen, local_wcsnlen): New functions.
31535         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31536         directives that involve a conversion ourselves.
31537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31538         wcsnlen, mbrtowc, wcrtomb.
31539         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31540         * tests/test-vasprintf-posix.c (test_function): Likewise.
31541         * tests/test-snprintf-posix.h (test_function): Likewise.
31542         * tests/test-sprintf-posix.h (test_function): Likewise.
31543         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31544
31545 2009-02-22  Bruno Haible  <bruno@clisp.org>
31546
31547         Implement new clarified decomposition of Hangul syllables.
31548         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31549         of type LTV, return only a pairwise decomposition.
31550         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31551         Likewise.
31552         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31553         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31554         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31555
31556 2009-02-22  Bruno Haible  <bruno@clisp.org>
31557
31558         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31559         zero-length results and shrink excess allocated memory.
31560         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31561         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31562         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31563         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31564         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31565         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31566         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31567         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31568         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31569         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31570         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31571         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31572
31573 2009-02-21  Bruno Haible  <bruno@clisp.org>
31574
31575         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31576         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31577         spaces after a period. Put a space between a macro name and its
31578         argument list. Trivial rewordings.
31579         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31580         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31581         (main): Return 0 explicitly.
31582
31583 2009-02-21  Bruno Haible  <bruno@clisp.org>
31584
31585         Tests for module 'uninorm/filter'.
31586         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31587         * modules/uninorm/filter-tests: New file.
31588
31589         New module 'uninorm/filter'.
31590         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31591         uninorm_filter_flush, uninorm_filter_free): New declarations.
31592         * lib/uninorm/uninorm-filter.c: New file.
31593         * modules/uninorm/filter: New file.
31594
31595 2009-02-21  Bruno Haible  <bruno@clisp.org>
31596
31597         Tests for module 'uninorm/nfkc'.
31598         * tests/uninorm/test-nfkc.c: New file.
31599         * tests/uninorm/test-u8-nfkc.c: New file.
31600         * tests/uninorm/test-u16-nfkc.c: New file.
31601         * tests/uninorm/test-u32-nfkc.c: New file.
31602         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31603         * tests/uninorm/test-u32-nfkc-big.c: New file.
31604         * modules/uninorm/nfkc-tests: New file.
31605
31606         New module 'uninorm/nfkc'.
31607         * lib/uninorm/nfkc.c: New file.
31608         * modules/uninorm/nfkc: New file.
31609
31610         Tests for module 'uninorm/nfkd'.
31611         * tests/uninorm/test-nfkd.c: New file.
31612         * tests/uninorm/test-u8-nfkd.c: New file.
31613         * tests/uninorm/test-u16-nfkd.c: New file.
31614         * tests/uninorm/test-u32-nfkd.c: New file.
31615         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31616         * tests/uninorm/test-u32-nfkd-big.c: New file.
31617         * modules/uninorm/nfkd-tests: New file.
31618
31619         New module 'uninorm/nfkd'.
31620         * lib/uninorm/nfkd.c: New file.
31621         * modules/uninorm/nfkd: New file.
31622
31623         Tests for module 'uninorm/nfc'.
31624         * tests/uninorm/test-nfc.c: New file.
31625         * tests/uninorm/test-u8-nfc.c: New file.
31626         * tests/uninorm/test-u16-nfc.c: New file.
31627         * tests/uninorm/test-u32-nfc.c: New file.
31628         * tests/uninorm/test-u32-nfc-big.sh: New file.
31629         * tests/uninorm/test-u32-nfc-big.c: New file.
31630         * modules/uninorm/nfc-tests: New file.
31631
31632         New module 'uninorm/nfc'.
31633         * lib/uninorm/nfc.c: New file.
31634         * modules/uninorm/nfc: New file.
31635
31636         Tests for module 'uninorm/nfd'.
31637         * tests/uninorm/test-nfd.c: New file.
31638         * tests/uninorm/test-u8-nfd.c: New file.
31639         * tests/uninorm/test-u16-nfd.c: New file.
31640         * tests/uninorm/test-u32-nfd.c: New file.
31641         * tests/uninorm/test-u32-nfd-big.sh: New file.
31642         * tests/uninorm/test-u32-nfd-big.c: New file.
31643         * tests/uninorm/test-u32-normalize-big.h: New file.
31644         * tests/uninorm/test-u32-normalize-big.c: New file.
31645         * tests/uninorm/NormalizationTest.txt: New file, created from
31646         Unicode 5.1.0 NormalizationTest.txt.
31647         * modules/uninorm/nfd-tests: New file.
31648
31649         New module 'uninorm/nfd'.
31650         * lib/uninorm/nfd.c: New file.
31651         * modules/uninorm/nfd: New file.
31652
31653         New module 'uninorm/u32-normalize'.
31654         * lib/uninorm/u32-normalize.c: New file.
31655         * modules/uninorm/u32-normalize: New file.
31656
31657         New module 'uninorm/u16-normalize'.
31658         * lib/uninorm/u16-normalize.c: New file.
31659         * modules/uninorm/u16-normalize: New file.
31660
31661         New module 'uninorm/u8-normalize'.
31662         * lib/uninorm/u8-normalize.c: New file.
31663         * lib/uninorm/normalize-internal.h: New file.
31664         * lib/uninorm/u-normalize-internal.h: New file.
31665         * modules/uninorm/u8-normalize: New file.
31666
31667         New module 'uninorm/decompose-internal'.
31668         * lib/uninorm/decompose-internal.c: New file.
31669         * modules/uninorm/decompose-internal: New file.
31670
31671         Tests for module 'uninorm/composition'.
31672         * tests/uninorm/test-composition.c: New file.
31673         * modules/uninorm/composition-tests: New file.
31674
31675         New module 'uninorm/composition'.
31676         * lib/uninorm/composition.c: New file.
31677         * lib/uninorm/composition-table.gperf: New file, generated by
31678         gen-uni-tables.
31679         * modules/uninorm/composition: New file.
31680
31681         Tests for module 'uninorm/compat-decomposition'.
31682         * tests/uninorm/test-compat-decomposition.c: New file.
31683         * modules/uninorm/compat-decomposition-tests: New file.
31684
31685         New module 'uninorm/compat-decomposition'.
31686         * lib/uninorm/decompose-internal.h: New file.
31687         * lib/uninorm/compat-decomposition.c: New file.
31688         * modules/uninorm/compat-decomposition: New file.
31689
31690         Tests for module 'uninorm/canonical-decomposition'.
31691         * tests/uninorm/test-canonical-decomposition.c: New file.
31692         * modules/uninorm/canonical-decomposition-tests: New file.
31693
31694         New module 'uninorm/canonical-decomposition'.
31695         * lib/uninorm/canonical-decomposition.c: New file.
31696         * modules/uninorm/canonical-decomposition: New file.
31697
31698         Tests for module 'uninorm/decomposition'.
31699         * tests/uninorm/test-decomposition.c: New file.
31700         * modules/uninorm/decomposition-tests: New file.
31701
31702         New module 'uninorm/decomposition'.
31703         * lib/uninorm/decomposition.c: New file.
31704         * modules/uninorm/decomposition: New file.
31705
31706         New module 'uninorm/decomposition-table'.
31707         * lib/uninorm/decomposition-table.h: New file.
31708         * lib/uninorm/decomposition-table.c: New file.
31709         * lib/uninorm/decomposition-table1.h: New file, generated by
31710         gen-uni-tables.
31711         * lib/uninorm/decomposition-table2.h: New file, generated by
31712         gen-uni-tables.
31713         * modules/uninorm/decomposition-table: New file.
31714
31715         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31716         (UC_DECOMP_*): New enumeration items.
31717         (get_decomposition): New function.
31718         (struct decomp_table): New type.
31719         (output_decomposition, output_decomposition_tables): New functions.
31720         (unicode_composition_exclusions): New variable.
31721         (fill_composition_exclusions, debug_output_composition_tables): New
31722         functions.
31723         (main): Accept one more argument. Invoke fill_composition_exclusions.
31724         Output decomposition and composition tables.
31725
31726         New module 'uninorm/base'.
31727         * lib/uninorm.h: New file.
31728         * lib/unictype.h: Update comment.
31729         * modules/uninorm/base: New file.
31730
31731 2009-02-21  David Lutterkort  <lutter@redhat.com>
31732
31733         Tests for module 'safe-alloc'.
31734         * tests/test-safe-alloc.c: New file.
31735         * modules/safe-alloc-tests: New file.
31736
31737         New module 'safe-alloc'.
31738         * lib/safe-alloc.h: New file.
31739         * lib/safe-alloc.c: New file.
31740         * m4/safe-alloc.m4: New file.
31741         * modules/safe-alloc: New file.
31742         * doc/safe-alloc.texi: New file.
31743         * doc/gnulib.texi: Include it.
31744         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31745         safe-alloc.
31746
31747 2009-02-18  Bruno Haible  <bruno@clisp.org>
31748
31749         Fix link error on non-glibc systems.
31750         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31751         variable.
31752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31753
31754 2009-02-18  Jim Meyering  <meyering@redhat.com>
31755
31756         fts: avoid used-uninitialized error due to recent change
31757         * lib/fts.c (fts_read): Guard uses of the new member,
31758         parent->fts_n_dirs_remaining, since it's not relevant for
31759         the parent of a directory specified on the command-line.
31760
31761 2009-02-17  James Youngman  <jay@gnu.org>
31762             Bruno Haible  <bruno@clisp.org>
31763
31764         * m4/include_next.m4: Reformulate comment.
31765
31766 2009-02-16  Jim Meyering  <meyering@redhat.com>
31767
31768         fts: add #if guards so that the fts_lgpl module still builds
31769         * lib/fts.c: Guard just-added hash-table-using parts with
31770         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31771         Reported by Simon Josefsson.
31772
31773 2009-02-15  Bruno Haible  <bruno@clisp.org>
31774
31775         * modules/array-mergesort-tests: New file.
31776         * tests/test-array-mergesort.c: New file.
31777
31778         New module 'array-mergesort'.
31779         * modules/array-mergesort: New file.
31780         * lib/array-mergesort.h: New file.
31781
31782 2009-02-15  Bruno Haible  <bruno@clisp.org>
31783
31784         Fix 2009-02-07 commit.
31785         * lib/gen-uni-tables.c (output_predicate, output_category,
31786         output_combclass, output_bidi_category, output_decimal_digit,
31787         output_digit, output_numeric, output_mirror, output_scripts,
31788         output_ident_category, output_simple_mapping): Fix format directives.
31789         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31790
31791 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31792
31793         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31794         fixes are available from IBM.
31795
31796 2009-02-13  Jim Meyering  <meyering@redhat.com>
31797
31798         fts: arrange not to stat non-directories in more cases
31799         This makes GNU find (when it doesn't need to stat each file)
31800         *much* more efficient at traversing reiserfs file systems.
31801         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31802         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31803         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31804         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31805         (leaf_optimization_applies): New function.
31806         (LCO_hash, LCO_compare): New helper functions.
31807         (link_count_optimize_ok): New function.
31808         (fts_stat): Initialize new member (if dir).
31809         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31810         we've just stat'ed a directory.  Skip the stat call when possible.
31811         ---
31812         Note this AFS-related exchange:
31813         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31814         and note find's pioctl call in find/fstype.c.
31815         But that is necessary only if you want to enable the
31816         optimization for AFS, and for now, I don't.
31817
31818         fts: move a function definition "up" (no semantic change)
31819         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31820         "up" to precede upcoming use of a related function.
31821
31822 2009-02-11  Jim Meyering  <meyering@redhat.com>
31823
31824         fts: correct internal computation of nlinks (optimization-related)
31825         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31826         whether the current entry is a directory, so don't test it.
31827
31828 2009-02-10  Bruno Haible  <bruno@clisp.org>
31829
31830         Tests for module 'uniwbrk/ulc-wordbreaks'.
31831         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31832         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31833         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31834
31835         Tests for module 'uniwbrk/u32-wordbreaks'.
31836         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31837         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31838
31839         Tests for module 'uniwbrk/u16-wordbreaks'.
31840         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31841         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31842
31843         Tests for module 'uniwbrk/u8-wordbreaks'.
31844         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31845         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31846
31847 2009-02-10  Bruno Haible  <bruno@clisp.org>
31848
31849         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31850         property.
31851         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31852         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31853         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31854
31855 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31856
31857         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31858         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31859
31860 2009-02-10  Bruno Haible  <bruno@clisp.org>
31861
31862         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31863         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31864         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31865         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31866         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31867         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31868
31869 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31870
31871         * lib/sockets.h (gl_fd_to_handle): New function.
31872
31873         * tests/test-sockets.c: Call gl_fd_to_handle.
31874
31875 2009-02-09  Bruno Haible  <bruno@clisp.org>
31876
31877         * doc/havelib.texi: Document the conventions on bi-arch systems.
31878
31879 2009-02-08  Bruno Haible  <bruno@clisp.org>
31880
31881         Document the AC_LIB_LINKFLAGS macro.
31882         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31883         * doc/gnulib.texi: Include it.
31884
31885 2009-02-08  Bruno Haible  <bruno@clisp.org>
31886
31887         Fix wrong order of sections, compared to TOC.
31888         * doc/gnulib.texi: Include relocatable-maint.texi after the
31889         "Regular expressions" node, not before.
31890
31891 2009-02-08  Bruno Haible  <bruno@clisp.org>
31892
31893         Tests for module 'unicase/totitle'.
31894         * modules/unicase/totitle-tests: New file.
31895
31896         Tests for module 'unicase/tolower'.
31897         * modules/unicase/tolower-tests: New file.
31898
31899         Tests for module 'unicase/toupper'.
31900         * modules/unicase/toupper-tests: New file.
31901         * tests/unicase/test-mapping-part1.h: New file.
31902         * tests/unicase/test-mapping-part2.h: New file.
31903
31904         New module 'unicase/totitle'.
31905         * modules/unicase/totitle: New file.
31906         * lib/unicase/totitle.c: New file.
31907
31908         New module 'unicase/tolower'.
31909         * modules/unicase/tolower: New file.
31910         * lib/unicase/tolower.c: New file.
31911
31912         New module 'unicase/toupper'.
31913         * modules/unicase/toupper: New file.
31914         * lib/unicase/toupper.c: New file.
31915         * lib/unicase/simple-mapping.h: New file.
31916
31917         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31918         (mapping_table): New structure.
31919         (output_simple_mapping): New function.
31920         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31921         * modules/gen-uni-tables (Description): Update.
31922         * lib/unicase/toupper.h: New file, automatically generated by
31923         gen-uni-tables.
31924         * lib/unicase/tolower.h: New file, automatically generated by
31925         gen-uni-tables.
31926         * lib/unicase/totitle.h: New file, automatically generated by
31927         gen-uni-tables.
31928         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31929         gen-uni-tables.
31930         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31931         gen-uni-tables.
31932         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31933         gen-uni-tables.
31934
31935         New module 'unicase/base'.
31936         * modules/unicase/base: New file.
31937         * lib/unicase.h: New file.
31938
31939 2009-02-08  Bruno Haible  <bruno@clisp.org>
31940
31941         New module 'uniwbrk/ulc-wordbreaks'.
31942         * modules/uniwbrk/ulc-wordbreaks: New file.
31943         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31944
31945         New module 'uniwbrk/u32-wordbreaks'.
31946         * modules/uniwbrk/u32-wordbreaks: New file.
31947         * lib/uniwbrk/u32-wordbreaks.c: New file.
31948
31949         New module 'uniwbrk/u16-wordbreaks'.
31950         * modules/uniwbrk/u16-wordbreaks: New file.
31951         * lib/uniwbrk/u16-wordbreaks.c: New file.
31952
31953         New module 'uniwbrk/u8-wordbreaks'.
31954         * modules/uniwbrk/u8-wordbreaks: New file.
31955         * lib/uniwbrk/u8-wordbreaks.c: New file.
31956         * lib/uniwbrk/u-wordbreaks.h: New file.
31957
31958         New module 'uniwbrk/table'.
31959         * modules/uniwbrk/table: New file.
31960         * lib/uniwbrk/wbrktable.h: New file.
31961         * lib/uniwbrk/wbrktable.c: New file.
31962
31963         New module 'uniwbrk/wordbreak-property'.
31964         * modules/uniwbrk/wordbreak-property: New file.
31965         * lib/uniwbrk/wordbreak-property.c: New file.
31966
31967         * lib/gen-uni-tables.c (WBP_*): New enum items.
31968         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31969         (unicode_org_wbp): New variable.
31970         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31971         New functions.
31972         (wbp_table): New structure.
31973         (output_wbp, output_wbrk_tables): New functions.
31974         (main): Accept additional argument. Invoke fill_org_wbp,
31975         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31976         output_wbrk_tables.
31977         * modules/gen-uni-tables (Description): Update.
31978         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31979         gen-uni-tables.
31980
31981         New module 'uniwbrk/base'.
31982         * modules/uniwbrk/base: New file.
31983         * lib/uniwbrk.h: New file.
31984
31985 2009-02-08  Bruno Haible  <bruno@clisp.org>
31986
31987         Update to Unicode 5.1.0.
31988         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31989         U+2185..U+2188.
31990         (is_property_default_ignorable_code_point): Don't include characters
31991         of category Cc or Cs and not-a-characters.
31992         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31993         U+0D79, U+109E, U+109F, U+A60C.
31994         * lib/unictype/bidi_of.h: Regenerated.
31995         * lib/unictype/blocks.h: Regenerated.
31996         * lib/unictype/categ_C.h: Regenerated.
31997         * lib/unictype/categ_Cf.h: Regenerated.
31998         * lib/unictype/categ_Cn.h: Regenerated.
31999         * lib/unictype/categ_L.h: Regenerated.
32000         * lib/unictype/categ_Ll.h: Regenerated.
32001         * lib/unictype/categ_Lm.h: Regenerated.
32002         * lib/unictype/categ_Lo.h: Regenerated.
32003         * lib/unictype/categ_Lu.h: Regenerated.
32004         * lib/unictype/categ_M.h: Regenerated.
32005         * lib/unictype/categ_Mc.h: Regenerated.
32006         * lib/unictype/categ_Me.h: Regenerated.
32007         * lib/unictype/categ_Mn.h: Regenerated.
32008         * lib/unictype/categ_N.h: Regenerated.
32009         * lib/unictype/categ_Nd.h: Regenerated.
32010         * lib/unictype/categ_Nl.h: Regenerated.
32011         * lib/unictype/categ_No.h: Regenerated.
32012         * lib/unictype/categ_P.h: Regenerated.
32013         * lib/unictype/categ_Pd.h: Regenerated.
32014         * lib/unictype/categ_Pe.h: Regenerated.
32015         * lib/unictype/categ_Pf.h: Regenerated.
32016         * lib/unictype/categ_Pi.h: Regenerated.
32017         * lib/unictype/categ_Po.h: Regenerated.
32018         * lib/unictype/categ_Ps.h: Regenerated.
32019         * lib/unictype/categ_S.h: Regenerated.
32020         * lib/unictype/categ_Sk.h: Regenerated.
32021         * lib/unictype/categ_Sm.h: Regenerated.
32022         * lib/unictype/categ_So.h: Regenerated.
32023         * lib/unictype/categ_of.h: Regenerated.
32024         * lib/unictype/combining.h: Regenerated.
32025         * lib/unictype/ctype_alnum.h: Regenerated.
32026         * lib/unictype/ctype_alpha.h: Regenerated.
32027         * lib/unictype/ctype_graph.h: Regenerated.
32028         * lib/unictype/ctype_lower.h: Regenerated.
32029         * lib/unictype/ctype_print.h: Regenerated.
32030         * lib/unictype/ctype_punct.h: Regenerated.
32031         * lib/unictype/ctype_upper.h: Regenerated.
32032         * lib/unictype/decdigit.h: Regenerated.
32033         * lib/unictype/digit.h: Regenerated.
32034         * lib/unictype/mirror.h: Regenerated.
32035         * lib/unictype/numeric.h: Regenerated.
32036         * lib/unictype/pr_alphabetic.h: Regenerated.
32037         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32038         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32039         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32040         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32041         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32042         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32043         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32044         * lib/unictype/pr_combining.h: Regenerated.
32045         * lib/unictype/pr_dash.h: Regenerated.
32046         * lib/unictype/pr_decimal_digit.h: Regenerated.
32047         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32048         * lib/unictype/pr_deprecated.h: Regenerated.
32049         * lib/unictype/pr_diacritic.h: Regenerated.
32050         * lib/unictype/pr_extender.h: Regenerated.
32051         * lib/unictype/pr_format_control.h: Regenerated.
32052         * lib/unictype/pr_grapheme_base.h: Regenerated.
32053         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32054         * lib/unictype/pr_grapheme_link.h: Regenerated.
32055         * lib/unictype/pr_id_continue.h: Regenerated.
32056         * lib/unictype/pr_id_start.h: Regenerated.
32057         * lib/unictype/pr_ideographic.h: Regenerated.
32058         * lib/unictype/pr_ignorable_control.h: Regenerated.
32059         * lib/unictype/pr_lowercase.h: Regenerated.
32060         * lib/unictype/pr_math.h: Regenerated.
32061         * lib/unictype/pr_numeric.h: Regenerated.
32062         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32063         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32064         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32065         * lib/unictype/pr_other_id_continue.h: Regenerated.
32066         * lib/unictype/pr_other_lowercase.h: Regenerated.
32067         * lib/unictype/pr_other_math.h: Regenerated.
32068         * lib/unictype/pr_punctuation.h: Regenerated.
32069         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32070         * lib/unictype/pr_soft_dotted.h: Regenerated.
32071         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32072         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32073         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32074         * lib/unictype/pr_uppercase.h: Regenerated.
32075         * lib/unictype/pr_xid_continue.h: Regenerated.
32076         * lib/unictype/pr_xid_start.h: Regenerated.
32077         * lib/unictype/pr_zero_width.h: Regenerated.
32078         * lib/unictype/scripts.h: Regenerated.
32079         * lib/unictype/scripts_byname.gperf: Regenerated.
32080         * lib/unictype/sy_java_ident.h: Regenerated.
32081         * lib/unilbrk/lbrkprop1.h: Regenerated.
32082         * lib/unilbrk/lbrkprop2.h: Regenerated.
32083         * tests/unictype/test-categ_C.c: Regenerated.
32084         * tests/unictype/test-categ_Cf.c: Regenerated.
32085         * tests/unictype/test-categ_Cn.c: Regenerated.
32086         * tests/unictype/test-categ_L.c: Regenerated.
32087         * tests/unictype/test-categ_Ll.c: Regenerated.
32088         * tests/unictype/test-categ_Lm.c: Regenerated.
32089         * tests/unictype/test-categ_Lo.c: Regenerated.
32090         * tests/unictype/test-categ_Lu.c: Regenerated.
32091         * tests/unictype/test-categ_M.c: Regenerated.
32092         * tests/unictype/test-categ_Mc.c: Regenerated.
32093         * tests/unictype/test-categ_Me.c: Regenerated.
32094         * tests/unictype/test-categ_Mn.c: Regenerated.
32095         * tests/unictype/test-categ_N.c: Regenerated.
32096         * tests/unictype/test-categ_Nd.c: Regenerated.
32097         * tests/unictype/test-categ_Nl.c: Regenerated.
32098         * tests/unictype/test-categ_No.c: Regenerated.
32099         * tests/unictype/test-categ_P.c: Regenerated.
32100         * tests/unictype/test-categ_Pd.c: Regenerated.
32101         * tests/unictype/test-categ_Pe.c: Regenerated.
32102         * tests/unictype/test-categ_Pf.c: Regenerated.
32103         * tests/unictype/test-categ_Pi.c: Regenerated.
32104         * tests/unictype/test-categ_Po.c: Regenerated.
32105         * tests/unictype/test-categ_Ps.c: Regenerated.
32106         * tests/unictype/test-categ_S.c: Regenerated.
32107         * tests/unictype/test-categ_Sk.c: Regenerated.
32108         * tests/unictype/test-categ_Sm.c: Regenerated.
32109         * tests/unictype/test-categ_So.c: Regenerated.
32110         * tests/unictype/test-ctype_alnum.c: Regenerated.
32111         * tests/unictype/test-ctype_alpha.c: Regenerated.
32112         * tests/unictype/test-ctype_graph.c: Regenerated.
32113         * tests/unictype/test-ctype_lower.c: Regenerated.
32114         * tests/unictype/test-ctype_print.c: Regenerated.
32115         * tests/unictype/test-ctype_punct.c: Regenerated.
32116         * tests/unictype/test-ctype_upper.c: Regenerated.
32117         * tests/unictype/test-decdigit.h: Regenerated.
32118         * tests/unictype/test-digit.h: Regenerated.
32119         * tests/unictype/test-numeric.h: Regenerated.
32120         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32121         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32122         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32123         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32124         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32125         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32126         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32127         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32128         * tests/unictype/test-pr_combining.c: Regenerated.
32129         * tests/unictype/test-pr_dash.c: Regenerated.
32130         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32131         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32132         * tests/unictype/test-pr_deprecated.c: Regenerated.
32133         * tests/unictype/test-pr_diacritic.c: Regenerated.
32134         * tests/unictype/test-pr_extender.c: Regenerated.
32135         * tests/unictype/test-pr_format_control.c: Regenerated.
32136         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32137         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32138         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32139         * tests/unictype/test-pr_id_continue.c: Regenerated.
32140         * tests/unictype/test-pr_id_start.c: Regenerated.
32141         * tests/unictype/test-pr_ideographic.c: Regenerated.
32142         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32143         * tests/unictype/test-pr_lowercase.c: Regenerated.
32144         * tests/unictype/test-pr_math.c: Regenerated.
32145         * tests/unictype/test-pr_numeric.c: Regenerated.
32146         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32147         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32148         Regenerated.
32149         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32150         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32151         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32152         * tests/unictype/test-pr_other_math.c: Regenerated.
32153         * tests/unictype/test-pr_punctuation.c: Regenerated.
32154         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32155         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32156         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32157         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32158         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32159         * tests/unictype/test-pr_uppercase.c: Regenerated.
32160         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32161         * tests/unictype/test-pr_xid_start.c: Regenerated.
32162         * tests/unictype/test-pr_zero_width.c: Regenerated.
32163
32164         Update to Unicode 5.1.0.
32165         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32166         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32167         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32168         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32169         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32170         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32171         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32172         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32173         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32174         (nonspacing_table_ind): Update.
32175         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32176
32177         Update to Unicode 5.1.0.
32178         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32179         code transform.
32180         * lib/uniname/uniname.c (unicode_character_name,
32181         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32182         * lib/uniname/uninames.h: Regenerated.
32183         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32184
32185 2009-02-07  Bruno Haible  <bruno@clisp.org>
32186
32187         Merge gen-ctype and gen-lbrk into a single program.
32188         * lib/gen-uni-tables.c: New file, incorporating
32189         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32190         Add directory prefixes to the names of the generated files.
32191         * lib/unictype/gen-ctype.c: Remove file.
32192         * lib/unilbrk/gen-lbrk.c: Remove file.
32193         * modules/gen-uni-tables: New file.
32194         * modules/unictype/gen-ctype: Remove file.
32195         * modules/unilbrk/gen-lbrk: Remove file.
32196
32197 2009-02-07  Bruno Haible  <bruno@clisp.org>
32198
32199         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32200
32201         New module 'unistr/u32-strcoll'.
32202         * modules/unistr/u32-strcoll: New file.
32203         * lib/unistr/u32-strcoll.c: New file.
32204
32205         New module 'unistr/u16-strcoll'.
32206         * modules/unistr/u16-strcoll: New file.
32207         * lib/unistr/u16-strcoll.c: New file.
32208
32209         New module 'unistr/u8-strcoll'.
32210         * modules/unistr/u8-strcoll: New file.
32211         * lib/unistr/u8-strcoll.c: New file.
32212         * lib/unistr/u-strcoll.h: New file.
32213
32214 2009-02-07  Bruno Haible  <bruno@clisp.org>
32215
32216         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32217         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32218         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32219         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32220         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32221         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32222
32223 2009-02-07  Bruno Haible  <bruno@clisp.org>
32224
32225         Make 64-bit clean.
32226         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32227         output_combclass, output_bidi_category, output_decimal_digit,
32228         output_digit, output_numeric, output_mirror, output_scripts,
32229         output_ident_category): Use proper width specifier in format strings.
32230
32231 2009-02-07  Bruno Haible  <bruno@clisp.org>
32232
32233         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32234         failure behaviour.
32235
32236 2009-02-07  Jim Meyering  <meyering@redhat.com>
32237
32238         regex: avoid compilation failure with upcoming gcc-4.4
32239         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32240         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32241         "... error: integer overflow in preprocessor expression".
32242
32243 2009-02-05  Ben Pfaff  <blp@gnu.org>
32244
32245         Fix link errors on Windows when close module is used.
32246         * modules/close: Add $(LIB_CLOSE) to Link section.
32247         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32248         $(LIB_CLOSE) on Windows.
32249
32250 2009-02-05  Jim Meyering  <meyering@redhat.com>
32251
32252         still avoid unused-parameter warnings, but do it cleanly
32253         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32254         (get_fs_usage): Cast to void instead.
32255         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32256         (dev_from_mount_options, read_file_system_list): Cast to void.
32257         Prompted by Bruno Haible.
32258
32259 2009-02-04  Jim Meyering  <meyering@redhat.com>
32260
32261         fsusage.c: correct copyright year
32262         * lib/fsusage.c: Reflect year in which the change is pushed into
32263
32264         avoid misc. warnings
32265         * lib/fsusage.c (UNUSED_PARAM): Define.
32266         (get_fs_usage): Mark parameter "disk" as unused.
32267         * lib/getugroups.c (getgrent): Use "void" in prototype.
32268         * lib/mountlist.c: Mark unused parameters.
32269         (read_file_system_list): Declare a local with "const".
32270         * lib/nanosleep.c (getnow): Declare static.
32271         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32272
32273         dirfd: set errno upon failure
32274         * lib/dirfd.c: Include <errno.h>.
32275         Set errno to ENOTSUP when returning -1.
32276         * modules/dirfd (Depends-on): Add errno.
32277         Suggested by John Kodis <kodis@comcast.net>.
32278
32279 2009-02-01  Bruno Haible  <bruno@clisp.org>
32280
32281         Don't assume sizeof (long) >= sizeof (void *).
32282         * lib/memcmp.c: Include stdint.h.
32283         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32284         srcp2 to 'const byte *'.
32285         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32286         types to uintptr_t.
32287         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32288         * modules/memcmp (Depends-on): Add stdint.
32289         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32290
32291 2009-01-30  Eric Blake  <ebb9@byu.net>
32292
32293         fix more require-before-expand issues
32294         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32295         expand, AC_PROG_AWK.
32296         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32297
32298 2009-01-28  Eric Blake  <ebb9@byu.net>
32299
32300         version-etc: use consistent URL formatting
32301         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32302         Improve formatting.  Use fputs for string without %.
32303
32304 2009-01-28  Jim Meyering  <meyering@redhat.com>
32305
32306         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32307         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32308         "underquoted definition of NAME" from autoconf-2.59.
32309
32310 2009-01-28  Bruno Haible  <bruno@clisp.org>
32311
32312         * doc/gnulib.texi: Add "Obsolete modules" to index.
32313
32314 2009-01-28  Jim Meyering  <meyering@redhat.com>
32315
32316         useless-if-before-free: recognize more variants
32317         * build-aux/useless-if-before-free: Also recognize e.g.,
32318         if (NULL != p) free (p);
32319
32320 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32321
32322         test-getaddrinfo: skip (don't fail) this test when there's no network
32323         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32324         on the presumption that it means you lack network access.
32325
32326 2009-01-26  Jim Meyering  <meyering@redhat.com>
32327
32328         fflush: avoid warnings on modern systems
32329         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32330         pos and result, into scopes where they're used.
32331
32332 2009-01-26  Eric Blake  <ebb9@byu.net>
32333
32334         Silence warning reintroduced by recent extensions patch.
32335         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32336         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32337         autoconf.
32338
32339         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32340         * m4/00gnulib.m4: New file.
32341         * gnulib-tool (func_get_filelist): Always use it.
32342         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32343         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32344
32345 2009-01-25  Bruno Haible  <bruno@clisp.org>
32346
32347         Make test-quotearg work on MacOS X and AIX.
32348         * tests/test-quotearg.sh: New file.
32349         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32350         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32351         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32352         include <libintl.h>.
32353         (fake_locale): Remove variable.
32354         (gettext, dgettext, dcgettext): Remove functions.
32355         (main): Instead of setting a fake locale, set a real locale. Call
32356         textdomain and bindtextdomain.
32357         * modules/quotearg-tests (Files): Add the new files.
32358         (Depends-on): Add gettext, setenv, unsetenv.
32359         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32360         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32361         Augment TESTS_ENVIRONMENT.
32362
32363 2009-01-25  Bruno Haible  <bruno@clisp.org>
32364
32365         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32366         fr_FR.ISO8859-1 locale on MacOS X.
32367         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32368         ja_JP.eucJP locale on MacOS X.
32369         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32370         zh_CN.GB18030 locale on MacOS X.
32371
32372 2009-01-25  Bruno Haible  <bruno@clisp.org>
32373
32374         Avoid link errors on MacOS X 10.3.
32375         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32376         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32377
32378 2009-01-25  Bruno Haible  <bruno@clisp.org>
32379
32380         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32381         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32382         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32383         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32384         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32385         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32386         posix_spawnattr_init, posix_spawnattr_setsigmask,
32387         posix_spawnattr_setflags, posix_spawnattr_destroy.
32388
32389         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32390         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32391         * modules/execute (Files): Remove m4/posix_spawn.m4.
32392         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32393         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32394         posix_spawnattr_init, posix_spawnattr_setsigmask,
32395         posix_spawnattr_setflags, posix_spawnattr_destroy.
32396
32397 2009-01-25  Bruno Haible  <bruno@clisp.org>
32398
32399         * lib/glthread/threadlib.c: Include <stdlib.h>.
32400
32401 2009-01-25  Bruno Haible  <bruno@clisp.org>
32402
32403         * lib/glthread/threadlib.c (dummy): New declaration.
32404
32405 2009-01-25  Bruno Haible  <bruno@clisp.org>
32406
32407         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32408         multibyte characters also for the GB18030 encoding. Don't crash when
32409         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32410
32411 2009-01-25  Bruno Haible  <bruno@clisp.org>
32412
32413         Avoid redefining 'struct random_data' on OSF/1 5.1.
32414         * lib/stdlib.in.h: Include <random.h> if it exists.
32415         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32416         HAVE_RANDOM_H. Include <random.h> when testing whether
32417         'struct random_data' exists.
32418         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32419
32420 2009-01-25  Bruno Haible  <bruno@clisp.org>
32421
32422         Don't install charset.alias on MacOS X >= 10.3.
32423         * lib/localcharset.c (DARWIN7): New macro.
32424         (get_charset_aliases): Hardcode the result for Darwin7.
32425         * modules/localcharset (install-exec-local): Don't install
32426         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32427
32428 2009-01-25  Bruno Haible  <bruno@clisp.org>
32429
32430         Don't install charset.alias on mingw and Cygwin.
32431         * modules/localcharset (install-exec-local): Don't install
32432         charset.alias on mingw and Cygwin, if the file does not yet exist.
32433         The result for these platforms is hardcoded in localcharset.c.
32434
32435 2009-01-25  Bruno Haible  <bruno@clisp.org>
32436
32437         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32439         before requiring AC_USE_SYSTEM_EXTENSIONS.
32440
32441 2009-01-25  Jim Meyering  <meyering@redhat.com>
32442
32443         c-strtod: avoid warnings
32444         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32445         "assignment discards qualifiers from pointer target type" warnings.
32446
32447 2009-01-24  Bruno Haible  <bruno@clisp.org>
32448
32449         Add support for non-UTF-8 locales on MacOS X.
32450         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32451         canonical encodings. For Darwin 7 and newer, don't map traditional
32452         encodings to UTF-8.
32453         Reported by Vincent Lefevre <vincent@vinc17.org>
32454         at <http://savannah.gnu.org/bugs/?25235>.
32455
32456 2009-01-24  Bruno Haible  <bruno@clisp.org>
32457
32458         * doc/gnulib.texi (Obsolete modules): New section.
32459         Reported by Mike Frysinger <vapier@gentoo.org>.
32460
32461 2009-01-24  Bruno Haible  <bruno@clisp.org>
32462
32463         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32464         (%.dvi): New rule.
32465
32466 2009-01-24  Bruno Haible  <bruno@clisp.org>
32467
32468         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32469         Reported by Eric Blake.
32470
32471 2009-01-24  Bruno Haible  <bruno@clisp.org>
32472
32473         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32474         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32475         Reported by Gary V. Vaughan <gary@gnu.org>.
32476
32477 2009-01-24  Bruno Haible  <bruno@clisp.org>
32478
32479         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32480
32481 2009-01-23  Bruno Haible  <bruno@clisp.org>
32482
32483         Make c-strtod, c-strtold usable in libraries.
32484         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32485         (C_STRTOD): Call strdup instead of xstrdup.
32486         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32487         * modules/c-strtold (Depends-on): Likewise.
32488         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32489         * NEWS: Mention the change.
32490         Reported by Michael Gold <mgold@ncf.ca>.
32491
32492 2009-01-23  Jim Meyering  <meyering@redhat.com>
32493
32494         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32495         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32496         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32497
32498 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32499
32500         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32501         GNU CoreUtils.
32502         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32503         * modules/version-etc (Description): Update.
32504
32505 2009-01-22  Bruno Haible  <bruno@clisp.org>
32506
32507         Cache the C locale object.
32508         * lib/c-strtod.c (c_locale_cache): New variable.
32509         (c_locale): New function.
32510         (C_STRTOD): Use it, and don't call freelocale.
32511         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32512         Suggested by Paolo Bonzini.
32513
32514 2009-01-21  Bruno Haible  <bruno@clisp.org>
32515
32516         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32517         conditions other than overflow.
32518
32519 2009-01-21  Bruno Haible  <bruno@clisp.org>
32520
32521         * lib/c-strtod.c: Include errno.h.
32522         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32523         value from STRTOD_L and STRTOD.
32524
32525 2009-01-21  Bruno Haible  <bruno@clisp.org>
32526         and Jim Meyering  <meyering@redhat.com>
32527
32528         nanosleep: skip configure test (fail it) for apple universal builds
32529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32530         universal builds, assume that nanosleep does not work.
32531         * modules/nanosleep (Depends-on): Add multiarch.
32532
32533         mktime: skip configure test (fail it) for apple universal builds
32534         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32535         universal builds, assume that mktime does not work.
32536         * modules/mktime (Depends-on): Add multiarch.
32537
32538 2009-01-21  Eric Blake  <ebb9@byu.net>
32539
32540         multiarch: avoid expand-before-require warning
32541         * modules/multiarch (configure.ac): Require, rather than expand,
32542         gl_MULTIARCH.
32543         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32544         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32545         enforce that all clients require it.  Partial reversion of
32546         2008-12-29 patch.
32547
32548         error: avoid expand-before-require warning
32549         * modules/errno (configure.ac): Require, rather than expand,
32550         gl_HEADER_ERRNO_H.
32551         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32552         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32553         enforce that all clients require it.
32554
32555         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32556         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32557         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32558         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32559
32560 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32561
32562         Revert:
32563         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32564
32565         regex: do not depend on obsolete modules.
32566         * modules/regex: Remove memcmp and memmove.
32567
32568 2009-01-20  Bruno Haible  <bruno@clisp.org>
32569
32570         Make the 'link' module link on Windows NT 4.
32571         * lib/link.c (_WIN32_WINNT): Don't define.
32572         (CreateHardLinkFuncType): New type.
32573         (CreateHardLinkFunc, initialized): New variables.
32574         (initialize): New function.
32575         (link): Invoke CreateHardLink indirectly through the function pointer.
32576
32577 2009-01-20  Bruno Haible  <bruno@clisp.org>
32578
32579         Fix compilation failure on mingw.
32580         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32581
32582 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32583
32584         * doc/c-strtod.texi: Mention a couple of restrictions.
32585
32586 2009-01-20  Jim Meyering  <meyering@redhat.com>
32587
32588         gettimeofday: move more declarations out of functions
32589         * lib/gettimeofday.c: Move extern declarations of tzset and
32590         gmtime out of containing functions.  Prompted by Bruno Haible.
32591
32592 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32593
32594         regex: do not depend on obsolete modules.
32595         * modules/regex: Remove memcmp and memmove.
32596
32597 2009-01-19  Bruno Haible  <bruno@clisp.org>
32598
32599         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32600         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32601         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32602         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32603         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32604
32605 2009-01-19  Bruno Haible  <bruno@clisp.org>
32606
32607         * tests/test-link.c: Include <errno.h>.
32608         (main): Exit with code 77 when a hard link cannot be created due to
32609         the file system.
32610         * tests/test-link.sh: Skip test when a hard link cannot be created due
32611         to the file system.
32612         Suggested by Eric Blake.
32613
32614 2009-01-19  Martin Lambers  <marlam@marlam.de>
32615
32616         * modules/link-tests: New file.
32617         * tests/test-link.sh: New file.
32618         * tests/test-link.c: New file.
32619
32620 2009-01-19  Eric Blake  <ebb9@byu.net>
32621
32622         doc: mention another function added in cygwin 1.7.0
32623         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32624         Another new function in cygwin 1.7.
32625
32626 2009-01-19  Bruno Haible  <bruno@clisp.org>
32627
32628         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32629         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32630         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32631         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32632         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32633         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32634         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32635         * m4/md4.m4 (gl_MD4): Likewise.
32636         * m4/md5.m4 (gl_MD5): Likewise.
32637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32638         * m4/sha1.m4 (gl_SHA1): Likewise.
32639         * m4/sha256.m4 (gl_SHA256): Likewise.
32640         * m4/sha512.m4 (gl_SHA512): Likewise.
32641
32642 2009-01-19  Bruno Haible  <bruno@clisp.org>
32643
32644         * modules/uniname/uniname-tests (Depends-on): Add progname.
32645         * tests/uniname/test-uninames.c: Include progname.h.
32646         (main): Call set_program_name.
32647
32648         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32649         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32650         (main): Call set_program_name.
32651
32652         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32653         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32654         (main): Call set_program_name.
32655
32656         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32657         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32658         (main): Call set_program_name.
32659
32660         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32661         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32662         (main): Call set_program_name.
32663
32664         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32665         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32666         (main): Call set_program_name.
32667
32668         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32669         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32670         (main): Call set_program_name.
32671
32672         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32673         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32674         (main): Call set_program_name.
32675
32676         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32677         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32678         (main): Call set_program_name.
32679
32680 2009-01-19  Eric Blake  <ebb9@byu.net>
32681
32682         test-unistd: test previous patch
32683         * tests/test-unistd.c: Test *_FILENO macros.
32684
32685         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32686         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32687         Guarantee a definition.
32688         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32689         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32690         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32691         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32692         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32693         Likewise.
32694         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32695         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32696         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32697         Likewise.
32698         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32699         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32700         (STDERR_FILENO): Likewise.
32701         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32702         (STDERR_FILENO): Likewise.
32703         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32704         (STDERR_FILENO): Likewise.
32705         Reported by Elbert Pol.
32706
32707 2009-01-19  Eric Blake  <ebb9@byu.net>
32708
32709         doc: mention more functions added in cygwin 1.7.0
32710         * doc/posix-functions/abort.texi (abort): Update wording related
32711         to cygwin.
32712         * doc/posix-functions/daylight.texi (daylight): Likewise.
32713         * doc/posix-functions/optarg.texi (optarg): Likewise.
32714         * doc/posix-functions/optarg.texi (opterr): Likewise.
32715         * doc/posix-functions/optarg.texi (optind): Likewise.
32716         * doc/posix-functions/optarg.texi (optopt): Likewise.
32717         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32718         worked in 1.5.x, and was withdrawn in 1.7.
32719         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32720         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32721         cygwin versions.
32722         * doc/posix-functions/perror.texi (perror): Likewise.
32723         * doc/posix-functions/printf.texi (printf): Likewise.
32724         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32725         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32726         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32727         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32728         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32729         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32730         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32731         Likewise.
32732         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32733         Likewise.
32734         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32735         this function.
32736         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32737         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32738         Likewise.
32739         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32740         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32741         * doc/posix-functions/confstr.texi (confstr): Likewise.
32742         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32743         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32744         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32745         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32746         * doc/posix-functions/fputws.texi (fputws): Likewise.
32747         * doc/posix-functions/fwide.texi (fwide): Likewise.
32748         * doc/posix-functions/getwc.texi (getwc): Likewise.
32749         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32750         * doc/posix-functions/putwc.texi (putwc): Likewise.
32751         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32752         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32753         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32754         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32755         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32756         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32757         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32758         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32759         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32760         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32761         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32762
32763 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32764
32765         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32766         * lib/ioctl.c: Include <sys/ioctl.h>.
32767
32768 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32769
32770         * modules/getdate-tests (Depends-on): Add progname.
32771         * tests/test-getdate.c: Use progname module, to avoid link errors
32772         on non-glibc systems.
32773
32774 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32775
32776         * modules/filenamecat-tests (Depends-on): Add progname.
32777         * modules/fstrcmp-tests (Depends-on): Likewise.
32778
32779         * tests/test-filenamecat.c: Use progname module, to avoid link
32780         errors on non-glibc systems.
32781         * tests/test-fstrcmp.c: Likewise.
32782
32783 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32784
32785         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32786         * lib/gettimeofday.c: Move extern declaration out of function.
32787
32788 2009-01-18  Bruno Haible  <bruno@clisp.org>
32789
32790         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32791         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32792         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32793
32794 2009-01-18  Bruno Haible  <bruno@clisp.org>
32795
32796         * lib/strftime.c (MEMPCPY): Remove unused macro.
32797         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32798
32799 2009-01-18  Martin Lambers  <marlam@marlam.de>
32800
32801         New module 'link'.
32802         * lib/unistd.in.h (link): New declaration.
32803         * lib/link.c: New file.
32804         * m4/link.m4: New file.
32805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32806         HAVE_LINK.
32807         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32808         * modules/link: New file.
32809         * doc/posix-functions/link.texi: Mention the new module.
32810
32811 2009-01-18  Bruno Haible  <bruno@clisp.org>
32812
32813         * tests/test-avltree_list.c (main): Call set_program_name.
32814         * tests/test-avltree_oset.c (main): Likewise.
32815         * tests/test-obstack-printf.c: Include progname.h.
32816         (main): Call set_program_name.
32817         * tests/test-quotearg.c: Include progname.h.
32818         (main): Call set_program_name.
32819         * tests/test-xmemdup0.c: Include progname.h.
32820         (main): Call set_program_name.
32821
32822 2009-01-18  Bruno Haible  <bruno@clisp.org>
32823
32824         New module 'alphasort'.
32825         * lib/dirent.in.h (alphasort): New declaration.
32826         * lib/alphasort.c: New file, from glibc with modifications.
32827         * m4/alphasort.m4: New file.
32828         * modules/alphasort: New file.
32829         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32830         HAVE_ALPHASORT.
32831         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32832         HAVE_ALPHASORT.
32833         * doc/posix-functions/alphasort.texi: Mention the new module and the
32834         portability problems.
32835
32836 2009-01-18  Bruno Haible  <bruno@clisp.org>
32837
32838         New module 'scandir'.
32839         * lib/dirent.in.h (scandir): New declaration.
32840         * lib/scandir.c: New file, from glibc with modifications.
32841         * m4/scandir.m4: New file.
32842         * modules/scandir: New file.
32843         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32844         HAVE_SCANDIR.
32845         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32846         HAVE_SCANDIR.
32847         * doc/posix-functions/scandir.texi: Mention the new module and the
32848         portability problems.
32849
32850 2009-01-17  Bruno Haible  <bruno@clisp.org>
32851
32852         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32853         Update documentation.
32854         (func_remove_suffix): Escape all dots in the suffix. Update
32855         documentation.
32856         (func_filter_filelist): Update documentation.
32857         Reported by Ralf Wildenhues.
32858
32859 2009-01-17  Bruno Haible  <bruno@clisp.org>
32860
32861         * modules/dprintf-posix-tests: New file.
32862         * tests/test-dprintf-posix.sh: New file.
32863         * tests/test-dprintf-posix.c: New file.
32864
32865         New modules 'dprintf', 'dprintf-posix'.
32866         * lib/stdio.in.h (dprintf): New declaration.
32867         * lib/dprintf.c: New file.
32868         * m4/dprintf.m4: New file.
32869         * m4/dprintf-posix.m4: New file.
32870         * modules/dprintf: New file.
32871         * modules/dprintf-posix: New file.
32872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32873         HAVE_DPRINTF, REPLACE_DPRINTF.
32874         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32875         HAVE_DPRINTF, REPLACE_DPRINTF.
32876         * doc/posix-functions/dprintf.texi: Mention the new modules.
32877
32878 2009-01-17  Bruno Haible  <bruno@clisp.org>
32879
32880         * modules/vdprintf-posix-tests: New file.
32881         * tests/test-vdprintf-posix.sh: New file.
32882         * tests/test-vdprintf-posix.c: New file.
32883
32884         New modules 'vdprintf', 'vdprintf-posix'.
32885         * lib/stdio.in.h (vdprintf): New declaration.
32886         * lib/vdprintf.c: New file.
32887         * m4/vdprintf.m4: New file.
32888         * m4/vdprintf-posix.m4: New file.
32889         * modules/vdprintf: New file.
32890         * modules/vdprintf-posix: New file.
32891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32892         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32893         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32894         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32895         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32896
32897 2009-01-17  Bruno Haible  <bruno@clisp.org>
32898
32899         Fix replacement of fopen on mingw.
32900         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32901         mingw.
32902
32903 2009-01-17  Bruno Haible  <bruno@clisp.org>
32904
32905         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32906         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32907
32908 2009-01-17  Bruno Haible  <bruno@clisp.org>
32909
32910         Avoid test-fflush2.sh failure on mingw.
32911         * tests/test-fflush2.c: Include binary-io.h.
32912         (main): Put standard input into binary mode.
32913         * modules/fflush-tests (Depends-on): Add binary-io.
32914
32915 2009-01-17  Bruno Haible  <bruno@clisp.org>
32916
32917         * lib/wchar.in.h: In another particular situation, include only the
32918         system's <wchar.h> file.
32919         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32920         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32921         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32922
32923 2009-01-17  Bruno Haible  <bruno@clisp.org>
32924
32925         Support for stripping executables in --enable-relocatable.
32926         * build-aux/install-reloc: Expect one more argument, or an environment
32927         variable RELOC_STRIP_PROG. If set, strip the destination program and
32928         its wrapper.
32929         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32930         RELOC_STRIP_PROG.
32931         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32932         to set RELOCATABLE_STRIP.
32933         * NEWS: Mention the new Makefile requirement.
32934
32935 2009-01-17  Bruno Haible  <bruno@clisp.org>
32936
32937         * build-aux/install-reloc: Remove debugging information left over by
32938         C compiler on MacOS X.
32939
32940 2009-01-17  Bruno Haible  <bruno@clisp.org>
32941
32942         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32943         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32944         _NSGetExecutablePath.
32945
32946 2009-01-16  Jim Meyering  <meyering@redhat.com>
32947
32948         strerror: avoid warnings about discarding "const"
32949         * lib/strerror.c (rpl_strerror): Instead of returning a const
32950         string from each and every "case", use a variable, and add a single
32951         cast after the switch.
32952
32953 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32954
32955         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32956
32957 2009-01-16  Bruno Haible  <bruno@clisp.org>
32958
32959         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32960         array initializer syntax that also works in C++ mode.
32961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32962
32963 2009-01-16  Jim Meyering  <meyering@redhat.com>
32964
32965         poll: suppress a warning
32966         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32967         to ignore "...unsigned expression < 0 is always false" warnings.
32968
32969 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32970
32971         poll: remove declarations of unused variables
32972         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32973         sockbuf and optlen.
32974
32975 2009-01-15  Bruno Haible  <bruno@clisp.org>
32976
32977         Make fflush-after-ungetc POSIX compliant on BSD systems.
32978         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32979         (clear_ungetc_buffer): Implement also for other systems.
32980         (rpl_fflush): On glibc systems, invoke
32981         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32982         clear_ungetc_buffer after fetching the stream's position, not before.
32983
32984 2009-01-15  Bruno Haible  <bruno@clisp.org>
32985
32986         Make fflush-after-ungetc POSIX compliant on glibc systems.
32987         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32988         after ungetc.
32989         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32990         (rpl_fflush): On glibc systems, simply call the system's fflush
32991         function after clearing the ungetc buffer.
32992         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32993         Instead, lseek only to the end of file, then use the system's fseeko
32994         for the rest. On glibc systems, reset the EOF indicator bit.
32995
32996 2009-01-15  Jim Meyering  <meyering@redhat.com>
32997
32998         openmp.m4: revert quote-adding change, for portability to older autoconf
32999         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33000         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33001         Simon Josefsson noticed the problem when using autoconf-2.61.
33002
33003 2009-01-15  Bruno Haible  <bruno@clisp.org>
33004
33005         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33006         * tests/test-fflush2.c (ASSERT): Always fail.
33007         (main): Add two tests for fflush() after ungetc(), taking into account
33008         the Austin Group's clarification.
33009         Suggested by Eric Blake.
33010
33011 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33012
33013         mktime.m4: remove K&R-style function prototypes
33014         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33015         for the Sun C++ compiler.
33016
33017 2009-01-14  Bruno Haible  <bruno@clisp.org>
33018
33019         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33020         while including <wchar.h>.
33021         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33022         the system's <wchar.h> file.
33023         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33024
33025 2009-01-14  Bruno Haible  <bruno@clisp.org>
33026
33027         * m4/csharp.m4: Don't mention gettext on the serial number line.
33028         * m4/csharpexec.m4: Likewise.
33029         * m4/eaccess.m4: Likewise.
33030         * m4/javaexec.m4: Likewise.
33031         * m4/sig_atomic_t.m4: Likewise.
33032         * m4/tmpdir.m4: Likewise.
33033         * m4/intldir.m4: Bump gettext version.
33034         * m4/lib-ld.m4: Likewise.
33035
33036 2009-01-14  Bruno Haible  <bruno@clisp.org>
33037
33038         * lib/progname.c (set_program_name): Add more comments.
33039         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33040
33041 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33042
33043         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33044         were sys/stat.h does not define it.
33045
33046 2009-01-14  Jim Meyering  <meyering@redhat.com>
33047
33048         many *.m4 files: improve m4 quoting
33049         99% of this change was performed by running the following commands:
33050         git ls-files | grep '\.m4$' | xargs perl -pi \
33051           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33052           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33053           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33054           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33055         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33056         The remainder were to add Copyright dates, increment serial numbers,
33057         undo some changes in comments, exclude m4/intl.m4, and add quotes
33058         around the "1" in ",1" where the unusual spacing prohibited the
33059         above regexps from doing the job.  For more details, see
33060         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33061         * m4/acl.m4: Modified.
33062         * m4/afs.m4: Likewise.
33063         * m4/alloca.m4: Likewise.
33064         * m4/argp.m4: Likewise.
33065         * m4/argz.m4: Likewise.
33066         * m4/atexit.m4: Likewise.
33067         * m4/bison-i18n.m4: Likewise.
33068         * m4/bison.m4: Likewise.
33069         * m4/byteswap.m4: Likewise.
33070         * m4/c-stack.m4: Likewise.
33071         * m4/c-strtod.m4: Likewise.
33072         * m4/calloc.m4: Likewise.
33073         * m4/canonicalize-lgpl.m4: Likewise.
33074         * m4/chown.m4: Likewise.
33075         * m4/clock_time.m4: Likewise.
33076         * m4/codeset.m4: Likewise.
33077         * m4/copy-file.m4: Likewise.
33078         * m4/csharp.m4: Likewise.
33079         * m4/csharpcomp.m4: Likewise.
33080         * m4/csharpexec.m4: Likewise.
33081         * m4/d-ino.m4: Likewise.
33082         * m4/d-type.m4: Likewise.
33083         * m4/dirfd.m4: Likewise.
33084         * m4/double-slash-root.m4: Likewise.
33085         * m4/eaccess.m4: Likewise.
33086         * m4/eealloc.m4: Likewise.
33087         * m4/environ.m4: Likewise.
33088         * m4/errno_h.m4: Likewise.
33089         * m4/euidaccess.m4: Likewise.
33090         * m4/execute.m4: Likewise.
33091         * m4/fatal-signal.m4: Likewise.
33092         * m4/fchdir.m4: Likewise.
33093         * m4/fcntl_h.m4: Likewise.
33094         * m4/fileblocks.m4: Likewise.
33095         * m4/filenamecat.m4: Likewise.
33096         * m4/findprog.m4: Likewise.
33097         * m4/flexmember.m4: Likewise.
33098         * m4/fnmatch.m4: Likewise.
33099         * m4/fopen.m4: Likewise.
33100         * m4/fpending.m4: Likewise.
33101         * m4/fprintf-posix.m4: Likewise.
33102         * m4/free.m4: Likewise.
33103         * m4/frexp.m4: Likewise.
33104         * m4/frexpl.m4: Likewise.
33105         * m4/fsusage.m4: Likewise.
33106         * m4/ftruncate.m4: Likewise.
33107         * m4/gc-camellia.m4: Likewise.
33108         * m4/gc-random.m4: Likewise.
33109         * m4/gc.m4: Likewise.
33110         * m4/getaddrinfo.m4: Likewise.
33111         * m4/getcwd-abort-bug.m4: Likewise.
33112         * m4/getcwd-path-max.m4: Likewise.
33113         * m4/getdate.m4: Likewise.
33114         * m4/getdomainname.m4: Likewise.
33115         * m4/getgroups.m4: Likewise.
33116         * m4/gethostname.m4: Likewise.
33117         * m4/gethrxtime.m4: Likewise.
33118         * m4/getline.m4: Likewise.
33119         * m4/getloadavg.m4: Likewise.
33120         * m4/getndelim2.m4: Likewise.
33121         * m4/getpass.m4: Likewise.
33122         * m4/gettext.m4: Likewise.
33123         * m4/gettime.m4: Likewise.
33124         * m4/gettimeofday.m4: Likewise.
33125         * m4/gnulib-common.m4: Likewise.
33126         * m4/group-member.m4: Likewise.
33127         * m4/host-os.m4: Likewise.
33128         * m4/iconv.m4: Likewise.
33129         * m4/iconv_open.m4: Likewise.
33130         * m4/inet_ntop.m4: Likewise.
33131         * m4/inet_pton.m4: Likewise.
33132         * m4/inline.m4: Likewise.
33133         * m4/intldir.m4: Likewise.
33134         * m4/intlmacosx.m4: Likewise.
33135         * m4/intmax.m4: Likewise.
33136         * m4/intmax_t.m4: Likewise.
33137         * m4/inttypes.m4: Likewise.
33138         * m4/inttypes_h.m4: Likewise.
33139         * m4/inttypes-pri.m4: Likewise.
33140         * m4/isapipe.m4: Likewise.
33141         * m4/isnand.m4: Likewise.
33142         * m4/isnanf.m4: Likewise.
33143         * m4/isnanl.m4: Likewise.
33144         * m4/javacomp.m4: Likewise.
33145         * m4/javaexec.m4: Likewise.
33146         * m4/jm-winsz1.m4: Likewise.
33147         * m4/jm-winsz2.m4: Likewise.
33148         * m4/lchown.m4: Likewise.
33149         * m4/lcmessage.m4: Likewise.
33150         * m4/ldexpl.m4: Likewise.
33151         * m4/lib-ld.m4: Likewise.
33152         * m4/lib-link.m4: Likewise.
33153         * m4/libsigsegv.m4: Likewise.
33154         * m4/link-follow.m4: Likewise.
33155         * m4/localcharset.m4: Likewise.
33156         * m4/locale-fr.m4: Likewise.
33157         * m4/locale-ja.m4: Likewise.
33158         * m4/locale-tr.m4: Likewise.
33159         * m4/locale-zh.m4: Likewise.
33160         * m4/lock.m4: Likewise.
33161         * m4/longlong.m4: Likewise.
33162         * m4/ls-mntd-fs.m4: Likewise.
33163         * m4/lstat.m4: Likewise.
33164         * m4/malloc.m4: Likewise.
33165         * m4/mathl.m4: Likewise.
33166         * m4/mbrtowc.m4: Likewise.
33167         * m4/mbstate_t.m4: Likewise.
33168         * m4/mbswidth.m4: Likewise.
33169         * m4/memchr.m4: Likewise.
33170         * m4/memcmp.m4: Likewise.
33171         * m4/memcpy.m4: Likewise.
33172         * m4/memmem.m4: Likewise.
33173         * m4/memmove.m4: Likewise.
33174         * m4/mempcpy.m4: Likewise.
33175         * m4/memrchr.m4: Likewise.
33176         * m4/memset.m4: Likewise.
33177         * m4/minmax.m4: Likewise.
33178         * m4/mkdir-slash.m4: Likewise.
33179         * m4/mkdtemp.m4: Likewise.
33180         * m4/mktime.m4: Likewise.
33181         * m4/mmap-anon.m4: Likewise.
33182         * m4/mountlist.m4: Likewise.
33183         * m4/nanosleep.m4: Likewise.
33184         * m4/nls.m4: Likewise.
33185         * m4/nocrash.m4: Likewise.
33186         * m4/open.m4: Likewise.
33187         * m4/openat.m4: Likewise.
33188         * m4/openmp.m4: Likewise.
33189         * m4/pathmax.m4: Likewise.
33190         * m4/perl.m4: Likewise.
33191         * m4/physmem.m4: Likewise.
33192         * m4/pipe.m4: Likewise.
33193         * m4/po.m4: Likewise.
33194         * m4/poll.m4: Likewise.
33195         * m4/posixtm.m4: Likewise.
33196         * m4/posixver.m4: Likewise.
33197         * m4/printf-frexp.m4: Likewise.
33198         * m4/printf-frexpl.m4: Likewise.
33199         * m4/printf-posix.m4: Likewise.
33200         * m4/printf-posix-rpl.m4: Likewise.
33201         * m4/printf.m4: Likewise.
33202         * m4/progtest.m4: Likewise.
33203         * m4/putenv.m4: Likewise.
33204         * m4/readline.m4: Likewise.
33205         * m4/readlink.m4: Likewise.
33206         * m4/readutmp.m4: Likewise.
33207         * m4/realloc.m4: Likewise.
33208         * m4/regex.m4: Likewise.
33209         * m4/relocatable.m4: Likewise.
33210         * m4/relocatable-lib.m4: Likewise.
33211         * m4/rename-dest-slash.m4: Likewise.
33212         * m4/rename.m4: Likewise.
33213         * m4/rmdir-errno.m4: Likewise.
33214         * m4/rmdir.m4: Likewise.
33215         * m4/roundf.m4: Likewise.
33216         * m4/roundl.m4: Likewise.
33217         * m4/rpmatch.m4: Likewise.
33218         * m4/save-cwd.m4: Likewise.
33219         * m4/selinux-selinux-h.m4: Likewise.
33220         * m4/setenv.m4: Likewise.
33221         * m4/settime.m4: Likewise.
33222         * m4/sig2str.m4: Likewise.
33223         * m4/sig_atomic_t.m4: Likewise.
33224         * m4/signalblocking.m4: Likewise.
33225         * m4/signbit.m4: Likewise.
33226         * m4/sigpipe.m4: Likewise.
33227         * m4/sockets.m4: Likewise.
33228         * m4/sockpfaf.m4: Likewise.
33229         * m4/st_dm_mode.m4: Likewise.
33230         * m4/stat-time.m4: Likewise.
33231         * m4/stdbool.m4: Likewise.
33232         * m4/stdint.m4: Likewise.
33233         * m4/stdint_h.m4: Likewise.
33234         * m4/stpcpy.m4: Likewise.
33235         * m4/stpncpy.m4: Likewise.
33236         * m4/strcase.m4: Likewise.
33237         * m4/strchrnul.m4: Likewise.
33238         * m4/strcspn.m4: Likewise.
33239         * m4/strdup.m4: Likewise.
33240         * m4/strftime.m4: Likewise.
33241         * m4/strndup.m4: Likewise.
33242         * m4/strnlen.m4: Likewise.
33243         * m4/strpbrk.m4: Likewise.
33244         * m4/strptime.m4: Likewise.
33245         * m4/strsep.m4: Likewise.
33246         * m4/strtod.m4: Likewise.
33247         * m4/strtoimax.m4: Likewise.
33248         * m4/strtok_r.m4: Likewise.
33249         * m4/strtol.m4: Likewise.
33250         * m4/strtoll.m4: Likewise.
33251         * m4/strtoul.m4: Likewise.
33252         * m4/strtoull.m4: Likewise.
33253         * m4/strtoumax.m4: Likewise.
33254         * m4/strverscmp.m4: Likewise.
33255         * m4/threadlib.m4: Likewise.
33256         * m4/timegm.m4: Likewise.
33257         * m4/tm_gmtoff.m4: Likewise.
33258         * m4/tmpdir.m4: Likewise.
33259         * m4/tmpfile.m4: Likewise.
33260         * m4/tzset.m4: Likewise.
33261         * m4/uintmax_t.m4: Likewise.
33262         * m4/unlinkdir.m4: Likewise.
33263         * m4/unlocked-io.m4: Likewise.
33264         * m4/uptime.m4: Likewise.
33265         * m4/userspec.m4: Likewise.
33266         * m4/utimbuf.m4: Likewise.
33267         * m4/utime.m4: Likewise.
33268         * m4/utimes-null.m4: Likewise.
33269         * m4/utimes.m4: Likewise.
33270         * m4/vararrays.m4: Likewise.
33271         * m4/vasnprintf.m4: Likewise.
33272         * m4/vfprintf-posix.m4: Likewise.
33273         * m4/vprintf-posix.m4: Likewise.
33274         * m4/wait-process.m4: Likewise.
33275         * m4/wchar_t.m4: Likewise.
33276         * m4/wint_t.m4: Likewise.
33277         * m4/write-any-file.m4: Likewise.
33278         * m4/yield.m4: Likewise.
33279
33280 2009-01-13  Bruno Haible  <bruno@clisp.org>
33281
33282         Avoid test-copy-file.sh failures when ACL support insufficient.
33283         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33284         TESTS_ENVIRONMENT.
33285         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33286         Reported by Jim Meyering.
33287
33288 2009-01-13  Bruno Haible  <bruno@clisp.org>
33289
33290         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33291         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33292         * modules/unistdio/u8-printf-parse (Files): Likewise.
33293         * modules/unistdio/u32-printf-parse (Files): Likewise.
33294         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33295
33296 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33297
33298         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33299         and m4/inttypes_h.m4 too.
33300
33301 2009-01-12  Eric Blake  <ebb9@byu.net>
33302
33303         tests: IRIX 6.2 cc can't compile -0.0 into .data
33304         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33305         rather than at compile-time.
33306         * tests/test-floorl.c (minus_zero): Likewise.
33307         * tests/test-frexpl.c (minus_zero): Likewise.
33308         * tests/test-isnan.c (minus_zerol): Likewise.
33309         * tests/test-isnanl.h (minus_zero): Likewise.
33310         * tests/test-ldexpl.c (minus_zero): Likewise.
33311         * tests/test-roundl.c (minus_zero): Likewise.
33312         * tests/test-signbit.c (minus_zerol): Likewise.
33313         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33314         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33315         * tests/test-truncl.c (minus_zero): Likewise.
33316         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33317         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33318         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33319
33320 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33321
33322         regex: fix glibc bug 9697
33323         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33324         handling.
33325
33326 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33327
33328         regex: fix glibc bug 697
33329         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33330         being NULL also if there are no backreferences.
33331
33332 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33333
33334         regex: merge glibc changes
33335         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33336         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33337         re_string_skip_chars, re_string_reconstruct): Likewise.
33338         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33339
33340 2009-01-07  Jim Meyering  <meyering@redhat.com>
33341
33342         poll: filter through cppi
33343         * lib/poll.c: Indent cpp directives to reflect nesting.
33344
33345 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33346
33347         poll: don't return uninitialized
33348         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33349
33350 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33351
33352         avoid compile failure on AIX 6.1
33353         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33354         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33355
33356 2009-01-04  Jim Meyering  <meyering@redhat.com>
33357
33358         remove duplicate inclusion of <stdio.h>
33359         * tests/test-fprintf-posix.c: Likewise.
33360         * tests/test-printf-posix.c: Likewise.
33361         * tests/test-snprintf-posix.c: Likewise.
33362         * tests/test-sprintf-posix.c: Likewise.
33363         * tests/test-vasprintf-posix.c: Likewise.
33364         * tests/test-vfprintf-posix.c: Likewise.
33365         * tests/test-vprintf-posix.c: Likewise.
33366         * tests/test-vsnprintf-posix.c: Likewise.
33367         * tests/test-vsprintf-posix.c: Likewise.
33368
33369 2009-01-03  Jim Meyering  <meyering@redhat.com>
33370
33371         gnulib-tool: fix sed-based filtering
33372         * gnulib-tool (func_filter_filelist): Remove extra backslash
33373         in sed_fff_filter definition.
33374
33375 2009-01-02  Jim Meyering  <meyering@redhat.com>
33376
33377         strftime: avoid compilation failure on Solaris 2.6
33378         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33379         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33380         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33381         be available.  Reported by Tom G. Christensen.  Details in
33382         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33383
33384 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33385             Bruno Haible  <bruno@clisp.org>
33386
33387         Speed up gnulib-tool by doing more string processing through shell
33388         built-ins.
33389         * gnulib-tool (fast_func_append): New variable.
33390         (func_remove_prefix, func_remove_suffix): New functions.
33391         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33392         (func_filter_filelist): New function.
33393         (func_get_dependencies): Use func_remove_suffix instead of sed.
33394         (func_get_automake_snippet): Use func_filter_filelist instead of a
33395         subshell and sed invocation.
33396
33397 2009-01-01  Bruno Haible  <bruno@clisp.org>
33398
33399         Fix a security bug.
33400         * gnulib-tool (func_import, import, update): Don't allow the characters
33401         '"', '$', '`', '\' in macro arguments that become part of commands that
33402         are evaluated.
33403
33404 2009-01-01  Bruno Haible  <bruno@clisp.org>
33405
33406         * gnulib-tool (func_reset_sigpipe): Add more comments.
33407
33408 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33409
33410         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33411         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33412         already know the answer.
33413
33414 2009-01-01  Jim Meyering  <meyering@redhat.com>
33415
33416         * lib/version-etc.c (version_etc_va): Update copyright year.
33417
33418 2008-12-30  Bruno Haible  <bruno@clisp.org>
33419
33420         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33421         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33422         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33423
33424 2008-12-29  Eric Blake  <ebb9@byu.net>
33425
33426         multiarch: avoid autoconf AC_REQUIRE bug
33427         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33428         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33429         2.63 and older.
33430         Reported by Bruno Haible, and analyzed in
33431         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33432
33433 2008-12-29  Bruno Haible  <bruno@clisp.org>
33434
33435         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33436         files in subdirectories correctly.
33437         Reported by Ralf Wildenhues.
33438
33439 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33440
33441         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33442         rather than 'join FILE -', for Solaris join.
33443
33444 2008-12-29  Bruno Haible  <bruno@clisp.org>
33445
33446         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33447         quoting.
33448         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33449         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33450         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33451         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33452         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33453         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33454         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33455         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33456         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33457         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33458         * m4/nls.m4 (AM_NLS): Likewise.
33459         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33460         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33461         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33462         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33463         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33464         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33465         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33466         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33467         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33468         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33469         * m4/xsize.m4 (gl_XSIZE): Likewise.
33470         Suggested by Jim Meyering.
33471
33472 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33473
33474         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33475         * lib/parse-duration.c: use a switch instead of cascading if's.
33476
33477 2008-12-29  Eric Blake  <ebb9@byu.net>
33478
33479         wchar.h: supply WEOF on Irix 5.3
33480         * lib/wchar.in.h (wint_t): Also supply WEOF.
33481         * lib/wctype.in.h (wint_t): Likewise.
33482         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33483         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33484         Reported by Tom G. Christensen.
33485
33486 2008-12-26  Bruno Haible  <bruno@clisp.org>
33487
33488         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33489         i486, i586, i686.
33490
33491 2008-12-26  Bruno Haible  <bruno@clisp.org>
33492
33493         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33494
33495 2008-12-26  Bruno Haible  <bruno@clisp.org>
33496
33497         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33498         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33499         not __STDC_CONSTANT_MACROS.
33500         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33501
33502 2008-12-25  Bruno Haible  <bruno@clisp.org>
33503
33504         Add support for universal builds to vasnprintf.
33505         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33506         universal builds, guess no.
33507         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33508         * modules/vasprintf-posix (Depends-on): Likewise.
33509         * modules/fprintf-posix (Depends-on): Likewise.
33510         * modules/vfprintf-posix (Depends-on): Likewise.
33511         * modules/snprintf-posix (Depends-on): Likewise.
33512         * modules/vsnprintf-posix (Depends-on): Likewise.
33513         * modules/sprintf-posix (Depends-on): Likewise.
33514         * modules/vsprintf-posix (Depends-on): Likewise.
33515         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33516         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33517         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33518         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33519         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33520         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33521         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33522
33523         Add support for universal builds to <inttypes.h>.
33524         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33525         _SCNu64_PREFIX): In Apple
33526         universal builds, define directly, using _LP64.
33527         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33528         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33529         * modules/inttypes (Depends-on): Add multiarch.
33530         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33531
33532         Add support for universal builds to <stdint.h>.
33533         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33534         universal builds, define directly, using _LP64.
33535         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33536         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33537         and size_t.
33538         * modules/stdint (Depends-on): Add multiarch.
33539         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33540
33541         New module 'multiarch'.
33542         * modules/multiarch: New file.
33543         * m4/multiarch.m4: New file.
33544
33545 2008-12-25  Bruno Haible  <bruno@clisp.org>
33546
33547         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33548
33549 2008-12-25  Bruno Haible  <bruno@clisp.org>
33550
33551         * modules/btowc (License): Relicense under LGPLv2+.
33552         * modules/mbsinit (License): Likewise.
33553         * modules/mbrtowc (License): Likewise.
33554         * modules/wcrtomb (License): Likewise.
33555         * modules/streq (License): Likewise.
33556         Reported by David Lutterkort <lutter@redhat.com>.
33557
33558 2008-12-23  Bruno Haible  <bruno@clisp.org>
33559
33560         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33561
33562 2008-12-23  Bruno Haible  <bruno@clisp.org>
33563
33564         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33565         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33566         GETADDRINFO_LIB, not in LIBS.
33567         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33568         * modules/canon-host (Link): Likewise.
33569         * NEWS: Mention the change.
33570         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33571         GETADDRINFO_LIB.
33572
33573 2008-12-22  Bruno Haible  <bruno@clisp.org>
33574
33575         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33576         * doc/posix-functions/iswalpha_l.texi: Likewise.
33577         * doc/posix-functions/iswblank_l.texi: Likewise.
33578         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33579         * doc/posix-functions/iswctype_l.texi: Likewise.
33580         * doc/posix-functions/iswdigit_l.texi: Likewise.
33581         * doc/posix-functions/iswgraph_l.texi: Likewise.
33582         * doc/posix-functions/iswlower_l.texi: Likewise.
33583         * doc/posix-functions/iswprint_l.texi: Likewise.
33584         * doc/posix-functions/iswpunct_l.texi: Likewise.
33585         * doc/posix-functions/iswspace_l.texi: Likewise.
33586         * doc/posix-functions/iswupper_l.texi: Likewise.
33587         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33588         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33589         * doc/posix-functions/open_wmemstream.texi: Likewise.
33590         * doc/posix-functions/swscanf.texi: Likewise.
33591         * doc/posix-functions/towctrans_l.texi: Likewise.
33592         * doc/posix-functions/towlower.texi: Likewise.
33593         * doc/posix-functions/towlower_l.texi: Likewise.
33594         * doc/posix-functions/towupper.texi: Likewise.
33595         * doc/posix-functions/towupper_l.texi: Likewise.
33596         * doc/posix-functions/vfwprintf.texi: Likewise.
33597         * doc/posix-functions/vfwscanf.texi: Likewise.
33598         * doc/posix-functions/vswscanf.texi: Likewise.
33599         * doc/posix-functions/vwprintf.texi: Likewise.
33600         * doc/posix-functions/vwscanf.texi: Likewise.
33601         * doc/posix-functions/wcpcpy.texi: Likewise.
33602         * doc/posix-functions/wcpncpy.texi: Likewise.
33603         * doc/posix-functions/wcscasecmp.texi: Likewise.
33604         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33605         * doc/posix-functions/wcscoll_l.texi: Likewise.
33606         * doc/posix-functions/wcsdup.texi: Likewise.
33607         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33608         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33609         * doc/posix-functions/wcsnlen.texi: Likewise.
33610         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33611         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33612         * doc/posix-functions/wctrans_l.texi: Likewise.
33613         * doc/posix-functions/wctype_l.texi: Likewise.
33614         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33615         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33616         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33617         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33618         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33619         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33620         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33621         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33622         * doc/glibc-functions/wcschrnul.texi: Likewise.
33623         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33624         * doc/glibc-functions/wcstod_l.texi: Likewise.
33625         * doc/glibc-functions/wcstof_l.texi: Likewise.
33626         * doc/glibc-functions/wcstol_l.texi: Likewise.
33627         * doc/glibc-functions/wcstold_l.texi: Likewise.
33628         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33629         * doc/glibc-functions/wcstoq.texi: Likewise.
33630         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33631         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33632         * doc/glibc-functions/wcstouq.texi: Likewise.
33633         * doc/glibc-functions/wmempcpy.texi: Likewise.
33634
33635 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33636             Eric Blake  <ebb9@byu.net>
33637             Paolo Bonzini  <bonzini@gnu.org>
33638             Bruno Haible  <bruno@clisp.org>
33639
33640         Make c-stack work on Haiku.
33641         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33642         (c_stack_action): Use SA_ONSTACK flag.
33643
33644 2008-12-22  Bruno Haible  <bruno@clisp.org>
33645
33646         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33647
33648 2008-12-22  Bruno Haible  <bruno@clisp.org>
33649
33650         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33651         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33652         being overridden.
33653         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33654         New macros.
33655         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33657         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33658         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33659
33660 2008-12-22  Bruno Haible  <bruno@clisp.org>
33661
33662         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33663         from test code.
33664
33665 2008-12-22  Eric Blake  <ebb9@byu.net>
33666
33667         Avoid gcc warnings on cygwin.
33668         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33669         Avoid unused variable.
33670         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33671         Likewise.
33672
33673 2008-12-22  Bruno Haible  <bruno@clisp.org>
33674
33675         Remove HAVE_MBRTOWC conditionals.
33676         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33677         (mbscasecmp): Assume mbrtowc function.
33678         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33679         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33680         * lib/mbschr.c: Include mbuiter.h unconditionally.
33681         (mbschr): Assume mbrtowc function.
33682         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33683         (mbscspn): Assume mbrtowc function.
33684         * lib/mbslen.c: Include mbuiter.h unconditionally.
33685         (mbslen): Assume mbrtowc function.
33686         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33687         (mbsncasecmp): Assume mbrtowc function.
33688         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33689         (mbsnlen): Assume mbrtowc function.
33690         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33691         (mbspbrk): Assume mbrtowc function.
33692         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33693         (mbspcasecmp): Assume mbrtowc function.
33694         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33695         (mbsrchr): Assume mbrtowc function.
33696         * lib/mbssep.c: Include mbuiter.h unconditionally.
33697         (mbssep): Assume mbrtowc function.
33698         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33699         (mbsspn): Assume mbrtowc function.
33700         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33701         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33702         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33703         (mbstok_r): Assume mbrtowc function.
33704         * lib/propername.c: Include mbuiter.h unconditionally.
33705         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33706         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33707         (trim2): Assume mbrtowc function.
33708         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33709         (mbsnwidth): Assume mbrtowc function.
33710         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33711         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33712         fallback definitions.
33713         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33714
33715 2008-12-22  Bruno Haible  <bruno@clisp.org>
33716
33717         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33718
33719 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33720
33721         * modules/regex: Request emulations for the mb*/wc* functions we need.
33722         * m4/regex.m4: Don't look for those functions here.
33723         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33724
33725 2008-12-22  Bruno Haible  <bruno@clisp.org>
33726
33727         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33728
33729 2008-12-21  Bruno Haible  <bruno@clisp.org>
33730
33731         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33732         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33733         (Include): Remove conditionalization.
33734         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33735         (Include): Remove conditionalization.
33736         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33737         (Include): Remove conditionalization.
33738         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33739         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33740         * NEWS: Mention the change.
33741         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33742         via Sergey Poznyakoff <gray@gnu.org.ua>.
33743
33744 2008-12-21  Bruno Haible  <bruno@clisp.org>
33745
33746         * MODULES.html.sh (Extended multibyte and wide character utilities
33747         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33748         wcrtomb, wcsrtombs.
33749         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33750         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33751         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33752         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33753
33754 2008-12-21  Bruno Haible  <bruno@clisp.org>
33755
33756         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33757
33758 2008-12-21  Bruno Haible  <bruno@clisp.org>
33759
33760         * modules/wcsnrtombs-tests: New file.
33761         * tests/test-wcsnrtombs1.sh: New file.
33762         * tests/test-wcsnrtombs2.sh: New file.
33763         * tests/test-wcsnrtombs3.sh: New file.
33764         * tests/test-wcsnrtombs4.sh: New file.
33765         * tests/test-wcsnrtombs.c: New file.
33766
33767         New module 'wcsnrtombs'.
33768         * lib/wchar.in.h (wcsnrtombs): New declaration.
33769         * lib/wcsnrtombs.c: New file.
33770         * lib/wcsrtombs-state.c: New file.
33771         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33772         (internal_state): Remove variable.
33773         * m4/wcsnrtombs.m4: New file.
33774         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33775         compilation units.
33776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33777         HAVE_WCSNRTOMBS.
33778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33779         HAVE_WCSNRTOMBS.
33780         * modules/wcsnrtombs: New file.
33781         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33782         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33783
33784 2008-12-21  Bruno Haible  <bruno@clisp.org>
33785
33786         * modules/wcsrtombs-tests: New file.
33787         * tests/test-wcsrtombs1.sh: New file.
33788         * tests/test-wcsrtombs2.sh: New file.
33789         * tests/test-wcsrtombs3.sh: New file.
33790         * tests/test-wcsrtombs4.sh: New file.
33791         * tests/test-wcsrtombs.c: New file.
33792
33793         New module 'wcsrtombs'.
33794         * lib/wchar.in.h (wcsrtombs): New declaration.
33795         * lib/wcsrtombs.c: New file.
33796         * m4/wcsrtombs.m4: New file.
33797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33798         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33800         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33801         * modules/wcsrtombs: New file.
33802         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33803         bugs.
33804
33805 2008-12-21  Bruno Haible  <bruno@clisp.org>
33806
33807         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33808         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33809         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33810         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33811         if not correct.
33812         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33813         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33814         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33815         m4/locale-zh.m4, m4/codeset.m4.
33816         * doc/posix-functions/wcrtomb.texi: Document the bug.
33817
33818 2008-12-21  Bruno Haible  <bruno@clisp.org>
33819
33820         Work around a btowc() bug on IRIX 6.5.
33821         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33822         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33823         REPLACE_WTOBC if not.
33824         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33825         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33826         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33827
33828 2008-12-21  Bruno Haible  <bruno@clisp.org>
33829
33830         * modules/wcrtomb-tests: New file.
33831         * tests/test-wcrtomb.sh: New file.
33832         * tests/test-wcrtomb.c: New file.
33833
33834         New module 'wcrtomb'.
33835         * lib/wchar.in.h (wcrtomb): New declaration.
33836         * lib/wcrtomb.c: New file.
33837         * m4/wcrtomb.m4: New file.
33838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33839         HAVE_WCRTOMB.
33840         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33841         HAVE_WCRTOMB.
33842         * modules/wcrtomb: New file.
33843         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33844
33845 2008-12-21  Bruno Haible  <bruno@clisp.org>
33846
33847         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33848         * modules/mbsrtowcs (Files): Likewise.
33849         * modules/wctob (Files): Likewise.
33850         * modules/c-strcase-tests (Files): Likewise.
33851         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33852         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33853         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33854         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33855         * modules/vasnprintf-posix-tests (Files): Likewise.
33856
33857 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33858
33859         gitlog-to-changelog: pass all command-line arguments to git-log
33860         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33861         it is sometimes convenient to filter the commits in various ways.
33862         gitlog-to-changelog only allows --since to specify a start date,
33863         but git-log itself supports many other filtering mechanisms.
33864         At the moment, I want to filter by branch name.  Rather than
33865         adding a --branch option to gitlog-to-changelog, it seems more
33866         flexible to simply pass all options directly to git-log and let
33867         git do the work.  Notice that this effectively makes --since a
33868         redundant option for gitlog-to-changelog, but removing it would
33869         require current usage to change since calls would then require
33870         an additional '--'.
33871
33872 2008-12-21  Bruno Haible  <bruno@clisp.org>
33873
33874         * modules/mbsnrtowcs-tests: New file.
33875         * tests/test-mbsnrtowcs1.sh: New file.
33876         * tests/test-mbsnrtowcs2.sh: New file.
33877         * tests/test-mbsnrtowcs3.sh: New file.
33878         * tests/test-mbsnrtowcs4.sh: New file.
33879         * tests/test-mbsnrtowcs.c: New file.
33880
33881         New module 'mbsnrtowcs'.
33882         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33883         * lib/mbsnrtowcs.c: New file.
33884         * lib/mbsrtowcs-state.c: New file.
33885         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33886         (internal_state): Remove variable.
33887         * m4/mbsnrtowcs.m4: New file.
33888         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33889         compilation units.
33890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33891         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33892         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33893         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33894         * modules/mbsnrtowcs: New file.
33895         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33896         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33897         portability problem.
33898
33899 2008-12-21  Bruno Haible  <bruno@clisp.org>
33900
33901         Work around mbsrtowcs bug.
33902         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33903         (gl_FUNC_MBSRTOWCS): Invoke it.
33904         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33905         m4/locale-zh.m4.
33906         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33907
33908 2008-12-21  Bruno Haible  <bruno@clisp.org>
33909
33910         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33911
33912 2008-12-21  Bruno Haible  <bruno@clisp.org>
33913
33914         Update doc for AIX.
33915         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33916         16-bit wchar_t type.
33917         * doc/posix-functions/btowc.texi: Likewise.
33918         * doc/posix-functions/fgetwc.texi: Likewise.
33919         * doc/posix-functions/fgetws.texi: Likewise.
33920         * doc/posix-functions/fputwc.texi: Likewise.
33921         * doc/posix-functions/fputws.texi: Likewise.
33922         * doc/posix-functions/fwide.texi: Likewise.
33923         * doc/posix-functions/fwprintf.texi: Likewise.
33924         * doc/posix-functions/fwscanf.texi: Likewise.
33925         * doc/posix-functions/getwchar.texi: Likewise.
33926         * doc/posix-functions/getwc.texi: Likewise.
33927         * doc/posix-functions/iswalnum.texi: Likewise.
33928         * doc/posix-functions/iswalpha.texi: Likewise.
33929         * doc/posix-functions/iswblank.texi: Likewise.
33930         * doc/posix-functions/iswcntrl.texi: Likewise.
33931         * doc/posix-functions/iswctype.texi: Likewise.
33932         * doc/posix-functions/iswdigit.texi: Likewise.
33933         * doc/posix-functions/iswgraph.texi: Likewise.
33934         * doc/posix-functions/iswlower.texi: Likewise.
33935         * doc/posix-functions/iswprint.texi: Likewise.
33936         * doc/posix-functions/iswpunct.texi: Likewise.
33937         * doc/posix-functions/iswspace.texi: Likewise.
33938         * doc/posix-functions/iswupper.texi: Likewise.
33939         * doc/posix-functions/iswxdigit.texi: Likewise.
33940         * doc/posix-functions/mbrtowc.texi: Likewise.
33941         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33942         * doc/posix-functions/mbstowcs.texi: Likewise.
33943         * doc/posix-functions/mbtowc.texi: Likewise.
33944         * doc/posix-functions/putwchar.texi: Likewise.
33945         * doc/posix-functions/putwc.texi: Likewise.
33946         * doc/posix-functions/swprintf.texi: Likewise.
33947         * doc/posix-functions/tolower.texi: Likewise.
33948         * doc/posix-functions/toupper.texi: Likewise.
33949         * doc/posix-functions/towctrans.texi: Likewise.
33950         * doc/posix-functions/ungetwc.texi: Likewise.
33951         * doc/posix-functions/vswprintf.texi: Likewise.
33952         * doc/posix-functions/wcrtomb.texi: Likewise.
33953         * doc/posix-functions/wcscat.texi: Likewise.
33954         * doc/posix-functions/wcschr.texi: Likewise.
33955         * doc/posix-functions/wcscmp.texi: Likewise.
33956         * doc/posix-functions/wcscoll.texi: Likewise.
33957         * doc/posix-functions/wcscpy.texi: Likewise.
33958         * doc/posix-functions/wcscspn.texi: Likewise.
33959         * doc/posix-functions/wcsftime.texi: Likewise.
33960         * doc/posix-functions/wcslen.texi: Likewise.
33961         * doc/posix-functions/wcsncat.texi: Likewise.
33962         * doc/posix-functions/wcsncmp.texi: Likewise.
33963         * doc/posix-functions/wcsncpy.texi: Likewise.
33964         * doc/posix-functions/wcspbrk.texi: Likewise.
33965         * doc/posix-functions/wcsrchr.texi: Likewise.
33966         * doc/posix-functions/wcsrtombs.texi: Likewise.
33967         * doc/posix-functions/wcsspn.texi: Likewise.
33968         * doc/posix-functions/wcsstr.texi: Likewise.
33969         * doc/posix-functions/wcstod.texi: Likewise.
33970         * doc/posix-functions/wcstof.texi: Likewise.
33971         * doc/posix-functions/wcstoimax.texi: Likewise.
33972         * doc/posix-functions/wcstok.texi: Likewise.
33973         * doc/posix-functions/wcstold.texi: Likewise.
33974         * doc/posix-functions/wcstoll.texi: Likewise.
33975         * doc/posix-functions/wcstol.texi: Likewise.
33976         * doc/posix-functions/wcstombs.texi: Likewise.
33977         * doc/posix-functions/wcstoull.texi: Likewise.
33978         * doc/posix-functions/wcstoul.texi: Likewise.
33979         * doc/posix-functions/wcstoumax.texi: Likewise.
33980         * doc/posix-functions/wcswidth.texi: Likewise.
33981         * doc/posix-functions/wcsxfrm.texi: Likewise.
33982         * doc/posix-functions/wctob.texi: Likewise.
33983         * doc/posix-functions/wctomb.texi: Likewise.
33984         * doc/posix-functions/wctrans.texi: Likewise.
33985         * doc/posix-functions/wctype.texi: Likewise.
33986         * doc/posix-functions/wcwidth.texi: Likewise.
33987         * doc/posix-functions/wmemchr.texi: Likewise.
33988         * doc/posix-functions/wmemcmp.texi: Likewise.
33989         * doc/posix-functions/wmemcpy.texi: Likewise.
33990         * doc/posix-functions/wmemmove.texi: Likewise.
33991         * doc/posix-functions/wmemset.texi: Likewise.
33992         * doc/posix-functions/wprintf.texi: Likewise.
33993         * doc/posix-functions/wscanf.texi: Likewise.
33994
33995 2008-12-21  Bruno Haible  <bruno@clisp.org>
33996
33997         Update doc for HP-UX 11.11.
33998         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33999         in HP-UX version 11.00, not in all versions of HP-UX 11.
34000         * doc/posix-functions/fwide.texi: Likewise.
34001         * doc/posix-functions/fwprintf.texi: Likewise.
34002         * doc/posix-functions/fwscanf.texi: Likewise.
34003         * doc/posix-functions/inet_ntop.texi: Likewise.
34004         * doc/posix-functions/inet_pton.texi: Likewise.
34005         * doc/posix-functions/mbrlen.texi: Likewise.
34006         * doc/posix-functions/mbrtowc.texi: Likewise.
34007         * doc/posix-functions/mbsinit.texi: Likewise.
34008         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34009         * doc/posix-functions/swprintf.texi: Likewise.
34010         * doc/posix-functions/swscanf.texi: Likewise.
34011         * doc/posix-functions/towctrans.texi: Likewise.
34012         * doc/posix-functions/vfwprintf.texi: Likewise.
34013         * doc/posix-functions/vswprintf.texi: Likewise.
34014         * doc/posix-functions/vwprintf.texi: Likewise.
34015         * doc/posix-functions/wcrtomb.texi: Likewise.
34016         * doc/posix-functions/wcsrtombs.texi: Likewise.
34017         * doc/posix-functions/wcsstr.texi: Likewise.
34018         * doc/posix-functions/wctob.texi: Likewise.
34019         * doc/posix-functions/wctrans.texi: Likewise.
34020         * doc/posix-functions/wmemchr.texi: Likewise.
34021         * doc/posix-functions/wmemcmp.texi: Likewise.
34022         * doc/posix-functions/wmemcpy.texi: Likewise.
34023         * doc/posix-functions/wmemmove.texi: Likewise.
34024         * doc/posix-functions/wmemset.texi: Likewise.
34025         * doc/posix-functions/wprintf.texi: Likewise.
34026         * doc/posix-functions/wscanf.texi: Likewise.
34027
34028 2008-12-21  Bruno Haible  <bruno@clisp.org>
34029
34030         Work around a portability problem.
34031         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34032         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34033
34034 2008-12-20  Bruno Haible  <bruno@clisp.org>
34035
34036         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34037         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34038         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34040         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34041
34042         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34043         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34044         set.
34045         (GNULIB_defined_mbstate_t): New macro.
34046         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34047         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34048         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34049         reuses the system's mbrtowc function but works around the bugs.
34050         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34051         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34052         macros.
34053         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34054         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34055         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34056         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34057         REPLACE_MBSINIT if mbsinit needs to be overridden.
34058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34059         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34060         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34061         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34062         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34063         m4/locale-zh.m4.
34064         (Depends): Add mbsinit.
34065         * modules/mbsinit (Depends): Add mbrtowc.
34066         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34067
34068 2008-12-20  Bruno Haible  <bruno@clisp.org>
34069
34070         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34071         so that there are no conversion errors on AIX.
34072         * tests/test-mbsrtowcs.c (main): LIkewise.
34073
34074 2008-12-20  Bruno Haible  <bruno@clisp.org>
34075
34076         Work around wctob bug on Solaris <= 9.
34077         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34078         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34079         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34080         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34081         * modules/wctob (Files): Add m4/locale-fr.m4.
34082         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34083
34084 2008-12-20  Bruno Haible  <bruno@clisp.org>
34085
34086         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34087         /dev/null.
34088         * tests/test-select-in.sh: Likewise.
34089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34090
34091 2008-12-20  Bruno Haible  <bruno@clisp.org>
34092
34093         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34094         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34095         Cygwin 1.5.x.
34096
34097 2008-12-20  Bruno Haible  <bruno@clisp.org>
34098
34099         Ensure mbstate_t is defined on HP-UX 11.11.
34100         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34101         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34102         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34103         AC_USE_SYSTEM_EXTENSIONS.
34104         * modules/fnmatch (Depends-on): Add extensions.
34105         * modules/mbrlen (Depends-on): Likewise.
34106         * modules/mbrtowc (Depends-on): Likewise.
34107         * modules/mbsinit (Depends-on): Likewise.
34108         * modules/mbsrtowcs (Depends-on): Likewise.
34109         * modules/mbswidth (Depends-on): Likewise.
34110         * modules/quotearg (Depends-on): Likewise.
34111         * modules/strftime (Depends-on): Likewise.
34112
34113 2008-12-20  Bruno Haible  <bruno@clisp.org>
34114
34115         Ensure wctob is declared on IRIX 6.5.
34116         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34117         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34118         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34119         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34120         of HAVE_WCTOB.
34121         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34122         HAVE_WCTOB.
34123         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34124
34125 2008-12-19  Bruno Haible  <bruno@clisp.org>
34126
34127         * modules/mbsrtowcs-tests: New file.
34128         * tests/test-mbsrtowcs1.sh: New file.
34129         * tests/test-mbsrtowcs2.sh: New file.
34130         * tests/test-mbsrtowcs3.sh: New file.
34131         * tests/test-mbsrtowcs4.sh: New file.
34132         * tests/test-mbsrtowcs.c: New file.
34133
34134         New module 'mbsrtowcs'.
34135         * lib/wchar.in.h (mbsrtowcs): New declaration.
34136         * lib/mbsrtowcs.c: New file.
34137         * m4/mbsrtowcs.m4: New file.
34138         * modules/mbsrtowcs: New file.
34139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34140         HAVE_MBSRTOWCS.
34141         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34142         HAVE_MBSRTOWCS.
34143         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34144
34145 2008-12-19  Bruno Haible  <bruno@clisp.org>
34146
34147         New module 'mbrlen'.
34148         * lib/wchar.in.h (mbrlen): New declaration.
34149         * lib/mbrlen.c: New file.
34150         * m4/mbrlen.m4: New file.
34151         * modules/mbrlen: New file.
34152         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34153         HAVE_MBRLEN.
34154         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34155         HAVE_MBRLEN.
34156         * doc/posix-functions/mbrlen.texi: Document the new module.
34157
34158 2008-12-19  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34161         * modules/mbrtowc (Depends-on): Add verify.
34162         Suggested by Paul Eggert.
34163
34164 2008-12-18  Bruno Haible  <bruno@clisp.org>
34165
34166         * modules/mbsinit-tests: New file.
34167         * tests/test-mbsinit.sh: New file.
34168         * tests/test-mbsinit.c: New file.
34169
34170 2008-12-18  Bruno Haible  <bruno@clisp.org>
34171
34172         * modules/mbrtowc-tests: New file.
34173         * tests/test-mbrtowc1.sh: New file.
34174         * tests/test-mbrtowc2.sh: New file.
34175         * tests/test-mbrtowc3.sh: New file.
34176         * tests/test-mbrtowc4.sh: New file.
34177         * tests/test-mbrtowc.c: New file.
34178
34179         New module 'mbrtowc'.
34180         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34181         mbsinit and mbrtowc.
34182         (mbrtowc): New declaration.
34183         * lib/mbrtowc.c: New file.
34184         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34185         * modules/mbrtowc: New file.
34186         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34187         HAVE_MBRTOWC.
34188         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34189         HAVE_MBRTOWC.
34190         * doc/posix-functions/mbrtowc.texi: Document the new module.
34191
34192 2008-12-18  Bruno Haible  <bruno@clisp.org>
34193
34194         New module 'wctob'.
34195         * lib/wchar.in.h (wctob): New declaration.
34196         * lib/wctob.c: New file.
34197         * m4/wctob.m4: New file.
34198         * modules/wctob: New file.
34199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34200         HAVE_WCTOB.
34201         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34202         * doc/posix-functions/wctob.texi: Document the new module.
34203
34204 2008-12-18  Bruno Haible  <bruno@clisp.org>
34205
34206         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34207         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34208
34209 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34210
34211         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34212         G. Christensen" <tgc@jupiterrise.com>.
34213
34214         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34215         G. Christensen" <tgc@jupiterrise.com>.
34216
34217         * lib/flock.c: Need to include string.h.  Reported by "Tom
34218         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34219         <ebb9@byu.net>.
34220
34221 2008-12-18  Bruno Haible  <bruno@clisp.org>
34222
34223         * m4/locale-ja.m4: New file, from GNU gettext.
34224
34225 2008-12-17  Bruno Haible  <bruno@clisp.org>
34226
34227         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34228         Suggested by Eric Blake.
34229
34230 2008-12-17  Bruno Haible  <bruno@clisp.org>
34231
34232         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34233
34234 2008-12-17  Bruno Haible  <bruno@clisp.org>
34235
34236         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34237         * modules/mbsinit (Depends-on): Add verify.
34238         Suggested by Paul Eggert.
34239
34240 2008-12-17  Bruno Haible  <bruno@clisp.org>
34241
34242         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34243         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34244         gl_FUNC_MBRTOWC.
34245         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34246         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34247         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34248         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34249         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34250         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34251         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34252         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34253         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34254         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34255         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34256         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34257         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34258         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34259         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34260         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34261         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34262         * modules/trim (configure.ac): Likewise.
34263
34264 2008-12-17  Bruno Haible  <bruno@clisp.org>
34265
34266         * modules/btowc-tests: New file.
34267         * tests/test-btowc1.sh: New file.
34268         * tests/test-btowc2.sh: New file.
34269         * tests/test-btowc.c: New file.
34270
34271         New module 'btowc'.
34272         * lib/wchar.in.h (btowc): New declaration.
34273         * lib/btowc.c: New file.
34274         * m4/btowc.m4: New file.
34275         * modules/btowc: New file.
34276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34277         HAVE_BTOWC.
34278         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34279         * doc/posix-functions/btowc.texi: Document the new module.
34280
34281 2008-12-17  Bruno Haible  <bruno@clisp.org>
34282
34283         New module 'mbsinit'.
34284         * lib/wchar.in.h (mbsinit): New declaration.
34285         * lib/mbsinit.c: New file.
34286         * m4/mbsinit.m4: New file.
34287         * modules/mbsinit: New file.
34288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34289         HAVE_MBSINIT.
34290         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34291         HAVE_MBSINIT.
34292         * doc/posix-functions/mbsinit.texi: Document the new module.
34293
34294 2008-12-16  Bruno Haible  <bruno@clisp.org>
34295
34296         * lib/unistd.in.h: Add comment.
34297         * tests/test-environ.c: Don't include <stdlib.h>.
34298
34299 2008-12-16  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/parse-duration.h (parse_duration): Document return value
34302         convention.
34303         * lib/parse-duration.c: Include specification header first. Add
34304         comments.
34305         (_): Remove macro.
34306         (parse_year_month_day, parse_hour_minute_second): Move side effects
34307         outside of strchr call.
34308         (parse_non_iso8601): Move side effects outside of isspace call.
34309         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34310         call.
34311
34312 2008-12-16  Bruno Haible  <bruno@clisp.org>
34313
34314         * tests/test-parse-duration.sh: Produce no output when the test
34315         succeeds.
34316
34317 2008-12-16  Bruno Haible  <bruno@clisp.org>
34318
34319         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34320         expressions.
34321
34322 2008-12-15  Bruno Haible  <bruno@clisp.org>
34323
34324         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34325         * doc/glibc-functions/flistxattr.texi: Likewise.
34326         * doc/glibc-functions/fopencookie.texi: Likewise.
34327         * doc/glibc-functions/fremovexattr.texi: Likewise.
34328         * doc/glibc-functions/fsetxattr.texi: Likewise.
34329         * doc/glibc-functions/getxattr.texi: Likewise.
34330         * doc/glibc-functions/lgetxattr.texi: Likewise.
34331         * doc/glibc-functions/listxattr.texi: Likewise.
34332         * doc/glibc-functions/llistxattr.texi: Likewise.
34333         * doc/glibc-functions/lremovexattr.texi: Likewise.
34334         * doc/glibc-functions/lsetxattr.texi: Likewise.
34335         * doc/glibc-functions/removexattr.texi: Likewise.
34336         * doc/glibc-functions/setxattr.texi: Likewise.
34337         * doc/posix-functions/open_memstream.texi: Likewise.
34338
34339 2008-12-15  Eric Blake  <ebb9@byu.net>
34340
34341         Update doc for cygwin 1.7.
34342         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34343         functions.
34344         * doc/posix-functions/fchmodat.texi: Likewise.
34345         * doc/posix-functions/fchownat.texi: Likewise.
34346         * doc/posix-functions/fdopendir.texi: Likewise.
34347         * doc/posix-functions/fmemopen.texi: Likewise.
34348         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34349         * doc/posix-functions/fstatat.texi: Likewise.
34350         * doc/posix-functions/futimens.texi: Likewise.
34351         * doc/posix-functions/gai_strerror.texi: Likewise.
34352         * doc/posix-functions/getaddrinfo.texi: Likewise.
34353         * doc/posix-functions/getnameinfo.texi: Likewise.
34354         * doc/posix-functions/if_freenameindex.texi: Likewise.
34355         * doc/posix-functions/if_indextoname.texi: Likewise.
34356         * doc/posix-functions/if_nameindex.texi: Likewise.
34357         * doc/posix-functions/if_nametoindex.texi: Likewise.
34358         * doc/posix-functions/insque.texi: Likewise.
34359         * doc/posix-functions/linkat.texi: Likewise.
34360         * doc/posix-functions/llrint.texi: Likewise.
34361         * doc/posix-functions/llrintf.texi: Likewise.
34362         * doc/posix-functions/llrintl.texi: Likewise.
34363         * doc/posix-functions/lockf.texi: Likewise.
34364         * doc/posix-functions/lrintl.texi: Likewise.
34365         * doc/posix-functions/mkdirat.texi: Likewise.
34366         * doc/posix-functions/mkfifoat.texi: Likewise.
34367         * doc/posix-functions/mknodat.texi: Likewise.
34368         * doc/posix-functions/mq_close.texi: Likewise.
34369         * doc/posix-functions/mq_getattr.texi: Likewise.
34370         * doc/posix-functions/mq_notify.texi: Likewise.
34371         * doc/posix-functions/mq_open.texi: Likewise.
34372         * doc/posix-functions/mq_receive.texi: Likewise.
34373         * doc/posix-functions/mq_send.texi: Likewise.
34374         * doc/posix-functions/mq_setattr.texi: Likewise.
34375         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34376         * doc/posix-functions/mq_timedsend.texi: Likewise.
34377         * doc/posix-functions/mq_unlink.texi: Likewise.
34378         * doc/posix-functions/open_memstream.texi: Likewise.
34379         * doc/posix-functions/openat.texi: Likewise.
34380         * doc/posix-functions/posix_fadvise.texi: Likewise.
34381         * doc/posix-functions/posix_fallocate.texi: Likewise.
34382         * doc/posix-functions/posix_madvise.texi: Likewise.
34383         * doc/posix-functions/posix_memalign.texi: Likewise.
34384         * doc/posix-functions/posix_openpt.texi: Likewise.
34385         * doc/posix-functions/readlinkat.texi: Likewise.
34386         * doc/posix-functions/remque.texi: Likewise.
34387         * doc/posix-functions/renameat.texi: Likewise.
34388         * doc/posix-functions/rintl.texi: Likewise.
34389         * doc/posix-functions/sem_unlink.texi: Likewise.
34390         * doc/posix-functions/shm_open.texi: Likewise.
34391         * doc/posix-functions/shm_unlink.texi: Likewise.
34392         * doc/posix-functions/signgam.texi: Likewise.
34393         * doc/posix-functions/sigset.texi: Likewise.
34394         * doc/posix-functions/stpcpy.texi: Likewise.
34395         * doc/posix-functions/stpncpy.texi: Likewise.
34396         * doc/posix-functions/strerror.texi: Likewise.
34397         * doc/posix-functions/strtod.texi: Likewise.
34398         * doc/posix-functions/symlinkat.texi: Likewise.
34399         * doc/posix-functions/unlinkat.texi: Likewise.
34400         * doc/posix-functions/utimensat.texi: Likewise.
34401         * doc/glibc-functions/bindresvport.texi: Likewise.
34402         * doc/glibc-functions/dn_expand.texi: Likewise.
34403         * doc/glibc-functions/exp10.texi: Likewise.
34404         * doc/glibc-functions/exp10f.texi: Likewise.
34405         * doc/glibc-functions/fgetxattr.texi: Likewise.
34406         * doc/glibc-functions/flistxattr.texi: Likewise.
34407         * doc/glibc-functions/fopencookie.texi: Likewise.
34408         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34409         * doc/glibc-functions/fremovexattr.texi: Likewise.
34410         * doc/glibc-functions/fsetxattr.texi: Likewise.
34411         * doc/glibc-functions/getifaddrs.texi: Likewise.
34412         * doc/glibc-functions/getxattr.texi: Likewise.
34413         * doc/glibc-functions/lgetxattr.texi: Likewise.
34414         * doc/glibc-functions/listxattr.texi: Likewise.
34415         * doc/glibc-functions/llistxattr.texi: Likewise.
34416         * doc/glibc-functions/lremovexattr.texi: Likewise.
34417         * doc/glibc-functions/lsetxattr.texi: Likewise.
34418         * doc/glibc-functions/pow10.texi: Likewise.
34419         * doc/glibc-functions/pow10f.texi: Likewise.
34420         * doc/glibc-functions/rcmd_af.texi: Likewise.
34421         * doc/glibc-functions/removexattr.texi: Likewise.
34422         * doc/glibc-functions/res_init.texi: Likewise.
34423         * doc/glibc-functions/res_mkquery.texi: Likewise.
34424         * doc/glibc-functions/res_query.texi: Likewise.
34425         * doc/glibc-functions/res_querydomain.texi: Likewise.
34426         * doc/glibc-functions/res_send.texi: Likewise.
34427         * doc/glibc-functions/rresvport_af.texi: Likewise.
34428         * doc/glibc-functions/setxattr.texi: Likewise.
34429         * doc/glibc-functions/strcasestr.texi: Likewise.
34430
34431 2008-12-15  Bruno Haible  <bruno@clisp.org>
34432
34433         Fix compilation error on OSF/1 4.0.
34434         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34435         <sys/time.h>, simply delegate to the system header.
34436         Reported by Daniel Richard G. <oss@teragram.com>.
34437
34438 2008-12-15  Bruno Haible  <bruno@clisp.org>
34439
34440         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34441         * doc/posix-functions/fchmodat.texi: Likewise.
34442         * doc/posix-functions/fchownat.texi: Likewise.
34443         * doc/posix-functions/fdopendir.texi: Likewise.
34444         * doc/posix-functions/fstatat.texi: Likewise.
34445         * doc/posix-functions/mkdirat.texi: Likewise.
34446         * doc/posix-functions/unlinkat.texi: Likewise.
34447
34448 2008-12-14  Bruno Haible  <bruno@clisp.org>
34449
34450         Update doc for POSIX:2008.
34451         * doc/posix-functions/faccessat.texi: New file.
34452         * doc/posix-functions/fchmodat.texi: New file.
34453         * doc/posix-functions/fchownat.texi: New file.
34454         * doc/posix-functions/fdopendir.texi: New file.
34455         * doc/posix-functions/fstatat.texi: New file.
34456         * doc/posix-functions/futimens.texi: New file.
34457         * doc/posix-functions/linkat.texi: New file.
34458         * doc/posix-functions/mkdirat.texi: New file.
34459         * doc/posix-functions/mkfifoat.texi: New file.
34460         * doc/posix-functions/mknodat.texi: New file.
34461         * doc/posix-functions/open_wmemstream.texi: New file.
34462         * doc/posix-functions/openat.texi: New file.
34463         * doc/posix-functions/psiginfo.texi: New file.
34464         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34465         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34466         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34467         * doc/posix-functions/readlinkat.texi: New file.
34468         * doc/posix-functions/renameat.texi: New file.
34469         * doc/posix-functions/strerror_l.texi: New file.
34470         * doc/posix-functions/symlinkat.texi: New file.
34471         * doc/posix-functions/unlinkat.texi: New file.
34472         * doc/posix-functions/utimensat.texi: New file.
34473         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34474
34475 2008-12-14  Bruno Haible  <bruno@clisp.org>
34476
34477         Update doc for POSIX:2008.
34478         * doc/posix-functions/alphasort.texi: Renamed from
34479         doc/glibc-functions/alphasort.texi.
34480         * doc/posix-functions/dirfd.texi: Renamed from
34481         doc/glibc-functions/dirfd.texi.
34482         * doc/posix-functions/dprintf.texi: Renamed from
34483         doc/glibc-functions/dprintf.texi.
34484         * doc/posix-functions/duplocale.texi: Renamed from
34485         doc/glibc-functions/duplocale.texi.
34486         * doc/posix-functions/fexecve.texi: Renamed from
34487         doc/glibc-functions/fexecve.texi.
34488         * doc/posix-functions/fmemopen.texi: Renamed from
34489         doc/glibc-functions/fmemopen.texi.
34490         * doc/posix-functions/freelocale.texi: Renamed from
34491         doc/glibc-functions/freelocale.texi.
34492         * doc/posix-functions/getdate_err.texi: Renamed from
34493         doc/glibc-functions/getdate_err.texi.
34494         * doc/posix-functions/isalnum_l.texi: Renamed from
34495         doc/glibc-functions/isalnum_l.texi.
34496         * doc/posix-functions/isalpha_l.texi: Renamed from
34497         doc/glibc-functions/isalpha_l.texi.
34498         * doc/posix-functions/isblank_l.texi: Renamed from
34499         doc/glibc-functions/isblank_l.texi.
34500         * doc/posix-functions/iscntrl_l.texi: Renamed from
34501         doc/glibc-functions/iscntrl_l.texi.
34502         * doc/posix-functions/isdigit_l.texi: Renamed from
34503         doc/glibc-functions/isdigit_l.texi.
34504         * doc/posix-functions/isgraph_l.texi: Renamed from
34505         doc/glibc-functions/isgraph_l.texi.
34506         * doc/posix-functions/islower_l.texi: Renamed from
34507         doc/glibc-functions/islower_l.texi.
34508         * doc/posix-functions/isprint_l.texi: Renamed from
34509         doc/glibc-functions/isprint_l.texi.
34510         * doc/posix-functions/ispunct_l.texi: Renamed from
34511         doc/glibc-functions/ispunct_l.texi.
34512         * doc/posix-functions/isspace_l.texi: Renamed from
34513         doc/glibc-functions/isspace_l.texi.
34514         * doc/posix-functions/isupper_l.texi: Renamed from
34515         doc/glibc-functions/isupper_l.texi.
34516         * doc/posix-functions/iswalnum_l.texi: Renamed from
34517         doc/glibc-functions/iswalnum_l.texi.
34518         * doc/posix-functions/iswalpha_l.texi: Renamed from
34519         doc/glibc-functions/iswalpha_l.texi.
34520         * doc/posix-functions/iswblank_l.texi: Renamed from
34521         doc/glibc-functions/iswblank_l.texi.
34522         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34523         doc/glibc-functions/iswcntrl_l.texi.
34524         * doc/posix-functions/iswctype_l.texi: Renamed from
34525         doc/glibc-functions/iswctype_l.texi.
34526         * doc/posix-functions/iswdigit_l.texi: Renamed from
34527         doc/glibc-functions/iswdigit_l.texi.
34528         * doc/posix-functions/iswgraph_l.texi: Renamed from
34529         doc/glibc-functions/iswgraph_l.texi.
34530         * doc/posix-functions/iswlower_l.texi: Renamed from
34531         doc/glibc-functions/iswlower_l.texi.
34532         * doc/posix-functions/iswprint_l.texi: Renamed from
34533         doc/glibc-functions/iswprint_l.texi.
34534         * doc/posix-functions/iswpunct_l.texi: Renamed from
34535         doc/glibc-functions/iswpunct_l.texi.
34536         * doc/posix-functions/iswspace_l.texi: Renamed from
34537         doc/glibc-functions/iswspace_l.texi.
34538         * doc/posix-functions/iswupper_l.texi: Renamed from
34539         doc/glibc-functions/iswupper_l.texi.
34540         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34541         doc/glibc-functions/iswxdigit_l.texi.
34542         * doc/posix-functions/isxdigit_l.texi: Renamed from
34543         doc/glibc-functions/isxdigit_l.texi.
34544         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34545         doc/glibc-functions/mbsnrtowcs.texi.
34546         * doc/posix-functions/mkdtemp.texi: Renamed from
34547         doc/glibc-functions/mkdtemp.texi.
34548         * doc/posix-functions/newlocale.texi: Renamed from
34549         doc/glibc-functions/newlocale.texi.
34550         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34551         doc/glibc-functions/nl_langinfo_l.texi.
34552         * doc/posix-functions/open_memstream.texi: Renamed from
34553         doc/glibc-functions/open_memstream.texi.
34554         * doc/posix-functions/opterr.texi: Renamed from
34555         doc/glibc-functions/opterr.texi.
34556         * doc/posix-functions/optind.texi: Renamed from
34557         doc/glibc-functions/optind.texi.
34558         * doc/posix-functions/optopt.texi: Renamed from
34559         doc/glibc-functions/optopt.texi.
34560         * doc/posix-functions/psignal.texi: Renamed from
34561         doc/glibc-functions/psignal.texi.
34562         * doc/posix-functions/scandir.texi: Renamed from
34563         doc/glibc-functions/scandir.texi.
34564         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34565         doc/glibc-functions/sched_get_priority_min.texi.
34566         * doc/posix-functions/signgam.texi: Renamed from
34567         doc/glibc-functions/signgam.texi.
34568         * doc/posix-functions/stpcpy.texi: Renamed from
34569         doc/glibc-functions/stpcpy.texi.
34570         * doc/posix-functions/stpncpy.texi: Renamed from
34571         doc/glibc-functions/stpncpy.texi.
34572         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34573         doc/glibc-functions/strcasecmp_l.texi.
34574         * doc/posix-functions/strcoll_l.texi: Renamed from
34575         doc/glibc-functions/strcoll_l.texi.
34576         * doc/posix-functions/strfmon_l.texi: Renamed from
34577         doc/glibc-functions/strfmon_l.texi.
34578         * doc/posix-functions/strftime_l.texi: Renamed from
34579         doc/glibc-functions/strftime_l.texi.
34580         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34581         doc/glibc-functions/strncasecmp_l.texi.
34582         * doc/posix-functions/strndup.texi: Renamed from
34583         doc/glibc-functions/strndup.texi.
34584         * doc/posix-functions/strnlen.texi: Renamed from
34585         doc/glibc-functions/strnlen.texi.
34586         * doc/posix-functions/strsignal.texi: Renamed from
34587         doc/glibc-functions/strsignal.texi.
34588         * doc/posix-functions/strxfrm_l.texi: Renamed from
34589         doc/glibc-functions/strxfrm_l.texi.
34590         * doc/posix-functions/timer_gettime.texi: Renamed from
34591         doc/glibc-functions/timer_gettime.texi.
34592         * doc/posix-functions/tolower_l.texi: Renamed from
34593         doc/glibc-functions/tolower_l.texi.
34594         * doc/posix-functions/toupper_l.texi: Renamed from
34595         doc/glibc-functions/toupper_l.texi.
34596         * doc/posix-functions/towctrans_l.texi: Renamed from
34597         doc/glibc-functions/towctrans_l.texi.
34598         * doc/posix-functions/towlower_l.texi: Renamed from
34599         doc/glibc-functions/towlower_l.texi.
34600         * doc/posix-functions/towupper_l.texi: Renamed from
34601         doc/glibc-functions/towupper_l.texi.
34602         * doc/posix-functions/uselocale.texi: Renamed from
34603         doc/glibc-functions/uselocale.texi.
34604         * doc/posix-functions/vdprintf.texi: Renamed from
34605         doc/glibc-functions/vdprintf.texi.
34606         * doc/posix-functions/wcpcpy.texi:
34607         Renamed from doc/glibc-functions/wcpcpy.texi.
34608         * doc/posix-functions/wcpncpy.texi: Renamed from
34609         doc/glibc-functions/wcpncpy.texi.
34610         * doc/posix-functions/wcscasecmp.texi: Renamed from
34611         doc/glibc-functions/wcscasecmp.texi.
34612         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34613         doc/glibc-functions/wcscasecmp_l.texi.
34614         * doc/posix-functions/wcscoll_l.texi: Renamed from
34615         doc/glibc-functions/wcscoll_l.texi.
34616         * doc/posix-functions/wcsdup.texi: Renamed from
34617         doc/glibc-functions/wcsdup.texi.
34618         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34619         doc/glibc-functions/wcsncasecmp.texi.
34620         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34621         doc/glibc-functions/wcsncasecmp_l.texi.
34622         * doc/posix-functions/wcsnlen.texi: Renamed from
34623         doc/glibc-functions/wcsnlen.texi.
34624         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34625         doc/glibc-functions/wcsnrtombs.texi.
34626         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34627         doc/glibc-functions/wcsxfrm_l.texi.
34628         * doc/posix-functions/wctrans_l.texi: Renamed from
34629         doc/glibc-functions/wctrans_l.texi.
34630         * doc/posix-functions/wctype_l.texi: Renamed from
34631         doc/glibc-functions/wctype_l.texi.
34632         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34633         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34634         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34635         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34636         these subsections.
34637         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34638         Remove sections.
34639
34640 2008-12-14  Bruno Haible  <bruno@clisp.org>
34641
34642         Update doc for POSIX:2008.
34643         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34644
34645 2008-12-14  Bruno Haible  <bruno@clisp.org>
34646
34647         Update doc for POSIX:2008.
34648         * doc/pastposix-functions/bcmp.texi: Renamed from
34649         doc/posix-functions/bcmp.texi.
34650         * doc/pastposix-functions/bcopy.texi: Renamed from
34651         doc/posix-functions/bcopy.texi.
34652         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34653         doc/posix-functions/bsd_signal.texi.
34654         * doc/pastposix-functions/bzero.texi: Renamed from
34655         doc/posix-functions/bzero.texi.
34656         * doc/pastposix-functions/ecvt.texi: Renamed from
34657         doc/posix-functions/ecvt.texi.
34658         * doc/pastposix-functions/fcvt.texi: Renamed from
34659         doc/posix-functions/fcvt.texi.
34660         * doc/pastposix-functions/ftime.texi: Renamed from
34661         doc/posix-functions/ftime.texi.
34662         * doc/pastposix-functions/gcvt.texi: Renamed from
34663         doc/posix-functions/gcvt.texi.
34664         * doc/pastposix-functions/getcontext.texi: Renamed from
34665         doc/posix-functions/getcontext.texi.
34666         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34667         doc/posix-functions/gethostbyaddr.texi.
34668         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34669         doc/posix-functions/gethostbyname.texi.
34670         * doc/pastposix-functions/getwd.texi: Renamed from
34671         doc/posix-functions/getwd.texi.
34672         * doc/pastposix-functions/h_errno.texi: Renamed from
34673         doc/posix-functions/h_errno.texi.
34674         * doc/pastposix-functions/index.texi: Renamed from
34675         doc/posix-functions/index.texi.
34676         * doc/pastposix-functions/makecontext.texi: Renamed from
34677         doc/posix-functions/makecontext.texi.
34678         * doc/pastposix-functions/mktemp.texi: Renamed from
34679         doc/posix-functions/mktemp.texi.
34680         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34681         doc/posix-functions/pthread_attr_getstackaddr.texi.
34682         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34683         doc/posix-functions/pthread_attr_setstackaddr.texi.
34684         * doc/pastposix-functions/rindex.texi: Renamed from
34685         doc/posix-functions/rindex.texi.
34686         * doc/pastposix-functions/scalb.texi: Renamed from
34687         doc/posix-functions/scalb.texi.
34688         * doc/pastposix-functions/setcontext.texi: Renamed from
34689         doc/posix-functions/setcontext.texi.
34690         * doc/pastposix-functions/swapcontext.texi: Renamed from
34691         doc/posix-functions/swapcontext.texi.
34692         * doc/pastposix-functions/ualarm.texi: Renamed from
34693         doc/posix-functions/ualarm.texi.
34694         * doc/pastposix-functions/usleep.texi: Renamed from
34695         doc/posix-functions/usleep.texi.
34696         * doc/pastposix-functions/vfork.texi: Renamed from
34697         doc/posix-functions/vfork.texi.
34698         * doc/pastposix-functions/wcswcs.texi: Renamed from
34699         doc/posix-functions/wcswcs.texi.
34700         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34701         (Function Substitutes): Update.
34702
34703 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34704
34705         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34706         m4/strerror.m4.
34707
34708 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34709             Bruno Haible  <bruno@clisp.org>
34710
34711         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34712
34713 2008-12-13  Bruno Haible  <bruno@clisp.org>
34714
34715         * modules/strtoull (Depends-on): Remove unistd.
34716
34717 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34718
34719         * modules/strtoull (Depends-on): Add stdlib.
34720
34721 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34722
34723         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34724
34725 2008-12-10  Jim Meyering  <meyering@redhat.com>
34726
34727         gl_ASSERT: don't say assertions are disabled when they're not
34728         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34729         "checking whether to enable assertions... no", when they are in
34730         fact enabled.  This is solely a bug in the output of configure.
34731         In spite of saying "no", NDEBUG was not defined in that case.
34732         Also, as noted by Eric Blake, leave assertions enabled upon
34733         --enable-assert=INVALID.
34734
34735 2008-12-10  Bruno Haible  <bruno@clisp.org>
34736
34737         Change MODULES.html to refer to POSIX:2008 where possible.
34738         * MODULES.html.sh (POSIX2008_URL): New variable.
34739         (posix_headers): Remove sys/timeb, ucontext.
34740         (posix2001_headers): New variable.
34741         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34742         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34743         index, makecontext, mktemp, pthread_attr_getstackaddr,
34744         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34745         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34746         (posix2001_functions): New variable.
34747         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34748         otherwise.
34749
34750 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34751
34752         add missing include to parse-duration.c
34753         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34754         * modules/parse-duration (Depends-on): Add xalloc.
34755
34756         fix sed script reading maint.mk
34757         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34758         (syntax-check-rules): Use it.
34759
34760 2008-12-09  Bruno Haible  <bruno@clisp.org>
34761
34762         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34763         MacOS X 10.4/PowerPC.
34764         Reported by Simon Josefsson.
34765
34766 2008-12-08  Jim Meyering  <meyering@redhat.com>
34767
34768         work around mingw's lack of some S_IF definitions
34769         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34770         Reported by Simon Josefsson.
34771
34772 2008-12-08  Bruno Haible  <bruno@clisp.org>
34773
34774         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34775         applied to variables. Needed on MacOS X 10.4/PowerPC.
34776         Reported by Simon Josefsson.
34777
34778 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34779         and Eric Blake  <ebb9@byu.net>
34780
34781         assert: honor --enable-assert
34782         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34783         order to honor --enable-assert, rather than treating it as a
34784         synonym for --disable-assert.
34785
34786 2008-12-08  Jim Meyering  <meyering@redhat.com>
34787
34788         * lib/posixtm.c: Remove now-useless declaration of mktime.
34789
34790         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34791
34792 2008-12-07  Bruno Haible  <bruno@clisp.org>
34793
34794         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34795         test_once): Mark functions as static.
34796         * tests/test-tls.c (test_tls): Likewise.
34797
34798 2008-12-07  Bruno Haible  <bruno@clisp.org>
34799
34800         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34801         iconv_register_autodetect.
34802
34803 2008-12-07  Jim Meyering  <meyering@redhat.com>
34804
34805         posixtm.c: avoid a warning
34806         * lib/posixtm.c (posixtime): Don't initialize tm0.
34807         It's no longer needed to placate gcc4's -Wuninitialized,
34808         and the attempt to placate would elicit a new warning.
34809
34810         unicodeio.c: mark unused parameters
34811         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34812         (fallback_failure_callback): Likewise.
34813
34814 2008-12-07  Bruno Haible  <bruno@clisp.org>
34815
34816         * gnulib-tool (func_create_testdir): When building the tests
34817         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34818         Reported by Simon Josefsson.
34819
34820 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34821
34822         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34823
34824 2008-12-06  Bruno Haible  <bruno@clisp.org>
34825
34826         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34827         Suggested by Eric Blake.
34828
34829 2008-12-06  Bruno Haible  <bruno@clisp.org>
34830
34831         Fix a c-stack test failure on MacOS X.
34832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34833         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34834         handler for SIGBUS as well.
34835         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34836         install a signal handler for SIGBUS as well.
34837         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34838
34839 2008-12-06  Bruno Haible  <bruno@clisp.org>
34840
34841         Advocacy documentation.
34842         * doc/gnulib-intro.texi (Benefits): New section.
34843         * doc/gnulib.texi: Update.
34844
34845 2008-12-06  Bruno Haible  <bruno@clisp.org>
34846
34847         Document the 'manywarnings' module.
34848         * doc/manywarnings.texi: New file.
34849         * doc/gnulib.texi: Include it.
34850
34851 2008-12-05  Eric Blake  <ebb9@byu.net>
34852
34853         tests: silence some gcc warnings
34854         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34855         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34856         type mismatches.
34857
34858 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34859             Bruno Haible  <bruno@clisp.org>
34860
34861         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34862
34863 2008-11-29  Jim Meyering  <meyering@redhat.com>
34864
34865         unicodeio.c: mark unused parameters
34866         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34867         (fallback_failure_callback): Likewise.
34868
34869         fts: fix a thinko
34870         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34871         (set_stat_type): Return S_IF*-valued "type" directly.
34872         Prompted by James Youngman's spotting a related bug.
34873         Confirmed by further testing through find.
34874
34875         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34876         * lib/fts.c (D_TYPE): Define.
34877         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34878         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34879         (s_ifmt_shift_bits): New function.
34880         (set_stat_type): New function.
34881         (fts_build): When not calling fts_stat, call set_stat_type
34882         to propagate dirent.d_type info to fts_read caller.
34883         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34884         fts_statp->st_mode type information may be valid.
34885
34886 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34887
34888         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34889         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34890         <sds@gnu.org>.
34891
34892 2008-11-20  Bruno Haible  <bruno@clisp.org>
34893
34894         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34895         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34896         INCLUDE_NEXT.
34897         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34898         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34899         * modules/math (Makefile.am): Substitute
34900         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34901         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34902
34903 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34904             Bruno Haible  <bruno@clisp.org>
34905
34906         * lib/stdint.in.h: Define all type macros so that their expansion is
34907         a single typedef'ed token. Fixes a compilation failure in Boost which
34908         does "using ::int8_t;".
34909
34910 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34911
34912         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34913         gl_MANYWARN_ALL_GCC.
34914         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34915         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34916         * modules/manywarnings: New file.
34917         * MODULES.html.sh: Mention manywarnings module.
34918
34919 2008-11-18  Bruno Haible  <bruno@clisp.org>
34920
34921         * doc/gnulib-tool.texi (Unit tests): New section.
34922
34923 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34924
34925         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34926         paths like 'lib/po/foo.po'.
34927
34928 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34929
34930         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34931         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34932
34933 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34934
34935         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34936         parameter works.
34937
34938 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34939
34940         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34941
34942 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34943
34944         * modules/parse-duration-tests: New file.
34945         * tests/test-parse-duration.sh: New file.
34946         * tests/test-parse-duration.c: New file.
34947
34948         New module 'parse-duration'.
34949         * lib/parse-duration.h: New file.
34950         * lib/parse-duration.c: New file.
34951         * modules/parse-duration: New file.
34952
34953 2008-11-17  Bruno Haible  <bruno@clisp.org>
34954
34955         * tests/test-select-out.sh: Comment out the first pipe test.
34956         Reported by Simon Josefsson.
34957
34958 2008-11-17  Bruno Haible  <bruno@clisp.org>
34959
34960         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34962         gl_HOSTENT.
34963
34964 2008-11-17  Bruno Haible  <bruno@clisp.org>
34965
34966         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34967         -lnetwork and -lnet. Needed for Haiku and BeOS.
34968
34969 2008-11-16  Bruno Haible  <bruno@clisp.org>
34970
34971         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34972
34973 2008-11-16  Bruno Haible  <bruno@clisp.org>
34974
34975         Avoid test failure on Haiku.
34976         * tests/test-fsync.c: Include <errno.h>.
34977         (main): Don't require that fsync (0) fails.
34978
34979 2008-11-15  Bruno Haible  <bruno@clisp.org>
34980
34981         New module 'hostent'.
34982         * modules/hostent: New file.
34983         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34984
34985 2008-11-15  Bruno Haible  <bruno@clisp.org>
34986
34987         New module 'servent'.
34988         * modules/servent: New file.
34989         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34990
34991 2008-11-15  Bruno Haible  <bruno@clisp.org>
34992
34993         Avoid generating same test program with two different rules.
34994         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34995         test-frexp to test-frexp-nolibm.
34996         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34997         test-frexpl to test-frexpl-nolibm.
34998
34999 2008-11-15  Bruno Haible  <bruno@clisp.org>
35000
35001         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35002         $(FREXPL_LIBM).
35003
35004 2008-11-15  Bruno Haible  <bruno@clisp.org>
35005
35006         * lib/netdb.in.h: Activate the definitions also when the system's
35007         <netdb.h> has 'struct addrinfo'.
35008         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35009         EAI_OVERFLOW or AI_NUMERICSERV.
35010         * doc/posix-headers/netdb.texi: Document the problem.
35011
35012 2008-11-15  Bruno Haible  <bruno@clisp.org>
35013
35014         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35015
35016         Make the 'sched' module work on platforms where <sched.h> exists but
35017         is incomplete (such as Haiku).
35018         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35019         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35020         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35021         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35022         HAVE_STRUCT_SCHED_PARAM.
35023         * modules/sched (Depends-on): Add include_next.
35024         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35025         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35026         * doc/posix-headers/sched.texi: Document the issue.
35027
35028 2008-11-13  Jim Meyering  <meyering@redhat.com>
35029
35030         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35031         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35032         test would fail due to the difference in the Report bugs to ...
35033         line.  The expected address is empty, "<>", while the actual
35034         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35035
35036 2008-11-12  Bruno Haible  <bruno@clisp.org>
35037
35038         lstat: don't compile lstat.c on systems lacking lstat
35039         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35040         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35041         Reported by Daniel P. Berrange via Jim Meyering.
35042
35043 2008-11-12  Jim Meyering  <meyering@redhat.com>
35044
35045         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35046
35047 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35048
35049         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35050         instead.
35051
35052 2008-11-12  Bruno Haible  <bruno@clisp.org>
35053
35054         * lib/unicodeio.c: Include unistr.h.
35055         (utf8_wctomb): Remove function.
35056         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35057
35058 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35059
35060         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35061         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35062         <bruno@clisp.org>.
35063         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35064
35065 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35066
35067         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35068         * doc/gnulib.texi: Add section for warnings.
35069
35070 2008-11-11  Bruno Haible  <bruno@clisp.org>
35071
35072         * lib/sockets.h: Add a comment.
35073
35074 2008-11-11  Karl Berry  <karl@gnu.org>
35075
35076         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35077
35078 2008-11-11  Eric Blake  <ebb9@byu.net>
35079
35080         fdl.texi: avoid git symlinks
35081         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35082
35083 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35084
35085         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35086
35087 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35088
35089         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35090         (gl_WARN_ADD): Substitute $2 if literal.
35091
35092 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35093
35094         * m4/warning.m4: Remove.
35095
35096 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35097
35098         * m4/warnings.m4: Almost complete rewrite. :-)
35099
35100 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35101
35102         * modules/warnings: New module.
35103         * m4/warnings.m4: New file.
35104         * MODULES.html.sh: Mention warnings module.
35105         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35106         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35107
35108 2008-11-10  Eric Blake  <ebb9@byu.net>
35109
35110         fdl.texi: make a symlink to the latest version
35111         * doc/standards.texi: Revert today's earlier change.
35112         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35113         * doc/fdl.texi: ...and replace this with a symlink to the newer
35114         fdl-1.3.texi.
35115
35116 2008-11-10  Bruno Haible  <bruno@clisp.org>
35117
35118         * tests/test-select-fd.c (main): Accept the result file name as fourth
35119         argument.
35120         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35121         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35122
35123 2008-11-10  Bruno Haible  <bruno@clisp.org>
35124
35125         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35126         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35127         as autoconf-substituted macros.
35128         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35130         gl_NETDB_H_DEFAULTS. Set these variables.
35131         * modules/netdb (Makefile.am): Substitute these variables.
35132
35133 2008-11-10  Eric Blake  <ebb9@byu.net>
35134
35135         standards.texi: include correct file for FDL 1.3
35136         * doc/standards.texi (GNU Free Documentation License): Change
35137         include file to pull in FDL 1.3, not 1.2.
35138
35139         fdl.texi: revert accidental change to license
35140         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35141
35142 2008-11-10  Bruno Haible  <bruno@clisp.org>
35143
35144         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35145         cross-compiling guesses also when the native compile gives no result.
35146
35147 2008-11-10  Bruno Haible  <bruno@clisp.org>
35148
35149         * lib/spawni.c (__spawni): Force variable into the stack.
35150
35151 2008-11-10  Bruno Haible  <bruno@clisp.org>
35152
35153         Add support for Haiku.
35154         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35155         glibc and BeOS, but also on Haiku.
35156         * lib/fpurge.c (fpurge): Likewise.
35157         * lib/freadable.c (freadable): Likewise.
35158         * lib/freadahead.c (freadahead): Likewise.
35159         * lib/freading.c (freading): Likewise.
35160         * lib/freadptr.c (freadptr): Likewise.
35161         * lib/freadseek.c (freadptrinc): Likewise.
35162         * lib/fseeko.c (rpl_fseeko): Likewise.
35163         * lib/fseterr.c (fseterr): Likewise.
35164         * lib/fwritable.c (fwritable): Likewise.
35165         * lib/fwriting.c (fwriting): Likewise.
35166         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35167
35168 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35169
35170         * lib/config.charset: Treat Haiku like BeOS.
35171
35172 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35173
35174         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35175         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35176
35177 2008-11-08  Bruno Haible  <bruno@clisp.org>
35178
35179         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35180         AC_CACHE_CHECK.
35181
35182 2008-11-08  Bruno Haible  <bruno@clisp.org>
35183
35184         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35185
35186 2008-11-08  Bruno Haible  <bruno@clisp.org>
35187
35188         * tests/test-select-fd.c: New file.
35189         * tests/test-select-in.sh: New file.
35190         * tests/test-select-out.sh: New file.
35191         * tests/test-select-stdin.c: New file.
35192         * modules/select-tests (Files): Add the new files.
35193         (Depends-on): Add gettimeofday.
35194         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35195         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35196         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35197
35198 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35199             Bruno Haible  <bruno@clisp.org>
35200
35201         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35202
35203 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35204
35205         * build-aux/pmccabe2html: Added support for C++ source files.
35206
35207 2008-11-05  Ben Pfaff  <blp@gnu.org>
35208
35209         Fix lib/close.c build on Windows.
35210         * modules/close (Files): Add lib/w32sock.h.
35211
35212 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35213
35214         Accept Bison's NEWS format.
35215         * build-aux/announce-gen (print_news_deltas): Tweak
35216         $re_prefix.
35217
35218 2008-11-04  Bruno Haible  <bruno@clisp.org>
35219
35220         * modules/random_r (Maintainer): Add glibc.
35221
35222 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35223
35224         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35225         by karl@freefriends.org (Karl Berry).
35226         * doc/alloca.texi: Likewise.
35227         * doc/c-ctype.texi: Likewise.
35228         * doc/c-strcase.texi: Likewise.
35229         * doc/c-strcaseeq.texi: Likewise.
35230         * doc/c-strcasestr.texi: Likewise.
35231         * doc/c-strstr.texi: Likewise.
35232         * doc/c-strtod.texi: Likewise.
35233         * doc/c-strtold.texi: Likewise.
35234         * doc/ctime.texi: Likewise.
35235         * doc/error.texi: Likewise.
35236         * doc/fdl.texi: Likewise.
35237         * doc/gcd.texi: Likewise.
35238         * doc/getdate.texi: Likewise.
35239         * doc/gnulib-intro.texi: Likewise.
35240         * doc/gnulib-tool.texi: Likewise.
35241         * doc/gnulib.texi: Likewise.
35242         * doc/inet_ntoa.texi: Likewise.
35243         * doc/maintain.texi: Likewise.
35244         * doc/make-stds.texi: Likewise.
35245         * doc/quote.texi: Likewise.
35246         * doc/regexprops-generic.texi: Likewise.
35247         * doc/standards.texi: Likewise.
35248         * doc/verify.texi: Likewise.
35249         * doc/visibility.texi: Likewise.
35250         * doc/gnulib.texi (GNU Free Documentation License): Include
35251         fdl-1.3.texi instead of fdl.texi.
35252
35253 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35254
35255         * doc/fdl-1.3.texi: New file, from
35256         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35257         * modules/fdl-1.3: Add.
35258         * MODULES.html.sh: Add fdl-1.3.
35259
35260 2008-11-03  Bruno Haible  <bruno@clisp.org>
35261
35262         Make determination of absolute name of header file work with AIX xlc.
35263         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35264         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35265         preprocessing.
35266         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35267         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35268
35269 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35270
35271         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35272         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35273         <ludo@gnu.org>.
35274
35275 2008-11-02  Bruno Haible  <bruno@clisp.org>
35276
35277         Mark 'strpbrk' obsolete.
35278         * modules/strpbrk (Status, Notice): New sections.
35279         * modules/strtok_r (Depends-on): Add strpbrk.
35280
35281 2008-11-02  Bruno Haible  <bruno@clisp.org>
35282
35283         Mark 'strdup' obsolete.
35284         * modules/strdup (Status, Notice): New sections.
35285         * modules/findprog (Depends-on): Add strdup.
35286         * modules/getaddrinfo (Depends-on): Likewise.
35287         * modules/localename (Depends-on): Likewise.
35288         * modules/relocatable-lib (Depends-on): Likewise.
35289         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35290         * modules/relocatable-prog (Depends-on): Likewise.
35291         * modules/trim (Depends-on): Likewise.
35292         * modules/unictype/gen-ctype (Depends-on): Likewise.
35293         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35294
35295 2008-11-02  Bruno Haible  <bruno@clisp.org>
35296
35297         Mark 'strcspn' obsolete.
35298         * modules/strcspn (Status, Notice): New sections.
35299
35300 2008-11-02  Bruno Haible  <bruno@clisp.org>
35301
35302         Mark 'rmdir' obsolete.
35303         * modules/rmdir (Status, Notice): New sections.
35304         * modules/clean-temp (Depends-on): Add rmdir.
35305         * modules/openat (Depends-on): Likewise.
35306
35307 2008-11-02  Bruno Haible  <bruno@clisp.org>
35308
35309         Mark 'raise' obsolete.
35310         * modules/raise (Status, Notice): New sections.
35311         (Include): Specify <signal.h>.
35312         * modules/stdio (Depends-on): Add raise.
35313         * modules/write (Depends-on): Likewise.
35314
35315 2008-11-02  Bruno Haible  <bruno@clisp.org>
35316
35317         Mark 'memset' obsolete.
35318         * modules/memset (Status, Notice): New sections.
35319
35320 2008-11-02  Bruno Haible  <bruno@clisp.org>
35321
35322         Mark 'memmove' obsolete.
35323         * modules/memmove (Status, Notice): New sections.
35324         * modules/argp (Depends-on): Add memmove.
35325         * modules/argz (Depends-on): Likewise.
35326         * modules/canonicalize (Depends-on): Likewise.
35327         * modules/canonicalize-lgpl (Depends-on): Likewise.
35328         * modules/fts (Depends-on): Likewise.
35329         * modules/getcwd (Depends-on): Likewise.
35330         * modules/human (Depends-on): Likewise.
35331         * modules/regex (Depends-on): Likewise.
35332         * modules/striconveh (Depends-on): Likewise.
35333         * modules/trim (Depends-on): Likewise.
35334         * modules/unistr/u8-move (Depends-on): Likewise.
35335         * modules/unistr/u16-move (Depends-on): Likewise.
35336         * modules/unistr/u32-move (Depends-on): Likewise.
35337
35338 2008-11-02  Bruno Haible  <bruno@clisp.org>
35339
35340         Mark 'memcpy' obsolete.
35341         * modules/memcpy (Status, Notice): New sections.
35342
35343 2008-11-02  Bruno Haible  <bruno@clisp.org>
35344
35345         Mark 'memcmp' obsolete.
35346         * modules/memcmp (Status, Notice): New sections.
35347         * modules/argmatch (Depends-on): Add memchr.
35348         * modules/backupfile (Depends-on): Likewise.
35349         * modules/c-strcasestr (Depends-on): Likewise.
35350         * modules/crypto/des (Depends-on): Likewise.
35351         * modules/csharpcomp (Depends-on): Likewise.
35352         * modules/fnmatch (Depends-on): Likewise.
35353         * modules/git-merge-changelog (Depends-on): Likewise.
35354         * modules/isnand (Depends-on): Likewise.
35355         * modules/isnand-nolibm (Depends-on): Likewise.
35356         * modules/isnanf (Depends-on): Likewise.
35357         * modules/isnanf-nolibm (Depends-on): Likewise.
35358         * modules/isnanl (Depends-on): Likewise.
35359         * modules/isnanl-nolibm (Depends-on): Likewise.
35360         * modules/mbchar (Depends-on): Likewise.
35361         * modules/memcoll (Depends-on): Likewise.
35362         * modules/quotearg (Depends-on): Likewise.
35363         * modules/regex (Depends-on): Likewise.
35364         * modules/relocatable-prog (Depends-on): Likewise.
35365         * modules/same (Depends-on): Likewise.
35366         * modules/signbit (Depends-on): Likewise.
35367         * modules/strcasestr-simple (Depends-on): Likewise.
35368         * modules/unictype/gen-ctype (Depends-on): Likewise.
35369         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35370         * modules/uniname/uniname (Depends-on): Likewise.
35371         * modules/unistr/u8-cmp (Depends-on): Likewise.
35372
35373 2008-11-02  Bruno Haible  <bruno@clisp.org>
35374
35375         Mark 'memchr' obsolete.
35376         * modules/memchr (Status, Notice): New sections.
35377         * modules/argp (Depends-on): Add memchr.
35378         * modules/base64 (Depends-on): Likewise.
35379         * modules/c-strcasestr (Depends-on): Likewise.
35380         * modules/chdir-long (Depends-on): Likewise.
35381         * modules/fnmatch (Depends-on): Likewise.
35382         * modules/getsubopt (Depends-on): Likewise.
35383         * modules/git-merge-changelog (Depends-on): Likewise.
35384         * modules/glob (Depends-on): Likewise.
35385         * modules/strcasestr-simple (Depends-on): Likewise.
35386         * modules/strnlen (Depends-on): Likewise.
35387
35388 2008-11-02  Bruno Haible  <bruno@clisp.org>
35389
35390         Mark 'atexit' obsolete.
35391         * modules/atexit (Status, Notice): New sections.
35392         * modules/chdir-long (Depends-on): Add atexit.
35393         * modules/wait-process (Depends-on): Likewise.
35394
35395 2008-11-02  Bruno Haible  <bruno@clisp.org>
35396
35397         * gnulib-tool: New option --with-obsolete.
35398         (func_usage): Document it.
35399         (func_modules_transitive_closure): Drop obsolete dependencies if
35400         incobsolete is not true.
35401         (func_import): Read and save the incobsolete variable to the cache.
35402
35403 2008-11-02  Bruno Haible  <bruno@clisp.org>
35404
35405         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35406         * gnulib-tool: New option --extract-status.
35407         (func_usage): Document it.
35408         (sed_extract_prog): Recognize it.
35409         (func_get_status): New function.
35410
35411 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35412
35413         * modules/sockets (License): Change from LGPL to LGPLv2+.
35414
35415 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35416
35417         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35418
35419 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35420
35421         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35422         Mention times and sys_times.
35423         * modules/sys_times, modules/sys_times-tests: New modules.
35424         * modules/times, modules/times-tests: Likewise
35425         * m4/sys_times_h.m4: New file.
35426         * lib/sys_times.in.h: Likewise
35427         * lib/times.c: Likewise.
35428         * tests/test-sys_times.c: Likewise.
35429         * tests/test-times.c: Likewise.
35430         * doc/posix-headers/sys_times.texi: Update.
35431         * doc/posix-functions/times.texi: Update.
35432
35433 2008-10-28  Jim Meyering  <meyering@redhat.com>
35434
35435         * modules/tempname (Depends-on): Add lstat.
35436
35437         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35438
35439 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35440
35441         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35442         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35443         using idiom used elsewhere in gnulib.
35444
35445 2008-10-27  Jim Meyering  <meyering@redhat.com>
35446
35447         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35448
35449 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35450
35451         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35452         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35453         programs.
35454         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35455
35456 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35457
35458         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35459
35460 2008-10-27  Bruno Haible  <bruno@clisp.org>
35461
35462         * tests/test-lstat.c: Include <stdio.h>.
35463
35464 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35465
35466         * modules/lstat-tests: New module.
35467         * tests/test-lstat.c: New file.
35468
35469 2008-10-26  Jim Meyering  <meyering@redhat.com>
35470
35471         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35472
35473 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35474             Bruno Haible  <bruno@clisp.org>
35475
35476         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35477         * modules/configmake (Include): Add a note that the include must come
35478         after all system headers.
35479         * lib/javaversion.c: Include configmake.h after all other includes.
35480
35481 2008-10-26  Bruno Haible  <bruno@clisp.org>
35482
35483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35484         HAVE_STRUCT_RANDOM_DATA to 1.
35485         (gl_STDLIB_H): Simplify.
35486
35487 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35488
35489         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35490         substitute HAVE_STRUCT_RANDOM_DATA.
35491         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35492         random_data.
35493         * modules/stdlib (Makefile.am): Substitute
35494         HAVE_STRUCT_RANDOM_DATA.
35495
35496 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35497
35498         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35499         * doc/gnulib-intro.texi (Copyright): Likewise.
35500
35501 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35502
35503         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35504         findings.
35505
35506 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35507             Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/unistd.in.h: Include <winsock2.h>.
35510         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35511         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35512         Provide dummy declarations.
35513         (gethostname): Override.
35514         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35515         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35516         gl_PREREQ_SYS_H_WINSOCK2.
35517         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35518         * doc/posix-functions/gethostname.texi: More details.
35519
35520 2008-10-25  Bruno Haible  <bruno@clisp.org>
35521
35522         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35523         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35524         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35525
35526         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35527         here ...
35528         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35529         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35530         gl_UNISTD_H_DEFAULTS.
35531
35532 2008-10-25  Eric Blake  <ebb9@byu.net>
35533
35534         signbit: avoid spurious compiler failure
35535         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35536         declarations inside function.
35537
35538 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35539             Bruno Haible  <bruno@clisp.org>
35540
35541         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35542         * modules/random_r (Depends-on): Add stdint.
35543
35544 2008-10-24  Bruno Haible  <bruno@clisp.org>
35545
35546         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35547         Eggert.
35548         * modules/strerror (License): Likewise.
35549
35550 2008-10-24  Jim Meyering  <meyering@redhat.com>
35551
35552         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35553         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35554
35555 2008-10-24  Eric Blake  <ebb9@byu.net>
35556
35557         getgroups: fix compilation when getgroups is available
35558         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35559         but with <config.h> override of getgroups disabled.
35560
35561 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35562
35563         * doc/gnulib.texi (Header files): Add note about C++ problems.
35564         Explained by Bruno Haible <bruno@clisp.org>.
35565
35566 2008-10-23  Bruno Haible  <bruno@clisp.org>
35567
35568         Define a dummy SA_NODEFER macro on Interix.
35569         * lib/signal.in.h (SA_NODEFER): Define fallback.
35570         Reported by Aleksey Cheusov <cheusov@tut.by> via
35571         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35572
35573 2008-10-23  Bruno Haible  <bruno@clisp.org>
35574
35575         * modules/freadahead (License): Change to LGPLv2+.
35576         Suggested by Simon Josefsson.
35577
35578 2008-10-23  Jim Meyering  <meyering@redhat.com>
35579
35580         random_r: new module
35581         * modules/random_r: New file.
35582         * m4/random_r.m4: New file.
35583         * lib/random_r.c: New file, from glibc.
35584         * modules/random_r-tests: New file.
35585         * tests/test-random_r.c: New file.
35586         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35587          Declare.
35588         (RAND_MAX): Define.
35589         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35590         * modules/stdlib: Substitute them, too.
35591         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35592         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35593         * doc/glibc-functions/random_r.texi: Likewise.
35594         * doc/glibc-functions/setstate_r.texi: Likewise.
35595         * doc/glibc-functions/srandom_r.texi: Likewise.
35596         * config/srclist.txt: Mention it.
35597
35598 2008-10-23  David Lutterkort  <lutter@redhat.com>
35599
35600         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35601         link requirement
35602
35603 2008-10-23  Jim Meyering  <meyering@redhat.com>
35604
35605         selinux-h: mark parameters of stub functions as intentionally unused
35606         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35607         * lib/se-context.in.h: Likewise.
35608
35609 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35610
35611         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35612
35613 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35614
35615         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35616
35617 2008-10-22  Eric Blake  <ebb9@byu.net>
35618
35619         glthread/thread: avoid compiler warning
35620         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35621         Add unreachable abort to silence compiler.
35622
35623 2008-10-22  Eric Blake  <ebb9@byu.net>
35624
35625         netdb: also supply struct addrinfo for cygwin 1.5.x
35626         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35627         older cygwin.
35628         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35629         cygwin.
35630         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35631
35632 2008-10-22  Bruno Haible  <bruno@clisp.org>
35633
35634         * users.txt: Update entry about pspp.
35635
35636 2008-10-21  Bruno Haible  <bruno@clisp.org>
35637
35638         Simplification.
35639         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35640         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35641
35642         Simplification.
35643         * lib/ioctl.c (ioctl): Don't undefine.
35644         * lib/socket.c (socket): Don't undefine.
35645
35646         Remove unused module indicator macros.
35647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35648         GNULIB_$1 as a C macro.
35649
35650         * doc/posix-functions/close.texi: Undo last change.
35651         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35652         Windows platforms.
35653
35654 2008-10-21  Bruno Haible  <bruno@clisp.org>
35655
35656         Add gethostname() declaration to <unistd.h>.
35657         * lib/unistd.in.h (gethostname): New declaration.
35658         * lib/gethostname.c: Include <unistd.h>.
35659         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35660         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35662         and HAVE_GETHOSTNAME.
35663         * modules/gethostname (Depends-on): Add unistd.
35664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35665         (Include): Specify <unistd.h>.
35666         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35667         HAVE_GETHOSTNAME.
35668         * tests/test-gethostname.c: Include <unistd.h> first.
35669
35670 2008-10-21  Bruno Haible  <bruno@clisp.org>
35671
35672         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35673         * modules/select-tests (Depends-on): Likewise.
35674         Reported by Simon Josefsson.
35675
35676 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35677
35678         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35679         * lib/accept.c: New file, based on winsock.c.
35680         * lib/bind.c: New file, based on winsock.c.
35681         * lib/connect.c: New file, based on winsock.c.
35682         * lib/getpeername.c: New file, based on winsock.c.
35683         * lib/getsockname.c: New file, based on winsock.c.
35684         * lib/getsockopt.c: New file, based on winsock.c.
35685         * lib/ioctl.c: New file, based on winsock.c.
35686         * lib/listen.c: New file, based on winsock.c.
35687         * lib/recv.c: New file, based on winsock.c.
35688         * lib/recvfrom.c: New file, based on winsock.c.
35689         * lib/send.c: New file, based on winsock.c.
35690         * lib/sendto.c: New file, based on winsock.c.
35691         * lib/setsockopt.c: New file, based on winsock.c.
35692         * lib/shutdown.c: New file, based on winsock.c.
35693         * lib/socket.c: New file, based on winsock.c.
35694         * lib/w32sock.h: New file, based on winsock.c.
35695         * lib/winsock.c: Remove file.
35696         * modules/accept: Likewise.
35697         * modules/bind: Likewise.
35698         * modules/connect: Likewise.
35699         * modules/getpeername: Likewise.
35700         * modules/getsockname: Likewise.
35701         * modules/getsockopt: Likewise.
35702         * modules/ioctl: Likewise.
35703         * modules/listen: Likewise.
35704         * modules/recv: Likewise.
35705         * modules/recvfrom: Likewise.
35706         * modules/send: Likewise.
35707         * modules/sendto: Likewise.
35708         * modules/setsockopt: Likewise.
35709         * modules/shutdown: Likewise.
35710         * modules/socket: Use socket.c instead of winsock.c.
35711         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35712         * doc/posix-functions/accept.texi: Doc fix.
35713         * doc/posix-functions/bind.texi: Doc fix.
35714         * doc/posix-functions/close.texi: Doc fix.
35715         * doc/posix-functions/connect.texi: Doc fix.
35716         * doc/posix-functions/getpeername.texi: Doc fix.
35717         * doc/posix-functions/getsockname.texi: Doc fix.
35718         * doc/posix-functions/getsockopt.texi: Doc fix.
35719         * doc/posix-functions/ioctl.texi: Doc fix.
35720         * doc/posix-functions/listen.texi: Doc fix.
35721         * doc/posix-functions/recv.texi: Doc fix.
35722         * doc/posix-functions/recvfrom.texi: Doc fix.
35723         * doc/posix-functions/send.texi: Doc fix.
35724         * doc/posix-functions/sendto.texi: Doc fix.
35725         * doc/posix-functions/setsockopt.texi: Doc fix.
35726         * doc/posix-functions/shutdown.texi: Doc fix.
35727         * doc/posix-functions/socket.texi: Doc fix.
35728
35729 2008-10-20  Bruno Haible  <bruno@clisp.org>
35730
35731         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35732         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35733         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35734         as an alias for SIGABRT.
35735         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35736         (sigaction): Map it to SIGABRT.
35737         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35738
35739 2008-10-20  Bruno Haible  <bruno@clisp.org>
35740
35741         * lib/fts.c: Don't include lstat.h.
35742         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35743
35744         Move the lstat() declaration to <sys/stat.h>.
35745         * lib/lstat.h: Remove file.
35746         * lib/sys_stat.in.h: Add special invocation convention.
35747         (lstat): New declaration.
35748         * lib/lstat.c (orig_lstat): New function.
35749         (rpl_lstat): Use orig_lstat instead of lstat.
35750         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35751         AC_C_INLINE. Set REPLACE_LSTAT.
35752         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35753         and REPLACE_LSTAT.
35754         * modules/lstat (Files): Remove lib/lstat.h.
35755         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35756         (Include): Specify <sys/stat.h> instead of lstat.h.
35757         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35758         REPLACE_LSTAT.
35759         * NEWS: Mention the change.
35760
35761 2008-10-20  Bruno Haible  <bruno@clisp.org>
35762
35763         * modules/posix_spawn-tests: New file.
35764         * tests/test-posix_spawn3.c: New file.
35765
35766 2008-10-20  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35769         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35770         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35771         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35772         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35773
35774 2008-10-20  Bruno Haible  <bruno@clisp.org>
35775
35776         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35777         of posix_spawn on AIX 5.3.
35778
35779 2008-10-20  Bruno Haible  <bruno@clisp.org>
35780
35781         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35782
35783 2008-10-20  Bruno Haible  <bruno@clisp.org>
35784
35785         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35786         of AC_LANG_PROGRAM.
35787
35788 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35789
35790         * lib/netdb.in.h: Don't define GNU specific constants until they
35791         are supported or needed.  Reported by Bruno Haible
35792         <bruno@clisp.org>.
35793
35794 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35795
35796         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35797
35798 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35799
35800         * lib/getaddrinfo.h: Remove file.
35801         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35802         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35803         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35804         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35805         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35806         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35807         * tests/test-getaddrinfo.c: Likewise.
35808         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35809         * NEWS: Mention change.
35810
35811 2008-10-19  Bruno Haible  <bruno@clisp.org>
35812
35813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35814
35815 2008-10-19  Bruno Haible  <bruno@clisp.org>
35816
35817         * lib/wait-process.c: Include simply <sys/wait.h>.
35818         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35819         WIFSTOPPED): Remove fallback definitions.
35820         * modules/wait-process (Depends-on): Add sys_wait.
35821
35822         New module 'sys_wait'.
35823         * modules/sys_wait: New file.
35824         * lib/sys_wait.in.h: New file, partially copied from
35825         lib/wait-process.c.
35826         * m4/sys_wait_h.m4: New file.
35827         * doc/posix-headers/sys_wait.texi: Mention the new module.
35828
35829 2008-10-19  Bruno Haible  <bruno@clisp.org>
35830
35831         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35832
35833 2008-10-19  Bruno Haible  <bruno@clisp.org>
35834
35835         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35836         * lib/wait-process.c (WAIT_T): Remove type.
35837         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35838         (wait_subprocess): Update.
35839
35840 2008-10-19  Bruno Haible  <bruno@clisp.org>
35841
35842         New module 'atoll'.
35843         * modules/atoll: New file.
35844         * lib/stdlib.in.h (atoll): New declaration.
35845         * lib/atoll.c: New file, from glibc with modifications.
35846         * m4/atoll.m4: New file.
35847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35848         HAVE_ATOLL.
35849         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35850         * doc/posix-functions/atoll.texi: Mention the new module.
35851
35852 2008-10-19  Bruno Haible  <bruno@clisp.org>
35853
35854         Add strtoull() declaration to <stdlib.h>.
35855         * lib/stdlib.in.h (strtoull): New declaration.
35856         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35857         Set HAVE_STRTOULL.
35858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35859         HAVE_STRTOULL.
35860         * modules/strtoull (Depends-on): Add stdlib.
35861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35862         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35863         HAVE_STRTOULL.
35864
35865 2008-10-19  Bruno Haible  <bruno@clisp.org>
35866
35867         Add strtoll() declaration to <stdlib.h>.
35868         * lib/stdlib.in.h (strtoll): New declaration.
35869         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35870         Set HAVE_STRTOLL.
35871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35872         HAVE_STRTOLL.
35873         * modules/strtoll (Depends-on): Add stdlib.
35874         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35875         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35876
35877 2008-10-19  Bruno Haible  <bruno@clisp.org>
35878
35879         * modules/bcopy (Depends-on): Add strings.
35880         (Include): Specify <strings.h>.
35881
35882 2008-10-19  Bruno Haible  <bruno@clisp.org>
35883
35884         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35885
35886 2008-10-19  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35889         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35890         mingw.
35891
35892 2008-10-19  Bruno Haible  <bruno@clisp.org>
35893
35894         * lib/atanl.c: Don't include isnanl.h.
35895         * lib/cosl.c: Likewise.
35896         * lib/ldexpl.c: Likewise.
35897         * lib/logl.c: Likewise.
35898         * lib/sinl.c: Likewise.
35899         * lib/sqrtl.c: Likewise.
35900         * lib/tanl.c: Likewise.
35901
35902         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35903         * lib/isnanf.h: Remove file.
35904         * lib/isnand.h: Remove file.
35905         * lib/isnanl.h: Remove file.
35906         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35907         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35908         macros.
35909         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35910         HAVE_ISNANF, don't define it as a C macro.
35911         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35912         HAVE_ISNAND, don't define it as a C macro.
35913         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35914         HAVE_ISNANL, don't define it as a C macro.
35915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35916         HAVE_ISNAN[FDL].
35917         * modules/isnanf (Files): Remove lib/isnanf.h.
35918         (Depends-on): Add math.
35919         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35920         (Include): Specify <math.h> instead of isnanf.h.
35921         * modules/isnand (Files): Remove lib/isnand.h.
35922         (Depends-on): Add math.
35923         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35924         (Include): Specify <math.h> instead of isnand.h.
35925         * modules/isnanl (Files): Remove lib/isnanl.h.
35926         (Depends-on): Add math.
35927         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35928         (Include): Specify <math.h> instead of isnanl.h.
35929         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35930         HAVE_ISNAN[FDL].
35931         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35932         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35933         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35934         * NEWS: Mention the change.
35935
35936 2008-10-18  Bruno Haible  <bruno@clisp.org>
35937
35938         Add getusershell(), setusershell(), endusershell() declarations to
35939         <unistd.h>.
35940         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35941         declarations.
35942         * lib/getusershell.c: Include unistd.h.
35943         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35944         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35945         HAVE_GETUSERSHELL.
35946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35947         and HAVE_GETUSERSHELL.
35948         * modules/getusershell (Depends-on): Add unistd, extensions.
35949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35950         (Include): Specify <unistd.h>.
35951         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35952         HAVE_GETUSERSHELL.
35953
35954 2008-10-18  Bruno Haible  <bruno@clisp.org>
35955
35956         Add a getloadavg() declaration to <stdlib.h>.
35957         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35958         getloadavg declaration.
35959         (getloadavg): New declaration.
35960         * lib/getloadavg.c: Include <stdlib.h> first.
35961         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35962         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35963         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35965         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35966         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35968         (Include): Specify <stdlib.h>.
35969         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35970         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35971
35972 2008-10-18  Bruno Haible  <bruno@clisp.org>
35973
35974         * lib/dirchownmod.c: Don't include lchmod.h.
35975
35976         Move the lchmod() declaration to <sys/stat.h>.
35977         * lib/lchmod.h: Remove file.
35978         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35979         (lchmod): New declaration, moved here from lib/lchown.h.
35980         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35981         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35982         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35983         and HAVE_LCHMOD.
35984         * modules/lchmod (Files): Remove lib/lchmod.h.
35985         (Depends-on): Add sys_stat, extensions.
35986         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35987         (Include): Specify <sys/stat.h> instead of lchmod.h.
35988         * modules/sys_stat (Depends-on): Add link-warning.
35989         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35990         definition of GL_LINK_WARNING.
35991         * NEWS: Mention the change.
35992
35993 2008-10-18  Bruno Haible  <bruno@clisp.org>
35994
35995         * lib/fchdir.c: Don't include dirfd.h.
35996         * lib/fts.c: Likewise.
35997         * lib/getcwd.c: Likewise.
35998         * lib/glob.c: Likewise.
35999
36000         Move the dirfd() declaration to <dirent.h>.
36001         * lib/dirfd.h: Remove file.
36002         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36003         (dirfd): New declaration.
36004         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36005         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36006         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36007         HAVE_DECL_DIRFD.
36008         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36009         HAVE_DECL_DIRFD.
36010         * modules/dirfd (Files): Remove lib/dirfd.h.
36011         (Depends-on): Add dirent, extensions.
36012         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36013         (Include): Specify <dirent.h> instead of dirfd.h.
36014         * modules/dirent (Depends-on): Add link-warning.
36015         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36016         definition of GL_LINK_WARNING.
36017         * NEWS: Mention the change.
36018
36019 2008-10-18  Bruno Haible  <bruno@clisp.org>
36020
36021         Move the euidaccess() declaration to <unistd.h>.
36022         * lib/euidaccess.h: Remove file.
36023         * lib/unistd.in.h (euidaccess): New declaration.
36024         * lib/euidaccess.c: Don't include euidaccess.h.
36025         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36026         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36028         and HAVE_EUIDACCESS.
36029         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36030         (Depends-on): Add unistd.
36031         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36032         (Include): Specify <unistd.h> instead of euidaccess.h.
36033         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36034         HAVE_EUIDACCESS.
36035         * NEWS: Mention the change.
36036
36037 2008-10-18  Bruno Haible  <bruno@clisp.org>
36038
36039         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36040
36041         Move the getdomainname() declaration to <unistd.h>.
36042         * lib/getdomainname.h: Remove file.
36043         * lib/unistd.in.h (getdomainname): New declaration.
36044         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36045         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36046         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36047         HAVE_GETDOMAINNAME.
36048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36049         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36050         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36051         (Depends-on): Add unistd, extensions.
36052         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36053         (Includes): Specify <unistd.h> instead of getdomainname.h.
36054         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36055         HAVE_GETDOMAINNAME.
36056         * NEWS: Mention the change.
36057
36058 2008-10-18  Bruno Haible  <bruno@clisp.org>
36059
36060         * modules/dirent: New file.
36061         * m4/dirent_h.m4: New file.
36062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36063         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36064         * modules/fchdir (Files): Remove lib/dirent.in.h.
36065         (Depends-on): Add dirent.
36066         (Makefile.am): Move rules to modules/dirent.
36067         * doc/posix-headers/dirent.texi: Mention the new module.
36068
36069 2008-10-18  Bruno Haible  <bruno@clisp.org>
36070
36071         Avoid -Wunused-parameter warnings in public gnulib header files.
36072         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36073         macro.
36074         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36075
36076 2008-10-18  Bruno Haible  <bruno@clisp.org>
36077
36078         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36079         * doc/glibc-functions/error.texi: Mention the module 'error'.
36080         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36081         * doc/glibc-functions/getdomainname.texi: Mention the module
36082         'getdomainname'.
36083         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36084         * doc/glibc-functions/getpagesize.texi: Mention the module
36085         'getpagesize'.
36086         * doc/glibc-functions/getusershell.texi: Mention the module
36087         'getusershell'.
36088         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36089         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36090         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36091         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36092         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36093         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36094         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36095         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36096         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36097         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36098         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36099         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36100         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36101         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36102
36103 2008-10-17  Bruno Haible  <bruno@clisp.org>
36104
36105         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36106         HP-UX and IRIX, use -0.0L.
36107         * tests/test-ceill.c (minus_zero): Likewise.
36108         * tests/test-floorl.c (minus_zero): Likewise.
36109         * tests/test-frexpl.c (minus_zero): Likewise.
36110         * tests/test-isnan.c (minus_zerol): Likewise.
36111         * tests/test-isnanl.h (minus_zero): Likewise.
36112         * tests/test-ldexpl.c (minus_zero): Likewise.
36113         * tests/test-roundl.c (minus_zero): Likewise.
36114         * tests/test-signbit.c (minus_zerol): Likewise.
36115         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36116         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36117         * tests/test-truncl.c (minus_zero): Likewise.
36118         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36119         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36120         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36121         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36122
36123 2008-10-17  Bruno Haible  <bruno@clisp.org>
36124
36125         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36126         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36127         that it gets activated only for gcc >= 3.0.
36128         * lib/dirent.in.h: Likewise.
36129         * lib/errno.in.h: Likewise.
36130         * lib/fcntl.in.h: Likewise.
36131         * lib/float.in.h: Likewise.
36132         * lib/iconv.in.h: Likewise.
36133         * lib/inttypes.in.h: Likewise.
36134         * lib/locale.in.h: Likewise.
36135         * lib/math.in.h: Likewise.
36136         * lib/netdb.in.h: Likewise.
36137         * lib/netinet_in.in.h: Likewise.
36138         * lib/search.in.h: Likewise.
36139         * lib/signal.in.h: Likewise.
36140         * lib/spawn.in.h: Likewise.
36141         * lib/stdarg.in.h: Likewise.
36142         * lib/stdint.in.h: Likewise.
36143         * lib/stdio.in.h: Likewise.
36144         * lib/stdlib.in.h: Likewise.
36145         * lib/string.in.h: Likewise.
36146         * lib/strings.in.h: Likewise.
36147         * lib/sys_file.in.h: Likewise.
36148         * lib/sys_ioctl.in.h: Likewise.
36149         * lib/sys_select.in.h: Likewise.
36150         * lib/sys_socket.in.h: Likewise.
36151         * lib/sys_stat.in.h: Likewise.
36152         * lib/sys_time.in.h: Likewise.
36153         * lib/sysexits.in.h: Likewise.
36154         * lib/time.in.h: Likewise.
36155         * lib/unistd.in.h: Likewise.
36156         * lib/wchar.in.h: Likewise.
36157         * lib/wctype.in.h: Likewise.
36158         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36159
36160 2008-10-17  Jim Meyering  <meyering@redhat.com>
36161
36162         ignore-value: don't depend on inline module
36163         * modules/ignore-value (Depends-on): Remove 'inline'.
36164         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36165         Suggestion from Bruno Haible.
36166
36167 2008-10-17  Bruno Haible  <bruno@clisp.org>
36168
36169         New implementation of condition variables for Win32.
36170         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36171         (gl_linked_waitqueue_t): New type.
36172         (gl_cond_t): Use it.
36173         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36174         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36175         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36176         (glthread_cond_init_func, glthread_cond_wait_func,
36177         glthread_cond_timedwait_func, glthread_cond_signal_func,
36178         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36179         Reimplemented on the basis of gl_linked_waitqueue_t.
36180         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36181         gl_waitqueue_t.
36182         (gl_rwlock_t): Update.
36183         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36184
36185 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36186
36187         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36188         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36189
36190 2008-10-17  Jim Meyering  <meyering@redhat.com>
36191
36192         ignore-value: new module
36193         * modules/ignore-value: New file.
36194         * lib/ignore-value.h: New file.
36195         * MODULES.html.sh (Compiler warning management): New section,
36196         just for this module.  More to come.
36197
36198 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36199
36200         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36201         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36202         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36203
36204 2008-10-16  Jim Meyering  <meyering@redhat.com>
36205
36206         openat-die.c: avoid 'no previous prototype' warning
36207         * lib/openat-die.c: Include "openat.h".
36208         Reported by Reuben Thomas <rrt@sc3d.org>.
36209
36210 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36211
36212         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36213         * lib/netdb.in.h: Fix typo.
36214         Reported by Bruno Haible  <bruno@clisp.org>
36215
36216         * lib/netdb.in.h: Include sys/socket.h for platforms without
36217         netdb.h, to get structures like hostent on MinGW.
36218         * modules/netdb (Depends-on): Add sys_socket.
36219
36220 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36221
36222         * modules/netdb, modules/netdb-tests: New file.
36223         * m4/netdb_h.m4: New file.
36224         * lib/netdb.in.h: Add, currently just an empty file pending
36225         definitions.
36226         * tests/test-netdb.c: New file.
36227         * doc/posix-headers/netdb.texi: Mention that we replace it if
36228         needed.
36229         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36230         netdb.
36231
36232 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36233
36234         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36235         with code.
36236
36237 2008-10-13  Bruno Haible  <bruno@clisp.org>
36238
36239         * lib/glthread/cond.c (glthread_cond_wait_func,
36240         glthread_cond_timedwait_func): Add a comment.
36241
36242 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36243
36244         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36245         * tests/test-select.c: Likewise,
36246
36247 2008-10-13  Bruno Haible  <bruno@clisp.org>
36248
36249         * lib/glthread/cond.c (glthread_cond_wait_func,
36250         glthread_cond_timedwait_func): Fix variable name.
36251         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36252
36253 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36254
36255         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36256         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36257         struct sockaddr.sa_len.
36258         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36259
36260 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36261
36262         * build-aux/pmccabe2html: Add css and css_url parameters.
36263
36264 2008-10-12  Bruno Haible  <bruno@clisp.org>
36265
36266         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36267         calling aclx_get.
36268         Reported by Rainer Tammer <tammer@tammer.net>.
36269
36270 2008-10-12  Bruno Haible  <bruno@clisp.org>
36271
36272         Use msvcrt aware primitives for creation/termination of Win32 threads.
36273         * lib/glthread/thread.c: Include <process.h>.
36274         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36275         (wrapper_func): Update signature.
36276         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36277
36278 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36279             Bruno Haible  <bruno@clisp.org>
36280
36281         Provide a Win32 implementation of the 'cond' module.
36282         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36283         * lib/glthread/cond.c (glthread_cond_init_func,
36284         glthread_cond_wait_func, glthread_cond_timedwait_func,
36285         glthread_cond_signal_func, glthread_cond_broadcast_func,
36286         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36287         * modules/cond (Dependencies): Add gettimeofday.
36288
36289 2008-10-11  Bruno Haible  <bruno@clisp.org>
36290
36291         Make sleep work on older versions of mingw.
36292         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36293         only whether it exists.
36294         * doc/posix-functions/sleep.texi: Mention the problem with older
36295         versions of mingw.
36296
36297 2008-10-11  Bruno Haible  <bruno@clisp.org>
36298
36299         New module 'shutdown'.
36300         * modules/shutdown: New file.
36301         * lib/sys_socket.in.h (shutdown): New declaration.
36302         * lib/winsock.c (shutdown): New function.
36303         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36304         GNULIB_SHUTDOWN.
36305         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36306         * doc/posix-functions/shutdown.texi: Document the new module.
36307
36308 2008-10-11  Jim Meyering  <meyering@redhat.com>
36309
36310         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36311
36312 2008-10-11  Bruno Haible  <bruno@clisp.org>
36313
36314         New module 'fclose'.
36315         * modules/fclose: New file.
36316         * lib/stdio.in.h (fclose): New declaration.
36317         * lib/fclose.c: New file.
36318         * m4/fclose.m4: New file.
36319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36320         REPLACE_FCLOSE.
36321         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36322         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36323         REPLACE_FCLOSE.
36324         * modules/close (Depends-on): fclose.
36325         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36326
36327 2008-10-11  Bruno Haible  <bruno@clisp.org>
36328
36329         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36330         set errno and don't call _close.
36331
36332 2008-10-10  Bruno Haible  <bruno@clisp.org>
36333
36334         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36335         ACL, not afterwards. Fixes test failure on Cygwin.
36336
36337 2008-10-09  Ben Pfaff  <blp@gnu.org>
36338
36339         * build-aux/announce-gen: Fix gnulib version related part of usage
36340         message.  Die with a useful error message if no tarballs are
36341         found.
36342
36343 2008-10-10  Jim Meyering  <meyering@redhat.com>
36344
36345         bootstrap: use git's --depth=N option only if it's supported
36346         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36347         recognize the --depth option.  Reported by Pádraig Brady.
36348
36349 2008-10-09  Bruno Haible  <bruno@clisp.org>
36350
36351         New module 'ioctl'.
36352         * modules/ioctl: New file.
36353         * lib/sys_socket.in.h (ioctl): Remove declaration.
36354         * lib/winsock.c: Include <sys/ioctl.h>.
36355         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36356         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36357         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36358         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36359         * doc/posix-functions/ioctl.texi: Mention the new module.
36360
36361 2008-10-09  Bruno Haible  <bruno@clisp.org>
36362
36363         New module 'sys_ioctl'.
36364         * lib/sys_ioctl.in.h: New file.
36365         * m4/sys_ioctl_h.m4: New file.
36366         * modules/sys_ioctl: New file.
36367         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36368
36369 2008-10-09  Bruno Haible  <bruno@clisp.org>
36370
36371         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36372         * lib/winsock.c: Include <stdarg.h>.
36373         (rpl_ioctl): Change to second argument 'int' and then varargs.
36374
36375 2008-10-09  Bruno Haible  <bruno@clisp.org>
36376
36377         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36378         when the sys_socket module is present and the system has <winsock2.h>.
36379
36380 2008-10-09  Bruno Haible  <bruno@clisp.org>
36381
36382         * doc/posix-functions/close.texi: Mention module 'close' instead of
36383         module 'sys_socket'.
36384
36385 2008-10-09  Bruno Haible  <bruno@clisp.org>
36386
36387         * doc/glibc-headers/sys_ioctl.texi: New file.
36388         * doc/gnulib.texi: Include it.
36389
36390 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36391             Bruno Haible  <bruno@clisp.org>
36392
36393         Combine the two replacements of 'close'.
36394         * lib/sys_socket.in.h (close): Define to a reminder to include
36395         <unistd.h>.
36396         (_gl_close_fd_maybe_socket): New declaration.
36397         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36398         * lib/winsock.c (close): Remove undefinition.
36399         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36400         needed for the gnulib module 'close'.
36401         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36402         define to an error symbol or to a warning, if suitable.
36403         * lib/close.c: Include <sys/socket.h>.
36404         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36405         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36406         UNISTD_H_HAVE_WINSOCK2_H.
36407         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36409         UNISTD_H_HAVE_WINSOCK2_H.
36410         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36411         (configure.ac): Set a module indicator.
36412         (Makefile.am): Substitute GNULIB_CLOSE.
36413         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36414         * modules/poll-tests (Depends-on): Add close.
36415         * modules/select-tests (Depends-on): Likewise.
36416
36417 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36418             Bruno Haible  <bruno@clisp.org>
36419
36420         New module 'close'.
36421         * modules/close: New file.
36422         * lib/unistd.in.h (close): Move declaration out of the
36423         FCHDIR_REPLACEMENT scope.
36424         (_gl_unregister_fd): New declaration.
36425         * lib/close.c: New file.
36426         * lib/fchdir.c (rpl_close): Remove function.
36427         * m4/close.m4: New file.
36428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36429         close.
36430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36431         REPLACE_CLOSE.
36432         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36433         REPLACE_CLOSE.
36434         * modules/fchdir (Depends-on): Add close.
36435
36436 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36437             Bruno Haible  <bruno@clisp.org>
36438
36439         * lib/fcntl.in.h (open): Simplify conditionals.
36440         (_gl_register_fd): New declaration.
36441         * lib/fchdir.c (rpl_open): Remove function.
36442         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36443         also.
36444         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36446         open.
36447
36448 2008-10-09  Jim Meyering  <meyering@redhat.com>
36449
36450         GNUmakefile: use the more name-space-friendly "_version"
36451         * top/GNUmakefile (_dummy): Update.
36452         (_version): Rename from "version".
36453
36454 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36455             Bruno Haible  <bruno@clisp.org>
36456
36457         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36458         rpl_close.
36459         (_gl_register_fd): New function, extracted from rpl_open.
36460         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36461         (rpl_open, rpl_opendir): Use _gl_register_fd.
36462
36463 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36464
36465         Fix organization of 'open' replacement.
36466         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36467         (gl_FUNC_OPEN): Use it.
36468         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36469
36470 2008-10-08  Bruno Haible  <bruno@clisp.org>
36471
36472         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36473
36474 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36475
36476         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36477         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36478         listen).
36479
36480 2008-10-08  Eric Blake  <ebb9@byu.net>
36481
36482         GNUmakefile: add 'make version' target
36483         * top/GNUmakefile (_curr-ver): Split version update rules...
36484         (version): ...into a target.
36485
36486 2008-10-07  Bruno Haible  <bruno@clisp.org>
36487
36488         Use a more portable replacement expression for -0.0L.
36489         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36490         instead of -0.0L. Fix m4 quotation.
36491
36492         * tests/test-signbit.c: Include <float.h>.
36493         (minus_zero): New variable.
36494         (test_signbitl): Use minus_zero instead of -zero.
36495         * modules/signbit-tests (Depends-on): Add float.
36496
36497         * tests/test-ceill.c: Include <float.h>.
36498         (zero): Remove variable.
36499         (minus_zero): New variable.
36500         (main): Use minus_zero instead of -zero.
36501         * modules/ceill-tests (Depends-on): Add float.
36502
36503         * tests/test-floorl.c: Include <float.h>.
36504         (zero): Remove variable.
36505         (minus_zero): New variable.
36506         (main): Use minus_zero instead of -zero.
36507         * modules/floorl-tests (Depends-on): Add float.
36508
36509         * tests/test-roundl.c: Include <float.h>.
36510         (zero): Remove variable.
36511         (minus_zero): New variable.
36512         (main): Use minus_zero instead of -zero.
36513         * modules/roundl-tests (Depends-on): Add float.
36514
36515         * tests/test-truncl.c: Include <float.h>.
36516         (zero): Remove variable.
36517         (minus_zero): New variable.
36518         (main): Use minus_zero instead of -zero.
36519         * modules/truncl-tests (Depends-on): Add float.
36520
36521         * tests/test-frexpl.c (zero): Remove variable.
36522         (minus_zero): New variable.
36523         (main): Use minus_zero instead of -zero.
36524         * modules/frexpl-tests (Depends-on): Add float.
36525
36526         * tests/test-isnan.c (zerol): Remove variable.
36527         (minus_zerol): New variable.
36528         (test_long_double): Use minus_zerol instead of -zerol.
36529         * modules/isnan-tests (Depends-on): Add float.
36530
36531         * tests/test-isnanl.h (zero): Remove variable.
36532         (minus_zero): New variable.
36533         (main): Use minus_zero instead of -zero.
36534         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36535         * modules/isnanl-tests (Depends-on): Add float.
36536
36537         * tests/test-ldexpl.c (zero): Remove variable.
36538         (minus_zero): New variable.
36539         (main): Use minus_zero instead of -zero.
36540         * modules/ldexpl-tests (Depends-on): Add float.
36541
36542         * tests/test-snprintf-posix.h (zerol): Remove variable.
36543         (minus_zerol): New variable.
36544         (test_function): Use minus_zerol instead of -zerol.
36545         * modules/snprintf-posix-tests (Depends-on): Add float.
36546         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36547
36548         * tests/test-sprintf-posix.h (zerol): Remove variable.
36549         (minus_zerol): New variable.
36550         (test_function): Use minus_zerol instead of -zerol.
36551         * modules/sprintf-posix-tests (Depends-on): Add float.
36552         * modules/vsprintf-posix-tests (Depends-on): Add float.
36553
36554         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36555         (minus_zerol): New variable.
36556         (test_function): Use minus_zerol instead of -zerol.
36557         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36558
36559         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36560         (minus_zerol): New variable.
36561         (test_function): Use minus_zerol instead of -zerol.
36562         * modules/vasprintf-posix-tests (Depends-on): Add float.
36563
36564 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36565
36566         * MODULES.html.sh (Support for building documentation): Mention
36567         pmccabe2html.  Sort entries.
36568
36569         Add pmccabe2html module, from gnupdf.
36570         * build-aux/pmccabe.css: New file.
36571         * build-aux/pmccabe2html: New file.
36572         * m4/pmccabe2html.m4: New file.
36573         * modules/pmccabe2html: New file.
36574
36575 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36576
36577         flock: new module
36578         * MODULES.html.sh: Add to list of modules.
36579         * lib/flock.c: flock implementation for Windows and Unix systems
36580         which have fcntl.
36581         * doc/glibc-functions/flock.texi: Update documentation.
36582         * lib/sys_file.in.h: <sys/file.h> header file.
36583         * m4/flock.m4: M4 macros.
36584         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36585         * modules/flock: flock module.
36586         * modules/flock-tests: flock tests module.
36587         * modules/sys_file: sys/file.h module.
36588         * tests/test-flock.c: test suite for flock.
36589
36590 2008-10-06  Jim Meyering  <meyering@redhat.com>
36591
36592         bootstrap: check for LT_INIT more portably still ;-)
36593         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36594         Spotted by Bruno Haible.
36595
36596 2008-10-06  Eric Blake  <ebb9@byu.net>
36597
36598         test-signbit: avoid tripping Irix cc bug on -0.0L
36599         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36600         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36601         entire testsuite consistent and avoids an Irix 6.2 bug.
36602
36603 2008-10-05  Bruno Haible  <bruno@clisp.org>
36604             Jim Meyering  <jim@meyering.net>
36605
36606         Add an option for ignoring EPIPE during close_stdout.
36607         * lib/closeout.h: Include <stdbool.h>.
36608         (close_stdout_set_ignore_EPIPE): New declaration.
36609         * lib/closeout.c: Include <stdbool.h>.
36610         (ignore_EPIPE): New variable.
36611         (close_stdout_set_ignore_EPIPE): New function.
36612         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36613         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36614         failure.
36615         * modules/closeout (Depends-on): Add stdbool.
36616
36617 2008-10-05  Bruno Haible  <bruno@clisp.org>
36618
36619         * modules/accept: New file.
36620         * modules/bind: New file.
36621         * modules/connect: New file.
36622         * modules/getpeername: New file.
36623         * modules/getsockname: New file.
36624         * modules/getsockopt: New file.
36625         * modules/listen: New file.
36626         * modules/recv: New file.
36627         * modules/recvfrom: New file.
36628         * modules/send: New file.
36629         * modules/sendto: New file.
36630         * modules/setsockopt: New file.
36631         * modules/socket: New file.
36632         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36633         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36634         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36635         the particular module is requested. Add a link warning when the
36636         particular module is not requested.
36637         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36638         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36639         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36640         the particular module is requested.
36641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36642         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36643         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36644         * modules/sys_socket (Depends-on): Add link-warning.
36645         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36646         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36647         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36648         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36649         GL_LINK_WARNING.
36650         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36651         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36652         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36653         * doc/posix-functions/getpeername.texi: Mention the new module
36654         'getpeername'.
36655         * doc/posix-functions/getsockname.texi: Mention the new module
36656         'getsockname'.
36657         * doc/posix-functions/getsockopt.texi: Mention the new module
36658         'getsockopt'.
36659         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36660         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36661         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36662         * doc/posix-functions/send.texi: Mention the new module 'send'.
36663         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36664         * doc/posix-functions/setsockopt.texi: Mention the new module
36665         'setsockopt'.
36666         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36667         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36668         listen, connect, accept.
36669         * modules/select-tests (Depends-on): Likewise.
36670
36671 2008-10-05  Bruno Haible  <bruno@clisp.org>
36672
36673         * lib/winsock.c (strerror): Remove unused #undef.
36674         (rpl_close): Remove unused local variable.
36675
36676         * modules/sys_socket (Depends-on); Add errno.
36677
36678 2008-10-05  Bruno Haible  <bruno@clisp.org>
36679
36680         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36681         (select): Add a link warning when the 'select' module is not used.
36682         * modules/sys_select (Depends-on): Add link-warning.
36683         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36684         Suggested by Paolo Bonzini.
36685
36686 2008-10-05  Jim Meyering  <meyering@redhat.com>
36687
36688         bootstrap: check for LT_INIT more portably
36689         * build-aux/bootstrap: Avoid using grep -E, since it's not
36690         portable enough.  Suggestion from Bruno Haible.
36691
36692 2008-10-05  Bruno Haible  <bruno@clisp.org>
36693
36694         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36695         as being fixed by gnulib.
36696
36697 2008-10-05  Bruno Haible  <bruno@clisp.org>
36698
36699         * modules/select-tests: New file, mostly copied from
36700         modules/sys_select-tests.
36701         * tests/test-select.c: New file, mostly copied from
36702         tests/test-sys_select.c.
36703         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36704         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36705         (Makefile.am): Remove test_sys_select_LDADD.
36706
36707         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36708         to an undefined symbol, for an error message.
36709         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36710         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36711         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36712         winsock-select.c here.
36713         * modules/sys_select (Files): Remove lib/winsock-select.c.
36714         (Depends-on): Remove alloca.
36715         (Makefile.am): Substitute GNULIB_SELECT.
36716         * modules/select: New file.
36717         * doc/posix-functions/select.texi: Update.
36718
36719 2008-10-05  Bruno Haible  <bruno@clisp.org>
36720
36721         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36722         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36723         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36724         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36725         getdtablesize.
36726         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36727         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36728
36729 2008-10-05  Bruno Haible  <bruno@clisp.org>
36730
36731         * modules/getdtablesize-tests: New file.
36732         * tests/test-getdtablesize.c: New file.
36733
36734         New module 'getdtablesize'.
36735         * lib/unistd.in.h (getdtablesize): New declaration.
36736         * lib/getdtablesize.c: New file.
36737         * m4/getdtablesize.m4: New file.
36738         * modules/getdtablesize: New file.
36739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36740         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36741         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36742         HAVE_GETDTABLESIZE.
36743         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36744
36745 2008-10-05  Bruno Haible  <bruno@clisp.org>
36746
36747         * modules/sched (Makefile.am): Fix typo.
36748         Reported by Simon Josefsson.
36749
36750 2008-10-05  Jim Meyering  <meyering@redhat.com>
36751
36752         bootstrap: check for LT_INIT, too
36753         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36754         are deprecated.  Suggestion from Ralf Wildenhues.
36755
36756 2008-10-05  Bruno Haible  <bruno@clisp.org>
36757
36758         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36759         overriding them by ours.
36760         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36761
36762 2008-10-05  Jim Meyering  <meyering@redhat.com>
36763
36764         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36765         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36766         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36767
36768 2008-10-04  Bruno Haible  <bruno@clisp.org>
36769
36770         * modules/dup2 (License): Change to LGPLv2+.
36771         * modules/sleep (License): Likewise.
36772         * modules/perror (License): Likewise.
36773         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36774         Blake.
36775         * modules/signal (License): Likewise.
36776         * modules/sigprocmask (License): Likewise.
36777         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36778         Meyering.
36779
36780 2008-10-04  Bruno Haible  <bruno@clisp.org>
36781
36782         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36783         Reported by Rainer Tammer <tammer@tammer.net>.
36784
36785 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36786             Bruno Haible  <bruno@clisp.org>
36787
36788         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36789         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36790         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36791
36792 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36793
36794         filevercmp: new module
36795         * lib/filevercmp.h: New function filevercmp comparing version strings.
36796         * lib/filevercmp.c: Implementation of filevercmp function.
36797         * modules/filevercmp: Module metadata.
36798         * tests/test-filevercmp.c: Unit test for new module.
36799         * modules/filevercmp-tests: Unit test metadata.
36800         * MODULES.html.sh: Add filevercmp module.
36801
36802 2008-10-03  Bruno Haible  <bruno@clisp.org>
36803
36804         * lib/c-ctype.h: Add comment.
36805         Reported by Jim Meyering.
36806
36807 2008-10-02  Bruno Haible  <bruno@clisp.org>
36808
36809         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36810
36811 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36812
36813         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36814         name of bootstrap.conf accordingly.
36815
36816 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36817
36818         * build-aux/bootstrap: Install git-merge-changelog configuration
36819         items into .gitconfig if needed.
36820
36821 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36822
36823         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36824         git repository, and initialize/update it accordingly.
36825
36826 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36827
36828         * modules/fsync-tests: New file.
36829         * tests/test-fsync.c: New file.
36830
36831         New module 'fsync'.
36832         * lib/fsync.c: New file.
36833         * m4/fsync.m4: New file.
36834         * modules/fsync: New file.
36835         * lib/unistd.in.h (fsync): New declaration.
36836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36837         GNULIB_FSYNC and HAVE_FSYNC.
36838         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36839         * MODULES.html.sh (posix_functions): Add fsync.
36840         * doc/posix-functions/fsync.texi: Mention the new module.
36841
36842 2008-10-02  Jim Meyering  <meyering@redhat.com>
36843
36844         fts.c: sync with similar code from coreutils' remove.c
36845         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36846         Guard also with "#if defined __linux__", since for now at least,
36847         this code is Linux-kernel-specific.
36848
36849 2008-10-02  Jim Meyering  <meyering@redhat.com>
36850
36851         fts: bug fixes
36852         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36853         Include <sys/vfs.h>, not <sys/statfs.h>.
36854
36855         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36856         Include <sys/vfs.h>, not <sys/statfs.h>.
36857
36858 2008-10-01  Bruno Haible  <bruno@clisp.org>
36859
36860         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36861         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36862         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36863         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36864         * doc/posix-functions/posix_spawnp.texi: Likewise.
36865         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36866         whether posix_spawn actually works.
36867         * m4/pipe.m4 (gl_PIPE): Likewise.
36868         * modules/execute (Files): Add m4/posix_spawn.m4.
36869         * modules/pipe (Files): Add m4/posix_spawn.m4.
36870         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36871
36872 2008-10-01  Jim Meyering  <meyering@redhat.com>
36873
36874         remove trailing spaces
36875         * NEWS: Likewise.
36876         * lib/poll.c (poll): Likewise.
36877         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36878         * lib/winsock.c (rpl_close): Likewise.
36879         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36880         * modules/yield: Likewise.
36881         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36882         * tests/test-sys_select.c (connect_to_socket): Likewise.
36883
36884         fts.c: adjust a new interface to be more generally useful
36885         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36886         (fts_build): Adjust caller.
36887
36888 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36889
36890         * modules/cond-tests: New file.
36891         * tests/test-cond.c: New file.
36892
36893 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36894             Bruno Haible  <bruno@clisp.org>
36895
36896         * modules/cond (Dependencies): Add errno, time.
36897         * lib/glthread/cond.h: Include <time.h>.
36898         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36899         across platforms.
36900
36901 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36902             Bruno Haible  <bruno@clisp.org>
36903
36904         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36905
36906 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36907             Bruno Haible  <bruno@clisp.org>
36908
36909         * modules/tls-tests (Depends-on): Add thread, yield.
36910         (configure.ac): Remove all checks.
36911         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36912         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36913         gl_thread_self): Remove definitions. Include glthread/thread.h and
36914         glthread/yield.h instead.
36915         (test_tls): Pass an additional NULL argument to gl_thread_join.
36916
36917 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36918             Bruno Haible  <bruno@clisp.org>
36919
36920         * modules/lock-tests (Depends-on): Add thread, yield.
36921         (configure.ac): Remove all checks.
36922         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36923         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36924         gl_thread_self): Remove definitions. Include glthread/thread.h and
36925         glthread/yield.h instead.
36926         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36927         additional NULL argument to gl_thread_join.
36928
36929 2008-09-30  Bruno Haible  <bruno@clisp.org>
36930
36931         Fix the Win32 implementation of the 'thread' module.
36932         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36933         pointer type.
36934         (gl_thread_self): Invoke gl_thread_self_func.
36935         (gl_thread_self_func): New declaration.
36936         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36937         (do_init_self_key, init_self_key): New functions.
36938         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36939         Remove some fields.
36940         (running_threads, running_lock): Remove variables.
36941         (get_current_thread_handle): New function.
36942         (gl_thread_self_func, wrapper_func, glthread_create_func,
36943         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36944         simplified.
36945
36946 2008-09-30  Bruno Haible  <bruno@clisp.org>
36947
36948         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36949         files.
36950
36951 2008-09-30  Jim Meyering  <meyering@redhat.com>
36952
36953         fts.m4: correct the test for statfs.f_type
36954         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36955         when checking for statfs.f_type.
36956
36957 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36958
36959         tests: avoid some compiler warnings
36960         * tests/test-memchr.c (main): Pass NULL indirectly.
36961         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36962
36963 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36964
36965         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36966         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36967         exactly specified dayshifts.
36968         (dayshift): New rule.
36969         (rel): Add dayshift.
36970         (relative_time_table) [tomorrow, yesterday, today, now]:
36971         Use tDAY_SHIFT in place of tDAY_UNIT.
36972         * tests/test-getdate.c: Add tests for now-disallowed countable
36973         dayshifts, e.g., "4 yesterday ago".
36974
36975 2008-09-29  Bruno Haible  <bruno@clisp.org>
36976
36977         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36978         * tests/test-posix_spawn1.in.sh: Renamed from
36979         tests/test-posix_spawn.in.sh.
36980         * tests/test-posix_spawn2.c: New file.
36981         * tests/test-posix_spawn2.in.sh: New file.
36982         * modules/posix_spawnp-tests (Files): Update.
36983         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36984
36985 2008-09-29  Bruno Haible  <bruno@clisp.org>
36986
36987         Propagate effects of putenv/setenv/unsetenv to child processes.
36988         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36989         * lib/pipe.c (create_pipe): Likewise.
36990
36991 2008-09-29  Bruno Haible  <bruno@clisp.org>
36992
36993         Enable use of shell scripts as executables in mingw.
36994         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36995         run the program as a shell script.
36996         * lib/pipe.c (create_pipe): Likewise.
36997         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36998         resulting array.
36999
37000 2008-09-29  Eric Blake  <ebb9@byu.net>
37001
37002         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37003
37004 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37005
37006         * doc/posix-functions/accept.texi: Update mingw problems.
37007         * doc/posix-functions/bind.texi: Update mingw problems.
37008         * doc/posix-functions/close.texi: Update mingw problems.
37009         * doc/posix-functions/connect.texi: Update mingw problems.
37010         * doc/posix-functions/getpeername.texi: Update mingw problems.
37011         * doc/posix-functions/getsockname.texi: Update mingw problems.
37012         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37013         * doc/posix-functions/ioctl.texi: Update mingw problems.
37014         * doc/posix-functions/listen.texi: Update mingw problems.
37015         * doc/posix-functions/recv.texi: Update mingw problems.
37016         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37017         * doc/posix-functions/select.texi: Update mingw problems.
37018         * doc/posix-functions/send.texi: Update mingw problems.
37019         * doc/posix-functions/sendto.texi: Update mingw problems.
37020         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37021         * doc/posix-functions/socket.texi: Update mingw problems.
37022
37023 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37024             Bruno Haible  <bruno@clisp.org>
37025
37026         * lib/sys_select.in.h: Include sys/time.h.
37027         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37028         * modules/sys_select: Depend on sys_time.
37029         * tests/test-sys_select.c: Test that sys/select.h defines struct
37030         timeval fully.
37031
37032 2008-09-29  Bruno Haible  <bruno@clisp.org>
37033
37034         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37035         * lib/sys_select.in.h: Likewise.
37036
37037 2008-09-29  Bruno Haible  <bruno@clisp.org>
37038
37039         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37040
37041 2008-09-29  Bruno Haible  <bruno@clisp.org>
37042
37043         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37044         Set LIBSOCKET instead of augmenting LIBS.
37045         * modules/sockets (Link): New section.
37046         * modules/sockets-tests (test_sockets_LDADD): New variable.
37047         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37048         * modules/poll-tests (test_poll_LDADD): New variable.
37049         * NEWS: Document the change.
37050
37051 2008-09-29  Bruno Haible  <bruno@clisp.org>
37052
37053         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37054         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37055         ARPA_INET_H directly.
37056         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37057
37058 2008-09-28  Bruno Haible  <bruno@clisp.org>
37059
37060         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37061         from gl_HEADER_SYS_SOCKET.
37062         (gl_HEADER_SYS_SOCKET): Invoke it.
37063         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37064
37065 2008-09-28  Bruno Haible  <bruno@clisp.org>
37066
37067         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37068         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37069         Needed on OSF/1 4.0.
37070
37071 2008-09-28  Bruno Haible  <bruno@clisp.org>
37072
37073         Override open more carefully.
37074         * lib/open.c (orig_open): New function.
37075         (rpl_open): Use orig_open instead of open.
37076         * lib/fcntl.in.h: Add special invocation convention.
37077         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37078         (gl_FUNC_OPEN): Invoke it.
37079
37080         Override freopen more carefully.
37081         * lib/freopen.c (orig_freopen): New function.
37082         (rpl_freopen): Use orig_freopen instead of freopen.
37083         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37084         (gl_FUNC_FREOPEN): Invoke it.
37085
37086         Override fopen more carefully.
37087         * lib/fopen.c (orig_fopen): New function.
37088         (rpl_fopen): Use orig_fopen instead of fopen.
37089         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37090         (gl_FUNC_FOPEN): Invoke it.
37091         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37092
37093 2008-09-28  Bruno Haible  <bruno@clisp.org>
37094
37095         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37096         SIGPIPE.
37097
37098 2008-09-28  Bruno Haible  <bruno@clisp.org>
37099
37100         * tests/test-sigaction.c (handler, main): Disable the check whether
37101         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37102         glibc systems with LinuxThreads.
37103
37104 2008-09-28  Bruno Haible  <bruno@clisp.org>
37105
37106         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37107
37108         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37109         with AIX xlc.
37110         * lib/fcntl.in.h (open): Likewise.
37111         Reported by Rainer Tammer <tammer@tammer.net>.
37112
37113 2008-09-28  Bruno Haible  <bruno@clisp.org>
37114
37115         * modules/posix_spawnp-tests: New file.
37116         * tests/test-posix_spawn.c: New file.
37117         * tests/test-posix_spawn.in.sh: New file.
37118
37119         New module 'posix_spawnp'.
37120         * modules/posix_spawnp: New file.
37121         * lib/spawnp.c: New file, from GNU libc with modifications.
37122         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37123
37124         New module 'posix_spawn'.
37125         * modules/posix_spawn: New file.
37126         * lib/spawn.c: New file, from GNU libc with modifications.
37127         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37128
37129         New module 'posix_spawnattr_destroy'.
37130         * modules/posix_spawnattr_destroy: New file.
37131         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37132         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37133         module.
37134
37135         New module 'posix_spawnattr_setsigmask'.
37136         * modules/posix_spawnattr_setsigmask: New file.
37137         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37138         modifications.
37139         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37140         new module.
37141
37142         New module 'posix_spawnattr_getsigmask'.
37143         * modules/posix_spawnattr_getsigmask: New file.
37144         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37145         modifications.
37146         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37147         new module.
37148
37149         New module 'posix_spawnattr_setsigdefault'.
37150         * modules/posix_spawnattr_setsigdefault: New file.
37151         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37152         modifications.
37153         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37154         new module.
37155
37156         New module 'posix_spawnattr_getsigdefault'.
37157         * modules/posix_spawnattr_getsigdefault: New file.
37158         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37159         modifications.
37160         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37161         new module.
37162
37163         New module 'posix_spawnattr_setschedpolicy'.
37164         * modules/posix_spawnattr_setschedpolicy: New file.
37165         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37166         modifications.
37167         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37168         new module.
37169
37170         New module 'posix_spawnattr_getschedpolicy'.
37171         * modules/posix_spawnattr_getschedpolicy: New file.
37172         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37173         modifications.
37174         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37175         new module.
37176
37177         New module 'posix_spawnattr_setschedparam'.
37178         * modules/posix_spawnattr_setschedparam: New file.
37179         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37180         modifications.
37181         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37182         new module.
37183
37184         New module 'posix_spawnattr_getschedparam'.
37185         * modules/posix_spawnattr_getschedparam: New file.
37186         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37187         modifications.
37188         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37189         new module.
37190
37191         New module 'posix_spawnattr_setpgroup'.
37192         * modules/posix_spawnattr_setpgroup: New file.
37193         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37194         modifications.
37195         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37196         module.
37197
37198         New module 'posix_spawnattr_getpgroup'.
37199         * modules/posix_spawnattr_getpgroup: New file.
37200         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37201         modifications.
37202         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37203         module.
37204
37205         New module 'posix_spawnattr_setflags'.
37206         * modules/posix_spawnattr_setflags: New file.
37207         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37208         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37209         module.
37210
37211         New module 'posix_spawnattr_getflags'.
37212         * modules/posix_spawnattr_getflags: New file.
37213         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37214         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37215         module.
37216
37217         New module 'posix_spawnattr_init'.
37218         * modules/posix_spawnattr_init: New file.
37219         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37220         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37221         module.
37222
37223         New module 'posix_spawn_file_actions_destroy'.
37224         * modules/posix_spawn_file_actions_destroy: New file.
37225         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37226         modifications.
37227         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37228         the new module.
37229
37230         New module 'posix_spawn_file_actions_addopen'.
37231         * modules/posix_spawn_file_actions_addopen: New file.
37232         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37233         modifications.
37234         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37235         the new module.
37236
37237         New module 'posix_spawn_file_actions_adddup2'.
37238         * modules/posix_spawn_file_actions_adddup2: New file.
37239         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37240         modifications.
37241         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37242         the new module.
37243
37244         New module 'posix_spawn_file_actions_addclose'.
37245         * modules/posix_spawn_file_actions_addclose: New file.
37246         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37247         modifications.
37248         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37249         the new module.
37250
37251         New module 'posix_spawn_file_actions_init'.
37252         * modules/posix_spawn_file_actions_init: New file.
37253         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37254         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37255         new module.
37256
37257         New module 'posix_spawn-internal'.
37258         * modules/posix_spawn-internal: New file.
37259         * lib/spawn_int.h: New file, from GNU libc with modifications.
37260         * lib/spawni.c: New file, from GNU libc with modifications.
37261         * m4/posix_spawn.m4: New file.
37262
37263         New module 'spawn'.
37264         * modules/spawn: New file.
37265         * lib/spawn.in.h: New file, from GNU libc with modifications.
37266         * m4/spawn_h.m4: New file.
37267         * doc/posix-headers/spawn.texi: Mention the new module.
37268
37269 2008-09-28  Bruno Haible  <bruno@clisp.org>
37270
37271         * modules/sched-tests: New file.
37272         * tests/test-sched.c: New file.
37273
37274         New module 'sched'.
37275         * modules/sched: New file.
37276         * lib/sched.in.h: New file.
37277         * m4/sched_h.m4: New file.
37278         * doc/posix-headers/sched.texi: Mention the new module.
37279
37280 2008-09-27  Eric Blake  <ebb9@byu.net>
37281
37282         Fix previous patch, and tweak references to $0.
37283         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37284         (func_version, func_gnulib_dir): Don't call this program
37285         gnulib-tool.
37286         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37287         with using $0 in function.
37288         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37289         (func_fatal_error): Reuse the name the user invoked us with.
37290
37291 2008-09-27  Bruno Haible  <bruno@clisp.org>
37292
37293         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37294         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37295         (gl_ICONV_H): Not here.
37296         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37297         instead of assigning ICONV_H directly.
37298
37299         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37301         WCHAR_H directly.
37302
37303 2008-09-27  Bruno Haible  <bruno@clisp.org>
37304
37305         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37306         * modules/arpa_inet (Depends-on): Add link-warning.
37307         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37308         * modules/unistd (Makefile.am): Likewise.
37309
37310 2008-09-26  Bruno Haible  <bruno@clisp.org>
37311
37312         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37313         variables.
37314         (func_version): Essentially copied from gnulib-tool.
37315         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37316         func_readlink): Copied from gnulib-tool.
37317
37318 2008-09-26  Bruno Haible  <bruno@clisp.org>
37319
37320         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37321         invoking git-version-gen.
37322
37323 2008-09-26  Bruno Haible  <bruno@clisp.org>
37324
37325         * posix-modules: Update to directory names changed on 2008-01-19.
37326         Remove commas in output before splitting into words. No more need to
37327         avoid 'ftruncate' since 2007-02-19.
37328
37329 2008-09-26  Bruno Haible  <bruno@clisp.org>
37330
37331         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37332
37333 2008-09-26  Bruno Haible  <bruno@clisp.org>
37334
37335         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37336         * modules/fwriteerror (Depends-on): Add errno.
37337
37338 2008-09-26  Bruno Haible  <bruno@clisp.org>
37339
37340         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37341         * tests/test-vc-list-files-cvs.sh: Likewise.
37342
37343 2008-09-26  Bruno Haible  <bruno@clisp.org>
37344
37345         * doc/posix-headers/sys_resource.texi: Reorder items.
37346
37347 2008-09-26  Jim Meyering  <meyering@redhat.com>
37348
37349         fts: tweak inode comparison function
37350         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37351         inode numbers, as documented.
37352
37353         fts: sort dirent entries on inode number before traversing
37354         This avoids a quadratic, seek-related performance penalty when
37355         operating on a directory containing many entries (measurable at 10k;
37356         3.5 hours at 2 million entries with a cold cache) on certain types
37357         of file systems, including ext3 and ext4, but not tmpfs.
37358         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37359         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37360         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37361         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37362         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37363         (fts_build): Set the stat.st_ino member from D_INO.
37364         If it is likely to be useful, sort dirent entries on inode number.
37365
37366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37367         and the struct statfs.f_type member.
37368         * modules/fts (Depends-on): Add d-ino.
37369
37370 2008-09-26  Bruno Haible  <bruno@clisp.org>
37371
37372         * modules/sigpipe-die (Depends-on): Add sigpipe.
37373
37374         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37375         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37376         and GNULIB_STDIO_H_SIGPIPE are set.
37377         * lib/stdio-write.c: New file.
37378         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37379         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37380         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37381         REPLACE_STDIO_WRITE_FUNCS.
37382         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37383         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37384         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37385         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37386         * modules/stdio (Files): Add lib/stdio-write.c.
37387         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37388         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37389         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37390         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37391         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37392         REPLACE_FPRINTF_POSIX.
37393         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37394         REPLACE_PRINTF_POSIX.
37395         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37396         REPLACE_VFPRINTF_POSIX.
37397         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37398         REPLACE_VPRINTF_POSIX.
37399         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37400         SIGPIPE issue.
37401         * doc/posix-functions/fputc.texi: Likewise.
37402         * doc/posix-functions/fputs.texi: Likewise.
37403         * doc/posix-functions/fwrite.texi: Likewise.
37404         * doc/posix-functions/printf.texi: Likewise.
37405         * doc/posix-functions/putc.texi: Likewise.
37406         * doc/posix-functions/putchar.texi: Likewise.
37407         * doc/posix-functions/puts.texi: Likewise.
37408         * doc/posix-functions/vfprintf.texi: Likewise.
37409         * doc/posix-functions/vprintf.texi: Likewise.
37410
37411         * modules/safe-write (Depends-on): Add write.
37412
37413         * modules/sigpipe-tests: New file.
37414         * tests/test-sigpipe.c: New file.
37415         * tests/test-sigpipe.sh: New file.
37416
37417         * modules/write: New file.
37418         * lib/unistd.in.h: Include <sys/types.h>.
37419         (write): New declaration.
37420         * lib/write.c: New file.
37421         * m4/write.m4: New file.
37422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37423         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37424         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37425         GNULIB_WRITE, REPLACE_WRITE.
37426         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37427         and the SIGPIPE issue.
37428
37429         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37430         (raise): New declaration.
37431         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37432         (ext_signal): New function.
37433         (rpl_raise): New function.
37434         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37435         GNULIB_SIGNAL_H_SIGPIPE.
37436         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37437         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37438
37439         * modules/sigpipe: New file.
37440         * m4/sigpipe.m4: New file.
37441
37442 2008-09-25  Derek Price  <derek@ximbiot.com>
37443             Bruno Haible  <bruno@clisp.org>
37444
37445         * gnulib-tool (func_import): Report all license incompatibilities, not
37446         just the first one.
37447
37448 2008-09-25  Bruno Haible  <bruno@clisp.org>
37449
37450         * gnulib-tool (func_import): When computing the edits, consider not
37451         only the Makefile.ams that exist but also those that will be generated.
37452
37453 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37454
37455         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37456         fixes gnulib-tool --test warning about duplicate dependency.
37457
37458 2008-09-25  Bruno Haible  <bruno@clisp.org>
37459
37460         * gnulib-tool: Don't ask the user to perform edits in the generated
37461         Makefile.ams.
37462         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37463         apply to the Makefile.am being generated.
37464         (func_emit_tests_Makefile_am): Execute edits that apply to the
37465         Makefile.am being generated.
37466         (func_import): Setup list of Makefile.am edits before emitting the
37467         Makefile.ams, not at the end.
37468         (func_create_testdir): Update.
37469         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37470
37471 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37472
37473         * gnulib-tool (func_import): Store the --tests-base option in the
37474         comment in gnulib-cache.m4.
37475
37476 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37477
37478         * NEWS: Document increased portability that sys_select now provides.
37479
37480         * lib/sys_select.in.h: Install select wrapper.
37481         * lib/sys_socket.in.h: Use more descriptive name when there is no
37482         select wrapper.
37483         * lib/winsock-select.c: New.
37484         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37485         Require gl_HEADER_SYS_SOCKET.
37486         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37487         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37488         * tests/test-sys_select.c: Add functional tests.
37489
37490 2008-09-24  Eric Blake  <ebb9@byu.net>
37491
37492         open, fopen: close fd leak in last patch
37493         * lib/open.c (rpl_open): Close fd before returning error.
37494         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37495         * doc/posix-functions/open.texi (open): Document that Irix also
37496         has the bug.
37497         * doc/posix-functions/fopen.texi (fopen): Likewise.
37498         Reported by Paolo Bonzini.
37499
37500 2008-09-24  Bruno Haible  <bruno@clisp.org>
37501
37502         Ensure that a filename ending in a slash cannot be used to access a
37503         non-directory.
37504         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37505         to check whether it's really a directory.
37506         * lib/fopen.c: Include fcntl.h, unistd.h.
37507         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37508         and fdopen().
37509         * modules/fopen (Depends-on): Add unistd.
37510         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37511         * tests/test-fopen.c (main): Likewise.
37512         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37513         * doc/posix-functions/fopen.texi: Likewise.
37514         Reported by Eric Blake.
37515
37516 2008-09-23  Eric Blake  <ebb9@byu.net>
37517
37518         c-stack: avoid compiler optimizations when provoking overflow
37519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37520         recursion harder to optimize, to ensure a stack overflow occurs.
37521         * tests/test-c-stack.c (recurse): Likewise.
37522         Borrowed from libsigsegv.
37523
37524         c-stack: work around Irix sigaltstack bug
37525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37526         whether sigaltstack uses wrong end of stack_t (copied in part from
37527         libsigsegv).
37528         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37529         Irix bug, without requiring an over-allocation.
37530         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37531         bug.
37532
37533         fopen: document mingw bug on directories
37534         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37535         not allowing a stream visiting a directory, even though reading
37536         from such a stream is not portable.
37537
37538 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37539
37540         * lib/poll.c: Rewrite.
37541         * modules/poll: Depend on alloca.
37542
37543 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37544
37545         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37546         instead define prototypes for a full set of wrappers.  Ensure
37547         that Cygwin does not use the compatibility code, which is only
37548         for MinGW.
37549         * lib/winsock.c: New.
37550         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37551         * modules/sys_socket: Add lib/winsock.c.
37552
37553         * modules/poll-tests: Add errno and perror.
37554         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37555
37556 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37557
37558         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37559
37560 2008-09-23  Bruno Haible  <bruno@clisp.org>
37561
37562         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37563         * doc/glibc-functions/*: Likewise.
37564
37565 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37566
37567         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37568         success.
37569
37570 2008-09-22  Eric Blake  <ebb9@byu.net>
37571             Bruno Haible  <bruno@clisp.org>
37572
37573         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37574         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37575         supply %A but mishandle pseudo-NaN.
37576         Reported by Simon Josefsson.
37577
37578 2008-09-21  Bruno Haible  <bruno@clisp.org>
37579
37580         * tests/test-lock.c (main): Tweak skip message.
37581         * tests/test-tls.c (main): Likewise.
37582
37583 2008-09-21  Bruno Haible  <bruno@clisp.org>
37584
37585         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37586         whether 'struct sigaction' has sa_sigaction here...
37587         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37588         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37589
37590 2008-09-21  Bruno Haible  <bruno@clisp.org>
37591
37592         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37593         section.
37594         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37595         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37596         the new section.
37597         (Support for obsolete systems lacking POSIX:2001): New section.
37598         (String handling <string.h>): Move strdup to the new section.
37599         Suggested by Simon Josefsson and Paolo Bonzini.
37600
37601 2008-09-21  Bruno Haible  <bruno@clisp.org>
37602
37603         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37604         exponents in %e and %g results on 'long double'. Needed for mingw's
37605         improved *printf functions.
37606         * tests/test-vasprintf-posix.c (test_function): Likewise.
37607         * tests/test-snprintf-posix.h (test_function): Likewise.
37608         * tests/test-sprintf-posix.h (test_function): Likewise.
37609         Reported by Eric Blake.
37610
37611 2008-09-21  Bruno Haible  <bruno@clisp.org>
37612
37613         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37614         * tests/test-sprintf-posix.h (test_function): Likewise.
37615
37616 2008-09-21  Bruno Haible  <bruno@clisp.org>
37617
37618         * modules/getpass (Depends-on): Add strdup-posix.
37619
37620         New module 'strdup-posix'.
37621         * modules/strdup-posix: New file.
37622         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37623         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37625         REPLACE_STRDUP.
37626         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37627         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37629         strdup-posix.
37630
37631         * modules/strdup (Depends-on): Remove malloc-posix.
37632
37633 2008-09-20  Bruno Haible  <bruno@clisp.org>
37634
37635         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37636         Wildenhues.
37637
37638 2008-09-20  Bruno Haible  <bruno@clisp.org>
37639
37640         Ensure that wint_t gets defined on IRIX 5.3.
37641         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37642         * lib/wctype.in.h (wint_t): Likewise.
37643         (__wctype_wint_t): Remove type.
37644         (isw*): Use wint_t instead of __wctype_wint_t.
37645         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37646         * modules/wchar (Files): Add m4/wint_t.m4.
37647         (Makefile.am): Substitute HAVE_WINT_T.
37648         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37649         * tests/test-wctype.c: Check that wint_t is defined.
37650         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37651         * doc/posix-headers/wctype.texi: Likewise.
37652         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37653
37654 2008-09-18  Bruno Haible  <bruno@clisp.org>
37655
37656         * gnulib-tool (func_exit): Update comment.
37657
37658 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37659
37660         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37661         assumes strdup exists and does not depend on strdup to return
37662         ENOMEM on out of memory conditions.
37663
37664 2008-09-18  Bruno Haible  <bruno@clisp.org>
37665
37666         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37667         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37668         digits for the exponent.
37669
37670 2008-09-18  Jim Meyering  <meyering@redhat.com>
37671             Bruno Haible  <bruno@clisp.org>
37672
37673         * lib/vasnprintf.c (decimal_point_char): Define also if
37674         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37675
37676 2008-09-16  Bruno Haible  <bruno@clisp.org>
37677         and Eric Blake  <ebb9@byu.net>
37678
37679         vasnprintf: support Irix 5.3
37680         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37681         that mishandle long double infinity.
37682         Reported by Tom G. Christensen.
37683
37684 2008-09-16  Bruno Haible  <bruno@clisp.org>
37685
37686         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37687         Solaris 9.
37688         * doc/glibc-functions/alphasort.texi: Likewise.
37689         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37690
37691 2008-09-16  Jim Meyering  <meyering@redhat.com>
37692
37693         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37694         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37695         a umask modification leak out of a subshell.  Otherwise, the
37696         opensolaris /bin/sh would be accepted and thus cause unwarranted
37697         failures in the coreutils test suite.
37698
37699 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37700
37701         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37702         to succeed.
37703
37704 2008-09-16  Jim Meyering  <meyering@redhat.com>
37705
37706         avoid spurious test failure when library is built without ACL support
37707         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37708         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37709         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37710         * tests/test-copy-acl.sh: Likewise.
37711
37712 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37713
37714         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37715         based on character occurrence counts.
37716
37717 2008-09-15  Eric Blake  <ebb9@byu.net>
37718
37719         tests: avoid some compiler warnings
37720         * tests/test-memchr.c (main): Pass NULL indirectly.
37721         * tests/test-closein.c (main): Avoid unused variable.
37722
37723 2008-09-15  Bruno Haible  <bruno@clisp.org>
37724
37725         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37726         are missing on OpenBSD 4.0 individually.
37727         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37728
37729 2008-09-15  Bruno Haible  <bruno@clisp.org>
37730
37731         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37732         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37733         * doc/posix-functions/perror.texi: Likewise.
37734         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37735         is missing.
37736         Reported by Eric Blake.
37737
37738         * lib/errno.in.h: Use replacement values >= 2000.
37739         Reported by Eric Blake.
37740
37741 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37742
37743         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37744         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37745         limit.
37746         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37747         compareseq was aborted.
37748
37749 2008-09-14  Bruno Haible  <bruno@clisp.org>
37750
37751         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37752         yvec_edit_count.
37753         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37754         (fstrcmp_bounded): Simplify result computation accordingly.
37755
37756 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37757
37758         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37759         (fstrcmp): Define in terms of fstrcmp_bounded.
37760         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37761         lower_bound argument.
37762         Return quickly if the result is certainly < lower_bound.
37763         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37764
37765 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37766
37767         * lib/diffseq.h (EARLY_ABORT): New macro.
37768         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37769         evaluates to true.
37770
37771 2008-09-14  Bruno Haible  <bruno@clisp.org>
37772
37773         * modules/perror-tests: New file.
37774         * tests/test-perror.sh: New file.
37775         * tests/test-perror.c: New file.
37776
37777         New module 'perror'.
37778         * lib/stdio.in.h (perror): New declaration.
37779         * lib/perror.c: New file.
37780         * m4/perror.m4: New file.
37781         * modules/perror: New file.
37782         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37783         * doc/posix-functions/perror.texi: Mention the perror module.
37784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37785         REPLACE_PERROR.
37786         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37787         REPLACE_PERROR.
37788
37789 2008-09-14  Bruno Haible  <bruno@clisp.org>
37790
37791         * modules/stdio (Makefile.am): Reorder to match the order in
37792         lib/stdio.in.h.
37793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37794
37795 2008-09-13  Bruno Haible  <bruno@clisp.org>
37796
37797         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37798
37799 2008-09-13  Bruno Haible  <bruno@clisp.org>
37800
37801         Extend strerror to cover the added errno values.
37802         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37803         (rpl_strerror): Provide error messages for the added errno values and
37804         for the WSA* values.
37805         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37806         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37807         strerror.
37808         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37809         * modules/strerror (Depends-on): Add errno.
37810         * doc/posix-functions/strerror.texi: Document the change.
37811         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37812         and EOVERFLOW.
37813
37814 2008-09-13  Bruno Haible  <bruno@clisp.org>
37815
37816         * modules/EOVERFLOW: Remove file.
37817         * m4/eoverflow.m4: Remove file.
37818         * modules/EOVERFLOW-tests: Remove file.
37819         * tests/test-EOVERFLOW.c: Remove file.
37820         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37821         * modules/ftell (Depends-on): Likewise.
37822         * modules/getdelim (Depends-on): Likewise.
37823         * modules/getugroups (Depends-on): Likewise.
37824         * modules/poll (Depends-on): Likewise.
37825         * modules/snprintf (Depends-on): Likewise.
37826         * modules/sprintf-posix (Depends-on): Likewise.
37827         * modules/vasnprintf (Depends-on): Likewise.
37828         * modules/vasprintf (Depends-on): Likewise.
37829         * modules/vfprintf-posix (Depends-on): Likewise.
37830         * modules/vsnprintf (Depends-on): Likewise.
37831         * modules/vsprintf-posix (Depends-on): Likewise.
37832         * modules/xvasprintf (Depends-on): Likewise.
37833         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37834         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37835         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37836         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37837         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37838         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37839         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37840         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37841         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37842         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37843         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37844         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37845         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37846         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37847         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37848         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37849         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37850         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37851         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37852         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37853         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37854         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37855         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37856         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37857         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37858         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37859         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37860         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37861         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37862         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37863         * MODULES.html.sh: Remove EOVERFLOW.
37864         * NEWS: Mention the change.
37865
37866 2008-09-13  Bruno Haible  <bruno@clisp.org>
37867
37868         * modules/errno-tests: New file.
37869         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37870
37871         * lib/errno.in.h: New file.
37872         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37873         * modules/errno: New file.
37874         * doc/posix-headers/errno.texi: Update documentation.
37875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37876
37877 2008-09-13  Bruno Haible  <bruno@clisp.org>
37878
37879         * tests/test-poll.c: Use #if for native Windows, rather than testing
37880         __MSVCRT__.
37881
37882 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37883             Bruno Haible  <bruno@clisp.org>
37884
37885         * lib/glob.c: Don't include <pwd.h> on native Windows.
37886         (WINDOWS32): New macro.
37887         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37888
37889 2008-09-13  Bruno Haible  <bruno@clisp.org>
37890
37891         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37892         (ETIMEDOUT): Remove macro.
37893         (glthread_cond_timedwait_multithreaded): New declaration.
37894         (glthread_cond_timedwait): Use it.
37895         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37896         (glthread_cond_timedwait_multithreaded): New function.
37897
37898 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37899
37900         * modules/poll-tests: Do not check for io.h.
37901         * tests/test-poll.c: Check for __MSVCRT__ instead.
37902
37903 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37904
37905         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37906         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37907         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37908
37909 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37910
37911         * modules/poll-tests: New.
37912         * tests/test-poll.c: New.
37913
37914 2008-09-12  Eric Blake  <ebb9@byu.net>
37915
37916         frexp: test for NetBSD failure on -0.0
37917         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37918         not all, bugs from NetBSD 3.0 have been fixed.
37919         * doc/posix-functions/frexp.texi (frexp): Document bug.
37920         Reported by Thomas Klausner.
37921
37922         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37923         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37924         literal -0.0.
37925         Reported by Jonathan C. Patschke <jp@centtech.com>.
37926
37927 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37928
37929         * lib/glthread/cond.h: Use dummy implementation also if
37930         USE_WIN32_THREADS.
37931
37932 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37933
37934         * modules/fnmatch-posix (License): Change to LGPLv2+.
37935         * modules/fnmatch-gnu (License): Likewise.
37936
37937 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37938
37939         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37940
37941 2008-09-11  Jim Meyering  <meyering@redhat.com>
37942
37943         * users.txt: Add gtk-vnc.
37944
37945 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37946
37947         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37948         rotate amounts.
37949
37950         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37951         required for 16-bit and 8-bit rotates.
37952         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37953         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37954         UINT8_MAX instead of hard-coded constants.
37955         Suggested by Paul Eggert.
37956
37957 2008-09-07  Bruno Haible  <bruno@clisp.org>
37958
37959         * tests/test-striconveh.c (main): Check behaviour when converting from
37960         UTF-7.
37961
37962         Make striconveh work better with stateful encodings.
37963         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37964         that iconv does not increment the inptr when returning -1/EINVAL.
37965
37966 2008-09-07  Bruno Haible  <bruno@clisp.org>
37967
37968         * build-aux/config.rpath: Update according to libtool-2.2.6.
37969         * build-aux/config.libpath: Likewise.
37970
37971 2008-09-06  Bruno Haible  <bruno@clisp.org>
37972
37973         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37974         * lib/freadptr.c (freadptr): Likewise.
37975         * lib/freadseek.c (freadptrinc): Likewise.
37976         Reported by Simon Josefsson.
37977
37978 2008-09-06  Bruno Haible  <bruno@clisp.org>
37979
37980         * modules/freadptr (License): Change to LGPLv2+.
37981         * modules/freadseek (License): Likewise.
37982         Suggested by Eric Blake.
37983
37984         * modules/memchr2 (License): Change to LGPLv2+.
37985         Approved by Eric Blake.
37986
37987 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37988             Bruno Haible  <bruno@clisp.org>
37989
37990         Make gnulib-tool work with native 'sed' on AIX.
37991         * gnulib-tool (sed_noop): New variable.
37992         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37993         func_add_or_update, func_create_testdir): Use it to initialize sed
37994         script variables.
37995         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37996
37997 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37998             Bruno Haible  <bruno@clisp.org>
37999
38000         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38001         also works after #include directives.
38002
38003 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38004
38005         getdate.y: reject an out-of-range timezone value
38006         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38007         the range [-24...+24].  When specified with only one or two digits,
38008         * tests/test-getdate.c: Tests for the fix.
38009         * doc/getdate.texi: Document this change.
38010
38011 2008-09-03  Bruno Haible  <bruno@clisp.org>
38012
38013         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38014
38015 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38016
38017         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38018         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38019         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38020         Blake <ebb9@byu.net>.
38021
38022         * tests/test-bitrotate.c: Add more test vectors.
38023
38024 2008-09-02  Eric Blake  <ebb9@byu.net>
38025
38026         vasnprintf-posix: handle large precision via %.*d
38027         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38028         when handling it ourselves.
38029         * tests/test-vasnprintf-posix.c (test_function): Add test.
38030         * tests/test-snprintf-posix.h (test_function): Likewise.
38031         * tests/test-sprintf-posix.h (test_function): Likewise.
38032         * tests/test-vasprintf-posix.c (test_function): Likewise.
38033         Reported by Alain Guibert.
38034
38035 2008-09-01  Eric Blake  <ebb9@byu.net>
38036
38037         c-stack: make configure-time check more robust
38038         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38039         successful sigaction call.
38040         Reported by Tom G. Christensen.
38041
38042 2008-09-01  Bruno Haible  <bruno@clisp.org>
38043
38044         New module 'findprog-lgpl'.
38045         * modules/findprog-lgpl: New file.
38046         * lib/findprog-lgpl.c: New file.
38047         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38048         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38049         to decide whether to use strdup or xstrdup, concatenated_filename or
38050         xconcatenated_filename.
38051
38052 2008-09-01  Bruno Haible  <bruno@clisp.org>
38053
38054         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38055         'xconcat-filename' (GPL).
38056         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38057         (License): Change to LGPLv2+.
38058         * modules/xconcat-filename: New file.
38059         * lib/concat-filename.h (concatenated_filename): Change specification.
38060         (xconcatenated_filename): New declaration.
38061         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38062         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38063         memory situations.
38064         * lib/xconcat-filename.c: New file.
38065         * NEWS: Mention the change.
38066         * lib/findprog.c: Include concat-filename.h, not filename.h.
38067         (find_in_path): Use xconcatenated_filename instead of
38068         concatenated_filename.
38069         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38070         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38071         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38072         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38073         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38074         instead of concatenated_filename.
38075         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38076         (execute_java_class): Use xconcatenated_filename instead of
38077         concatenated_filename.
38078         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38079         * modules/javacomp (Depends-on): Likewise.
38080         * modules/javaexec (Depends-on): Likewise.
38081
38082 2008-09-01  Bruno Haible  <bruno@clisp.org>
38083
38084         Split module 'filename' into 'filename' and 'concat-filename'.
38085         * modules/filename: Keep only lib/filename.h.
38086         (License): Change to LGPLv2+.
38087         * modules/concat-filename: New file, extracted from modules/filename.
38088         * lib/filename.h (concatenated_filename): Remove declaration.
38089         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38090         * lib/concat-filename.c: Include concat-filename.h.
38091         * NEWS: Mention the change.
38092
38093 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38094
38095         * lib/bitrotate.h (rotl8, rotr8): Add.
38096
38097         * modules/bitrotate (configure.ac): Need
38098         AC_REQUIRE([AC_C_INLINE]).
38099         (Description): Mention stdint.h.  Reported by Bruno Haible
38100         <bruno@clisp.org>.
38101
38102         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38103         Paolo Bonzini <bonzini@gnu.org>.
38104
38105 2008-08-31  Bruno Haible  <bruno@clisp.org>
38106
38107         Assume Solaris specific bi-arch conventions on Solaris systems.
38108         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38109         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38110         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38111         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38112         like acl_libdirstem.
38113         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38114         acl_libdirstem.
38115         * NEWS: Mention the change.
38116         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38117
38118 2008-08-31  Jim Meyering  <meyering@redhat.com>
38119
38120         * lib/strftime.h: Add comments describing the two added arguments.
38121
38122         remove duplicate #include directives
38123         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38124         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38125
38126 2008-08-31  Bruno Haible  <bruno@clisp.org>
38127
38128         New module 'sigpipe-die'.
38129         * modules/sigpipe-die: New file.
38130         * lib/sigpipe-die.h: New file.
38131         * lib/sigpipe-die.c: New file.
38132         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38133
38134 2008-08-31  Bruno Haible  <bruno@clisp.org>
38135
38136         Don't override previously installed signal handlers.
38137         * lib/fatal-signal.c (saved_sigactions): New variable.
38138         (uninstall_handlers): Reset the signal to the saved handler, not
38139         to SIG_DFL (except when ignored).
38140         (install_handlers): Save the previous handlers.
38141
38142 2008-08-30  Bruno Haible  <bruno@clisp.org>
38143
38144         * gnulib-tool (func_reset_sigpipe): New function.
38145         (func_get_automake_snippet, func_modules_transitive_closure,
38146         func_import): Invoke it before a join command that reads from stdin,
38147         to avoid "echo: write error: Broken pipe" error messages on stderr.
38148         Reported by Sam Steingold <sds@gnu.org>.
38149
38150 2008-08-30  Bruno Haible  <bruno@clisp.org>
38151
38152         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38153         Code copied from m4/open.m4.
38154         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38155         access and the filename ends in a slash. Code copied from lib/open.c.
38156         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38157         * tests/test-fopen.c (main): Check against bug with trailing slash.
38158
38159 2008-08-29  Bruno Haible  <bruno@clisp.org>
38160
38161         Avoid some "gcc -pedantic" warnings.
38162         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38163         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38164         * lib/dirent.in.h: Likewise.
38165         * lib/fcntl.in.h: Likewise.
38166         * lib/float.in.h: Likewise.
38167         * lib/iconv.in.h: Likewise.
38168         * lib/inttypes.in.h: Likewise.
38169         * lib/locale.in.h: Likewise.
38170         * lib/math.in.h: Likewise.
38171         * lib/netinet_in.in.h: Likewise.
38172         * lib/search.in.h: Likewise.
38173         * lib/signal.in.h: Likewise.
38174         * lib/stdarg.in.h: Likewise.
38175         * lib/stdint.in.h: Likewise.
38176         * lib/stdio.in.h: Likewise.
38177         * lib/stdlib.in.h: Likewise.
38178         * lib/string.in.h: Likewise.
38179         * lib/strings.in.h: Likewise.
38180         * lib/sys_select.in.h: Likewise.
38181         * lib/sys_socket.in.h: Likewise.
38182         * lib/sys_stat.in.h: Likewise.
38183         * lib/sys_time.in.h: Likewise.
38184         * lib/sysexits.in.h: Likewise.
38185         * lib/time.in.h: Likewise.
38186         * lib/unistd.in.h: Likewise.
38187         * lib/wchar.in.h: Likewise.
38188         * lib/wctype.in.h: Likewise.
38189         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38190         * modules/fchdir (Makefile.am): Likewise.
38191         * modules/fcntl (Makefile.am): Likewise.
38192         * modules/float (Makefile.am): Likewise.
38193         * modules/iconv_open (Makefile.am): Likewise.
38194         * modules/inttypes (Makefile.am): Likewise.
38195         * modules/locale (Makefile.am): Likewise.
38196         * modules/math (Makefile.am): Likewise.
38197         * modules/netinet_in (Makefile.am): Likewise.
38198         * modules/search (Makefile.am): Likewise.
38199         * modules/signal (Makefile.am): Likewise.
38200         * modules/stdarg (Makefile.am): Likewise.
38201         * modules/stdint (Makefile.am): Likewise.
38202         * modules/stdio (Makefile.am): Likewise.
38203         * modules/stdlib (Makefile.am): Likewise.
38204         * modules/string (Makefile.am): Likewise.
38205         * modules/strings (Makefile.am): Likewise.
38206         * modules/sys_select (Makefile.am): Likewise.
38207         * modules/sys_socket (Makefile.am): Likewise.
38208         * modules/sys_stat (Makefile.am): Likewise.
38209         * modules/sys_time (Makefile.am): Likewise.
38210         * modules/sysexits (Makefile.am): Likewise.
38211         * modules/time (Makefile.am): Likewise.
38212         * modules/unistd (Makefile.am): Likewise.
38213         * modules/wchar (Makefile.am): Likewise.
38214         * modules/wctype (Makefile.am): Likewise.
38215         Reported by Reuben Thomas <rrt@sc3d.org>.
38216
38217 2008-08-29  Bruno Haible  <bruno@clisp.org>
38218
38219         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38220         any more.
38221
38222 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38223
38224         * MODULES.html.sh (Misc): Add bitrotate.
38225
38226         * modules/bitrotate: New file.
38227
38228         * lib/bitrotate.h: New file.
38229
38230         * modules/bitrotate-tests: New file.
38231
38232         * tests/test-bitrotate.c: New file.
38233
38234         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38235         on the bitrotate module.
38236
38237         * lib/arctwo.c: Use new bitrotate module.
38238
38239 2008-08-29  Jim Meyering  <meyering@redhat.com>
38240
38241         bootstrap: merge changes from coreutils
38242         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38243         of copied files.  Remove a kludge, now that this is fixed.
38244         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38245         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38246         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38247
38248 2008-08-29  Bruno Haible  <bruno@clisp.org>
38249
38250         * MODULES.html.sh: Remove --cvs-urls option.
38251
38252 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38253
38254         maint.mk: adjust to file name change
38255         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38256
38257 2008-08-28  Jim Meyering  <meyering@redhat.com>
38258
38259         * modules/getndelim2 (License): Relicense to LGPLv2+.
38260         Approved by Richard Stallman for the version of 1995, and by
38261         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38262
38263 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38264
38265         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38266         dummy if one is not available.  Do not touch them if
38267         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38268         (getc_maybe_unlocked): New.
38269         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38270
38271 2008-08-26  Eric Blake  <ebb9@byu.net>
38272
38273         doc/INSTALL: resync from autoconf
38274         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38275         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38276         moving...
38277         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38278         * INSTALL: Regenerate.
38279         * INSTALL.ISO: New file.
38280         * INSTALL.UTF-8: Likewise.
38281
38282 2008-08-26  Jim Meyering  <meyering@redhat.com>
38283
38284         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38285         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38286         these definitions conditional, so that they may be overridden, too.
38287
38288 2008-08-26  Bruno Haible  <bruno@clisp.org>
38289
38290         Generate INSTALL file variants with prettier quotes.
38291         * doc/Makefile (INSTALL_PRELUDE): New macro.
38292         (INSTALL): Use it.
38293         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38294
38295 2008-08-26  Bruno Haible  <bruno@clisp.org>
38296
38297         Run makeinfo in an English locale.
38298         * doc/Makefile (MAKEINFO): New variable.
38299
38300 2008-08-26  Bruno Haible  <bruno@clisp.org>
38301
38302         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38303         Suggested by Eric Blake.
38304
38305 2008-08-25  Bruno Haible  <bruno@clisp.org>
38306
38307         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38308
38309 2008-08-25  Eric Blake  <ebb9@byu.net>
38310
38311         c-stack: test that stack overflow can be caught
38312         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38313         that platform allows handling stack overflow; at least OS/2 EMX
38314         has sigaltstack, but crashes before transferring control to
38315         handler on stack overflow.
38316         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38317         check for HAVE_STACK_OVERFLOW_HANDLING.
38318         Reported by Elbert Pol.
38319
38320 2008-08-25  Bruno Haible  <bruno@clisp.org>
38321
38322         * doc/posix-functions/strftime.texi: Fix description of strftime
38323         module.
38324
38325 2008-08-24  Bruno Haible  <bruno@clisp.org>
38326
38327         * tests/uniwidth/test-uc_width2.c: New file.
38328         * tests/uniwidth/test-uc_width2.sh: New file.
38329         * modules/uniwidth/width-tests (Files): Add the new files.
38330         (TESTS): Add uniwidth/test-uc_width2.sh.
38331         (TESTS_ENVIRONMENT): New variable.
38332         (check_PROGRAMS): Add test-uc_width2.
38333         (test_uc_width2_SOURCES): New variable.
38334
38335         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38336         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38337         not 0x00AB.
38338         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38339
38340 2008-08-22  Eric Blake  <ebb9@byu.net>
38341
38342         test-lock, test-tls: mention why a test is skipped
38343         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38344         skipped.
38345         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38346
38347         count-one-bits: relax license
38348         * modules/count-one-bits (License): Relicense to LGPLv2+.
38349         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38350
38351 2008-08-22  Andreas Schwab  <schwab@suse.de>
38352
38353         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38354         Remove spurious space in assignment.
38355
38356 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38357
38358         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38359         Paul Eggert <eggert@CS.UCLA.EDU>.
38360
38361 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38362
38363         * modules/gettext: Add m4/threadlib.m4.
38364
38365 2008-08-19  Eric Blake  <ebb9@byu.net>
38366
38367         test-c-stack: fix compilation failure on FreeBSD 5.0
38368         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38369         headers before <sys/resource.h>.
38370         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38371         the bug.
38372         Reported by Nelson H. F. Beebe.
38373
38374         strverscmp: migrate from "strverscmp.h" to <string.h>
38375         * modules/string (Makefile.am): Add new hooks.
38376         * modules/strverscmp (Files): Remove strverscmp.h.
38377         (Depends-on): Add string.
38378         (configure.ac): Add indicator.
38379         (Include): Mention new header.
38380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38381         defaults.
38382         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38383         results.
38384         * lib/strverscmp.h: Delete.
38385         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38386         * tests/test-strverscmp.c (includes): Adjust client.
38387         * lib/check-version.c (includes): Likewise.
38388         * NEWS: Document the change.
38389
38390         strverscmp: add unit test
38391         * modules/strverscmp-tests: New file.
38392         * tests/test-strverscmp.c: Likewise.
38393
38394 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38395
38396         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38397         regarding Windows crypto stuff, from Mono.
38398
38399 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38400
38401         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38402         if present, for intel RND.  Return error on failures.
38403
38404 2008-08-18  Ben Pfaff  <blp@gnu.org>
38405
38406         gitlog-to-changelog: give better diagnostic for failed pipe-open
38407         * build-aux/gitlog-to-changelog: Improve error message: suggest
38408         that the version of Git may be too old.
38409
38410 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38411
38412         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38413         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38414
38415 2008-08-18  Bruno Haible  <bruno@clisp.org>
38416
38417         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38418         pthread_in_use().
38419
38420 2008-08-18  Bruno Haible  <bruno@clisp.org>
38421
38422         * lib/glthread/threadlib.c: Include <pthread.h>.
38423
38424 2008-08-18  Bruno Haible  <bruno@clisp.org>
38425
38426         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38427         glthread_recursive_lock_* macros.
38428         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38429         Fix syntax error.
38430
38431 2008-08-18  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/glthread/thread.c: Avoid forcing a context switch right after
38434         thread creation.
38435
38436 2008-08-17  Bruno Haible  <bruno@clisp.org>
38437
38438         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38439         * lib/glthread/thread.h: Provide Win32 specific implementation.
38440         * modules/thread (Files): Add lib/glthread/thread.c.
38441         (Depends-on): Add lock.
38442         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38443
38444 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38445
38446         New module 'yield'.
38447         * modules/yield: New file.
38448         * lib/glthread/yield.h: New file.
38449         * m4/yield.m4: New file.
38450         * MODULES.html.sh (Multithreading): Add yield.
38451
38452 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38453
38454         New module 'thread'.
38455         * modules/thread: New file.
38456         * lib/glthread/thread.h: New file.
38457         * m4/thread.m4: New file.
38458         * MODULES.html.sh (Multithreading): Add thread.
38459
38460 2008-08-17  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/glthread/lock.h: Include <stdlib.h> always.
38463         * lib/glthread/tls.h: Likewise.
38464         * lib/glthread/cond.h: Likewise.
38465
38466 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38467
38468         New module 'cond'.
38469         * modules/cond: New file.
38470         * lib/glthread/cond.h: New file.
38471         * lib/glthread/cond.c: New file.
38472         * m4/cond.m4: New file.
38473         * MODULES.html.sh (Multithreading): Add cond.
38474
38475 2008-08-16  Eric Blake  <ebb9@byu.net>
38476
38477         c-stack: fix regression on Irix 5.3 from 2008-06-21
38478         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38479         sa_sigaction...
38480         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38481         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38482         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38483         * modules/signal (Makefile.am): Use the value.
38484         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38485         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38486         * doc/posix-headers/signal.texi (signal.h): Document this
38487         portability issue.
38488         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38489         Reported by Tom G. Christensen.
38490
38491 2008-08-17  Bruno Haible  <bruno@clisp.org>
38492
38493         New module 'threadlib'.
38494         * modules/threadlib: New file.
38495         * lib/glthread/threadlib.c: New file, extracted from
38496         lib/glthread/lock.c.
38497         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38498         functions.
38499         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38500         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38501         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38502         macros.
38503         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38504         (gl_DISABLE_THREADS): Remove macro.
38505         * modules/lock (Files): Remove build-aux/config.rpath.
38506         (Depends-on): Remove havelib. Add threadlib.
38507         (configure.ac-early): Remove section.
38508         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38509         * modules/tls (Depends-on): Remove lock. Add threadlib.
38510         (Link): New section, copied from threadlib.
38511         * MODULES.html.sh (Multithreading): Add threadlib.
38512
38513 2008-08-14  Bruno Haible  <bruno@clisp.org>
38514
38515         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38516         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38517         glthread_rwlock_unlock, glthread_rwlock_destroy,
38518         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38519         glthread_recursive_lock_destroy): Define as macros always.
38520         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38521         glthread_lock_lock.
38522         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38523         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38524         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38525         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38526         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38527         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38528         (glthread_recursive_lock_lock_func): Renamed from
38529         glthread_recursive_lock_lock.
38530         (glthread_recursive_lock_unlock_func): Renamed from
38531         glthread_recursive_lock_unlock.
38532         (glthread_recursive_lock_destroy_func): Renamed from
38533         glthread_recursive_lock_destroy.
38534
38535 2008-08-14  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/glthread/lock.h: Renamed from lib/lock.h.
38538         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38539         * lib/glthread/tls.h: Renamed from lib/tls.h.
38540         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38541         * lib/fstrcmp.c: Update includes.
38542         * lib/strsignal.c: Update includes.
38543         * modules/lock (Files, Makefile.am): Update.
38544         (Include): Change to "glthread/lock.h".
38545         * modules/tls (Files, Makefile.am): Update.
38546         (Include): Change to "glthread/tls.h".
38547         * tests/test-lock.c: Update includes.
38548         * tests/test-tls.c: Update includes.
38549         * NEWS: Mention the renamed header files.
38550
38551 2008-08-11  Jim Meyering  <meyering@redhat.com>
38552
38553         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38554
38555 2008-08-11  Eric Blake  <ebb9@byu.net>
38556
38557         test-c-stack: avoid C99-ism
38558         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38559         before statement.
38560         Reported by Alain Guibert.
38561
38562 2008-08-10  Jim Meyering  <meyering@redhat.com>
38563
38564         ensure that return value of uinttostr et al are not ignored
38565         * lib/inttostr.h (__GNUC_PREREQ): Define.
38566         (__attribute_warn_unused_result__): Define.
38567         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38568
38569 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38570
38571         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38572         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38573
38574 2008-08-07  Jim Meyering  <meyering@redhat.com>
38575
38576         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38577
38578         * modules/mkstemp (License): Relicense under LGPLv2+.
38579         * modules/tempname (License): Likewise.
38580
38581 2008-08-06  Bruno Haible  <bruno@clisp.org>
38582
38583         * lib/poll.c (poll): Further micro-optimization.
38584
38585 2008-08-06  Jim Meyering  <meyering@redhat.com>
38586
38587         inet_pton.c: use locale-independent tolower
38588         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38589         (inet_pton6): Use c_tolower rather than tolower.
38590         * modules/inet_pton (Depends-on): Add c-ctype.
38591
38592 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38593
38594         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38595         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38596
38597 2008-08-06  Jim Meyering  <meyering@redhat.com>
38598
38599         * modules/inet_pton (License): Relicense under LGPLv2+.
38600
38601 2008-08-03  Bruno Haible  <bruno@clisp.org>
38602
38603         Additional non-aborting API for lock and tls.
38604         * lib/lock.h: Include <errno.h>.
38605         (glthread_lock_init): New macro/function.
38606         (gl_lock_init): Define as wrapper around glthread_lock_init.
38607         (glthread_lock_lock): New macro/function.
38608         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38609         (glthread_lock_unlock): New macro/function.
38610         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38611         (glthread_lock_destroy): New macro/function.
38612         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38613         (glthread_rwlock_init): New macro/function.
38614         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38615         (glthread_rwlock_rdlock): New macro/function.
38616         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38617         (glthread_rwlock_wrlock): New macro/function.
38618         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38619         (glthread_rwlock_unlock): New macro/function.
38620         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38621         (glthread_rwlock_destroy): New macro/function.
38622         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38623         (glthread_recursive_lock_init): New macro/function.
38624         (gl_recursive_lock_init): Define as wrapper around
38625         glthread_recursive_lock_init.
38626         (glthread_recursive_lock_lock): New macro/function.
38627         (gl_recursive_lock_lock): Define as wrapper around
38628         glthread_recursive_lock_lock.
38629         (glthread_recursive_lock_unlock): New macro/function.
38630         (gl_recursive_lock_unlock): Define as wrapper around
38631         glthread_recursive_lock_unlock.
38632         (glthread_recursive_lock_destroy): New macro/function.
38633         (gl_recursive_lock_destroy): Define as wrapper around
38634         glthread_recursive_lock_destroy.
38635         (glthread_once): New macro/function.
38636         (gl_once): Define as wrapper around glthread_once.
38637         Update function declarations.
38638         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38639         glthread_rwlock_init. Return error code.
38640         (glthread_rwlock_rdlock_multithreaded): Renamed from
38641         glthread_rwlock_rdlock. Return error code.
38642         (glthread_rwlock_wrlock_multithreaded): Renamed from
38643         glthread_rwlock_wrlock. Return error code.
38644         (glthread_rwlock_unlock_multithreaded): Renamed from
38645         glthread_rwlock_unlock. Return error code.
38646         (glthread_rwlock_destroy_multithreaded): Renamed from
38647         glthread_rwlock_destroy. Return error code.
38648         (glthread_recursive_lock_init_multithreaded): Renamed from
38649         glthread_recursive_lock_init. Return error code.
38650         (glthread_recursive_lock_lock_multithreaded): Renamed from
38651         glthread_recursive_lock_lock. Return error code.
38652         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38653         glthread_recursive_lock_unlock. Return error code.
38654         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38655         glthread_recursive_lock_destroy. Return error code.
38656         (glthread_once_call): Make static.
38657         (glthread_once_multithreaded): Renamed from glthread_once.
38658         * lib/tls.h: Include <errno.h>.
38659         (glthread_tls_key_init): New macro/function.
38660         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38661         (glthread_tls_set): New macro/function.
38662         (gl_tls_set): Define as wrapper around glthread_tls_set.
38663         (glthread_tls_key_destroy): New macro/function.
38664         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38665         Update function declarations.
38666         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38667         glthread_tls_get.
38668         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38669
38670 2008-08-04  Eric Blake  <ebb9@byu.net>
38671
38672         gnumakefile: use space, not TAB, outside of targets
38673         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38674
38675 2008-08-02  Jim Meyering  <meyering@redhat.com>
38676
38677         getdate.y: avoid locale-dependent date parsing failure
38678         In Turkish locales, getdate would fail to recognize keywords
38679         containing a lowercase "i".  The solution is not to rely on
38680         locale-sensitive case-conversion.
38681         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38682         (lookup_word): Use c_toupper in place of toupper.
38683         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38684         Reported by Vefa Bicakci <bicave@superonline.com> in
38685         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38686         * modules/getdate (Depends-on): Add c-ctype.
38687
38688 2008-08-02  Bruno Haible  <bruno@clisp.org>
38689
38690         * gnulib-tool (func_import): When updating or creating a .gitignore
38691         file, prepend each added line with a slash, and ignore leading slashes
38692         from the existing lines.
38693         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38694
38695 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38696
38697         Portability fix for GNU make 3.79.1.
38698         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38699         versions do not understand.
38700
38701 2008-08-01  Bruno Haible  <bruno@clisp.org>
38702
38703         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38704         * tests/test-isnanf.h (zero): New variable.
38705         (main): Avoid literal -0.0f.
38706         * tests/test-isnand.h (zero): New variable.
38707         (main): Avoid literal -0.0.
38708         * tests/test-isnanl.h (zero): New variable.
38709         (main): Avoid literal -0.0L.
38710         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38711         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38712         -0.0, -0.0L.
38713         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38714         (test_signbitd): Avoid literal -0.0.
38715         (test_signbitl): Avoid literal -0.0L.
38716         * tests/test-ceilf1.c (zero): New variable.
38717         (main): Avoid literal -0.0f.
38718         * tests/test-ceill.c (zero): New variable.
38719         (main): Avoid literal -0.0L.
38720         * tests/test-floorf1.c (zero): New variable.
38721         (main): Avoid literal -0.0f.
38722         * tests/test-floorl.c (zero): New variable.
38723         (main): Avoid literal -0.0L.
38724         * tests/test-roundf1.c (zero): New variable.
38725         (main): Avoid literal -0.0f.
38726         * tests/test-round1.c (zero): New variable.
38727         (main): Avoid literal -0.0.
38728         * tests/test-roundl.c (zero): New variable.
38729         (main): Avoid literal -0.0L.
38730         * tests/test-truncf1.c (zero): New variable.
38731         (main): Avoid literal -0.0f.
38732         * tests/test-trunc1.c (zero): New variable.
38733         (main): Avoid literal -0.0.
38734         * tests/test-truncl.c (zero): New variable.
38735         (main): Avoid literal -0.0L.
38736         * tests/test-frexp.c (zero): New variable.
38737         (main): Avoid literal -0.0.
38738         * tests/test-frexpl.c (zero): New variable.
38739         (main): Avoid literal -0.0L.
38740         * tests/test-ldexpl.c (zero): New variable.
38741         (main): Avoid literal -0.0L.
38742         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38743         (zerod, zerol): New variables.
38744         (test_function): Avoid literals -0.0, -0.0L.
38745         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38746         (zerod, zerol): New variables.
38747         (test_function): Avoid literals -0.0, -0.0L.
38748         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38749         (zerod, zerol): New variables.
38750         (test_function): Avoid literals -0.0, -0.0L.
38751         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38752         (zerod, zerol): New variables.
38753         (test_function): Avoid literals -0.0, -0.0L.
38754         * tests/test-strtod.c (zero): New variable.
38755         (main): Avoid literal -0.0.
38756         Reported by Jonathan C. Patschke <jp@centtech.com>.
38757
38758 2008-07-31  Jim Meyering  <meyering@redhat.com>
38759
38760         sha256.h: correct definition of SHA224_DIGEST_SIZE
38761         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38762         Reported by Paulie Pena IV <paulie4@gmail.com>.
38763         Define as 224 / 8, rather than as a literal.
38764         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38765         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38766         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38767
38768 2008-07-31  Bruno Haible  <bruno@clisp.org>
38769
38770         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38771         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38772         Reported by Jonathan Patschke <jp@centtech.com>.
38773
38774 2008-07-31  Bruno Haible  <bruno@clisp.org>
38775
38776         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38777         Reported by Paolo Bonzini <bonzini@gnu.org>.
38778
38779 2008-07-30  Eric Blake  <ebb9@byu.net>
38780
38781         test-strtod: allow compilation without -lm
38782         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38783         Reported by Dennis Clarke <blastwave@gmail.com>.
38784
38785 2008-07-28  Jim Meyering  <meyering@redhat.com>
38786
38787         bootstrap: work also when there are no .po files in po/
38788         * build-aux/bootstrap (update_po_files): Complete the change
38789         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38790
38791 2008-07-27  Jim Meyering  <meyering@redhat.com>
38792
38793         * users.txt: Add zile.
38794
38795 2008-07-26  Ben Pfaff  <blp@gnu.org>
38796
38797         Add missing dependencies on new m4/exponent[fdl].m4 files.
38798         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38799         * modules/isnand-nolibm: Add m4/exponentd.m4.
38800         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38801         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38802         m4/isnan[fdl].m4, because the macros actually used moved.
38803         Reported by Jim Meyering.
38804
38805 2008-07-14  Ben Pfaff  <blp@gnu.org>
38806
38807         Add isinf module.
38808         * lib/isinf.c: New file.
38809         * lib/math.in.h: Define isinf macro if we have decided to replace
38810         it.
38811         * m4/isinf.m4: New file.
38812         * m4/math_h.m4: Initialize and substitute variables for isinf
38813         module.
38814         * modules/isinf: New file.
38815         * modules/isinf-tests: New file.
38816         * modules/math: Add substitutions for new module.
38817         * tests/test-isinf.c: New file.
38818         * doc/posix-functions/isinf.texi: Mention new module.
38819         * MODULES.html.sh: Mention new module.
38820
38821 2008-07-14  Ben Pfaff  <blp@gnu.org>
38822
38823         Factor out some macros for use by additional modules.
38824         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38825         exponentf.m4.
38826         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38827         exponentd.m4.
38828         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38829         file exponentl.m4.
38830         * m4/exponentf.m4: New file.
38831         * m4/exponentd.m4: New file.
38832         * m4/exponentl.m4: New file.
38833         * modules/isnanf: Use new file m4/exponentf.m4.
38834         * modules/isnand: Use new file m4/exponentd.m4.
38835         * modules/isnanl: Use new file m4/exponentl.m4.
38836
38837 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38838
38839         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38840         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38841         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38842         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38843
38844         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38845         readlink on platforms without PATH_MAX.
38846
38847 2008-07-21  Eric Blake  <ebb9@byu.net>
38848
38849         Warn, not fail, on stale version.
38850         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38851
38852         Don't allow installation with stale devel version number.
38853         * top/GNUmakefile (_is-install-target): New macro.
38854         (_curr-ver): Forbid installation with stale version number.
38855
38856 2008-07-20  Bruno Haible  <bruno@clisp.org>
38857
38858         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38859         TESTS_ENVIRONMENT.
38860         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38861
38862 2008-07-20  Bruno Haible  <bruno@clisp.org>
38863
38864         * lib/c-stack.h (c_stack_action): Add documentation.
38865         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38866
38867 2008-07-20  Bruno Haible  <bruno@clisp.org>
38868
38869         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38870         * modules/readlink (License): Likewise.
38871
38872 2008-07-17  Eric Blake  <ebb9@byu.net>
38873
38874         * modules/c-stack (Link): Fix typo.
38875
38876         Make c-stack use libsigsegv, when available.
38877         * modules/c-stack (Depends-on): Add libsigsegv.
38878         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38879         needed.
38880         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38881         (segv_handler, overflow_handler, c_stack_action)
38882         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38883         implementation when libsigsegv is available, but only when using
38884         the library is necessary.
38885         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38886         comment, explaining why XSI check fails on Linux.
38887         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38888         * tests/test-c-stack2.sh: Tweak skip message.
38889         * NEWS: Document new link-time requirements.
38890
38891 2008-07-16  Eric Blake  <ebb9@byu.net>
38892
38893         c-stack: Expose false positives when not using libsigsegv.
38894         * modules/c-stack-tests (Files): Expand test.
38895         * tests/test-c-stack.c (main): Add means to conditionally trigger
38896         non-overflow SIGSEGV.
38897         * tests/test-c-stack2.sh: New file.
38898
38899 2008-07-14  Bruno Haible  <bruno@clisp.org>
38900
38901         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38902         Reported by Eric Blake.
38903
38904 2008-07-14  Sam Steingold  <sds@gnu.org>
38905             Bruno Haible  <bruno@clisp.org>
38906
38907         New module libsigsegv.
38908         * modules/libsigsegv: New file.
38909         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38910         modifications.
38911         * MODULES.html.sh (Signal handling): New section.
38912
38913 2008-07-14  Bruno Haible  <bruno@clisp.org>
38914
38915         * modules/unictype/ctype-* (Description): Add the word "function".
38916         Improves the resulting doc in MODULES.html.
38917
38918 2008-07-12  Ben Pfaff  <blp@gnu.org>
38919
38920         Add longlong module.
38921         * modules/longlong: New file.
38922
38923 2008-07-12  Bruno Haible  <bruno@clisp.org>
38924
38925         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38926         to empty.
38927
38928 2008-07-10  Ben Pfaff  <blp@gnu.org>
38929
38930         Add isnan module.
38931         * doc/posix-functions/isnan.texi: Mention new module.
38932         * lib/math.in.h: Define isnan macro if we have decided to replace
38933         it.
38934         * m4/isnan.m4: New file.
38935         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38936         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38937         also.
38938         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38939         redundancy.
38940         * m4/math_h.m4: Initialize and substitute variables for isnan
38941         module.
38942         * modules/isnan: New file.
38943         * modules/isnan-tests: New file.
38944         * modules/math: Add substitutions for new module.
38945         * tests/test-isnan.c: New file.
38946         * MODULES.html.sh: Mention new module.
38947
38948 2008-07-10  Ben Pfaff  <blp@gnu.org>
38949
38950         Add isnanf module.
38951         * lib/isnanf.m4: New file.
38952         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38953         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38954         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38955         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38956         * modules/isnanf: New file.
38957         * modules/isnanf-tests: New file.
38958         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38959         files.
38960         * tests/test-isnanf-nolibm.c: factored most of its contents into
38961         new file tests/test-isnanf.h.
38962         * tests/test-isnanf.h: New file.
38963         * tests/test-isnanf.c: New file.
38964         * MODULES.html.sh: Mention new module.
38965         * doc/glibc-functions/isnanf.texi: Mention new module.
38966
38967 2008-07-10  Ben Pfaff  <blp@gnu.org>
38968
38969         Add isnand module.
38970         * lib/isnand.h: New file.
38971         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38972         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38973         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38974         functionality also.
38975         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38976         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38977         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38978         * modules/isnand: New file.
38979         * modules/isnand-tests: New file.
38980         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38981         files.
38982         * tests/test-isnand-nolibm.c: factored most of its contents into
38983         new file tests/test-isnand.h.
38984         * tests/test-isnand.h: New file.
38985         * tests/test-isnand.c: New file.
38986         * MODULES.html.sh: Mention new module.
38987
38988 2008-07-10  Ben Pfaff  <blp@gnu.org>
38989
38990         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38991         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38992         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38993         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38994         * modules/isnanf-nolibm: Update references to renamed files.
38995         * modules/isnand-nolibm: Likewise.
38996         * modules/isnanf-nolibm-tests: Likewise.
38997         * modules/isnand-nolibm-tests: Likewise.
38998         * lib/frexp.c: Likewise.
38999         * lib/isfinite.c: Likewise.
39000         * lib/signbitd.c: Likewise.
39001         * lib/signbitf.c: Likewise.
39002         * lib/vasnprintf.c: Likewise.
39003         * tests/test-ceilf1.c: Likewise.
39004         * tests/test-ceilf2.c: Likewise.
39005         * tests/test-floorf1.c: Likewise.
39006         * tests/test-floorf2.c: Likewise.
39007         * tests/test-frexp.c: Likewise.
39008         * tests/test-round1.c: Likewise.
39009         * tests/test-round2.c: Likewise.
39010         * tests/test-roundf1.c: Likewise.
39011         * tests/test-strtod.c: Likewise.
39012         * tests/test-trunc1.c: Likewise.
39013         * tests/test-trunc2.c: Likewise.
39014         * tests/test-truncf1.c: Likewise.
39015         * tests/test-truncf2.c: Likewise.
39016         * NEWS: Mention the renamed header files.
39017
39018 2008-07-11  Jim Meyering  <meyering@redhat.com>
39019
39020         vc-list-files: make the last-resort awk code more portable
39021         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39022         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39023         does not support it.
39024
39025 2008-07-10  Eric Blake  <ebb9@byu.net>
39026
39027         Work with tar's bootstrap.
39028         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39029         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39030         an m4 comment.
39031
39032 2008-07-09  Jim Meyering  <meyering@redhat.com>
39033
39034         posix-shell.m4: fix typo that made this test malfunction
39035         * m4/posix-shell.m4: Remove capitalization in variable name.
39036
39037 2008-07-08  Bruno Haible  <bruno@clisp.org>
39038
39039         * m4/onceonly.m4: Update comments.
39040         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39041
39042 2008-07-04  Jim Meyering  <meyering@redhat.com>
39043
39044         * users.txt: Add vc-dwim.
39045         (bison, coreutils): Use the gitweb URL.
39046
39047 2008-07-03  Jim Meyering  <meyering@redhat.com>
39048
39049         * users.txt: Add libffcall.  From Sam Steingold.
39050
39051 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39052
39053         getdate.y: do not ignore TZ with relative day, month or year offset
39054         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39055         relative-date-handling, since otherwise, the latter would clobber the
39056         sole output (an updated Start value) of the tz-handling block.
39057         * tests/test-getdate.c: Tests for the fix
39058
39059 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39060
39061         Recognize 'foo_LIBRARIES += libgnu.a'.
39062         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39063         makefile snippet has already specified an installation location,
39064         also using '+='.
39065
39066 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39067
39068         getdate.y: factor out common actions
39069         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39070         Use them in place of open-coded actions.
39071
39072 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39073
39074         Add self-test for getdate module.
39075         * modules/getdate-tests: New file.
39076         * tests/test-getdate.c: New file.
39077
39078 2008-06-29  Bruno Haible  <bruno@clisp.org>
39079
39080         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39081         .gitignore.
39082         Reported by Sylvain Beucler <beuc@beuc.net>.
39083
39084 2008-06-29  Bruno Haible  <bruno@clisp.org>
39085
39086         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39087         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39088
39089 2008-06-29  Bruno Haible  <bruno@clisp.org>
39090
39091         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39092         EXTRA_DIST.
39093         Reported by Sylvain Beucler <beuc@beuc.net>.
39094
39095 2008-06-26  Jim Meyering  <meyering@redhat.com>
39096
39097         make several modules depend on the "open" module
39098         This provides slightly increased consistency when opening-for-write
39099         the name of a non-directory spelled with a trailing slash.
39100         * modules/chdir-safer: Likewise.
39101         * modules/chown: Likewise.
39102         * modules/clean-temp: Likewise.
39103         * modules/copy-file: Likewise.
39104         * modules/fchdir: Likewise.
39105         * modules/fcntl-safer: Likewise.
39106         * modules/pipe: Likewise.
39107         * modules/utime: Likewise.
39108         Prompted by Eric Blake and Bruno Haible.
39109
39110 2008-06-24  Andreas Schwab  <schwab@suse.de>
39111
39112         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39113         literals can be used as initializers for global variables.
39114
39115 2008-06-23  Eric Blake  <ebb9@byu.net>
39116
39117         Make gnulib-cache.m4 easier to diff.
39118         * gnulib-tool (func_import): Allow newlines when reading cached
39119         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39120
39121 2008-06-23  Bruno Haible  <bruno@clisp.org>
39122
39123         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39124         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39125         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39126         m4/signalblocking.m4.
39127         (gl_PREREQ_SIGACTION): Don't invoke it.
39128         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39129         gl_PREREQ_SIG_HANDLER_H.
39130         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39131         Don't check for sigaction here.
39132
39133 2008-06-23  Bruno Haible  <bruno@clisp.org>
39134
39135         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39136         (install_handlers): Don't set the SA_RESETHAND flag.
39137
39138 2008-06-23  Bruno Haible  <bruno@clisp.org>
39139
39140         * m4/sigaction.m4: Comment fixes.
39141         * lib/signal.in.h: Likewise.
39142
39143 2008-06-23  Eric Blake  <ebb9@byu.net>
39144
39145         Fix typo.
39146         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39147
39148         Avoid SA_ namespace.
39149         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39150         Reported by Ralf Wildenhues.
39151
39152         Avoid test failure due to SA_RESTORER.
39153         * tests/test-sigaction.c (SA_MASK): New macro.
39154         (main): Avoid failing due to extension flags being set.
39155         Reported by Jim Meyering.
39156
39157         Revert use of sig-handler.h in sigprocmask.c.
39158         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39159         it requires the existence of struct sigaction.
39160         * lib/sigprocmask.c (handler_t): Restore typedef.
39161         (rpl_signal, old_handlers): Use local type.
39162
39163 2008-06-22  Bruno Haible  <bruno@clisp.org>
39164
39165         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39166         conditionally.
39167         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39168
39169 2008-06-22  Bruno Haible  <bruno@clisp.org>
39170
39171         * doc/posix-functions/siginterrupt.texi: Move note.
39172
39173         * lib/signal.in.h (SA_RESTART): New macro.
39174         * lib/sigaction.c: Update comment.
39175
39176         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39177
39178         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39179         (gl_PREREQ_SIGPROCMASK): Invoke it.
39180         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39181
39182         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39183
39184         * lib/sigprocmask.c: Update a comment.
39185
39186 2008-06-21  Eric Blake  <ebb9@byu.net>
39187
39188         Use sigaction module rather than signal().
39189         * modules/c-stack (Depends-on): Add sigaction.
39190         * modules/fatal-signal (Depends-on): Likewise.
39191         * modules/nanosleep (Depends-on): Likewise.
39192         * modules/sigprocmask (Files): Add sig-handler.h.
39193         * modules/sigaction (Files): Likewise.
39194         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39195         Eggert.
39196         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39197         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39198         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39199         (init_fatal_signals): Likewise.
39200         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39201         (siginterrupt): Delete fallback.
39202         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39203         instead.
39204         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39205         siginterrupt.
39206
39207         New module sigaction, for mingw.
39208         * modules/sigaction: New module...
39209         * modules/sigaction-tests: ...and its test.
39210         * m4/sigaction.m4: New file.
39211         * lib/sigaction.c: Likewise.
39212         * tests/test-sigaction.c: Likewise.
39213         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39214         * modules/signal (Makefile.am): Likewise.
39215         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39216         needed.
39217         * doc/posix-headers/signal.texi (signal.h): Mention provided
39218         types.
39219         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39220         that sigaction is preferable.
39221         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39222         module.
39223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39224         sigaction.
39225
39226         Improve robustness of sigprocmask by overriding signal.
39227         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39228         is in use.
39229         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39230         (SIGKILL, SIGSTOP): Provide fallbacks.
39231         (rpl_signal): Implement.
39232         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39233         signal can be called inside handlers.
39234
39235         Fix nanosleep module on mingw.
39236         * modules/nanosleep (Depends-on): Add sys_select.
39237         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39238
39239         Fix licensing of sigprocmask.
39240         * modules/raise (License): Relicense as LGPL.
39241
39242 2008-06-21  Bruno Haible  <bruno@clisp.org>
39243
39244         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39245         result if it contains question marks.
39246         Reported by Michael Geng <linux@michaelgeng.de>.
39247
39248 2008-06-19  Bruno Haible  <bruno@clisp.org>
39249
39250         Fix CVS-ism.
39251         * doc/gnulib.texi: Include updated-stamp.texi.
39252         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39253         (updated-stamp.texi): New rule.
39254         (gnulib.info): Depend on it.
39255         * doc/.gitignore: Add updated-stamp.texi.
39256         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39257
39258 2008-06-19  Bruno Haible  <bruno@clisp.org>
39259
39260         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39261         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39262
39263 2008-06-19  Eric Blake  <ebb9@byu.net>
39264
39265         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39266         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39267         Reported by Stepan Kasal.
39268
39269 2008-06-18  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39272         Reported by Eric Blake.
39273
39274 2008-06-18  Eric Blake  <ebb9@byu.net>
39275
39276         Work around cygwin 1.5.25 strsignal bug.
39277         * tests/test-strsignal.c: Allow for const char *.
39278         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39279
39280 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39281
39282         * users.txt: Update URL to article and add author/date
39283         information.
39284
39285 2008-06-17  Bruno Haible  <bruno@clisp.org>
39286
39287         New macro gl_DISABLE_THREADS.
39288         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39289         if the user did not pass --enable-threads or --disable-threads option.
39290         (gl_DISABLE_THREADS): New macro.
39291         Reported by Eric Blake <ebb9@byu.net>.
39292
39293 2008-06-17  Bruno Haible  <bruno@clisp.org>
39294
39295         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39296         when the macro ignores it.
39297         Based on a patch by Eric Blake <ebb9@byu.net>.
39298
39299 2008-06-17  Bruno Haible  <bruno@clisp.org>
39300
39301         * modules/tls (License): Change to LGPLv2+.
39302         Reported by Eric Blake.
39303
39304 2008-06-17  Eric Blake  <ebb9@byu.net>
39305
39306         Simplify c-stack prerequisites.
39307         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39309         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39310         check.
39311         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39312         <sys/resource.h>.
39313
39314         Move c-stack test into testsuite.
39315         * modules/c-stack-tests: New file.
39316         * lib/c-stack.c [DEBUG]: Move test program...
39317         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39318         fail test if sigaltstack is lacking.
39319         * tests/test-c-stack.sh: New driver file.
39320
39321 2008-06-16  Eric Blake  <ebb9@byu.net>
39322
39323         Use raise module consistently.
39324         * modules/fatal-signal (Depends-on): Add raise.
39325         * modules/sigprocmask (Depends-on): Likewise.
39326         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39327         * lib/sigprocmask.c (sigprocmask): Likewise.
39328         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39329         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39330
39331         Fix compliance bug in sigpending.
39332         * lib/sigprocmask.c (sigpending): Return pending array via
39333         parameter, not return value.
39334
39335 2008-06-14  Eric Blake  <ebb9@byu.net>
39336
39337         Improve obstack-printf test code.
39338         * tests/test-obstack-printf.c (test_function): Fix comment, and
39339         simplify usage of obstack_* in macros.  Add a test for coverage.
39340         Reported by Bruno Haible.
39341
39342 2008-06-14  Bruno Haible  <bruno@clisp.org>
39343
39344         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39345         array size as a constant, not as a const variable.
39346         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39347         AC_USE_SYSTEM_EXTENSIONS.
39348         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39349         Test whether the obstack_printf function actually exists.
39350         * modules/obstack-printf (Depends-on): Add extensions.
39351         (Include): Remove obstack.h.
39352         * modules/obstack-printf-posix (Depends-on): Add extensions.
39353         (Include): Remove obstack.h.
39354
39355 2008-06-13  Eric Blake  <ebb9@byu.net>
39356
39357         Add obstack-printf and obstack-printf-posix modules.
39358         * modules/obstack-printf: New file.
39359         * modules/obstack-printf-posix: Likewise.
39360         * MODULES.html.sh (Misc): Mention them.
39361         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39362         Likewise.
39363         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39364         Likewise.
39365         * modules/stdio (Makefile.am): Accomodate new modules.
39366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39367         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39368         Declare.
39369         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39370         functions.
39371         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39372         (gl_REPLACE_OBSTACK_PRINTF): New macros
39373         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39374         * tests/test-obstack-printf.c: New file.
39375         * modules/obstack-printf-tests: Likewise.
39376         * modules/obstack-printf-posix-tests: Likewise.
39377
39378 2008-06-11  Bruno Haible  <bruno@clisp.org>
39379
39380         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39381         * lib/open.c: Include errno.h.
39382         (open): Fail when attempting to write to a file that has a trailing
39383         slash.
39384         * tests/test-open.c (main): Test against trailing slash bug.
39385         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39386
39387 2008-06-10  Bruno Haible  <bruno@clisp.org>
39388
39389         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39390         for $? to work inside the trap command, with various /bin/sh-s.
39391         * tests/test-vc-list-files-cvs.sh: Likewise.
39392
39393 2008-06-10  Bruno Haible  <bruno@clisp.org>
39394
39395         * lib/acl-internal.h: Don't include gettext.h here.
39396         * lib/set-mode-acl.c: Include gettext.h here.
39397         * lib/copy-acl.c: Likewise.
39398
39399 2008-06-10  Bruno Haible  <bruno@clisp.org>
39400
39401         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39402         * lib/wait-process.c (wait_subprocess): Likewise.
39403         * lib/execute.h (execute): Add termsigp argument.
39404         * lib/execute.c (execute): Likewise.
39405         * lib/csharpcomp.c (compile_csharp_using_pnet,
39406         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39407         * lib/csharpexec.c (execute_csharp_using_pnet,
39408         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39409         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39410         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39411         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39412         is_jikes_present): Update.
39413         * lib/javaexec.c (execute_java_class): Update.
39414         * lib/javaversion.c (execute_and_read_line): Update.
39415         * NEWS: Document the changes.
39416         Reported by Eric Blake.
39417
39418 2008-06-10  Eric Blake  <ebb9@byu.net>
39419
39420         Add missing include.
39421         * tests/test-strstr.c (includes): Add <signal.h>.
39422         * tests/test-strcasestr.c (includes): Likewise.
39423         * tests/test-memmem.c (includes): Likewise.
39424
39425 2008-06-10  Bruno Haible  <bruno@clisp.org>
39426
39427         * lib/wait-process.c (wait_subprocess): Add an assertion.
39428
39429 2008-06-10  Bruno Haible  <bruno@clisp.org>
39430
39431         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39432
39433 2008-06-10  Bruno Haible  <bruno@clisp.org>
39434
39435         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39436         using alarm().
39437         * tests/test-strcasestr.c (main): Likewise.
39438         * tests/test-strstr.c (main): Likewise.
39439
39440 2008-06-09  Bruno Haible  <bruno@clisp.org>
39441
39442         Work around the Solaris 10 ACE ACLs ABI change.
39443         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39444         declare if ACL_NO_TRIVIAL is present.
39445         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39446         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39447         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39448         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39449         define if ACL_NO_TRIVIAL is present.
39450         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39451         and use the current ABI.
39452         (file_has_acl): Use same #if condition as elsewhere.
39453         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39454         in use, and use the current ABI.
39455         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39456         Reported by Jim Meyering.
39457
39458 2008-06-09  Eric Blake  <ebb9@byu.net>
39459
39460         Work around environments that (stupidly) ignore SIGALRM.
39461         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39462         before using alarm().
39463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39464         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39465         Reported by Ian Beckwith <ianb@erislabs.net>.
39466
39467         Produce autobuild blurb earlier in log.
39468         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39469
39470 2008-06-09  Jim Meyering  <meyering@redhat.com>
39471         and OndÅ™ej Vašík  <ovasik@redhat.com>
39472
39473         utimens.c: correct kernel bug work-around
39474         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39475         failure, not success, and the kernel bug we're trying to work
39476         around affects not just the utimensat call, but also the fallback
39477         futimens call.
39478         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39479         not success.
39480         [HAVE_FUTIMENS]: Use the same work-around, here.
39481
39482 2008-06-09  Jim Meyering  <meyering@redhat.com>
39483
39484         add more guards around definition of ACE_-related code
39485         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39486         ALLOW and ACE_OWNER are also defined.
39487
39488 2008-06-08  Bruno Haible  <bruno@clisp.org>
39489
39490         * lib/acl-internal.h: Add me as co-author.
39491         * lib/file-has-acl.c: Likewise.
39492         * lib/set-mode-acl.c: Likewise.
39493         * lib/copy-acl.c: Likewise.
39494
39495 2008-06-08  Bruno Haible  <bruno@clisp.org>
39496
39497         Add support for AIX ACLs.
39498         * lib/acl-internal.h (acl_nontrivial): New declaration.
39499         * lib/file-has-acl.c (acl_nontrivial): New function.
39500         (file_has_acl): Add implementation using AIX 4 ACL API.
39501         * lib/set-mode-acl.c (qset_acl): Likewise.
39502         * lib/copy-acl.c (qcopy_acl): Likewise.
39503
39504 2008-06-08  Bruno Haible  <bruno@clisp.org>
39505
39506         Add support for HP-UX ACLs.
39507         * lib/acl-internal.h (acl_nontrivial): New declaration.
39508         * lib/file-has-acl.c (acl_nontrivial): New function.
39509         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39510         * lib/set-mode-acl.c (qset_acl): Likewise.
39511         * lib/copy-acl.c (qcopy_acl): Likewise.
39512
39513 2008-06-08  Bruno Haible  <bruno@clisp.org>
39514
39515         Add support for Cygwin ACLs.
39516         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39517         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39518         the chmod_or_fchmod call.
39519         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39520
39521 2008-06-08  Bruno Haible  <bruno@clisp.org>
39522
39523         Fix bug with setuid modes in Solaris 10+ code.
39524         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39525         succeeded, when the mode contains some special bits.
39526
39527 2008-06-08  Bruno Haible  <bruno@clisp.org>
39528
39529         Add support for Solaris 7..10 ACLs.
39530         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39531         declarations.
39532         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39533         functions.
39534         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39535         * lib/set-mode-acl.c (qset_acl): Likewise.
39536         * lib/copy-acl.c (qcopy_acl): Likewise.
39537
39538 2008-06-08  Bruno Haible  <bruno@clisp.org>
39539
39540         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39541         declaration.
39542         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39543         (acl_access_nontrivial): Remove MacOS X case.
39544         (file_has_acl): Use acl_extended_nontrivial.
39545         * lib/copy-acl.c (qcopy_acl): Likewise.
39546
39547 2008-06-08  Bruno Haible  <bruno@clisp.org>
39548
39549         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39550
39551 2008-06-08  Jim Meyering  <meyering@redhat.com>
39552
39553         * modules/acl (Maintainer): Add Bruno Haible.
39554
39555 2008-06-07  Bruno Haible  <bruno@clisp.org>
39556
39557         Improve support for Tru64 ACLs.
39558         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39559         ACL on OSF/1.
39560
39561 2008-06-07  Bruno Haible  <bruno@clisp.org>
39562
39563         Add support for MacOS X ACLs.
39564         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39565         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39566         * lib/set-mode-acl.c (qset_acl): Likewise.
39567         * lib/copy-acl.c (qcopy_acl): Likewise.
39568
39569 2008-06-07  Bruno Haible  <bruno@clisp.org>
39570
39571         Fix memory leak introduced on 2008-05-22.
39572         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39573         use.
39574
39575 2008-06-07  Bruno Haible  <bruno@clisp.org>
39576
39577         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39578         to construct an empty ACL.
39579
39580 2008-06-07  Bruno Haible  <bruno@clisp.org>
39581
39582         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39583         precisely.
39584         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39585
39586 2008-06-07  Bruno Haible  <bruno@clisp.org>
39587
39588         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39589         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39590
39591 2008-06-07  Bruno Haible  <bruno@clisp.org>
39592
39593         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39594         regardless of POSIX.
39595         * doc/posix-functions/_longjmp.texi: Likewise.
39596         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39597         SystemV platform in this case.
39598
39599 2008-06-06  Eric Blake  <ebb9@byu.net>
39600
39601         Document abort() bugs.
39602         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39603
39604         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39605         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39606         sigsetjmp.
39607         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39608         siglongjmp, but only as a macro.
39609         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39610         is obsolete.
39611         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39612
39613         Tweak documentation to cover cygwin argz bugs.
39614         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39615         argz bug fix; no code change needed since no cygwin releases
39616         occurred between the last fix and the bug being tested.
39617         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39618         module and recently fixed cygwin bugs.
39619         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39620         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39621         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39622         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39623         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39624         Likewise.
39625         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39626         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39627         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39628         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39629         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39630         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39631         Likewise.
39632
39633         Avoid gcc warning on cygwin.
39634         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39635         !ACL_NO_TRIVIAL]: Avoid unused variable.
39636
39637 2008-06-05  Eric Blake  <ebb9@byu.net>
39638
39639         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39640         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39641         git-version-gen fails to come up with a version.
39642         Reported by Simon Josefsson.
39643
39644 2008-06-05  Jim Meyering  <meyering@redhat.com>
39645             Paul Eggert  <eggert@cs.ucla.edu>
39646
39647         utimens.c: work around a probable Linux kernel bug
39648         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39649         appears to be a kernel bug that causes utimensat to return 280
39650         instead of 0, indicating success.
39651
39652 2008-06-04  Bruno Haible  <bruno@clisp.org>
39653
39654         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39655         2008-06-01 commit.
39656
39657 2008-06-04  Bruno Haible  <bruno@clisp.org>
39658
39659         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39660         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39661         (file_has_acl): Use it. Save errno afterwards.
39662         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39663
39664 2008-06-03  Bruno Haible  <bruno@clisp.org>
39665
39666         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39667         draft code. Simplify #ifs.
39668         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39669         Put Solaris code after POSIX-draft code. Fix comments regarding
39670         Solaris 10, HP-UX. Mention Cygwin.
39671         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39672
39673 2008-06-03  Eric Blake  <ebb9@byu.net>
39674
39675         Provide fallback for older kernels.
39676         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39677         Provide runtime fallback if kernel lacks support.
39678         Reported by Mike Frysinger.
39679
39680 2008-06-02  Bruno Haible  <bruno@clisp.org>
39681
39682         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39683         it exists.
39684
39685 2008-06-02  Bruno Haible  <bruno@clisp.org>
39686
39687         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39688         * lib/copy-acl.c (qcopy_acl): Update comment.
39689
39690 2008-06-02  Bruno Haible  <bruno@clisp.org>
39691
39692         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39693         like ACL APIs.
39694
39695 2008-06-02  Bruno Haible  <bruno@clisp.org>
39696
39697         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39698         * tests/test-set-mode-acl.sh: Likewise.
39699         * tests/test-copy-acl.sh: Likewise.
39700         * tests/test-copy-file.sh: Likewise.
39701
39702 2008-06-02  Bruno Haible  <bruno@clisp.org>
39703
39704         * tests/test-file-has-acl.sh: Remove unused code.
39705
39706 2008-06-01  Bruno Haible  <bruno@clisp.org>
39707
39708         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39709         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39710         messages.
39711         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39712
39713 2008-06-01  Bruno Haible  <bruno@clisp.org>
39714
39715         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39716         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39717         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39718         APIs.
39719         * modules/acl-tests (configure.ac): Remove tests now contained in
39720         m4/acl.m4.
39721
39722 2008-06-02  Jim Meyering  <meyering@redhat.com>
39723
39724         announce-gen: use a better key-server host name
39725         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39726         it may be more consistently reliable.  Suggested by Werner Koch
39727         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39728
39729 2008-06-01  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39732         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39733
39734 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39735
39736         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39737
39738 2008-06-01  Bruno Haible  <bruno@clisp.org>
39739
39740         New ACL tests.
39741         * tests/test-file-has-acl.sh: New file.
39742         * tests/test-file-has-acl.c: New file.
39743         * tests/test-set-mode-acl.sh: New file.
39744         * tests/test-set-mode-acl.c: New file.
39745         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39746         * tests/test-copy-acl.c: New file.
39747         * modules/acl-tests: New file, based on modules/copy-file-tests.
39748         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39749         (Depends-on): Add acl-tests.
39750         (configure.ac): Remove checks.
39751         (Makefile.am): Don't create test-sameacls program here any more.
39752
39753 2008-06-01  Bruno Haible  <bruno@clisp.org>
39754
39755         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39756         * tests/test-sameacls.c: Include progname.h.
39757         (main): Invoke set_program_name. Portability fixes for MacOS X,
39758         Solaris, HP-UX.
39759
39760 2008-06-01  Bruno Haible  <bruno@clisp.org>
39761
39762         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39763         function.
39764         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39765
39766 2008-06-01  Bruno Haible  <bruno@clisp.org>
39767
39768         * modules/rpmatch (Depends-on): Add strdup.
39769
39770 2008-06-01  Bruno Haible  <bruno@clisp.org>
39771
39772         * lib/pipe.c: Include unistd-safer.h.
39773         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39774         * modules/pipe (Depends-on): Add unistd-safer.
39775
39776 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39777
39778         * modules/autobuild (configure.ac): Call AB_INIT.
39779
39780 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39781
39782         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39783         Suggested by Bruno Haible <bruno@clisp.org>.
39784
39785 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39786
39787         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39788         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39789         <bruno@clisp.org>.
39790
39791 2008-05-29  Eric Blake  <ebb9@byu.net>
39792
39793         Prefer new POSIX 200x interfaces over futimesat.
39794         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39795         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39796         when available.
39797         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39798
39799 2008-05-28  Bruno Haible  <bruno@clisp.org>
39800
39801         * modules/stpcpy (License): Change to LGPLv2+.
39802         Requested by David Lutterkort <dlutter@redhat.com>.
39803
39804 2008-05-27  Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39807         current mingw.
39808         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39809
39810 2008-05-27  Bruno Haible  <bruno@clisp.org>
39811
39812         * modules/iconv_open (Link): New section, from module 'iconv'.
39813         * modules/striconv (Link): Likewise.
39814         * modules/striconveh (Link): Likewise.
39815         * modules/xstriconv (Link): Likewise.
39816         * modules/unicodeio (Link): Likewise.
39817         * modules/propername (Link): Likewise.
39818         Reported by Jim Meyering.
39819
39820 2008-05-26  Jim Meyering  <meyering@redhat.com>
39821
39822         sha256: do not artificially restrict buffer length to be < 2^32
39823         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39824         uint32_t to size_t.
39825         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39826         to match.
39827
39828         avoid unaligned access errors, e.g., on sparc
39829         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39830         direct access through a possibly-unaligned uint64* pointer.
39831         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39832         direct access through a possibly-unaligned uint32* pointer.
39833         Prompted by this patch from Tom "spot" Callaway:
39834         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39835
39836         sha512.c: fix typo in comment
39837         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39838
39839 2008-05-25  Bruno Haible  <bruno@clisp.org>
39840
39841         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39842         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39843         (Makefile.am): Update lib_SOURCES.
39844
39845 2008-05-25  Bruno Haible  <bruno@clisp.org>
39846
39847         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39848
39849 2008-05-25  Jim Meyering  <meyering@redhat.com>
39850
39851         useless-if-before-free: freed expr may have white-space differences
39852         * build-aux/useless-if-before-free: Recognize cases in which the
39853         freed expression differs from the tested one in embedded white
39854         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39855         $1 was used, so we can't make any regexp shy.  Improved tests now
39856         detect this.
39857
39858         useless-if-before-free: accept white space in the expression.
39859         * build-aux/useless-if-before-free: For now, any white space
39860         in the expression must be identical in the free argument.
39861
39862         useless-if-before-free: efficiency tweak
39863         * build-aux/useless-if-before-free: Make the expression-matching
39864         regexp "shy".
39865         Make the *outer* regexp shy, not the expr-matching one.
39866
39867         update code-in-comment to accept cast of free arg
39868         * build-aux/useless-if-before-free: Update regexp.
39869
39870 2008-05-25  Bruno Haible  <bruno@clisp.org>
39871
39872         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39873         * modules/copy-file-tests (Files, Makefile.am): Update.
39874         * tests/test-copy-file.c (func_test_copy): Update.
39875
39876 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39877
39878         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39879
39880 2008-05-23  Bruno Haible  <bruno@clisp.org>
39881
39882         Improve support for ACLs on OSF/1.
39883         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39884         Remove fallback for unknown flavors of ACLs.
39885
39886 2008-05-22  Bruno Haible  <bruno@clisp.org>
39887
39888         Add support for ACLs on OSF/1.
39889         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39890         replacements.
39891         (acl_free_text): New macro fallback.
39892         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39893         acl_free.
39894         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39895         acl_free_text function. Require AC_C_INLINE.
39896
39897 2008-05-22  Bruno Haible  <bruno@clisp.org>
39898
39899         Make copy_acl work on MacOS X 10.5.
39900         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39901         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39902         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39903         If MODE_INSIDE_ACL, don't assume that every system has the same text
39904         representation for ACLs as FreeBSD.
39905         * lib/copy-acl.c (copy_acl): Add support for platforms with
39906         !MODE_INSIDE_ACL.
39907         * lib/file-has-acl.c (file_has_acl): Likewise.
39908         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39909         FreeBSD, MacOS X, or IRIX, respectively.
39910
39911 2008-05-22  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/acl.h: Don't include <sys/acl.h>.
39914         (GETACLCNT): Move fallback to lib/acl-internal.h.
39915         * lib/acl-internal.h: Include <sys/acl.h> here.
39916         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39917
39918 2008-05-22  Bruno Haible  <bruno@clisp.org>
39919
39920         Split off copy_acl function to separate file.
39921         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39922         * lib/acl.c (copy_acl): Moved function to separate file.
39923         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39924         * modules/acl (Files): Add lib/copy-acl.c.
39925         (Makefiles.am): Augment lib_SOURCES.
39926
39927 2008-05-22  Bruno Haible  <bruno@clisp.org>
39928
39929         * modules/copy-file-tests: New file.
39930         * tests/test-copy-file.sh: New file.
39931         * tests/test-copy-file.c: New file.
39932         * tests/test-copy-file-sameacls.c: New file.
39933
39934 2008-05-22  Eric Blake  <ebb9@byu.net>
39935
39936         Avoid gcc warning.
39937         * tests/test-memcmp.c (main): Pass NULL indirectly.
39938
39939 2008-05-21  Bruno Haible  <bruno@clisp.org>
39940
39941         Add reference doc about ACLs.
39942         * doc/acl-resources.txt: New file.
39943         * doc/acl-cygwin.txt: New file.
39944
39945 2008-05-21  Bruno Haible  <bruno@clisp.org>
39946
39947         Avoid one more warning from gcc.
39948         * lib/vasnprintf.c (IF_LINT): Update comments.
39949         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39950
39951 2008-05-21  Jim Meyering  <meyering@redhat.com>
39952
39953         avoid a warning from gcc
39954         * lib/vasnprintf.c (IF_LINT): Define.
39955         (scale10_round_decimal_long_double):
39956         Use it to avoid a "may be used uninitialized" warning.
39957         (scale10_round_decimal_double): Likewise.
39958
39959 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39960
39961         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39962         declared.
39963
39964 2008-05-20  Bruno Haible  <bruno@clisp.org>
39965
39966         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39967         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39968
39969 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39970
39971         * modules/memcmp-tests: New file.
39972         * tests/test-memcmp.c: New file.
39973
39974 2008-05-19  Bruno Haible  <bruno@clisp.org>
39975
39976         * modules/propername (Notice, configure.ac): Put quoted "..." into
39977         --keyword option.
39978         * lib/propername.h: Update comments accordingly.
39979         Reported by Eric Blake.
39980
39981 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39982
39983         * modules/getpass-gnu (Depends-on): Add fseeko.
39984
39985 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39986
39987         * modules/base64-tests: New file.
39988
39989 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39990
39991         * lib/base64.c (base64_decode_ctx): If a decode context structure
39992         was passed in use it to ignore newlines.  If a context structure
39993         was _not_ passed in, continue to treat newlines as garbage (this
39994         is the historical behavior).  Formerly base64_decode.
39995         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39996         takes a decode context structure.
39997         * lib/base64.h (base64_decode): Macro for four-argument calls.
39998         (base64_decode_alloc): Likewise.
39999         * lib/base64.c (base64_decode_ctx): If a decode context structure
40000         was passed in use it to ignore newlines.  If a context structure
40001         was _not_ passed in, continue to treat newlines as garbage (this
40002         is the historical behavior).  Formerly base64_decode.
40003         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40004         takes a decode context structure.
40005         * lib/base64.h (base64_decode): Macro for four-argument calls.
40006         (base64_decode_alloc): Likewise.
40007
40008 2008-05-19  Jim Meyering  <meyering@redhat.com>
40009
40010         avoid a warning from gcc
40011         * lib/trim.c (IF_LINT): Define.
40012         (trim2): Use it to avoid a "may be used uninitialized" warning.
40013
40014         Fix doc typo.
40015         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40016
40017 2008-05-19  Bruno Haible  <bruno@clisp.org>
40018
40019         * doc/glibc-functions/getpass.texi: Document limits of other
40020         implementations.
40021
40022 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40023             Bruno Haible <bruno@clisp.org>
40024
40025         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40026
40027 2008-05-18  Bruno Haible  <bruno@clisp.org>
40028
40029         * modules/propername: New file, from GNU gettext.
40030         * lib/propername.h: New file, from GNU gettext.
40031         * lib/propername.c: New file, from GNU gettext.
40032         * MODULES.html.sh (Internationalization functions): Add propername.
40033
40034 2008-05-16  Jim Meyering  <meyering@redhat.com>
40035             Bruno Haible  <bruno@clisp.org>
40036
40037         Avoid some warnings from "gcc -Wshadow".
40038         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40039
40040 2008-05-15  Eric Blake  <ebb9@byu.net>
40041
40042         Extend previous patch to cygwin 1.7.0.
40043         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40044         fast implementation in cygwin >= 1.7.0.
40045         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40047
40048 2008-05-15  Bruno Haible  <bruno@clisp.org>
40049
40050         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40051         implementation in glibc >= 2.9.
40052         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40054
40055 2008-05-15  Bruno Haible  <bruno@clisp.org>
40056
40057         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40058         (Unicode string functions): Add unilbrk/*.
40059         Reported by Karl Berry.
40060
40061 2008-05-15  Eric Blake  <ebb9@byu.net>
40062
40063         Fix violation of <stdbool.h> replacement in regex.
40064         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40065         * lib/regexec.c (re_search_internal): Likewise.
40066         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40067
40068 2008-05-15  Jim Meyering  <meyering@redhat.com>
40069
40070         avoid distracting test output when git or cvs is not found
40071         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40072         * tests/test-vc-list-files-git.sh: Likewise.
40073
40074 2008-05-15  Eric Blake  <ebb9@byu.net>
40075
40076         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40077         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40078         glibc version.
40079         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40080         * doc/posix-functions/strstr.texi (strstr): Likewise.
40081         * lib/str-two-way.h (MAX): Sychronize with glibc.
40082
40083 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40084
40085         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40086         opr.ctx_type.
40087         (calc_first): Initialize constraint field.
40088         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40089         Fix grammar.
40090         (duplicate_node): Merge constraint field for all node types.
40091         (calc_eclosure_iter): Look at constraint field for all node types.
40092         * lib/regex_internal.c (create_cd_newstate): Don't look at
40093         opr.ctx_type.
40094
40095 2008-05-14  Bruno Haible  <bruno@clisp.org>
40096
40097         Help GCC to do better code generation.
40098         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40099         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40100         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40101         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40102         Declare with attribute 'malloc' if supported.
40103
40104 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40105
40106         use "echo STR|wc -c" rather than unportable "expr length STR"
40107         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40108         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40109
40110 2008-05-14  Jim Meyering  <meyering@redhat.com>
40111
40112         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40113         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40114         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40115         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40116         via Collin Lasse.
40117
40118 2008-05-14  Eric Blake  <ebb9@byu.net>
40119
40120         Avoid quadratic growth in gl_LIBSOURCES.
40121         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40122         Suggested by Bruno Haible.
40123
40124         Test xmemdup0.
40125         * modules/xmemdup0-tests: New file.
40126         * tests/test-xmemdup0.c: Likewise.
40127
40128 2008-05-13  Eric Blake  <ebb9@byu.net>
40129
40130         Split xmemdup0 into its own module.
40131         * modules/xmemdup0: New file.
40132         * lib/xmemdup0.h: Likewise.
40133         * lib/xmemdup0.c: Likewise.
40134         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40135         * lib/xalloc.h (xmemdup0): Remove.
40136         * lib/xmalloc.c (xmemdup0): Likewise.
40137
40138 2008-05-13  Eric Blake  <ebb9@byu.net>
40139             Bruno Haible  <bruno@clisp.org>
40140
40141         Reduce number of forks required during autoconf.
40142         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40143         and gl_LIBSOURCES_DIR.
40144         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40145         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40146         m4_syscmd per file.
40147         <m4_foreach_w>: Move...
40148         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40149
40150 2008-05-13  Eric Blake  <ebb9@byu.net>
40151
40152         * gnulib-tool: Fix various comment typos.
40153
40154 2008-05-12  Bruno Haible  <bruno@clisp.org>
40155
40156         Tailor the linebreaking algorithm.
40157         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40158
40159 2008-05-12  Bruno Haible  <bruno@clisp.org>
40160
40161         Update to Unicode 5.0.0.
40162         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40163         LBP_JV, LBP_JT. Redistribute values.
40164         (unilbrk_table): Change size.
40165         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40166         Unicode TR#14 rev. 22.
40167         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40168         LBP_JV, LBP_JT. Redistribute values.
40169         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40170         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40171         Update.
40172         * lib/unilbrk/lbrkprop1.h: Regenerated.
40173         * lib/unilbrk/lbrkprop2.h: Regenerated.
40174         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40175         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40176         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40177         Likewise.
40178         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40179         Likewise.
40180         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40181         result.
40182         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40183         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40184         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40185         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40186         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40187         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40188
40189 2008-05-11  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40192
40193 2008-05-11  Bruno Haible  <bruno@clisp.org>
40194
40195         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40196         * modules/unilbrk/gen-lbrk: New file.
40197
40198 2008-05-11  Bruno Haible  <bruno@clisp.org>
40199
40200         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40201         * m4/sha512.m4 (gl_SHA512): Likewise.
40202
40203 2008-05-11  Jim Meyering  <meyering@redhat.com>
40204
40205         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40206         * modules/crypto/sha256: New file.
40207         * modules/crypto/sha512: Likewise.
40208         * lib/sha256.c: Likewise.
40209         * lib/sha256.h: Likewise.
40210         * lib/sha512.c: Likewise.
40211         * lib/sha512.h: Likewise.
40212         * lib/u64.h: Likewise.
40213         * m4/sha256.m4: Likewise.
40214         * m4/sha512.m4: Likewise.
40215         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40216
40217 2008-05-10  Bruno Haible  <bruno@clisp.org>
40218
40219         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40220         (Input/Output <stdio.h>): Add xprintf.
40221         (Signal handling <signal.h>): Add strsignal.
40222         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40223         (Core language properties): Add func.
40224         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40225         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40226         strings.
40227         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40228         (Input/output): New section.
40229         (File system functions): Add openat-die, stat-macros.
40230         (Networking functions): Add sockets.
40231         (Unicode string functions): Add unictype/*.
40232         (Support for building libraries and executables): Add gperf.
40233         (Support for building documentation): Add agpl-3.0.
40234         (Misc): Add nocrash.
40235
40236 2008-05-10  Bruno Haible  <bruno@clisp.org>
40237
40238         * modules/unictype/gen-ctype: New file.
40239
40240 2008-05-10  Jim Meyering  <meyering@redhat.com>
40241
40242         Make chdir-safer.c more efficient on a system with no symlinks.
40243         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40244         also if ELOOP is zero.  Suggested by Bruno Haible.
40245
40246         Make chdir-safer.c slightly safer.
40247         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40248         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40249
40250         Avoid compile failure on systems without ELOOP (like mingw).
40251         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40252         Reported by Bruno Haible.
40253
40254 2008-05-10  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40257         (is_utf8_encoding): Use a case-insensitive comparison.
40258         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40259         streq.
40260
40261 2008-05-10  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40264         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40265         * lib/unilbrk/ulc-common.h (iconv_string_length,
40266         iconv_string_keeping_offsets): Remove declarations.
40267         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40268         Don't include <iconv.h>, streq.h, xsize.h.
40269         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40270         conversion.
40271         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40272         <iconv.h>, streq.h, xsize.h.
40273         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40274         conversion.
40275         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40276         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40277         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40278         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40279
40280 2008-05-10  Bruno Haible  <bruno@clisp.org>
40281
40282         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40283         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40284
40285         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40286         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40287
40288         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40289         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40290
40291         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40292         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40293
40294         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40295         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40296
40297         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40298         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40299
40300         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40301         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40302
40303         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40304         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40305
40306 2008-05-10  Bruno Haible  <bruno@clisp.org>
40307
40308         Split up 'linebreak' module.
40309         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40310         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40311         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40312         modifications.
40313         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40314         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40315         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40316         lib/linebreak.c.
40317         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40318         lib/linebreak.c.
40319         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40320         lib/linebreak.c.
40321         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40322         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40323         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40324         lib/linebreak.c.
40325         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40326         lib/linebreak.c.
40327         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40328         lib/linebreak.c.
40329         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40330         lib/linebreak.c.
40331         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40332         lib/linebreak.c.
40333         * modules/unilbrk/base: New file.
40334         * modules/unilbrk/tables: New file.
40335         * modules/unilbrk/u8-possible-linebreaks: New file.
40336         * modules/unilbrk/u16-possible-linebreaks: New file.
40337         * modules/unilbrk/u32-possible-linebreaks: New file.
40338         * modules/unilbrk/ulc-common: New file.
40339         * modules/unilbrk/ulc-possible-linebreaks: New file.
40340         * modules/unilbrk/u8-width-linebreaks: New file.
40341         * modules/unilbrk/u16-width-linebreaks: New file.
40342         * modules/unilbrk/u32-width-linebreaks: New file.
40343         * modules/unilbrk/ulc-width-linebreaks: New file.
40344         * lib/linebreak.h: Remove file.
40345         * lib/linebreak.c: Remove file.
40346         * m4/linebreak.m4: Remove file.
40347         * modules/linebreak: Remove file.
40348         * NEWS: Mention the changes.
40349
40350 2008-05-09  Eric Blake  <ebb9@byu.net>
40351
40352         Add xmemdup0.
40353         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40354         implementation.
40355         * lib/xmalloc.c (xmemdup0): New C implementation.
40356
40357 2008-05-08  Bruno Haible  <bruno@clisp.org>
40358
40359         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40360
40361 2008-05-07  Eric Blake  <ebb9@byu.net>
40362
40363         Support cross-compilation of <wctype.h>.
40364         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40365         AC_CACHE_CHECK.
40366
40367 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40368
40369         * build-aux/vc-list-files: Add support for bzr.
40370
40371 2008-05-03  Jim Meyering  <meyering@redhat.com>
40372
40373         avoid failed assertion with tight malloc
40374         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40375
40376 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40377
40378         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40379         are needed from arpa/inet.h.
40380         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40381         Reported by Bruno Haible.
40382
40383 2008-05-02  Jim Meyering  <meyering@redhat.com>
40384
40385         avoid compilation error on FreeBSD 6
40386         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40387
40388 2008-05-01  Jim Meyering  <meyering@redhat.com>
40389
40390         useless-if-before-free: correct --help's exit status description
40391         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40392         for one or more matches, etc.  Reported by Bruno Haible.
40393
40394         vc-list-files: make the stand-alone gnulib test work
40395         * modules/vc-list-files-tests (configure.ac):
40396         Define and AC_SUBST abs_aux_dir.
40397         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40398         $(abs_top_srcdir) to each script and having each of them
40399         duplicate the work of setting PATH, set PATH here, using
40400         the new variable, abs_aux_dir instead.
40401         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40402         * tests/test-vc-list-files-git.sh: Likewise.
40403         Reported by Bruno Haible.
40404
40405 2008-05-01  Bruno Haible  <bruno@clisp.org>
40406
40407         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40408         reallocation. Rename 'done' to 'found_delimiter'.
40409
40410 2008-05-01  Jim Meyering  <meyering@redhat.com>
40411
40412         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40413         * build-aux/vc-list-files: Use `...`, not $(...).
40414
40415 2008-04-30  Jim Meyering  <meyering@redhat.com>
40416
40417         add tests for vc-list-files
40418         * modules/vc-list-files-tests: New module.
40419         * tests/test-vc-list-files-cvs.sh: New file.
40420         * tests/test-vc-list-files-git.sh: New file.
40421
40422         avoid a warning from gcc
40423         * lib/getndelim2.c (IF_LINT): Define.
40424         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40425
40426         vc-list-files: work properly with build-aux/cvsu, too
40427         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40428         to all cvs-based clauses.
40429
40430         vc-list-files: work properly in the CVS+awk case, too
40431         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40432
40433         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40434         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40435         take more than one file argument, so .  Add quotes, just in case $dir
40436         ever contains a shell meta-character.  Prompted by Soren Hansen in
40437         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40438
40439 2008-04-29  Eric Blake  <ebb9@byu.net>
40440
40441         Optimize getndelim2 to use block operations when possible.
40442         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40443         freadseek, and memchr2.
40444         * lib/getndelim2.c (getndelim2): Use them for block reads.
40445
40446 2008-04-29  Bruno Haible  <bruno@clisp.org>
40447
40448         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40449         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40450         * modules/inet_ntop (Depends-on): Add extensions.
40451         * modules/inet_pton (Depends-on): Likewise.
40452         Reported by Simon Josefsson.
40453
40454 2008-04-29  Jim Meyering  <meyering@redhat.com>
40455
40456         When the is more than one match in a block, match all of them.
40457         * build-aux/useless-if-before-free: Iterate through each block
40458         until there are no more matches.
40459
40460         Fix broken useless-if-before-free script.
40461         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40462         the expression to match cast of argument to free-like function.
40463
40464 2008-04-29  Eric Blake  <ebb9@byu.net>
40465
40466         Use new header.
40467         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40468
40469 2008-04-29  Jim Meyering  <meyering@redhat.com>
40470
40471         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40472         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40473         by gnulib to exist and to declare e.g., inet_ntop.
40474         Don't include "inet_ntop.h", now removed.
40475
40476         * m4/arpa_inet_h.m4: Remove trailing blanks.
40477
40478 2008-04-29  Eric Blake  <ebb9@byu.net>
40479
40480         Silence valgrind on safe reads beyond potential array bounds.
40481         * lib/rawmemchr.valgrind: New file.
40482         * lib/strchrnul.valgrind: Likewise.
40483         * modules/rawmemchr (Files): Distribute new file.
40484         * modules/strchrnul (Files): Likewise.
40485         Suggested by Bruno Haible.
40486
40487 2008-04-29  Bruno Haible  <bruno@clisp.org>
40488
40489         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40490         (inet_ntop, inet_pton): Change portability warning's wording.
40491         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40492         Invoke gl_CHECK_NEXT_HEADERS.
40493         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40494         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40495         set ARPA_INET_H.
40496         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40497         * modules/arpa_inet (Description): No longer only for systems that
40498         lack it.
40499         (Depends-on): Add include_next.
40500         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40501         HAVE_ARPA_INET_H.
40502
40503 2008-04-29  Jim Meyering  <meyering@redhat.com>
40504
40505         * modules/mkdir (License): Re-license as LGPLv2+.
40506
40507 2008-04-29  Bruno Haible  <bruno@clisp.org>
40508
40509         * modules/rawmemchr (Maintainer): Set to Eric.
40510         * modules/strchrnul (Maintainer): Likewise.
40511
40512 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40513
40514         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40515         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40516
40517         * modules/arpa_inet (arpa/inet.h): Use them.
40518
40519 2008-04-28  Eric Blake  <ebb9@byu.net>
40520
40521         Test getndelim2.
40522         * modules/getndelim2-tests: New file.
40523         * tests/test-getndelim2.c: Likewise.
40524         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40525         stream.
40526         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40527
40528         * MODULES.html.sh: Document new module.
40529
40530 2008-04-20  Bruno Haible  <bruno@clisp.org>
40531
40532         * lib/c-stack.c (die): Use raise.
40533         * modules/c-stack (Depends-on): Add raise.
40534
40535 2008-04-28  Bruno Haible  <bruno@clisp.org>
40536
40537         Expect rpmatch to be declared.
40538         * lib/yesno.c (rpmatch): Remove declaration.
40539
40540         Declare rpmatch.
40541         * lib/stdlib.in.h (rpmatch): New declaration.
40542         * lib/rpmatch.c: Include <stdlib.h> first.
40543         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40544         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40546         HAVE_RPMATCH.
40547         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40548         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40549         (Include): Set to <stdlib.h>.
40550         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40551         HAVE_RPMATCH.
40552         * NEWS: Document the change.
40553
40554 2008-04-28  Bruno Haible  <bruno@clisp.org>
40555
40556         Change rpmatch to use nl_langinfo when appropriate.
40557         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40558         (N_): New macro.
40559         (localized_pattern): New function/macro.
40560         (try): Remove match, nomatch arguments. Copy the pattern into safe
40561         memory before caching it.
40562         (rpmatch): Use localized_pattern. Add translator comments.
40563         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40564         Suggested by Eric Blake.
40565         * modules/rpmatch (Depends-on): Add stdbool.
40566
40567 2008-04-28  Eric Blake  <ebb9@byu.net>
40568
40569         Add rawmemchr module, matching glibc.
40570         * modules/string (Makefile.am): New indicator.
40571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40572         * lib/string.in.h (rawmemchr): Declare when appropriate.
40573         * modules/rawmemchr: New file.
40574         * m4/rawmemchr.m4: Likewise.
40575         * lib/rawmemchr.c: Likewise.
40576         * modules/rawmemchr-tests: Likewise.
40577         * tests/test-rawmemchr.c: Likewise.
40578         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40579         module.
40580         * modules/strchrnul (Depends-on): Add rawmemchr.
40581         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40582
40583         Whitespace cleanup.
40584         * tests/test-strchrnul.c: Reindent.
40585         * lib/strchrnul.c: Likewise.
40586
40587         Optimize and test strchrnul.
40588         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40589         * modules/strchrnul-tests: New file.
40590         * tests/test-strchrnul.c: Likewise.
40591
40592         Remove intprops dependency.
40593         * modules/memchr (Depends-on): Remove intprops.
40594         * modules/memrchr (Depends-on): Likewise.
40595         * modules/memchr2 (Depends-on): Likewise.
40596         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40597         * lib/memrchr.c (__memrchr): Likewise.
40598         * lib/memrchr2.c (memchr2): Likewise.
40599         Reported by Simon Josefsson.
40600
40601 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40602
40603         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40604         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40605
40606 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40607
40608         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40609
40610         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40611
40612         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40613
40614         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40615         declarations.
40616         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40617
40618         * m4/inet_pton.m4: Don't check for header files.
40619
40620         * m4/inet_ntop.m4: Don't check for header files.
40621
40622 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40623
40624         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40625         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40626         trigger for cygwin).
40627         Reported by Bruno Haible  <bruno@clisp.org>.
40628
40629 2008-04-28  Bruno Haible  <bruno@clisp.org>
40630
40631         * doc/posix-functions/strdup.texi: Mention mingw problem.
40632
40633 2008-04-27  Bruno Haible  <bruno@clisp.org>
40634
40635         * modules/stat-time-tests (Depends-on): Add sleep.
40636         * tests/test-stat-time.c (force_unlink): New function.
40637         (cleanup): Use it.
40638         (test_mtime): Remove the ctime related tests.
40639         (test_ctime): New function, containing the ctime related tests.
40640         (main): Call test_ctime, except on native Windows platforms.
40641
40642 2008-04-27  Bruno Haible  <bruno@clisp.org>
40643
40644         * lib/rpmatch.c (rpmatch): Add some comments.
40645         Reported by James Youngman <jay@gnu.org>.
40646
40647 2008-04-27  Bruno Haible  <bruno@clisp.org>
40648
40649         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40650         quiet NaNs.
40651
40652 2008-04-27  Bruno Haible  <bruno@clisp.org>
40653
40654         Make test-yesno.sh work on mingw.
40655         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40656         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40657         (main): Set stdin to binary mode.
40658         * modules/yesno-tests (Depends-on): Add binary-io.
40659
40660 2008-04-27  Bruno Haible  <bruno@clisp.org>
40661
40662         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40663         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40664         argument that lie outside the IEEE 854 domain.
40665         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40666         (gl_ISFINITE): Use it.
40667         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40668
40669 2008-04-27  Bruno Haible  <bruno@clisp.org>
40670
40671         Allow local renaming in config.h.
40672         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40673
40674 2008-04-27  Bruno Haible  <bruno@clisp.org>
40675
40676         * lib/memchr.c (__memchr): Change type of 'i'.
40677         * lib/memchr2.c (memchr2): Likewise.
40678
40679 2008-04-26  Eric Blake  <ebb9@byu.net>
40680         and Bruno Haible  <bruno@clisp.org>
40681
40682         Optimize and test memrchr.
40683         * modules/memrchr (Depends-on): Add intprops.
40684         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40685         * modules/memrchr-tests: New file.
40686         * tests/test-memrchr.c: New file.
40687
40688 2008-04-26  Bruno Haible  <bruno@clisp.org>
40689
40690         Add tentative support for DragonFly BSD.
40691         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40692         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40693         fp.
40694         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40695         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40696         * lib/fpurge.c (fpurge): Likewise.
40697         * lib/freadable.c (freaadable): Likewise.
40698         * lib/freadahead.c (freadahead): Likewise.
40699         * lib/freading.c (freading): Likewise.
40700         * lib/freadptr.c (freadptr): Likewise.
40701         * lib/freadseek.c (freadptrinc): Likewise.
40702         * lib/fseeko.c (fseeko): Likewise.
40703         * lib/fseterr.c (fseterr): Likewise.
40704         * lib/fwritable.c (fwritable): Likewise.
40705         * lib/fwriting.c (fwriting): Likewise.
40706
40707 2008-04-26  Bruno Haible  <bruno@clisp.org>
40708
40709         * lib/stdio-impl.h: New file.
40710         * lib/fbufmode.c: Include stdio-impl.h.
40711         (fbufmode): Use fp_, remove redundant #defines.
40712         * lib/fflush.c: Include stdio-impl.h.
40713         (clear_ungetc_buffer): Remove redundant #defines.
40714         * lib/fpurge.c: Include stdio-impl.h.
40715         (fpurge): Remove redundant #defines.
40716         * lib/freadable.c: Include stdio-impl.h.
40717         (freadable): Remove redundant #defines.
40718         * lib/freadahead.c: Include stdio-impl.h.
40719         (freadahead): Remove redundant #defines.
40720         * lib/freading.c: Include stdio-impl.h.
40721         (freading): Remove redundant #defines.
40722         * lib/freadptr.c: Include stdio-impl.h.
40723         (freadptr): Remove redundant #defines.
40724         * lib/freadseek.c: Include stdio-impl.h.
40725         (freadptrinc): Remove redundant #defines.
40726         * lib/fseeko.c: Include stdio-impl.h.
40727         (rpl_fseeko): Remove redundant #defines.
40728         * lib/fseterr.c: Include stdio-impl.h.
40729         (fseterr): Remove redundant #defines.
40730         * lib/fwritable.c: Include stdio-impl.h.
40731         (fwritable: Remove redundant #defines.
40732         * lib/fwriting.c: Include stdio-impl.h.
40733         (fwriting): Remove redundant #defines.
40734         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40735         * modules/fflush (Files): Likewise.
40736         * modules/fpurge (Files): Likewise.
40737         * modules/freadable (Files): Likewise.
40738         * modules/freadahead (Files): Likewise.
40739         * modules/freading (Files): Likewise.
40740         * modules/freadptr (Files): Likewise.
40741         * modules/freadseek (Files): Likewise.
40742         * modules/fseeko (Files): Likewise.
40743         * modules/fseterr (Files): Likewise.
40744         * modules/fwritable (Files): Likewise.
40745         * modules/fwriting (Files): Likewise.
40746
40747 2008-04-26  Bruno Haible  <bruno@clisp.org>
40748
40749         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40750         restore_seek_optimization, update_fpos_cache): New functions, extracted
40751         from rpl_fflush.
40752         (rpl_fflush): Use them.
40753         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40754         (gl_REPLACE_FFLUSH): Use it.
40755
40756 2008-04-26  Bruno Haible  <bruno@clisp.org>
40757
40758         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40759         on Solaris.
40760         * tests/test-xstrtoimax.sh: Likewise.
40761         * tests/test-xstrtoumax.sh: Likewise.
40762         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40763
40764 2008-04-26  Bruno Haible  <bruno@clisp.org>
40765
40766         * modules/memchr-tests: New file.
40767         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40768
40769 2008-04-26  Eric Blake  <ebb9@byu.net>
40770             Bruno Haible  <bruno@clisp.org>
40771
40772         * lib/memchr.c: Include intprops.h.
40773         (__memchr): Optimize parallel detection of matching bytes. Rename local
40774         variables. Add explanatory comments.
40775
40776 2008-04-26  Bruno Haible  <bruno@clisp.org>
40777
40778         Fix module 'memchr', broken since 2000-10-28.
40779         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40780
40781 2008-04-26  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40784         comments.
40785
40786 2008-04-25  Eric Blake  <ebb9@byu.net>
40787
40788         Use native fstatat on cygwin 1.7.0.
40789         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40790         first.
40791
40792 2008-04-23  Eric Blake  <ebb9@byu.net>
40793
40794         Improve memchr2 performance.
40795         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40796         NUL bytes.
40797         * modules/memchr2 (Depends-on): Use intprops.h.
40798
40799 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40800
40801         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40802         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40803         <blp@cs.stanford.edu>.
40804
40805 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40806
40807         * lib/arpa_inet.in.h: New file.
40808
40809         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40810         (Makefile.am): Sed in substitute header file.
40811
40812         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40813         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40814
40815         * modules/inet_ntop (configure.ac): Use
40816         gl_ARPA_INET_MODULE_INDICATOR.
40817
40818         * modules/inet_pton (configure.ac): Use
40819         gl_ARPA_INET_MODULE_INDICATOR.
40820
40821 2008-04-22  Jim Meyering  <meyering@redhat.com>
40822
40823         * modules/verify (License): Re-license as LGPLv2+.
40824
40825 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40826
40827         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40828         parameter to void* as per POSIX standard (MinGW uses char*).
40829
40830 2008-04-21  Bruno Haible  <bruno@clisp.org>
40831
40832         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40833         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40834         Define to replacements if REPLACE_ISWCNTRL is 1.
40835         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40836         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40837         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40838         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40839         what it fixes.
40840         * doc/posix-functions/iswalpha.texi: Likewise.
40841         * doc/posix-functions/iswblank.texi: Likewise.
40842         * doc/posix-functions/iswcntrl.texi: Likewise.
40843         * doc/posix-functions/iswdigit.texi: Likewise.
40844         * doc/posix-functions/iswgraph.texi: Likewise.
40845         * doc/posix-functions/iswlower.texi: Likewise.
40846         * doc/posix-functions/iswprint.texi: Likewise.
40847         * doc/posix-functions/iswpunct.texi: Likewise.
40848         * doc/posix-functions/iswspace.texi: Likewise.
40849         * doc/posix-functions/iswupper.texi: Likewise.
40850         * doc/posix-functions/iswxdigit.texi: Likewise.
40851         Reported by Alain Guibert.
40852
40853 2008-04-21  Bruno Haible  <bruno@clisp.org>
40854
40855         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40856         Patch by Alain Guibert.
40857
40858 2008-04-21  Bruno Haible  <bruno@clisp.org>
40859
40860         Fix test failures on mingw.
40861         * tests/test-xstrtol.c (print_no_progname): New function.
40862         (main): Install it in error_print_progname hook.
40863         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40864         * tests/test-xstrtoimax.sh: Likewise.
40865         * tests/test-xstrtoumax.sh: Likewise.
40866
40867 2008-04-21  Bruno Haible  <bruno@clisp.org>
40868
40869         Fix test failure on mingw.
40870         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40871
40872 2008-04-21  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40875         Actually assign a value.
40876
40877 2008-04-20  Bruno Haible  <bruno@clisp.org>
40878
40879         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40880         take 2.
40881         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40882         'canonicalize-lgpl' module is also used.
40883         * lib/canonicalize-lgpl.c: Undo last change.
40884         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40885
40886 2008-04-20  Bruno Haible  <bruno@clisp.org>
40887
40888         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40889         config.h. Provide _mkdir based fallback for mingw.
40890         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40891         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40892         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40893         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40894         rather than defining mkdir in config.h.
40895         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40896         (gl_SYS_STAT_H_DEFAULTS): New macro.
40897         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40898         HAVE_IO_H any more.
40899         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40900         HAVE_DECL_MKDIR and HAVE_IO_H.
40901
40902 2008-04-20  Bruno Haible  <bruno@clisp.org>
40903
40904         * lib/isapipe.c: Port to native Windows platforms.
40905
40906 2008-04-20  Bruno Haible  <bruno@clisp.org>
40907
40908         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40909
40910 2008-04-21  Eric Blake  <ebb9@byu.net>
40911
40912         Work around preprocessors that don't handle UINTMAX_MAX.
40913         * lib/memchr2.c (memchr2): Avoid embedded #if.
40914         Reported by Alain Guibert, fix suggested by Bruno Haible.
40915
40916 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40917
40918         * doc/posix-functions/strftime.texi (strftime): Explain better
40919         Windows incompatibility.  Suggested by Micah Cowan
40920         <micah@cowan.name>.
40921
40922 2008-04-20  Bruno Haible  <bruno@clisp.org>
40923
40924         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40925         unistr/u8-mblen.
40926
40927 2008-04-20  Bruno Haible  <bruno@clisp.org>
40928
40929         Fix test failure on platforms with non-GNU iconv.
40930         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40931         (U_TO_U8): Use it, rather than u16_to_u8.
40932         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40933         units at the end of the input string.
40934         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40935
40936 2008-04-20  Bruno Haible  <bruno@clisp.org>
40937
40938         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40939         when the resulting length is 0.
40940         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40941
40942 2008-04-20  Bruno Haible  <bruno@clisp.org>
40943
40944         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40945         works.
40946         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40947
40948 2008-04-20  Bruno Haible  <bruno@clisp.org>
40949
40950         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40951         * modules/tsearch-tests (configure.ac): Test for initstate function.
40952
40953 2008-04-20  Bruno Haible  <bruno@clisp.org>
40954
40955         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40956         for nlink_t if missing.
40957         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40958
40959 2008-04-19  Bruno Haible  <bruno@clisp.org>
40960
40961         Work around snprintf bug on Linux libc5.
40962         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40964         gl_SNPRINTF_SIZE1.
40965         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40966         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40967         that test failed.
40968         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40969         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40970         * modules/snprintf (Files): Add m4/printf.m4.
40971         * modules/vsnprintf (Files): Likewise.
40972         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40973         * doc/posix-functions/vsnprintf.texi: Likewise.
40974
40975 2008-04-19  Bruno Haible  <bruno@clisp.org>
40976
40977         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40978         from 0.0058 to less than 10^-7.
40979
40980 2008-04-19  Bruno Haible  <bruno@clisp.org>
40981
40982         Fix rounding when a precision is given.
40983         * lib/vasnprintf.c (is_borderline): New function.
40984         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40985         9...9x.
40986         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40987         %e, %g.
40988         * tests/test-vasprintf-posix.c (test_function): Likewise.
40989         * tests/test-snprintf-posix.h (test_function): Likewise.
40990         * tests/test-sprintf-posix.h (test_function): Likewise.
40991         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40992         * tests/test-printf-posix.h (test_function): Likewise.
40993         * tests/test-printf-posix.output: Update.
40994         Reported by John Darrington <john@darrington.wattle.id.au> via
40995         Ben Pfaff <blp@cs.stanford.edu>.
40996
40997 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40998
40999         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41000         Suggested by Bruno Haible <bruno@clisp.org>.
41001
41002 2008-04-17  Bruno Haible  <bruno@clisp.org>
41003
41004         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41005         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41006         implementation.
41007         Patch by Bruce Merry <bmerry@gmail.com>.
41008
41009 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41010
41011         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41012         doesn't work under Windows.
41013
41014 2008-04-16  Bruno Haible  <bruno@clisp.org>
41015
41016         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41017         New macros.
41018         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41019         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41020         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41021         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41022         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41023         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41024         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41025         macros.
41026         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41027         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41028         Northern Sotho, Uighur.
41029
41030 2008-04-16  Bruno Haible  <bruno@clisp.org>
41031
41032         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41033         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41034         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41035         Reported by Daniel Bergström <daniel@octocode.com>.
41036
41037 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41038             Bruno Haible  <bruno@clisp.org>
41039
41040         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41041         function.
41042         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41043         New functions, mostly extracted from gl_locale_name_default.
41044         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41045
41046 2008-04-16  Eric Blake  <ebb9@byu.net>
41047
41048         Adjust strtod detection to catch glibc 2.7 bug.
41049         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41050         Reported by John Gatewood Ham.
41051
41052 2008-04-16  Bruno Haible  <bruno@clisp.org>
41053
41054         Add tentative support for Linux libc5.
41055         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41056         * lib/fpurge.c (fpurge): Likewise.
41057         * lib/freadable.c (freadable): Likewise.
41058         * lib/freadahead.c (freadahead): Likewise.
41059         * lib/freading.c (freading): Likewise.
41060         * lib/freadptr.c (freadptr): Likewise.
41061         * lib/freadseek.c (freadptrinc): Likewise.
41062         * lib/fseeko.c (rpl_fseeko): Likewise.
41063         * lib/fseterr.c (fseterr): Likewise.
41064         * lib/fwritable.c (fwritable): Likewise.
41065         * lib/fwriting.c (fwriting): Likewise.
41066         Reported by Alain Guibert <alguibert+bts@free.fr>.
41067
41068 2008-04-15  Bruno Haible  <bruno@clisp.org>
41069
41070         * modules/mathl (configure.ac): Define module indicator.
41071
41072 2008-04-15  Bruno Haible  <bruno@clisp.org>
41073
41074         * lib/logl.c (logl): Remove unused variables.
41075
41076 2008-04-15  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41079         fails.
41080
41081 2008-04-15  Bruno Haible  <bruno@clisp.org>
41082
41083         * lib/trim.c (trim2): Fix argument of isspace() macro.
41084
41085 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41086
41087         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41088         to 0.
41089         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41090
41091 2008-04-14  Bruno Haible  <bruno@clisp.org>
41092
41093         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41094         AC_LANG_PROGRAM argument.
41095         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41096         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41098         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41099         * m4/math_h.m4 (gl_MATH_H): Likewise.
41100         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41102         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41103         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41104         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41105         * m4/regex.m4 (gl_REGEX): Likewise.
41106         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41107         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41109         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41110         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41111         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41113         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41114
41115 2008-04-14  Jim Meyering  <meyering@redhat.com>
41116
41117         test-strtod: fix typos: s/abs/fabs/
41118         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41119
41120 2008-04-13  Bruno Haible  <bruno@clisp.org>
41121
41122         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41123         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41124         module is also used and while not building the reloc-wrapper.
41125
41126 2008-04-13  Bruno Haible  <bruno@clisp.org>
41127
41128         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41129
41130 2008-04-13  Bruno Haible  <bruno@clisp.org>
41131
41132         Fix AIX compilation failure introduced on 2008-04-02.
41133         * tests/test-frexp.c (exp): Undefine before redefining.
41134         * tests/test-frexpl.c (exp): Likewise.
41135
41136 2008-04-13  Bruno Haible  <bruno@clisp.org>
41137
41138         Work around a HP-UX stdio bug.
41139         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41140         * tests/test-ftello.c (main): Likewise.
41141         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41142         * doc/posix-functions/ftello.texi: Likewise.
41143
41144 2008-04-13  Bruno Haible  <bruno@clisp.org>
41145
41146         Make test-signbit pass on HP-UX/hppa.
41147         * tests/test-signbit.c (minus_zerol): New variable.
41148         (test_signbitl): Use it.
41149
41150 2008-04-13  Bruno Haible  <bruno@clisp.org>
41151
41152         Make truncl work on OSF/1 4.0.
41153         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41154         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41155         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41157         HAVE_DECL_TRUNCL.
41158         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41159         HAVE_DECL_TRUNCL.
41160         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41161
41162 2008-04-13  Bruno Haible  <bruno@clisp.org>
41163
41164         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41165
41166 2008-04-13  Bruno Haible  <bruno@clisp.org>
41167
41168         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41169         expression, so as to avoid HP-UX 11 cc compiler bug.
41170
41171 2008-04-13  Bruno Haible  <bruno@clisp.org>
41172
41173         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41174
41175 2008-04-13  Bruno Haible  <bruno@clisp.org>
41176
41177         * lib/git-merge-changelog.c: Remove empty declaration outside of
41178         functions.
41179
41180 2008-04-13  Bruno Haible  <bruno@clisp.org>
41181
41182         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41183
41184 2008-04-13  Bruno Haible  <bruno@clisp.org>
41185
41186         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41187         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41189         also if it exists but lacks definitions of the SHUT_* macros.
41190         * modules/sys_socket (Description): Update.
41191         Reported by Elbert Pol <e.pol@chello.nl>.
41192
41193 2008-04-13  Bruno Haible  <bruno@clisp.org>
41194
41195         * lib/localcharset.c (OS2): Don't redefine if already defined.
41196         Reported by Elbert Pol <e.pol@chello.nl>.
41197
41198 2008-04-13  Bruno Haible  <bruno@clisp.org>
41199
41200         * lib/binary-io.h [__EMX__]: Include <io.h>.
41201         Reported by Elbert Pol <e.pol@chello.nl>.
41202
41203 2008-04-12  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/fpucw.h: Enable the definitions also for x86_64.
41206         Needed for NetBSD/x86_64.
41207         Reported by Thomas Klausner <tk@giga.or.at>.
41208
41209 2008-04-12  Bruno Haible  <bruno@clisp.org>
41210
41211         * tests/test-strtod.c: Include isnand.h.
41212         (main): Use isnand instead of isnan.
41213         Reported by Jim Meyering.
41214
41215 2008-04-12  Bruno Haible  <bruno@clisp.org>
41216
41217         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41218         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41219
41220 2008-04-12  Jim Meyering  <meyering@redhat.com>
41221
41222         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41223
41224 2008-04-12  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41227         Reported by Elbert Pol <e.pol@chello.nl>.
41228
41229 2008-04-12  Eric Blake  <ebb9@byu.net>
41230
41231         Work around Solaris 10 math.h bug.
41232         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41233         (gl_MATH_H_DEFAULTS): Set up default.
41234         * modules/math (Makefile.am): Replace new indicators.
41235         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41236         * tests/test-math.c (main): Test this.
41237         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41238         * doc/posix-headers/math.texi (math.h): Mention bug.
41239         Reported by Nelson H. F. Beebe and Jim Meyering.
41240
41241 2008-04-11  Bruno Haible  <bruno@clisp.org>
41242
41243         Adapt to future versions of Apple GCC.
41244         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41245         Reported by Peter O'Gorman <peter@pogma.com>.
41246
41247 2008-04-11  Bruno Haible  <bruno@clisp.org>
41248
41249         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41250
41251 2008-04-11  Bruno Haible  <bruno@clisp.org>
41252
41253         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41254
41255         * modules/getaddrinfo-tests (Makefile.am): Define
41256         test_getaddrinfo_LDADD.
41257
41258 2008-04-11  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41261         (init): Fix syntax error.
41262         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41263         is declared.
41264
41265 2008-04-11  Bruno Haible  <bruno@clisp.org>
41266
41267         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41268         * modules/glob (Depends-on): Add stdbool.
41269
41270 2008-04-11  Bruno Haible  <bruno@clisp.org>
41271
41272         * lib/trim.c: Include <string.h>.
41273
41274 2008-04-11  Eric Blake  <ebb9@byu.net>
41275
41276         Avoid compile failure on OS/2.
41277         * lib/regex_internal.h (internal_function): Disable optimization
41278         on OS/2 (__EMX__), where it caused compiler error.
41279         Reported by Elbert Pol.
41280
41281 2008-04-11  Bruno Haible  <bruno@clisp.org>
41282
41283         Flush the standard error stream before aborting. Needed on mingw.
41284         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41285         * tests/test-array_list.c (ASSERT): Likewise.
41286         * tests/test-array_oset.c (ASSERT): Likewise.
41287         * tests/test-avltree_list.c (ASSERT): Likewise.
41288         * tests/test-avltree_oset.c (ASSERT): Likewise.
41289         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41290         * tests/test-binary-io.c (ASSERT): Likewise.
41291         * tests/test-byteswap.c (ASSERT): Likewise.
41292         * tests/test-c-ctype.c (ASSERT): Likewise.
41293         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41294         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41295         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41296         * tests/test-c-strstr.c (ASSERT): Likewise.
41297         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41298         * tests/test-canonicalize.c (ASSERT): Likewise.
41299         * tests/test-carray_list.c (ASSERT): Likewise.
41300         * tests/test-ceilf1.c (ASSERT): Likewise.
41301         * tests/test-ceilf2.c (ASSERT): Likewise.
41302         * tests/test-ceill.c (ASSERT): Likewise.
41303         * tests/test-count-one-bits.c (ASSERT): Likewise.
41304         * tests/test-fbufmode.c (ASSERT): Likewise.
41305         * tests/test-fflush2.c (ASSERT): Likewise.
41306         * tests/test-floorf1.c (ASSERT): Likewise.
41307         * tests/test-floorf2.c (ASSERT): Likewise.
41308         * tests/test-floorl.c (ASSERT): Likewise.
41309         * tests/test-fopen.c (ASSERT): Likewise.
41310         * tests/test-fpending.c (ASSERT): Likewise.
41311         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41312         * tests/test-fpurge.c (ASSERT): Likewise.
41313         * tests/test-freadable.c (ASSERT): Likewise.
41314         * tests/test-freadahead.c (ASSERT): Likewise.
41315         * tests/test-freading.c (ASSERT): Likewise.
41316         * tests/test-freadptr.c (ASSERT): Likewise.
41317         * tests/test-freadptr2.c (ASSERT): Likewise.
41318         * tests/test-freadseek.c (ASSERT): Likewise.
41319         * tests/test-freopen.c (ASSERT): Likewise.
41320         * tests/test-frexp.c (ASSERT): Likewise.
41321         * tests/test-frexpl.c (ASSERT): Likewise.
41322         * tests/test-fseek.c (ASSERT): Likewise.
41323         * tests/test-fseeko.c (ASSERT): Likewise.
41324         * tests/test-fstrcmp.c (ASSERT): Likewise.
41325         * tests/test-ftell.c (ASSERT): Likewise.
41326         * tests/test-ftello.c (ASSERT): Likewise.
41327         * tests/test-func.c (ASSERT): Likewise.
41328         * tests/test-fwritable.c (ASSERT): Likewise.
41329         * tests/test-fwriting.c (ASSERT): Likewise.
41330         * tests/test-getdelim.c (ASSERT): Likewise.
41331         * tests/test-getline.c (ASSERT): Likewise.
41332         * tests/test-i-ring.c (ASSERT): Likewise.
41333         * tests/test-iconv-utf.c (ASSERT): Likewise.
41334         * tests/test-iconv.c (ASSERT): Likewise.
41335         * tests/test-isfinite.c (ASSERT): Likewise.
41336         * tests/test-isnand.c (ASSERT): Likewise.
41337         * tests/test-isnanf.c (ASSERT): Likewise.
41338         * tests/test-isnanl.h (ASSERT): Likewise.
41339         * tests/test-ldexpl.c (ASSERT): Likewise.
41340         * tests/test-linked_list.c (ASSERT): Likewise.
41341         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41342         * tests/test-localename.c (ASSERT): Likewise.
41343         * tests/test-lseek.c (ASSERT): Likewise.
41344         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41345         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41346         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41347         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41348         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41349         * tests/test-mbschr.c (ASSERT): Likewise.
41350         * tests/test-mbscspn.c (ASSERT): Likewise.
41351         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41352         * tests/test-mbspbrk.c (ASSERT): Likewise.
41353         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41354         * tests/test-mbsrchr.c (ASSERT): Likewise.
41355         * tests/test-mbsspn.c (ASSERT): Likewise.
41356         * tests/test-mbsstr1.c (ASSERT): Likewise.
41357         * tests/test-mbsstr2.c (ASSERT): Likewise.
41358         * tests/test-mbsstr3.c (ASSERT): Likewise.
41359         * tests/test-memchr2.c (ASSERT): Likewise.
41360         * tests/test-memmem.c (ASSERT): Likewise.
41361         * tests/test-open.c (ASSERT): Likewise.
41362         * tests/test-printf-frexp.c (ASSERT): Likewise.
41363         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41364         * tests/test-printf-posix.c (ASSERT): Likewise.
41365         * tests/test-quotearg.c (ASSERT): Likewise.
41366         * tests/test-rbtree_list.c (ASSERT): Likewise.
41367         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41368         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41369         * tests/test-round1.c (ASSERT): Likewise.
41370         * tests/test-roundf1.c (ASSERT): Likewise.
41371         * tests/test-roundl.c (ASSERT): Likewise.
41372         * tests/test-signbit.c (ASSERT): Likewise.
41373         * tests/test-sleep.c (ASSERT): Likewise.
41374         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41375         * tests/test-snprintf.c (ASSERT): Likewise.
41376         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41377         * tests/test-stat-time.c (ASSERT): Likewise.
41378         * tests/test-strcasestr.c (ASSERT): Likewise.
41379         * tests/test-strerror.c (ASSERT): Likewise.
41380         * tests/test-striconv.c (ASSERT): Likewise.
41381         * tests/test-striconveh.c (ASSERT): Likewise.
41382         * tests/test-striconveha.c (ASSERT): Likewise.
41383         * tests/test-strsignal.c (ASSERT): Likewise.
41384         * tests/test-strstr.c (ASSERT): Likewise.
41385         * tests/test-strtod.c (ASSERT): Likewise.
41386         * tests/test-trunc1.c (ASSERT): Likewise.
41387         * tests/test-trunc2.c (ASSERT): Likewise.
41388         * tests/test-truncf1.c (ASSERT): Likewise.
41389         * tests/test-truncf2.c (ASSERT): Likewise.
41390         * tests/test-truncl.c (ASSERT): Likewise.
41391         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41392         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41393         * tests/test-vasnprintf.c (ASSERT): Likewise.
41394         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41395         * tests/test-vasprintf.c (ASSERT): Likewise.
41396         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41397         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41398         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41399         * tests/test-vsnprintf.c (ASSERT): Likewise.
41400         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41401         * tests/test-wcwidth.c (ASSERT): Likewise.
41402         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41403         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41404         * tests/test-xvasprintf.c (ASSERT): Likewise.
41405         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41406         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41407         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41408         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41409         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41410         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41411         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41412         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41413         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41414         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41415         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41416         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41417         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41418         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41419         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41420         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41421         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41422         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41423         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41424         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41425         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41426         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41427         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41428         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41429         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41430         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41431         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41432         * tests/unictype/test-combining.c (ASSERT): Likewise.
41433         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41434         * tests/unictype/test-digit.c (ASSERT): Likewise.
41435         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41436         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41437         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41438         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41439         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41440         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41441         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41442         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41443         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41444         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41445         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41446         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41447         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41448         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41449         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41450         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41451         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41452         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41453         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41454         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41455         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41456         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41457         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41458         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41459         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41460         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41461         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41462         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41463         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41464         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41465         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41466         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41467         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41468         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41469         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41470         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41471         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41472         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41473         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41474         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41475         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41476         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41477         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41478         Reported by Eric Blake.
41479
41480 2008-04-11  Bruno Haible  <bruno@clisp.org>
41481
41482         * lib/wchar.in.h: Tweak comment.
41483
41484 2008-04-11  Bruno Haible  <bruno@clisp.org>
41485
41486         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41487         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41488         gl_COMMON.
41489         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41490
41491 2008-04-11  Bruno Haible  <bruno@clisp.org>
41492
41493         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41494
41495 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41496
41497         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41498         of attempting to use non-existing /dev/*random.  Based on patch
41499         from Adam Strzelecki <ono@java.pl> in
41500         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41501
41502 2008-04-08  Bruno Haible  <bruno@clisp.org>
41503
41504         Add tentative support for emx+gcc.
41505         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41506         * lib/fpurge.c (fpurge): Likewise.
41507         * lib/freadable.c (freadable): Likewise.
41508         * lib/freadahead.c (freadahead): Likewise.
41509         * lib/freading.c (freading): Likewise.
41510         * lib/freadptr.c (freadptr): Likewise.
41511         * lib/freadseek.c (freadptrinc): Likewise.
41512         * lib/fseeko.c (rpl_fseeko): Likewise.
41513         * lib/fseterr.c (fseterr): Likewise.
41514         * lib/fwritable.c (fwritable): Likewise.
41515         * lib/fwriting.c (fwriting): Likewise.
41516         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41517
41518 2008-04-09  Eric Blake  <ebb9@byu.net>
41519
41520         Avoid some autoconf warnings.
41521         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41522         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41523         * m4/afs.m4 (gl_AFS): Likewise.
41524         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41525         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41526         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41527         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41528         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41529         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41530         (AC_CHECK_DECLS_ONCE): Likewise.
41531         Rename file...
41532         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41533         gnulib-tool requires autoconf 2.59 or better.
41534         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41535
41536 2008-04-08  Eric Blake  <ebb9@byu.net>
41537
41538         Use 'git describe --match' if present (added in git 1.5.5).
41539         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41540         if possible.
41541
41542 2008-04-08  Bruno Haible  <bruno@clisp.org>
41543
41544         Add tentative support for OpenServer.
41545         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41546         _ptr, _cnt.
41547         * lib/fpurge.c (fpurge): Likewise.
41548         * lib/freadable.c (freadable): Likewise.
41549         * lib/freadahead.c (freadahead): Likewise.
41550         * lib/freading.c (freading): Likewise.
41551         * lib/freadptr.c (freadptr): Likewise.
41552         * lib/freadseek.c (freadptrinc): Likewise.
41553         * lib/fseeko.c (rpl_fseeko): Likewise.
41554         * lib/fseterr.c (fseterr): Likewise.
41555         * lib/fwritable.c (fwritable): Likewise.
41556         * lib/fwriting.c (fwriting): Likewise.
41557         Reported by Roger Cornelius <rac@tenzing.org> and
41558         Brian K. White <brian@aljex.com>.
41559
41560 2008-04-06  Jim Meyering  <meyering@redhat.com>
41561
41562         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41563
41564 2008-04-06  Bruno Haible  <bruno@clisp.org>
41565
41566         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41567         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41568         * tests/test-printf-posix.sh: Likewise.
41569         * tests/test-vfprintf-posix.sh: Likewise.
41570         * tests/test-vprintf-posix.sh: Likewise.
41571         * tests/test-xprintf-posix.sh: Likewise.
41572
41573 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41574
41575         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41576         hide error from 'ls', needed on OS/2.
41577         Report by Elbert Pol <elbert.pol@gmail.com>.
41578
41579 2008-04-04  Eric Blake  <ebb9@byu.net>
41580
41581         Make test-fseeko.c failures meaningful.
41582         * tests/test-fseeko.c: Print line number on failure.
41583         * tests/test-fseek.c: Likewise.
41584         Reported by Nelson H. F. Beebe.
41585
41586         Improve strtod bug detection check.
41587         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41588         required for Solaris 10.
41589         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41590
41591 2008-04-04  Bruno Haible  <bruno@clisp.org>
41592
41593         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41594         by m4/setenv.m4.
41595
41596 2008-04-03  Eric Blake  <ebb9@byu.net>
41597
41598         Ensure sane .version contents.
41599         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41600         version string.
41601         * build-aux/git-version-gen: Improve documentation.
41602
41603         Make GNU make output nicer.
41604         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41605         MAKECMDGOALS to enforce message for all command line targets.  Set
41606         srcdir for use in maint.mk.
41607
41608         Another maintainer tweak.
41609         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41610         a target that regenerates version.
41611
41612 2008-04-03  Jim Meyering  <meyering@redhat.com>
41613
41614         vc-list-files: don't cause coreutils "make po-check" failure
41615         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41616
41617 2008-04-03  Eric Blake  <ebb9@byu.net>
41618
41619         Allow VPATH usage of vc-list-files.
41620         * build-aux/vc-list-files (scriptversion): Add timestamp.
41621         (options): Add --help, --version, -C.
41622         (CVS): Support installed cvsu.
41623
41624 2008-04-02  Bruno Haible  <bruno@clisp.org>
41625
41626         Avoid some "statement with no effect" warnings from gcc.
41627         * tests/test-wctype.c (main): Explicitly ignore unused values.
41628         Reported by Jim Meyering.
41629
41630 2008-04-02  Jim Meyering  <meyering@redhat.com>
41631
41632         Avoid some warnings from "gcc -Wshadow".
41633         * tests/test-frexp.c (exp): Define to a different identifier.
41634         * tests/test-frexpl.c (exp): Likewise.
41635
41636 2008-04-03  Jim Meyering  <meyering@redhat.com>
41637
41638         bootstrap: remove dangling *.[ch] symlinks from lib
41639         * build-aux/bootstrap [dangling symlink removal]: Move find's
41640         -depth option to precede all others, to avoid a warning.
41641         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41642
41643 2008-04-02  Bruno Haible  <bruno@clisp.org>
41644
41645         Avoid some warnings from "gcc -Wshadow".
41646         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41647         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41648         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41649         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41650         Reported by Jim Meyering.
41651
41652 2008-04-01  Bruno Haible  <bruno@clisp.org>
41653
41654         Fix test to work on IRIX 6.5 with cc.
41655         * tests/test-math.c (numeric_equal): New function.
41656         (main): Use it.
41657
41658 2008-04-01  Bruno Haible  <bruno@clisp.org>
41659
41660         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41661
41662 2008-04-01  Bruno Haible  <bruno@clisp.org>
41663
41664         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41665         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41666         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41667         (Depends-on): Remove math.
41668
41669         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41670         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41671         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41672         (Depends-on): Remove math.
41673
41674         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41675         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41676         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41677         (Depends-on): Remove math.
41678         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41679         (Depends-on): Remove math.
41680
41681         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41682         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41683         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41684         (Depends-on): Remove math.
41685         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41686         (Depends-on): Remove math.
41687
41688         * tests/test-round1.c: Include nan.h.
41689         (main): Use NaNd instead of NAN.
41690         * modules/round-tests (Files): Add tests/nan.h.
41691
41692         * tests/test-trunc1.c: Include nan.h.
41693         (main): Use NaNd instead of NAN.
41694         * modules/trunc-tests (Files): Add tests/nan.h.
41695
41696         * tests/test-roundf1.c: Include nan.h.
41697         (main): Use NaNf instead of NAN.
41698         * modules/roundf-tests (Files): Add tests/nan.h.
41699
41700         * tests/test-truncf1.c: Include nan.h.
41701         (main): Use NaNf instead of NAN.
41702         * modules/truncf-tests (Files): Add tests/nan.h.
41703
41704         * tests/test-ceilf1.c: Include nan.h.
41705         (main): Use NaNf instead of NAN.
41706         * modules/ceilf-tests (Files): Add tests/nan.h.
41707
41708         * tests/test-floorf1.c: Include nan.h.
41709         (main): Use NaNf instead of NAN.
41710         * modules/floorf-tests (Files): Add tests/nan.h.
41711
41712         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41713         (main): Use NaNf instead of NAN.
41714         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41715
41716         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41717         (main): Use NaNd instead of NAN.
41718         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41719
41720         * tests/test-frexp.c: Include nan.h.
41721         (main): Use NaNd instead of NAN.
41722         * modules/frexp-tests (Files): Add tests/nan.h.
41723
41724         * lib/isnan.c: Don't include <math.h>.
41725         (FUNC): Don't use NAN macro.
41726         * modules/isnand-nolibm (Depends-on): Remove math.
41727         * modules/isnanf-nolibm (Depends-on): Remove math.
41728         * modules/isnanl (Depends-on): Remove math.
41729         * modules/isnanl-nolibm (Depends-on): Remove math.
41730
41731         * tests/nan.h: New file.
41732
41733 2008-04-01  Eric Blake  <ebb9@byu.net>
41734
41735         Fix typos.
41736         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41737         values to be the right type.
41738
41739         For now, cater to gnulib strtod inaccuracies.
41740         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41741         fractional results.  While not as nice from a QoI perspective, it
41742         is a quicker patch than correctly implementing decimal to binary
41743         rounding.
41744
41745 2008-03-31  Eric Blake  <ebb9@byu.net>
41746
41747         Guarantee a definition of NAN.
41748         * lib/math.in.h (NAN): Define if missing.
41749         * tests/test-math.c (main): Test it.
41750         * doc/posix-headers/math.texi (math.h): Document this.
41751         * lib/isnan.c (rpl_isnand): Use it.
41752         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41753         * tests/test-floorf1.c (NaN): Likewise.
41754         * tests/test-frexp.c (NaN): Likewise.
41755         * tests/test-isnand.c (NaN): Likewise.
41756         * tests/test-isnanf.c (NaN): Likewise.
41757         * tests/test-round1.c (NaN): Likewise.
41758         * tests/test-roundf1.c (NaN): Likewise.
41759         * tests/test-snprintf-posix.h (NaN): Likewise.
41760         * tests/test-sprintf-posix.h (NaN): Likewise.
41761         * tests/test-trunc1.c (NaN): Likewise.
41762         * tests/test-truncf1.c (NaN): Likewise.
41763         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41764         * tests/test-vasprintf-posix.c (NaN): Likewise.
41765         * modules/isnand-nolibm (Depends-on): Add math.
41766         * modules/isnanf-nolibm (Depends-on): Likewise.
41767         * modules/isnanl (Depends-on): Likewise.
41768         * modules/isnanl-nolibm (Depends-on): Likewise.
41769         * modules/snprintf-posix-tests (Depends-on): Likewise.
41770         * modules/sprintf-posix-tests (Depends-on): Likewise.
41771         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41772         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41773         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41774         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41775
41776 2008-03-31  Bruno Haible  <bruno@clisp.org>
41777
41778         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41779         * doc/posix-functions/strtod.texi: Likewise.
41780
41781 2008-03-31  Bruno Haible  <bruno@clisp.org>
41782
41783         * tests/test-strtod.c (main): Don't use C99 syntax.
41784
41785 2008-03-31  Bruno Haible  <bruno@clisp.org>
41786
41787         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41788         Reported by Eric Blake.
41789
41790 2008-03-31  Jim Meyering  <meyering@redhat.com>
41791
41792         Don't compare actual signbit return values.
41793         * tests/test-strtod.c (main): Rather, compare only their
41794         zero/non-zero nature.
41795
41796 2008-03-31  Eric Blake  <ebb9@byu.net>
41797
41798         More strtod documentation.
41799         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41800         failures as distinct bugs.
41801
41802 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41803
41804         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41805         Problem reported by Erik Benada in
41806         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41807
41808 2008-03-30  Bruno Haible  <bruno@clisp.org>
41809
41810         * tests/test-strtod.c: Add comments about which assertion fails on which
41811         platform.
41812         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41813
41814 2008-03-30  Eric Blake  <ebb9@byu.net>
41815
41816         Test signbit behavior on zeros.
41817         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41818         (test_signbitd, test_signbitl): Likewise.
41819
41820         More strtod touchups.
41821         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41822         sign of negative underflow, for now.  Use .5, not .1.
41823         * doc/posix-functions/strtod.texi (strtod): Mention these
41824         limitations.
41825         Reported by Jim Meyering.
41826
41827 2008-03-30  Bruno Haible  <bruno@clisp.org>
41828
41829         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41830         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41831
41832 2008-03-30  Bruno Haible  <bruno@clisp.org>
41833
41834         Avoid failure when attempting to return empty iconv results on some
41835         platforms.
41836         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41837         allocation, don't report ENOMEM when the resulting string is empty.
41838
41839 2008-03-30  Bruno Haible  <bruno@clisp.org>
41840
41841         Fix buffer overrun.
41842         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41843         Don't consider the width for tmp_length. Check count against tmp_length
41844         before doing the padding. Ensure enough allocation during padding.
41845
41846 2008-03-30  Eric Blake  <ebb9@byu.net>
41847
41848         strtod touchups.
41849         * lib/strtod.c (strtod): Avoid compiler warnings.
41850         Reported by Jim Meyering.
41851
41852 2008-03-30  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41855         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41856         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41857         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41858         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41859         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41860         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41861         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41862
41863         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41864         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41865         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41866         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41867         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41868         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41869         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41870         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41871
41872         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41873         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41874         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41875         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41876         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41877         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41878         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41879         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41880
41881         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41882         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41883
41884         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41885         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41886
41887         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41888         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41889
41890         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41891         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41892         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41893
41894         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41896         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41897
41898         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41899         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41900         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41901
41902         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41904         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41905
41906         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41907         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41909         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41910         (Depends-on): Add EOVERFLOW.
41911         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41912         (Depends-on): Add EOVERFLOW.
41913         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41914         (Depends-on): Add EOVERFLOW.
41915         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41916         (Depends-on): Add EOVERFLOW.
41917         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41918         (Depends-on): Add EOVERFLOW.
41919         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41920         (Depends-on): Add EOVERFLOW.
41921         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41922         (Depends-on): Add EOVERFLOW.
41923         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41924         (Depends-on): Add EOVERFLOW.
41925
41926         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41927         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41928         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41929
41930         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41932         * modules/snprintf (Depends-on): Add EOVERFLOW.
41933
41934         * lib/poll.c (EOVERFLOW): Remove fallback.
41935         * modules/poll (Depends-on): Add EOVERFLOW.
41936
41937         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41938         * modules/getugroups (Depends-on): Add EOVERFLOW.
41939
41940         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41941         * modules/getdelim (Depends-on): Add EOVERFLOW.
41942
41943         * lib/ftell.c (EOVERFLOW): Remove fallback.
41944         * modules/ftell (Depends-on): Add EOVERFLOW.
41945
41946         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41948         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41949
41950         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41951
41952         * modules/EOVERFLOW-tests: New file.
41953         * tests/test-EOVERFLOW.c: New file.
41954
41955         * modules/EOVERFLOW: New file.
41956         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41957
41958 2008-03-30  Bruno Haible  <bruno@clisp.org>
41959
41960         Fix bug introduced on 2007-06-10.
41961         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41962         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41963
41964 2008-03-30  Bruno Haible  <bruno@clisp.org>
41965
41966         Improve freadseek's efficiency after ungetc.
41967         * lib/freadseek.c: Include freadahead.h.
41968         (freadptrinc): New function, extracted from freadseek.
41969         (freadseek): Use it in a loop. Use freadahead to determine the number
41970         of loop iterations.
41971         * modules/freadseek (Depends-on): Add freadahead.
41972         (configure.ac): Require AC_C_INLINE.
41973
41974 2008-03-30  Bruno Haible  <bruno@clisp.org>
41975
41976         * lib/freadseek.c (freadseek): Don't ignore the return value of
41977         freadptr.
41978
41979 2008-03-29  Eric Blake  <ebb9@byu.net>
41980
41981         Add hex float support.
41982         * modules/strtod (Depends-on): Add c-ctype.
41983         (Link): Mention POW_LIB.
41984         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41985         whitespace between 'e' and exponent.
41986         * tests/test-strtod.c (main): Enable hex float tests.
41987         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41988         now provides.
41989
41990         Document various strtod bugs, with some fixes.
41991         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41992         "-0x", "inf", "nan", and hex constants.
41993         * doc/posix-functions/atof.texi (atof): Likewise.
41994         * modules/stdlib (Makefile.am): Support strtod.
41995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41996         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41997         detect additional strtod bugs.
41998         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41999         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42000         bool where appropriate.  Parse 'inf' and 'nan'.
42001         * tests/test-strtod.c: New file.
42002         * modules/strtod (Depends-on): Add stdbool, stdlib.
42003         (configure.ac): Turn on module indicator.
42004         * modules/strtod-tests: New module.
42005
42006 2008-03-29  Eric Blake  <ebb9@byu.net>
42007
42008         Fix ftell on mingw.
42009         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42010         * modules/ftell-tests (Depends-on): Add binary-io.
42011         * modules/ftello-tests (Depends-on): Likewise.
42012         * tests/test-ftell.c (main): Enhance test to cover behavior after
42013         ungetc.  Enforce binary mode.
42014         * tests/test-ftello.c (main): Likewise.
42015
42016         Pass test-freadseek on cygwin.
42017         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42018         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42019         ungetc buffer.
42020
42021         * tests/test-fflush2.c (main): Fix typo.
42022
42023 2008-03-29  Bruno Haible  <bruno@clisp.org>
42024
42025         * tests/test-fflush2.c (main): Temporarily disable the contents of
42026         this test.
42027         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42028         Reported by Eric Blake.
42029
42030 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42031
42032         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42033         (GC_SHA224_DIGEST_SIZE): Add.
42034
42035         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42036         (gc_hash_digest_length): Likewise.
42037         (gc_hash_buffer): Likewise.
42038
42039 2008-03-25  Bruno Haible  <bruno@clisp.org>
42040
42041         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42042         detail which gettext release to use.
42043         Reported by Simon Josefsson.
42044
42045 2008-03-26  Jim Meyering  <meyering@redhat.com>
42046
42047         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42048         * modules/gnumakefile (clean-GNUmakefile): Also, use
42049         test ... && ... || : syntax rather than if-then ... fi.
42050
42051         gnumakefile: Don't double-quote-expand $(VPATH) value.
42052         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42053
42054 2008-03-24  Eric Blake  <ebb9@byu.net>
42055
42056         Alter GNUmakefile to install into top directory.
42057         * modules/maintainer-makefile: Split, and add dependency...
42058         * modules/gnumakefile: to this new module.
42059         * build-aux/GNUmakefile: Move...
42060         * top/GNUmakefile: ...here.
42061         * build-aux/maint.mk: Move...
42062         * top/maint.mk: ...here.
42063         * MODULES.html.sh (Support for maintaining...): Document new
42064         module.
42065
42066 2008-03-23  Bruno Haible  <bruno@clisp.org>
42067
42068         * gnulib-tool: New options --vc-files, --no-vc-files.
42069         (func_usage): Document them.
42070         (vc_files): New variable.
42071         (func_import): Consider vc_files.
42072         (func_create_testdir): Set vc_files to empty.
42073         Suggested by Jim Meyering and Karl Berry.
42074
42075 2008-03-23  Bruno Haible  <bruno@clisp.org>
42076
42077         Fix regex compilation error on HP-UX 11.
42078         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42079         * modules/regex (Files): Add m4/mbstate_t.m4.
42080         Reported by Ton Voon <ton.voon@altinity.com>.
42081
42082 2008-03-23  Bruno Haible  <bruno@clisp.org>
42083
42084         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42085
42086 2008-03-23  Eric Blake  <ebb9@byu.net>
42087             Bruno Haible  <bruno@clisp.org>
42088
42089         Install files from top/ in the destination directory.
42090         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42091         augmentation also for the files from top/.
42092         (func_import, func_create_testdir): Rewrite file names:
42093         top/filename -> filename.
42094
42095 2008-03-23  Bruno Haible  <bruno@clisp.org>
42096
42097         Tweak "gnulib --version" output.
42098         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42099
42100 2008-03-23  Bruno Haible  <bruno@clisp.org>
42101
42102         Tweak "gnulib --version" output.
42103         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42104         rather than contents of ChangeLog, when possible.
42105
42106 2008-03-21  Eric Blake  <ebb9@byu.net>
42107
42108         More --version tweaks.
42109         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42110         date of last ChangeLog entry.
42111
42112 2008-03-21  Jim Meyering  <meyering@redhat.com>
42113
42114         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42115
42116 2008-03-20  Eric Blake  <ebb9@byu.net>
42117
42118         VPATH fix.
42119         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42120
42121 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42122
42123         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42124         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42125
42126 2008-03-20  Eric Blake  <ebb9@byu.net>
42127
42128         Sync GNUmakefile with coreutils.
42129         * build-aux/GNUmakefile (have-Makefile): Rename...
42130         (_have-Makefile): ...to this, for namespace consideration.
42131         (GNUmakefile.cfg): Include, if present.
42132         (_autoreconf): Define a default.
42133         (_is-dist-target): New rule for rebuilds to pick up intra-release
42134         version.
42135         (maint-cfg.mk): Rename...
42136         (cfg.mk): ...to this.
42137
42138 2008-03-18  Jim Meyering  <meyering@redhat.com>
42139
42140         New script and module: mktempd
42141         * MODULES.html.sh (maint+release support): Add mktempd.
42142         * build-aux/mktempd: New file.
42143         * modules/mktempd: New file.
42144
42145 2008-03-15  Jim Meyering  <meyering@redhat.com>
42146
42147         Undo last change.
42148         * lib/sha1.c, lib/md5.c: 63 != ~63.
42149         Reported by Andreas Schwab.
42150
42151         sha1.c, md5.c: Hoist a redundant expression.
42152         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42153         "ctx->buflen" only once, before calling *_process_block.
42154         * lib/md5.c (md5_process_bytes): Likewise.
42155
42156 2008-03-14  Eric Blake  <ebb9@byu.net>
42157
42158         Bump copyright year in files generated by gnulib-tool.
42159         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42160         gnulib-tool, rather than hard-coding it.
42161
42162         Fix 'gnulib-tool --version' output to work with git.
42163         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42164         (startup): ...here.
42165         (func_version): Use it to invoke git-version-gen, rather than
42166         relying on CVS keyword expansion.  Modernize wording.
42167         (cvsdatestamp, last_checkin_date, version): Kill unused
42168         variables.
42169
42170 2008-03-12  Jim Meyering  <meyering@redhat.com>
42171
42172         Recognize optional cast of the argument to free.
42173         * build-aux/useless-if-before-free: Update regexps.
42174
42175         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42176
42177 2008-03-11  Bruno Haible  <bruno@clisp.org>
42178
42179         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42180         by a single package.
42181         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42182         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42183         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42184         Reported by Sam Steingold <sds@gnu.org>.
42185
42186 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42187
42188         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42189         repositories.
42190
42191 2008-03-11  Bruno Haible  <bruno@clisp.org>
42192
42193         Avoid conflicts between local macro definitions.
42194         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42195         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42196
42197 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42198             Bruno Haible  <bruno@clisp.org>
42199
42200         Make va_copy work with some version of xlc on AIX 5.1.
42201         * lib/stdarg.in.h: New file.
42202         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42203         On AIX, use a <stdarg.h> file substitute.
42204         * modules/stdarg (Files): Add lib/stdarg.in.h.
42205         (Depends-on): Add include_next.
42206         (Makefile.am): Build a stdarg.h substitute if requested.
42207         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42208
42209 2008-03-10  Bruno Haible  <bruno@clisp.org>
42210
42211         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42212         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42213         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42214
42215 2008-03-10  Bruno Haible  <bruno@clisp.org>
42216
42217         * modules/stdlib (Depends-on): Add include_next, remove
42218         absolute-header.
42219
42220 2008-03-09  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/freadahead.h (freadahead): Document more precisely.
42223         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42224         the sum of both buffer sizes.
42225         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42226         * NEWS: Document the change.
42227
42228 2008-03-09  Bruno Haible  <bruno@clisp.org>
42229
42230         Extend freadptr to return also the buffer size.
42231         * lib/freadptr.h (freadptr): Add sizep argument.
42232         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42233         (freadptr): Add sizep argument. Determine buffer size like freadahead
42234         does.
42235         * tests/test-freadptr.c: Don't include freadahead.h.
42236         (main): Adapt for new calling convention of freadptr.
42237         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42238         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42239         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42240         tests/test-freadptr2.sh.
42241         (Depends): Remove freadahead.
42242         (TESTS): Add test-freadptr2.sh.
42243         (check_PROGRAMS): Add test-freadptr2.
42244
42245 2008-03-09  Bruno Haible  <bruno@clisp.org>
42246
42247         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42248         Report and solution by Simon Josefsson.
42249
42250 2008-03-06  Bruno Haible  <bruno@clisp.org>
42251
42252         Make fflush after ungetc work on BSD platforms.
42253         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42254         * tests/test-fflush2.c: New file.
42255         * tests/test-fflush2.sh: New file.
42256         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42257         tests/test-fflush2.c.
42258         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42259         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42260
42261 2008-03-06  Eric Blake  <ebb9@byu.net>
42262
42263         Likewise for ftello.
42264         * modules/ftello (Dependencies): Add extensions.
42265         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42266
42267 2008-03-06  Bruno Haible  <bruno@clisp.org>
42268
42269         * modules/fseeko (Dependencies): Add extensions.
42270         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42271         Needed on glibc systems.
42272
42273 2008-03-06  Bruno Haible  <bruno@clisp.org>
42274
42275         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42276         email address.
42277         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42278
42279 2008-03-06  Bruno Haible  <bruno@clisp.org>
42280
42281         * users.txt: Add libgnupdf.
42282
42283 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42284
42285         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42286         (Header File Substitutes, Function Substitutes,
42287         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42288         (Build robot for gnulib): Fix typo.
42289
42290 2008-03-06  Bruno Haible  <bruno@clisp.org>
42291
42292         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42293         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42294
42295 2008-03-06  Bruno Haible  <bruno@clisp.org>
42296
42297         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42298         * doc/gnulib.texi: Include it.
42299
42300 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42301
42302         * modules/func (License): Change license to unlimited; there was
42303         no LGPL parts in the module anyway.
42304
42305 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42306
42307         * modules/__func__: Renamed to modules/func.
42308         * modules/__func__-tests: Renamed to modules/func-tests.
42309         * tests/test-__func__.c: Renamed to tests/test-func.c.
42310         * m4/__func__.m4: Renamed to m4/func.m4.
42311         * doc/gnulib.texi (__func__): Section renamed to func.
42312         Suggested by Eric Blake <ebb9@byu.net>.
42313
42314 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42315
42316         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42317         about __func__.  Make example self-contained.  Suggested by Eric
42318         Blake <ebb9@byu.net>.
42319
42320         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42321         Suggested by Eric Blake <ebb9@byu.net>.
42322
42323 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42324
42325         * modules/__func__: New file.
42326         * modules/__func__-tests: New file.
42327         * tests/test-__func__.c: New file.
42328         * m4/__func__.m4: New file.
42329         * doc/gnulib.texi (__func__): Document __func__ module.
42330
42331 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42332
42333         * modules/byteswap (License): Re-license as LGPLv2+.
42334
42335 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42336
42337         * doc/Makefile: Add pdf target.
42338
42339 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42340
42341         * modules/inline (License): Use 'unlimited', since there are only
42342         *.m4 files in this module.
42343
42344 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42345             Bruno Haible  <bruno@clisp.org>
42346
42347         Add support for HP C 7.1 on OpenVMS 8.3.
42348         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42349
42350 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42351
42352         Update VMS specifics.
42353         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42354
42355 2008-03-02  Jim Meyering  <meyering@redhat.com>
42356
42357         Remove the last dependency on the "free" module.
42358         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42359         Reported by Bob Proulx.
42360
42361         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42362
42363         Remove useless "if" tests before free.  Deprecate "free" module.
42364         * doc/posix-functions/free.texi: Mention that this
42365         module is no longer useful.
42366         * modules/free (Notice): Say this module is obsolete.
42367         * modules/readutmp (Depends-on): Remove free.
42368         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42369         * lib/putenv.c (putenv): Likewise.
42370         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42371         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42372         * tests/test-c-strcasestr.c (main): Likewise.
42373         * tests/test-c-strstr.c (main): Likewise.
42374         * tests/test-mbscasestr1.c (main): Likewise.
42375         * tests/test-mbscasestr2.c (main): Likewise.
42376         * tests/test-mbsstr1.c (main): Likewise.
42377         * tests/test-mbsstr2.c (main): Likewise.
42378         * tests/test-memmem.c (main): Likewise.
42379         * tests/test-strcasestr.c (main): Likewise.
42380         * tests/test-striconv.c (main): Likewise.
42381         * tests/test-striconveh.c (main): Likewise.
42382         * tests/test-striconveha.c (main): Likewise.
42383         * tests/test-strstr.c (main): Likewise.
42384
42385         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42386
42387         bootstrap: sync from coreutils again
42388         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42389
42390 2008-03-01  Jim Meyering  <meyering@redhat.com>
42391
42392         bootstrap: sync from coreutils
42393         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42394         also when the target doesn't exist.
42395
42396 2008-03-01  Eric Blake  <ebb9@byu.net>
42397
42398         Fix bugs in last patch.
42399         * lib/memchr2.c (memchr2): Fix typo.
42400         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42401         extension.
42402         Reported by Bruce Korb.
42403
42404         New module 'memchr2'.
42405         * modules/memchr2: New file.
42406         * modules/memchr2-tests: Likewise.
42407         * lib/memchr2.h: Likewise.
42408         * lib/memchr2.c: Likewise, based on memchr.c.
42409         * tests/test-memchr2.c: New test.
42410         * MODULES.html.sh (String handling): Add memchr2.
42411
42412 2008-02-29  Bruno Haible  <bruno@clisp.org>
42413
42414         * modules/freadseek-tests: New file.
42415         * tests/test-freadseek.sh: New file.
42416         * tests/test-freadseek.c: New file.
42417
42418         New module 'freadseek'.
42419         * modules/freadseek: New file.
42420         * lib/freadseek.h: New file.
42421         * lib/freadseek.c: New file.
42422         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42423
42424 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42425
42426         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42427         wydawca.
42428
42429         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42430         program_invocation_name and program_invocation_short_name are
42431         present.
42432
42433 2008-02-28  Bruno Haible  <bruno@clisp.org>
42434
42435         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42436         * tests/test-freadptr.sh: Also test non-seekable stdin.
42437
42438 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42439
42440         * build-aux/bootstrap (source_base, m4_base)
42441         (doc_base, tests_base): New variables.
42442         (gnulib_tool_options): Do not hardcode base directories, use
42443         the above variables instead.
42444
42445 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42446
42447         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42448
42449 2008-02-28  Bruno Haible  <bruno@clisp.org>
42450
42451         * modules/freadptr-tests: New file.
42452         * tests/test-freadptr.sh: New file.
42453         * tests/test-freadptr.c: New file.
42454
42455         New module 'freadptr'.
42456         * modules/freadptr: New file.
42457         * lib/freadptr.h: New file.
42458         * lib/freadptr.c: New file.
42459         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42460
42461 2008-02-26  Karl Berry  <karl@freefriends.org>
42462
42463         Sync from Libtool:
42464         * libltdl/argz.c (argz_add, argz_count): New functions.
42465         * libltdl/argz.in.h: Declare them.
42466         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42467
42468 2008-02-22  Bruno Haible  <bruno@clisp.org>
42469
42470         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42471         is a pointer type.  Needed for HP-UX 10.
42472         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42473         * doc/posix-functions/gmtime_r.texi: Likewise.
42474         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42475
42476 2008-02-24  Bruno Haible  <bruno@clisp.org>
42477
42478         * modules/environ-tests: New file.
42479         * tests/test-environ.c: New file.
42480
42481         New module 'environ'.
42482         * modules/environ: New file.
42483         * lib/unistd.in.h (environ): New declaration.
42484         * m4/environ.m4: New file.
42485         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42486         after use.
42487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42488         HAVE_DECL_ENVIRON.
42489         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42490         HAVE_DECL_ENVIRON.
42491         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42492         wrong claim that 'environ' is missing on some systems.
42493         * modules/execute (Depends-on): Add environ.
42494         * lib/execute.c (environ): Remove fallback declaration.
42495         * modules/pipe (Depends-on): Add environ.
42496         * lib/pipe.c (environ): Remove fallback declaration.
42497         * modules/setenv (Depends-on): Add environ.
42498         * lib/setenv.c (environ): Remove fallback declaration.
42499         * modules/unsetenv (Depends-on): Add environ.
42500         * lib/unsetenv.c (environ): Remove fallback declaration.
42501         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42502         m4/environ.m4.
42503         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42504         (gl_PREREQ_UNSETENV): Likewise.
42505
42506 2008-02-24  Bruno Haible  <bruno@clisp.org>
42507
42508         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42509
42510 2008-02-20  Bob Proulx  <bob@proulx.com>
42511
42512         Enable use of older two part flavor 'git describe'.
42513         * build-aux/git-version-gen: If using the older two part flavor of
42514         git version then recreate the third part now present in the
42515         newer three part flavor of git describe.
42516
42517 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42518
42519         * lib/fts.c (fts_build): Typo correction to comment.
42520
42521 2008-02-17  Bruno Haible  <bruno@clisp.org>
42522
42523         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42524         generating no-op conflicts.
42525
42526 2008-02-17  Bruno Haible  <bruno@clisp.org>
42527
42528         Speed up by 10%.
42529         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42530         result_entries, rather than an index-based loop.
42531
42532 2008-02-17  Bruno Haible  <bruno@clisp.org>
42533
42534         Speed up by 25%.
42535         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42536         'hashcode_cached'.
42537         (entry_create): New function.
42538         (entry_hashcode): Use the cached hashcode if possible.
42539         (read_changelog_file, try_split_merged_entry): Use entry_create.
42540
42541 2008-02-17  Bruno Haible  <bruno@clisp.org>
42542
42543         Speed up from O(n^2) to O(n) for long ChangeLog files.
42544         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42545         (read_changelog_file): Change implementation of entries_reversed list
42546         to rbtreehash.
42547         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42548
42549 2008-02-17  Bruno Haible  <bruno@clisp.org>
42550
42551         New option --split-merged-entry.
42552         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42553         (find_paragraph_end, try_split_merged_entry): New functions.
42554         (long_options): Add option --split-merged-entry.
42555         (usage): Document option --split-merged-entry.
42556         (main): Implement option --split-merged-entry.
42557         Reported by Eric Blake.
42558
42559 2008-02-17  Bruno Haible  <bruno@clisp.org>
42560
42561         * lib/git-merge-changelog.c: Include c-strstr.h.
42562         (main): Support the "git pull --rebase" situation.
42563         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42564         Reported by Eric Blake.
42565
42566 2008-02-16  Eric Blake  <ebb9@byu.net>
42567
42568         Avoid doubling \ in common case of "c-maybe" quoting style.
42569         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42570         eliding outer quotes.
42571         * lib/quotearg.h: Document this.
42572         * tests/test-quotearg.c (result_strings, inputs, results_g)
42573         (flag_results, locale_results): Test it by adding a new string to
42574         each test group.
42575         (compare_strings): Test new string.
42576
42577 2008-02-13  Eric Blake  <ebb9@byu.net>
42578
42579         Avoid trigraph quoting in default output.
42580         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42581         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42582         unless explicitly requested.
42583         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42584
42585 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42586
42587         Don't rely on signed integer overflowing to negative value.
42588         * lib/getugroups.c (getugroups): Include <limits.h>.
42589         Instead, compare against INT_MAX, and increment only if the test passes.
42590
42591 2008-02-13  Jim Meyering  <meyering@redhat.com>
42592         and Eric Blake  <ebb9@byu.net>
42593
42594         Avoid shadowing warning and compile errors on Linux.
42595         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42596         forwarding macros on Linux.
42597         (dcgettext): Define a stub, for Linux.
42598         (results_g, main): Avoid warnings.
42599
42600 2008-02-12  Eric Blake  <ebb9@byu.net>
42601
42602         Silence warning in last patch.
42603         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42604
42605         Quotearg part 4: add tests, fix c-maybe colon quoting.
42606         * lib/quotearg.h: Improve documentation.
42607         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42608         escapes when adding outer quotes.  When quoting trigraphs, use
42609         valid C notation.  When quoting NUL, omit extra characters if next
42610         character is not digit.  Alter prototype.
42611         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42612         callers.
42613         * modules/quotearg-tests: New module.
42614         * tests/test-quotearg.c: New test.
42615
42616 2008-02-07  Eric Blake  <ebb9@byu.net>
42617
42618         Quotearg part 3: add flag to control outer quote elision.
42619         * lib/quotearg.h (c_maybe_quoting_style): New style.
42620         (enum quoting_flags): Better documentation of flags.
42621         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42622         c-maybe style.
42623         (quotearg_buffer_restyled): Handle new flag to elide outer
42624         quotes.
42625
42626         Quotearg part 2: add flag that can control NUL elision.
42627         * lib/quotearg.h (set_quoting_flags): New prototype.
42628         * lib/quotearg.c (struct quoting_options): Add flag field.
42629         (set_quoting_flags): New function.
42630         (quotearg_buffer_restyled): Add flags parameter.
42631         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42632         (quotearg_n_options): Set the flag, since length cannot be
42633         returned.
42634         (quoting_options_from_style): Default flags correctly.
42635
42636         Quotearg part 1: more wrappers, restore quotearg_char state.
42637         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42638         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42639         (quotearg_colon_mem): New wrappers.
42640         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42641         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42642         functions.
42643         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42644         (quotearg_colon_mem): New functions.
42645
42646 2008-02-11  Bruno Haible  <bruno@clisp.org>
42647
42648         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42649         library in the current directory: it does not work with parallel make.
42650         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42651
42652 2008-02-11  Bruno Haible  <bruno@clisp.org>
42653
42654         * .gitattributes: New file.
42655
42656 2008-02-11  Jim Meyering  <meyering@redhat.com>
42657
42658         useless-if-before-free: Fix reversed exit values.
42659         * build-aux/useless-if-before-free: Use correct values
42660         for EXIT_MATCH and EXIT_NO_MATCH.
42661
42662         * build-aux/useless-if-before-free: Close stdout carefully.
42663
42664 2008-02-10  Bruno Haible  <bruno@clisp.org>
42665
42666         New module 'git-merge-changelog'.
42667         * modules/git-merge-changelog: New file.
42668         * lib/git-merge-changelog.c: New file.
42669
42670 2008-02-10  Jim Meyering  <meyering@redhat.com>
42671
42672         useless-if-before-free: New option: --list (-l).
42673
42674         useless-if-before-free: Don't exit immediately upon open failure.
42675         * build-aux/useless-if-before-free: Exit 2 for errors.
42676         Upon failure to open a file, don't exit immediately.
42677         Rather, just warn and continue with any remaining files.
42678
42679 2008-02-10  Bruno Haible  <bruno@clisp.org>
42680
42681         New abstract list operation 'node_set_value'.
42682         * lib/gl_list.h (gl_list_node_set_value): New function.
42683         (struct gl_list_implementation): New field node_set_value.
42684         * lib/gl_list.c (gl_list_node_set_value): New function.
42685         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42686         (gl_array_list_implementation): Update.
42687         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42688         (gl_carray_list_implementation): Update.
42689         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42690         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42691         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42692         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42693         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42694         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42695         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42696         Update.
42697         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42698         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42699         (gl_sublist_list_implementation): Update.
42700
42701 2008-02-10  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42704         Needed when ELEMENT is #defined to 'some_type *'.
42705
42706 2008-02-10  Jim Meyering  <meyering@redhat.com>
42707
42708         New script and module: useless-if-before-free
42709         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42710         * build-aux/useless-if-before-free: New file.
42711         * modules/useless-if-before-free: New file.
42712
42713         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42714
42715         xstrtol_error: Fix typo.
42716         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42717         s/exit_failure/exit_status/.
42718
42719 2008-02-09  Jim Meyering  <meyering@redhat.com>
42720
42721         New script and module: gitlog-to-changelog
42722         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42723         * modules/gitlog-to-changelog: New file.
42724         * build-aux/gitlog-to-changelog: New file.
42725
42726 2008-02-08  Jim Meyering  <meyering@redhat.com>
42727
42728         Avoid two "parameter unused" warnings.
42729         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42730         Mark "st" as used.
42731
42732         Use "git COMMAND", not "git-COMMAND".
42733         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42734         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42735         * build-aux/git-version-gen: Use "git status", not "git-status".
42736
42737 2008-02-07  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42740         Avoids a crash on Windows Vista.
42741         Reported by Adam Strzelecki <ono@java.pl> via
42742         Simon Josefsson <simon@josefsson.org>.
42743
42744 2008-02-06  Bruno Haible  <bruno@clisp.org>
42745
42746         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42747         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42748         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42750         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42751         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42752         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42753         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42754         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42755         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42756         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42757         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42758         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42759         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42760         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42761         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42762         left-adjust flag.
42763         * tests/test-snprintf-posix.h (test_function): Likewise.
42764         * tests/test-sprintf-posix.h (test_function): Likewise.
42765         * tests/test-vasprintf-posix.c (test_function): Likewise.
42766         * doc/posix-functions/fprintf.texi: Update.
42767         * doc/posix-functions/printf.texi: Update.
42768         * doc/posix-functions/snprintf.texi: Update.
42769         * doc/posix-functions/sprintf.texi: Update.
42770         * doc/posix-functions/vfprintf.texi: Update.
42771         * doc/posix-functions/vprintf.texi: Update.
42772         * doc/posix-functions/vsnprintf.texi: Update.
42773         * doc/posix-functions/vsprintf.texi: Update.
42774         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42775
42776 2008-02-06  Bruno Haible  <bruno@clisp.org>
42777
42778         Fix bug introduced on 2008-01-26.
42779         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42780
42781 2008-02-06  Bruno Haible  <bruno@clisp.org>
42782
42783         Fix bug introduced on 2007-06-10.
42784         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42785         !NEED_PRINTF_FLAG_ZERO.
42786
42787 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42788
42789         getloadavg: use libperfstat on AIX5
42790         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42791
42792 2008-02-03  Bruno Haible  <bruno@clisp.org>
42793
42794         * lib/diffseq.h: Add comments about required #includes.
42795         Reported by Michael Biggs <gnulib@doubleplum.net>.
42796
42797 2008-02-01  Bruno Haible  <bruno@clisp.org>
42798
42799         * users.txt: Add gnuit.
42800
42801 2008-01-31  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/md4.c (set_uint32): Mark as inline.
42804         * lib/md5.c (set_uint32): Likewise.
42805         * lib/sha1.c (set_uint32): Likewise.
42806         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42807         * m4/md5.m4 (gl_MD5): Likewise.
42808         * m4/sha1.m4 (gl_SHA1): Likewise.
42809
42810 2008-01-31  Jim Meyering  <meyering@redhat.com>
42811
42812         Use "sizeof VAR", rather than a literal "4".
42813         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42814         * lib/md4.c (md4_read_ctx): Likewise.
42815         * lib/sha1.c (sha1_read_ctx): Likewise.
42816
42817 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42818
42819         * tests/test-sha1.c: New file, based on test-md5.c.
42820
42821         * modules/crypto/sha1-tests: New file.
42822
42823 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42824
42825         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42826
42827 2008-01-31  Jim Meyering  <meyering@redhat.com>
42828
42829         Prefer "sizeof v" over the equivalent "4".
42830         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42831         * lib/md5.c (set_uint32): Likewise.
42832         * lib/sha1.c (set_uint32): Likewise.
42833
42834 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42835
42836         * lib/sha1.c (set_uint32): Mark function as static.
42837
42838 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42839
42840         md2: clarify comments to say that alignment is not required.
42841         * lib/md2.h: Remove warning about alignment in comment.
42842         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42843         never been required.
42844
42845 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42846
42847         md4: adapt alignment constraint fix from sha1.
42848         * lib/md4.c (set_uint32): New function, from sha1.c
42849         (md4_read_ctx): Use it.
42850         (md4_finish_ctx): Doc fix.
42851         * lib/md4.h: Doc fix.
42852
42853 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42854
42855         md5: adapt alignment constraint fix from sha1.
42856         * lib/md5.c (set_uint32): New function, from sha1.c
42857         (md5_read_ctx): Use it.
42858         (md5_finish_ctx): Doc fix.
42859         * lib/md5.h: Doc fix.
42860
42861 2008-01-30  Peter Palfrader  <weasel@debian.org>
42862
42863         sha1: remove the result buffer alignment constraint
42864         * lib/sha1.c (set_uint32): New function.
42865         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42866         constraint.
42867         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42868         * lib/sha1.h: Likewise.
42869
42870 2008-01-30  Andreas Schwab  <schwab@suse.de>
42871             Bruno Haible  <bruno@clisp.org>
42872
42873         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42874         correct definition of LDBL_MIN_EXP.
42875
42876 2008-01-30  Karl Berry  <karl@gnu.org>
42877
42878         * config/srclist-update: try to preserve x bit on updates.
42879         * config/srclistvars.sh: update for karl.
42880
42881 2008-01-29  Jim Meyering  <meyering@redhat.com>
42882
42883         vasnprintf.c: Avoid warning about unused label
42884         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42885         "overflow" label definition and associated code with the
42886         same cpp condition that guards the sole use of that label.
42887
42888 2008-01-26  Bruno Haible  <bruno@clisp.org>
42889
42890         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42891         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42892         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42893         * lib/isnanl-nolibm.h (isnanl): Likewise.
42894         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42895
42896 2008-01-26  Bruno Haible  <bruno@clisp.org>
42897
42898         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42899         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42900
42901 2008-01-26  Bruno Haible  <bruno@clisp.org>
42902
42903         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42904         GCC >= 4.0 built-in.
42905         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42906
42907 2008-01-26  Bruno Haible  <bruno@clisp.org>
42908
42909         Rename isnan, applicable to 'double' only, to isnand.
42910         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42911         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42912         (configure.ac): Update.
42913         (Include): Replace "isnan.h" with "isnand.h".
42914         * m4/isnand.m4: Renamed from m4/isnan.m4.
42915         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42916         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42917         instead of isnan.c.
42918         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42919         instead of HAVE_ISNAN_IN_LIBC.
42920         (isnand): Renamed from isnan.
42921         * lib/isnand.c: New file.
42922         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42923         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42924         (Makefile.am): Update.
42925         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42926         Include isnand.h instead of isnan.h.
42927         (main): Test isnand instead of isnan.
42928         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42929         isnan-nolibm.
42930         * modules/frexp (Depends-on): Likewise.
42931         * modules/frexp-tests (Depends-on): Likewise.
42932         * modules/frexp-nolibm (Depends-on): Likewise.
42933         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42934         * modules/isfinite (Depends-on): Likewise.
42935         * modules/round-tests (Depends-on): Likewise.
42936         * modules/signbit (Depends-on): Likewise.
42937         * modules/signbit-tests (Depends-on): Likewise.
42938         * modules/snprintf-posix (Depends-on): Likewise.
42939         * modules/sprintf-posix (Depends-on): Likewise.
42940         * modules/trunc-tests (Depends-on): Likewise.
42941         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42942         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42943         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42944         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42945         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42946         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42947         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42948         * modules/vasnprintf-posix (Depends-on): Likewise.
42949         * modules/vasprintf-posix (Depends-on): Likewise.
42950         * modules/vfprintf-posix (Depends-on): Likewise.
42951         * modules/vsnprintf-posix (Depends-on): Likewise.
42952         * modules/vsprintf-posix (Depends-on): Likewise.
42953         * lib/frexp.c: Include isnand.h instead of isnan.h.
42954         (ISNAN): Set to isnand instead of isnan.
42955         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42956         (gl_isfinited): Use isnand instead of isnan.
42957         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42958         (gl_signbitd): Use isnand instead of isnan.
42959         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42960         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42961         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42962         (main): Use isnand instead of isnan.
42963         * tests/test-round1.c: Include isnand.h.
42964         (main): Use isnand instead of isnan.
42965         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42966         (ISNAN): Set to isnand instead of isnan.
42967         * tests/test-trunc1.c: Include isnand.h.
42968         (main): Use isnand instead of isnan.
42969         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42970         (equal): Use isnand instead of isnan.
42971         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42972         isnand-nolibm.
42973         * NEWS: Mention the change.
42974
42975 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42976             Bruno Haible  <bruno@clisp.org>
42977
42978         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42979         the GCC builtins for signbits are present and set
42980         REPLACE_SIGNBIT_USING_GCC if so.
42981         * lib/math.in.h (signbit): Define using GCC builtins if
42982         REPLACE_SIGNBIT_USING_GCC is set.
42983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42984         REPLACE_SIGNBIT_USING_GCC.
42985         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42986
42987 2008-01-25  Jim Meyering  <meyering@redhat.com>
42988
42989         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42990         * lib/poll.c: Include <config.h>, not "config.h".
42991         * tests/test-getaddrinfo.c: Likewise.
42992
42993 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42994
42995         * modules/sockets-tests: New file.
42996
42997 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42998
42999         * modules/sockets: New module, can be used to call WSA_Startup and
43000         WSA_Cleanup when needed.
43001
43002         * lib/sockets.h, lib/sockets.c: New files.
43003
43004         * m4/sockets.m4: New file.
43005
43006         * tests/test-sockets.c: New file.
43007
43008 2008-01-19  Bruno Haible  <bruno@clisp.org>
43009
43010         * doc/posix-headers: Renamed from doc/headers.
43011         * doc/posix-functions: Renamed from doc/functions.
43012         * doc/gnulib.texi: Update.
43013
43014 2008-01-19  Bruno Haible  <bruno@clisp.org>
43015
43016         * doc/glibc-functions/strcasestr.texi: Include contents of
43017         doc/functions/strcasestr.texi, fixing the list of platforms.
43018         * doc/functions/strcasestr.texi: Remove file.
43019
43020 2008-01-19  Bruno Haible  <bruno@clisp.org>
43021
43022         * doc/glibc-functions/memmem.texi: Include contents of
43023         doc/functions/memmem.texi.
43024         * doc/functions/memmem.texi: Remove file.
43025
43026 2008-01-18  Bruno Haible  <bruno@clisp.org>
43027
43028         * doc/glibc-functions/*.texi: New files.
43029         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43030         to use the new files.
43031
43032 2008-01-17  Bruno Haible  <bruno@clisp.org>
43033
43034         * tests/test-gethostname.c (main): Fix printf statement.
43035
43036 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43037
43038         * modules/gethostname-tests: New file.
43039
43040         * tests/test-gethostname.c: New file.
43041
43042 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43043
43044         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43045         used by the UNAME case.  Reported by Bruno Haible
43046         <bruno@clisp.org>.
43047
43048 2008-01-17  Eric Blake  <ebb9@byu.net>
43049
43050         Convert c-strcasestr to be more efficient.
43051         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43052         (Depends-on): Add c-strcase, remove malloca, strnlen.
43053         * tests/test-c-strcasestr.c (main): Enhance test.
43054         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43055
43056 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43057
43058         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43059         Use it in creating po/Makevars.
43060
43061 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43062
43063         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43064         Applications that requires it should initialize libgcrypt
43065         manually.
43066
43067 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43068
43069         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43070
43071 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43072
43073         Fix problem with getdate on mingw32 reported by Simon Josefsson
43074         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43075         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43076         tzname", when deciding whether to declare tzname.
43077         * lib/strftime.c (tzname): Likewise.
43078
43079 2008-01-15  Bruno Haible  <bruno@clisp.org>
43080
43081         Work around a MacOS X 10.5 bug in frexpl().
43082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43083         * doc/functions/frexpl.texi: Document the bug.
43084         Reported by Elias Pipping <pipping@gentoo.org>.
43085
43086 2008-01-14  Eric Blake  <ebb9@byu.net>
43087
43088         Touch up previous patch.
43089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43090         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43091
43092         Convert strcasestr module to use Two-Way algorithm.
43093         * modules/strcasestr-simple: New module, based on the old
43094         strcasestr, but with Two-Way rather than KMP.
43095         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43096         * lib/string.in.h (rpl_strcasestr): Declare.
43097         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43098         performance.
43099         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43100         * modules/string (Makefile.am): Support strcasestr.
43101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43102         * modules/strcasestr-tests (Depends-on): Check for alarm.
43103         * tests/test-strcasestr.c: Augment test.
43104         * lib/str-two-way.h: Clean up stray macro.
43105         * NEWS: Document new module.
43106         * MODULES.html.sh (string handling): Likewise.
43107         * doc/functions/strcasestr.texi: New file.
43108         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43109         here, since it is not a POSIX function.
43110
43111 2008-01-14  Colin Watson  <cjwatson@debian.org>
43112             Bruno Haible  <bruno@clisp.org>
43113
43114         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43115         works fine; if not, set REPLACE_STRSIGNAL.
43116         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43118         REPLACE_STRSIGNAL.
43119         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43120         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43121         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43122
43123 2008-01-14  Bruno Haible  <bruno@clisp.org>
43124
43125         * modules/strsignal (Include): Change to <string.h>.
43126
43127 2008-01-14  Colin Watson  <cjwatson@debian.org>
43128
43129         * modules/argp (Notice): Add a notice recommending to change
43130         XGETTEXT_OPTIONS.
43131         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43132
43133 2008-01-13  Colin Watson  <cjwatson@debian.org>
43134
43135         * modules/strsignal-tests: New file.
43136         * tests/test-strsignal.c: New file.
43137
43138         * lib/strsignal.c: New file, from glibc with modifications.
43139         * lib/siglist.h: New file, from glibc with modifications.
43140         * lib/string.in.h (strsignal): New declaration.
43141         * m4/strsignal.m4: New file.
43142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43143         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43144         * modules/strsignal: New file.
43145         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43146         HAVE_DECL_STRSIGNAL.
43147
43148 2008-01-13  Bruno Haible  <bruno@clisp.org>
43149
43150         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43151         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43152         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43153         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43154
43155 2008-01-13  Bruno Haible  <bruno@clisp.org>
43156
43157         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43158         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43159         * lib/argp.h (__attribute__): Likewise.
43160         * lib/c-stack.c (__attribute__): Likewise.
43161         * lib/error.h (__attribute__): Likewise.
43162         * lib/fts.c (__attribute__): Likewise.
43163         * lib/openat.h (__attribute__): Likewise.
43164         * lib/stdio.in.h (__attribute__): Likewise.
43165         * lib/string.in.h (__attribute__): Likewise.
43166         * lib/utimens.c (__attribute__): Likewise.
43167         * lib/vasnprintf.h (__attribute__): Likewise.
43168         * lib/xalloc.h (__attribute__): Likewise.
43169         * lib/xprintf.h (__attribute__): Likewise.
43170         * lib/xstrtol.h (__attribute__): Likewise.
43171         * lib/xvasprintf.h (__attribute__): Likewise.
43172
43173 2008-01-12  Bruno Haible  <bruno@clisp.org>
43174
43175         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43176         * doc/glibc-headers/a.out.texi: New file.
43177         * doc/glibc-headers/aliases.texi: New file.
43178         * doc/glibc-headers/alloca.texi: New file.
43179         * doc/glibc-headers/ar.texi: New file.
43180         * doc/glibc-headers/argp.texi: New file.
43181         * doc/glibc-headers/argz.texi: New file.
43182         * doc/glibc-headers/byteswap.texi: New file.
43183         * doc/glibc-headers/crypt.texi: New file.
43184         * doc/glibc-headers/endian.texi: New file.
43185         * doc/glibc-headers/envz.texi: New file.
43186         * doc/glibc-headers/err.texi: New file.
43187         * doc/glibc-headers/error.texi: New file.
43188         * doc/glibc-headers/execinfo.texi: New file.
43189         * doc/glibc-headers/fpu_control.texi: New file.
43190         * doc/glibc-headers/fstab.texi: New file.
43191         * doc/glibc-headers/fts.texi: New file.
43192         * doc/glibc-headers/getopt.texi: New file.
43193         * doc/glibc-headers/ieee754.texi: New file.
43194         * doc/glibc-headers/ifaddrs.texi: New file.
43195         * doc/glibc-headers/libintl.texi: New file.
43196         * doc/glibc-headers/mcheck.texi: New file.
43197         * doc/glibc-headers/mntent.texi: New file.
43198         * doc/glibc-headers/obstack.texi: New file.
43199         * doc/glibc-headers/paths.texi: New file.
43200         * doc/glibc-headers/printf.texi: New file.
43201         * doc/glibc-headers/pty.texi: New file.
43202         * doc/glibc-headers/resolv.texi: New file.
43203         * doc/glibc-headers/shadow.texi: New file.
43204         * doc/glibc-headers/sysexits.texi: New file.
43205         * doc/glibc-headers/ttyent.texi: New file.
43206
43207 2008-01-12  Jim Meyering  <meyering@redhat.com>
43208
43209         announce-gen: emit Gnulib's git-based version string.
43210         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43211         New option --gnulib-version=V, where V is expected to be
43212         the output of running git describe in the gnulib directory.
43213         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43214         not useful, and plan to stop publishing an xdelta file with each
43215         coreutils release.
43216
43217         * build-aux/announce-gen: Also check for lzma-compressed files.
43218
43219 2008-01-11  Bruno Haible  <bruno@clisp.org>
43220
43221         * tests/test-memmem.c (main): Increase maximum allowed time.
43222         * tests/test-strstr.c (main): Likewise.
43223
43224 2008-01-11  Bruno Haible  <bruno@clisp.org>
43225
43226         * doc/functions/memmem.texi: Add more precisions about platforms.
43227         * doc/functions/strstr.texi: Likewise.
43228
43229 2008-01-10  Eric Blake  <ebb9@byu.net>
43230
43231         * m4/strstr.m4: Delete cruft from copy-n-paste.
43232         Reported by Bruno Haible.
43233
43234 2008-01-10  Bruno Haible  <bruno@clisp.org>
43235
43236         Make c-strstr rely on strstr.
43237         * lib/c-strstr.c: Don't include str-kmp.h.
43238         (c_strstr): Define in terms of strstr.
43239         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43240         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43241
43242 2008-01-10  Bruno Haible  <bruno@clisp.org>
43243
43244         * doc/gnulib.texi (String Functions in C Locale): New section.
43245         * doc/c-ctype.texi: New file.
43246         * doc/c-strcase.texi: New file.
43247         * doc/c-strcaseeq.texi: New file.
43248         * doc/c-strcasestr.texi: New file.
43249         * doc/c-strstr.texi: New file.
43250         * doc/c-strtod.texi: New file.
43251         * doc/c-strtold.texi: New file.
43252
43253 2008-01-10  Eric Blake  <ebb9@byu.net>
43254
43255         * lib/relocatable.h: Fix a comment.
43256
43257 2008-01-10  Eric Blake  <ebb9@byu.net>
43258
43259         Share two-way algorithm.
43260         * lib/str-two-way.h: New file, merged from...
43261         * lib/memmem.c: ...here...
43262         * lib/strstr.c: ...and here.
43263         * modules/memmem (Files): Use it.
43264         * modules/strstr (Files): Likewise.
43265
43266         Avoid quadratic strstr implementations.
43267         * lib/strstr.c: New file.
43268         * m4/strstr.m4: Likewise.
43269         * modules/strstr: Likewise.
43270         * modules/strstr-tests: Likewise.
43271         * tests/test-strstr.c: Likewise.
43272         * lib/string.in.h (rpl_strstr): Declare.
43273         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43275         * modules/string (Makefile.am): Likewise.
43276         * MODULES.html.sh (string handling): Mention new module.
43277         * doc/functions/strstr.texi (strstr): Document the bug.
43278
43279 2008-01-10  Bruno Haible  <bruno@clisp.org>
43280
43281         * lib/relocatable.h (relocate): State whether result is freshly
43282         allocated or not.
43283         * lib/relocatable.c (relocate): Return a freshly allocated string
43284         instead of a pointer to a privately held string.
43285         Reported by Sylvain Beucler <beuc@gnu.org>.
43286
43287 2008-01-10  Colin Watson  <cjwatson@debian.org>
43288
43289         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43290         s/S_ISNLK/S_ISLNK/.
43291
43292 2008-01-09  Bruno Haible  <bruno@clisp.org>
43293
43294         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43295         and other files.
43296         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43297         if it's only a guess.
43298         * modules/memmem: Simplify by depending on memmem-simple.
43299
43300 2008-01-09  Bruno Haible  <bruno@clisp.org>
43301
43302         Work around OpenBSD 4.0 tdelete() bug.
43303         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43304         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43305         macros and don't redefine the enum values.
43306         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43307         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43308         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43309
43310 2008-01-09  Bruno Haible  <bruno@clisp.org>
43311
43312         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43313         (main): Don't perform the tests if setlocale did not install a UTF-8
43314         locale. Needed on OpenBSD 4.0.
43315         * modules/wcwidth-tests (Depends-on): Add localcharset.
43316
43317 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43318
43319         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43320         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43321         * NEWS: announce this.
43322         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43323
43324 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43325         and Eric Blake  <ebb9@byu.net>
43326
43327         Add memmem-simple module.
43328         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43329         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43330         * modules/memmem-simple: New file.
43331         * modules/memmem (Description): Tweak.
43332         * MODULES.html.sh (string handling): Mention new module.
43333         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43334         addressed by memmem-simple.
43335         * NEWS: Document the difference.
43336
43337 2008-01-09  Eric Blake  <ebb9@byu.net>
43338
43339         Give gcc some memmem optimization hints.
43340         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43341         (strcasestr): Declare as pure.
43342         * modules/memmem (Maintainer): Claim my implementation.
43343
43344 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43345
43346         Support AIX 6.1 and higher.
43347         * build-aux/config.libpath: Likewise.
43348         * build-aux/config.rpath: Likewise.
43349
43350 2008-01-08  Jim Meyering  <meyering@redhat.com>
43351             Bruno Haible  <bruno@clisp.org>
43352
43353         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43354         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43355         Reported by Peter Fales in
43356         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43357
43358 2008-01-08  Bruno Haible  <bruno@clisp.org>
43359
43360         * modules/unictype/category-of (Depends-on): Add
43361         unictype/category-none.
43362         * modules/unictype/category-and-tests (Depends-on): Add
43363         unictype/category-{L,N,Lu,Nd}.
43364         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43365         * modules/unictype/category-or-tests (Depends-on): Add
43366         unictype/category-{L,N}.
43367         * modules/unictype/category-name-tests (Depends-on): Add
43368         unictype/category-{Z,Nl}.
43369         Reported by Simon Josefsson.
43370
43371 2008-01-08  Bruno Haible  <bruno@clisp.org>
43372
43373         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43374         convention better.
43375         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43376         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43377         Reported by Peter Miller <millerp@canb.auug.org.au>.
43378
43379 2008-01-08  Eric Blake  <ebb9@byu.net>
43380
43381         Rewrite memmem to guarantee linear complexity without malloc.
43382         * lib/memmem.c (memmem): Use Two-Way rather than
43383         Knuth-Morris-Pratt, to allow O(1) space usage.
43384         (critical_factorization, two_way_short_needle)
43385         (two_way_long_needle): New functions.
43386         (knuth_morris_pratt): Delete.
43387         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43388         Add stdint.
43389         * tests/test-memmem.c (main): Add tests for periodic needle and
43390         sublinear performance.
43391         * doc/functions/memmem.texi (memmem): Document other deficiencies
43392         in cygwin and older glibc.
43393
43394 2008-01-08  Bruno Haible  <bruno@clisp.org>
43395
43396         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43397         augmentation.
43398
43399 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43400
43401         Add a configure time option: --disable-acl.
43402         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43403         AC_ARG_ENABLE(acl).
43404
43405 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43406
43407         * tests/test-localename.c: Don't include obsolete "setenv.h".
43408
43409         * modules/localename-tests (Depends-on): Need unsetenv.
43410
43411 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43412
43413         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43414
43415 2008-01-06  Colin Watson  <cjwatson@debian.org>
43416
43417         * users.txt: Add man-db.
43418
43419 2008-01-07  Bruno Haible  <bruno@clisp.org>
43420
43421         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43422         previous section name.
43423
43424 2008-01-07  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/progname.c (set_program_name): Don't strip off a leading
43427         "lt-" prefix outside a .libs directory.
43428         Suggested by Paul Eggert.
43429
43430 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43431             Bruno Haible  <bruno@clisp.org>
43432
43433         Improve memory cleanup in 'relocatable' module.
43434         * lib/relocatable.h (compute_curr_prefix): Change return type to
43435         'char *'.
43436         * lib/relocatable.c (compute_curr_prefix): Change return type to
43437         'char *'. Free curr_installdir after use.
43438         (relocate): Free curr_prefix_better after use.
43439         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43440
43441 2008-01-01  Bruno Haible  <bruno@clisp.org>
43442
43443         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43444         failure on older glibc systems.
43445         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43446
43447 2008-01-05  Eric Blake  <ebb9@byu.net>
43448
43449         Avoid quadratic system memmem.
43450         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43451         Reported by Ralf Wildenhues.
43452
43453         Fix memmem test for mingw.
43454         * modules/memmem-tests (configure.ac): Check for alarm.
43455         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43456         it.
43457         * doc/functions/memmem.texi: New file.
43458         * doc/gnulib.texi (Function Substitutes): Add memmem.
43459         Reported by Bruno Haible.
43460
43461 2008-01-04  Bruno Haible  <bruno@clisp.org>
43462
43463         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43464         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43465         gl_HEADER_STRING_H_DEFAULTS.
43466
43467 2008-01-04  Eric Blake  <ebb9@byu.net>
43468
43469         Shorten duration of memmem test.
43470         * tests/test-memmem.c (main): Use alarm to declare failure if test
43471         is taking too long.
43472         Reported by Ralf Wildenhues.
43473
43474 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43475
43476         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43477         string, needed by strerror.
43478
43479 2008-01-03  Colin Watson  <cjwatson@debian.org>
43480             Bruno Haible  <bruno@clisp.org>
43481
43482         * doc/gnulib-tool.texi (Localization): New section.
43483
43484 2008-01-02  Bruno Haible  <bruno@clisp.org>
43485
43486         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43487         variables to 'unsigned char *' type.
43488         Reported by Paul Eggert.
43489
43490 2008-01-02  Jim Meyering  <jim@meyering.net>
43491
43492         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43493
43494 2007-12-31  Jim Meyering  <jim@meyering.net>
43495
43496         Avoid use of private FTS type name.
43497         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43498
43499 2007-12-30  Karl Berry  <karl@gnu.org>
43500
43501         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43502         work around defect in Texinfo and/or the standalone Info browser.
43503
43504 2007-12-30  Bruno Haible  <bruno@clisp.org>
43505
43506         Unify 5 copies of the KMP code.
43507         * lib/str-kmp.h: New file.
43508         * lib/c-strcasestr.c: Include str-kmp.h.
43509         (knuth_morris_pratt): Remove function.
43510         (c_strcasestr): Update.
43511         * lib/c-strstr.c: Include str-kmp.h.
43512         (knuth_morris_pratt): Remove function.
43513         (c_strcasestr): Update.
43514         * lib/mbscasestr.c: Include str-kmp.h.
43515         (knuth_morris_pratt_unibyte): Remove function.
43516         * lib/mbsstr.c: Include str-kmp.h.
43517         (knuth_morris_pratt_unibyte): Remove function.
43518         * lib/strcasestr.c: Include str-kmp.h.
43519         (knuth_morris_pratt): Remove function.
43520         (strcasestr): Update.
43521         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43522         * modules/c-strstr (Files): Likewise.
43523         * modules/mbscasestr (Files): Likewise.
43524         * modules/mbsstr (Files): Likewise.
43525         * modules/strcasestr (Files): Likewise.
43526         Suggested by Paul Eggert.
43527
43528 2007-12-30  Bruno Haible  <bruno@clisp.org>
43529
43530         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43531         defined.
43532
43533 2007-12-30  Bruno Haible  <bruno@clisp.org>
43534
43535         * lib/xmalloca.h: Include xalloc.h.
43536         (xnmalloca): New macro.
43537
43538 2007-12-30  Bruno Haible  <bruno@clisp.org>
43539
43540         * lib/malloca.h (nmalloca): New macro.
43541         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43542         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43543         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43544         knuth_morris_pratt_multibyte): Likewise.
43545         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43546         knuth_morris_pratt_multibyte): Likewise.
43547         * lib/memmem.c (knuth_morris_pratt): Likewise.
43548         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43549
43550 2007-12-25  Bruno Haible  <bruno@clisp.org>
43551
43552         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43553         * lib/glob.c: Don't include openat.h.
43554         (link_exists2_p): Add back the code that deals with the
43555         !GLOB_ALTDIRFUNC case.
43556         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43557         let it do the filename concatenation.
43558         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43559         * modules/glob (Depends-on): Remove openat.
43560
43561 2007-12-31  Bruno Haible  <bruno@clisp.org>
43562
43563         * modules/dirfd (License): Change to LGPLv2+.
43564         Approved by Jim Meyering.
43565
43566 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43567
43568         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43569         when multiplying M by sizeof (size_t).
43570
43571 2007-12-10  Martin Lambers  <marlam@marlam.de>
43572
43573         Override getpagesize on mingw.
43574         * lib/getpagesize.c: New file.
43575         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43576         * modules/getpagesize (Files): Add lib/getpagesize.c.
43577         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43579         REPLACE_GETPAGESIZE.
43580         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43581
43582 2007-12-25  Bruno Haible  <bruno@clisp.org>
43583
43584         * modules/localcharset (Notice): New field.
43585         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43586         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43587
43588 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43589             Bruno Haible  <bruno@clisp.org>
43590
43591         Avoid using the syntax symbol() in formatted documentation.
43592         * MODULES.html.sh (func_module): When replacing symbol() with a
43593         hyperlink, remove the parentheses. Show an error if some remain.
43594         Recognize and render the '...' syntax.
43595         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43596         Rework. Add paragraph about GCC's inlining.
43597         * doc/alloca.texi: Likewise.
43598         * doc/error.texi: Remove parentheses from symbol reference.
43599         * doc/gnulib-intro.texi: Likewise.
43600         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43601         * modules/fnmatch (Description): Reword to say "the ... function".
43602         * modules/full-read (Description): Likewise.
43603         * modules/full-write (Description): Likewise.
43604         * modules/safe-read (Description): Likewise.
43605         * modules/safe-write (Description): Likewise.
43606         * modules/strchrnul (Description): Likewise.
43607         * modules/trim (Description): Likewise.
43608         * modules/error (Description): Remove parentheses from symbol
43609         references.
43610         * modules/verror (Description): Likewise.
43611         Reported by Karl Berry.
43612
43613 2007-12-25  Bruno Haible  <bruno@clisp.org>
43614
43615         Fixup after 2007-10-16 commit.
43616         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43617
43618 2007-12-24  Bruno Haible  <bruno@clisp.org>
43619
43620         Make --enable-relocatable work with DESTDIR.
43621         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43622         to compute installdir from destprog.
43623         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43624         also set the RELOC_DESTDIR variable.
43625         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43626
43627 2007-12-24  Bruno Haible  <bruno@clisp.org>
43628
43629         Fix link error due to xalloc_die().
43630         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43631         of xreadlink.
43632         * lib/relocwrapper.c: Update comments.
43633         * build-aux/install-reloc: Remove xreadlink.c from file list.
43634         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43635         xreadlink.c.
43636         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43637
43638 2007-12-24  Bruno Haible  <bruno@clisp.org>
43639
43640         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43641         * lib/setenv.h: Remove file.
43642         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43643         lib/setenv.h.
43644         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43645         (Depends-on): Add stdlib.
43646         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43647         gl_FUNC_UNSETENV.
43648         (Include): Replace setenv.h with <stdlib.h>.
43649         * modules/unsetenv: New file.
43650         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43651         * lib/unsetenv.c: Include <stdlib.h> first.
43652         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43653         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43654         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43655         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43656         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43657         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43659         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43660         * doc/functions/unsetenv.texi: Update.
43661         * modules/xsetenv (Depends-on): Add unsetenv.
43662         * modules/getdate (Depends-on): Likewise.
43663         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43664         * lib/xsetenv.c: Don't include setenv.h.
43665         * lib/getdate.y: Likewise.
43666         * lib/relocwrapper.c: Likewise.
43667         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43668         (Depends-on): Add stdlib.
43669         * NEWS: Mention the changes.
43670         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43671
43672 2007-12-23  Bruno Haible  <bruno@clisp.org>
43673
43674         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43675         indentation.
43676
43677 2007-12-23  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/c-strcasestr.c: Add more comments.
43680         * lib/c-strstr.c: Likewise.
43681         * lib/mbscasestr.c: Likewise.
43682         * lib/mbsstr.c: Likewise.
43683         * lib/strcasestr.c: Likewise.
43684         * lib/memmem.c: Likewise.
43685
43686 2007-12-23  Bruno Haible  <bruno@clisp.org>
43687
43688         * tests/test-memmem.c: Include <string.h> first.
43689
43690 2007-12-22  Bruno Haible  <bruno@clisp.org>
43691
43692         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43693         the contents of $testsbase.
43694         Reported by Ralf Wildenhues.
43695
43696 2007-12-22  Bruno Haible  <bruno@clisp.org>
43697
43698         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43699         two variables local_ldadd_before, local_ldadd_last.
43700
43701 2007-12-20  Eric Blake  <ebb9@byu.net>
43702
43703         Work around circular library issue when cross-compiling.
43704         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43705         that progname.o does not need to pull in rpl_memcmp.
43706
43707 2007-12-19  Eric Blake  <ebb9@byu.net>
43708
43709         Fix memmem to avoid O(n^2) worst-case complexity.
43710         * lib/memmem.c (knuth_morris_pratt): New function.
43711         (memmem): Use it if first few naive iterations fail.
43712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43713         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43714         * modules/memchr (License): Likewise.
43715         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43716         malloca.
43717         * tests/test-memmem.c: Rewrite, borrowing ideas from
43718         test-mbsstr1.c; the old version wouldn't even compile!
43719         * modules/memmem-tests: New file.
43720         * lib/string.in.h (rpl_memmem): Add declaration.
43721         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43723         REPLACE_MEMMEM.
43724
43725 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43726
43727         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43728         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43729         before any system include files, and undef after them all.  This
43730         should fix a problem on VMS reported by John E. Malmberg in
43731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43732
43733 2007-12-17  Eric Blake  <ebb9@byu.net>
43734
43735         Revert addition of verify, for BSD/OS.
43736         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43737         can't handle large files, for the sake of obsolete platforms.
43738         * modules/fseeko (Depends-on): Remove verify.
43739         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43740         * doc/functions/ftello.texi (ftello): Likewise.
43741         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43742         Reported by Larry Jones.
43743
43744 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43745
43746         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43747         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43748
43749 2007-12-17  Jim Meyering  <meyering@redhat.com>
43750
43751         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43752         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43753         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43754         * modules/getcwd (Depends-on): Add openat.
43755         Reported by Petr Salinger.
43756
43757 2007-12-17  Bruno Haible  <bruno@clisp.org>
43758
43759         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43760         avoid a segmentation fault of the configure test on x86_64 systems.
43761
43762 2007-12-15  Jim Meyering  <meyering@redhat.com>
43763
43764         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43765
43766 2007-12-13  Eric Blake  <ebb9@byu.net>
43767
43768         Another fseek test.
43769         * tests/test-fseek.c (main): Also test ungetc handling.
43770         * tests/test-fseeko.c (main): Likewise.
43771         * modules/fseeko (Depends-on): Add verify.
43772         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43773         large.
43774         Reported by Larry Jones.
43775
43776         Fix fseeko on mingw.
43777         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43778         seek.
43779
43780         Beef up fseek tests.
43781         * tests/test-fseek.c (main): Also test eof handling.
43782         * tests/test-fseeko.c (main): Likewise.
43783         Reported by Larry Jones.
43784
43785 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43786
43787         Fix fseeko on BSD-based platforms.
43788         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43789         successful seek.
43790
43791 2007-12-12  Eric Blake  <ebb9@byu.net>
43792
43793         Allow circular dependency of separate libtests.a
43794         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43795         when use_libtests.
43796
43797 2007-12-11  Eric Blake  <ebb9@byu.net>
43798
43799         Fix bug with -0.0L in previous patch.
43800         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43801         * tests/test-isnan.c (main): Also test on zeroes.
43802         * tests/test-isnanf.c (main): Likewise.
43803         * tests/test-isnanl.h (main): Likewise.
43804
43805         Detect pseudo-denormals on x86 even when cross-compiling.
43806         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43807         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43808         invalid bit patterns that happen to satisfy ==.
43809
43810         Avoid link failures with separate libtests.a.
43811         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43812         last, to satisfy circular dependencies.
43813
43814 2007-12-11  Eric Blake  <ebb9@byu.net>
43815         and Bruno Haible  <bruno@clisp.org>
43816
43817         Fix OpenBSD 4.0 <float.h> handling of long double.
43818         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43819         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43820         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43821
43822 2007-12-11  Jim Meyering  <meyering@redhat.com>
43823
43824         * users.txt: Add libvirt.
43825
43826         Support versions of autoconf prior to 2.59c.
43827         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43828         if it is not already defined.
43829
43830 2007-12-09  Bruno Haible  <bruno@clisp.org>
43831
43832         Let 'gnulib-tool --import' collect sources needed for the tests in
43833         tests/ rather than in lib/.
43834         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43835         argument. If true, add rules to generate libtests.a, and put libtests.a
43836         into $(LDADD). Consider source files in subdirectories and set
43837         uses_subdirs.
43838         (func_emit_initmacro_start, func_emit_initmacro_end,
43839         func_emit_initmacro_done): Pass all arguments explicitly.
43840         (func_import): Determine two module lists main_modules,
43841         testsrelated_modules. Determine use_libtests. Determine two variables
43842         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43843         instead of just sed_transform_lib_file. Determine two variables
43844         main_files and testsrelated_files. Compute 'files' as the union of
43845         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43846         func_add_or_update. In the generated gnulib-comp.m4, collect the
43847         object files for tests/ in different variables than those for lib/.
43848         Substitute LIBTESTS_LIBDEPS.
43849         (func_create_testdir): Combine the uses_subdirs results from
43850         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43851
43852 2007-12-09  Bruno Haible  <bruno@clisp.org>
43853
43854         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43855         the build-aux directory.
43856
43857 2007-12-09  Bruno Haible  <bruno@clisp.org>
43858
43859         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43860         introduced on 2006-09-09.
43861
43862 2007-12-07  Jim Meyering  <meyering@redhat.com>
43863
43864         Let these macros work also with autoconf-2.59.
43865         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43866         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43867         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43868
43869 2007-12-06  Jim Meyering  <meyering@redhat.com>
43870
43871         Avoid a configure-time syntax error in gl_FUNC_ACL.
43872         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43873         function in each branch, before testing the cache variable.
43874
43875 2007-12-04  Eric Blake  <ebb9@byu.net>
43876
43877         Make scripts executable.
43878         * build-aux/config.guess: Add execute permissions.
43879         * build-aux/config.sub: Likewise.
43880         * build-aux/gendocs.sh: Likewise.
43881
43882         Fix frexp on mingw.
43883         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43884         cross-compiling.
43885         * doc/functions/frexp.texi (frexp): Document the bug.
43886
43887         Make cygwin fseeko check more reliable.
43888         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43889         version numbers, rather than unrelated feature check.
43890         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43891         * doc/functions/ftello.texi (ftello): Likewise.
43892         Reported by Bruno Haible.
43893
43894         * m4/strerror.m4: Bump version number.
43895
43896 2007-12-03  Bruno Haible  <bruno@clisp.org>
43897
43898         * doc/functions/mprotect.texi: Mention the mingw problem.
43899
43900 2007-12-03  Eric Blake  <ebb9@byu.net>
43901
43902         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43903         REPLACE_STRERROR is initialized before this macro.
43904
43905 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43906
43907         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43908         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43909         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43910         put -lsec in even for programs other than 'ls'.  This fixes a problem
43911         for gettext reported by Bruno Haible in
43912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43913         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43914         Add support for Solaris 10.  This isn't efficient, but should get the
43915         job done for now.
43916
43917 2007-12-03  James Youngman  <jay@gnu.org>
43918
43919         * doc/regexprops-generic.texi: change "an close-group" to "a
43920         close-group" and "illegal" to "not allowed".
43921
43922 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43923
43924         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43925         pr_byname.h. Needed for the rare case when the maintainer has done
43926         "make maintainer-clean" in the source directory and then attempts a
43927         build outside the source directory.
43928         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43929         scripts_byname.h.
43930
43931 2007-12-02  Martin Lambers <marlam@marlam.de>
43932             Bruno Haible  <bruno@clisp.org>
43933
43934         * lib/getpagesize.h: Remove file.
43935         * lib/unistd.in.h: Include declaration of getpagesize here.
43936         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43937         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43938         HAVE_SYS_PARAM_H.
43939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43940         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43941         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43942         (Depends-on): Add unistd.
43943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43944         (Include): Use <unistd.h> instead of getpagesize.h.
43945         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43946         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43947         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43948         gl_GETPAGESIZE invocation, already handled by module dependency.
43949         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43950
43951 2007-12-02  Bruno Haible  <bruno@clisp.org>
43952
43953         * modules/strings-tests: New file.
43954         * tests/test-strings.c: New file.
43955
43956         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43957         * lib/strings.in.h: New file.
43958         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43959         * m4/strings_h.m4: New file.
43960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43961         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43962         * modules/strings: New file.
43963         * modules/string (Makefile.am): Update.
43964         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43965         Reported by Karl Berry.
43966
43967 2007-12-01  Eric Blake  <ebb9@byu.net>
43968
43969         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43970         accomodate fix in cygwin 1.5.25.
43971
43972 2007-12-01  Jim Meyering  <meyering@redhat.com>
43973
43974         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43975         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43976         that would inhibit utf8-optimization of a regexp containing line-
43977         or buffer-anchors, e.g., `^', `$'.
43978
43979 2007-11-30  Bruno Haible  <bruno@clisp.org>
43980
43981         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43982         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43983         glthread_recursive_lock_init.
43984         * lib/lock.c (glthread_recursive_lock_init)
43985         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43986         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43987
43988 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43989
43990         New function qset_acl, like set_acl but with syscall semantics.
43991         * lib/acl.h (qset_acl): New decl.
43992         * lib/acl.c (qset_acl): New function.
43993         (set_acl): Use new function.  Use more-consistent diagnostics.
43994
43995 2007-11-28  Jim Meyering  <meyering@redhat.com>
43996
43997         * modules/physmem (License): Change from GPL to LGPLv2+.
43998
43999 2007-11-26  Bruno Haible  <bruno@clisp.org>
44000
44001         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44002         'long double' type has excess precision.
44003         Reported by Jim Meyering in
44004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44005
44006 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44007
44008         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44009         Sync from <http://gnu.org/licenses>.
44010         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44011         with license text from same location.
44012         * doc/maintain.texi, doc/standards.texi:  Sync from
44013         <http://savannah.gnu.org/projects/gnustandards>.
44014
44015 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44016         and Jim Meyering  <meyering@redhat.com>
44017
44018         Adjust getdate' grammar to accept a slightly more regular language.
44019         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44020         Before, the former was rejected.
44021         * lib/getdate.y (digits_to_date_time): New function, factored
44022         out of ...
44023         (number): ...here.  Just call digits_to_date_time.
44024         (hybrid): New non-terminal to handle an <unsigned number,
44025         signed relative offset> sequence consistently.
44026
44027 2007-11-18  Jim Meyering  <meyering@redhat.com>
44028
44029         Pull my changes from coreutils:
44030         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44031         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44032         use of $gnulib_tool_option_extras, so that it's separated from the
44033         preceding argument.
44034
44035         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44036         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44037         parent destination directories before copying a file into place.
44038
44039 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44040
44041         bootstrap: work also with 4-argument variant of AC_INIT
44042         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44043
44044 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44045
44046         Port test-getaddrinfo to Solaris.
44047         Problem reported by Bruno Haible in
44048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44049         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44050         explanation of setting 'hints'.
44051         Don't reject an implementation merely because it returns EAI_SERVICE.
44052         (EAI_SERVICE): Define to 0 if not defined.
44053
44054 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44055
44056         The license of gnu-make and posix-shell is now "GPLed build tool".
44057         * modules/gnu-make (License): Likewise.
44058         * modules/posix-shell (License): Likewise.
44059
44060         New module posix-shell, for determining a POSIX shell
44061         or perhaps something that is close enough to a POSIX shell.
44062         * m4/posix-shell.m4: New file.
44063         * modules/posix-shell: New file.
44064
44065         * MODULES.html.sh: Mention new module.
44066
44067         New module gnu-make, for determining whether we're using GNU Make.
44068         * m4/gnu-make.m4: New file.
44069         * modules/gnu-make: New file.
44070         * MODULES.html.sh: Mention new module.
44071
44072 2007-11-14  Jim Meyering  <meyering@redhat.com>
44073
44074         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44075         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44076         use this macro to create a function _definition_.
44077         Remove useless "#undef ARGMATCH_DIE".
44078
44079 2007-11-14  Bruno Haible  <bruno@clisp.org>
44080
44081         * lib/config.charset: Update for OpenBSD 4.1.
44082         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44083
44084 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44085
44086         Document 64-bit #if problems in stdint.texi.
44087         * doc/headers/stdint.texi (stdint.h): Mention problems with
44088         64-bit-#if, and how to work around them.
44089
44090         Don't insist on 'long long int' support in the preprocessor.  It
44091         breaks too many things.  For example, PRIdMAX still uses a 'long
44092         long int' format with the latest Sun compiler, even though
44093         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44094         preprocessor problem.  This causes the latest coreutils to dump
44095         core on Solaris 10 sparc with the Sun C compiler.
44096         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44097         the troublesome expressions at configure-time, not at #if-time.
44098         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44099         preprocessor.
44100         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44101         compile-time C checks, done at 'configure'-time.
44102         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44103         * modules/inttypes (Makefile): Substitute the new symbols that
44104         gl_INTTYPES_H now generates.
44105         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44106
44107 2007-11-12  Bruno Haible  <bruno@clisp.org>
44108
44109         Tests for Unicode character classification functions.
44110
44111         * modules/unictype/bidicategory-byname-tests: New file.
44112         * modules/unictype/bidicategory-name-tests: New file.
44113         * modules/unictype/bidicategory-of-tests: New file.
44114         * modules/unictype/bidicategory-test-tests: New file.
44115         * modules/unictype/block-list-tests: New file.
44116         * modules/unictype/block-of-tests: New file.
44117         * modules/unictype/block-test-tests: New file.
44118         * modules/unictype/category-C-tests: New file.
44119         * modules/unictype/category-Cc-tests: New file.
44120         * modules/unictype/category-Cf-tests: New file.
44121         * modules/unictype/category-Cn-tests: New file.
44122         * modules/unictype/category-Co-tests: New file.
44123         * modules/unictype/category-Cs-tests: New file.
44124         * modules/unictype/category-L-tests: New file.
44125         * modules/unictype/category-Ll-tests: New file.
44126         * modules/unictype/category-Lm-tests: New file.
44127         * modules/unictype/category-Lo-tests: New file.
44128         * modules/unictype/category-Lt-tests: New file.
44129         * modules/unictype/category-Lu-tests: New file.
44130         * modules/unictype/category-M-tests: New file.
44131         * modules/unictype/category-Mc-tests: New file.
44132         * modules/unictype/category-Me-tests: New file.
44133         * modules/unictype/category-Mn-tests: New file.
44134         * modules/unictype/category-N-tests: New file.
44135         * modules/unictype/category-Nd-tests: New file.
44136         * modules/unictype/category-Nl-tests: New file.
44137         * modules/unictype/category-No-tests: New file.
44138         * modules/unictype/category-P-tests: New file.
44139         * modules/unictype/category-Pc-tests: New file.
44140         * modules/unictype/category-Pd-tests: New file.
44141         * modules/unictype/category-Pe-tests: New file.
44142         * modules/unictype/category-Pf-tests: New file.
44143         * modules/unictype/category-Pi-tests: New file.
44144         * modules/unictype/category-Po-tests: New file.
44145         * modules/unictype/category-Ps-tests: New file.
44146         * modules/unictype/category-S-tests: New file.
44147         * modules/unictype/category-Sc-tests: New file.
44148         * modules/unictype/category-Sk-tests: New file.
44149         * modules/unictype/category-Sm-tests: New file.
44150         * modules/unictype/category-So-tests: New file.
44151         * modules/unictype/category-Z-tests: New file.
44152         * modules/unictype/category-Zl-tests: New file.
44153         * modules/unictype/category-Zp-tests: New file.
44154         * modules/unictype/category-Zs-tests: New file.
44155         * modules/unictype/category-and-not-tests: New file.
44156         * modules/unictype/category-and-tests: New file.
44157         * modules/unictype/category-byname-tests: New file.
44158         * modules/unictype/category-name-tests: New file.
44159         * modules/unictype/category-none-tests: New file.
44160         * modules/unictype/category-of-tests: New file.
44161         * modules/unictype/category-or-tests: New file.
44162         * modules/unictype/category-test-withtable-tests: New file.
44163         * modules/unictype/combining-class-tests: New file.
44164         * modules/unictype/ctype-alnum-tests: New file.
44165         * modules/unictype/ctype-alpha-tests: New file.
44166         * modules/unictype/ctype-blank-tests: New file.
44167         * modules/unictype/ctype-cntrl-tests: New file.
44168         * modules/unictype/ctype-digit-tests: New file.
44169         * modules/unictype/ctype-graph-tests: New file.
44170         * modules/unictype/ctype-lower-tests: New file.
44171         * modules/unictype/ctype-print-tests: New file.
44172         * modules/unictype/ctype-punct-tests: New file.
44173         * modules/unictype/ctype-space-tests: New file.
44174         * modules/unictype/ctype-upper-tests: New file.
44175         * modules/unictype/ctype-xdigit-tests: New file.
44176         * modules/unictype/decimal-digit-tests: New file.
44177         * modules/unictype/digit-tests: New file.
44178         * modules/unictype/mirror-tests: New file.
44179         * modules/unictype/numeric-tests: New file.
44180         * modules/unictype/property-alphabetic-tests: New file.
44181         * modules/unictype/property-ascii-hex-digit-tests: New file.
44182         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44183         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44184         * modules/unictype/property-bidi-block-separator-tests: New file.
44185         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44186         * modules/unictype/property-bidi-common-separator-tests: New file.
44187         * modules/unictype/property-bidi-control-tests: New file.
44188         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44189         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44190         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44191         * modules/unictype/property-bidi-european-digit-tests: New file.
44192         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44193         * modules/unictype/property-bidi-left-to-right-tests: New file.
44194         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44195         * modules/unictype/property-bidi-other-neutral-tests: New file.
44196         * modules/unictype/property-bidi-pdf-tests: New file.
44197         * modules/unictype/property-bidi-segment-separator-tests: New file.
44198         * modules/unictype/property-bidi-whitespace-tests: New file.
44199         * modules/unictype/property-byname-tests: New file.
44200         * modules/unictype/property-combining-tests: New file.
44201         * modules/unictype/property-composite-tests: New file.
44202         * modules/unictype/property-currency-symbol-tests: New file.
44203         * modules/unictype/property-dash-tests: New file.
44204         * modules/unictype/property-decimal-digit-tests: New file.
44205         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44206         * modules/unictype/property-deprecated-tests: New file.
44207         * modules/unictype/property-diacritic-tests: New file.
44208         * modules/unictype/property-extender-tests: New file.
44209         * modules/unictype/property-format-control-tests: New file.
44210         * modules/unictype/property-grapheme-base-tests: New file.
44211         * modules/unictype/property-grapheme-extend-tests: New file.
44212         * modules/unictype/property-grapheme-link-tests: New file.
44213         * modules/unictype/property-hex-digit-tests: New file.
44214         * modules/unictype/property-hyphen-tests: New file.
44215         * modules/unictype/property-id-continue-tests: New file.
44216         * modules/unictype/property-id-start-tests: New file.
44217         * modules/unictype/property-ideographic-tests: New file.
44218         * modules/unictype/property-ids-binary-operator-tests: New file.
44219         * modules/unictype/property-ids-trinary-operator-tests: New file.
44220         * modules/unictype/property-ignorable-control-tests: New file.
44221         * modules/unictype/property-iso-control-tests: New file.
44222         * modules/unictype/property-join-control-tests: New file.
44223         * modules/unictype/property-left-of-pair-tests: New file.
44224         * modules/unictype/property-line-separator-tests: New file.
44225         * modules/unictype/property-logical-order-exception-tests: New file.
44226         * modules/unictype/property-lowercase-tests: New file.
44227         * modules/unictype/property-math-tests: New file.
44228         * modules/unictype/property-non-break-tests: New file.
44229         * modules/unictype/property-not-a-character-tests: New file.
44230         * modules/unictype/property-numeric-tests: New file.
44231         * modules/unictype/property-other-alphabetic-tests: New file.
44232         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44233         * modules/unictype/property-other-grapheme-extend-tests: New file.
44234         * modules/unictype/property-other-id-continue-tests: New file.
44235         * modules/unictype/property-other-id-start-tests: New file.
44236         * modules/unictype/property-other-lowercase-tests: New file.
44237         * modules/unictype/property-other-math-tests: New file.
44238         * modules/unictype/property-other-uppercase-tests: New file.
44239         * modules/unictype/property-paired-punctuation-tests: New file.
44240         * modules/unictype/property-paragraph-separator-tests: New file.
44241         * modules/unictype/property-pattern-syntax-tests: New file.
44242         * modules/unictype/property-pattern-white-space-tests: New file.
44243         * modules/unictype/property-private-use-tests: New file.
44244         * modules/unictype/property-punctuation-tests: New file.
44245         * modules/unictype/property-quotation-mark-tests: New file.
44246         * modules/unictype/property-radical-tests: New file.
44247         * modules/unictype/property-sentence-terminal-tests: New file.
44248         * modules/unictype/property-soft-dotted-tests: New file.
44249         * modules/unictype/property-space-tests: New file.
44250         * modules/unictype/property-terminal-punctuation-tests: New file.
44251         * modules/unictype/property-test-tests: New file.
44252         * modules/unictype/property-titlecase-tests: New file.
44253         * modules/unictype/property-unassigned-code-value-tests: New file.
44254         * modules/unictype/property-unified-ideograph-tests: New file.
44255         * modules/unictype/property-uppercase-tests: New file.
44256         * modules/unictype/property-variation-selector-tests: New file.
44257         * modules/unictype/property-white-space-tests: New file.
44258         * modules/unictype/property-xid-continue-tests: New file.
44259         * modules/unictype/property-xid-start-tests: New file.
44260         * modules/unictype/property-zero-width-tests: New file.
44261         * modules/unictype/scripts-tests: New file.
44262         * modules/unictype/syntax-c-ident-tests: New file.
44263         * modules/unictype/syntax-c-whitespace-tests: New file.
44264         * modules/unictype/syntax-java-ident-tests: New file.
44265         * modules/unictype/syntax-java-whitespace-tests: New file.
44266         * tests/unictype/test-bidi_byname.c: New file.
44267         * tests/unictype/test-bidi_name.c: New file.
44268         * tests/unictype/test-bidi_of.c: New file.
44269         * tests/unictype/test-bidi_test.c: New file.
44270         * tests/unictype/test-block_list.c: New file.
44271         * tests/unictype/test-block_of.c: New file.
44272         * tests/unictype/test-block_test.c: New file.
44273         * tests/unictype/test-categ_and.c: New file.
44274         * tests/unictype/test-categ_and_not.c: New file.
44275         * tests/unictype/test-categ_byname.c: New file.
44276         * tests/unictype/test-categ_name.c: New file.
44277         * tests/unictype/test-categ_none.c: New file.
44278         * tests/unictype/test-categ_of.c: New file.
44279         * tests/unictype/test-categ_or.c: New file.
44280         * tests/unictype/test-categ_test_withtable.c: New file.
44281         * tests/unictype/test-combining.c: New file.
44282         * tests/unictype/test-decdigit.c: New file.
44283         * tests/unictype/test-digit.c: New file.
44284         * tests/unictype/test-mirror.c: New file.
44285         * tests/unictype/test-numeric.c: New file.
44286         * tests/unictype/test-pr_byname.c: New file.
44287         * tests/unictype/test-pr_test.c: New file.
44288         * tests/unictype/test-predicate-part1.h: New file.
44289         * tests/unictype/test-predicate-part2.h: New file.
44290         * tests/unictype/test-scripts.c: New file.
44291         * tests/unictype/test-sy_c_ident.c: New file.
44292         * tests/unictype/test-sy_java_ident.c: New file.
44293
44294         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44295         for Unicode 5.0.0.
44296         * tests/unictype/test-categ_Cc.c: Likewise.
44297         * tests/unictype/test-categ_Cf.c: Likewise.
44298         * tests/unictype/test-categ_Cn.c: Likewise.
44299         * tests/unictype/test-categ_Co.c: Likewise.
44300         * tests/unictype/test-categ_Cs.c: Likewise.
44301         * tests/unictype/test-categ_L.c: Likewise.
44302         * tests/unictype/test-categ_Ll.c: Likewise.
44303         * tests/unictype/test-categ_Lm.c: Likewise.
44304         * tests/unictype/test-categ_Lo.c: Likewise.
44305         * tests/unictype/test-categ_Lt.c: Likewise.
44306         * tests/unictype/test-categ_Lu.c: Likewise.
44307         * tests/unictype/test-categ_M.c: Likewise.
44308         * tests/unictype/test-categ_Mc.c: Likewise.
44309         * tests/unictype/test-categ_Me.c: Likewise.
44310         * tests/unictype/test-categ_Mn.c: Likewise.
44311         * tests/unictype/test-categ_N.c: Likewise.
44312         * tests/unictype/test-categ_Nd.c: Likewise.
44313         * tests/unictype/test-categ_Nl.c: Likewise.
44314         * tests/unictype/test-categ_No.c: Likewise.
44315         * tests/unictype/test-categ_P.c: Likewise.
44316         * tests/unictype/test-categ_Pc.c: Likewise.
44317         * tests/unictype/test-categ_Pd.c: Likewise.
44318         * tests/unictype/test-categ_Pe.c: Likewise.
44319         * tests/unictype/test-categ_Pf.c: Likewise.
44320         * tests/unictype/test-categ_Pi.c: Likewise.
44321         * tests/unictype/test-categ_Po.c: Likewise.
44322         * tests/unictype/test-categ_Ps.c: Likewise.
44323         * tests/unictype/test-categ_S.c: Likewise.
44324         * tests/unictype/test-categ_Sc.c: Likewise.
44325         * tests/unictype/test-categ_Sk.c: Likewise.
44326         * tests/unictype/test-categ_Sm.c: Likewise.
44327         * tests/unictype/test-categ_So.c: Likewise.
44328         * tests/unictype/test-categ_Z.c: Likewise.
44329         * tests/unictype/test-categ_Zl.c: Likewise.
44330         * tests/unictype/test-categ_Zp.c: Likewise.
44331         * tests/unictype/test-categ_Zs.c: Likewise.
44332         * tests/unictype/test-ctype_alnum.c: Likewise.
44333         * tests/unictype/test-ctype_alpha.c: Likewise.
44334         * tests/unictype/test-ctype_blank.c: Likewise.
44335         * tests/unictype/test-ctype_cntrl.c: Likewise.
44336         * tests/unictype/test-ctype_digit.c: Likewise.
44337         * tests/unictype/test-ctype_graph.c: Likewise.
44338         * tests/unictype/test-ctype_lower.c: Likewise.
44339         * tests/unictype/test-ctype_print.c: Likewise.
44340         * tests/unictype/test-ctype_punct.c: Likewise.
44341         * tests/unictype/test-ctype_space.c: Likewise.
44342         * tests/unictype/test-ctype_upper.c: Likewise.
44343         * tests/unictype/test-ctype_xdigit.c: Likewise.
44344         * tests/unictype/test-decdigit.h: Likewise.
44345         * tests/unictype/test-digit.h: Likewise.
44346         * tests/unictype/test-numeric.h: Likewise.
44347         * tests/unictype/test-pr_alphabetic.c: Likewise.
44348         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44349         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44350         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44351         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44352         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44353         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44354         * tests/unictype/test-pr_bidi_control.c: Likewise.
44355         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44356         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44357         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44358         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44359         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44360         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44361         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44362         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44363         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44364         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44365         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44366         * tests/unictype/test-pr_combining.c: Likewise.
44367         * tests/unictype/test-pr_composite.c: Likewise.
44368         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44369         * tests/unictype/test-pr_dash.c: Likewise.
44370         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44371         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44372         * tests/unictype/test-pr_deprecated.c: Likewise.
44373         * tests/unictype/test-pr_diacritic.c: Likewise.
44374         * tests/unictype/test-pr_extender.c: Likewise.
44375         * tests/unictype/test-pr_format_control.c: Likewise.
44376         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44377         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44378         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44379         * tests/unictype/test-pr_hex_digit.c: Likewise.
44380         * tests/unictype/test-pr_hyphen.c: Likewise.
44381         * tests/unictype/test-pr_id_continue.c: Likewise.
44382         * tests/unictype/test-pr_id_start.c: Likewise.
44383         * tests/unictype/test-pr_ideographic.c: Likewise.
44384         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44385         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44386         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44387         * tests/unictype/test-pr_iso_control.c: Likewise.
44388         * tests/unictype/test-pr_join_control.c: Likewise.
44389         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44390         * tests/unictype/test-pr_line_separator.c: Likewise.
44391         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44392         * tests/unictype/test-pr_lowercase.c: Likewise.
44393         * tests/unictype/test-pr_math.c: Likewise.
44394         * tests/unictype/test-pr_non_break.c: Likewise.
44395         * tests/unictype/test-pr_not_a_character.c: Likewise.
44396         * tests/unictype/test-pr_numeric.c: Likewise.
44397         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44398         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44399         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44400         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44401         * tests/unictype/test-pr_other_id_start.c: Likewise.
44402         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44403         * tests/unictype/test-pr_other_math.c: Likewise.
44404         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44405         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44406         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44407         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44408         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44409         * tests/unictype/test-pr_private_use.c: Likewise.
44410         * tests/unictype/test-pr_punctuation.c: Likewise.
44411         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44412         * tests/unictype/test-pr_radical.c: Likewise.
44413         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44414         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44415         * tests/unictype/test-pr_space.c: Likewise.
44416         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44417         * tests/unictype/test-pr_titlecase.c: Likewise.
44418         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44419         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44420         * tests/unictype/test-pr_uppercase.c: Likewise.
44421         * tests/unictype/test-pr_variation_selector.c: Likewise.
44422         * tests/unictype/test-pr_white_space.c: Likewise.
44423         * tests/unictype/test-pr_xid_continue.c: Likewise.
44424         * tests/unictype/test-pr_xid_start.c: Likewise.
44425         * tests/unictype/test-pr_zero_width.c: Likewise.
44426         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44427         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44428
44429 2007-11-12  Bruno Haible  <bruno@clisp.org>
44430
44431         Unicode character classification functions.
44432         * lib/unictype.h: New file.
44433         * modules/unictype/base: New file.
44434         * modules/unictype/category-L: New file.
44435         * modules/unictype/category-Lu: New file.
44436         * modules/unictype/category-Ll: New file.
44437         * modules/unictype/category-Lt: New file.
44438         * modules/unictype/category-Lm: New file.
44439         * modules/unictype/category-Lo: New file.
44440         * modules/unictype/category-M: New file.
44441         * modules/unictype/category-Mn: New file.
44442         * modules/unictype/category-Mc: New file.
44443         * modules/unictype/category-Me: New file.
44444         * modules/unictype/category-N: New file.
44445         * modules/unictype/category-Nd: New file.
44446         * modules/unictype/category-Nl: New file.
44447         * modules/unictype/category-No: New file.
44448         * modules/unictype/category-P: New file.
44449         * modules/unictype/category-Pc: New file.
44450         * modules/unictype/category-Pd: New file.
44451         * modules/unictype/category-Ps: New file.
44452         * modules/unictype/category-Pe: New file.
44453         * modules/unictype/category-Pi: New file.
44454         * modules/unictype/category-Pf: New file.
44455         * modules/unictype/category-Po: New file.
44456         * modules/unictype/category-S: New file.
44457         * modules/unictype/category-Sm: New file.
44458         * modules/unictype/category-Sc: New file.
44459         * modules/unictype/category-Sk: New file.
44460         * modules/unictype/category-So: New file.
44461         * modules/unictype/category-Z: New file.
44462         * modules/unictype/category-Zs: New file.
44463         * modules/unictype/category-Zl: New file.
44464         * modules/unictype/category-Zp: New file.
44465         * modules/unictype/category-C: New file.
44466         * modules/unictype/category-Cc: New file.
44467         * modules/unictype/category-Cf: New file.
44468         * modules/unictype/category-Cs: New file.
44469         * modules/unictype/category-Co: New file.
44470         * modules/unictype/category-Cn: New file.
44471         * modules/unictype/category-or: New file.
44472         * modules/unictype/category-of: New file.
44473         * modules/unictype/category-test: New file.
44474         * modules/unictype/category-test-withtable: New file.
44475         * modules/unictype/category-byname: New file.
44476         * modules/unictype/category-none: New file.
44477         * modules/unictype/category-and: New file.
44478         * modules/unictype/category-and-not: New file.
44479         * modules/unictype/category-name: New file.
44480         * modules/unictype/combining-class: New file.
44481         * modules/unictype/category-all: New file.
44482         * modules/unictype/bidicategory-all: New file.
44483         * modules/unictype/bidicategory-byname: New file.
44484         * modules/unictype/bidicategory-name: New file.
44485         * modules/unictype/bidicategory-of: New file.
44486         * modules/unictype/bidicategory-test: New file.
44487         * modules/unictype/decimal-digit: New file.
44488         * modules/unictype/digit: New file.
44489         * modules/unictype/numeric: New file.
44490         * modules/unictype/mirror: New file.
44491         * modules/unictype/property-white-space: New file.
44492         * modules/unictype/property-alphabetic: New file.
44493         * modules/unictype/property-other-alphabetic: New file.
44494         * modules/unictype/property-not-a-character: New file.
44495         * modules/unictype/property-default-ignorable-code-point: New file.
44496         * modules/unictype/property-other-default-ignorable-code-point: New
44497         file.
44498         * modules/unictype/property-deprecated: New file.
44499         * modules/unictype/property-logical-order-exception: New file.
44500         * modules/unictype/property-variation-selector: New file.
44501         * modules/unictype/property-private-use: New file.
44502         * modules/unictype/property-unassigned-code-value: New file.
44503         * modules/unictype/property-uppercase: New file.
44504         * modules/unictype/property-other-uppercase: New file.
44505         * modules/unictype/property-lowercase: New file.
44506         * modules/unictype/property-other-lowercase: New file.
44507         * modules/unictype/property-titlecase: New file.
44508         * modules/unictype/property-soft-dotted: New file.
44509         * modules/unictype/property-id-start: New file.
44510         * modules/unictype/property-other-id-start: New file.
44511         * modules/unictype/property-id-continue: New file.
44512         * modules/unictype/property-other-id-continue: New file.
44513         * modules/unictype/property-xid-start: New file.
44514         * modules/unictype/property-xid-continue: New file.
44515         * modules/unictype/property-pattern-white-space: New file.
44516         * modules/unictype/property-pattern-syntax: New file.
44517         * modules/unictype/property-join-control: New file.
44518         * modules/unictype/property-grapheme-base: New file.
44519         * modules/unictype/property-grapheme-extend: New file.
44520         * modules/unictype/property-other-grapheme-extend: New file.
44521         * modules/unictype/property-grapheme-link: New file.
44522         * modules/unictype/property-bidi-control: New file.
44523         * modules/unictype/property-bidi-left-to-right: New file.
44524         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44525         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44526         * modules/unictype/property-bidi-european-digit: New file.
44527         * modules/unictype/property-bidi-eur-num-separator: New file.
44528         * modules/unictype/property-bidi-eur-num-terminator: New file.
44529         * modules/unictype/property-bidi-arabic-digit: New file.
44530         * modules/unictype/property-bidi-common-separator: New file.
44531         * modules/unictype/property-bidi-block-separator: New file.
44532         * modules/unictype/property-bidi-segment-separator: New file.
44533         * modules/unictype/property-bidi-whitespace: New file.
44534         * modules/unictype/property-bidi-non-spacing-mark: New file.
44535         * modules/unictype/property-bidi-boundary-neutral: New file.
44536         * modules/unictype/property-bidi-pdf: New file.
44537         * modules/unictype/property-bidi-embedding-or-override: New file.
44538         * modules/unictype/property-bidi-other-neutral: New file.
44539         * modules/unictype/property-hex-digit: New file.
44540         * modules/unictype/property-ascii-hex-digit: New file.
44541         * modules/unictype/property-ideographic: New file.
44542         * modules/unictype/property-unified-ideograph: New file.
44543         * modules/unictype/property-radical: New file.
44544         * modules/unictype/property-ids-binary-operator: New file.
44545         * modules/unictype/property-ids-trinary-operator: New file.
44546         * modules/unictype/property-zero-width: New file.
44547         * modules/unictype/property-space: New file.
44548         * modules/unictype/property-non-break: New file.
44549         * modules/unictype/property-iso-control: New file.
44550         * modules/unictype/property-format-control: New file.
44551         * modules/unictype/property-dash: New file.
44552         * modules/unictype/property-hyphen: New file.
44553         * modules/unictype/property-punctuation: New file.
44554         * modules/unictype/property-line-separator: New file.
44555         * modules/unictype/property-paragraph-separator: New file.
44556         * modules/unictype/property-quotation-mark: New file.
44557         * modules/unictype/property-sentence-terminal: New file.
44558         * modules/unictype/property-terminal-punctuation: New file.
44559         * modules/unictype/property-currency-symbol: New file.
44560         * modules/unictype/property-math: New file.
44561         * modules/unictype/property-other-math: New file.
44562         * modules/unictype/property-paired-punctuation: New file.
44563         * modules/unictype/property-left-of-pair: New file.
44564         * modules/unictype/property-combining: New file.
44565         * modules/unictype/property-composite: New file.
44566         * modules/unictype/property-decimal-digit: New file.
44567         * modules/unictype/property-numeric: New file.
44568         * modules/unictype/property-diacritic: New file.
44569         * modules/unictype/property-extender: New file.
44570         * modules/unictype/property-ignorable-control: New file.
44571         * modules/unictype/property-test: New file.
44572         * modules/unictype/property-byname: New file.
44573         * modules/unictype/property-all: New file.
44574         * modules/unictype/scripts: New file.
44575         * modules/unictype/scripts-all: New file.
44576         * modules/unictype/block-of: New file.
44577         * modules/unictype/block-test: New file.
44578         * modules/unictype/block-list: New file.
44579         * modules/unictype/block-all: New file.
44580         * modules/unictype/syntax-c-whitespace: New file.
44581         * modules/unictype/syntax-java-whitespace: New file.
44582         * modules/unictype/syntax-c-ident: New file.
44583         * modules/unictype/syntax-java-ident: New file.
44584         * modules/unictype/ctype-alnum: New file.
44585         * modules/unictype/ctype-alpha: New file.
44586         * modules/unictype/ctype-cntrl: New file.
44587         * modules/unictype/ctype-digit: New file.
44588         * modules/unictype/ctype-graph: New file.
44589         * modules/unictype/ctype-lower: New file.
44590         * modules/unictype/ctype-print: New file.
44591         * modules/unictype/ctype-punct: New file.
44592         * modules/unictype/ctype-space: New file.
44593         * modules/unictype/ctype-upper: New file.
44594         * modules/unictype/ctype-xdigit: New file.
44595         * modules/unictype/ctype-blank: New file.
44596         * lib/unictype/bidi_byname.c: New file.
44597         * lib/unictype/bidi_name.c: New file.
44598         * lib/unictype/bidi_of.c: New file.
44599         * lib/unictype/bidi_test.c: New file.
44600         * lib/unictype/bitmap.h: New file.
44601         * lib/unictype/block_test.c: New file.
44602         * lib/unictype/blocks.c: New file.
44603         * lib/unictype/categ_C.c: New file.
44604         * lib/unictype/categ_Cc.c: New file.
44605         * lib/unictype/categ_Cf.c: New file.
44606         * lib/unictype/categ_Cn.c: New file.
44607         * lib/unictype/categ_Co.c: New file.
44608         * lib/unictype/categ_Cs.c: New file.
44609         * lib/unictype/categ_L.c: New file.
44610         * lib/unictype/categ_Ll.c: New file.
44611         * lib/unictype/categ_Lm.c: New file.
44612         * lib/unictype/categ_Lo.c: New file.
44613         * lib/unictype/categ_Lt.c: New file.
44614         * lib/unictype/categ_Lu.c: New file.
44615         * lib/unictype/categ_M.c: New file.
44616         * lib/unictype/categ_Mc.c: New file.
44617         * lib/unictype/categ_Me.c: New file.
44618         * lib/unictype/categ_Mn.c: New file.
44619         * lib/unictype/categ_N.c: New file.
44620         * lib/unictype/categ_Nd.c: New file.
44621         * lib/unictype/categ_Nl.c: New file.
44622         * lib/unictype/categ_No.c: New file.
44623         * lib/unictype/categ_P.c: New file.
44624         * lib/unictype/categ_Pc.c: New file.
44625         * lib/unictype/categ_Pd.c: New file.
44626         * lib/unictype/categ_Pe.c: New file.
44627         * lib/unictype/categ_Pf.c: New file.
44628         * lib/unictype/categ_Pi.c: New file.
44629         * lib/unictype/categ_Po.c: New file.
44630         * lib/unictype/categ_Ps.c: New file.
44631         * lib/unictype/categ_S.c: New file.
44632         * lib/unictype/categ_Sc.c: New file.
44633         * lib/unictype/categ_Sk.c: New file.
44634         * lib/unictype/categ_Sm.c: New file.
44635         * lib/unictype/categ_So.c: New file.
44636         * lib/unictype/categ_Z.c: New file.
44637         * lib/unictype/categ_Zl.c: New file.
44638         * lib/unictype/categ_Zp.c: New file.
44639         * lib/unictype/categ_Zs.c: New file.
44640         * lib/unictype/categ_and.c: New file.
44641         * lib/unictype/categ_and_not.c: New file.
44642         * lib/unictype/categ_byname.c: New file.
44643         * lib/unictype/categ_name.c: New file.
44644         * lib/unictype/categ_none.c: New file.
44645         * lib/unictype/categ_of.c: New file.
44646         * lib/unictype/categ_or.c: New file.
44647         * lib/unictype/categ_test.c: New file.
44648         * lib/unictype/combining.c: New file.
44649         * lib/unictype/ctype_alnum.c: New file.
44650         * lib/unictype/ctype_alpha.c: New file.
44651         * lib/unictype/ctype_blank.c: New file.
44652         * lib/unictype/ctype_cntrl.c: New file.
44653         * lib/unictype/ctype_digit.c: New file.
44654         * lib/unictype/ctype_graph.c: New file.
44655         * lib/unictype/ctype_lower.c: New file.
44656         * lib/unictype/ctype_print.c: New file.
44657         * lib/unictype/ctype_punct.c: New file.
44658         * lib/unictype/ctype_space.c: New file.
44659         * lib/unictype/ctype_upper.c: New file.
44660         * lib/unictype/ctype_xdigit.c: New file.
44661         * lib/unictype/decdigit.c: New file.
44662         * lib/unictype/digit.c: New file.
44663         * lib/unictype/identsyntaxmap.h: New file.
44664         * lib/unictype/mirror.c: New file.
44665         * lib/unictype/numeric.c: New file.
44666         * lib/unictype/pr_alphabetic.c: New file.
44667         * lib/unictype/pr_ascii_hex_digit.c: New file.
44668         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44669         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44670         * lib/unictype/pr_bidi_block_separator.c: New file.
44671         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44672         * lib/unictype/pr_bidi_common_separator.c: New file.
44673         * lib/unictype/pr_bidi_control.c: New file.
44674         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44675         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44676         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44677         * lib/unictype/pr_bidi_european_digit.c: New file.
44678         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44679         * lib/unictype/pr_bidi_left_to_right.c: New file.
44680         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44681         * lib/unictype/pr_bidi_other_neutral.c: New file.
44682         * lib/unictype/pr_bidi_pdf.c: New file.
44683         * lib/unictype/pr_bidi_segment_separator.c: New file.
44684         * lib/unictype/pr_bidi_whitespace.c: New file.
44685         * lib/unictype/pr_byname.c: New file.
44686         * lib/unictype/pr_byname.gperf: New file.
44687         * lib/unictype/pr_combining.c: New file.
44688         * lib/unictype/pr_composite.c: New file.
44689         * lib/unictype/pr_currency_symbol.c: New file.
44690         * lib/unictype/pr_dash.c: New file.
44691         * lib/unictype/pr_decimal_digit.c: New file.
44692         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44693         * lib/unictype/pr_deprecated.c: New file.
44694         * lib/unictype/pr_diacritic.c: New file.
44695         * lib/unictype/pr_extender.c: New file.
44696         * lib/unictype/pr_format_control.c: New file.
44697         * lib/unictype/pr_grapheme_base.c: New file.
44698         * lib/unictype/pr_grapheme_extend.c: New file.
44699         * lib/unictype/pr_grapheme_link.c: New file.
44700         * lib/unictype/pr_hex_digit.c: New file.
44701         * lib/unictype/pr_hyphen.c: New file.
44702         * lib/unictype/pr_id_continue.c: New file.
44703         * lib/unictype/pr_id_start.c: New file.
44704         * lib/unictype/pr_ideographic.c: New file.
44705         * lib/unictype/pr_ids_binary_operator.c: New file.
44706         * lib/unictype/pr_ids_trinary_operator.c: New file.
44707         * lib/unictype/pr_ignorable_control.c: New file.
44708         * lib/unictype/pr_iso_control.c: New file.
44709         * lib/unictype/pr_join_control.c: New file.
44710         * lib/unictype/pr_left_of_pair.c: New file.
44711         * lib/unictype/pr_line_separator.c: New file.
44712         * lib/unictype/pr_logical_order_exception.c: New file.
44713         * lib/unictype/pr_lowercase.c: New file.
44714         * lib/unictype/pr_math.c: New file.
44715         * lib/unictype/pr_non_break.c: New file.
44716         * lib/unictype/pr_not_a_character.c: New file.
44717         * lib/unictype/pr_numeric.c: New file.
44718         * lib/unictype/pr_other_alphabetic.c: New file.
44719         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44720         * lib/unictype/pr_other_grapheme_extend.c: New file.
44721         * lib/unictype/pr_other_id_continue.c: New file.
44722         * lib/unictype/pr_other_id_start.c: New file.
44723         * lib/unictype/pr_other_lowercase.c: New file.
44724         * lib/unictype/pr_other_math.c: New file.
44725         * lib/unictype/pr_other_uppercase.c: New file.
44726         * lib/unictype/pr_paired_punctuation.c: New file.
44727         * lib/unictype/pr_paragraph_separator.c: New file.
44728         * lib/unictype/pr_pattern_syntax.c: New file.
44729         * lib/unictype/pr_pattern_white_space.c: New file.
44730         * lib/unictype/pr_private_use.c: New file.
44731         * lib/unictype/pr_punctuation.c: New file.
44732         * lib/unictype/pr_quotation_mark.c: New file.
44733         * lib/unictype/pr_radical.c: New file.
44734         * lib/unictype/pr_sentence_terminal.c: New file.
44735         * lib/unictype/pr_soft_dotted.c: New file.
44736         * lib/unictype/pr_space.c: New file.
44737         * lib/unictype/pr_terminal_punctuation.c: New file.
44738         * lib/unictype/pr_test.c: New file.
44739         * lib/unictype/pr_titlecase.c: New file.
44740         * lib/unictype/pr_unassigned_code_value.c: New file.
44741         * lib/unictype/pr_unified_ideograph.c: New file.
44742         * lib/unictype/pr_uppercase.c: New file.
44743         * lib/unictype/pr_variation_selector.c: New file.
44744         * lib/unictype/pr_white_space.c: New file.
44745         * lib/unictype/pr_xid_continue.c: New file.
44746         * lib/unictype/pr_xid_start.c: New file.
44747         * lib/unictype/pr_zero_width.c: New file.
44748         * lib/unictype/scripts.c: New file.
44749         * lib/unictype/sy_c_ident.c: New file.
44750         * lib/unictype/sy_c_whitespace.c: New file.
44751         * lib/unictype/sy_java_ident.c: New file.
44752         * lib/unictype/sy_java_whitespace.c: New file.
44753
44754         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44755         Unicode 5.0.0.
44756         * lib/unictype/blocks.h: Likewise.
44757         * lib/unictype/categ_C.h: Likewise.
44758         * lib/unictype/categ_Cc.h: Likewise.
44759         * lib/unictype/categ_Cf.h: Likewise.
44760         * lib/unictype/categ_Cn.h: Likewise.
44761         * lib/unictype/categ_Co.h: Likewise.
44762         * lib/unictype/categ_Cs.h: Likewise.
44763         * lib/unictype/categ_L.h: Likewise.
44764         * lib/unictype/categ_Ll.h: Likewise.
44765         * lib/unictype/categ_Lm.h: Likewise.
44766         * lib/unictype/categ_Lo.h: Likewise.
44767         * lib/unictype/categ_Lt.h: Likewise.
44768         * lib/unictype/categ_Lu.h: Likewise.
44769         * lib/unictype/categ_M.h: Likewise.
44770         * lib/unictype/categ_Mc.h: Likewise.
44771         * lib/unictype/categ_Me.h: Likewise.
44772         * lib/unictype/categ_Mn.h: Likewise.
44773         * lib/unictype/categ_N.h: Likewise.
44774         * lib/unictype/categ_Nd.h: Likewise.
44775         * lib/unictype/categ_Nl.h: Likewise.
44776         * lib/unictype/categ_No.h: Likewise.
44777         * lib/unictype/categ_P.h: Likewise.
44778         * lib/unictype/categ_Pc.h: Likewise.
44779         * lib/unictype/categ_Pd.h: Likewise.
44780         * lib/unictype/categ_Pe.h: Likewise.
44781         * lib/unictype/categ_Pf.h: Likewise.
44782         * lib/unictype/categ_Pi.h: Likewise.
44783         * lib/unictype/categ_Po.h: Likewise.
44784         * lib/unictype/categ_Ps.h: Likewise.
44785         * lib/unictype/categ_S.h: Likewise.
44786         * lib/unictype/categ_Sc.h: Likewise.
44787         * lib/unictype/categ_Sk.h: Likewise.
44788         * lib/unictype/categ_Sm.h: Likewise.
44789         * lib/unictype/categ_So.h: Likewise.
44790         * lib/unictype/categ_Z.h: Likewise.
44791         * lib/unictype/categ_Zl.h: Likewise.
44792         * lib/unictype/categ_Zp.h: Likewise.
44793         * lib/unictype/categ_Zs.h: Likewise.
44794         * lib/unictype/categ_of.h: Likewise.
44795         * lib/unictype/combining.h: Likewise.
44796         * lib/unictype/ctype_alnum.h: Likewise.
44797         * lib/unictype/ctype_alpha.h: Likewise.
44798         * lib/unictype/ctype_blank.h: Likewise.
44799         * lib/unictype/ctype_cntrl.h: Likewise.
44800         * lib/unictype/ctype_digit.h: Likewise.
44801         * lib/unictype/ctype_graph.h: Likewise.
44802         * lib/unictype/ctype_lower.h: Likewise.
44803         * lib/unictype/ctype_print.h: Likewise.
44804         * lib/unictype/ctype_punct.h: Likewise.
44805         * lib/unictype/ctype_space.h: Likewise.
44806         * lib/unictype/ctype_upper.h: Likewise.
44807         * lib/unictype/ctype_xdigit.h: Likewise.
44808         * lib/unictype/decdigit.h: Likewise.
44809         * lib/unictype/digit.h: Likewise.
44810         * lib/unictype/mirror.h: Likewise.
44811         * lib/unictype/numeric.h: Likewise.
44812         * lib/unictype/pr_alphabetic.h: Likewise.
44813         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44814         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44815         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44816         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44817         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44818         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44819         * lib/unictype/pr_bidi_control.h: Likewise.
44820         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44821         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44822         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44823         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44824         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44825         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44826         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44827         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44828         * lib/unictype/pr_bidi_pdf.h: Likewise.
44829         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44830         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44831         * lib/unictype/pr_combining.h: Likewise.
44832         * lib/unictype/pr_composite.h: Likewise.
44833         * lib/unictype/pr_currency_symbol.h: Likewise.
44834         * lib/unictype/pr_dash.h: Likewise.
44835         * lib/unictype/pr_decimal_digit.h: Likewise.
44836         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44837         * lib/unictype/pr_deprecated.h: Likewise.
44838         * lib/unictype/pr_diacritic.h: Likewise.
44839         * lib/unictype/pr_extender.h: Likewise.
44840         * lib/unictype/pr_format_control.h: Likewise.
44841         * lib/unictype/pr_grapheme_base.h: Likewise.
44842         * lib/unictype/pr_grapheme_extend.h: Likewise.
44843         * lib/unictype/pr_grapheme_link.h: Likewise.
44844         * lib/unictype/pr_hex_digit.h: Likewise.
44845         * lib/unictype/pr_hyphen.h: Likewise.
44846         * lib/unictype/pr_id_continue.h: Likewise.
44847         * lib/unictype/pr_id_start.h: Likewise.
44848         * lib/unictype/pr_ideographic.h: Likewise.
44849         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44850         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44851         * lib/unictype/pr_ignorable_control.h: Likewise.
44852         * lib/unictype/pr_iso_control.h: Likewise.
44853         * lib/unictype/pr_join_control.h: Likewise.
44854         * lib/unictype/pr_left_of_pair.h: Likewise.
44855         * lib/unictype/pr_line_separator.h: Likewise.
44856         * lib/unictype/pr_logical_order_exception.h: Likewise.
44857         * lib/unictype/pr_lowercase.h: Likewise.
44858         * lib/unictype/pr_math.h: Likewise.
44859         * lib/unictype/pr_non_break.h: Likewise.
44860         * lib/unictype/pr_not_a_character.h: Likewise.
44861         * lib/unictype/pr_numeric.h: Likewise.
44862         * lib/unictype/pr_other_alphabetic.h: Likewise.
44863         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44864         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44865         * lib/unictype/pr_other_id_continue.h: Likewise.
44866         * lib/unictype/pr_other_id_start.h: Likewise.
44867         * lib/unictype/pr_other_lowercase.h: Likewise.
44868         * lib/unictype/pr_other_math.h: Likewise.
44869         * lib/unictype/pr_other_uppercase.h: Likewise.
44870         * lib/unictype/pr_paired_punctuation.h: Likewise.
44871         * lib/unictype/pr_paragraph_separator.h: Likewise.
44872         * lib/unictype/pr_pattern_syntax.h: Likewise.
44873         * lib/unictype/pr_pattern_white_space.h: Likewise.
44874         * lib/unictype/pr_private_use.h: Likewise.
44875         * lib/unictype/pr_punctuation.h: Likewise.
44876         * lib/unictype/pr_quotation_mark.h: Likewise.
44877         * lib/unictype/pr_radical.h: Likewise.
44878         * lib/unictype/pr_sentence_terminal.h: Likewise.
44879         * lib/unictype/pr_soft_dotted.h: Likewise.
44880         * lib/unictype/pr_space.h: Likewise.
44881         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44882         * lib/unictype/pr_titlecase.h: Likewise.
44883         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44884         * lib/unictype/pr_unified_ideograph.h: Likewise.
44885         * lib/unictype/pr_uppercase.h: Likewise.
44886         * lib/unictype/pr_variation_selector.h: Likewise.
44887         * lib/unictype/pr_white_space.h: Likewise.
44888         * lib/unictype/pr_xid_continue.h: Likewise.
44889         * lib/unictype/pr_xid_start.h: Likewise.
44890         * lib/unictype/pr_zero_width.h: Likewise.
44891         * lib/unictype/scripts.h: Likewise.
44892         * lib/unictype/scripts_byname.gperf: Likewise.
44893         * lib/unictype/sy_c_ident.h: Likewise.
44894         * lib/unictype/sy_c_whitespace.h: Likewise.
44895         * lib/unictype/sy_java_ident.h: Likewise.
44896         * lib/unictype/sy_java_whitespace.h: Likewise.
44897
44898         * lib/unictype/Makefile: New file.
44899         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44900         glibc.
44901         * lib/unictype/3level.h: New file, copied from glibc.
44902         * lib/unictype/3levelbit.h: New file.
44903
44904 2007-11-11  Bruno Haible  <bruno@clisp.org>
44905
44906         * modules/gperf: New file.
44907         * modules/iconv_open (Depends-on): Add it.
44908         (Makefile.am): Remove the GPERF definition.
44909
44910 2007-11-11  Bruno Haible  <bruno@clisp.org>
44911
44912         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44913         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44914
44915 2007-11-11  Bruno Haible  <bruno@clisp.org>
44916
44917         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44918         (usage): Remove function.
44919
44920 2007-11-11  Bruno Haible  <bruno@clisp.org>
44921
44922         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44923         gl_FUNC_CEILF_LIBS.
44924         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44925         gl_FUNC_CEIL_LIBS.
44926         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44927         gl_FUNC_CEILL_LIBS.
44928         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44929         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44930         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44931
44932 2007-11-11  Bruno Haible  <bruno@clisp.org>
44933
44934         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44935         roundf were declared but do not exist on functions.
44936         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44937         roundl were declared but do not exist on functions.
44938         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44939         HAVE_FLOORL_AND_CEILL, respectively.
44940         Needed for Sun C on Solaris 10.
44941
44942 2007-11-11  Bruno Haible  <bruno@clisp.org>
44943
44944         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44945         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44946         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44947         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44948         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44949         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44950         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44951         HAVE_DECL_ROUNDF.
44952         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44953         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44955         of HAVE_DECL_ROUND*.
44956         * modules/math (Makefile.am): Update.
44957
44958 2007-11-10  Bruno Haible  <bruno@clisp.org>
44959
44960         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44961         ptrdiff_t as m4/intl.m4.
44962
44963 2007-11-10  Jim Meyering  <meyering@redhat.com>
44964
44965         Avoid link failure for the argmatch test.
44966         * tests/test-argmatch.c (usage): Define function to avoid a link
44967         failure: argmatch_die requires a usage function.
44968
44969 2007-11-09  Bruno Haible  <bruno@clisp.org>
44970
44971         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44972         * doc/functions/vsnprintf.texi: Likewise.
44973         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44974         with a size argument < 2.
44975
44976 2007-11-09  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44979         buffer. Fixes an inefficiency introduced on 2007-11-03.
44980
44981 2007-11-09  Bruno Haible  <bruno@clisp.org>
44982
44983         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44984         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44985
44986 2007-11-08  Jim Meyering  <meyering@redhat.com>
44987
44988         Change cache variable name prefix "jm_" to "gl_" everywhere.
44989         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44990         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44991         * m4/uptime.m4: s/gl_/jm_/
44992
44993 2007-11-07  Bruno Haible  <bruno@clisp.org>
44994
44995         Update to GNU gettext 0.17.
44996         * m4/intl.m4: Update to GNU gettext 0.17.
44997         * m4/po.m4: Likewise.
44998         * modules/gettext (Files): Remove m4/ulonglong.m4.
44999         (configure.ac): Require gettext infrastructure from version 0.17.
45000
45001 2007-11-06  Bruno Haible  <bruno@clisp.org>
45002
45003         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45004         symbolic values are not defined in a public header.
45005         * lib/freadable.c (freadable) [QNX]: Likewise.
45006         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45007         * lib/freading.c (freading) [QNX]: Likewise.
45008         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45009         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45010         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45011         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45012         Reported by Alain Magloire.
45013
45014         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45015
45016 2007-11-05  Bruno Haible  <bruno@clisp.org>
45017
45018         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45019         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45020         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45021         Reported by Eric Blake.
45022
45023 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45024             Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45027         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45028         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45029         (malloc): Undefine also before including <stdlib.h>.
45030         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45031         Needed on OSF/1 4.0.
45032
45033 2007-11-05  Jim Meyering  <meyering@redhat.com>
45034
45035         git-version-gen: sync from coreutils.
45036         * build-aux/git-version-gen: Add comments.
45037         Change the first '-' to '.' in the snapshot version string,
45038         e.g., 6.9-377-08144 -> 6.9.377-08144
45039         Remove first parameter.
45040         Don't declare a version "-dirty" merely because a time
45041         stamp has changed.
45042
45043 2007-11-04  Bruno Haible  <bruno@clisp.org>
45044
45045         * lib/lock.h: Protect all macro definitions containing an 'if'
45046         statement through a "do { ... } while (0)".
45047         * lib/tls.h: Likewise.
45048
45049 2007-11-04  Bruno Haible  <bruno@clisp.org>
45050
45051         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45052
45053 2007-11-04  Bruno Haible  <bruno@clisp.org>
45054
45055         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45056         * modules/fprintf-posix (Depends-on): Add nocrash.
45057         * modules/snprintf-posix (Depends-on): Likewise.
45058         * modules/sprintf-posix (Depends-on): Likewise.
45059         * modules/vasnprintf-posix (Depends-on): Likewise.
45060         * modules/vasprintf-posix (Depends-on): Likewise.
45061         * modules/vfprintf-posix (Depends-on): Likewise.
45062         * modules/vsnprintf-posix (Depends-on): Likewise.
45063         * modules/vsprintf-posix (Depends-on): Likewise.
45064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45071
45072 2007-11-04  Bruno Haible  <bruno@clisp.org>
45073
45074         * modules/nocrash: New file.
45075         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45076         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45077
45078 2007-11-04  Bruno Haible  <bruno@clisp.org>
45079
45080         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45081         precision handling.
45082         * tests/test-vasprintf-posix.c (test_function): Likewise.
45083         * tests/test-snprintf-posix.h (test_function): Likewise.
45084         * tests/test-sprintf-posix.h (test_function): Likewise.
45085
45086         Fix *printf behaviour for large precisions on mingw and BeOS.
45087         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45088         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45090         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45092         gl_PRINTF_PRECISION and test its result. Invoke
45093         gl_PREREQ_VASNPRINTF_PRECISION.
45094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45095         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45096         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45097         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45098         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45101         * doc/functions/fprintf.texi: Update.
45102         * doc/functions/printf.texi: Update.
45103         * doc/functions/snprintf.texi: Update.
45104         * doc/functions/sprintf.texi: Update.
45105         * doc/functions/vfprintf.texi: Update.
45106         * doc/functions/vprintf.texi: Update.
45107         * doc/functions/vsnprintf.texi: Update.
45108         * doc/functions/vsprintf.texi: Update.
45109
45110 2007-11-04  Bruno Haible  <bruno@clisp.org>
45111
45112         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45113
45114 2007-11-04  Bruno Haible  <bruno@clisp.org>
45115
45116         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45117         Reported by Sylvain Beucler <beuc@gnu.org>.
45118
45119 2007-11-03  Bruno Haible  <bruno@clisp.org>
45120
45121         * tests/test-fprintf-posix2.sh: New file.
45122         * tests/test-fprintf-posix2.c: New file.
45123         * modules/fprintf-posix-tests (Files): Add them.
45124         (TESTS): Add test-fprintf-posix2.sh.
45125         (configure.ac): Check for getrlimit and setrlimit.
45126         (check_PROGRAMS): Add test-fprintf-posix2.
45127
45128         * tests/test-printf-posix2.sh: New file.
45129         * tests/test-printf-posix2.c: New file.
45130         * modules/printf-posix-tests (Files): Add them.
45131         (TESTS): Add test-printf-posix2.sh.
45132         (configure.ac): Check for getrlimit and setrlimit.
45133         (check_PROGRAMS): Add test-printf-posix2.
45134
45135         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45136         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45137         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45138         (decode_double): New function, copied from decode_long_double.
45139         (scale10_round_decimal_decoded): New function, extracted from
45140         scale10_round_decimal_long_double.
45141         (scale10_round_decimal_long_double): Use it.
45142         (scale10_round_decimal_double): New function.
45143         (floorlog10): New function.
45144         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45146         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45147         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45148         gl_PRINTF_ENOMEM and test its result. Invoke
45149         gl_PREREQ_VASNPRINTF_ENOMEM.
45150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45154         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45156         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45157         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45158         * modules/snprintf-posix (Depends-on): Likewise.
45159         * modules/sprintf-posix (Depends-on): Likewise.
45160         * modules/vasnprintf-posix (Depends-on): Likewise.
45161         * modules/vasprintf-posix (Depends-on): Likewise.
45162         * modules/vfprintf-posix (Depends-on): Likewise.
45163         * modules/vsnprintf-posix (Depends-on): Likewise.
45164         * modules/vsprintf-posix (Depends-on): Likewise.
45165         * doc/functions/fprintf.texi: Update.
45166         * doc/functions/printf.texi: Update.
45167         * doc/functions/snprintf.texi: Update.
45168         * doc/functions/sprintf.texi: Update.
45169         * doc/functions/vfprintf.texi: Update.
45170         * doc/functions/vprintf.texi: Update.
45171         * doc/functions/vsnprintf.texi: Update.
45172         * doc/functions/vsprintf.texi: Update.
45173
45174 2007-11-03  Bruno Haible  <bruno@clisp.org>
45175
45176         * modules/frexp-nolibm-tests: New file.
45177
45178         * modules/frexp-nolibm: New file.
45179         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45180
45181 2007-11-03  Bruno Haible  <bruno@clisp.org>
45182
45183         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45184         value is C99 compliant.
45185         Needed for OSF/1 5.1.
45186
45187 2007-11-03  Bruno Haible  <bruno@clisp.org>
45188
45189         Fix out-of-memory handling of vasnprintf.
45190         * lib/printf-parse.c: Include <errno.h>.
45191         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45192         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45193         is already set.
45194
45195 2007-11-02  Eric Blake  <ebb9@byu.net>
45196
45197         Fix tests on cygwin.
45198         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45199
45200 2007-11-01  Bruno Haible  <bruno@clisp.org>
45201
45202         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45203         warning.
45204         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45205         needed for POSIX compatibility.
45206
45207 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45208
45209         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45210         for compatibility with GNU.
45211
45212 2007-11-01  Bruno Haible  <bruno@clisp.org>
45213
45214         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45215         (putenv): Renamed from rpl_putenv. Change argument type from
45216         'const char *' to 'char *'.
45217         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45218         of defining putenv in config.h, just set REPLACE_PUTENV.
45219         * modules/putenv (Depends-on): Add stdlib.
45220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45221         (Include): Use <stdlib.h>.
45222         * lib/stdlib.in.h (putenv): New declaration.
45223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45224         REPLACE_PUTENV.
45225         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45226         REPLACE_PUTENV.
45227         Needed for MacOS X 10.5.0.
45228         Reported by Peter O'Gorman <peter@pogma.com>.
45229
45230 2007-11-01  Jim Meyering  <meyering@redhat.com>
45231
45232         Treat an empty date string exactly like "0".
45233         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45234         if the remaining date string (to be parsed) is empty, use "0".
45235         Reported by Mischa Molhoek and discussed in this thread:
45236         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45237
45238 2007-10-31  Bruno Haible  <bruno@clisp.org>
45239
45240         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45241         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45242         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45243         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45244         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45245         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45246
45247 2007-10-31  Bruno Haible  <bruno@clisp.org>
45248
45249         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45250         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45251         (AC_TYPE_LONG_LONG_INT): Use it.
45252         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45253         it as well.
45254         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45255         to m4/longlong.m4.
45256         * modules/stdint (Files): Remove m4/ulonglong.m4.
45257         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45258         m4/ulonglong.m4.
45259         * modules/strtoumax (Files): Likewise.
45260
45261 2007-10-30  Bruno Haible  <bruno@clisp.org>
45262
45263         * modules/xvasprintf-posix: New file.
45264         Suggested by Eric Blake.
45265
45266 2007-10-30  Bruno Haible  <bruno@clisp.org>
45267
45268         * modules/xprintf-posix-tests: New file.
45269         * tests/test-xprintf-posix.sh: New file.
45270         * tests/test-xprintf-posix.c: New file.
45271         * tests/test-xfprintf-posix.c: New file.
45272
45273         * modules/xprintf-posix: New file.
45274
45275 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45276
45277         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45278         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45279         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45280
45281 2007-10-29  Bruno Haible  <bruno@clisp.org>
45282
45283         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45284         contain the special marker '_cv_'.
45285         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45286         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45287         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45288         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45289         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45290         Reported by Ralf Wildenhues.
45291
45292 2007-10-29  Bruno Haible  <bruno@clisp.org>
45293
45294         * gnulib-tool (func_import): When --lgpl is not specified, set
45295         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45296         GPLv3.
45297         Reported by Simon Josefsson.
45298
45299 2007-10-28  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45302         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45303         HAVE_DECL_ISFINITE.
45304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45305         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45306         HAVE_DECL_ISFINITE.
45307
45308 2007-10-28  Bruno Haible  <bruno@clisp.org>
45309
45310         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45311         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45312
45313 2007-10-28  Bruno Haible  <bruno@clisp.org>
45314
45315         Fix link errors with Sun C 5.0 on Solaris 10.
45316         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45317         function is declared but not present in the compiler's libm.
45318         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45319         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45320         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45321         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45322         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45323         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45324         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45326         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45327         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45328         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45329         HAVE_DECL_FLOORL.
45330
45331 2007-10-28  Bruno Haible  <bruno@clisp.org>
45332
45333         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45334         gl_FUNC_FLOORL. Cache the result.
45335         (gl_FUNC_FLOORL): Use it.
45336         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45337         gl_FUNC_CEILL. Cache the result.
45338         (gl_FUNC_CEILL): Use it.
45339
45340         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45341         gl_FUNC_FLOOR. Cache the result.
45342         (gl_FUNC_FLOOR): Use it.
45343         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45344         gl_FUNC_CEIL. Cache the result.
45345         (gl_FUNC_CEIL): Use it.
45346
45347         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45348         gl_FUNC_FLOORF. Cache the result.
45349         (gl_FUNC_FLOORF): Use it.
45350         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45351         gl_FUNC_CEILF. Cache the result.
45352         (gl_FUNC_CEILF): Use it.
45353
45354 2007-10-28  Bruno Haible  <bruno@clisp.org>
45355
45356         * gnulib-tool: Allow specifying the LGPL version number through
45357         --lgpl=2 or --lgpl=3.
45358         (func_usage): Document --lgpl with argument.
45359         Handle --lgpl=... arguments.
45360         (func_import): Recognize also gl_LGPL calls with an argument. When
45361         --lgpl=2 is used and the module's license is just LGPL, report an
45362         error. Set sed_transform_lib_file according to the lgpl variable. In
45363         the generated files, use --lgpl or gl_LGPL invocations with argument,
45364         if necessary.
45365         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45366         an LGPv2+ license.
45367         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45368         gl_LGPL macro.
45369
45370 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45371             Bruno Haible  <bruno@clisp.org>
45372
45373         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45374         (u16_uctomb_aux): Likewise.
45375         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45376         !HAVE_INLINE.
45377         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45378
45379 2007-10-28  Bruno Haible  <bruno@clisp.org>
45380
45381         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45382         Invoke AM_GETTEXT_OPTION if it exists.
45383         * modules/vasprintf: Likewise.
45384         * modules/verror: Likewise.
45385         * modules/xprintf: Likewise.
45386         * modules/xvasprintf: Likewise.
45387
45388 2007-10-27  Ben Pfaff  <blp@gnu.org>
45389
45390         * lib/math.in.h: Define isfinite macro and prototypes for
45391         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45392         implementations.
45393         * m4/math_h.m4: New substitutions for isfinite module.
45394         * lib/isfinite.c: New file.
45395         * m4/isfinite.m4: New file.
45396         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45397         * modules/isfinite: New file.
45398         * modules/isfinite-tests: New file.
45399         * tests/tests-isfinite.c: New file.
45400         * doc/functions/isfinite.texi: Mention isfinite module.
45401         * MODULES.html.sh: Mention new module.
45402
45403 2007-10-27  Ben Pfaff  <blp@gnu.org>
45404
45405         Ralf Wildenhues reported that Tru64 4.0D declares the round
45406         functions but does not have definitions.
45407         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45408         cannot be found in any library, set the output variable to
45409         "missing" instead of "".
45410         * m4/round.m4: Also use our substitute if we cannot find round in
45411         any library, even if it is declared.
45412         * m4/roundf.m4: Likewise for roundf.
45413         * m4/roundl.m4: Likewise for roundl.
45414         * lib/math.in.h: Undefine roundf, round, roundl before defining
45415         their replacements, to allow for hypothetical systems where these
45416         may be defined as macros but not available in libraries.
45417
45418 2007-10-27  Bruno Haible  <bruno@clisp.org>
45419
45420         * doc/gnulib.texi: Invoke @firstparagraphindent.
45421         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45422         changes in gnulib.
45423         (Source changes): New section.
45424
45425 2007-10-26  Bruno Haible  <bruno@clisp.org>
45426
45427         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45428         borrowed from autoconf.
45429
45430 2007-10-26  Bruno Haible  <bruno@clisp.org>
45431
45432         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45433         strerror returned the empty string. Needed on HP-UX 11.00.
45434
45435 2007-10-24  Micah Cowan  <micah@cowan.name>
45436
45437         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45438         * build-aux/bootstrap: Remove support for now-unnecessary option,
45439         --cvs-user, and envvars CVS_USER, CVS_RSH.
45440
45441 2007-10-24  Jim Meyering  <meyering@redhat.com>
45442
45443         Avoid diagnostics from sha1sum when there is no cached checksum.
45444         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45445         if the po.s1 file hasn't been created yet.
45446
45447         * build-aux/bootstrap: Sync from coreutils:
45448         2007-10-24  Jim Meyering  <meyering@redhat.com>
45449         Get gnulib from the git repository, not from an obsolete cvs one.
45450         * build-aux/bootstrap: Suggestion from Micah Cowan.
45451         2007-10-04  Jim Meyering  <jim@meyering.net>
45452         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45453         (update_po_files): Work also when there are no .po files in po/.
45454
45455 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45456
45457         * README: Append ".git" to git and cg examples.
45458         Problem reported by Benoit Sigoure.
45459
45460 2007-10-23  Micah Cowan  <micah@cowan.name>
45461
45462         * users.txt: Add wget.
45463
45464 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45465
45466         Fix linking of some unistdio tests on FreeBSD.
45467         * modules/unistdio/u16-vsnprintf-tests
45468         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45469         * modules/unistdio/u16-vsprintf-tests
45470         (test_u16_vsnprintf1_LDADD): Likewise.
45471         * modules/unistdio/u32-vsnprintf-tests
45472         (test_u32_vsnprintf1_LDADD): Likewise.
45473         * modules/unistdio/u32-vsprintf-tests
45474         (test_u32_vsprintf1_LDADD): Likewise.
45475         * modules/unistdio/u8-vsnprintf-tests
45476         (test_u8_vsnprintf1_LDADD): Likewise.
45477         * modules/unistdio/u8-vsprintf-tests
45478         (test_u8_vsprintf1_LDADD): Likewise.
45479         * modules/unistdio/ulc-vsnprintf-tests
45480         (test_ulc_vsnprintf1_LDADD): Likewise.
45481         * modules/unistdio/ulc-vsprintf-tests
45482         (test_ulc_vsprintf1_LDADD): Likewise.
45483
45484         Fix linking of some uniconv tests on FreeBSD.
45485         * modules/uniconv/u16-conv-from-enc-tests
45486         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45487         * modules/uniconv/u16-conv-to-enc-tests
45488         (test_u16_conv_to_enc_LDADD): Likewise.
45489         * modules/uniconv/u16-strconv-from-enc-tests
45490         (test_u16_strconv_from_enc_LDADD): Likewise.
45491         * modules/uniconv/u16-strconv-to-enc-tests
45492         (test_u16_strconv_to_enc_LDADD): Likewise.
45493         * modules/uniconv/u32-conv-from-enc-tests
45494         (test_u32_conv_from_enc_LDADD): Likewise.
45495         * modules/uniconv/u32-conv-to-enc-tests
45496         (test_u32_conv_to_enc_LDADD): Likewise.
45497         * modules/uniconv/u32-strconv-from-enc-tests
45498         (test_u32_strconv_from_enc_LDADD): Likewise.
45499         * modules/uniconv/u32-strconv-to-enc-tests
45500         (test_u32_strconv_to_enc_LDADD): Likewise.
45501         * modules/uniconv/u8-conv-from-enc-tests
45502         (test_u8_conv_from_enc_LDADD): Likewise.
45503         * modules/uniconv/u8-conv-to-enc-tests
45504         (test_u8_conv_to_enc_LDADD): Likewise.
45505         * modules/uniconv/u8-strconv-from-enc-tests
45506         (test_u8_strconv_from_enc_LDADD): Likewise.
45507         * modules/uniconv/u8-strconv-to-enc-tests
45508         (test_u8_strconv_to_enc_LDADD): Likewise.
45509
45510 2007-10-22  Bruno Haible  <bruno@clisp.org>
45511
45512         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45513         size.
45514
45515 2007-10-22  Eric Blake  <ebb9@byu.net>
45516
45517         Tweak x*printf documentation.
45518         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45519         variable name and comments.
45520         Suggested by Bruno Haible.
45521
45522 2007-10-22  Bruno Haible  <bruno@clisp.org>
45523
45524         * lib/acl.c (copy_acl): Fix file name in comment.
45525
45526 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45527
45528         Fix Tru64 problem with stdbool.h.
45529         * lib/stdbool.in.h (false, true):
45530         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45531         Don't declare as an enum in this situation; it runs afoul of Tru64.
45532         Problem reported by Steven M. Schweda in
45533         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45534
45535 2007-10-22  Eric Blake  <ebb9@byu.net>
45536
45537         Also wrap vf?printf.
45538         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45539         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45540         (xvprintf, xvfprintf): New functions.
45541
45542 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45543
45544         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45545         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45546
45547         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45548         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45549
45550 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45551
45552         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45553         by Bruno Haible.
45554
45555 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45556
45557         * lib/getloadavg.c
45558         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45559         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45560
45561         * tests/test-i-ring.c: Work for C89.
45562
45563 2007-10-22  Bruno Haible  <bruno@clisp.org>
45564
45565         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45566         -1u, in preprocessor expression, so that we don't test for the bug
45567         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45569
45570 2007-10-22  Eric Blake  <ebb9@byu.net>
45571
45572         * tests/test-yesno.sh: Silence stderr during test.
45573
45574 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45575
45576         * modules/crypto/gc-camellia: New file.
45577
45578         * m4/gc-camellia.m4: New file.
45579
45580         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45581
45582         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45583
45584 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45585
45586         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45587         --help to stdout.  Reported by sms@antinode.org (Steven
45588         M. Schweda).
45589
45590 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45591
45592         * users.txt: Fix link to libksba.
45593
45594 2007-10-21  Ben Pfaff  <blp@gnu.org>
45595
45596         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45597         round.c roundf implementation that depends on floorf and ceilf to
45598         be tested unconditionally.
45599
45600 2007-10-21  Ben Pfaff  <blp@gnu.org>
45601
45602         * m4/check-libm-func.m4: Removed.
45603         * m4/check-math-lib.m4: New file.
45604         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45605         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45606         definition and lack of AC_LIBOBJ([roundf]).
45607         * m4/roundl.m4: Ditto, and similarly for roundl.
45608         * modules/round: Reference new m4 file.
45609         * modules/roundf: Ditto.
45610         * modules/roundl: Ditto.
45611         * tests/test-round2.c (main): Use ROUND instead of round.
45612         Bug report from Bruno Haible.
45613
45614 2007-10-21  Bruno Haible  <bruno@clisp.org>
45615
45616         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45617         context.
45618
45619 2007-10-21  Bruno Haible  <bruno@clisp.org>
45620
45621         * tests/test-wcwidth.c (main): Allow negative result for some control
45622         characters.
45623
45624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45625         Needed on OSF/1 5.1.
45626
45627 2007-10-21  Bruno Haible  <bruno@clisp.org>
45628
45629         * tests/test-floorf1.c: Include isnanf.h.
45630         (main): Use isnanf() instead of isnan().
45631         * tests/test-ceilf1.c: Include isnanf.h.
45632         (main): Use isnanf() instead of isnan().
45633         * tests/test-truncf1.c: Include isnanf.h.
45634         (main): Use isnanf() instead of isnan().
45635         * tests/test-roundf1.c: Include isnanf.h.
45636         (main): Use isnanf() instead of isnan().
45637
45638 2007-10-21  Eric Blake  <ebb9@byu.net>
45639
45640         * users.txt: Update URL for m4.
45641
45642 2007-10-21  Bruno Haible  <bruno@clisp.org>
45643
45644         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45645
45646 2007-10-21  Bruno Haible  <bruno@clisp.org>
45647
45648         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45649         Git's management files if the CVS files are not present.
45650
45651 2007-10-20  Bruno Haible  <bruno@clisp.org>
45652
45653         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45654         gcc-3.4.x.
45655
45656 2007-10-20  Ben Pfaff  <blp@gnu.org>
45657
45658         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45659         implementations.
45660         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45661         * lib/round.c: New file.
45662         * lib/roundf.c: New file.
45663         * lib/roundl.c: New file.
45664         * m4/round.m4: New file.
45665         * m4/roundf.m4: New file.
45666         * m4/roundl.m4: New file.
45667         * m4/check-libm-func-m4: New file.
45668         * modules/math: Replace round, roundf, roundl related @VARS@ in
45669         math.in.h.
45670         * modules/round: New file.
45671         * modules/round-tests: New file.
45672         * modules/roundf: New file.
45673         * modules/roundf-tests: New file.
45674         * modules/roundl: New file.
45675         * modules/roundl-tests: New file.
45676         * tests/test-round1.c: New file.
45677         * tests/test-round2.c: New file.
45678         * tests/test-roundf1.c: New file.
45679         * tests/test-roundf2.c: New file.
45680         * tests/test-roundl.c: New file.
45681         * doc/functions/round.texi: Mention round module.
45682         * doc/functions/roundf.texi: Mention roundf module.
45683         * doc/functions/roundl.texi: Mention roundl module.
45684         * MODULES.html.sh: Mention new modules.
45685         Thanks to Bruno Haible for suggestions.
45686
45687 2007-10-20  Jim Meyering  <meyering@redhat.com>
45688
45689         * lib/xprintf.c: Include <config.h> unconditionally.
45690
45691         Change xprintf's license to GPL.
45692         * modules/xprintf (License): s/LGPL/GPL/, since this module
45693         depends on modules (exit and exitfail) which are GPL.
45694         Suggestion from Bruno Haible.
45695
45696         xprintf fixes.
45697         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45698         Use a clearer diagnostic.
45699         Patch from Bruno Haible.
45700
45701 2007-10-20  Bruno Haible  <bruno@clisp.org>
45702
45703         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45704         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45705         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45706
45707 2007-10-20  Bruno Haible  <bruno@clisp.org>
45708
45709         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45710         precision in the comparison result > x - 1 or similar.
45711         * tests/test-ceilf2.c (correct_result_p): Likewise.
45712         * tests/test-truncf2.c (correct_result_p): Likewise.
45713         * tests/test-trunc2.c (correct_result_p): Likewise.
45714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45715
45716 2007-10-20  Bruno Haible  <bruno@clisp.org>
45717
45718         * modules/ceil: New file.
45719         * m4/ceil.m4: New file.
45720         * doc/functions/ceil.texi: Mention the 'ceil' module.
45721
45722 2007-10-20  Bruno Haible  <bruno@clisp.org>
45723
45724         * modules/floor: New file.
45725         * m4/floor.m4: New file.
45726         * doc/functions/floor.texi: Mention the 'floor' module.
45727
45728 2007-10-20  Bruno Haible  <bruno@clisp.org>
45729
45730         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45731         of %a.
45732         * modules/floorf-tests (Depends-on): Likewise.
45733         * modules/truncf-tests (Depends-on): Likewise.
45734         * modules/trunc-tests (Depends-on): Likewise.
45735         Reported by Ben Pfaff.
45736
45737 2007-10-19  Jim Meyering  <meyering@redhat.com>
45738
45739         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45740         Don't bother testing specific errno values.  Just test ferror.
45741
45742         New module: xprintf
45743         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45744
45745 2007-10-19  Bruno Haible  <bruno@clisp.org>
45746
45747         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45748         syntax.
45749         * modules/javaexec (Makefile.am): Likewise.
45750         * modules/relocatable-prog (Makefile.am): Likewise.
45751         Suggested by Jim Meyering.
45752
45753 2007-10-18  Bruno Haible  <bruno@clisp.org>
45754
45755         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45756         Reported by Jim Meyering.
45757
45758 2007-10-18  Eric Blake  <ebb9@byu.net>
45759
45760         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45761
45762 2007-10-18  Bruno Haible  <bruno@clisp.org>
45763
45764         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45765         the format string into writable memory. Needed in Fortify conditions.
45766
45767 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45768             Bruno Haible  <bruno@clisp.org>
45769
45770         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45771         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45772         * modules/trim (Depends-on): Add mbchar.
45773         (configure.ac): Add gl_FUNC_MBRTOWC.
45774         (Makefile.am): Augment lib_SOURCES.
45775
45776 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45777
45778         Modify glob.c to use fstatat and dirfd, to simplify it.
45779         Suggested by Eric Blake.
45780         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45781         Don't include <stdbool.h>; not used.
45782         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45783         (link_exists_p): Simplify implementation, since we can now assume
45784         dirfd and fstatat.
45785         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45786
45787 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45788
45789         * gnulib-tool (func_get_dependencies): Fix sed script to
45790         match only tests.
45791
45792 2007-10-17  Bruno Haible  <bruno@clisp.org>
45793
45794         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45795         allow locale names without encoding suffix.
45796         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45797         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45798
45799 2007-10-16  Bruno Haible  <bruno@clisp.org>
45800
45801         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45802         * lib/getgroups.c (getgroups): Likewise.
45803         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45804
45805 2007-10-16  Bruno Haible  <bruno@clisp.org>
45806
45807         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45808         * modules/malloc-posix (License): Likewise.
45809         * modules/realloc-posix (License): Likewise.
45810         * modules/calloc-posix (License): Likewise.
45811         * modules/intprops (License): Change from GPL to LGPL, with
45812         Paul Eggert's approval.
45813
45814 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45815
45816         Merge glibc changes into lib/glob.c.
45817
45818         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45819         2007-10-15 04:59:03 UTC.  Here are the changes:
45820
45821         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45822
45823         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45824
45825         * lib/glob.c: Add some branch prediction throughout.
45826
45827         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45828
45829         [BZ #5103]
45830         * lib/glob.c (glob): Recognize patterns starting \/.
45831
45832         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45833
45834         [BZ #3996]
45835         * lib/glob.c (attribute_hidden): Define if not defined.
45836         (glob): Unescape dirname, filename or username when needed and not
45837         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45838         is NULL.  Handle unescaped [ in pattern without closing ].
45839         Don't pass GLOB_CHECK down to recursive glob for directories.
45840         (__glob_pattern_type): New function.
45841         (__glob_pattern_p): Implement using __glob_pattern_type.
45842         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45843         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45844         Remove unreachable code.
45845
45846         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45847
45848         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45849         explain why there are no leaks.
45850
45851         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45852
45853         [BZ #3253]
45854         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45855         time, rather allocate increasingly bigger arrays of pointers, if
45856         possible with alloca, if too large with malloc.
45857
45858 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45859
45860         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45861         Problem reported by H.Merijn Brand in
45862         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45863         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45864         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45865
45866 2007-10-15  Bruno Haible  <bruno@clisp.org>
45867
45868         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45869         with explicit rpl_ prefix.
45870         * lib/fopen.c (fopen): Likewise.
45871         * lib/freopen.c (freopen): Likewise.
45872         * lib/iconv.c (iconv): Likewise.
45873         * lib/iconv_close.c (iconv_close): Likewise.
45874
45875 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45876
45877         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45878
45879 2007-10-15  Bruno Haible  <bruno@clisp.org>
45880
45881         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45882         <stddef.h> instead of <stdlib.h> since we only need NULL.
45883         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45884
45885 2007-10-15  Bruno Haible  <bruno@clisp.org>
45886
45887         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45888         Replace paragraph talking about LIBOBJS.
45889         Reported by Colin Watson <cjwatson@debian.org>.
45890
45891 2007-10-15  Bruno Haible  <bruno@clisp.org>
45892
45893         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45894         <stdlib.h> before using NULL.
45895
45896 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45897
45898         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45899         Reported by Albert Chin <china@thewrittenword.com>.
45900
45901 2007-10-14  Bruno Haible  <bruno@clisp.org>
45902
45903         * modules/iconv_open-utf-tests: New file.
45904         * tests/test-iconv-utf.c: New file.
45905
45906         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45907         * modules/iconv_open-utf: New file.
45908         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45909         (iconv, iconv_close): New declarations.
45910         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45911         be defined.
45912         (iconv_open): Add special handling of conversion between UTF-8 and
45913         UTF-{16,32}{BE,LE}.
45914         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45915         * lib/iconv_close.c: New file.
45916         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45917         gl_FUNC_ICONV_OPEN.
45918         (gl_FUNC_ICONV_OPEN): Use it.
45919         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45920         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45921         and REPLACE_ICONV_UTF.
45922         * modules/iconv_open (Depends-on): Add c-strcase.
45923         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45924         ICONV_CONST.
45925         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45926
45927 2007-10-13  Albert Chin  <china@thewrittenword.com>
45928             Bruno Haible  <bruno@clisp.org>
45929
45930         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45931         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45932
45933 2007-10-13  Bruno Haible  <bruno@clisp.org>
45934
45935         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45936         defined, use the ISO C99 inline semantics.
45937         * lib/argp.h (ARGP_EI): Likewise.
45938
45939 2007-10-13  Bruno Haible  <bruno@clisp.org>
45940
45941         Handle 'inline' change in gcc 4.3.0.
45942         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45943         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45944         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45945         argp_fmtstream_point): Disable 'extern' declaration if the function
45946         definition is going to be provided inline.
45947         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45948         semantics, not the ISO C99 inline semantics.
45949         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45950         'extern' declaration if the function definition is going to be provided
45951         inline.
45952         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45953         the GNU C inline semantics, not the ISO C99 inline semantics. With
45954         GCC 4.2, avoid a warning.
45955
45956 2007-10-13  Bruno Haible  <bruno@clisp.org>
45957
45958         * lib/freading.h (freading): Enable the use of __freading for
45959         glibc >= 2.7.
45960         * lib/freading.c (freading): Likewise.
45961
45962 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45963
45964         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45965         "warning: C99 inline functions are not supported; using GNU89".
45966
45967 2007-10-12  Bruno Haible  <bruno@clisp.org>
45968
45969         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45970         of 2.
45971         * tests/test-ceilf2.c: New file.
45972         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45973
45974         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45975         * modules/ceilf-tests: Update.
45976
45977 2007-10-12  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45980         of 2.
45981         * tests/test-floorf2.c: New file.
45982         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45983
45984         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45985         * modules/floorf-tests: Update.
45986
45987 2007-10-12  Bruno Haible  <bruno@clisp.org>
45988
45989         * tests/test-trunc2.c: New file.
45990         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45991
45992         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45993         * modules/trunc-tests: Update.
45994
45995 2007-10-12  Bruno Haible  <bruno@clisp.org>
45996
45997         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45998         of 2.
45999         * tests/test-truncf2.c: New file.
46000         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46001
46002         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46003         * modules/truncf-tests: Update.
46004
46005 2007-10-11  Eric Blake  <ebb9@byu.net>
46006
46007         Don't claim strerror is broken on Interix.
46008         * doc/functions/strerror.texi (strerror): Known broken systems are
46009         now Solaris 8, and not Interix.
46010         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46011         Interix on cross-compile.
46012         Reported by Martin Koeppe in
46013         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46014
46015 2007-10-11  Bruno Haible  <bruno@clisp.org>
46016
46017         * modules/i-ring-tests: New file.
46018         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46019         instead of assert.
46020
46021 2007-10-11  Bruno Haible  <bruno@clisp.org>
46022
46023         * modules/filenamecat-tests: New file.
46024         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46025         * lib/filenamecat.c: Remove test code.
46026
46027 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46028
46029         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46030
46031         * lib/strerror.c: Include <string.h> always, to test interface,
46032         and to remove the need for the dummy.
46033         Include intprops.h to compute width instead of doing it ourselves
46034         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46035         (strerror): Define it to return NULL if there's no system strerror.
46036         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46037         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46038         ancient pre-strerror Unix systems well any more.  Saying "unknown
46039         system error" is enough.
46040         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46041         simpler strerror.c implementation.
46042         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46043         Simplify the tests to reflect the simpler strerror implementation.
46044         * modules/strerror (Depends-on): Add intprops.
46045
46046 2007-10-09  Eric Blake  <ebb9@byu.net>
46047
46048         Silence test-fpending.
46049         * modules/fpending-tests (Files): Add wrapper script.
46050         * tests/test-fpending.sh: New file.
46051
46052 2007-10-09  Bruno Haible  <bruno@clisp.org>
46053
46054         * MODULES.html.sh (func_module): Don't create a hyperlink for
46055         function names like 'printf_frexp'.
46056         (Misc): Add crc, memxor.
46057         (Characteristics of floating types): New section.
46058         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46059         isnanf-nolibm, signbit, trunc, truncf, truncl.
46060         (Enhancements for ISO C 99 functions): New subsection Input/output.
46061         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46062         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46063         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46064         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46065         (Enhancements for POSIX:2001 functions): Add chdir-long.
46066         (File system functions): Add areadlink, chdir-safer, read-file.
46067         Remove cycle-check.
46068         (File system as inode set): New section.
46069         (Date and time): Add gethrxtime.
46070         (Multithreading): Add openmp.
46071         (Internationalization functions): Add localename.
46072         (Unicode string functions): Add unistr/u*-mbsnlen.
46073         (Support for maintaining and releasing projects): Add git-version-gen.
46074         (Lone files): Remove directories.
46075
46076 2007-10-08  Ben Pfaff  <blp@gnu.org>
46077
46078         * lib/xmalloca.h: Fix typo in comment.
46079
46080 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46081
46082         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46083         when avoiding problems with integer overflow.  Use a portable test
46084         instead.
46085
46086 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46087
46088         * modules/dummy (License): Change to LGPLv2+.
46089         * modules/float (License): Likewise
46090         * modules/realloc (License): Likewise
46091         * modules/stdlib (License): Likewise
46092
46093 2007-10-07  Bruno Haible  <bruno@clisp.org>
46094
46095         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46096         * floor.c (TWO_MANT_DIG): Likewise.
46097         * ceil.c (TWO_MANT_DIG): Likewise.
46098         Reported by Ben Pfaff.
46099
46100 2007-10-07  Bruno Haible  <bruno@clisp.org>
46101
46102         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46103         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46104         * lib/frexp.c (FUNC): Likewise.
46105         * lib/printf-frexp.h (printf_frexp): Likewise.
46106         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46107         * lib/printf-frexp.c (FUNC): Likewise.
46108         Suggested by Jim Meyering.
46109
46110 2007-10-07  Jim Meyering  <meyering@redhat.com>
46111
46112         Make xnanosleep's integer overflow test more robust.
46113         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46114         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46115
46116 2007-10-07  Bruno Haible  <bruno@clisp.org>
46117
46118         * NEWS: Mention the license change.
46119
46120         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46121         abbreviations in the modules files.
46122
46123         Change copyright notice from GPLv2+ to GPLv3+.
46124         * README: Change copyright notice.
46125         * MODULES.html.sh: Likewise.
46126         * build-aux/bootstrap.conf: Likewise.
46127         * build-aux/config.libpath: Likewise.
46128         * build-aux/csharpcomp.sh.in: Likewise.
46129         * build-aux/csharpexec.sh.in: Likewise.
46130         * build-aux/install-reloc: Likewise.
46131         * build-aux/javacomp.sh.in: Likewise.
46132         * build-aux/javaexec.sh.in: Likewise.
46133         * build-aux/ldd.sh.in: Likewise.
46134         * build-aux/reloc-ldflags: Likewise.
46135         * build-aux/relocatable.sh.in: Likewise.
46136         * build-aux/x-to-1.in: Likewise.
46137         * check-module: Likewise.
46138         * config/srclistvars.sh: Likewise.
46139         * gnulib-tool: Likewise.
46140         * lib/acl-internal.h: Likewise.
46141         * lib/acl.c: Likewise.
46142         * lib/acl.h: Likewise.
46143         * lib/acl_entries.c: Likewise.
46144         * lib/areadlink-with-size.c: Likewise.
46145         * lib/areadlink.c: Likewise.
46146         * lib/areadlink.h: Likewise.
46147         * lib/argmatch.c: Likewise.
46148         * lib/argmatch.h: Likewise.
46149         * lib/argp-ba.c: Likewise.
46150         * lib/argp-eexst.c: Likewise.
46151         * lib/argp-fmtstream.c: Likewise.
46152         * lib/argp-fmtstream.h: Likewise.
46153         * lib/argp-fs-xinl.c: Likewise.
46154         * lib/argp-help.c: Likewise.
46155         * lib/argp-namefrob.h: Likewise.
46156         * lib/argp-parse.c: Likewise.
46157         * lib/argp-pin.c: Likewise.
46158         * lib/argp-pv.c: Likewise.
46159         * lib/argp-pvh.c: Likewise.
46160         * lib/argp-xinl.c: Likewise.
46161         * lib/argp.h: Likewise.
46162         * lib/at-func.c: Likewise.
46163         * lib/atanl.c: Likewise.
46164         * lib/backupfile.c: Likewise.
46165         * lib/backupfile.h: Likewise.
46166         * lib/basename.c: Likewise.
46167         * lib/binary-io.h: Likewise.
46168         * lib/byteswap.in.h: Likewise.
46169         * lib/c-stack.c: Likewise.
46170         * lib/c-stack.h: Likewise.
46171         * lib/c-strcasestr.c: Likewise.
46172         * lib/c-strcasestr.h: Likewise.
46173         * lib/c-strstr.c: Likewise.
46174         * lib/c-strstr.h: Likewise.
46175         * lib/c-strtod.c: Likewise.
46176         * lib/calloc.c: Likewise.
46177         * lib/canon-host.c: Likewise.
46178         * lib/canon-host.h: Likewise.
46179         * lib/canonicalize-lgpl.c: Likewise.
46180         * lib/canonicalize.c: Likewise.
46181         * lib/canonicalize.h: Likewise.
46182         * lib/ceil.c: Likewise.
46183         * lib/ceilf.c: Likewise.
46184         * lib/ceill.c: Likewise.
46185         * lib/chdir-long.c: Likewise.
46186         * lib/chdir-long.h: Likewise.
46187         * lib/chdir-safer.c: Likewise.
46188         * lib/chdir-safer.h: Likewise.
46189         * lib/chown.c: Likewise.
46190         * lib/classpath.c: Likewise.
46191         * lib/classpath.h: Likewise.
46192         * lib/clean-temp.c: Likewise.
46193         * lib/clean-temp.h: Likewise.
46194         * lib/cloexec.c: Likewise.
46195         * lib/close-stream.c: Likewise.
46196         * lib/closein.c: Likewise.
46197         * lib/closein.h: Likewise.
46198         * lib/closeout.c: Likewise.
46199         * lib/closeout.h: Likewise.
46200         * lib/concat-filename.c: Likewise.
46201         * lib/copy-file.c: Likewise.
46202         * lib/copy-file.h: Likewise.
46203         * lib/count-one-bits.h: Likewise.
46204         * lib/crc.c: Likewise.
46205         * lib/crc.h: Likewise.
46206         * lib/creat-safer.c: Likewise.
46207         * lib/csharpcomp.c: Likewise.
46208         * lib/csharpcomp.h: Likewise.
46209         * lib/csharpexec.c: Likewise.
46210         * lib/csharpexec.h: Likewise.
46211         * lib/cycle-check.c: Likewise.
46212         * lib/cycle-check.h: Likewise.
46213         * lib/diacrit.c: Likewise.
46214         * lib/diacrit.h: Likewise.
46215         * lib/diffseq.h: Likewise.
46216         * lib/dirchownmod.c: Likewise.
46217         * lib/dirent.in.h: Likewise.
46218         * lib/dirfd.c: Likewise.
46219         * lib/dirfd.h: Likewise.
46220         * lib/dirname.c: Likewise.
46221         * lib/dirname.h: Likewise.
46222         * lib/dummy.c: Likewise.
46223         * lib/dup-safer.c: Likewise.
46224         * lib/dup2.c: Likewise.
46225         * lib/eealloc.h: Likewise.
46226         * lib/error.c: Likewise.
46227         * lib/error.h: Likewise.
46228         * lib/euidaccess.c: Likewise.
46229         * lib/exclude.c: Likewise.
46230         * lib/exclude.h: Likewise.
46231         * lib/execute.c: Likewise.
46232         * lib/execute.h: Likewise.
46233         * lib/exitfail.c: Likewise.
46234         * lib/exitfail.h: Likewise.
46235         * lib/expl.c: Likewise.
46236         * lib/fatal-signal.c: Likewise.
46237         * lib/fatal-signal.h: Likewise.
46238         * lib/fbufmode.c: Likewise.
46239         * lib/fbufmode.h: Likewise.
46240         * lib/fchdir.c: Likewise.
46241         * lib/fchmodat.c: Likewise.
46242         * lib/fchownat.c: Likewise.
46243         * lib/fcntl--.h: Likewise.
46244         * lib/fcntl-safer.h: Likewise.
46245         * lib/fcntl.in.h: Likewise.
46246         * lib/fd-safer.c: Likewise.
46247         * lib/fflush.c: Likewise.
46248         * lib/file-has-acl.c: Likewise.
46249         * lib/file-set.c: Likewise.
46250         * lib/file-type.c: Likewise.
46251         * lib/file-type.h: Likewise.
46252         * lib/fileblocks.c: Likewise.
46253         * lib/filemode.c: Likewise.
46254         * lib/filemode.h: Likewise.
46255         * lib/filename.h: Likewise.
46256         * lib/filenamecat.c: Likewise.
46257         * lib/filenamecat.h: Likewise.
46258         * lib/findprog.c: Likewise.
46259         * lib/findprog.h: Likewise.
46260         * lib/float.in.h: Likewise.
46261         * lib/floor.c: Likewise.
46262         * lib/floorf.c: Likewise.
46263         * lib/floorl.c: Likewise.
46264         * lib/fopen-safer.c: Likewise.
46265         * lib/fopen.c: Likewise.
46266         * lib/fpending.c: Likewise.
46267         * lib/fpending.h: Likewise.
46268         * lib/fprintf.c: Likewise.
46269         * lib/fprintftime.h: Likewise.
46270         * lib/fpucw.h: Likewise.
46271         * lib/fpurge.c: Likewise.
46272         * lib/fpurge.h: Likewise.
46273         * lib/freadable.c: Likewise.
46274         * lib/freadable.h: Likewise.
46275         * lib/freadahead.c: Likewise.
46276         * lib/freadahead.h: Likewise.
46277         * lib/freading.c: Likewise.
46278         * lib/freading.h: Likewise.
46279         * lib/free.c: Likewise.
46280         * lib/freopen.c: Likewise.
46281         * lib/frexp.c: Likewise.
46282         * lib/frexpl.c: Likewise.
46283         * lib/fseek.c: Likewise.
46284         * lib/fseterr.c: Likewise.
46285         * lib/fseterr.h: Likewise.
46286         * lib/fstatat.c: Likewise.
46287         * lib/fstrcmp.c: Likewise.
46288         * lib/fstrcmp.h: Likewise.
46289         * lib/fsusage.c: Likewise.
46290         * lib/fsusage.h: Likewise.
46291         * lib/ftell.c: Likewise.
46292         * lib/ftello.c: Likewise.
46293         * lib/fts-cycle.c: Likewise.
46294         * lib/fts.c: Likewise.
46295         * lib/fts_.h: Likewise.
46296         * lib/full-read.c: Likewise.
46297         * lib/full-read.h: Likewise.
46298         * lib/full-write.c: Likewise.
46299         * lib/full-write.h: Likewise.
46300         * lib/fwritable.c: Likewise.
46301         * lib/fwritable.h: Likewise.
46302         * lib/fwriteerror.c: Likewise.
46303         * lib/fwriteerror.h: Likewise.
46304         * lib/fwriting.c: Likewise.
46305         * lib/fwriting.h: Likewise.
46306         * lib/gcd.c: Likewise.
46307         * lib/gcd.h: Likewise.
46308         * lib/getcwd.c: Likewise.
46309         * lib/getdate.h: Likewise.
46310         * lib/getdate.y: Likewise.
46311         * lib/getdomainname.c: Likewise.
46312         * lib/getdomainname.h: Likewise.
46313         * lib/getgroups.c: Likewise.
46314         * lib/gethostname.c: Likewise.
46315         * lib/gethrxtime.c: Likewise.
46316         * lib/gethrxtime.h: Likewise.
46317         * lib/getloadavg.c: Likewise.
46318         * lib/getndelim2.c: Likewise.
46319         * lib/getndelim2.h: Likewise.
46320         * lib/getnline.c: Likewise.
46321         * lib/getnline.h: Likewise.
46322         * lib/getopt.c: Likewise.
46323         * lib/getopt.in.h: Likewise.
46324         * lib/getopt1.c: Likewise.
46325         * lib/getopt_int.h: Likewise.
46326         * lib/getpagesize.h: Likewise.
46327         * lib/getsubopt.c: Likewise.
46328         * lib/gettime.c: Likewise.
46329         * lib/getugroups.c: Likewise.
46330         * lib/getugroups.h: Likewise.
46331         * lib/getusershell.c: Likewise.
46332         * lib/gl_anyavltree_list1.h: Likewise.
46333         * lib/gl_anyavltree_list2.h: Likewise.
46334         * lib/gl_anyhash_list1.h: Likewise.
46335         * lib/gl_anyhash_list2.h: Likewise.
46336         * lib/gl_anylinked_list1.h: Likewise.
46337         * lib/gl_anylinked_list2.h: Likewise.
46338         * lib/gl_anyrbtree_list1.h: Likewise.
46339         * lib/gl_anyrbtree_list2.h: Likewise.
46340         * lib/gl_anytree_list1.h: Likewise.
46341         * lib/gl_anytree_list2.h: Likewise.
46342         * lib/gl_anytree_oset.h: Likewise.
46343         * lib/gl_anytreehash_list1.h: Likewise.
46344         * lib/gl_anytreehash_list2.h: Likewise.
46345         * lib/gl_array_list.c: Likewise.
46346         * lib/gl_array_list.h: Likewise.
46347         * lib/gl_array_oset.c: Likewise.
46348         * lib/gl_array_oset.h: Likewise.
46349         * lib/gl_avltree_list.c: Likewise.
46350         * lib/gl_avltree_list.h: Likewise.
46351         * lib/gl_avltree_oset.c: Likewise.
46352         * lib/gl_avltree_oset.h: Likewise.
46353         * lib/gl_avltreehash_list.c: Likewise.
46354         * lib/gl_avltreehash_list.h: Likewise.
46355         * lib/gl_carray_list.c: Likewise.
46356         * lib/gl_carray_list.h: Likewise.
46357         * lib/gl_linked_list.c: Likewise.
46358         * lib/gl_linked_list.h: Likewise.
46359         * lib/gl_linkedhash_list.c: Likewise.
46360         * lib/gl_linkedhash_list.h: Likewise.
46361         * lib/gl_list.c: Likewise.
46362         * lib/gl_list.h: Likewise.
46363         * lib/gl_oset.c: Likewise.
46364         * lib/gl_oset.h: Likewise.
46365         * lib/gl_rbtree_list.c: Likewise.
46366         * lib/gl_rbtree_list.h: Likewise.
46367         * lib/gl_rbtree_oset.c: Likewise.
46368         * lib/gl_rbtree_oset.h: Likewise.
46369         * lib/gl_rbtreehash_list.c: Likewise.
46370         * lib/gl_rbtreehash_list.h: Likewise.
46371         * lib/gl_sublist.c: Likewise.
46372         * lib/gl_sublist.h: Likewise.
46373         * lib/group-member.c: Likewise.
46374         * lib/group-member.h: Likewise.
46375         * lib/hard-locale.c: Likewise.
46376         * lib/hard-locale.h: Likewise.
46377         * lib/hash-pjw.c: Likewise.
46378         * lib/hash-pjw.h: Likewise.
46379         * lib/hash-triple.c: Likewise.
46380         * lib/hash.c: Likewise.
46381         * lib/hash.h: Likewise.
46382         * lib/human.c: Likewise.
46383         * lib/human.h: Likewise.
46384         * lib/i-ring.c: Likewise.
46385         * lib/i-ring.h: Likewise.
46386         * lib/idcache.c: Likewise.
46387         * lib/imaxabs.c: Likewise.
46388         * lib/imaxdiv.c: Likewise.
46389         * lib/inet_pton.c: Likewise.
46390         * lib/inet_pton.h: Likewise.
46391         * lib/intprops.h: Likewise.
46392         * lib/inttostr.c: Likewise.
46393         * lib/inttostr.h: Likewise.
46394         * lib/inttypes.in.h: Likewise.
46395         * lib/isapipe.c: Likewise.
46396         * lib/isdir.c: Likewise.
46397         * lib/isnan.c: Likewise.
46398         * lib/isnan.h: Likewise.
46399         * lib/isnanf.c: Likewise.
46400         * lib/isnanf.h: Likewise.
46401         * lib/isnanl-nolibm.h: Likewise.
46402         * lib/isnanl.c: Likewise.
46403         * lib/isnanl.h: Likewise.
46404         * lib/javacomp.c: Likewise.
46405         * lib/javacomp.h: Likewise.
46406         * lib/javaexec.c: Likewise.
46407         * lib/javaexec.h: Likewise.
46408         * lib/javaversion.c: Likewise.
46409         * lib/javaversion.h: Likewise.
46410         * lib/javaversion.java: Likewise.
46411         * lib/lbrkprop.h: Likewise.
46412         * lib/lchmod.h: Likewise.
46413         * lib/lchown.c: Likewise.
46414         * lib/ldexpl.c: Likewise.
46415         * lib/linebreak.c: Likewise.
46416         * lib/linebreak.h: Likewise.
46417         * lib/linebuffer.c: Likewise.
46418         * lib/linebuffer.h: Likewise.
46419         * lib/locale.in.h: Likewise.
46420         * lib/logl.c: Likewise.
46421         * lib/long-options.c: Likewise.
46422         * lib/long-options.h: Likewise.
46423         * lib/lstat.c: Likewise.
46424         * lib/lstat.h: Likewise.
46425         * lib/math.in.h: Likewise.
46426         * lib/mbchar.c: Likewise.
46427         * lib/mbchar.h: Likewise.
46428         * lib/mbfile.h: Likewise.
46429         * lib/mbiter.h: Likewise.
46430         * lib/mbscasecmp.c: Likewise.
46431         * lib/mbscasestr.c: Likewise.
46432         * lib/mbschr.c: Likewise.
46433         * lib/mbscspn.c: Likewise.
46434         * lib/mbslen.c: Likewise.
46435         * lib/mbsncasecmp.c: Likewise.
46436         * lib/mbsnlen.c: Likewise.
46437         * lib/mbspbrk.c: Likewise.
46438         * lib/mbspcasecmp.c: Likewise.
46439         * lib/mbsrchr.c: Likewise.
46440         * lib/mbssep.c: Likewise.
46441         * lib/mbsspn.c: Likewise.
46442         * lib/mbsstr.c: Likewise.
46443         * lib/mbstok_r.c: Likewise.
46444         * lib/mbswidth.c: Likewise.
46445         * lib/mbswidth.h: Likewise.
46446         * lib/mbuiter.h: Likewise.
46447         * lib/memcasecmp.c: Likewise.
46448         * lib/memcasecmp.h: Likewise.
46449         * lib/memchr.c: Likewise.
46450         * lib/memcmp.c: Likewise.
46451         * lib/memcoll.c: Likewise.
46452         * lib/memcoll.h: Likewise.
46453         * lib/memcpy.c: Likewise.
46454         * lib/memrchr.c: Likewise.
46455         * lib/mkancesdirs.c: Likewise.
46456         * lib/mkdir-p.c: Likewise.
46457         * lib/mkdir-p.h: Likewise.
46458         * lib/mkdir.c: Likewise.
46459         * lib/mkdirat.c: Likewise.
46460         * lib/mkdtemp.c: Likewise.
46461         * lib/mkstemp-safer.c: Likewise.
46462         * lib/mkstemp.c: Likewise.
46463         * lib/modechange.c: Likewise.
46464         * lib/modechange.h: Likewise.
46465         * lib/mountlist.c: Likewise.
46466         * lib/mountlist.h: Likewise.
46467         * lib/mpsort.c: Likewise.
46468         * lib/nanosleep.c: Likewise.
46469         * lib/obstack.c: Likewise.
46470         * lib/obstack.h: Likewise.
46471         * lib/open-safer.c: Likewise.
46472         * lib/open.c: Likewise.
46473         * lib/openat-die.c: Likewise.
46474         * lib/openat-priv.h: Likewise.
46475         * lib/openat-proc.c: Likewise.
46476         * lib/openat.c: Likewise.
46477         * lib/openat.h: Likewise.
46478         * lib/pagealign_alloc.c: Likewise.
46479         * lib/pagealign_alloc.h: Likewise.
46480         * lib/physmem.c: Likewise.
46481         * lib/physmem.h: Likewise.
46482         * lib/pipe-safer.c: Likewise.
46483         * lib/pipe.c: Likewise.
46484         * lib/pipe.h: Likewise.
46485         * lib/posixtm.c: Likewise.
46486         * lib/posixtm.h: Likewise.
46487         * lib/posixver.c: Likewise.
46488         * lib/printf-frexp.c: Likewise.
46489         * lib/printf-frexp.h: Likewise.
46490         * lib/printf-frexpl.c: Likewise.
46491         * lib/printf-frexpl.h: Likewise.
46492         * lib/printf.c: Likewise.
46493         * lib/progname.c: Likewise.
46494         * lib/progname.h: Likewise.
46495         * lib/progreloc.c: Likewise.
46496         * lib/putenv.c: Likewise.
46497         * lib/quote.c: Likewise.
46498         * lib/quote.h: Likewise.
46499         * lib/quotearg.c: Likewise.
46500         * lib/quotearg.h: Likewise.
46501         * lib/raise.c: Likewise.
46502         * lib/readline.c: Likewise.
46503         * lib/readline.h: Likewise.
46504         * lib/readlink.c: Likewise.
46505         * lib/readtokens.c: Likewise.
46506         * lib/readtokens.h: Likewise.
46507         * lib/readtokens0.c: Likewise.
46508         * lib/readtokens0.h: Likewise.
46509         * lib/readutmp.c: Likewise.
46510         * lib/readutmp.h: Likewise.
46511         * lib/realloc.c: Likewise.
46512         * lib/relocwrapper.c: Likewise.
46513         * lib/rename-dest-slash.c: Likewise.
46514         * lib/rename.c: Likewise.
46515         * lib/rmdir.c: Likewise.
46516         * lib/rpmatch.c: Likewise.
46517         * lib/safe-read.c: Likewise.
46518         * lib/safe-read.h: Likewise.
46519         * lib/safe-write.c: Likewise.
46520         * lib/safe-write.h: Likewise.
46521         * lib/same-inode.h: Likewise.
46522         * lib/same.c: Likewise.
46523         * lib/same.h: Likewise.
46524         * lib/save-cwd.c: Likewise.
46525         * lib/save-cwd.h: Likewise.
46526         * lib/savedir.c: Likewise.
46527         * lib/savedir.h: Likewise.
46528         * lib/savewd.c: Likewise.
46529         * lib/savewd.h: Likewise.
46530         * lib/search.in.h: Likewise.
46531         * lib/setenv.c: Likewise.
46532         * lib/setenv.h: Likewise.
46533         * lib/settime.c: Likewise.
46534         * lib/sh-quote.c: Likewise.
46535         * lib/sh-quote.h: Likewise.
46536         * lib/sig2str.c: Likewise.
46537         * lib/sig2str.h: Likewise.
46538         * lib/signal.in.h: Likewise.
46539         * lib/signbitd.c: Likewise.
46540         * lib/signbitf.c: Likewise.
46541         * lib/signbitl.c: Likewise.
46542         * lib/sigprocmask.c: Likewise.
46543         * lib/sincosl.c: Likewise.
46544         * lib/sleep.c: Likewise.
46545         * lib/sprintf.c: Likewise.
46546         * lib/sqrtl.c: Likewise.
46547         * lib/stat-time.h: Likewise.
46548         * lib/stdio--.h: Likewise.
46549         * lib/stdio-safer.h: Likewise.
46550         * lib/stdlib--.h: Likewise.
46551         * lib/stdlib-safer.h: Likewise.
46552         * lib/stdlib.in.h: Likewise.
46553         * lib/stpcpy.c: Likewise.
46554         * lib/stpncpy.c: Likewise.
46555         * lib/strchrnul.c: Likewise.
46556         * lib/strcspn.c: Likewise.
46557         * lib/strerror.c: Likewise.
46558         * lib/strftime.c: Likewise.
46559         * lib/strftime.h: Likewise.
46560         * lib/striconveh.c: Likewise.
46561         * lib/striconveh.h: Likewise.
46562         * lib/striconveha.c: Likewise.
46563         * lib/striconveha.h: Likewise.
46564         * lib/stripslash.c: Likewise.
46565         * lib/strnlen1.c: Likewise.
46566         * lib/strnlen1.h: Likewise.
46567         * lib/strtod.c: Likewise.
46568         * lib/strtoimax.c: Likewise.
46569         * lib/strtok_r.c: Likewise.
46570         * lib/strtol.c: Likewise.
46571         * lib/strtoll.c: Likewise.
46572         * lib/strtoul.c: Likewise.
46573         * lib/strtoull.c: Likewise.
46574         * lib/sysexits.in.h: Likewise.
46575         * lib/tempname.c: Likewise.
46576         * lib/tempname.h: Likewise.
46577         * lib/timespec.h: Likewise.
46578         * lib/tls.c: Likewise.
46579         * lib/tls.h: Likewise.
46580         * lib/tmpdir.c: Likewise.
46581         * lib/tmpdir.h: Likewise.
46582         * lib/tmpfile-safer.c: Likewise.
46583         * lib/tmpfile.c: Likewise.
46584         * lib/trigl.c: Likewise.
46585         * lib/trigl.h: Likewise.
46586         * lib/trim.c: Likewise.
46587         * lib/trim.h: Likewise.
46588         * lib/trunc.c: Likewise.
46589         * lib/truncf.c: Likewise.
46590         * lib/truncl.c: Likewise.
46591         * lib/tsearch.c: Likewise.
46592         * lib/unicodeio.c: Likewise.
46593         * lib/unicodeio.h: Likewise.
46594         * lib/unistd--.h: Likewise.
46595         * lib/unistd-safer.h: Likewise.
46596         * lib/unistdio/ulc-fprintf.c: Likewise.
46597         * lib/unistdio/ulc-vfprintf.c: Likewise.
46598         * lib/unlinkdir.c: Likewise.
46599         * lib/unlinkdir.h: Likewise.
46600         * lib/unlocked-io.h: Likewise.
46601         * lib/unsetenv.c: Likewise.
46602         * lib/userspec.c: Likewise.
46603         * lib/utime.c: Likewise.
46604         * lib/utimecmp.c: Likewise.
46605         * lib/utimecmp.h: Likewise.
46606         * lib/utimens.c: Likewise.
46607         * lib/verify.h: Likewise.
46608         * lib/verror.c: Likewise.
46609         * lib/verror.h: Likewise.
46610         * lib/version-etc-fsf.c: Likewise.
46611         * lib/version-etc.c: Likewise.
46612         * lib/version-etc.h: Likewise.
46613         * lib/vfprintf.c: Likewise.
46614         * lib/vprintf.c: Likewise.
46615         * lib/vsprintf.c: Likewise.
46616         * lib/w32spawn.h: Likewise.
46617         * lib/wait-process.c: Likewise.
46618         * lib/wait-process.h: Likewise.
46619         * lib/wcwidth.c: Likewise.
46620         * lib/write-any-file.c: Likewise.
46621         * lib/xalloc-die.c: Likewise.
46622         * lib/xalloc.h: Likewise.
46623         * lib/xasprintf.c: Likewise.
46624         * lib/xgetcwd.c: Likewise.
46625         * lib/xgetcwd.h: Likewise.
46626         * lib/xgetdomainname.c: Likewise.
46627         * lib/xgetdomainname.h: Likewise.
46628         * lib/xgethostname.c: Likewise.
46629         * lib/xmalloc.c: Likewise.
46630         * lib/xmalloca.c: Likewise.
46631         * lib/xmalloca.h: Likewise.
46632         * lib/xmemcoll.c: Likewise.
46633         * lib/xnanosleep.c: Likewise.
46634         * lib/xreadlink.c: Likewise.
46635         * lib/xreadlink.h: Likewise.
46636         * lib/xsetenv.c: Likewise.
46637         * lib/xsetenv.h: Likewise.
46638         * lib/xstriconv.c: Likewise.
46639         * lib/xstriconv.h: Likewise.
46640         * lib/xstrndup.c: Likewise.
46641         * lib/xstrndup.h: Likewise.
46642         * lib/xstrtod.c: Likewise.
46643         * lib/xstrtod.h: Likewise.
46644         * lib/xstrtol-error.c: Likewise.
46645         * lib/xstrtol.c: Likewise.
46646         * lib/xstrtol.h: Likewise.
46647         * lib/xtime.h: Likewise.
46648         * lib/xvasprintf.c: Likewise.
46649         * lib/xvasprintf.h: Likewise.
46650         * lib/yesno.c: Likewise.
46651         * lib/yesno.h: Likewise.
46652         * posix-modules: Likewise.
46653         * tests/test-alloca-opt.c: Likewise.
46654         * tests/test-arcfour.c: Likewise.
46655         * tests/test-arctwo.c: Likewise.
46656         * tests/test-argmatch.c: Likewise.
46657         * tests/test-argp-2.sh: Likewise.
46658         * tests/test-argp.c: Likewise.
46659         * tests/test-arpa_inet.c: Likewise.
46660         * tests/test-array_list.c: Likewise.
46661         * tests/test-array_oset.c: Likewise.
46662         * tests/test-atexit.c: Likewise.
46663         * tests/test-avltree_list.c: Likewise.
46664         * tests/test-avltree_oset.c: Likewise.
46665         * tests/test-avltreehash_list.c: Likewise.
46666         * tests/test-base64.c: Likewise.
46667         * tests/test-binary-io.c: Likewise.
46668         * tests/test-byteswap.c: Likewise.
46669         * tests/test-c-ctype.c: Likewise.
46670         * tests/test-c-strcasecmp.c: Likewise.
46671         * tests/test-c-strcasestr.c: Likewise.
46672         * tests/test-c-strncasecmp.c: Likewise.
46673         * tests/test-c-strstr.c: Likewise.
46674         * tests/test-canonicalize-lgpl.c: Likewise.
46675         * tests/test-canonicalize.c: Likewise.
46676         * tests/test-carray_list.c: Likewise.
46677         * tests/test-ceilf.c: Likewise.
46678         * tests/test-ceill.c: Likewise.
46679         * tests/test-count-one-bits.c: Likewise.
46680         * tests/test-crc.c: Likewise.
46681         * tests/test-dirname.c: Likewise.
46682         * tests/test-fbufmode.c: Likewise.
46683         * tests/test-fcntl.c: Likewise.
46684         * tests/test-fflush.c: Likewise.
46685         * tests/test-floorf.c: Likewise.
46686         * tests/test-floorl.c: Likewise.
46687         * tests/test-fopen.c: Likewise.
46688         * tests/test-fprintf-posix.c: Likewise.
46689         * tests/test-fprintf-posix.h: Likewise.
46690         * tests/test-fpurge.c: Likewise.
46691         * tests/test-freadable.c: Likewise.
46692         * tests/test-freadahead.c: Likewise.
46693         * tests/test-freading.c: Likewise.
46694         * tests/test-freopen.c: Likewise.
46695         * tests/test-frexp.c: Likewise.
46696         * tests/test-frexpl.c: Likewise.
46697         * tests/test-fseek.c: Likewise.
46698         * tests/test-fseeko.c: Likewise.
46699         * tests/test-fseterr.c: Likewise.
46700         * tests/test-fstrcmp.c: Likewise.
46701         * tests/test-ftell.c: Likewise.
46702         * tests/test-ftello.c: Likewise.
46703         * tests/test-fwritable.c: Likewise.
46704         * tests/test-fwriting.c: Likewise.
46705         * tests/test-getaddrinfo.c: Likewise.
46706         * tests/test-getpass.c: Likewise.
46707         * tests/test-gettimeofday.c: Likewise.
46708         * tests/test-hmac-md5.c: Likewise.
46709         * tests/test-hmac-sha1.c: Likewise.
46710         * tests/test-iconv.c: Likewise.
46711         * tests/test-iconvme.c: Likewise.
46712         * tests/test-inttypes.c: Likewise.
46713         * tests/test-isnan.c: Likewise.
46714         * tests/test-isnanf.c: Likewise.
46715         * tests/test-isnanl-nolibm.c: Likewise.
46716         * tests/test-isnanl.c: Likewise.
46717         * tests/test-isnanl.h: Likewise.
46718         * tests/test-ldexpl.c: Likewise.
46719         * tests/test-linked_list.c: Likewise.
46720         * tests/test-linkedhash_list.c: Likewise.
46721         * tests/test-locale.c: Likewise.
46722         * tests/test-localename.c: Likewise.
46723         * tests/test-lock.c: Likewise.
46724         * tests/test-lseek.c: Likewise.
46725         * tests/test-malloca.c: Likewise.
46726         * tests/test-math.c: Likewise.
46727         * tests/test-mbscasecmp.c: Likewise.
46728         * tests/test-mbscasestr1.c: Likewise.
46729         * tests/test-mbscasestr2.c: Likewise.
46730         * tests/test-mbscasestr3.c: Likewise.
46731         * tests/test-mbscasestr4.c: Likewise.
46732         * tests/test-mbschr.c: Likewise.
46733         * tests/test-mbscspn.c: Likewise.
46734         * tests/test-mbsncasecmp.c: Likewise.
46735         * tests/test-mbspbrk.c: Likewise.
46736         * tests/test-mbspcasecmp.c: Likewise.
46737         * tests/test-mbsrchr.c: Likewise.
46738         * tests/test-mbsspn.c: Likewise.
46739         * tests/test-mbsstr1.c: Likewise.
46740         * tests/test-mbsstr2.c: Likewise.
46741         * tests/test-mbsstr3.c: Likewise.
46742         * tests/test-md5.c: Likewise.
46743         * tests/test-memmem.c: Likewise.
46744         * tests/test-netinet_in.c: Likewise.
46745         * tests/test-open.c: Likewise.
46746         * tests/test-printf-frexp.c: Likewise.
46747         * tests/test-printf-frexpl.c: Likewise.
46748         * tests/test-printf-posix.c: Likewise.
46749         * tests/test-printf-posix.h: Likewise.
46750         * tests/test-rbtree_list.c: Likewise.
46751         * tests/test-rbtree_oset.c: Likewise.
46752         * tests/test-rbtreehash_list.c: Likewise.
46753         * tests/test-read-file.c: Likewise.
46754         * tests/test-rijndael.c: Likewise.
46755         * tests/test-search.c: Likewise.
46756         * tests/test-signbit.c: Likewise.
46757         * tests/test-sleep.c: Likewise.
46758         * tests/test-snprintf-posix.c: Likewise.
46759         * tests/test-snprintf-posix.h: Likewise.
46760         * tests/test-snprintf.c: Likewise.
46761         * tests/test-sprintf-posix.c: Likewise.
46762         * tests/test-sprintf-posix.h: Likewise.
46763         * tests/test-stat-time.c: Likewise.
46764         * tests/test-stdbool.c: Likewise.
46765         * tests/test-stdint.c: Likewise.
46766         * tests/test-stdio.c: Likewise.
46767         * tests/test-stdlib.c: Likewise.
46768         * tests/test-stpncpy.c: Likewise.
46769         * tests/test-strcasestr.c: Likewise.
46770         * tests/test-striconv.c: Likewise.
46771         * tests/test-striconveh.c: Likewise.
46772         * tests/test-striconveha.c: Likewise.
46773         * tests/test-string.c: Likewise.
46774         * tests/test-sys_select.c: Likewise.
46775         * tests/test-sys_socket.c: Likewise.
46776         * tests/test-sys_stat.c: Likewise.
46777         * tests/test-sys_time.c: Likewise.
46778         * tests/test-sysexits.c: Likewise.
46779         * tests/test-time.c: Likewise.
46780         * tests/test-tls.c: Likewise.
46781         * tests/test-trunc.c: Likewise.
46782         * tests/test-truncf.c: Likewise.
46783         * tests/test-truncl.c: Likewise.
46784         * tests/test-unistd.c: Likewise.
46785         * tests/test-vasnprintf-posix.c: Likewise.
46786         * tests/test-vasnprintf-posix2.c: Likewise.
46787         * tests/test-vasnprintf.c: Likewise.
46788         * tests/test-vasprintf-posix.c: Likewise.
46789         * tests/test-vasprintf.c: Likewise.
46790         * tests/test-verify.c: Likewise.
46791         * tests/test-vfprintf-posix.c: Likewise.
46792         * tests/test-vprintf-posix.c: Likewise.
46793         * tests/test-vsnprintf-posix.c: Likewise.
46794         * tests/test-vsnprintf.c: Likewise.
46795         * tests/test-vsprintf-posix.c: Likewise.
46796         * tests/test-wchar.c: Likewise.
46797         * tests/test-wctype.c: Likewise.
46798         * tests/test-wcwidth.c: Likewise.
46799         * tests/test-xstrtol.c: Likewise.
46800         * tests/test-xvasprintf.c: Likewise.
46801         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46802         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46803         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46804         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46805         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46806         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46807         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46808         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46809         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46810         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46811         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46812         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46813         * tests/uniname/test-uninames.c: Likewise.
46814         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46815         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46816         * tests/unistdio/test-u16-printf1.h: Likewise.
46817         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46818         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46819         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46820         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46821         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46822         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46823         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46824         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46825         * tests/unistdio/test-u32-printf1.h: Likewise.
46826         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46827         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46828         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46829         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46830         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46831         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46832         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46833         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46834         * tests/unistdio/test-u8-printf1.h: Likewise.
46835         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46836         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46837         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46838         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46839         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46840         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46841         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46842         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46843         * tests/unistdio/test-ulc-printf1.h: Likewise.
46844         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46845         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46846         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46847         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46848         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46849         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46850         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46851         * tests/uniwidth/test-u16-width.c: Likewise.
46852         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46853         * tests/uniwidth/test-u32-width.c: Likewise.
46854         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46855         * tests/uniwidth/test-u8-width.c: Likewise.
46856         * tests/uniwidth/test-uc_width.c: Likewise.
46857         * config/srclist-update: Likewise.
46858         (fixlicense): Update to GPLv3+.
46859
46860         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46861         * tests/test-tsearch.c: Change copyright notice.
46862
46863         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46864         * lib/c-strcaseeq.h: Change copyright notice.
46865         * lib/streq.h: Likewise.
46866         * lib/uniconv.h: Likewise.
46867         * lib/uniconv/u-conv-from-enc.h: Likewise.
46868         * lib/uniconv/u-conv-to-enc.h: Likewise.
46869         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46870         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46871         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46872         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46873         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46874         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46875         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46876         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46877         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46878         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46879         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46880         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46881         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46882         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46883         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46884         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46885         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46886         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46887         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46888         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46889         * lib/uniname.h: Likewise.
46890         * lib/uniname/uniname.c: Likewise.
46891         * lib/unistdio.h: Likewise.
46892         * lib/unistdio/u-asnprintf.h: Likewise.
46893         * lib/unistdio/u-asprintf.h: Likewise.
46894         * lib/unistdio/u-printf-args.c: Likewise.
46895         * lib/unistdio/u-printf-args.h: Likewise.
46896         * lib/unistdio/u-printf-parse.h: Likewise.
46897         * lib/unistdio/u-snprintf.h: Likewise.
46898         * lib/unistdio/u-sprintf.h: Likewise.
46899         * lib/unistdio/u-vasprintf.h: Likewise.
46900         * lib/unistdio/u-vsnprintf.h: Likewise.
46901         * lib/unistdio/u-vsprintf.h: Likewise.
46902         * lib/unistdio/u16-asnprintf.c: Likewise.
46903         * lib/unistdio/u16-asprintf.c: Likewise.
46904         * lib/unistdio/u16-printf-parse.c: Likewise.
46905         * lib/unistdio/u16-snprintf.c: Likewise.
46906         * lib/unistdio/u16-sprintf.c: Likewise.
46907         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46908         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46909         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46910         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46911         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46912         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46913         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46914         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46915         * lib/unistdio/u16-vasnprintf.c: Likewise.
46916         * lib/unistdio/u16-vasprintf.c: Likewise.
46917         * lib/unistdio/u16-vsnprintf.c: Likewise.
46918         * lib/unistdio/u16-vsprintf.c: Likewise.
46919         * lib/unistdio/u32-asnprintf.c: Likewise.
46920         * lib/unistdio/u32-asprintf.c: Likewise.
46921         * lib/unistdio/u32-printf-parse.c: Likewise.
46922         * lib/unistdio/u32-snprintf.c: Likewise.
46923         * lib/unistdio/u32-sprintf.c: Likewise.
46924         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46925         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46926         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46927         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46928         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46929         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46930         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46931         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46932         * lib/unistdio/u32-vasnprintf.c: Likewise.
46933         * lib/unistdio/u32-vasprintf.c: Likewise.
46934         * lib/unistdio/u32-vsnprintf.c: Likewise.
46935         * lib/unistdio/u32-vsprintf.c: Likewise.
46936         * lib/unistdio/u8-asnprintf.c: Likewise.
46937         * lib/unistdio/u8-asprintf.c: Likewise.
46938         * lib/unistdio/u8-printf-parse.c: Likewise.
46939         * lib/unistdio/u8-snprintf.c: Likewise.
46940         * lib/unistdio/u8-sprintf.c: Likewise.
46941         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46942         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46943         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46944         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46945         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46946         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46947         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46948         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46949         * lib/unistdio/u8-vasnprintf.c: Likewise.
46950         * lib/unistdio/u8-vasprintf.c: Likewise.
46951         * lib/unistdio/u8-vsnprintf.c: Likewise.
46952         * lib/unistdio/u8-vsprintf.c: Likewise.
46953         * lib/unistdio/ulc-asnprintf.c: Likewise.
46954         * lib/unistdio/ulc-asprintf.c: Likewise.
46955         * lib/unistdio/ulc-printf-parse.c: Likewise.
46956         * lib/unistdio/ulc-snprintf.c: Likewise.
46957         * lib/unistdio/ulc-sprintf.c: Likewise.
46958         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46959         * lib/unistdio/ulc-vasprintf.c: Likewise.
46960         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46961         * lib/unistdio/ulc-vsprintf.c: Likewise.
46962         * lib/unistr.h: Likewise.
46963         * lib/unistr/u-cpy-alloc.h: Likewise.
46964         * lib/unistr/u-cpy.h: Likewise.
46965         * lib/unistr/u-endswith.h: Likewise.
46966         * lib/unistr/u-move.h: Likewise.
46967         * lib/unistr/u-set.h: Likewise.
46968         * lib/unistr/u-startswith.h: Likewise.
46969         * lib/unistr/u-stpcpy.h: Likewise.
46970         * lib/unistr/u-stpncpy.h: Likewise.
46971         * lib/unistr/u-strcat.h: Likewise.
46972         * lib/unistr/u-strcpy.h: Likewise.
46973         * lib/unistr/u-strcspn.h: Likewise.
46974         * lib/unistr/u-strdup.h: Likewise.
46975         * lib/unistr/u-strlen.h: Likewise.
46976         * lib/unistr/u-strncat.h: Likewise.
46977         * lib/unistr/u-strncpy.h: Likewise.
46978         * lib/unistr/u-strnlen.h: Likewise.
46979         * lib/unistr/u-strpbrk.h: Likewise.
46980         * lib/unistr/u-strspn.h: Likewise.
46981         * lib/unistr/u-strstr.h: Likewise.
46982         * lib/unistr/u-strtok.h: Likewise.
46983         * lib/unistr/u16-check.c: Likewise.
46984         * lib/unistr/u16-chr.c: Likewise.
46985         * lib/unistr/u16-cmp.c: Likewise.
46986         * lib/unistr/u16-cpy-alloc.c: Likewise.
46987         * lib/unistr/u16-cpy.c: Likewise.
46988         * lib/unistr/u16-endswith.c: Likewise.
46989         * lib/unistr/u16-mblen.c: Likewise.
46990         * lib/unistr/u16-mbsnlen.c: Likewise.
46991         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46992         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46993         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46994         * lib/unistr/u16-mbtouc.c: Likewise.
46995         * lib/unistr/u16-mbtoucr.c: Likewise.
46996         * lib/unistr/u16-move.c: Likewise.
46997         * lib/unistr/u16-next.c: Likewise.
46998         * lib/unistr/u16-prev.c: Likewise.
46999         * lib/unistr/u16-set.c: Likewise.
47000         * lib/unistr/u16-startswith.c: Likewise.
47001         * lib/unistr/u16-stpcpy.c: Likewise.
47002         * lib/unistr/u16-stpncpy.c: Likewise.
47003         * lib/unistr/u16-strcat.c: Likewise.
47004         * lib/unistr/u16-strchr.c: Likewise.
47005         * lib/unistr/u16-strcmp.c: Likewise.
47006         * lib/unistr/u16-strcpy.c: Likewise.
47007         * lib/unistr/u16-strcspn.c: Likewise.
47008         * lib/unistr/u16-strdup.c: Likewise.
47009         * lib/unistr/u16-strlen.c: Likewise.
47010         * lib/unistr/u16-strmblen.c: Likewise.
47011         * lib/unistr/u16-strmbtouc.c: Likewise.
47012         * lib/unistr/u16-strncat.c: Likewise.
47013         * lib/unistr/u16-strncmp.c: Likewise.
47014         * lib/unistr/u16-strncpy.c: Likewise.
47015         * lib/unistr/u16-strnlen.c: Likewise.
47016         * lib/unistr/u16-strpbrk.c: Likewise.
47017         * lib/unistr/u16-strrchr.c: Likewise.
47018         * lib/unistr/u16-strspn.c: Likewise.
47019         * lib/unistr/u16-strstr.c: Likewise.
47020         * lib/unistr/u16-strtok.c: Likewise.
47021         * lib/unistr/u16-to-u32.c: Likewise.
47022         * lib/unistr/u16-to-u8.c: Likewise.
47023         * lib/unistr/u16-uctomb-aux.c: Likewise.
47024         * lib/unistr/u16-uctomb.c: Likewise.
47025         * lib/unistr/u32-check.c: Likewise.
47026         * lib/unistr/u32-chr.c: Likewise.
47027         * lib/unistr/u32-cmp.c: Likewise.
47028         * lib/unistr/u32-cpy-alloc.c: Likewise.
47029         * lib/unistr/u32-cpy.c: Likewise.
47030         * lib/unistr/u32-endswith.c: Likewise.
47031         * lib/unistr/u32-mblen.c: Likewise.
47032         * lib/unistr/u32-mbsnlen.c: Likewise.
47033         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47034         * lib/unistr/u32-mbtouc.c: Likewise.
47035         * lib/unistr/u32-mbtoucr.c: Likewise.
47036         * lib/unistr/u32-move.c: Likewise.
47037         * lib/unistr/u32-next.c: Likewise.
47038         * lib/unistr/u32-prev.c: Likewise.
47039         * lib/unistr/u32-set.c: Likewise.
47040         * lib/unistr/u32-startswith.c: Likewise.
47041         * lib/unistr/u32-stpcpy.c: Likewise.
47042         * lib/unistr/u32-stpncpy.c: Likewise.
47043         * lib/unistr/u32-strcat.c: Likewise.
47044         * lib/unistr/u32-strchr.c: Likewise.
47045         * lib/unistr/u32-strcmp.c: Likewise.
47046         * lib/unistr/u32-strcpy.c: Likewise.
47047         * lib/unistr/u32-strcspn.c: Likewise.
47048         * lib/unistr/u32-strdup.c: Likewise.
47049         * lib/unistr/u32-strlen.c: Likewise.
47050         * lib/unistr/u32-strmblen.c: Likewise.
47051         * lib/unistr/u32-strmbtouc.c: Likewise.
47052         * lib/unistr/u32-strncat.c: Likewise.
47053         * lib/unistr/u32-strncmp.c: Likewise.
47054         * lib/unistr/u32-strncpy.c: Likewise.
47055         * lib/unistr/u32-strnlen.c: Likewise.
47056         * lib/unistr/u32-strpbrk.c: Likewise.
47057         * lib/unistr/u32-strrchr.c: Likewise.
47058         * lib/unistr/u32-strspn.c: Likewise.
47059         * lib/unistr/u32-strstr.c: Likewise.
47060         * lib/unistr/u32-strtok.c: Likewise.
47061         * lib/unistr/u32-to-u16.c: Likewise.
47062         * lib/unistr/u32-to-u8.c: Likewise.
47063         * lib/unistr/u32-uctomb.c: Likewise.
47064         * lib/unistr/u8-check.c: Likewise.
47065         * lib/unistr/u8-chr.c: Likewise.
47066         * lib/unistr/u8-cmp.c: Likewise.
47067         * lib/unistr/u8-cpy-alloc.c: Likewise.
47068         * lib/unistr/u8-cpy.c: Likewise.
47069         * lib/unistr/u8-endswith.c: Likewise.
47070         * lib/unistr/u8-mblen.c: Likewise.
47071         * lib/unistr/u8-mbsnlen.c: Likewise.
47072         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47073         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47074         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47075         * lib/unistr/u8-mbtouc.c: Likewise.
47076         * lib/unistr/u8-mbtoucr.c: Likewise.
47077         * lib/unistr/u8-move.c: Likewise.
47078         * lib/unistr/u8-next.c: Likewise.
47079         * lib/unistr/u8-prev.c: Likewise.
47080         * lib/unistr/u8-set.c: Likewise.
47081         * lib/unistr/u8-startswith.c: Likewise.
47082         * lib/unistr/u8-stpcpy.c: Likewise.
47083         * lib/unistr/u8-stpncpy.c: Likewise.
47084         * lib/unistr/u8-strcat.c: Likewise.
47085         * lib/unistr/u8-strchr.c: Likewise.
47086         * lib/unistr/u8-strcmp.c: Likewise.
47087         * lib/unistr/u8-strcpy.c: Likewise.
47088         * lib/unistr/u8-strcspn.c: Likewise.
47089         * lib/unistr/u8-strdup.c: Likewise.
47090         * lib/unistr/u8-strlen.c: Likewise.
47091         * lib/unistr/u8-strmblen.c: Likewise.
47092         * lib/unistr/u8-strmbtouc.c: Likewise.
47093         * lib/unistr/u8-strncat.c: Likewise.
47094         * lib/unistr/u8-strncmp.c: Likewise.
47095         * lib/unistr/u8-strncpy.c: Likewise.
47096         * lib/unistr/u8-strnlen.c: Likewise.
47097         * lib/unistr/u8-strpbrk.c: Likewise.
47098         * lib/unistr/u8-strrchr.c: Likewise.
47099         * lib/unistr/u8-strspn.c: Likewise.
47100         * lib/unistr/u8-strstr.c: Likewise.
47101         * lib/unistr/u8-strtok.c: Likewise.
47102         * lib/unistr/u8-to-u16.c: Likewise.
47103         * lib/unistr/u8-to-u32.c: Likewise.
47104         * lib/unistr/u8-uctomb-aux.c: Likewise.
47105         * lib/unistr/u8-uctomb.c: Likewise.
47106         * lib/unitypes.h: Likewise.
47107         * lib/uniwidth.h: Likewise.
47108         * lib/uniwidth/cjk.h: Likewise.
47109         * lib/uniwidth/u16-strwidth.c: Likewise.
47110         * lib/uniwidth/u16-width.c: Likewise.
47111         * lib/uniwidth/u32-strwidth.c: Likewise.
47112         * lib/uniwidth/u32-width.c: Likewise.
47113         * lib/uniwidth/u8-strwidth.c: Likewise.
47114         * lib/uniwidth/u8-width.c: Likewise.
47115         * lib/uniwidth/width.c: Likewise.
47116
47117 2007-10-07  Bruno Haible  <bruno@clisp.org>
47118
47119         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47120         The file is still under LGPL (see modules/inttypes).
47121
47122 2007-10-06  Bruno Haible  <bruno@clisp.org>
47123
47124         * modules/trunc (Dependencies): Add 'extensions'.
47125         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47126         Reported by Ben Pfaff <blp@gnu.org>.
47127
47128 2007-10-06  Bruno Haible  <bruno@clisp.org>
47129
47130         * modules/freopen-tests: New file.
47131         * tests/test-freopen.c: New file.
47132
47133         * modules/fopen-tests: New file.
47134         * tests/test-fopen.c: New file.
47135
47136         * modules/fopen: New file.
47137         * lib/fopen.c: New file.
47138         * m4/fopen.m4: New file.
47139         * modules/freopen: New file.
47140         * lib/freopen.c: New file.
47141         * m4/freopen.m4: New file.
47142         * lib/stdio.in.h (fopen, freopen): New declarations.
47143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47144         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47145         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47146         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47147         * doc/functions/fopen.texi: Mention the 'fopen' module.
47148         * doc/functions/freopen.texi: Mention the 'freopen' module.
47149
47150 2007-10-06  Bruno Haible  <bruno@clisp.org>
47151
47152         * modules/open-tests: New file.
47153         * tests/test-open.c: New file.
47154
47155         * modules/open: New file.
47156         * lib/open.c: New file.
47157         * m4/open.m4: New file.
47158         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47159         lib/open.c does.
47160         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47161         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47162         macros.
47163         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47164         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47165         REPLACE_OPEN.
47166         * doc/functions/open.texi: Mention the 'open' module.
47167
47168 2007-10-04  Bruno Haible  <bruno@clisp.org>
47169
47170         * modules/ceill-tests: New file.
47171         * tests/test-ceill.c: New file.
47172
47173         * modules/ceill: New file.
47174         * lib/ceill.c: Replace entire file.
47175         * m4/ceill.m4: New file.
47176         * lib/math.in.h (ceill): Replace declaration.
47177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47178         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47179         * doc/functions/ceill.texi: Mention the 'ceill' module.
47180         * modules/mathl (Files): Remove lib/ceill.c.
47181         (Depends-on): Add ceill.
47182
47183 2007-10-04  Bruno Haible  <bruno@clisp.org>
47184
47185         * modules/ceilf-tests: New file.
47186         * tests/test-ceilf.c: New file.
47187
47188         * modules/ceilf: New file.
47189         * lib/ceil.c: New file.
47190         * lib/ceilf.c: New file.
47191         * m4/ceilf.m4: New file.
47192         * lib/math.in.h (ceilf): New declaration.
47193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47194         HAVE_DECL_CEILF.
47195         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47196         HAVE_DECL_CEILF.
47197         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47198
47199 2007-10-04  Bruno Haible  <bruno@clisp.org>
47200
47201         * modules/floorl-tests: New file.
47202         * tests/test-floorl.c: New file.
47203
47204         * modules/floorl: New file.
47205         * lib/floorl.c: Replace entire file.
47206         * m4/floorl.m4: New file.
47207         * lib/math.in.h (floorl): Replace declaration.
47208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47209         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47210         * doc/functions/floorl.texi: Mention the 'floorl' module.
47211         * modules/mathl (Files): Remove lib/floorl.c.
47212         (Depends-on): Add floorl.
47213
47214 2007-10-04  Bruno Haible  <bruno@clisp.org>
47215
47216         * modules/floorf-tests: New file.
47217         * tests/test-floorf.c: New file.
47218
47219         * modules/floorf: New file.
47220         * lib/floor.c: New file.
47221         * lib/floorf.c: New file.
47222         * m4/floorf.m4: New file.
47223         * lib/math.in.h (floorf): New declaration.
47224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47225         HAVE_DECL_FLOORF.
47226         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47227         HAVE_DECL_FLOORF.
47228         * doc/functions/floorf.texi: Mention the 'floorf' module.
47229
47230 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47231             Bruno Haible  <bruno@clisp.org>
47232
47233         Advertise for the Git server instead of the CVS server.
47234         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47235         repository instead of the CVS one.
47236         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47237         about all VCS systems generically.
47238         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47239
47240 2007-10-04  Bruno Haible  <bruno@clisp.org>
47241
47242         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47243         means.
47244         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47245
47246 2007-10-04  Bruno Haible  <bruno@clisp.org>
47247
47248         * modules/truncl-tests: New file.
47249         * tests/test-truncl.c: New file.
47250
47251         * modules/truncl: New file.
47252         * lib/truncl.c: New file.
47253         * m4/truncl.m4: New file.
47254         * lib/math.in.h (truncl): New declaration.
47255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47256         HAVE_DECL_TRUNCL.
47257         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47258         HAVE_DECL_TRUNCL.
47259         * doc/functions/truncl.texi: Mention the 'truncl' module.
47260
47261 2007-10-04  Bruno Haible  <bruno@clisp.org>
47262
47263         * modules/truncf-tests: New file.
47264         * tests/test-truncf.c: New file.
47265
47266         * modules/truncf: New file.
47267         * lib/trunc.c: Make paramerizable through USE_* macros.
47268         * lib/truncf.c: New file.
47269         * m4/truncf.m4: New file.
47270         * lib/math.in.h (truncf): New declaration.
47271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47272         HAVE_DECL_TRUNCF.
47273         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47274         HAVE_DECL_TRUNCF.
47275         * doc/functions/truncf.texi: Mention the 'truncf' module.
47276
47277 2007-10-03  Bruno Haible  <bruno@clisp.org>
47278
47279         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47280         augmentation also for tests modules.
47281         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47282         * modules/atexit-tests (Makefile.am): Likewise.
47283         * modules/binary-io-tests (Makefile.am): Likewise.
47284         * modules/c-strcase-tests (Makefile.am): Likewise.
47285         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47286         * modules/canonicalize-tests (Makefile.am): Likewise.
47287         * modules/closein-tests (Makefile.am): Likewise.
47288         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47289         * modules/freadahead-tests (Makefile.am): Likewise.
47290         * modules/fseek-tests (Makefile.am): Likewise.
47291         * modules/fseeko-tests (Makefile.am): Likewise.
47292         * modules/ftell-tests (Makefile.am): Likewise.
47293         * modules/ftello-tests (Makefile.am): Likewise.
47294         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47295         * modules/isnanl-tests (Makefile.am): Likewise.
47296         * modules/lseek-tests (Makefile.am): Likewise.
47297         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47298         * modules/mbscasestr-tests (Makefile.am): Likewise.
47299         * modules/mbschr-tests (Makefile.am): Likewise.
47300         * modules/mbscspn-tests (Makefile.am): Likewise.
47301         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47302         * modules/mbspbrk-tests (Makefile.am): Likewise.
47303         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47304         * modules/mbsrchr-tests (Makefile.am): Likewise.
47305         * modules/mbsspn-tests (Makefile.am): Likewise.
47306         * modules/mbsstr-tests (Makefile.am): Likewise.
47307         * modules/printf-posix-tests (Makefile.am): Likewise.
47308         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47309         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47310         * modules/tsearch-tests (Makefile.am): Likewise.
47311         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47312         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47313         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47314         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47315         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47316         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47317         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47318         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47319         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47320         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47321         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47322         * modules/xstrtol-tests (Makefile.am): Likewise.
47323         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47324         * modules/yesno-tests (Makefile.am): Likewise.
47325
47326 2007-10-03  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/trunc-tests: New file.
47329         * tests/test-trunc.c: New file.
47330
47331         * modules/trunc: New file.
47332         * lib/trunc.c: New file.
47333         * m4/trunc.m4: New file.
47334         * lib/math.in.h (trunc): New declaration.
47335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47336         HAVE_DECL_TRUNC.
47337         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47338         HAVE_DECL_TRUNC.
47339         * doc/functions/trunc.texi: Mention the 'trunc' module.
47340
47341 2007-10-03  Bruno Haible  <bruno@clisp.org>
47342
47343         * tests/test-fpending.c: New file, mostly copied
47344         from coreutils/lib/t-fpending.c.
47345         * modules/fpending-tests: New file.
47346
47347 2007-10-03  Bruno Haible  <bruno@clisp.org>
47348
47349         Port the stdio extensions to QNX (untested).
47350         * lib/fseterr.c (fseterr): Add support for QNX.
47351         * lib/fbufmode.c (fbufmode): Likewise.
47352         * lib/freadable.c (freadable): Likewise.
47353         * lib/fwritable.c (fwritable): Likewise.
47354         * lib/freading.c (freading): Likewise.
47355         * lib/fwriting.c (fwriting): Likewise.
47356         * lib/freadahead.c (freadahed): Likewise.
47357         * lib/fpurge.c (fpurge): Likewise.
47358         * lib/fseeko.c (rpl_fseeko): Likewise.
47359
47360 2007-10-03  Bruno Haible  <bruno@clisp.org>
47361             Jim Meyering  <jim@meyering.net>
47362             Eric Blake  <ebb9@byu.net>
47363
47364         * doc/relocatable.texi: Use @command instead of @program.
47365
47366 2007-10-02  Jim Meyering  <jim@meyering.net>
47367
47368         Perform one more "_.h" -> ".in.h" substitution.
47369         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47370         instead of unistd_.h here, too.
47371
47372 2007-10-01  Bruno Haible  <bruno@clisp.org>
47373
47374         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47375         Needed for the alloca-opt module.
47376
47377 2007-09-30  Bruno Haible  <bruno@clisp.org>
47378
47379         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47380         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47381         alloca_.h.
47382         * lib/argz.in.h: Renamed from lib/argz_.h.
47383         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47384         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47385         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47386         byteswap_.h.
47387         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47388         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47389         dirent_.h.
47390         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47391         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47392         fcntl_.h.
47393         * lib/float.in.h: Renamed from lib/float_.h.
47394         * modules/float (Files, Makefile.am): Use float.in.h instead of
47395         float_.h.
47396         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47397         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47398         fnmatch_.h.
47399         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47400         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47401         getopt_.h.
47402         * lib/glob.in.h: Renamed from lib/glob_.h.
47403         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47404         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47405         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47406         iconv_.h.
47407         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47408         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47409         inttypes_.h.
47410         * lib/locale.in.h: Renamed from lib/locale_.h.
47411         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47412         locale_.h.
47413         * lib/math.in.h: Renamed from lib/math_.h.
47414         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47415         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47416         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47417         of netinet_in_.h. Add dependency.
47418         * lib/poll.in.h: Renamed from lib/poll_.h.
47419         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47420         * lib/search.in.h: Renamed from lib/search_.h.
47421         * modules/search (Files, Makefile.am): Use search.in.h instead of
47422         search_.h.
47423         * lib/signal.in.h: Renamed from lib/signal_.h.
47424         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47425         _signal.h.
47426         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47427         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47428         stdbool_.h.
47429         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47430         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47431         stdint_.h.
47432         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47433         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47434         stdio_.h.
47435         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47436         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47437         stdlib_.h.
47438         * lib/string.in.h: Renamed from lib/string_.h.
47439         * modules/string (Files, Makefile.am): Use string.in.h instead of
47440         string_.h.
47441         * doc/gnulib-tool.texi (Initial import): Update.
47442         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47443         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47444         of sys_select_.h. Add dependency.
47445         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47446         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47447         of sys_socket_.h.
47448         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47449         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47450         sys_stat_.h.
47451         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47452         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47453         sys_time_.h.
47454         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47455         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47456         sysexits_.h.
47457         * lib/time.in.h: Renamed from lib/time_.h.
47458         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47459         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47460         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47461         unistd_.h.
47462         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47463         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47464         wchar_.h.
47465         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47466         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47467         wctype_.h.
47468         * build-aux/bootstrap (slurp): Update.
47469         * lib/.cppi-disable: Update.
47470
47471 2007-09-30  Bruno Haible  <bruno@clisp.org>
47472
47473         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47474         Needed on BeOS.
47475
47476 2007-09-30  Bruno Haible  <bruno@clisp.org>
47477
47478         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47479
47480 2007-09-29  Bruno Haible  <bruno@clisp.org>
47481
47482         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47483
47484 2007-09-29  Bruno Haible  <bruno@clisp.org>
47485
47486         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47487         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47488         * build-aux/install-reloc: Compile also areadlink.c.
47489         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47490
47491 2007-09-29  Bruno Haible  <bruno@clisp.org>
47492
47493         * gnulib-tool (func_emit_initmacro_done): Indentation.
47494
47495 2007-09-29  Bruno Haible  <bruno@clisp.org>
47496
47497         * README: Add CVS checkout update instructions.
47498         Info from Bob Proulx <bob@proulx.com>.
47499
47500 2007-09-28  Eric Blake  <ebb9@byu.net>
47501
47502         Provide move-if-change.
47503         * build-aux/move-if-change: New file, based on best practice
47504         rather than any canonical upstream location.
47505
47506 2007-09-28  Jim Meyering  <jim@meyering.net>
47507
47508         Fix canonicalize loop-detection corner case.
47509         Do not attempt to stat the symlink values stored via seen_triple.
47510         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47511         on linux-2.6.18, (but not 2.6.22).
47512         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47513         triple_compare.  The former compares dev,ino,filename, while the latter
47514         would actually stat dirname(filename) when dev and ino were equal.
47515         * lib/hash-triple.c: Install <string.h>.
47516         (STREQ): Define.
47517         (triple_compare_ino_str): New function.
47518         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47519
47520 2007-09-28  Eric Blake  <ebb9@byu.net>
47521
47522         Enforce that AC_REPLACE_FUNCS files exist.
47523         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47524         override check for typos.
47525
47526         Fix test-closein on Solaris 10.
47527         * tests/test-closein.c (main): Don't assume stdin can be inherited
47528         closed on all systems.
47529         * tests/test-closein.sh: Likewise.
47530         Reported by Piotr Tarnowski.
47531
47532 2007-09-28  Jim Meyering  <jim@meyering.net>
47533
47534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47535
47536 2007-09-27  Jim Meyering  <jim@meyering.net>
47537
47538         canonicalize: Avoid a false-positive cycle failure.
47539         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47540         Sort.  Remove cycle-check.
47541         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47542         not cycle-check.h.
47543         (seen_triple): New function.
47544         (canonicalize_filename_mode): Use it instead of cycle-check.
47545         * tests/test-canonicalize.c: Add a test for this bug.
47546         * tests/test-canonicalize.sh: Set up and run the test.
47547
47548         New module, file-set, from coreutils.
47549         * modules/file-set: Define it.
47550         * lib/file-set.c, lib/file-set.h: Implement.
47551
47552         New module, hash-triple, from coreutils.
47553         * modules/hash-triple: Define it.
47554         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47555
47556 2007-09-25  Eric Blake  <ebb9@byu.net>
47557
47558         Fix strerror on Interix.
47559         * lib/string_.h (strerror): Declare replacement.
47560         * doc/functions/strerror.texi (strerror): Document the Interix
47561         shortcoming.
47562         * modules/string (Makefile.am): Support new hooks.
47563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47564         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47565         gl_FUNC_STRERROR_SEPARATE.
47566         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47567         * lib/strerror.c (rpl_strerror): Provide replacement.
47568         * modules/strerror (Depends-on): Add string.
47569         (configure.ac): Detect use of module.
47570         * tests/test-strerror.c: New file.
47571         * modules/strerror-tests: New test module.
47572         * modules/argp (Depends-on): Add strerror.
47573         * modules/error (Depends-on): Likewise.
47574         Reported by Martin Koeppe.
47575
47576 2007-09-24  Bruno Haible  <bruno@clisp.org>
47577
47578         * README: Update git instructions.
47579
47580 2007-09-24  Eric Blake  <ebb9@byu.net>
47581
47582         Revert fpending breakage from 2007-09-08.
47583         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47584         __fpending.c.
47585
47586 2007-09-24  Jim Meyering  <jim@meyering.net>
47587
47588         filenamecat.c: Add a test.
47589         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47590         showing how the function works when DIR is the empty string.
47591
47592 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47593
47594         * tests/test-canonicalize.sh: Turn on executable bit.
47595
47596 2007-09-19  Eric Blake  <ebb9@byu.net>
47597
47598         * README: Update CVS instructions.
47599
47600 2007-09-18  Bruno Haible  <bruno@clisp.org>
47601
47602         * modules/areadlink: New file.
47603         * lib/areadlink.h (areadlink): New declaration.
47604         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47605
47606 2007-09-17  Jim Meyering  <jim@meyering.net>
47607
47608         * lib/savewd.c (ESTALE) [!defined]: Define.
47609         Reported to be required on Interix by Martin Koeppe.
47610
47611 2007-09-17  Bruno Haible  <bruno@clisp.org>
47612
47613         * gnulib-tool (func_version): Use $version.
47614
47615 2007-09-16  Bruno Haible  <bruno@clisp.org>
47616
47617         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47618         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47619         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47620         Reported by Greg Schafer <gschafer@zip.com.au>.
47621
47622 2007-09-15  Bruno Haible  <bruno@clisp.org>
47623
47624         * gnulib-tool (sed): Try a little harder to make bash understand the
47625         alias.
47626         Reported by Bruce Korb <bruce.korb@gmail.com>.
47627
47628 2007-09-13  Eric Blake  <ebb9@byu.net>
47629
47630         * ChangeLog: Remove conflict markers.
47631
47632 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47633
47634         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47635         Reported by Bruno Haible <bruno@clisp.org>.
47636
47637 2007-09-12  Bruno Haible  <bruno@clisp.org>
47638
47639         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47640         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47641         is not defined.
47642
47643 2007-09-12  Eric Blake  <ebb9@byu.net>
47644
47645         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47646         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47647         Autoconf definition.
47648         * modules/euidaccess (Depends-on): Add extensions, for
47649         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47650         * modules/fnmatch (Depends-on): Likewise.
47651         * modules/getaddrinfo (Depends-on): Likewise.
47652         * modules/getdelim (Depends-on): Likewise.
47653         * modules/getline (Depends-on): Likewise.
47654         * modules/getsubopt (Depends-on): Likewise.
47655         * modules/gettext (Depends-on): Likewise.
47656         * modules/group-member (Depends-on): Likewise.
47657         * modules/mbchar (Depends-on): Likewise.
47658         * modules/memmem (Depends-on): Likewise.
47659         * modules/mempcpy (Depends-on): Likewise.
47660         * modules/memrchr (Depends-on): Likewise.
47661         * modules/pagealign_alloc (Depends-on): Likewise.
47662         * modules/readutmp (Depends-on): Likewise.
47663         * modules/stpcpy (Depends-on): Likewise.
47664         * modules/stpncpy (Depends-on): Likewise.
47665         * modules/strchrnul (Depends-on): Likewise.
47666         * modules/strndup (Depends-on): Likewise.
47667         * modules/strsep (Depends-on): Likewise.
47668         * modules/strverscmp (Depends-on): Likewise.
47669         * modules/vasprintf (Depends-on): Likewise.
47670         * modules/wcwidth (Depends-on): Likewise.
47671         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47672         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47673         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47674         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47675         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47676         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47677         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47678         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47679         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47680         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47682         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47683         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47684         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47685         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47686         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47687         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47688         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47689         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47690         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47691         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47692         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47693         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47694         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47695         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47697         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47698         so that lock.m4 can be used in gettext without extensions module.
47699
47700 2007-09-11  Bruno Haible  <bruno@clisp.org>
47701
47702         * m4/isc-posix.m4: Remove file.
47703         Suggested by Eric Blake.
47704
47705 2007-09-11  Eric Blake  <ebb9@byu.net>
47706
47707         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47708
47709 2007-09-10  Bruno Haible  <bruno@clisp.org>
47710
47711         * posix-modules: Fix typo in error message.
47712         Reported by Matt <mkraai@beckman.com>.
47713
47714 2007-09-09  Bruno Haible  <bruno@clisp.org>
47715
47716         * doc/functions/getdelim.texi: Update list of platforms lacking the
47717         function.
47718         * doc/functions/getline.texi: Likewise.
47719
47720 2007-09-09  Jim Meyering  <jim@meyering.net>
47721
47722         * lib/hash.c (hash_initialize): Detect calloc failure.
47723         Reported by Bruno Haible.
47724
47725 2007-09-09  Bruno Haible  <bruno@clisp.org>
47726
47727         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47728         malloc or realloc fails.
47729
47730 2007-09-09  Bruno Haible  <bruno@clisp.org>
47731
47732         * modules/getcwd (Depends-on): Add malloc-posix.
47733         * modules/glob (Depends-on): Likewise.
47734         * modules/putenv (Depends-on): Likewise.
47735         * modules/strdup (Depends-on): Likewise.
47736         * modules/getdelim (Depends-on): Add realloc-posix.
47737         * modules/read-file (Depends-on): Likewise.
47738
47739 2007-09-09  Bruno Haible  <bruno@clisp.org>
47740
47741         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47742         (gl_FUNC_MALLOC_POSIX): Require it.
47743         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47744         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47745         * modules/realloc (Files): Add m4/malloc.m4.
47746         * modules/calloc (Files): Likewise.
47747
47748 2007-09-09  Bruno Haible  <bruno@clisp.org>
47749
47750         * modules/malloc-posix: New file.
47751         * modules/malloc (Depends-on): Add malloc-posix.
47752         * lib/malloc.c: Include errno.h.
47753         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47754         and a POSIX-compatible malloc into a single function. Set ENOMEM
47755         when returning NULL.
47756         * m4/malloc.m4: New file.
47757         * doc/functions/malloc.texi: Mention the malloc-posix module.
47758         * lib/stdlib_.h (malloc): New declaration.
47759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47760         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47761         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47762         and HAVE_MALLOC_POSIX.
47763
47764 2007-09-09  Bruno Haible  <bruno@clisp.org>
47765
47766         * modules/realloc-posix: New file.
47767         * modules/realloc (Depends-on): Add realloc-posix.
47768         * lib/realloc.c: Include errno.h.
47769         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47770         and a POSIX-compatible realloc into a single function. Set ENOMEM
47771         when returning NULL.
47772         * m4/realloc.m4: New file.
47773         * doc/functions/realloc.texi: Mention the realloc-posix module.
47774         * lib/stdlib_.h (realloc): New declaration.
47775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47776         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47777         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47778         and HAVE_REALLOC_POSIX.
47779
47780 2007-09-09  Bruno Haible  <bruno@clisp.org>
47781
47782         * modules/calloc-posix: New file.
47783         * modules/calloc (Depends-on): Add calloc-posix.
47784         * lib/calloc.c: Include errno.h.
47785         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47786         and a POSIX-compatible calloc into a single function. Set ENOMEM
47787         when returning NULL.
47788         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47789         * doc/functions/calloc.texi: Mention the calloc-posix module.
47790         * lib/stdlib_.h (calloc): New declaration.
47791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47792         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47793         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47794         and HAVE_CALLOC_POSIX.
47795
47796 2007-09-09  Bruno Haible  <bruno@clisp.org>
47797
47798         Allow for modules to show an arbitrary notice.
47799         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47800         * gnulib-tool: New option --extract-notice.
47801         (func_usage): Document it.
47802         (sed_extract_prog): Update.
47803         (func_get_notice): New function.
47804         (func_modules_notice): New function.
47805         (func_import, func_create_testdir): Invoke it.
47806         Suggested by Jim Meyering.
47807
47808 2007-09-09  Bruno Haible  <bruno@clisp.org>
47809
47810         * gnulib-tool: New options --verbose, --quiet.
47811         (func_usage): Document them.
47812         (verbose): New variable.
47813         (func_execute_command): New function.
47814         (func_import): Don't show the module list and the file list if
47815         $verbose < 0.
47816         (func_create_testdir): Likewise. Use func_execute_command.
47817         (func_create_megatestdir): Use func_execute_command.
47818
47819 2007-09-08  Bruno Haible  <bruno@clisp.org>
47820
47821         * gnulib-tool (func_import): Prefer rsync over wget when available,
47822         for fetching the PO files.
47823
47824 2007-09-08  Bruno Haible  <bruno@clisp.org>
47825
47826         * posix-modules: New file. Portions copied from gnulib-tool.
47827         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47828
47829 2007-09-08  Jim Meyering  <jim@meyering.net>
47830
47831         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47832         * lib/fpending.h: Rename from __fpending.h.
47833         * lib/fpending.c: Rename from __fpending.c.
47834         Include "fpending.h", not "__fpending.h".
47835         * lib/__fpending.h, lib/__fpending.c: Remove files.
47836         * modules/fpending (Files): Reflect new file names.
47837         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47838
47839 2007-09-08  Bruno Haible  <bruno@clisp.org>
47840
47841         * m4/inttypes-h.m4: Remove stub file.
47842
47843 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47844
47845         * doc/headers/stdint.texi: Discuss #include_next issue.
47846
47847 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47848
47849         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47850
47851 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47852
47853         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47854         in variable name.
47855
47856 2007-09-03  Jim Meyering  <jim@meyering.net>
47857
47858         New module: git-version-gen.
47859         * modules/git-version-gen: New file.
47860
47861         Import changes from coreutils for bootstrap script.
47862
47863         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47864
47865         bootstrap: uses rsync to download the .po files
47866         * build-aux/bootstrap (po_download_command_format): New global.
47867         (download_po_files): Use rsync.
47868         (update_po_files): Don't remove .po files after download,
47869         so future rsync runs can take advantage of the copies.
47870
47871         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47872
47873         Solve the unnecessary-.po-file-regeneration problem once and for all.
47874         * build-aux/bootstrap (download_po_files): New function, renamed from
47875         get_translations.  Now, downloads, but doesn't update LINGUAS.
47876         (update_po_files): New function.
47877
47878         bootstrap: Ignore more.
47879         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47880         uniwidth to e.g., lib/.gitignore.
47881         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47882
47883         * build-aux/bootstrap: New setting: vc_ignore.
47884         (insert_sorted_if_absent): Create $file if absent.
47885         Adapt to new, possibly empty, list: $vc_ignore.
47886
47887         bootstrap: generate more ignorable names
47888         * build-aux/bootstrap (slurp): When generating ignorable names,
47889         also map .sin to .sed, .gperf to .c, and .y to .c.
47890
47891 2007-09-03  Jim Meyering  <jim@meyering.net>
47892
47893         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47894         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47895
47896 2007-09-02  Bruno Haible  <bruno@clisp.org>
47897
47898         Fix mis-recognition of 'mcs' on QNX 6.
47899         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47900         output contains the string "Mono".
47901         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47902         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47903
47904 2007-09-01  Bruno Haible  <bruno@clisp.org>
47905
47906         Fix collision between uniwidth/* and linebreak modules.
47907         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47908         u32_width): Remove declarations.
47909         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47910         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47911         streq3, streq2, streq1, streq0): Remove functions.
47912         (STREQ): Remove macro.
47913         (is_cjk_encoding): Remove function.
47914         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47915         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47916         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47917         * NEWS: Document the change.
47918
47919 2007-09-01  Bruno Haible  <bruno@clisp.org>
47920
47921         * lib/streq.h: Add double-inclusion guard.
47922
47923 2007-09-01  Karl Berry  <karl@gnu.org>
47924
47925         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47926
47927 2007-08-28  Jim Meyering  <jim@meyering.net>
47928
47929         Rename mreadlink_with_size to areadlink_with_size.
47930         * NEWS: Document the change.
47931         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47932         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47933         * lib/mreadlink.h: Rename this to...
47934         * lib/areadlink.h: ...this.
47935         * modules/mreadlink-with-size: Rename this to...
47936         * modules/areadlink-with-size: ...this.
47937         * lib/canonicalize.c: Reflect the renaming.
47938         * modules/canonicalize: Likewise.
47939
47940 2007-08-26  Bruno Haible  <bruno@clisp.org>
47941
47942         * gnulib-tool (func_import): When deciding which files to remove,
47943         consider also dangling symbolic links.
47944         Reported by Eric Blake.
47945
47946 2007-08-26  Bruno Haible  <bruno@clisp.org>
47947
47948         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47949
47950 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47951
47952         * lib/readline.c: Don't include getline.h, the prototype is now
47953         found in stdio.h.
47954
47955 2007-08-23  Jim Meyering  <jim@meyering.net>
47956
47957         Getdelim touchup.
47958         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47959         around the funlockfile call, since funlockfile never sets errno.
47960         Don't set errno upon failed realloc.
47961
47962 2007-08-22  Eric Blake  <ebb9@byu.net>
47963
47964         Getline touchups.
47965         * lib/getdelim.c (getdelim): Revert regression that required *n to
47966         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47967         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47968         getdelim, rather than whether implementation is missing.
47969         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47970         * lib/stdio_.h (getline): Also declare if replacement is
47971         required.
47972         * doc/functions/getdelim.texi: New file.
47973         * doc/functions/getline.texi: Likewise.
47974         * doc/gnulib.texi (Function Substitutes): Add new files.
47975         Reported by Bruno Haible.
47976
47977 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47978
47979         * users.txt: Add Guile.
47980
47981 2007-08-22  Eric Blake  <ebb9@byu.net>
47982
47983         * tests/test-getdelim.c (main): Use remove, not unlink.
47984         * tests/test-getline.c (main): Likewise.
47985
47986         Move getline and getdelim into stdio.h, per POSIX 200x.
47987         * modules/getline (Files): Remove getline.h.
47988         (Depends-on): Add stdio.
47989         (configure.ac): Add module indicator.
47990         * modules/getdelim (Files): Remove getdelim.h.
47991         (Depends-on): Add stdio.
47992         (configure.ac): Add module indicator.
47993         * modules/stdio (Makefile.am): Work with new indicators.
47994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47996         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47997         * lib/getdelim.h: Delete.
47998         * lib/getline.h: Delete.
47999         * lib/stdio_.h (getdelim, getline): Declare.
48000         * modules/getdelim-tests: New module.
48001         * modules/getline-tests: Likewise.
48002         * tests/test-getdelim.c: New file.
48003         * tests/test-getline.c: Likewise.
48004         * NEWS: Document the change.
48005         * lib/getline.c: Update choice of header.
48006         * lib/csharpcomp.c: Likewise.
48007         * lib/getpass.c: Likewise.
48008         * lib/javacomp.c: Likewise.
48009         * lib/javaversion.c: Likewise.
48010         * lib/yesno.c: Likewise.
48011         * lib/getdelim.c: Likewise.
48012         (getdelim): Set errno on failure, and avoid memory leak.
48013
48014 2007-08-19  Bruno Haible  <bruno@clisp.org>
48015
48016         * modules/closein (Depends-on): Add freadahead.
48017         * lib/closein.c: Include freadahead.h.
48018         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48019         is zero.
48020
48021 2007-08-19  Bruno Haible  <bruno@clisp.org>
48022
48023         * modules/freadahead-tests: New file.
48024         * tests/test-freadahead.sh: New file.
48025         * tests/test-freadahead.c: New file.
48026
48027         * modules/freadahead: New file.
48028         * lib/freadahead.h: New file.
48029         * lib/freadahead.c: New file.
48030         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48031         fbufmode, fpurge, freadable, fwritable.
48032
48033 2007-08-19  Eric Blake  <ebb9@byu.net>
48034
48035         Test yesno in combination with closein.
48036         * lib/yesno.c (yesno): Document use of stdin.
48037         * modules/yesno-tests (Files): New module.
48038         * tests/test-yesno.c (main): New file.
48039         * tests/test-yesno.sh: Likewise.
48040
48041 2007-08-19  Bruno Haible  <bruno@clisp.org>
48042
48043         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48044         * lib/fseeko.c (rpl_fseeko): Likewise.
48045         * lib/fseterr.c (fseterr): Likewise.
48046
48047 2007-08-19  Bruno Haible  <bruno@clisp.org>
48048
48049         * tests/test-lseek.c (main): Disable a test for BeOS.
48050         * doc/functions/lseek.texi: Document the BeOS bug.
48051
48052 2007-08-19  Bruno Haible  <bruno@clisp.org>
48053             Eric Blake  <ebb9@byu.net>
48054
48055         * lib/lseek.c: Include <sys/stat.h>.
48056         (rpl_lseek): Add workaround code also for Unix platforms.
48057         Needed for BeOS.
48058         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48059         * doc/functions/lseek.texi: Document BeOS definiency.
48060
48061 2007-08-18  Bruno Haible  <bruno@clisp.org>
48062
48063         * modules/fstrcmp-tests: New file.
48064         * tests/test-fstrcmp.c: New file.
48065
48066 2007-08-18  Bruno Haible  <bruno@clisp.org>
48067
48068         * modules/fstrcmp: New file, from GNU gettext with modifications.
48069         * lib/fstrcmp.h: New file, from GNU gettext.
48070         * lib/fstrcmp.c: New file, from GNU gettext.
48071         * MODULES.html.sh (String handling): Add fstrcmp.
48072
48073 2007-08-18  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48076         'bool'.
48077         (diag, compareseq): Remove const from the ctxt argument.
48078         (USE_HEURISTIC): Undefine at the end.
48079
48080 2007-08-18  Jim Meyering  <jim@meyering.net>
48081
48082         New file: lib/idcache.h
48083         * NEWS: Mention the addition.
48084         * modules/idcache (Files): Add lib/idcache.h
48085         * lib/idcache.c: Include "idcache.h".
48086         Don't include <sys/types.h>.
48087         Add a FIXME comment.
48088         Move file-scoped "static" declarations to the top.
48089         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48090
48091 2007-08-17  Bruno Haible  <bruno@clisp.org>
48092         and Paul Eggert  <eggert@cs.ucla.edu>
48093
48094         * MODULES.html.sh: Add diffseq.
48095         * modules/diffseq: New file.
48096         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48097         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48098
48099 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48100
48101         Import changes from coreutils for bootstrap script.
48102
48103         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48104
48105         * build-aux/bootstrap (slurp): Work even in environments where
48106         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48107         current code does not slurp files whose names start with ".", and
48108         this looks like it might be a troublesome area.
48109
48110         2007-07-11  Jim Meyering  <jim@meyering.net>
48111
48112         If there's a GPL vN copyright comment, require that N == 3.
48113
48114         2007-07-08  Jim Meyering  <jim@meyering.net>
48115
48116         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48117         * build-aux/bootstrap (mam_template): Move definition out of loop.
48118
48119         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48120
48121         * build-aux/bootstrap (symlink_to_dir): Rename function from
48122         symlink_to_gnulib.  Add a directory parameter.  Update all
48123         callers.
48124         (cp_mark_as_generated): Also check for -- and link to -- files in
48125         gl/.
48126
48127         2007-07-08  Jim Meyering  <jim@meyering.net>
48128
48129         Adapt to deeper hierarchy in gnulib.
48130         * build-aux/bootstrap (symlink_to_dir): If the destination
48131         directory doesn't exist, create it. This is required at least for
48132         "lib/uniwidth/cjk.h".
48133
48134         2007-05-15  Jim Meyering  <jim@meyering.net>
48135
48136         * build-aux/bootstrap: Now that generated Makefile.am files
48137         are no longer under version control, they must be created at
48138         bootstrap time.
48139
48140 2007-08-14  Ben Pfaff  <blp@gnu.org>
48141
48142         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48143
48144 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48145
48146         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48147         given the changes below.
48148         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48149         even on hosts that have padding bits beyond the supported 64.
48150
48151 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48152
48153         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48154         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48155         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48156         depends on it.
48157         (xstrtol_error): Remove.
48158         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48159         but with a different signature.
48160         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48161         * lib/xstrtol-error.c: Include exitfail.h.
48162         (xstrtol_fatal): New function, with a different signature from the
48163         old xstrtol_error, so that the caller need not worry about passing
48164         in an exit status, or about storage management of the option argument.
48165         (xstrtol_error): Now a static function.  Redo signature to
48166         implement xstrtol_fatal.  Output the correct number of hyphens in
48167         front of the option so that the caller need not worry about
48168         storage management.
48169         (N_): New macro.
48170         (_): Remove; not used now.
48171         * modules/xstrtol: Depend on getopt.
48172         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48173         of old STRTOL_FATAL_ERROR macro.
48174         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48175         of test program.
48176         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48177         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48178
48179 2007-08-08  Eric Blake  <ebb9@byu.net>
48180
48181         * lib/xstrtol-error.c: Add missing include.
48182
48183         Move xstrtol messages into gnulib domain, when --pobase is used.
48184         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48185         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48186         * modules/xstrtol (Files): Distribute new file.
48187         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48188         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48189         * tests/test-xstrtol.c: ...into new file.
48190         * tests/test-xstrtoul.c: Also test xstrtoul.
48191         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48192         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48193         * tests/test-xstrtol.sh: Drive the tests.
48194         * tests/test-xstrtoimax.sh: Likewise.
48195         * tests/test-xstrtoumax.sh: Likewise.
48196         * modules/xstrtol-tests: New module.
48197         * modules/xstrtoimax-tests: Likewise.
48198         * modules/xstrtoumax-tests: Likewise.
48199
48200 2007-08-08  Jim Meyering  <jim@meyering.net>
48201
48202         New function: mfile_name_concat.
48203         * lib/filenamecat.c (mfile_name_concat): New function, just like
48204         file_name_concat, but return NULL upon failure rather than exiting
48205         with a diagnostic.
48206         * lib/filenamecat.h: Declare it.
48207
48208 2007-08-07  Bruno Haible  <bruno@clisp.org>
48209
48210         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48211         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48212         warning from gcc.
48213         Reported by Eric Blake.
48214
48215 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48216
48217         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48218         * modules/crypto/arcfour (License): Likewise.
48219         * modules/crypto/des-tests (License): Likewise.
48220         * modules/crypto/gc-arctwo-tests (License): Likewise.
48221         * modules/crypto/gc-des-tests (License): Likewise.
48222         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48223         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48224         * modules/crypto/gc-md2-tests (License): Likewise.
48225         * modules/crypto/gc-md4-tests (License): Likewise.
48226         * modules/crypto/gc-md5-tests (License): Likewise.
48227         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48228         * modules/crypto/gc-rijndael-tests (License): Likewise.
48229         * modules/crypto/gc-sha1-tests (License): Likewise.
48230         * modules/crypto/gc-tests (License): Likewise.
48231         * modules/crypto/hmac-md5 (License): Likewise.
48232         * modules/crypto/hmac-sha1 (License): Likewise.
48233         * modules/crypto/md2-tests (License): Likewise.
48234         * modules/crypto/md4-tests (License): Likewise.
48235         * modules/crypto/md5 (License): Likewise.
48236         * modules/crypto/rijndael (License): Likewise.
48237         * modules/crypto/sha1 (License): Likewise.
48238         * modules/memxor (License): Likewise.
48239
48240 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48241         and Bruno Haible  <bruno@clisp.org>
48242
48243         * NEWS: Describe interface changes to human, xstrtol.
48244         * lib/human.h: Include <xstrtol.h>.
48245         (human_options): Return enum strtol_error, not int.  Remove
48246         bool arg; take int * instead.
48247         * lib/human.c: Don't include "gettext.h".
48248         (_): Remove; no longer used.
48249         Don't include <xstrtol.h>, since human.h does it.
48250         (human_options): Adjust to abovementioned interface changes.
48251         Do not report error to stderr; that's now the caller's
48252         responsibility.
48253         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48254         interface change.
48255         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48256         Str, Argument_type_string.  All uses changed.  Put " argument"
48257         in diagnostics to make them clearer.  Change wording of suffix
48258         message for clarity.
48259         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48260         Argument_type_string.
48261         (STRTOL_FATAL_WARN): Remove; no longer used.
48262         * modules/human (Depends-on): Remove gettext-h.
48263
48264 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48265
48266         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48267
48268 2007-07-31  Bruno Haible  <bruno@clisp.org>
48269
48270         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48271         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48272         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48273
48274 2007-07-31  Bruno Haible  <bruno@clisp.org>
48275
48276         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48277         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48278
48279 2007-07-30  Bruno Haible  <bruno@clisp.org>
48280
48281         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48282         * modules/c-ctype (License): Likewise.
48283         * modules/c-strcase (License): Likewise.
48284         * modules/check-version (License): Likewise.
48285         * modules/iconv (License): Likewise.
48286         * modules/iconv_open (License): Likewise.
48287         * modules/read-file (License): Likewise.
48288         * modules/striconv (License): Likewise.
48289         * modules/strverscmp (License): Likewise.
48290         * modules/vasprintf (License): Likewise.
48291         * modules/crypto/des (License): Likewise.
48292         * modules/crypto/gc (License): Likewise.
48293         * modules/crypto/gc-arcfour (License): Likewise.
48294         * modules/crypto/gc-arctwo (License): Likewise.
48295         * modules/crypto/gc-des (License): Likewise.
48296         * modules/crypto/gc-hmac-md5 (License): Likewise.
48297         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48298         * modules/crypto/gc-md2 (License): Likewise.
48299         * modules/crypto/gc-md4 (License): Likewise.
48300         * modules/crypto/gc-md5 (License): Likewise.
48301         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48302         * modules/crypto/gc-random (License): Likewise.
48303         * modules/crypto/gc-rijndael (License): Likewise.
48304         * modules/crypto/gc-sha1 (License): Likewise.
48305         * modules/crypto/md2 (License): Likewise.
48306         * modules/crypto/md4 (License): Likewise.
48307
48308 2007-07-30  Jim Meyering  <jim@meyering.net>
48309
48310         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48311         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48312         it has valid stat data.  This bug would cause du not to count the
48313         sizes of inaccessible directories.
48314         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48315         in <http://bugzilla.redhat.com/250077>.
48316
48317 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48318             Bruno Haible  <bruno@clisp.org>
48319
48320         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48321         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48322         #include_next, gives a diagnostic about it, but reports no error in
48323         the exit code.
48324         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48325
48326 2007-07-24  Ben Pfaff  <blp@gnu.org>
48327
48328         Improve name: "count-one-bits" is better than "popcount".
48329         * MODULES.html.sh: Update name.
48330         * lib/popcount.h: Renamed lib/count-one-bits.h.
48331         (popcount): Renamed count_one_bits.
48332         (popcountl): Renamed count_one_bits_l.
48333         (popcountll): Renamed count_one_bits_ll.
48334         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48335         * modules/popcount: Renamed module/count-one-bits.
48336         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48337         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48338
48339 2007-07-23  Ben Pfaff  <blp@gnu.org>
48340
48341         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48342         better code generation, and add U to large constants to avoid
48343         warnings, in non-GCC case.
48344         Suggested by Bruno Haible.
48345
48346 2007-07-23  Ben Pfaff  <blp@gnu.org>
48347
48348         * lib/popcount.h: Use verify_true instead of if...abort.
48349         * modules/popcount: Depend on verify module.
48350         Suggested by Jim Meyering.
48351
48352 2007-07-23  Bruno Haible  <bruno@clisp.org>
48353
48354         * gnulib-tool (func_import): Create a .cvsignore file also when the
48355         directory is not yet in CVS but the toplevel directory is. When
48356         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48357         Reported by Karl Berry.
48358
48359 2007-07-22  Ben Pfaff  <blp@gnu.org>
48360
48361         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48362         case.
48363         Suggested by Eric Blake.
48364
48365 2007-07-22  Ben Pfaff  <blp@gnu.org>
48366
48367         New module: popcount.
48368         * MODULES.html.sh: Add popcount.
48369         * modules/popcount: New file.
48370         * modules/popcount-tests: New file.
48371         * tests/test-popcount.c: New file.
48372         * lib/popcount.h: New file.
48373         * m4/popcount.m4: New file.
48374
48375 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48376
48377         * build-aux/announce-gen: Update to GPLv3.
48378
48379         * build-aux/config.guess: Update from config.
48380
48381 2007-07-21  Bruno Haible  <bruno@clisp.org>
48382
48383         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48384         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48385
48386 2007-07-20  Jim Meyering  <jim@meyering.net>
48387
48388         * check-module: Diagnose a self-dependency.
48389
48390 2007-07-19  Bruno Haible  <bruno@clisp.org>
48391
48392         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48393         empty.
48394         Reported by Eric Blake.
48395
48396 2007-07-18  Bruno Haible  <bruno@clisp.org>
48397
48398         * gnulib-tool: New options --po-base, --po-domain.
48399         (func_usage): Document them.
48400         (pobase, po_domain): New variables.
48401         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48402         DEFAULT_TEXT_DOMAIN.
48403         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48404         (func_import): Consider pobase and po_domain. Create a po/ directory.
48405         (func_create_testdir): Set pobase and po_domain to empty.
48406         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48407         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48408
48409 2007-07-18  Bruno Haible  <bruno@clisp.org>
48410
48411         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48412         EXTRA_DIST augmentation for files in build-aux/.
48413
48414 2007-07-16  Bruno Haible  <bruno@clisp.org>
48415
48416         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48417         * modules/getdelim (License): Likewise.
48418
48419 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48420
48421         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48422         * modules/d-type (License): Likewise.
48423         * modules/extensions (License): Likewise.
48424         * modules/fnmatch (License): Likewise.
48425         * modules/fseeko (License): Likewise.
48426         * modules/getaddrinfo (License): Likewise.
48427         * modules/getline (License): Likewise.
48428         * modules/getlogin_r (License): Likewise.
48429         * modules/getpass (License): Likewise.
48430         * modules/gettimeofday (License): Likewise.
48431         * modules/glob (License): Likewise.
48432         * modules/inet_ntop (License): Likewise.
48433         * modules/malloc (License): Likewise.
48434         * modules/malloca (License): Likewise.
48435         * modules/memmem (License): Likewise.
48436         * modules/mempcpy (License): Likewise.
48437         * modules/memset (License): Likewise.
48438         * modules/minmax (License): Likewise.
48439         * modules/mktime (License): Likewise.
48440         * modules/netinet_in (License): Likewise.
48441         * modules/pathmax (License): Likewise.
48442         * modules/poll (License): Likewise.
48443         * modules/regex (License): Likewise.
48444         * modules/snprintf (License): Likewise.
48445         * modules/stdbool (License): Likewise.
48446         * modules/stdint (License): Likewise.
48447         * modules/stdio (License): Likewise.
48448         * modules/strcase (License): Likewise.
48449         * modules/strcasestr (License): Likewise.
48450         * modules/strdup (License): Likewise.
48451         * modules/string (License): Likewise.
48452         * modules/strndup (License): Likewise.
48453         * modules/strnlen (License): Likewise.
48454         * modules/strpbrk (License): Likewise.
48455         * modules/strptime (License): Likewise.
48456         * modules/strsep (License): Likewise.
48457         * modules/sys_select (License): Likewise.
48458         * modules/sys_socket (License): Likewise.
48459         * modules/sys_stat (License): Likewise.
48460         * modules/sys_time (License): Likewise.
48461         * modules/time (License): Likewise.
48462         * modules/time_r (License): Likewise.
48463         * modules/timegm (License): Likewise.
48464         * modules/unistd (License): Likewise.
48465         * modules/vsnprintf (License): Likewise.
48466         * modules/wctype (License): Likewise.
48467
48468 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48469
48470         * modules/argz (License): LGPLv2+.
48471
48472 2007-07-15  Karl Berry  <karl@gnu.org>
48473
48474         * doc/gnulib.texi: revise node structure per new fdl.texi.
48475
48476 2007-07-14  Bruno Haible  <bruno@clisp.org>
48477
48478         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48479         the output file.
48480         * lib/uniname/uninames.h: Regenerated.
48481
48482 2007-07-14  Karl Berry  <karl@gnu.org>
48483
48484         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48485         omitting sectioning and index commands.
48486
48487 2007-07-13  Bruno Haible  <bruno@clisp.org>
48488
48489         New gnulib-tool option --more-symlinks.
48490         * gnulib-tool (func_usage): Document --more-symlinks.
48491         (do_copyrights): New variable.
48492         Recognize option --more-symlinks.
48493         (func_import): Don't add a copyright notice transform to
48494         sed_transform_lib_file if do_copyrights is empty.
48495
48496 2007-07-13  Bruno Haible  <bruno@clisp.org>
48497
48498         * lib/vasnprintf.c (decimal_point_char): Define also if
48499         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48500         && !NEED_PRINTF_DIRECTIVE_A.
48501         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48502         Gary V. Vaughan <gary@gnu.org>.
48503
48504 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48505
48506         * lib/inttypes_.h: Undo previous change, since it was fixed
48507         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48508
48509 2007-07-13  Bruno Haible  <bruno@clisp.org>
48510
48511         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48512         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48513
48514 2007-07-13  Jim Meyering  <jim@meyering.net>
48515
48516         df: Don't fail for Tru64's "file-on-file mount".
48517         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48518         so we fall through and use statfs instead.  Details here:
48519         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48520         Reported by Albert Chin.
48521
48522 2007-07-13  Bruno Haible  <bruno@clisp.org>
48523
48524         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48525         * modules/configmake (License): Likewise.
48526         * modules/gettext (License): Likewise.
48527         * modules/gettext-h (License): Likewise.
48528         * modules/include_next (License): Likewise.
48529         * modules/link-warning (License): Likewise.
48530         * modules/localcharset (License): Likewise.
48531         * modules/localename (License): Likewise.
48532         * modules/lock (License): Likewise.
48533         * modules/relocatable-lib-lgpl (License): Likewise.
48534         * modules/size_max (License): Likewise.
48535         * modules/vasnprintf (License): Likewise.
48536         * modules/wchar (License): Likewise.
48537         * modules/xsize (License): Likewise.
48538
48539 2007-07-13  Bruno Haible  <bruno@clisp.org>
48540
48541         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48542         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48543
48544 2007-07-12  Bruno Haible  <bruno@clisp.org>
48545
48546         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48547         in the modules files.
48548
48549 2007-07-11  Karl Berry  <karl@gnu.org>
48550
48551         * MODULES.html.sh (func_module): use
48552          sed -e '\|^'"${includefile}"'$|d'
48553          instead of /.../d, to avoid errors on $includefile's containing /.
48554
48555 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48556
48557         * gnulib-tool (func_import): Avoid duplication of --avoid
48558         statements
48559         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48560         names to `_' in variable names.
48561
48562 2007-07-10  Eric Blake  <ebb9@byu.net>
48563
48564         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48565         * NEWS: Document this change.
48566
48567 2007-07-08  Bruno Haible  <bruno@clisp.org>
48568
48569         Update to Unicode 5.0.
48570         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48571         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48572         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48573         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48574         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48575         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48576         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48577         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48578         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48579         U+10A3F, U+1D242..U+1D244.
48580         (nonspacing_table_ind): Update.
48581         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48582         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48583
48584 2007-07-08  Bruno Haible  <bruno@clisp.org>
48585
48586         Update to Unicode 5.0.
48587         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48588         code transform. Extend the name index field of unicode_name_to_code and
48589         unicode_code_to_name from 16 to 24 bits.
48590         * lib/uniname/uniname.c (unicode_character_name,
48591         unicode_name_character): Add the range 0x12xxx to the code transform.
48592         * lib/uniname/uninames.h: Regenerated.
48593         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48594
48595 2007-07-07  Bruno Haible  <bruno@clisp.org>
48596
48597         * modules/wcwidth-tests: New file.
48598         * tests/test-wcwidth.c: New file.
48599
48600         Work around MacOS X wcwidth() bug.
48601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48602         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48603         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48604         original wcwidth in non-UTF-8 locales.
48605         * modules/wcwidth (Depends-on): Add localcharset, streq,
48606         uniwidth/width.
48607         * doc/functions/wcwidth.texi: Update.
48608
48609 2007-07-07  Bruno Haible  <bruno@clisp.org>
48610
48611         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48612         (wcwidth): New declaration.
48613         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48614         macros.
48615         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48616         here. Prepare for creating <wchar.h> unconditionally.
48617         * modules/wchar (Depends-on): Add link-warning.
48618         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48619         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48620         * lib/wcwidth.h: Remove file.
48621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48622         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48623         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48624         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48625         (Include): Replace wcwidth.h with <wchar.h>.
48626         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48627         * lib/mbchar.h: Don't include wcwidth.h.
48628         * lib/mbswidth.c: Likewise.
48629         * NEWS: Mention the change.
48630
48631 2007-07-07  Bruno Haible  <bruno@clisp.org>
48632
48633         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48634         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48635         definition with an external declaration.
48636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48637         defined as a function. Remove AC_C_INLINE requirement.
48638         * modules/wcwidth (Files): Add lib/wcwidth.c.
48639         (Makefile.am): Remove redundant statement.
48640
48641 2007-07-07  Bruno Haible  <bruno@clisp.org>
48642
48643         * MODULES.html.sh (Unicode string functions): Add the new modules.
48644
48645         * tests/uniwidth/test-u32-strwidth.c: New file.
48646         * modules/uniwidth/u32-strwidth-tests: New file.
48647
48648         * lib/uniwidth/u32-strwidth.c: New file.
48649         * modules/uniwidth/u32-strwidth: New file.
48650
48651         * tests/uniwidth/test-u16-strwidth.c: New file.
48652         * modules/uniwidth/u16-strwidth-tests: New file.
48653
48654         * lib/uniwidth/u16-strwidth.c: New file.
48655         * modules/uniwidth/u16-strwidth: New file.
48656
48657         * tests/uniwidth/test-u8-strwidth.c: New file.
48658         * modules/uniwidth/u8-strwidth-tests: New file.
48659
48660         * lib/uniwidth/u8-strwidth.c: New file.
48661         * modules/uniwidth/u8-strwidth: New file.
48662
48663         * tests/uniwidth/test-u32-width.c: New file.
48664         * modules/uniwidth/u32-width-tests: New file.
48665
48666         * lib/uniwidth/u32-width.c: New file.
48667         * modules/uniwidth/u32-width: New file.
48668
48669         * tests/uniwidth/test-u16-width.c: New file.
48670         * modules/uniwidth/u16-width-tests: New file.
48671
48672         * lib/uniwidth/u16-width.c: New file.
48673         * modules/uniwidth/u16-width: New file.
48674
48675         * tests/uniwidth/test-u8-width.c: New file.
48676         * modules/uniwidth/u8-width-tests: New file.
48677
48678         * lib/uniwidth/u8-width.c: New file.
48679         * modules/uniwidth/u8-width: New file.
48680
48681         * tests/uniwidth/test-uc_width.c: New file.
48682         * modules/uniwidth/width-tests: New file.
48683
48684         * lib/uniwidth/width.c: New file, from GNU libiconv.
48685         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48686         * modules/uniwidth/width: New file.
48687
48688         * lib/uniwidth.h: New file, from GNU libiconv.
48689         * modules/uniwidth/base: New file.
48690
48691 2007-07-07  Bruno Haible  <bruno@clisp.org>
48692
48693         * lib/uniname.h: New file, from GNU gettext.
48694         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48695         * lib/uniname/uninames.h: New file, from GNU gettext.
48696         * lib/uniname/uniname.c: New file, from GNU gettext.
48697         * tests/uniname/test-uninames.sh: New file.
48698         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48699         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48700         * modules/uniname/base: New file.
48701         * modules/uniname/uniname: New file.
48702         * modules/uniname/uniname-tests: New file.
48703         * MODULES.html.sh (Unicode string functions): Add the new modules.
48704
48705 2007-07-06  Bruno Haible  <bruno@clisp.org>
48706
48707         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48708
48709 2007-07-06  Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48712         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48713         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48714         include <sys/time.h>.
48715         Reported by Eric Blake.
48716
48717 2007-07-06  Eric Blake  <ebb9@byu.net>
48718
48719         Fix testing canonicalize on cygwin.
48720         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48721         Revert patch from 2007-06-19.
48722         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48723         canonicalize module is also in use.
48724         * tests/test-canonicalize.c: New file.
48725         * tests/test-canonicalize.sh: Likewise.
48726         * modules/canonicalize-tests: Likewise.
48727
48728 2007-07-06  Jim Meyering  <jim@meyering.net>
48729
48730         * lib/getugroups.c (getugroups): Detect getgrent failure.
48731         Adjust comment to reflect reality: this function may return -1.
48732
48733 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48734
48735         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48736         the new TP address.
48737         (usage): Fix typo
48738         (gnulib_mk): New variable.
48739
48740 2007-07-05  Jim Meyering  <jim@meyering.net>
48741
48742         Don't let endgrent clobber errno, no matter how improbable.
48743         * lib/getugroups.c (getugroups): Save and restore errno around
48744         endgrent call.
48745
48746         Close the group DB even when failing with 2^31 or more members.
48747         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48748
48749 2007-07-04  Jim Meyering  <jim@meyering.net>
48750
48751         * lib/getugroups.h: New file.
48752         * lib/getugroups.c: Include "getugroups.h".
48753         Remove uses of "register" keyword.
48754         Move local variable, "cp", down into scope where used.
48755         Give "username" parameter the "const" attribute.
48756         * modules/getugroups (Files): Add lib/getugroups.h
48757
48758 2007-07-04  Karl Berry  <karl@gnu.org>
48759
48760         * MODULES.html.sh (func_all_modules): Complete rename of
48761         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48762
48763 2007-07-02  Bruno Haible  <bruno@clisp.org>
48764
48765         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48766         mode, when inttypes.h comes from gnulib.
48767         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48768
48769 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48770
48771         * NEWS: Mention lgpl module name change.
48772
48773         * modules/lgpl-2.1: Renamed from lgpl.
48774
48775         * NEWS: Mention gpl module name change.
48776
48777         * modules/gpl-3.0: New file, based on gpl-2.0.
48778
48779         * modules/gpl-2.0: Renamed from gpl.
48780
48781         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48782         doc/gpl-2.0.texi.
48783
48784 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48785
48786         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48787         #define __STDC_LIMIT_MACROS temporarily while including
48788         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48789         Problem reported by Joel E. Denny in
48790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48791
48792 2007-07-01  Bruno Haible  <bruno@clisp.org>
48793
48794         * lib/unistdio.h: New file.
48795         * lib/unistdio/u-asnprintf.h: New file.
48796         * lib/unistdio/u-asprintf.h: New file.
48797         * lib/unistdio/u-printf-args.c: New file.
48798         * lib/unistdio/u-printf-args.h: New file.
48799         * lib/unistdio/u-printf-parse.h: New file.
48800         * lib/unistdio/u-snprintf.h: New file.
48801         * lib/unistdio/u-sprintf.h: New file.
48802         * lib/unistdio/u-vasprintf.h: New file.
48803         * lib/unistdio/u-vsnprintf.h: New file.
48804         * lib/unistdio/u-vsprintf.h: New file.
48805         * lib/unistdio/ulc-asnprintf.c: New file.
48806         * lib/unistdio/ulc-asprintf.c: New file.
48807         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48808         * lib/unistdio/ulc-printf-parse.c: New file.
48809         * lib/unistdio/ulc-snprintf.c: New file.
48810         * lib/unistdio/ulc-sprintf.c: New file.
48811         * lib/unistdio/ulc-vasnprintf.c: New file.
48812         * lib/unistdio/ulc-vasprintf.c: New file.
48813         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48814         * lib/unistdio/ulc-vsnprintf.c: New file.
48815         * lib/unistdio/ulc-vsprintf.c: New file.
48816         * lib/unistdio/u8-asnprintf.c: New file.
48817         * lib/unistdio/u8-asprintf.c: New file.
48818         * lib/unistdio/u8-printf-parse.c: New file.
48819         * lib/unistdio/u8-snprintf.c: New file.
48820         * lib/unistdio/u8-sprintf.c: New file.
48821         * lib/unistdio/u8-vasnprintf.c: New file.
48822         * lib/unistdio/u8-vasprintf.c: New file.
48823         * lib/unistdio/u8-vsnprintf.c: New file.
48824         * lib/unistdio/u8-vsprintf.c: New file.
48825         * lib/unistdio/u8-u8-asnprintf.c: New file.
48826         * lib/unistdio/u8-u8-asprintf.c: New file.
48827         * lib/unistdio/u8-u8-snprintf.c: New file.
48828         * lib/unistdio/u8-u8-sprintf.c: New file.
48829         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48830         * lib/unistdio/u8-u8-vasprintf.c: New file.
48831         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48832         * lib/unistdio/u8-u8-vsprintf.c: New file.
48833         * lib/unistdio/u16-asnprintf.c: New file.
48834         * lib/unistdio/u16-asprintf.c: New file.
48835         * lib/unistdio/u16-printf-parse.c: New file.
48836         * lib/unistdio/u16-snprintf.c: New file.
48837         * lib/unistdio/u16-sprintf.c: New file.
48838         * lib/unistdio/u16-vasnprintf.c: New file.
48839         * lib/unistdio/u16-vasprintf.c: New file.
48840         * lib/unistdio/u16-vsnprintf.c: New file.
48841         * lib/unistdio/u16-vsprintf.c: New file.
48842         * lib/unistdio/u16-u16-asnprintf.c: New file.
48843         * lib/unistdio/u16-u16-asprintf.c: New file.
48844         * lib/unistdio/u16-u16-snprintf.c: New file.
48845         * lib/unistdio/u16-u16-sprintf.c: New file.
48846         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48847         * lib/unistdio/u16-u16-vasprintf.c: New file.
48848         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48849         * lib/unistdio/u16-u16-vsprintf.c: New file.
48850         * lib/unistdio/u32-asnprintf.c: New file.
48851         * lib/unistdio/u32-asprintf.c: New file.
48852         * lib/unistdio/u32-printf-parse.c: New file.
48853         * lib/unistdio/u32-snprintf.c: New file.
48854         * lib/unistdio/u32-sprintf.c: New file.
48855         * lib/unistdio/u32-vasnprintf.c: New file.
48856         * lib/unistdio/u32-vasprintf.c: New file.
48857         * lib/unistdio/u32-vsnprintf.c: New file.
48858         * lib/unistdio/u32-vsprintf.c: New file.
48859         * lib/unistdio/u32-u32-asnprintf.c: New file.
48860         * lib/unistdio/u32-u32-asprintf.c: New file.
48861         * lib/unistdio/u32-u32-snprintf.c: New file.
48862         * lib/unistdio/u32-u32-sprintf.c: New file.
48863         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48864         * lib/unistdio/u32-u32-vasprintf.c: New file.
48865         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48866         * lib/unistdio/u32-u32-vsprintf.c: New file.
48867         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48868         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48869         * tests/unistdio/test-ulc-printf1.h: New file.
48870         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48871         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48872         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48873         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48874         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48875         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48876         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48877         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48878         * tests/unistdio/test-u8-asnprintf1.c: New file.
48879         * tests/unistdio/test-u8-asnprintf1.h: New file.
48880         * tests/unistdio/test-u8-printf1.h: New file.
48881         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48882         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48883         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48884         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48885         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48886         * tests/unistdio/test-u8-vasprintf1.c: New file.
48887         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48888         * tests/unistdio/test-u8-vsprintf1.c: New file.
48889         * tests/unistdio/test-u16-asnprintf1.c: New file.
48890         * tests/unistdio/test-u16-asnprintf1.h: New file.
48891         * tests/unistdio/test-u16-printf1.h: New file.
48892         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48893         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48894         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48895         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48896         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48897         * tests/unistdio/test-u16-vasprintf1.c: New file.
48898         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48899         * tests/unistdio/test-u16-vsprintf1.c: New file.
48900         * tests/unistdio/test-u32-asnprintf1.c: New file.
48901         * tests/unistdio/test-u32-asnprintf1.h: New file.
48902         * tests/unistdio/test-u32-printf1.h: New file.
48903         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48904         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48905         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48906         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48907         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48908         * tests/unistdio/test-u32-vasprintf1.c: New file.
48909         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48910         * tests/unistdio/test-u32-vsprintf1.c: New file.
48911         * modules/unistdio/base: New file.
48912         * modules/unistdio/u-printf-args: New file.
48913         * modules/unistdio/ulc-asnprintf: New file.
48914         * modules/unistdio/ulc-asprintf: New file.
48915         * modules/unistdio/ulc-fprintf: New file.
48916         * modules/unistdio/ulc-printf-parse: New file.
48917         * modules/unistdio/ulc-snprintf: New file.
48918         * modules/unistdio/ulc-sprintf: New file.
48919         * modules/unistdio/ulc-vasnprintf: New file.
48920         * modules/unistdio/ulc-vasprintf: New file.
48921         * modules/unistdio/ulc-vfprintf: New file.
48922         * modules/unistdio/ulc-vsnprintf: New file.
48923         * modules/unistdio/ulc-vsprintf: New file.
48924         * modules/unistdio/u8-asnprintf: New file.
48925         * modules/unistdio/u8-asprintf: New file.
48926         * modules/unistdio/u8-printf-parse: New file.
48927         * modules/unistdio/u8-snprintf: New file.
48928         * modules/unistdio/u8-sprintf: New file.
48929         * modules/unistdio/u8-vasnprintf: New file.
48930         * modules/unistdio/u8-vasprintf: New file.
48931         * modules/unistdio/u8-vsnprintf: New file.
48932         * modules/unistdio/u8-vsprintf: New file.
48933         * modules/unistdio/u8-u8-asnprintf: New file.
48934         * modules/unistdio/u8-u8-asprintf: New file.
48935         * modules/unistdio/u8-u8-snprintf: New file.
48936         * modules/unistdio/u8-u8-sprintf: New file.
48937         * modules/unistdio/u8-u8-vasnprintf: New file.
48938         * modules/unistdio/u8-u8-vasprintf: New file.
48939         * modules/unistdio/u8-u8-vsnprintf: New file.
48940         * modules/unistdio/u8-u8-vsprintf: New file.
48941         * modules/unistdio/u16-asnprintf: New file.
48942         * modules/unistdio/u16-asprintf: New file.
48943         * modules/unistdio/u16-printf-parse: New file.
48944         * modules/unistdio/u16-snprintf: New file.
48945         * modules/unistdio/u16-sprintf: New file.
48946         * modules/unistdio/u16-vasnprintf: New file.
48947         * modules/unistdio/u16-vasprintf: New file.
48948         * modules/unistdio/u16-vsnprintf: New file.
48949         * modules/unistdio/u16-vsprintf: New file.
48950         * modules/unistdio/u16-u16-asnprintf: New file.
48951         * modules/unistdio/u16-u16-asprintf: New file.
48952         * modules/unistdio/u16-u16-snprintf: New file.
48953         * modules/unistdio/u16-u16-sprintf: New file.
48954         * modules/unistdio/u16-u16-vasnprintf: New file.
48955         * modules/unistdio/u16-u16-vasprintf: New file.
48956         * modules/unistdio/u16-u16-vsnprintf: New file.
48957         * modules/unistdio/u16-u16-vsprintf: New file.
48958         * modules/unistdio/u32-asnprintf: New file.
48959         * modules/unistdio/u32-asprintf: New file.
48960         * modules/unistdio/u32-printf-parse: New file.
48961         * modules/unistdio/u32-snprintf: New file.
48962         * modules/unistdio/u32-sprintf: New file.
48963         * modules/unistdio/u32-vasnprintf: New file.
48964         * modules/unistdio/u32-vasprintf: New file.
48965         * modules/unistdio/u32-vsnprintf: New file.
48966         * modules/unistdio/u32-vsprintf: New file.
48967         * modules/unistdio/u32-u32-asnprintf: New file.
48968         * modules/unistdio/u32-u32-asprintf: New file.
48969         * modules/unistdio/u32-u32-snprintf: New file.
48970         * modules/unistdio/u32-u32-sprintf: New file.
48971         * modules/unistdio/u32-u32-vasnprintf: New file.
48972         * modules/unistdio/u32-u32-vasprintf: New file.
48973         * modules/unistdio/u32-u32-vsnprintf: New file.
48974         * modules/unistdio/u32-u32-vsprintf: New file.
48975         * modules/unistdio/ulc-asnprintf-tests: New file.
48976         * modules/unistdio/ulc-vasnprintf-tests: New file.
48977         * modules/unistdio/ulc-vasprintf-tests: New file.
48978         * modules/unistdio/ulc-vsnprintf-tests: New file.
48979         * modules/unistdio/ulc-vsprintf-tests: New file.
48980         * modules/unistdio/u8-asnprintf-tests: New file.
48981         * modules/unistdio/u8-vasnprintf-tests: New file.
48982         * modules/unistdio/u8-vasprintf-tests: New file.
48983         * modules/unistdio/u8-vsnprintf-tests: New file.
48984         * modules/unistdio/u8-vsprintf-tests: New file.
48985         * modules/unistdio/u16-asnprintf-tests: New file.
48986         * modules/unistdio/u16-vasnprintf-tests: New file.
48987         * modules/unistdio/u16-vasprintf-tests: New file.
48988         * modules/unistdio/u16-vsnprintf-tests: New file.
48989         * modules/unistdio/u16-vsprintf-tests: New file.
48990         * modules/unistdio/u32-asnprintf-tests: New file.
48991         * modules/unistdio/u32-vasnprintf-tests: New file.
48992         * modules/unistdio/u32-vasprintf-tests: New file.
48993         * modules/unistdio/u32-vsnprintf-tests: New file.
48994         * modules/unistdio/u32-vsprintf-tests: New file.
48995         * MODULES.html.sh (Unicode string functions): Add the new modules.
48996
48997 2007-07-01  Bruno Haible  <bruno@clisp.org>
48998
48999         * lib/sprintf.c (sprintf): Limit the available length estimation,
49000         to avoid address wraparound.
49001         * lib/vsprintf.c (vsprintf): Likewise.
49002         * modules/sprintf-posix (Dependencies): Add stdint.
49003         * modules/vsprintf-posix (Dependencies): Likewise.
49004
49005 2007-07-01  Bruno Haible  <bruno@clisp.org>
49006
49007         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49008         Windows PATH as well. Conservative double-quoting. Comments.
49009
49010 2007-07-01  Bruno Haible  <bruno@clisp.org>
49011             Eric Blake  <ebb9@byu.net>
49012             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49013
49014         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49015         empty components in $PATH, denoting '.'.
49016
49017 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49018
49019         * gnulib-tool: Fix indentation.
49020         (func_create_megatestdir): Likewise.
49021         Report by Bruno Haible.
49022
49023 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49024
49025         Sync from Automake.
49026         * build-aux/gnupload: Fix shell portability issues with for loops.
49027         Report by Karl Berry.
49028
49029 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49030
49031         * build-aux/maint.mk (POURL): Use translationproject.org.
49032
49033 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49034             Bruno Haible  <bruno@clisp.org>
49035
49036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49037         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49038         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49039         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49040         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49041
49042 2007-06-27  Bruno Haible  <bruno@clisp.org>
49043
49044         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49045         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49046
49047 2007-06-26  Karl Berry  <karl@gnu.org>
49048
49049         * MODULES.html.sh: remove xreadlink-with-size.
49050
49051 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49052
49053         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49054         method that I hope also handles the double-include problem noted
49055         by Bruno Haible in
49056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49057
49058 2007-06-23  Bruno Haible  <bruno@clisp.org>
49059
49060         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49061         Don't let the 'mostlyclean' target fail if the last subdirectory could
49062         not be removed.
49063         Reported by Karl Berry.
49064
49065 2007-06-23  Bruno Haible  <bruno@clisp.org>
49066
49067         * gnulib-tool (echo): Add a speedier workaround for ksh.
49068         * tests/test-echo.sh: Likewise.
49069
49070 2007-06-23  Bruno Haible  <bruno@clisp.org>
49071
49072         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49073         * tests/test-echo.sh: Likewise.
49074
49075 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49076
49077         * gnulib-tool (IFS): Initialize early, so we don't set it to
49078         empty later.
49079         (self_abspathname): Rewrite algorithm to set it, reindent.
49080         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49081         (func_create_megatestdir): Merge some sed scripts.
49082
49083 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49084
49085         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49086         exposed by Sun Studio 11 cc on Solaris 8.
49087
49088 2007-06-22  Bruno Haible  <bruno@clisp.org>
49089
49090         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49091         backslashes.
49092         * tests/test-echo.sh: New file.
49093
49094 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49095
49096         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49097         simplify `sed_replace_build_aux' scripts, they are portable but
49098         echoing them with `echo' is not.
49099         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49100
49101 2007-06-21  Karl Berry  <karl@gnu.org>
49102
49103         * config/srclist.txt: guess we can't handle the licenses via
49104         srclist at the moment.
49105
49106 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49107
49108         * MODULES.html.sh: Add include_next.
49109         * modules/include_next: New file.
49110
49111 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49112
49113         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49114         INCLUDE_NEXT.
49115         (gl_CHECK_NEXT_HEADERS): New macro.
49116         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49117         the obsolescent gl_ABSOLUTE_HEADER.
49118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49119         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49120         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49121         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49122         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49123         * m4/math_h.m4 (gl_MATH_H): Likewise.
49124         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49125         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49126         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49127         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49128         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49129         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49130         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49133         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49134         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49135         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49136         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49137         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49138         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49139         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49140         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49141         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49142         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49143         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49144         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49145         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49146         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49147         * lib/float_.h: Likewise.
49148         * lib/inttypes_.h: Likewise.
49149         * lib/math_.h: Likewise.
49150         * lib/search_.h: Likewise.
49151         * lib/signal_.h: Likewise.
49152         * lib/stdint_.h: Likewise.
49153         * lib/stdio_.h: Likewise.
49154         * lib/stdlib_.h: Likewise.
49155         * lib/string_.h: Likewise.
49156         * lib/sys_stat_.h: Likewise.
49157         * lib/sys_time_.h: Likewise.
49158         * lib/time_.h: Likewise.
49159         * lib/unistd_.h: Likewise.
49160         * lib/wchar_.h: Likewise.
49161         * lib/wctype_.h: Likewise.
49162         * lib/dirent_.h: Likewise.
49163         * lib/iconv_.h: Likewise.
49164         * lib/locale_.h: Likewise.
49165         * lib/netinet_in_.h: Likewise.
49166         * lib/sys_select_.h: Likewise.
49167         * lib/sys_socket_.h: Likewise.
49168         * lib/sysexits_.h: Likewise.
49169         * modules/fcntl (Depends-on): Depend on include_next, not
49170         absolute_header.
49171         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49172         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49173         * modules/fchdir: Likewise.
49174         * modules/float: Likewise.
49175         * modules/iconv_open: Likewise.
49176         * modules/inttypes: Likewise.
49177         * modules/locale: Likewise.
49178         * modules/math: Likewise.
49179         * modules/netinet_in: Likewise.
49180         * modules/search: Likewise.
49181         * modules/signal: Likewise.
49182         * modules/stdint: Likewise.
49183         * modules/stdio: Likewise.
49184         * modules/stdlib: Likewise.
49185         * modules/string: Likewise.
49186         * modules/sys_select: Likewise.
49187         * modules/sys_socket: Likewise.
49188         * modules/sys_stat: Likewise.
49189         * modules/sys_time: Likewise.
49190         * modules/sysexits: Likewise.
49191         * modules/time: Likewise.
49192         * modules/unistd: Likewise.
49193         * modules/wchar: Likewise.
49194         * modules/wctype: Likewise.
49195         * modules/sys_stat: Change maintainer to "all".
49196         * modules/unistd: Likewise.
49197
49198 2007-06-20  Karl Berry  <karl@gnu.org>
49199
49200         * config/srclist.txt: track www changes in license files.
49201
49202 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49203
49204         * build-aux/bootstrap: Remove stray dot.
49205         Make sure build_aux settings are honored when linking
49206         gnulib_extra_files.
49207
49208 2007-06-19  Eric Blake  <ebb9@byu.net>
49209
49210         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49211         Allow compilation on cygwin.
49212
49213 2007-06-19  Jim Meyering  <jim@meyering.net>
49214
49215         xreadlink-with-size: Remove module.  No longer used.
49216         Ex-callers now use xreadlink or mreadlink-with-size.
49217         * modules/xreadlink-with-size: Remove module.
49218         * lib/xreadlink-with-size.c: Remove file.
49219         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49220         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49221         just before the function definition *is* accurate.
49222
49223         Eliminate one way canonicalize_filename_mode could exit.
49224         * lib/canonicalize.c (canonicalize_filename_mode):
49225         Use mreadlink_with_size, not xreadlink_with_size.
49226
49227 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49228
49229         Detect porting problems to FreeBSD/arm, which has time_t wider than
49230         long int.  Original problem reported for GNU diff by Xin Li in
49231         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49232         * modules/getdate (Depends-on): Add intprops, verify.
49233         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49234         is an integer type no wider than long int.
49235
49236 2007-06-18  Jim Meyering  <jim@meyering.net>
49237
49238         New module: mreadlink-with-size.
49239         * MODULES.html.sh: Add mreadlink-with-size.
49240         * modules/mreadlink-with-size: New module
49241         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49242         not xreadlink-with-size.
49243         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49244
49245 2007-06-16  Bruno Haible  <bruno@clisp.org>
49246
49247         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49248         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49249         Reported by Gary V. Vaughan <gary@gnu.org>.
49250
49251 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49252
49253         Revamp lchown so that it lives in unistd.h where it belongs.
49254         * lib/lchown.h: Remove.
49255         * lib/dirchownmod.c: Don't include lib/lchown.h.
49256         * lib/fchownat.c: Likewise.
49257         * lib/openat.c: Likewise.
49258         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49259         does not follow symlinks.
49260         (EOPNOTSUPP): Define if not defined.
49261         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49262         is defined to 0.
49263         (lchown): New decl.
49264         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49265         Do not check for lchown decl.
49266         Set REPLACE_LCHOWN.
49267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49268         REPLACE_LCHOWN.
49269         * modules/chown: Make it clear it follows symlinks.
49270         * modules/lchown: Make it clear it doesn't follow symlinks.
49271         (Files): Remove lib/lchown.h
49272         (Depends-on): Add unistd.
49273         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49274         (Include): Include <unistd.h>, not "lchown.h".
49275         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49276         REPLACE_LCHOWN.
49277
49278 2007-06-15  Jim Meyering  <jim@meyering.net>
49279
49280         Change license (GPL to LGPL) of fsusage and dependents.
49281         * modules/fsusage (License): Change to LGPL.
49282         * modules/full-read (License): Likewise.
49283         * modules/full-write (License): Likewise.
49284         * modules/safe-read (License): Likewise.
49285         * modules/safe-write (License): Likewise.
49286
49287 2007-06-14  Ben Pfaff  <blp@gnu.org>
49288
49289         Missing part of allocsa -> malloca transition.
49290         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49291         gl_MALLOCA.
49292
49293 2007-06-12  Bruno Haible  <bruno@clisp.org>
49294
49295         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49296         to ia64, x86_64, i386.
49297         Reported by Eric Blake.
49298
49299 2007-06-12  Bruno Haible  <bruno@clisp.org>
49300
49301         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49302         cross-compiling to x86_64.
49303
49304 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49305
49306         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49307         glitch reported by Ralf Wildenhues in
49308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49309
49310         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49311         Vin Shelton.
49312
49313 2007-06-11  Bruno Haible  <bruno@clisp.org>
49314
49315         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49316         replacement string.
49317         Reported by Eric Blake.
49318
49319 2007-06-10  Bruno Haible  <bruno@clisp.org>
49320
49321         Prepare vasnprintf code for use with Unicode strings.
49322         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49323         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49324         TYPE_U32_STRING.
49325         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49326         a_u32_string variants.
49327         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49328         * lib/printf-args.c: Don't include config.h and the specification
49329         header if PRINTF_FETCHARGS is already defined.
49330         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49331         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49332         TYPE_U16_STRING, TYPE_U32_STRING.
49333         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49334         u16_directive, u16_directives, u32_directive, u32_directives): New
49335         types.
49336         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49337         New declarations.
49338         * lib/printf-parse.c: Don't include config.h and the specification
49339         header if PRINTF_PARSE is already defined. Eliminate the set of
49340         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49341         them now. Include c-ctype.h.
49342         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49343         directive and CHAR_T_ONLY_ASCII.
49344         * lib/vasnprintf.c: Don't include config.h and the specification header
49345         if VASNPRINTF is already defined.
49346         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49347         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49348         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49349         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49350         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49351         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49352         code accordingly.
49353         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49354         pad_ourselves also in this case, with the 'c' and 's' directives, and
49355         with a different notion of "width".
49356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49357
49358 2007-06-10  Bruno Haible  <bruno@clisp.org>
49359
49360         * modules/unistr/u32-mbsnlen: New file.
49361         * lib/unistr/u32-mbsnlen.c: New file.
49362
49363         * modules/unistr/u16-mbsnlen: New file.
49364         * lib/unistr/u16-mbsnlen.c: New file.
49365
49366         * modules/unistr/u8-mbsnlen: New file.
49367         * lib/unistr/u8-mbsnlen.c: New file.
49368
49369         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49370         declarations.
49371
49372 2007-06-10  Bruno Haible  <bruno@clisp.org>
49373
49374         * lib/string_.h (mbsnlen): New declaration.
49375         * lib/mbsnlen.c: New file.
49376         * m4/mbsnlen.m4: New file.
49377         * modules/mbsnlen: New file.
49378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49379         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49380         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49381
49382 2007-06-10  Bruno Haible  <bruno@clisp.org>
49383
49384         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49385
49386 2007-06-10  Bruno Haible  <bruno@clisp.org>
49387
49388         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49389         * lib/mbuiter.h: Likewise.
49390
49391 2007-06-10  Bruno Haible  <bruno@clisp.org>
49392
49393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49394         declaration.
49395
49396 2007-06-10  Karl Berry  <karl@gnu.org>
49397
49398         * config/srclist.txt: remove gettext entries, Bruno prefers
49399         to update individually.
49400
49401 2007-06-10  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49404         'maxlen'. Ensure only length + width bytes are allocated, not
49405         length + 1 + width.
49406
49407 2007-06-09  Bruno Haible  <bruno@clisp.org>
49408
49409         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49410         (CHAR_T): Remove macro.
49411         (VASNPRINTF): Update.
49412
49413 2007-06-09  Bruno Haible  <bruno@clisp.org>
49414
49415         * MODULES.html.sh (Unicode string functions): Add the new modules.
49416
49417         * modules/uniconv/u32-conv-to-enc: New file.
49418         * lib/uniconv/u32-conv-to-enc.c: New file.
49419         * modules/uniconv/u32-conv-to-enc-tests: New file.
49420         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49421
49422         * modules/uniconv/u16-conv-to-enc: New file.
49423         * lib/uniconv/u16-conv-to-enc.c: New file.
49424         * lib/uniconv/u-conv-to-enc.h: New file.
49425         * modules/uniconv/u16-conv-to-enc-tests: New file.
49426         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49427
49428         * modules/uniconv/u8-conv-to-enc: New file.
49429         * lib/uniconv/u8-conv-to-enc.c: New file.
49430         * modules/uniconv/u8-conv-to-enc-tests: New file.
49431         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49432
49433         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49434         u32_conv_to_encoding): New declarations.
49435
49436 2007-06-09  Bruno Haible  <bruno@clisp.org>
49437
49438         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49439
49440 2007-06-09  Bruno Haible  <bruno@clisp.org>
49441
49442         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49443         * modules/malloca: Renamed from modules/allocsa, updated.
49444         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49445         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49446         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49447         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49448         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49449         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49450         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49451         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49452         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49453         * modules/c-strcasestr (Depends-on): Update.
49454         * lib/c-strcasestr.c: Update.
49455         * modules/c-strstr (Depends-on): Update.
49456         * lib/c-strstr.c: Update.
49457         * modules/canonicalize-lgpl (Depends-on): Update.
49458         * lib/canonicalize-lgpl.c: Update.
49459         * modules/clean-temp (Depends-on): Update.
49460         * lib/clean-temp.c: Update.
49461         * modules/csharpcomp (Depends-on): Update.
49462         * lib/csharpcomp.c: Update.
49463         * modules/csharpexec (Depends-on): Update.
49464         * lib/csharpexec.c: Update.
49465         * modules/javacomp (Depends-on): Update.
49466         * lib/javacomp.c: Update.
49467         * modules/javaexec (Depends-on): Update.
49468         * lib/javaexec.c: Update.
49469         * modules/mbscasestr (Depends-on): Update.
49470         * lib/mbscasestr.c: Update.
49471         * modules/mbsstr (Depends-on): Update.
49472         * lib/mbsstr.c: Update.
49473         * modules/setenv (Depends-on): Update.
49474         * lib/setenv.c: Update.
49475         * modules/strcasestr (Depends-on): Update.
49476         * lib/strcasestr.c: Update.
49477         * modules/striconveha (Depends-on): Update.
49478         * lib/striconveha.c: Update.
49479         * modules/relocatable-prog-wrapper (Files): Update.
49480         * lib/relocwrapper.c: Update.
49481         * build-aux/install-reloc: Update.
49482         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49483
49484 2007-06-08  Bruno Haible  <bruno@clisp.org>
49485
49486         Port to uClibc.
49487         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49488         * lib/fpurge.c (fpurge): Likewise.
49489         * lib/freading.c (freading): Likewise.
49490         * lib/fseeko.c (rpl_fseeko): Likewise.
49491         * lib/fseterr.c (fseterr): Likewise.
49492         * lib/fwriting.c (fwriting): Likewise.
49493         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49494
49495 2007-06-08  Bruno Haible  <bruno@clisp.org>
49496
49497         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49498         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49499         * modules/gettext (Files): Add m4/intlmacosx.m4.
49500
49501 2007-06-07  Bruno Haible  <bruno@clisp.org>
49502
49503         * modules/localename-tests: New file.
49504         * tests/test-localename.c: New file.
49505
49506         New module 'localename'.
49507         * lib/localename.h: New file.
49508         * lib/localename.c: New file, from GNU gettext.
49509         * m4/localename.m4: New file.
49510         * modules/localename: New file.
49511
49512 2007-06-07  Bruno Haible  <bruno@clisp.org>
49513
49514         Work around the lack of <wchar.h> on some builds of uClibc.
49515         * doc/headers/wchar.texi: Update.
49516         * lib/wchar_.h: Include <wchar.h> only if it exists.
49517         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49518         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49519         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49520         doesn't exist.
49521         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49522         * modules/mbfile (Depends-on): Add wchar.
49523         * modules/mbiter (Depends-on): Likewise.
49524         * modules/mbuiter (Depends-on): Likewise.
49525         Reported by Simon Josefsson.
49526
49527 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49528
49529         Work around problem reported by Steven M. Schweda in
49530         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49531         Tru64 5.1B with the Compaq compiler environment installed declares
49532         an 'isblank' function but does not define it in the C library.
49533         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49534         * lib/regex_internal.h (isblank): Likewise.
49535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49536         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49537
49538 2007-06-05  Bruno Haible  <bruno@clisp.org>
49539
49540         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49541         ia64.
49542         * modules/printf-safe: New file.
49543         * modules/fprintf-posix (Depends-on): Add printf-safe.
49544         * modules/printf-posix (Depends-on): Likewise.
49545         * modules/snprintf-posix (Depends-on): Likewise.
49546         * modules/sprintf-posix (Depends-on): Likewise.
49547         * modules/vasnprintf-posix (Depends-on): Likewise.
49548         * modules/vasprintf-posix (Depends-on): Likewise.
49549         * modules/vfprintf-posix (Depends-on): Likewise.
49550         * modules/vprintf-posix (Depends-on): Likewise.
49551         * modules/vsnprintf-posix (Depends-on): Likewise.
49552         * modules/vsprintf-posix (Depends-on): Likewise.
49553         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49554         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49555         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49556         "no" on i386, x86_64, ia64.
49557         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49558         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49559         on i386, x86_64, ia64.
49560         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49561         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49562         on i386, x86_64, ia64.
49563         * tests/test-vasnprintf-posix.c: Include float.h.
49564         (LDBL80_WORDS): New macro.
49565         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49566         on i386, x86_64, ia64.
49567         * tests/test-vasprintf-posix.c: Include float.h.
49568         (LDBL80_WORDS): New macro.
49569         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49570         on i386, x86_64, ia64.
49571         * tests/test-snprintf-posix.c: Include float.h.
49572         * tests/test-sprintf-posix.c: Likewise.
49573         * tests/test-vsnprintf-posix.c: Likewise.
49574         * tests/test-vsprintf-posix.c: Likewise.
49575
49576 2007-06-05  Bruno Haible  <bruno@clisp.org>
49577
49578         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49579         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49580         non-IEEE numbers on i386, x86_64, ia64.
49581         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49582         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49583         * tests/test-isnanl.h: Include float.h.
49584         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49585
49586 2007-06-05  Bruno Haible  <bruno@clisp.org>
49587
49588         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49589         also the %a / %A. Handle the %a / %A code before this extra handling.
49590
49591 2007-06-05  Bruno Haible  <bruno@clisp.org>
49592
49593         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49594         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49595
49596 2007-06-05  Bruno Haible  <bruno@clisp.org>
49597
49598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49599         typo in variable name.
49600
49601 2007-06-05  Eric Blake  <ebb9@byu.net>
49602
49603         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49604         Reported by Simon Josefsson.
49605
49606 2007-06-04  Bruno Haible  <bruno@clisp.org>
49607
49608         Avoid test failures on some PowerPC platforms.
49609         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49610         Define differently for PowerPC.
49611         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49612         Reported by Gary V. Vaughan <gary@gnu.org>.
49613
49614 2007-06-02  Bruno Haible  <bruno@clisp.org>
49615
49616         Fix test-stdint failure on FreeBSD/ia64.
49617         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49618         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49619         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49620         * doc/headers/stdint.texi: Update.
49621
49622 2007-06-01  Bruno Haible  <bruno@clisp.org>
49623
49624         * tests/test-binary-io.c (main): Pass a third argument to open().
49625         Reported by Gary V. Vaughan <gary@gnu.org>.
49626
49627 2007-06-01  Bruno Haible  <bruno@clisp.org>
49628
49629         * doc/functions/frexpl.texi: Update for mingw.
49630
49631 2007-06-01  Bruno Haible  <bruno@clisp.org>
49632
49633         * tests/test-lseek.c (main): Disable test of errno for invalid third
49634         argument.
49635         * doc/functions/lseek.texi: Update.
49636         Reported by Gary V. Vaughan <gary@gnu.org>.
49637
49638 2007-05-28  Bruno Haible  <bruno@clisp.org>
49639
49640         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49641
49642 2007-05-31  Eric Blake  <ebb9@byu.net>
49643
49644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49645         cross compiling.
49646
49647 2007-05-30  Eric Blake  <ebb9@byu.net>
49648         and Bruno Haible  <bruno@clisp.org>
49649
49650         Work around mingw test failures exposed by m4-1.4.9b.
49651         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49652         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49653         moment.
49654
49655 2007-05-30  Bruno Haible  <bruno@clisp.org>
49656
49657         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49658         assuming that they are closed. Needed on HP-UX 11.
49659
49660 2007-05-29  Bruno Haible  <bruno@clisp.org>
49661
49662         Fix a problem with #include_next.
49663         * lib/dirent_.h: Split the double-inclusion guard.
49664         * lib/fcntl_.h: Likewise.
49665         * lib/float_.h: Likewise.
49666         * lib/iconv_.h: Likewise.
49667         * lib/inttypes_.h: Likewise.
49668         * lib/locale_.h: Likewise.
49669         * lib/math_.h: Likewise.
49670         * lib/netinet_in_.h: Likewise.
49671         * lib/search_.h: Likewise.
49672         * lib/signal_.h: Likewise.
49673         * lib/stdint_.h: Likewise.
49674         * lib/stdio_.h: Likewise.
49675         * lib/stdlib_.h: Likewise.
49676         * lib/string_.h: Likewise.
49677         * lib/sys_select_.h: Likewise.
49678         * lib/sys_socket_.h: Likewise.
49679         * lib/sys_stat_.h: Likewise.
49680         * lib/sys_time_.h: Likewise.
49681         * lib/sysexits_.h: Likewise.
49682         * lib/time_.h: Likewise.
49683         * lib/unistd_.h: Likewise.
49684         * lib/wchar_.h: Likewise.
49685         * lib/wctype_.h: Likewise.
49686
49687 2007-05-29  Bruno Haible  <bruno@clisp.org>
49688
49689         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49690         for the moment.
49691
49692 2007-05-29  Bruno Haible  <bruno@clisp.org>
49693
49694         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49695         invocation.
49696         Reported by Eric Blake.
49697
49698 2007-05-29  Bruno Haible  <bruno@clisp.org>
49699
49700         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49701         compiling case.
49702
49703 2007-05-29  Eric Blake  <ebb9@byu.net>
49704             Bruno Haible  <bruno@clisp.org>
49705
49706         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49707         cross compiles.
49708
49709 2007-05-28  Eric Blake  <ebb9@byu.net>
49710
49711         * modules/closein-tests (test_closein_LDADD): Support test on
49712         cygwin with libtool.
49713
49714 2007-05-28  Bruno Haible  <bruno@clisp.org>
49715
49716         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49717         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49718         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49719         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49720         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49721         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49722         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49723         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49724         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49725
49726 2007-05-28  Eric Blake  <ebb9@byu.net>
49727
49728         Unconditionally include <config.h> in unit tests.
49729         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49730         * tests/test-allocsa.c, tests/test-arcfour.c,
49731         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49732         tests/test-array_list.c, tests/test-array_oset.c,
49733         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49734         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49735         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49736         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49737         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49738         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49739         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49740         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49741         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49742         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49743         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49744         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49745         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49746         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49747         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49748         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49749         test-md5.c, test-memmem.c, test-printf-posix.c,
49750         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49751         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49752         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49753         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49754         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49755         test-vasnprintf-posix2.c, test-vasnprintf.c,
49756         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49757         test-vfprintf-posix.c, test-vprintf-posix.c,
49758         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49759         test-xvasprintf.c: Likewise.
49760
49761 2007-05-28  Bruno Haible  <bruno@clisp.org>
49762
49763         * gnulib-tool (func_import): Remember the --with-tests command-line
49764         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49765         Reported by Eric Blake.
49766
49767 2007-05-28  Bruno Haible  <bruno@clisp.org>
49768
49769         * modules/ftell-tests: New file.
49770         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49771         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49772
49773         * lib/ftell.c: New file.
49774         * modules/ftell: New file.
49775         * m4/ftell.m4: New file.
49776         * doc/functions/ftell.texi: Update.
49777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49778         REPLACE_FTELL.
49779         * lib/stdio_.h (rpl_ftell): New declaration.
49780         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49781         REPLACE_FTELL.
49782
49783 2007-05-28  Eric Blake  <ebb9@byu.net>
49784
49785         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49786
49787 2007-05-28  Bruno Haible  <bruno@clisp.org>
49788
49789         * modules/fseek-tests: New file.
49790         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49791         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49792
49793         * lib/fseek.c: New file.
49794         * modules/fseek: New file.
49795         * m4/fseek.m4: New file.
49796         * doc/functions/fseek.texi: Update.
49797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49798         REPLACE_FSEEK.
49799         * lib/stdio_.h (rpl_fseek): New declaration.
49800         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49801         REPLACE_FSEEK.
49802
49803 2007-05-28  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/stdio_.h (fflush): More comments.
49806
49807 2007-05-28  Bruno Haible  <bruno@clisp.org>
49808
49809         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49810         runtime test.
49811
49812 2007-05-28  Eric Blake  <ebb9@byu.net>
49813
49814         Improve lseek module.
49815         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49816         * lib/unistd_.h (lseek): Scale back link warning message.
49817         * tests/test-lseek.c: Beef up test.
49818         * tests/test-lseek.sh: Exercise more facets of lseek.
49819         Reported by Bruno Haible.
49820
49821 2007-05-28  Bruno Haible  <bruno@clisp.org>
49822
49823         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49824         to define.
49825
49826 2007-05-27  Bruno Haible  <bruno@clisp.org>
49827
49828         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49829
49830 2007-05-27  Bruno Haible  <bruno@clisp.org>
49831
49832         * modules/openmp: New file.
49833         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49834         Noah Misch.
49835
49836 2007-05-26  Bruno Haible  <bruno@clisp.org>
49837
49838         * modules/chdir-long (Depends-on): Add fchdir.
49839         * modules/chdir-safer (Depends-on): Likewise.
49840         * modules/fts (Depends-on): Likewise.
49841         * modules/fts-lgpl (Depends-on): Likewise.
49842         * modules/openat (Depends-on): Likewise.
49843         * modules/savewd (Depends-on): Likewise.
49844
49845 2007-05-24  Eric Blake  <ebb9@byu.net>
49846
49847         Fix lseek on mingw.
49848         * modules/lseek: New module.
49849         * m4/lseek.m4: New file.
49850         * lib/lseek.c: New file.
49851         * modules/lseek-tests: New file.
49852         * tests/test-lseek.c: New file.
49853         * tests/test-lseek.sh: New file.
49854         * MODULES.html.sh: Document lseek module.
49855         * modules/fflush (Depends-on): Add lseek, fseeko.
49856         * modules/fseeko (Depends-on): Likewise.
49857         * modules/ftello (Depends-on): Likewise.
49858         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49859         broken.
49860         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49861         broken.
49862         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49863         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49864         * lib/ftello.c (rpl_ftello): Likewise.
49865         * tests/test-fseeko.c (main): Test this.
49866         * tests/test-fseeko.sh: Likewise.
49867         * tests/test-ftello.c (main): Likewise.
49868         * tests/test-ftello.sh: Likewise.
49869         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49870         implies replacing fseek.
49871         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49872         HAVE_FTELLO.
49873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49874         * modules/unistd (Makefile.am): Likewise.
49875         * lib/unistd_.h (lseek): Declare a replacement.
49876         * doc/functions/lseek.texi (lseek): Document this fix.
49877         * doc/functions/fseek.texi (fseek): Likewise.
49878         * doc/functions/ftell.texi (ftell): Likewise.
49879
49880 2007-05-24  Bruno Haible  <bruno@clisp.org>
49881
49882         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49883         in the printed representation of a NaN.
49884         * tests/test-vasprintf-posix.c (test_function): Likewise.
49885         * tests/test-snprintf-posix.h (test_function): Likewise.
49886         * tests/test-sprintf-posix.h (test_function): Likewise.
49887         Reported by Eric Blake.
49888
49889 2007-05-23  Eric Blake  <ebb9@byu.net>
49890
49891         Fix fseeko/ftello on cygwin 1.5.24.
49892         * doc/functions/fseeko.texi (fseeko): Document the fix.
49893         * doc/functions/ftello.texi (ftello): Document the fix.
49894         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49895         * doc/functions/stdout.text (stdout): New file.
49896         * doc/functions/stderr.text (stderr): New file.
49897         * doc/gnulib.texi (Function Substitutes): Use new files.
49898         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49899         prior to 1.7.0.
49900         * tests/test-ftello.c (main): Likewise for ftello.
49901         * tests/test-fseeko.sh: New file.
49902         * tests/test-ftello.sh: New file.
49903         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49904         with seekable stdin.
49905         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49906         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49907         (gl_REPLACE_FSEEKO): New macro.
49908         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49909         * modules/fseeko (Files): Distribute fseeko.c.
49910         * modules/ftello (Files): Distribute ftello.c.
49911         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49912         mode.
49913         * lib/ftello.c (rpl_ftello): New file.
49914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49915         fseeko, ftello.
49916         (gl_STDIN_LARGE_OFFSET): New macro.
49917         * modules/stdio (Makefile.am): Perform the replacement.
49918         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49919
49920 2007-05-23  Bruno Haible  <bruno@clisp.org>
49921
49922         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49923         GNULIB_POSIXCHECK is defined.
49924
49925 2007-05-21  Bruno Haible  <bruno@clisp.org>
49926
49927         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49928         Check also the output for NaN arguments. When cross-compiling, guess
49929         no on IRIX.
49930         * lib/vasnprintf.c: Update comments.
49931         * tests/test-vasnprintf-posix.c (strisnan): New function.
49932         (test_function): Use it.
49933         * tests/test-vasprintf-posix.c (strisnan): New function.
49934         (test_function): Use it.
49935         * tests/test-snprintf-posix.h (strisnan): New function.
49936         (test_function): Use it.
49937         * tests/test-sprintf-posix.h (strisnan): New function.
49938         (test_function): Use it.
49939         Reported by Eric Blake.
49940
49941 2007-05-20  Bruno Haible  <bruno@clisp.org>
49942
49943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49944         numbers that fails on BeOS.
49945         * doc/functions/frexpl.texi: Update.
49946
49947 2007-05-20  Jim Meyering  <jim@meyering.net>
49948
49949         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49950         forced upon us by glibc-2.6.
49951
49952 2007-05-20  Bruno Haible  <bruno@clisp.org>
49953
49954         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49955         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49956         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49957         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49958         NEED_PRINTF_INFINITE.
49959         (is_infinitel): New function.
49960         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49962         gl_PREREQ_VASNPRINTF_INFINITE.
49963         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49965         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49966         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49967         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49968         gl_PREREQ_VASNPRINTF_INFINITE.
49969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49976         * doc/functions/fprintf.texi: Update.
49977         * doc/functions/printf.texi: Update.
49978         * doc/functions/snprintf.texi: Update.
49979         * doc/functions/sprintf.texi: Update.
49980         * doc/functions/vfprintf.texi: Update.
49981         * doc/functions/vprintf.texi: Update.
49982         * doc/functions/vsnprintf.texi: Update.
49983         * doc/functions/vsprintf.texi: Update.
49984
49985 2007-05-20  Bruno Haible  <bruno@clisp.org>
49986
49987         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49988         was not found in libc.
49989         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49990
49991 2007-05-20  Bruno Haible  <bruno@clisp.org>
49992
49993         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49994         printed as "-nan" instead of "nan".
49995         * tests/test-vasprintf-posix.c (test_function): Likewise.
49996         * tests/test-snprintf-posix.h (test_function): Likewise.
49997         * tests/test-sprintf-posix.h (test_function): Likewise.
49998         Needed for HP-UX 11.
49999
50000 2007-05-20  Jim Meyering  <jim@meyering.net>
50001
50002         Fix buggy test for the fchownat-deref bug.
50003         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50004         symlink required for the run-test.  Without it, this test would
50005         always declare that fchownat doesn't work, and client code would
50006         unnecessarily use the replacement function with fixed libc.
50007         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50008         Reported by Greg Schafer.
50009
50010 2007-05-19  Bruno Haible  <bruno@clisp.org>
50011
50012         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50013         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50014         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50015         Needed for IRIX 6.5 and Solaris 2.5.1.
50016
50017 2007-05-19  Bruno Haible  <bruno@clisp.org>
50018
50019         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50020         (test_function): Skip tests involving -0.0 on platforms where
50021         -0.0 = 0.0.
50022         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50023         (test_function): Skip tests involving -0.0 on platforms where
50024         -0.0 = 0.0.
50025         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50026         (test_function): Skip tests involving -0.0 on platforms where
50027         -0.0 = 0.0.
50028         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50029         (test_function): Skip tests involving -0.0 on platforms where
50030         -0.0 = 0.0.
50031         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50032         tests.
50033         * tests/test-printf-posix.h (test_function): Likewise.
50034         * tests/test-printf-posix.output: Remove all -0.0 related results.
50035         Needed for IRIX 6.5.
50036
50037 2007-05-19  Bruno Haible  <bruno@clisp.org>
50038
50039         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50040         printed as "nan0x7fffffff" instead of "nan".
50041         * tests/test-vasprintf-posix.c (test_function): Likewise.
50042         * tests/test-snprintf-posix.h (test_function): Likewise.
50043         * tests/test-sprintf-posix.h (test_function): Likewise.
50044         * tests/test-fprintf-posix.h (NaN): Remove macro.
50045         (test_function): Remove all NaN related tests.
50046         * tests/test-printf-posix.h (NaN): Remove macro.
50047         (test_function): Remove all NaN related tests.
50048         * tests/test-printf-posix.output: Remove all NaN related results.
50049         Needed for IRIX 6.5.
50050
50051 2007-05-19  Bruno Haible  <bruno@clisp.org>
50052
50053         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50055
50056 2007-05-19  Bruno Haible  <bruno@clisp.org>
50057
50058         * lib/float_.h: New file.
50059         * m4/float_h.m4: New file.
50060         * modules/float: New file.
50061         * modules/isnanl (Dependencies): Add float.
50062         * modules/isnanl-nolibm (Dependencies): Likewise.
50063         * modules/mathl (Dependencies): Likewise.
50064         * modules/printf-frexpl (Dependencies): Likewise.
50065         * modules/signbit (Dependencies): Likewise.
50066         * modules/vasnprintf (Dependencies): Likewise.
50067         * doc/headers/float.texi: Update.
50068
50069 2007-05-19  Jim Meyering  <jim@meyering.net>
50070
50071         * lib/utimens.c (gl_futimens): Rename from futimens,
50072         now that glibc-2.6 declares futimens.
50073         * lib/utimens.h: Likewise.
50074
50075 2007-05-19  Bruno Haible  <bruno@clisp.org>
50076
50077         Avoid test failures on mingw.
50078         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50079         * tests/test-printf-posix.sh: Likewise.
50080         * tests/test-vfprintf-posix.sh: Likewise.
50081         * tests/test-vprintf-posix.sh: Likewise.
50082
50083 2007-05-19  Bruno Haible  <bruno@clisp.org>
50084
50085         Fix *printf result for NaN, Inf, -0.0 on mingw.
50086         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50087         * lib/vasnprintf.c: Include math.h and isnan.h.
50088         (is_infinite_or_zero): New function.
50089         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50090         values in the %f, %F, %e, %E, %g, %G directives.
50091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50092         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50093         gl_PRINTF_INFINITE and test its result. Invoke
50094         gl_PREREQ_VASNPRINTF_INFINITE.
50095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50099         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50101         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50102         * doc/functions/fprintf.texi: Update.
50103         * doc/functions/printf.texi: Update.
50104         * doc/functions/snprintf.texi: Update.
50105         * doc/functions/sprintf.texi: Update.
50106         * doc/functions/vfprintf.texi: Update.
50107         * doc/functions/vprintf.texi: Update.
50108         * doc/functions/vsnprintf.texi: Update.
50109         * doc/functions/vsprintf.texi: Update.
50110
50111 2007-05-19  Bruno Haible  <bruno@clisp.org>
50112
50113         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50114         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50115         Instead of multiplying with 10^k, set extra_zeroes to k.
50116         (scale10_round_long_double): Remove function.
50117
50118 2007-05-18  Bruno Haible  <bruno@clisp.org>
50119
50120         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50121         introduced on 2007-05-06.
50122
50123 2007-05-18  Bruno Haible  <bruno@clisp.org>
50124
50125         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50126         %g directives.
50127         * tests/test-vasprintf-posix.c (test_function): Likewise.
50128         * tests/test-snprintf-posix.h (test_function): Likewise.
50129         * tests/test-sprintf-posix.h (test_function): Likewise.
50130
50131 2007-05-18  Bruno Haible  <bruno@clisp.org>
50132
50133         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50134         (strmatch): New function.
50135         (test_function): Test the %f directive on numbers of various exponents.
50136         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50137         (strmatch): New function.
50138         (test_function): Test the %f directive on numbers of various exponents.
50139         * tests/test-snprintf-posix.h (strmatch): New function.
50140         (test_function): Test the %f directive on numbers of various exponents.
50141         * tests/test-sprintf-posix.h (strmatch): New function.
50142         (test_function): Test the %f directive on numbers of various exponents.
50143         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50144         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50145         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50146         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50147
50148 2007-05-18  Bruno Haible  <bruno@clisp.org>
50149
50150         Add support for 'long double' number output.
50151         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50152         * lib/vasnprintf.c: Include math.h and float+.h.
50153         (mp_limb_t): New type.
50154         (GMP_LIMB_BITS): New macro.
50155         (mp_twolimb_t): New type.
50156         (GMP_TWOLIMB_BITS): New macro.
50157         (mpn_t): New type.
50158         (multiply, divide, convert_to_decimal, decode_long_double,
50159         scale10_round_long_double, scale10_round_decimal_long_double,
50160         floorlog10l): New functions.
50161         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50162         for the %f, %F, %e, %E, %g, %G directives.
50163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50165         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50166         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50168         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50171         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50174         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50175         * modules/snprintf-posix (Depends-on): Likewise.
50176         * modules/sprintf-posix (Depends-on): Likewise.
50177         * modules/vasnprintf-posix (Depends-on): Likewise.
50178         * modules/vasprintf-posix (Depends-on): Likewise.
50179         * modules/vfprintf-posix (Depends-on): Likewise.
50180         * modules/vsnprintf-posix (Depends-on): Likewise.
50181         * modules/vsprintf-posix (Depends-on): Likewise.
50182         * modules/vasnprintf (Files): Add lib/float+.h.
50183         * doc/functions/fprintf.texi: Update.
50184         * doc/functions/printf.texi: Update.
50185         * doc/functions/snprintf.texi: Update.
50186         * doc/functions/sprintf.texi: Update.
50187         * doc/functions/vfprintf.texi: Update.
50188         * doc/functions/vprintf.texi: Update.
50189         * doc/functions/vsnprintf.texi: Update.
50190         * doc/functions/vsprintf.texi: Update.
50191
50192 2007-05-18  Bruno Haible  <bruno@clisp.org>
50193
50194         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50195
50196 2007-05-18  Bruno Haible  <bruno@clisp.org>
50197
50198         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50199         for printing 64-bit integers. Needed for mingw.
50200
50201 2007-05-18  Bruno Haible  <bruno@clisp.org>
50202
50203         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50204         gl_FUNC_FREXPL_WORKS.
50205         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50206
50207 2007-05-18  Bruno Haible  <bruno@clisp.org>
50208
50209         * modules/frexpl-nolibm-tests: New file.
50210
50211         * modules/frexpl-nolibm: New file.
50212         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50213
50214 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50215
50216         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50217         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50218         GCC 4.2, which otherwise issues a lot of warnings.
50219         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50220         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50221         Likewise.
50222         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50223         * modules/iconv_open (iconv.h): Likewise.
50224         * modules/locale (locale.h): Likewise.
50225         * modules/netinet_in (netinet/in.h): Likewise.
50226         * modules/sys_select (sys_select.h): Likewise.
50227         * modules/sys_socket (sys/socket.h): Likewise.
50228         * modules/sys_stat (sys/stat.h): Likewise.
50229         * modules/sysexits (sysexits.h): Likewise.
50230         * modules/unistd (unistd.h): Likewise.
50231
50232 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50233
50234         * modules/closein-tests (Makefile.am): Distribute
50235         `test-closein.sh'.
50236
50237 2007-05-17  Bruno Haible  <bruno@clisp.org>
50238
50239         * tests/test-printf-posix.output: Renamed from
50240         tests/test-fprintf-posix.out.
50241         * modules/fprintf-posix-tests: Update.
50242         * modules/printf-posix-tests: Update.
50243         * modules/vfprintf-posix-tests: Update.
50244         * modules/vprintf-posix-tests: Update.
50245         * tests/test-fprintf-posix.sh: Update.
50246         * tests/test-printf-posix.sh: Update.
50247         * tests/test-vfprintf-posix.sh: Update.
50248         * tests/test-vprintf-posix.sh: Update.
50249         Reported by Ralf Wildenhues.
50250
50251 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50252
50253         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50254         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50255         GCC 4.2, which otherwise issues a lot of warnings.
50256         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50257         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50258         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50259         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50260         it should no longer be needed.
50261         * lib/string_.h: Likewise.
50262         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50263         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50264         * modules/inttypes (inttypes.h): Likewise.
50265         * modules/math (math.h): Likewise.
50266         * modules/search (search.h): Likewise.
50267         * modules/signal (signal.h): Likewise.
50268         * modules/stdint (stdint.h): Likewise.
50269         * modules/stdio (stdio.h): Likewise.
50270         * modules/stdlib (stdlib.h): Likewise.
50271         * modules/string (string.h): Likewise.
50272         * modules/sys_time (sys/time.h): Likewise.
50273         * modules/time (time.h): Likewise.
50274         * modules/wchar (wchar.h): Likewise.
50275         * modules/wctype (wtype.h): Likewise.
50276
50277 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50278
50279         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50280
50281 2007-05-13  Bruno Haible  <bruno@clisp.org>
50282
50283         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50284         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50285         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50286         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50287         (gl_PREREQ_STRTOK_R): Don't require it here.
50288
50289 2007-05-13  Bruno Haible  <bruno@clisp.org>
50290
50291         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50292         when used in C++ mode.
50293
50294 2007-05-12  Bruno Haible  <bruno@clisp.org>
50295
50296         * lib/linebuffer.h: Tweak doc.
50297         * lib/linebuffer.c: Likewise.
50298
50299 2007-05-12  James Youngman  <jay@gnu.org>
50300
50301         * lib/linebuffer.c (readlinebuffer_delim): New function,
50302         like readlinebuffer, but use a caller-specified delimiter.
50303         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50304         as the delimiter.
50305         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50306
50307 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50308
50309         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50310         * modules/openat (Files): Remove openat-die.c.
50311         (Depends-on): Add openat-die.
50312         * modules/openat-die: New module.
50313
50314 2007-05-06  Bruno Haible  <bruno@clisp.org>
50315
50316         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50317         Update with info about Cygwin.
50318         * doc/functions/fprintf.texi: Update.
50319         * doc/functions/printf.texi: Update.
50320         * doc/functions/snprintf.texi: Update.
50321         * doc/functions/sprintf.texi: Update.
50322         * doc/functions/vfprintf.texi: Update.
50323         * doc/functions/vprintf.texi: Update.
50324         * doc/functions/vsnprintf.texi: Update.
50325         * doc/functions/vsprintf.texi: Update.
50326         Reported by Eric Blake.
50327
50328 2007-05-06  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50331         padding ourselves for the floating-point directives.
50332         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50335         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50336         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50344         * tests/test-snprintf-posix.h (test_function): Also check the width
50345         and some flags in the %f directive.
50346         * tests/test-sprintf-posix.h (test_function): Likewise.
50347         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50348         * tests/test-vasprintf-posix.c (test_function): Likewise.
50349         * doc/functions/fprintf.texi: Update.
50350         * doc/functions/printf.texi: Update.
50351         * doc/functions/snprintf.texi: Update.
50352         * doc/functions/sprintf.texi: Update.
50353         * doc/functions/vfprintf.texi: Update.
50354         * doc/functions/vprintf.texi: Update.
50355         * doc/functions/vsnprintf.texi: Update.
50356         * doc/functions/vsprintf.texi: Update.
50357
50358 2007-05-06  Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50361         pass the ' flag character to sprintf or snprintf.
50362         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50365         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50366         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50374         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50375         flag.
50376         * tests/test-sprintf-posix.h (test_function): Likewise.
50377         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50378         * tests/test-vasprintf-posix.c (test_function): Likewise.
50379         * doc/functions/fprintf.texi: Update.
50380         * doc/functions/printf.texi: Update.
50381         * doc/functions/snprintf.texi: Update.
50382         * doc/functions/sprintf.texi: Update.
50383         * doc/functions/vfprintf.texi: Update.
50384         * doc/functions/vprintf.texi: Update.
50385         * doc/functions/vsnprintf.texi: Update.
50386         * doc/functions/vsprintf.texi: Update.
50387
50388 2007-05-01  Bruno Haible  <bruno@clisp.org>
50389
50390         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50391
50392 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50393
50394         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50395         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50396
50397 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50398
50399         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50400         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50402
50403 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50404
50405         * lib/argp-help.c (struct hol_entry): New member `ord'.
50406         (HOL_ENTRY_PTRCMP): Use ord for comparison
50407         (hol_sort): Initialize ord.
50408
50409 2007-05-01  Bruno Haible  <bruno@clisp.org>
50410
50411         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50412         Reported by Eric Blake.
50413         * doc/gnulib.texi (Function Substitutes): Update.
50414
50415 2007-05-01  Bruno Haible  <bruno@clisp.org>
50416
50417         * doc/functions.texi: Remove file, now redundant through
50418         doc/functions/*.texi.
50419
50420 2007-05-01  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/argp (Depends-on): Add sleep.
50423
50424 2007-05-01  Bruno Haible  <bruno@clisp.org>
50425
50426         * modules/sleep-tests: New file.
50427         * tests/test-sleep.c: New file.
50428
50429         * modules/sleep: New file.
50430         * lib/sleep.c: New file.
50431         * m4/sleep.m4: New file.
50432         * lib/unistd_.h (sleep): New declaration.
50433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50434         HAVE_SLEEP.
50435         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50436         * doc/functions/sleep.texi: Document the sleep module.
50437
50438 2007-05-01  Bruno Haible  <bruno@clisp.org>
50439
50440         * lib/sigprocmask.h: Remove file.
50441         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50442         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50443         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50444         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50445         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50446         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50447         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50448         HAVE_SIGSET_T as a shell variable.
50449         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50450         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50451         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50452         (Depends-on): Add signal. Remove verify.
50453         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50454         (Include): Mention <signal.h> instead of sigprocmask.h.
50455         * NEWS: Mention the change.
50456         * lib/fatal-signal.c: Don't include sigprocmask.h.
50457
50458 2007-05-01  Bruno Haible  <bruno@clisp.org>
50459
50460         * modules/signal: New file.
50461         * lib/signal_.h: New file.
50462         * m4/signal_h.m4: New file.
50463
50464 2007-05-01  Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50467         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50468         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50469         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50470
50471 2007-05-01  Bruno Haible  <bruno@clisp.org>
50472
50473         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50474         configure time.
50475         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50476         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50477         * modules/sys_stat (Makefile.am): Substitute their values into
50478         sys/stat.h.
50479
50480 2007-05-01  Bruno Haible  <bruno@clisp.org>
50481
50482         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50483         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50484         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50485
50486 2007-05-01  Bruno Haible  <bruno@clisp.org>
50487
50488         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50489         'assert' module here.
50490
50491 2007-05-01  Bruno Haible  <bruno@clisp.org>
50492
50493         * doc/functions/*.texi: New files.
50494         * doc/functions/google-ranking.txt: New file.
50495         * doc/gnulib.texi (Function Substitutes): New chapter.
50496         (ctime, inet_ntoa): Remove sections.
50497         * doc/ctime.texi: Remove file.
50498         * doc/inet_ntoa.texi: Remove file.
50499         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50500         dependencies.
50501         (%.info): New rule, specifying a --reference-limit.
50502
50503 2007-05-01  Bruno Haible  <bruno@clisp.org>
50504
50505         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50506
50507 2007-05-01  Bruno Haible  <bruno@clisp.org>
50508
50509         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50510         the portability of 'mkdir' to mingw systems.
50511
50512 2007-05-01  Bruno Haible  <bruno@clisp.org>
50513
50514         * doc/headers/google-ranking.txt: New file.
50515
50516 2007-04-30  Eric Blake  <ebb9@byu.net>
50517
50518         Prefer fseeko to fseek.
50519         * modules/getpass (Depends-on): Add fseeko.
50520         * lib/getpass.c (getpass): Use fseeko, not fseek.
50521
50522 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50523
50524         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50525         assumes the sorting is stable, while most qsort implementations
50526         are not.  Use argument addresses to ensure they never compare as
50527         equal.
50528
50529         * tests/test-argp-2.sh (usage-indent test): Fix output
50530         (func_compare): Restore diff options
50531         * tests/test-argp.c: Restore #include "progname.h"
50532
50533 2007-04-29  Bruno Haible  <bruno@clisp.org>
50534
50535         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50537         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50539         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50540         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50541         (TESTS, check_PROGRAMS): Add test-snprintf.
50542         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50543         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50544         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50545         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50546         assertions that fail on HP-UX, OSF/1, or IRIX.
50547         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50548
50549 2007-04-29  Bruno Haible  <bruno@clisp.org>
50550
50551         * MODULES.html.sh (posix_functions): Remove 'contents'.
50552
50553 2007-04-29  Karl Berry  <karl@gnu.org>
50554
50555         * config/srclist.txt (gendocs_template_min): new entry.
50556
50557 2007-04-29  Bruno Haible  <bruno@clisp.org>
50558
50559         Work around fpurge bug on BSD systems.
50560         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50561         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50562         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50563         fpurge to rpl_fpurge if the system already has this function.
50564         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50565         the case where the system already has this function. Correct invariants
50566         on BSD systems.
50567         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50568         BSD systems.
50569
50570 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50571
50572         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50573         proposed by Sven Verdoolaege.
50574
50575         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50576         options.
50577         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50578         (usage and help tests): Update
50579
50580 2007-04-29  Bruno Haible  <bruno@clisp.org>
50581
50582         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50583         Print more information in case of failure. Disable a test on BeOS.
50584
50585 2007-04-29  Bruno Haible  <bruno@clisp.org>
50586
50587         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50588         This helps debugging on systems on which no gdb is available.
50589
50590 2007-04-29  Bruno Haible  <bruno@clisp.org>
50591
50592         * lib/freading.h: Improve comments.
50593         * lib/fwriting.h: Likewise.
50594         * tests/test-freading.c (main): Don't check freading immediately after
50595         repositioning. Needed for glibc.
50596
50597 2007-04-29  Bruno Haible  <bruno@clisp.org>
50598
50599         * lib/freading.c (freading): Trivial simplification.
50600
50601 2007-04-28  Bruno Haible  <bruno@clisp.org>
50602
50603         * tests/test-fwriting.c (main): Also test the interaction between
50604         fflush and fwriting.
50605         * modules/fwriting-tests (Depends-on): Add fflush.
50606
50607         * tests/test-freading.c (main): Also test the interaction between
50608         fflush and freading.
50609         * modules/freading-tests (Depends-on): Add fflush.
50610
50611 2007-04-28  Bruno Haible  <bruno@clisp.org>
50612
50613         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50614         fseeko and ftello.
50615         Suggested by Eric Blake.
50616
50617 2007-04-28  Jim Meyering  <jim@meyering.net>
50618
50619         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50620         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50621         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50622
50623 2007-04-27  Eric Blake  <ebb9@byu.net>
50624
50625         * doc/headers/assert.texi (assert.h): Document assert module use.
50626
50627 2007-04-27  Bruno Haible  <bruno@clisp.org>
50628
50629         * doc/headers/*.texi: New files.
50630         * doc/gnulib.texi (Header File Substitutes): New chapter.
50631         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50632         dependencies.
50633         (standards.info ,standards.html, standards.dvi): Update dependencies.
50634         (mostlyclean, clean): New targets.
50635
50636 2007-04-27  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50639         * modules/sysexits (Files, Makefile.am): Update.
50640
50641         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50642         * modules/sys_socket (Files, Makefile.am): Update.
50643
50644         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50645         * modules/sys_stat (Files, Makefile.am): Update.
50646
50647 2007-04-27  Eric Blake  <ebb9@byu.net>
50648
50649         * lib/freading.h: Improve comments.
50650         * lib/fwriting.h: Likewise.
50651         * lib/fflush.c: Likewise.
50652
50653         Fix closein for mingw.
50654         * modules/closein-tests: Add tests for closein.
50655         * tests/test-closein.c: New file.
50656         * tests/test-closein.sh: Likewise.
50657         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50658         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50659
50660 2007-04-27  Bruno Haible  <bruno@clisp.org>
50661
50662         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50663         version is < 6.
50664         * lib/math_.h [__DECC]: Likewise.
50665         * lib/stdio_.h [__DECC]: Likewise.
50666         * lib/stdlib_.h [__DECC]: Likewise.
50667         * lib/string_.h [__DECC]: Likewise.
50668         * lib/time_.h [__DECC]: Likewise.
50669         * lib/wchar_.h [__DECC]: Likewise.
50670         * lib/wctype_.h [__DECC]: Likewise.
50671
50672 2007-04-27  Bruno Haible  <bruno@clisp.org>
50673
50674         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50675
50676 2007-04-27  Bruno Haible  <bruno@clisp.org>
50677
50678         * lib/fflush.c: Add comments.
50679         * modules/fpurge-tests (Depends-on): Add fflush.
50680         * modules/freadable-tests (Depends-on): Likewise.
50681         * modules/fwritable-tests (Depends-on): Likewise.
50682
50683 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50684
50685         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50686         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50687         Report by Bruno Haible <bruno@clisp.org>.
50688
50689 2007-04-26  Eric Blake  <ebb9@byu.net>
50690
50691         Fix fflush on mingw.
50692         * modules/fflush (Depends-on): Add freading.
50693         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50694         but unread data.
50695
50696 2007-04-26  Eric Blake  <ebb9@byu.net>
50697         and Bruno Haible  <bruno@clisp.org>
50698
50699         Implement freading and fwriting.
50700         * lib/freading.c: New file.
50701         * lib/freading.h: Likewise.
50702         * m4/freading.m4: Likewise.
50703         * modules/freading: Likewise.
50704         * modules/freading-tests: Likewise.
50705         * tests/test-freading.c: Likewise.
50706         * lib/fwriting.c: New file.
50707         * lib/fwriting.h: Likewise.
50708         * m4/fwriting.m4: Likewise.
50709         * modules/fwriting: Likewise.
50710         * modules/fwriting-tests: Likewise.
50711         * tests/test-fwriting.c: Likewise.
50712         * MODULES.html.sh (File stream based Input/Output): Mention them.
50713
50714 2007-04-26  Bruno Haible  <bruno@clisp.org>
50715
50716         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50717         'long' when we assume it.
50718         Suggested by Eric Blake.
50719
50720 2007-04-26  Bruno Haible  <bruno@clisp.org>
50721
50722         Ensure fseeko, ftello are declared on glibc systems.
50723         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50724         * modules/fseeko (configure.ac-early): Likewise.
50725         * modules/ftello (configure.ac-early): Likewise.
50726         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50727         AC_FUNC_FSEEKO for this.
50728         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50729         (gl_CHECK_FSEEKO): Remove macro.
50730
50731 2007-04-26  Bruno Haible  <bruno@clisp.org>
50732
50733         * tests/test-fflush.c (main): Also check the ftell result after
50734         fflush and fseek/fseeko.
50735         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50736         file descriptor position cache in the stream.
50737         * lib/fseeko.c (rpl_fseeko): Likewise.
50738
50739 2007-04-26  Bruno Haible  <bruno@clisp.org>
50740
50741         * modules/fflush-tests (Depends-on): Add fseeko.
50742
50743 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50744             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50745
50746         * lib/argz_.h: ensure error_t definition is obtained in same
50747         mechanism system argz.h would have.
50748         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50749         argz facilities are known bad.  Err on the side of caution if
50750         cross-compiling.
50751
50752 2007-04-25  Eric Blake  <ebb9@byu.net>
50753
50754         * lib/fpurge.c (includes): Use stdlib.h for free.
50755         * tests/test-fflush.c (main): Also test fflush-fseeko.
50756
50757 2007-04-25  Bruno Haible  <bruno@clisp.org>
50758
50759         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50760         * lib/fseeko.c: New file.
50761         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50762         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50763         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50764         gl_FUNC_FSEEKO.
50765         (gl_FUNC_FSEEKO): Invoke it.
50766         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50767         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50768         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50769
50770 2007-04-25  Bruno Haible  <bruno@clisp.org>
50771
50772         * modules/fflush (Depends-on): Add ftello.
50773
50774 2007-04-25  Bruno Haible  <bruno@clisp.org>
50775
50776         * modules/ftello-tests: New file.
50777         * tests/test-ftello.c: New file.
50778
50779         * modules/ftello: New file.
50780         * m4/ftello.m4: New file.
50781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50782         HAVE_FTELLO.
50783         * lib/stdio_.h (ftello): New declaration.
50784         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50785         HAVE_FTELLO.
50786
50787 2007-04-25  Bruno Haible  <bruno@clisp.org>
50788
50789         * modules/fseeko-tests: New file.
50790         * tests/test-fseeko.c: New file.
50791
50792         * modules/fseeko: New file.
50793         * m4/fseeko.m4: New file.
50794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50795         HAVE_FSEEKO.
50796         * lib/stdio_.h (fseeko): New declaration.
50797         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50798         HAVE_FSEEKO.
50799
50800 2007-04-25  Bruno Haible  <bruno@clisp.org>
50801
50802         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50803
50804 2007-04-25  Bruno Haible  <bruno@clisp.org>
50805
50806         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50807         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50808         * tests/test-unistd.c: Likewise.
50809         * tests/test-fcntl.c: Likewise.
50810
50811 2007-04-23  Eric Blake  <ebb9@byu.net>
50812
50813         * lib/fflush.c: Fix missing include.
50814         Reported by Bruno Haible.
50815
50816 2007-04-23  Bruno Haible  <bruno@clisp.org>
50817
50818         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50819         Reported by Eric Blake.
50820
50821 2007-04-23  Bruno Haible  <bruno@clisp.org>
50822
50823         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50824
50825 2007-04-23  Bruno Haible  <bruno@clisp.org>
50826
50827         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50828
50829 2007-04-23  Bruno Haible  <bruno@clisp.org>
50830
50831         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50832         Needed on HP-UX 11.
50833
50834 2007-04-16  Eric Blake  <ebb9@byu.net>
50835
50836         Make fflush rely on fpurge.
50837         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50838         open coding all variants.
50839         * modules/fflush (Depends-on): Add fpurge and unistd.
50840         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50841         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50842
50843         Fix --with-tests compilation on cygwin.
50844         * modules/argmatch-tests (Makefile.am): List gnulib library first
50845         in LDADD.
50846         * modules/argp-tests (Makefile.am): Likewise.
50847         * modules/array-list-tests (Makefile.am): Likewise.
50848         * modules/array-oset-tests (Makefile.am): Likewise.
50849         * modules/avltree-list-tests (Makefile.am): Likewise.
50850         * modules/avltree-oset-tests (Makefile.am): Likewise.
50851         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50852         * modules/carray-list-tests (Makefile.am): Likewise.
50853         * modules/dirname-tests (Makefile.am): Likewise.
50854         * modules/frexp-tests (Makefile.am): Likewise.
50855         * modules/isnanl-tests (Makefile.am): Likewise.
50856         * modules/linked-list-tests (Makefile.am): Likewise.
50857         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50858         * modules/lock-tests (Makefile.am): Likewise.
50859         * modules/rbtree-list-tests (Makefile.am): Likewise.
50860         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50861         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50862         * modules/tls-tests (Makefile.am): Likewise.
50863         * modules/tsearch-tests (Makefile.am): Likewise.
50864         * modules/xvasprintf-tests (Makefile.am): Likewise.
50865
50866         Fix fpurge for cygwin.
50867         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50868         value.
50869         * modules/fpurge-tests (Depends-on): Clean up trash.
50870
50871 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50872
50873         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50874
50875         * m4/autobuild.m4: Re-indent.
50876
50877 2007-04-13  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/fpurge-tests: New file.
50880         * tests/test-fpurge.c: New file.
50881
50882         * modules/fpurge: New file.
50883         * lib/fpurge.h: New file.
50884         * lib/fpurge.c: New file.
50885         * m4/fpurge.m4: New file.
50886
50887 2007-04-13  Bruno Haible  <bruno@clisp.org>
50888
50889         * modules/fbufmode-tests: New file.
50890         * tests/test-fbufmode.c: New file.
50891
50892         * modules/fbufmode: New file.
50893         * lib/fbufmode.h: New file.
50894         * lib/fbufmode.c: New file.
50895         * m4/fbufmode.m4: New file.
50896
50897 2007-04-13  Bruno Haible  <bruno@clisp.org>
50898
50899         * modules/fwritable-tests: New file.
50900         * tests/test-fwritable.c: New file.
50901
50902         * modules/fwritable: New file.
50903         * lib/fwritable.h: New file.
50904         * lib/fwritable.c: New file.
50905         * m4/fwritable.m4: New file.
50906
50907 2007-04-13  Bruno Haible  <bruno@clisp.org>
50908
50909         * modules/freadable-tests: New file.
50910         * tests/test-freadable.c: New file.
50911
50912         * modules/freadable: New file.
50913         * lib/freadable.h: New file.
50914         * lib/freadable.c: New file.
50915         * m4/freadable.m4: New file.
50916
50917 2007-04-13  Bruno Haible  <bruno@clisp.org>
50918
50919         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50920         MOSTLYCLEANFILES.
50921
50922 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50923
50924         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50925         gzip bootstrap.conf to avoid dragging in i18n machinery.
50926         (gnulib_tool_option): Use it.
50927
50928 2007-04-13  Bruno Haible  <bruno@clisp.org>
50929
50930         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50931         %F directives.
50932         * tests/test-vasprintf-posix.c (test_function): Likewise.
50933         * tests/test-snprintf-posix.h (test_function): Likewise.
50934         * tests/test-sprintf-posix.h (test_function): Likewise.
50935         * tests/test-fprintf-posix.h (test_function): Likewise.
50936         * tests/test-printf-posix.h (test_function): Likewise.
50937         * tests/test-fprintf-posix.out: Likewise.
50938
50939 2007-04-13  Bruno Haible  <bruno@clisp.org>
50940
50941         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50942         * modules/tls-tests (configure.ac): Likewise.
50943         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50944
50945 2007-04-13  Bruno Haible  <bruno@clisp.org>
50946
50947         * lib/tls.c (glthread_tls_get): Fix return type.
50948         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50949
50950 2007-04-12  Eric Blake  <ebb9@byu.net>
50951
50952         * modules/gettime (Depends-on): Remove gettime.
50953         Reported by Dmitry V. Levin.
50954
50955 2007-04-12  Bruno Haible  <bruno@clisp.org>
50956
50957         * modules/fflush (Include): Mention <stdio.h>.
50958         * modules/strtoimax (Include): Mention <inttypes.h>.
50959         * modules/strtoumax (Include): Likewise.
50960
50961 2007-04-12  Eric Blake  <ebb9@byu.net>
50962
50963         * .cvsignore: New file.
50964         * .gitignore: Likewise.
50965
50966 2007-04-12  Bruno Haible  <bruno@clisp.org>
50967
50968         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50969         not before, since $(LDADD) often contains libgnu.a.
50970         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50971         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50972         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50973         Needed on Cygwin.
50974
50975 2007-04-12  Eric Blake  <ebb9@byu.net>
50976
50977         Work around glibc's failure to flush stdin on fclose.
50978         * lib/closein.c (close_stdin): Flush stdin before closing.
50979
50980         Work around glibc's failure to reset seekable stdin on exit.
50981         * modules/closein: New module.
50982         * lib/closein.c: New file.
50983         * lib/closein.h: Likewise.
50984         * m4/closein.m4: Likewise.
50985         * MODULES.html.sh (File stream based Input/Output): Document it.
50986
50987 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50988
50989         * gnulib-tool: Rename generated 'autobuild' script to
50990         'do-autobuild' in --create-megatestdir output.
50991
50992         * doc/gnulib.texi (Build robot for gnulib): Fix.
50993
50994 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50995
50996         * modules/sysexits (Depends-on): Add absolute-header.
50997
50998 2007-04-12  Eric Blake  <ebb9@byu.net>
50999
51000         No need to preserve errno on success.
51001         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51002         Reported by Bruno Haible.
51003
51004 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51005
51006         * MODULES.html.sh (Support for maintaining and releasing
51007         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51008
51009 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51010
51011         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51012
51013 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51014
51015         * modules/autobuild: New module.
51016
51017         * m4/autobuild.m4: New file.
51018
51019 2007-04-11  Bruno Haible  <bruno@clisp.org>
51020
51021         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51022         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51026         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51027         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51029         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51030         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51031         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51032         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51033         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51035         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51036         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51038         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51039         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51040         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51041         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51042         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51044         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51045         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51047         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51048         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51049         Reported by Eric Blake.
51050
51051 2007-04-11  Bruno Haible  <bruno@clisp.org>
51052
51053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51054
51055 2007-04-10  Bruno Haible  <bruno@clisp.org>
51056
51057         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51058         for NaN and Infinity. Needed on FreeBSD 6.1.
51059         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51060         regarding results for "%010a" of Infinity and NaN.
51061         * tests/test-vasprintf-posix.c (test_function): Likewise.
51062         * tests/test-snprintf-posix.h (test_function): Likewise.
51063         * tests/test-sprintf-posix.h (test_function): Likewise.
51064         * tests/test-fprintf-posix.h (test_function): Likewise.
51065         * tests/test-printf-posix.h (test_function): Likewise.
51066         * tests/test-fprintf-posix.out: Likewise.
51067
51068 2007-04-10  Bruno Haible  <bruno@clisp.org>
51069
51070         * modules/locale-tests: New file.
51071         * tests/test-locale.c: New file.
51072
51073         * modules/locale: New file.
51074         * lib/locale_.h: New file.
51075         * m4/locale_h.m4: New file.
51076
51077 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51078             Bruno Haible  <bruno@clisp.org>
51079
51080         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51081         be determined, test for availability of the copysignf, copysign,
51082         copysignl functions.
51083         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51084         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51085         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51086
51087 2007-04-09  Eric Blake  <ebb9@byu.net>
51088
51089         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51090         * modules/stdio (Makefile.am): Support fflush.
51091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51092         * modules/fflush: New file.
51093         * lib/fflush.c: Likewise.
51094         * m4/fflush.m4: Likewise.
51095         * modules/fflush-tests: New test.
51096         * tests/test-fflush.c: Likewise.
51097         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51098
51099 2007-04-06  Bruno Haible  <bruno@clisp.org>
51100
51101         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51102         (VASNPRINTF): Use signbit for faster determination whether to print a
51103         minus sign.
51104         * modules/vasnprintf (Files): Remove lib/float+.h.
51105         * modules/fprintf-posix (Depends-on): Add signbit.
51106         * modules/snprintf-posix (Depends-on): Likewise.
51107         * modules/sprintf-posix (Depends-on): Likewise.
51108         * modules/vasnprintf-posix (Depends-on): Likewise.
51109         * modules/vasprintf-posix (Depends-on): Likewise.
51110         * modules/vfprintf-posix (Depends-on): Likewise.
51111         * modules/vsnprintf-posix (Depends-on): Likewise.
51112         * modules/vsprintf-posix (Depends-on): Likewise.
51113
51114 2007-04-06  Bruno Haible  <bruno@clisp.org>
51115
51116         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51117         * tests/test-frexpl.c (main): Likewise.
51118         * tests/test-ldexpl.c (main): Likewise.
51119         * modules/frexp-tests (Depends-on): Add signbit.
51120         * modules/frexpl-tests (Depdends-on): Likewise.
51121         * modules/ldexpl-tests (Depdends-on): Likewise.
51122
51123 2007-04-06  Bruno Haible  <bruno@clisp.org>
51124
51125         * modules/signbit-tests: New file.
51126         * tests/test-signbit.c: New file.
51127
51128         * modules/signbit: New file.
51129         * lib/signbitf.c: New file.
51130         * lib/signbitd.c: New file.
51131         * lib/signbitl.c: New file.
51132         * m4/signbit.m4: New file.
51133         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51134         (signbit): New macro.
51135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51136         REPLACE_SIGNBIT.
51137         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51138         REPLACE_FREXPL into math.h.
51139
51140 2007-04-06  Bruno Haible  <bruno@clisp.org>
51141
51142         * modules/isnanf-nolibm-tests: New file.
51143         * tests/test-isnanf.c: New file.
51144
51145         * modules/isnanf-nolibm: New file.
51146         * lib/isnanf.h: New file.
51147         * lib/isnanf.c: New file.
51148         * lib/isnan.c: Consider the USE_FLOAT macro.
51149         * m4/isnanf.m4: New file.
51150
51151 2007-04-06  Bruno Haible  <bruno@clisp.org>
51152
51153         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51154         (Link): New section.
51155
51156         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51157
51158 2007-04-06  Bruno Haible  <bruno@clisp.org>
51159
51160         Assume the 'long double' type.
51161         * m4/longdouble.m4: Remove file.
51162         * config/srclist.txt: Don't mention longdouble.m4.
51163         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51164         * lib/float+.h: Likewise.
51165         * lib/frexp.c: Likewise.
51166         * lib/printf-args.h: Likewise.
51167         * lib/printf-args.c: Likewise.
51168         * lib/printf-frexp.c: Likewise.
51169         * lib/printf-parse.c: Likewise.
51170         * lib/vasnprintf.c: Likewise.
51171         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51172         * m4/intl.m4: Likewise.
51173         * m4/isnanl.m4: Likewise.
51174         * m4/printf.m4: Likewise.
51175         * m4/printf-frexpl.m4: Likewise.
51176         * m4/vasnprintf.m4: Likewise.
51177         * modules/allocsa (Files): Remove m4/longdouble.m4.
51178         * modules/gettext (Files): Likewise.
51179         * modules/relocatable-prog-wrapper (Files): Likewise.
51180         * modules/vasnprintf (Files): Likewise.
51181         * modules/isnanl (Files): Likewise.
51182         (Include): Simplify.
51183         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51184         (Include): Simplify.
51185         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51186         (Include): Simplify.
51187         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51188         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51189         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51190         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51191         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51192         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51193         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51194         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51195         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51196         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51197         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51198         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51199         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51200         * tests/test-isnanl.c: Likewise.
51201         * tests/test-snprintf-posix.h: Likewise.
51202         * tests/test-sprintf-posix.h: Likewise.
51203         * tests/test-vasnprintf-posix.c: Likewise.
51204         * tests/test-vasnprintf-posix2.c: Likewise.
51205         * tests/test-vasprintf-posix.c: Likewise.
51206
51207 2007-04-06  Bruno Haible  <bruno@clisp.org>
51208
51209         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51210         * lib/math_.h [__DECC]: Include the overridden include file through
51211         #include_next, outside the double-inclusion guard.
51212         * lib/stdio_.h [__DECC]: Likewise.
51213         * lib/stdlib_.h [__DECC]: Likewise.
51214         * lib/string_.h [__DECC]: Likewise.
51215         * lib/time_.h [__DECC]: Likewise.
51216         * lib/wchar_.h [__DECC]: Likewise.
51217         * lib/wctype_.h [__DECC]: Likewise.
51218         * lib/inttypes_.h [__DECC]: Likewise.
51219         Reported by Albert Chin <china@thewrittenword.com> in
51220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51221
51222 2007-04-04  Eric Blake  <ebb9@byu.net>
51223
51224         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51225         1.5.x.
51226
51227 2007-04-04  Bruno Haible  <bruno@clisp.org>
51228
51229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51230         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51231
51232 2007-04-04  Bruno Haible  <bruno@clisp.org>
51233
51234         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51235         results for "%010a" of Infinity and NaN.
51236         * tests/test-vasprintf-posix.c (test_function): Likewise.
51237         * tests/test-snprintf-posix.h (test_function): Likewise.
51238         * tests/test-sprintf-posix.h (test_function): Likewise.
51239         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51240         * tests/test-printf-posix.h (test_function): Likewise.
51241         * tests/test-fprintf-posix.out: Update.
51242         Needed for FreeBSD 6.1.
51243
51244 2007-04-04  Bruno Haible  <bruno@clisp.org>
51245
51246         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51247         directly used by the gnulib modules nor by gnulib-tool.
51248
51249 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51250
51251         * DEPENDENCIES: Give overall description of version dependency
51252         desirability.  Use more-typical names for apps.
51253         Add shell, coreutils, diffutils, grep, tar, gzip.
51254
51255 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51256
51257         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51258
51259 2007-04-04  Karl Berry  <karl@gnu.org>
51260
51261         * MODULES.html.sh (func_module): missing '.
51262
51263 2007-04-03  Bruno Haible  <bruno@clisp.org>
51264
51265         * modules/argmatch-tests (Makefile.am): New variable
51266         test_argmatch_LDADD.
51267         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51268         * modules/array-list-tests (Makefile.am): New variable
51269         test_array_list_LDADD.
51270         * modules/array-oset-tests (Makefile.am): New variable
51271         test_array_oset_LDADD.
51272         * modules/avltree-list-tests (Makefile.am): New variable
51273         test_avltree_list_LDADD.
51274         * modules/avltree-oset-tests (Makefile.am): New variable
51275         test_avltree_oset_LDADD.
51276         * modules/avltreehash-list-tests (Makefile.am): New variable
51277         test_avltreehash_list_LDADD.
51278         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51279         test_canonicalize_lgpl_LDADD.
51280         * modules/carray-list-tests (Makefile.am): New variable
51281         test_carray_list_LDADD.
51282         * modules/dirname-tests (Makefile.am): New variable
51283         test_dirname_LDADD.
51284         * modules/linked-list-tests (Makefile.am): New variable
51285         test_linked_list_LDADD.
51286         * modules/linkedhash-list-tests (Makefile.am): New variable
51287         test_linkedhash_list_LDADD.
51288         * modules/rbtree-list-tests (Makefile.am): New variable
51289         test_rbtree_list_LDADD.
51290         * modules/rbtree-oset-tests (Makefile.am): New variable
51291         test_rbtree_oset_LDADD.
51292         * modules/rbtreehash-list-tests (Makefile.am): New variable
51293         test_rbtreehash_list_LDADD.
51294         * modules/xvasprintf-tests (Makefile.am): New variable
51295         test_xvasprintf_LDADD.
51296         Reported by Eric Blake.
51297
51298 2007-04-03  Eric Blake  <ebb9@byu.net>
51299
51300         * DEPENDENCIES: Weaken m4 requirements.
51301
51302 2007-04-03  Bruno Haible  <bruno@clisp.org>
51303
51304         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51305         * modules/isnanl-tests (configure.ac): Likewise.
51306
51307 2007-04-03  Ben Pfaff  <blp@gnu.org>
51308
51309         * modules/iconv_open: Add $(srcdir)/ to source directory
51310         references in Makefile fragments that call gperf, to fix VPATH
51311         builds.
51312
51313 2007-04-03  Bruno Haible  <bruno@clisp.org>
51314
51315         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51316         * lib/ldexpl.c: Undo last change.
51317
51318 2007-04-03  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/printf-frexpl (Depends-on): Undo last change.
51321         (Files): Add m4/ldexpl.m4.
51322
51323 2007-04-03  Bruno Haible  <bruno@clisp.org>
51324
51325         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51326         * modules/isnanl (Link): New section.
51327
51328         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51329         * modules/frexp (Link): New section.
51330
51331         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51332         * modules/frexpl (Link): New section.
51333
51334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51335         * modules/ldexpl (Link): New section.
51336
51337 2007-04-03  Bruno Haible  <bruno@clisp.org>
51338
51339         * modules/TEMPLATE-EXTENDED: New file.
51340         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51341
51342 2007-04-03  Bruno Haible  <bruno@clisp.org>
51343
51344         * DEPENDENCIES: New file.
51345         Suggested by Simon Josefsson.
51346
51347 2007-04-03  Bruno Haible  <bruno@clisp.org>
51348
51349         * doc/gnulib.texi: Escape @.
51350
51351 2007-04-03  James Youngman  <jay@gnu.org>
51352         and Paul Eggert  <eggert@cs.ucla.edu>
51353
51354         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51355         birthtime on all systems that have birthtime, not just those which
51356         use st_birthtimensec rather than st_birthtim.  Putting zero in
51357         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51358         that the birth time is not available for files on an NFS mount.
51359
51360 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51361
51362         * modules/memxor: Move back from crypto/, suggested by Bruno.
51363         * modules/crypto/hmac-sha1: Fix memxor dependency.
51364
51365         * modules/crypto/gc: Moved from ../.
51366
51367 2007-04-02  Eric Blake  <ebb9@byu.net>
51368
51369         * lib/ldexpl.c (includes): Avoid libm.
51370
51371         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51372
51373 2007-04-02  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51376         on IRIX.
51377
51378 2007-04-02  Bruno Haible  <bruno@clisp.org>
51379
51380         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51381         x86 or x86_64 platforms running MacOS X.
51382         Reported by Ryan Schmidt <@ryandesign.com>.
51383
51384 2007-04-02  Bruno Haible  <bruno@clisp.org>
51385
51386         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51387         i386.
51388
51389 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51390
51391         * modules/crypto/arcfour: Moved from ../.
51392         * modules/crypto/arcfour-tests: Moved from ../.
51393         * modules/crypto/arctwo: Moved from ../.
51394         * modules/crypto/arctwo-tests: Moved from ../.
51395         * modules/crypto/des: Moved from ../.
51396         * modules/crypto/des-tests: Moved from ../.
51397         * modules/crypto/gc-arcfour: Moved from ../.
51398         * modules/crypto/gc-arcfour-tests: Moved from ../.
51399         * modules/crypto/gc-arctwo: Moved from ../.
51400         * modules/crypto/gc-arctwo-tests: Moved from ../.
51401         * modules/crypto/gc-des: Moved from ../.
51402         * modules/crypto/gc-des-tests: Moved from ../.
51403         * modules/crypto/gc-hmac-md5: Moved from ../.
51404         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51405         * modules/crypto/gc-hmac-sha1: Moved from ../.
51406         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51407         * modules/crypto/gc-md2: Moved from ../.
51408         * modules/crypto/gc-md2-tests: Moved from ../.
51409         * modules/crypto/gc-md4: Moved from ../.
51410         * modules/crypto/gc-md4-tests: Moved from ../.
51411         * modules/crypto/gc-md5: Moved from ../.
51412         * modules/crypto/gc-md5-tests: Moved from ../.
51413         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51414         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51415         * modules/crypto/gc-random: Moved from ../.
51416         * modules/crypto/gc-rijndael: Moved from ../.
51417         * modules/crypto/gc-rijndael-tests: Moved from ../.
51418         * modules/crypto/gc-sha1: Moved from ../.
51419         * modules/crypto/gc-sha1-tests: Moved from ../.
51420         * modules/crypto/gc-tests: Moved from ../.
51421         * modules/crypto/hmac-md5: Moved from ../.
51422         * modules/crypto/hmac-md5-tests: Moved from ../.
51423         * modules/crypto/hmac-sha1: Moved from ../.
51424         * modules/crypto/hmac-sha1-tests: Moved from ../.
51425         * modules/crypto/md2: Moved from ../.
51426         * modules/crypto/md2-tests: Moved from ../.
51427         * modules/crypto/md4: Moved from ../.
51428         * modules/crypto/md4-tests: Moved from ../.
51429         * modules/crypto/md5: Moved from ../.
51430         * modules/crypto/md5-tests: Moved from ../.
51431         * modules/crypto/memxor: Moved from ../.
51432         * modules/crypto/rijndael: Moved from ../.
51433         * modules/crypto/rijndael-tests: Moved from ../.
51434         * modules/crypto/sha1: Moved from ../.
51435
51436 2007-03-30  James Youngman  <jay@gnu.org>
51437
51438         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51439         rename() to change the ctime of a file (because ctime is unaffected
51440         by rename on jfs2 on AIX 5.1).
51441         (main): Start by doing cleanup, in case a previous run failed leaving
51442         test files behind.
51443
51444 2007-03-31  Bruno Haible  <bruno@clisp.org>
51445
51446         Support old proprietary implementations of iconv.
51447         * modules/iconv_open: New file.
51448         * lib/iconv_.h: New file.
51449         * m4/iconv_h.m4: New file.
51450         * lib/iconv_open.c: New file.
51451         * lib/iconv_open-aix.gperf: New file.
51452         * lib/iconv_open-hpux.gperf: New file.
51453         * lib/iconv_open-irix.gperf: New file.
51454         * lib/iconv_open-osf.gperf: New file.
51455         * m4/iconv_open.m4: New file.
51456         * modules/linebreak (Depends-on): Add iconv_open.
51457         * modules/striconv (Depends-on): Likewise.
51458         * modules/striconveh (Depends-on): Likewise.
51459         * modules/unicodeio (Depends-on): Likewise.
51460         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51461         (iconv_t)(-1).
51462         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51463         conversion if cd is (iconv_t)(-1).
51464         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51465         is not possible.
51466
51467 2007-03-31  Bruno Haible  <bruno@clisp.org>
51468
51469         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51470         work on Solaris either. Protect also second use of "autodetect_jp".
51471
51472 2007-03-31  Bruno Haible  <bruno@clisp.org>
51473
51474         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51475         the function is not present.
51476
51477 2007-03-31  Bruno Haible  <bruno@clisp.org>
51478
51479         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51480         the function is not present.
51481
51482 2007-03-31  Bruno Haible  <bruno@clisp.org>
51483
51484         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51485         a bug in HP-UX iconv_open().
51486
51487 2007-03-31  Bruno Haible  <bruno@clisp.org>
51488
51489         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51490         (Mathematics <math.h>): New section, add fpieee.
51491         (Input/output <stdio.h>): Add fseterr.
51492         (Mathematics <math.h>): New section, add printf-frexp.
51493         (Container data structures): Add sublist.
51494         (Core language properties): Add fpucw, inline.
51495         (Functions for greatest-width integer types <inttypes.h>): Add
51496         imaxabs, imaxdiv, inttypes.
51497         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51498         isnanl-nolibm, ldexp.
51499         (Mathematics <math.h>): New section, add printf-frexpl.
51500         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51501         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51502         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51503         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51504         (Unicode string functions): Add unistr/u*-mbtoucr.
51505         (Java): Add javacomp-script, javaexec-script.
51506         (C#): Add csharpcomp-script, csharpexec-script.
51507         (Support for building libraries and executables): Add havelib,
51508         relocatable-*.
51509         (Support for maintaining and releasing projects): Renamed from
51510         'Support for maintaining and release projects'. Add announce-gen.
51511
51512 2007-03-31  Bruno Haible  <bruno@clisp.org>
51513
51514         * README: Talk primarily about git.
51515         (git and CVS): Renamed from CVS.
51516         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51517         gnulib is available through git.
51518         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51519
51520 2007-03-30  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51523         * lib/poll_.h: Likewise.
51524         * lib/stat_.h: Likewise.
51525         * lib/sys_time_.h: Likewise.
51526         * lib/sysexit_.h: Likewise.
51527         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51528         * lib/stdbool_.h: Likewise.
51529         * lib/byteswap_.h: Add double-inclusion guard.
51530
51531 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51532
51533         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51534
51535 2007-03-30  Karl Berry  <karl@gnu.org>
51536
51537         * config/srclist-update: double space after USA in the license
51538         substitution, since that's how it's usually (?) written.
51539
51540 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51543         reported by Bruno Haible.
51544
51545 2007-03-29  Bruno Haible  <bruno@clisp.org>
51546
51547         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51548         a bug in AIX iconv().
51549
51550 2007-03-29  Bruno Haible  <bruno@clisp.org>
51551
51552         * modules/ldexpl-tests: New file.
51553         * tests/test-ldexpl.c: New file.
51554
51555 2007-03-29  Bruno Haible  <bruno@clisp.org>
51556
51557         * lib/ldexpl.c: Include fpucw.h.
51558         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51559         multiplication.
51560         * modules/ldexpl (Depends-on): Add fpucw.
51561
51562 2007-03-29  Bruno Haible  <bruno@clisp.org>
51563
51564         * modules/ldexpl: New file.
51565         * m4/ldexpl.m4: New file.
51566         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51567         set.
51568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51569         REPLACE_LDEXPL.
51570         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51571         REPLACE_LDEXPL.
51572         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51573         gl_FUNC_LDEXPL_WORKS.
51574         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51575         * modules/mathl (Files): Remove lib/ldexpl.c.
51576         (Depends-on): Add ldexpl.
51577
51578 2007-03-29  Bruno Haible  <bruno@clisp.org>
51579
51580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51581
51582 2007-03-29  Bruno Haible  <bruno@clisp.org>
51583
51584         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51585         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51586         and possibly also HP-UX.
51587         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51588         work on AIX, IRIX, HP-UX, OSF/1.
51589         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51590         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51591         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51592         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51593         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51594         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51595
51596 2007-03-29  Bruno Haible  <bruno@clisp.org>
51597
51598         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51599
51600 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51603         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51604
51605 2007-03-29  Eric Blake  <ebb9@byu.net>
51606
51607         * lib/acl-internal.h: Remove redundant include.
51608         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51609         Cygwin when a file is locked.
51610
51611 2007-03-29  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51614         file.
51615         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51616
51617 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51618
51619         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51620         try to remove a parent directory if the child couldn't be removed
51621         (except for the first rmdir, which could fail because the child
51622         doesn't exist).  Problem reported by Jeff Blaine in
51623         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51624
51625 2007-03-28  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/striconveh.c (utf8conv_carefully): New function.
51628         (mem_cd_iconveh_internal): Invoke it.
51629
51630 2007-03-28  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51633         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51634         input.
51635         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51636         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51637         unistr/u8-uctomb.
51638
51639 2007-03-28  Bruno Haible  <bruno@clisp.org>
51640
51641         * modules/unistr/u8-mbtoucr: New file.
51642         * lib/unistr/u8-mbtoucr.c: New file.
51643         * modules/unistr/u16-mbtoucr: New file.
51644         * lib/unistr/u16-mbtoucr.c: New file.
51645         * modules/unistr/u16-mbtoucr: New file.
51646         * lib/unistr/u16-mbtoucr.c: New file.
51647         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51648
51649 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51650             Bruno Haible  <bruno@clisp.org>
51651
51652         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51653         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51654         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51655
51656         * m4/stdio_h.m4: Add stubs for vasprintf too.
51657
51658         * modules/stdio: Support vasprintf in sed command.
51659
51660         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51661         vasprintf.h.  Add stdio module indicator.
51662
51663         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51664         vasprintf.h.
51665
51666         * lib/vasprintf.h: File removed.
51667
51668         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51669         * lib/vasprintf.c: Ditto.
51670         * lib/xvasprintf.c: Ditto.
51671         * tests/test-vasprintf-posix.c: Ditto.
51672         * tests/test-vasprintf.c: Ditto.
51673
51674 2007-03-27  Bruno Haible  <bruno@clisp.org>
51675
51676         Make vasnprintf multithread-safe.
51677         * lib/vasnprintf.c (decimal_point_char): New function.
51678         (VASNPRINTF): Use it.
51679         Suggested by Simon Josefsson.
51680
51681 2007-03-27  Eric Blake  <ebb9@byu.net>
51682
51683         Support sub-second birthtime on cygwin.
51684         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51685         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51686         (get_stat_birthtime): Also work with st_birthtim.
51687
51688 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51689
51690         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51691         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51692         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51693         (get_stat_birthtime_ns): Simplify compile-time tests.
51694         (get_stat_birthtime): Change the API to look like
51695         get_stat_mtime etc., except return a negative tv_nsec on error.
51696         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51697         Don't check for "spare" fields.
51698         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51699         or for struct stat.st_birthtime, as these tests aren't used.
51700         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51701
51702 2007-03-27  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/stat-time.h: Include <sys/stat.h>.
51705
51706 2007-03-27  James Youngman  <jay@gnu.org>
51707
51708         * lib/stat-time.h (get_stat_birthtime): New function for
51709           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51710         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51711           and its variants.
51712         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51713         * modules/stat-time-test: New file.
51714         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51715
51716 2007-03-26  Bruno Haible  <bruno@clisp.org>
51717
51718         Better support of signalling NaNs.
51719         * lib/atanl.c: Include isnanl.h.
51720         (atanl): Perform test for NaN at the beginning of the function and
51721         through a call to isnanl.
51722         * lib/cosl.c: Include isnanl.h.
51723         (cosl): Perform test for NaN at the beginning of the function and
51724         through a call to isnanl.
51725         * lib/ldexpl.c: Include isnanl.h.
51726         (ldexpl): Perform test for NaN through a call to isnanl.
51727         * lib/logl.c: Include isnanl.h.
51728         (logl): Perform test for NaN at the beginning of the function and
51729         through a call to isnanl.
51730         * lib/sinl.c: Include isnanl.h.
51731         (sinl): Perform test for NaN at the beginning of the function and
51732         through a call to isnanl.
51733         * lib/sqrtl.c: Include isnanl.h.
51734         (sqrtl): Perform test for NaN at the beginning of the function and
51735         through a call to isnanl.
51736         * lib/tanl.c: Include isnanl.h.
51737         (tanl): Perform test for NaN at the beginning of the function and
51738         through a call to isnanl.
51739         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51740         * modules/mathl (Depends-on): Add isnanl.
51741
51742 2007-03-26  Eric Blake  <ebb9@byu.net>
51743
51744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51745         regression in logic sense of previous patch.
51746
51747 2007-03-26  Bruno Haible  <bruno@clisp.org>
51748
51749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51750         unportable shell command "if ! ...".
51751         Reported by Ralf Wildenhues.
51752
51753 2007-03-25  Bruno Haible  <bruno@clisp.org>
51754
51755         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51756         <sysexits.h> file, and only add EX_CONFIG.
51757         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51758         absolute file name and whether it is sufficient. Substitute also
51759         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51760         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51761         ABSOLUTE_SYSEXITS_H into sysexits.h.
51762
51763 2007-03-25  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51766         hints is NULL.
51767
51768 2007-03-25  Bruno Haible  <bruno@clisp.org>
51769
51770         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51771         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51772
51773 2007-03-25  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/vasnprintf.c: Include langinfo.h.
51776         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51777         multithread-safe.
51778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51780         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51781         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51782         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51783         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51784         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51785         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51786         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51787         Reported by Simon Josefsson.
51788
51789 2007-03-25  Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51792         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51793         * modules/vasnprintf (Depends-on): Add stdint.
51794
51795 2007-03-25  Bruno Haible  <bruno@clisp.org>
51796
51797         * modules/fpieee: New file.
51798         * m4/fpieee.m4: New file.
51799         * modules/isnan-nolibm (Depends-on): Add fpieee.
51800         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51801         * modules/isnanl (Depends-on): Add fpieee.
51802
51803 2007-03-25  Bruno Haible  <bruno@clisp.org>
51804
51805         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51806
51807 2007-03-25  Bruno Haible  <bruno@clisp.org>
51808
51809         Avoid test failures on IRIX 6.5.
51810         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51811         (main): Use it.
51812         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51813         macros.
51814         (main): Use them.
51815
51816 2007-03-25  Bruno Haible  <bruno@clisp.org>
51817
51818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51819         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51820         exists but doesn't work.
51821         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51822         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51824         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51825         math.h.
51826
51827 2007-03-25  Bruno Haible  <bruno@clisp.org>
51828
51829         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51830         returns inf. Needed on IRIX 6.5.
51831
51832 2007-03-25  Bruno Haible  <bruno@clisp.org>
51833
51834         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51835         (main): Use isnanl instead of x != x idiom.
51836         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51837
51838         * tests/test-frexp.c: Include isnan.h.
51839         (main): Use isnan instead of x != x idiom.
51840         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51841
51842 2007-03-25  Bruno Haible  <bruno@clisp.org>
51843
51844         * tests/test-frexp.c (NaN): New function/macro.
51845         (main): Use it instead of 0.0 / 0.0.
51846         * tests/test-isnan.c (NaN): New function/macro.
51847         (main): Use it instead of 0.0 / 0.0.
51848         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51849         (test_function): Use it instead of 0.0 / 0.0.
51850         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51851         (test_function): Use it instead of 0.0 / 0.0.
51852         * tests/test-snprintf-posix.h (NaN): New function/macro.
51853         (test_function): Use it instead of 0.0 / 0.0.
51854         * tests/test-sprintf-posix.h (NaN): New function/macro.
51855         (test_function): Use it instead of 0.0 / 0.0.
51856         * tests/test-fprintf-posix.h (NaN): New function/macro.
51857         (test_function): Use it instead of 0.0 / 0.0.
51858         * tests/test-printf-posix.h (NaN): New function/macro.
51859         (test_function): Use it instead of 0.0 / 0.0.
51860
51861         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51862
51863 2007-03-25  Bruno Haible  <bruno@clisp.org>
51864
51865         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51866
51867 2007-03-25  Bruno Haible  <bruno@clisp.org>
51868
51869         * lib/regexec.c (merge_state_with_log): Make static.
51870
51871 2007-03-25  Bruno Haible  <bruno@clisp.org>
51872
51873         * lib/trigl.c (kernel_rem_pio2): Make static.
51874
51875 2007-03-25  Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/sincosl.c (sincosl_table): Make static.
51878
51879 2007-03-25  Bruno Haible  <bruno@clisp.org>
51880
51881         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51882         if the compiler does not support C99.
51883
51884 2007-03-25  Bruno Haible  <bruno@clisp.org>
51885
51886         * modules/time (Makefile.am): Ensure all rule action lines start with a
51887         tab.
51888
51889 2007-03-24  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/tsearch-tests: New file.
51892         * tests/test-tsearch.sh: New file.
51893         * tests/test-tsearch.c: New file, mostly copied from glibc.
51894
51895         * modules/search-tests: New file.
51896         * tests/test-search.c: New file.
51897
51898         * modules/search: New file.
51899         * lib/search_.h: New file, incorporating lib/tsearch.h.
51900         * m4/search_h.m4: New file.
51901         * lib/tsearch.h: Remove file.
51902         * lib/tsearch.c: Include search.h instead of tsearch.h.
51903         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51904         HAVE_TSEARCH.
51905         * modules/tsearch (Files): Remove lib/tsearch.h.
51906         (Depends-on): Add search.
51907         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51908         (Include): Change tsearch.h into search.h.
51909
51910 2007-03-24  Bruno Haible  <bruno@clisp.org>
51911
51912         * modules/fpucw: New file.
51913         * lib/fpucw.h: New file.
51914         * lib/frexp.c: Include fpucw.h.
51915         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51916         (FUNC): Use them.
51917         * lib/printf-frexp.c: Include fpucw.h.
51918         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51919         (FUNC): Use them.
51920         * lib/vasnprintf.c: Include fpucw.h.
51921         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51922         'long double' calculations.
51923         * tests/test-frexpl.c: Include fpucw.h.
51924         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51925         * tests/test-printf-frexpl.c: Include fpucw.h.
51926         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51927         * modules/frexpl (Depends-on): Add fpucw.
51928         * modules/printf-frexpl (Depends-on): Likewise.
51929         * modules/fprintf-posix (Depends-on): Likewise.
51930         * modules/snprintf-posix (Depends-on): Likewise.
51931         * modules/sprintf-posix (Depends-on): Likewise.
51932         * modules/vasnprintf-posix (Depends-on): Likewise.
51933         * modules/vasprintf-posix (Depends-on): Likewise.
51934         * modules/vfprintf-posix (Depends-on): Likewise.
51935         * modules/vsnprintf-posix (Depends-on): Likewise.
51936         * modules/vsprintf-posix (Depends-on): Likewise.
51937         * modules/frexpl-tests (Depends-on): Likewise.
51938         * modules/printf-frexpl-tests (Depends-on): Likewise.
51939
51940 2007-03-24  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/float+.h: New file.
51943         * lib/isnan.c: Include float+.h.
51944         (SIZE): New macro.
51945         (FUNC): Compare only SIZE bytes of the value.
51946         * lib/vasnprintf.c: Include float+.h.
51947         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51948         SIZEOF_LDBL or SIZEOF_DBL bytes.
51949         * modules/isnan-nolibm (Files): Add lib/float+.h.
51950         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51951         * modules/isnanl (Files): Add lib/float+.h.
51952         * modules/vasnprintf (Files): Add lib/float+.h.
51953
51954 2007-03-24  Bruno Haible  <bruno@clisp.org>
51955
51956         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51957         include isnanl-nolibm.h.
51958
51959 2007-03-24  Bruno Haible  <bruno@clisp.org>
51960
51961         * tests/test-read-file.c (main): Don't produce spurious output for
51962         expected situations. Make the test fail if it encountered unexpected
51963         results.
51964
51965 2007-03-24  Bruno Haible  <bruno@clisp.org>
51966
51967         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51968         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51969
51970 2007-03-24  Bruno Haible  <bruno@clisp.org>
51971
51972         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51973
51974 2007-03-24  Bruno Haible  <bruno@clisp.org>
51975
51976         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51977         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51978
51979         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51980         * modules/utf8-ucs4: Turn into a symbolic link to module
51981         unistr/u8-mbtouc.
51982
51983         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51984         utf8-ucs4-unsafe.
51985         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51986         unistr/u8-mbtouc-unsafe.
51987
51988         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51989         * modules/utf16-ucs4: Turn into a symbolic link to module
51990         unistr/u16-mbtouc.
51991
51992         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51993         utf16-ucs4-unsafe.
51994         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51995         unistr/u16-mbtouc-unsafe.
51996
51997         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51998         * modules/ucs4-utf8: Turn into a symbolic link to module
51999         unistr/u8-ubtomb.
52000
52001         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52002         * modules/ucs4-utf16: Turn into a symbolic link to module
52003         unistr/u16-ubtomb.
52004
52005 2007-03-24  Bruno Haible  <bruno@clisp.org>
52006
52007         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52008         Enable the function only if HAVE_INLINE.
52009         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52010         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52011         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52012         Enable the function only if HAVE_INLINE.
52013         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52014         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52015         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52016         Enable the function only if HAVE_INLINE.
52017         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52018         Enable the function only if HAVE_INLINE.
52019         * modules/utf8-ucs4: Update.
52020         * modules/utf8-ucs4-unsafe: Update.
52021         * modules/utf16-ucs4: Update.
52022         * modules/utf16-ucs4-unsafe: Update.
52023         * modules/ucs4-utf8: Update.
52024         * modules/ucs4-utf16: Update.
52025
52026 2007-03-24  Bruno Haible  <bruno@clisp.org>
52027
52028         * lib/utf8-ucs4.h: Remove file.
52029         * lib/utf8-ucs4-unsafe.h: Remove file.
52030         * lib/utf16-ucs4.h: Remove file.
52031         * lib/utf16-ucs4-unsafe.h: Remove file.
52032         * lib/ucs4-utf8.h: Remove file.
52033         * lib/ucs4-utf16.h: Remove file.
52034         * lib/unistr.h: Include their previous contents.
52035         * m4/utf-ucs4.m4: Remove file.
52036         * m4/ucs4-utf.m4: Remove file.
52037         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52038         (Depends-on): Add unistr/base.
52039         (configure.ac): Remove gl_UTF_UCS4.
52040         (Makefile.am): Update.
52041         (Include): Change to unistr.h.
52042         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52043         (Depends-on): Add unistr/base.
52044         (configure.ac): Remove gl_UTF_UCS4.
52045         (Makefile.am): Update.
52046         (Include): Change to unistr.h.
52047         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52048         (Depends-on): Add unistr/base.
52049         (configure.ac): Remove gl_UTF_UCS4.
52050         (Makefile.am): Update.
52051         (Include): Change to unistr.h.
52052         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52053         (Depends-on): Add unistr/base.
52054         (configure.ac): Remove gl_UTF_UCS4.
52055         (Makefile.am): Update.
52056         (Include): Change to unistr.h.
52057         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52058         (Depends-on): Add unistr/base.
52059         (configure.ac): Remove gl_UCS4_UTF.
52060         (Makefile.am): Update.
52061         (Include): Change to unistr.h.
52062         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52063         (Depends-on): Add unistr/base.
52064         (configure.ac): Remove gl_UCS4_UTF.
52065         (Makefile.am): Update.
52066         (Include): Change to unistr.h.
52067         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52068         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52069         utf8-ucs4-unsafe.h.
52070         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52071         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52072         utf16-ucs4-unsafe.h.
52073         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52074         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52075         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52076         * lib/unistr/u8-strchr.c: Likewise.
52077         * lib/unistr/u8-strrchr.c: Likewise.
52078         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52079         * lib/unistr/u16-strchr.c: Likewise.
52080         * lib/unistr/u16-strrchr.c: Likewise.
52081         * lib/striconveh.c: Update.
52082         * lib/linebreak.c: Update.
52083
52084 2007-03-24  Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52087         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52088
52089 2007-03-22  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52092
52093 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         * MODULES.html.sh (File system functions): New module write-any-file.
52096         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52097         * m4/write-any-file.m4: New files.
52098
52099 2007-03-23  Eric Blake  <ebb9@byu.net>
52100
52101         * gnulib-tool: Rearrange space-tab sequences, since some editors
52102         like to eat them.
52103
52104 2007-03-23  Eric Blake  <ebb9@byu.net>
52105
52106         * lib/version-etc.c (version_etc_va): Update license wording to
52107         be more concise.  Recommended by Richard Stallman.
52108
52109 2007-03-22  Bruno Haible  <bruno@clisp.org>
52110
52111         * lib/poll.c (MSG_PEEK): New fallback definition.
52112
52113 2007-03-22  Bruno Haible  <bruno@clisp.org>
52114
52115         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52116         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52117         (main): Update.
52118         Fixes a compilation error on BeOS.
52119
52120 2007-03-22  Bruno Haible  <bruno@clisp.org>
52121
52122         * modules/frexpl-tests: New file.
52123         * tests/test-frexpl.c: New file.
52124
52125         * modules/frexpl: New file.
52126         * m4/frexpl.m4: New file.
52127         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52128         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52130         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52131         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52132         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52133
52134 2007-03-22  Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/frexpl.c: Share code with lib/frexp.c.
52137         * modules/mathl (Files): Add lib/frexp.c.
52138         (Depends-on): Add isnanl-nolibm.
52139
52140 2007-03-22  Bruno Haible  <bruno@clisp.org>
52141
52142         * modules/printf-frexp (Files): Add m4/frexp.m4.
52143         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52144         only if the found frexp function actually works.
52145
52146 2007-03-22  Bruno Haible  <bruno@clisp.org>
52147
52148         * lib/frexp.c: Remove older implementation that uses divisions.
52149
52150 2007-03-21  Bruno Haible  <bruno@clisp.org>
52151
52152         * modules/frexp-tests: New file.
52153         * tests/test-frexp.c: New file.
52154
52155         * modules/frexp: New file.
52156         * lib/frexp.c: New file.
52157         * m4/frexp.m4: New file.
52158         * lib/math_.h (frexp): New declaration.
52159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52160         REPLACE_FREXP.
52161         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52162
52163 2007-03-21  Bruno Haible  <bruno@clisp.org>
52164
52165         * modules/isnanl-tests: New file.
52166         * tests/test-isnanl.c: New file.
52167
52168         * modules/isnanl: New file.
52169         * lib/isnanl.h: New file.
52170         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52171         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52172         gl_FUNC_ISNANL_WORKS.
52173         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52174         New macros.
52175
52176 2007-03-21  Bruno Haible  <bruno@clisp.org>
52177
52178         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52179         lib/isnanl.h.
52180         (Include): Update.
52181         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52182         * lib/vasnprintf.c: Update.
52183         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52184         tests/test-isnanl.h, remove tests/test-isnanl.c.
52185         (Makefile.am): Update.
52186         * tests/test-isnanl-nolibm.c: New file.
52187         * tests/test-isnanl.h: New file.
52188         * tests/test-isnanl.c: Remove file.
52189
52190 2007-03-21  Jim Meyering  <jim@meyering.net>
52191
52192         When trying to open ".", treat ESTALE like EACCES.
52193         * lib/savewd.c (savewd_save): Resort to forking not just upon
52194         failure with EACCES, but also when errno is ESTALE.
52195
52196 2007-03-20  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52199         Needed on AIX 5.1. Reported by Matthew Woehlke.
52200
52201 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         Suggestions by Bruno Haible:
52204         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52205         our own.
52206         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52207         * modules/acl (Depends-on): Add gettext.
52208
52209 2007-03-19  Bruno Haible  <bruno@clisp.org>
52210
52211         * modules/iconvme: Remove file.
52212         * lib/iconvme.h: Remove file.
52213         * lib/iconvme.c: Remove file.
52214         * m4/iconvme.m4: Remove file.
52215
52216 2007-03-19  Bruno Haible  <bruno@clisp.org>
52217
52218         * doc/relocatable-maint.texi: Break long shell script line.
52219         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52220
52221 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52222
52223         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52224         handle file_has_acl.
52225         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52226         * lib/acl.c: Move header inclusions and related macro defns into
52227         lib/acl-internal.h.
52228         (S_ISLNK): Remove defn, since that's now done for us.
52229         (file_has_acl): Move to lib/file-has-acl.c.
52230         Call acl_trivial if available.  This is the crucial part of the fix.
52231         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52232         shared within the library.  Rewrite a bit, partly to make it compatible
52233         with the GNU coding style.
52234         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52235         Remove unnecessary double-quotes.
52236         Don't test for acl_to_text; the build will catch that.
52237         Replace acl_entries if it doesn't exist and it is needed.
52238         Check for -lsec and acl_trivial (as used on Solaris 10).
52239         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52240         lib/file-has-acl.c.
52241         (Depends-on): Add sys_stat, for S_ISLNK.
52242
52243 2007-03-19  Ben Pfaff  <blp@gnu.org>
52244
52245         * doc/gnulib.texi: Fix typos.
52246         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52247
52248 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52249
52250         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52251         If size is zero here, buf must be zero.
52252
52253 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52254
52255         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52256         <bruno@clisp.org>.
52257
52258 2007-03-18  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52261         Suggested by Eric Blake.
52262
52263 2007-03-18  Ben Pfaff  <blp@gnu.org>
52264
52265         * doc/relocatable.texi: Recommend using as prefix a directory
52266         that does not exist and will never be created.  Based on
52267         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52268         and others.
52269
52270 2007-03-17  Bruno Haible  <bruno@clisp.org>
52271
52272         * lib/fchownat.c: Include lchown.h.
52273
52274 2007-03-17  Bruno Haible  <bruno@clisp.org>
52275
52276         Fix endless loop when the given allocated size was > INT_MAX.
52277         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52278         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52279         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52280         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52281         * lib/sprintf.c (sprintf): Likewise.
52282
52283 2007-03-17  Bruno Haible  <bruno@clisp.org>
52284
52285         * tests/test-argp-2.sh (func_compare): Output a context diff.
52286
52287 2007-03-17  Bruno Haible  <bruno@clisp.org>
52288
52289         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52290         locale's decimal-point character.
52291
52292 2007-03-17  Bruno Haible  <bruno@clisp.org>
52293
52294         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52295         before comparing it. Needed because on some platforms (e.g. x86) a
52296         'long double' occupies less bytes than sizeof (long double).
52297
52298 2007-03-17  Bruno Haible  <bruno@clisp.org>
52299
52300         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52301         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52302         * tests/test-getaddrinfo.c (simple): Likewise.
52303         * tests/test-read-file.c (main): Likewise.
52304
52305 2007-03-17  Bruno Haible  <bruno@clisp.org>
52306
52307         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52308
52309 2007-03-17  Bruno Haible  <bruno@clisp.org>
52310
52311         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52312         unused variable.
52313
52314 2007-03-17  Bruno Haible  <bruno@clisp.org>
52315
52316         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52317         * tests/test-c-strncasecmp.c: Likewise.
52318
52319 2007-03-17  Bruno Haible  <bruno@clisp.org>
52320
52321         * modules/stdlib (Depends-on): Add unistd.
52322         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52323         Needed for MacOS X 10.3.
52324
52325 2007-03-17  Bruno Haible  <bruno@clisp.org>
52326
52327         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52328
52329 2007-03-17  Bruno Haible  <bruno@clisp.org>
52330
52331         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52332
52333 2007-03-17  Bruno Haible  <bruno@clisp.org>
52334
52335         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52336         to reflect files copied from gnulib (with or without modifications).
52337         Suggested by Jim Meyering.
52338
52339 2007-03-17  Eric Blake  <ebb9@byu.net>
52340
52341         * NEWS: Document stdlib change from 2007-02-18.
52342
52343 2007-03-17  Jim Meyering  <jim@meyering.net>
52344
52345         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52346         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52347         someone uses a name containing shell meta-characters.
52348         Reported by Alfred M. Szmidt.
52349
52350         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52351
52352 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52353
52354         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52355         and copy gettext configuration files only if configure.ac contains
52356         a use of AM_GNU_GETTEXT_VERSION.
52357
52358 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52359
52360         * build-aux/bootstrap (gnulib_name): New variable.
52361         (gnulib_tool_options): Use it.
52362
52363 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52364
52365         * tests/test-des.c: Use new namespace.
52366
52367 2007-03-15  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52370         Reported by James Youngman <jay@gnu.org>.
52371
52372 2007-03-15  Bruno Haible  <bruno@clisp.org>
52373
52374         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52375         declared prototype. Needed with cc on OSF/1 5.1.
52376
52377 2007-03-15  Bruno Haible  <bruno@clisp.org>
52378
52379         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52380         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52381         (struct gl_list_implementation): Add dispose_fn argument to the
52382         'create_empty', 'create' methods.
52383         (struct gl_list_impl_base): Add field 'dispose_fn'.
52384         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52385         argument.
52386         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52387         dispose_fn argument.
52388         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52389         dispose_fn on the dropped values.
52390         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52391         dispose_fn argument.
52392         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52393         dropped values.
52394         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52395         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52396         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52397         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52398         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52399         argument.
52400         (gl_tree_list_free): Call dispose_fn on the dropped values.
52401         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52402         the dropped values.
52403         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52404         Add dispose_fn argument.
52405         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52406         Call dispose_fn on the dropped values.
52407         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52408         Add dispose_fn argument.
52409         (gl_sublist_create): Initialize the 'dispose_fn' field.
52410         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52411         * tests/test-array_list.c (main): Update.
52412         * tests/test-carray_list.c (main): Update.
52413         * tests/test-avltree_list.c (main): Update.
52414         * tests/test-rbtree_list.c (main): Update.
52415         * tests/test-avltreehash_list.c (main): Update.
52416         * tests/test-rbtreehash_list.c (main): Update.
52417         * tests/test-linked_list.c (main): Update.
52418         * tests/test-linkedhash_list.c (main): Update.
52419         * tests/test-array_oset.c (main): Update.
52420
52421 2007-03-15  Bruno Haible  <bruno@clisp.org>
52422
52423         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52424         (gl_oset_create_empty): Add dispose_fn argument.
52425         (struct gl_oset_implementation): Add dispose_fn argument to
52426         'create_empty' method.
52427         (struct gl_oset_impl_base): Add dispose_fn field.
52428         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52429         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52430         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52431         values.
52432         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52433         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52434         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52435         dropped value.
52436         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52437         dropped value.
52438         * tests/test-array_oset.c (main): Update.
52439         * tests/test-avltree_oset.c (main): Update.
52440         * tests/test-rbtree_oset.c (main): Update.
52441         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52442
52443 2007-03-13  Bruno Haible  <bruno@clisp.org>
52444
52445         * tests/test-stdbool.c (i): Update after last patch.
52446
52447 2007-03-12  Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52450         the iswprint macro. Needed on Solaris 2.5.1.
52451
52452 2007-03-12  Bruno Haible  <bruno@clisp.org>
52453
52454         * tests/test-printf-frexp.c (main): Declare x as volatile.
52455
52456 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52457
52458         * doc/gnulib.texi (Build robot for gnulib): New section.
52459
52460 2007-03-12  Jim Meyering  <jim@meyering.net>
52461
52462         * build-aux/bootstrap: New file.
52463         * build-aux/bootstrap.conf: New file, from coreutils.
52464
52465 2007-03-11  Bruno Haible  <bruno@clisp.org>
52466
52467         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52468
52469 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52470
52471         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52472         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52473         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52474
52475 2007-03-11  Bruno Haible  <bruno@clisp.org>
52476
52477         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52478         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52479
52480 2007-03-11  Bruno Haible  <bruno@clisp.org>
52481
52482         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52483         formula. Needed for SunPRO C 5.0.
52484
52485 2007-03-11  Bruno Haible  <bruno@clisp.org>
52486
52487         * modules/long-options (Depends-on): Add getopt.
52488
52489 2007-03-11  Bruno Haible  <bruno@clisp.org>
52490
52491         * modules/modechange (Depends-on): Add stdbool.
52492
52493 2007-03-11  Bruno Haible  <bruno@clisp.org>
52494
52495         * modules/i-ring (Depends-on): Add stdbool.
52496
52497 2007-03-11  Bruno Haible  <bruno@clisp.org>
52498
52499         * modules/gc-des (Depends-on): Add stdbool.
52500
52501 2007-03-11  Bruno Haible  <bruno@clisp.org>
52502
52503         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52504
52505 2007-03-11  Bruno Haible  <bruno@clisp.org>
52506
52507         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52508
52509 2007-03-11  Bruno Haible  <bruno@clisp.org>
52510
52511         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52512
52513 2007-03-11  Bruno Haible  <bruno@clisp.org>
52514
52515         * lib/vasnprintf.c (sprintf): Undefine.
52516
52517 2007-03-11  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52520         initializers in SunPRO C and Compaq C compilers.
52521
52522 2007-03-11  Bruno Haible  <bruno@clisp.org>
52523
52524         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52525         decrementing code ANSI C compliant.
52526
52527 2007-03-11  Bruno Haible  <bruno@clisp.org>
52528
52529         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52530         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52531
52532 2007-03-11  Bruno Haible  <bruno@clisp.org>
52533
52534         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52535         <stdbool.h> substitute doesn't pass.
52536
52537 2007-03-11  Bruno Haible  <bruno@clisp.org>
52538
52539         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52540
52541 2007-03-11  Bruno Haible  <bruno@clisp.org>
52542
52543         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52544         script, for submission to autobuild.josefsson.org.
52545
52546 2007-03-10  Bruno Haible  <bruno@clisp.org>
52547
52548         * modules/canonicalize-lgpl-tests: New file.
52549         * tests/test-canonicalize-lgpl.sh: New file.
52550         * tests/test-canonicalize-lgpl.c: New file.
52551
52552         * modules/c-strcase-tests: New file.
52553         * tests/test-c-strcase.sh: New file.
52554         * tests/test-c-strcasecmp.c: New file.
52555         * tests/test-c-strncasecmp.c: New file.
52556
52557         * modules/atexit-tests: New file.
52558         * tests/test-atexit.sh: New file.
52559         * tests/test-atexit.c: New file.
52560
52561 2007-03-10  Bruno Haible  <bruno@clisp.org>
52562
52563         * tests/test-binary-io.sh: Use temporary filenames that are not so
52564         likely to clash with those of other tests (in a parallel make).
52565         * tests/test-binary-io.c: Likewise.
52566
52567 2007-03-10  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52570         fallback; use #error instead.
52571         Suggested by Simon Josefsson.
52572
52573 2007-03-10  Bruno Haible  <bruno@clisp.org>
52574
52575         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52576         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52577         first and the last.
52578
52579 2007-03-10  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52582
52583 2007-03-10  Bruno Haible  <bruno@clisp.org>
52584
52585         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52586         "make distcheck".
52587         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52588         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52589         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52590
52591 2007-03-10  Bruno Haible  <bruno@clisp.org>
52592
52593         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52594         variable.
52595         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52596         variable.
52597
52598 2007-03-09  Eric Blake  <ebb9@byu.net>
52599         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52600
52601         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52602         types are not being provided by gnulib.
52603         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52604         types are supported.
52605
52606 2007-03-10  Bruno Haible  <bruno@clisp.org>
52607
52608         * lib/stdio_.h (__attribute__): New macro.
52609         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52610         vsprintf): Specify __attribute__ __format__ for GCC.
52611         Suggested by Eric Blake.
52612
52613 2007-03-09  Bruno Haible  <bruno@clisp.org>
52614
52615         * modules/printf-posix-tests: New file.
52616         * tests/test-printf-posix.sh: New file.
52617         * tests/test-printf-posix.c: New file.
52618
52619         * modules/printf-posix: New file.
52620         * lib/printf.c: New file.
52621         * m4/printf-posix-rpl.m4: New file.
52622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52623         REPLACE_PRINTF.
52624         * lib/stdio_.h (printf): New declaration.
52625         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52626         ____strfmon____): New macros.
52627         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52628         REPLACE_PRINTF.
52629
52630 2007-03-09  Bruno Haible  <bruno@clisp.org>
52631
52632         * tests/test-vasnprintf-posix2.sh: New file.
52633         * tests/test-vasnprintf-posix2.c: New file.
52634         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52635         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52636         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52637
52638         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52639         a locale dependent decimal point, rather than always '.'.
52640
52641 2007-03-09  Eric Blake  <ebb9@byu.net>
52642
52643         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52644         spite of platforms like Tandem/NSK that define it to -1.
52645
52646 2007-03-08  Bruno Haible  <bruno@clisp.org>
52647
52648         * modules/vprintf-posix-tests: New file.
52649         * tests/test-vprintf-posix.sh: New file.
52650         * tests/test-vprintf-posix.c: New file.
52651         * tests/test-printf-posix.h: New file.
52652
52653         * modules/vprintf-posix: New file.
52654         * lib/vprintf.c: New file.
52655         * m4/vprintf-posix.m4: New file.
52656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52657         REPLACE_VPRINTF.
52658         * lib/stdio_.h (vprintf): New declaration.
52659         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52660         REPLACE_VPRINTF.
52661
52662 2007-03-08  Bruno Haible  <bruno@clisp.org>
52663
52664         * modules/fprintf-posix-tests: New file.
52665         * tests/test-fprintf-posix.sh: New file.
52666         * tests/test-fprintf-posix.c: New file.
52667
52668         * modules/fprintf-posix: New file.
52669         * lib/fprintf.c: New file.
52670         * m4/fprintf-posix.m4: New file.
52671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52672         REPLACE_FPRINTF.
52673         * lib/stdio_.h (fprintf): New declaration.
52674         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52675         REPLACE_FPRINTF.
52676
52677 2007-03-08  Bruno Haible  <bruno@clisp.org>
52678
52679         * modules/vfprintf-posix-tests: New file.
52680         * tests/test-vfprintf-posix.sh: New file.
52681         * tests/test-vfprintf-posix.c: New file.
52682         * tests/test-fprintf-posix.h: New file.
52683         * tests/test-fprintf-posix.out: New file.
52684
52685         * modules/vfprintf-posix: New file.
52686         * lib/vfprintf.c: New file.
52687         * m4/vfprintf-posix.m4: New file.
52688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52689         REPLACE_VFPRINTF.
52690         * lib/stdio_.h (vfprintf): New declaration.
52691         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52692         REPLACE_VFPRINTF.
52693
52694 2007-03-08  Bruno Haible  <bruno@clisp.org>
52695
52696         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52697
52698 2007-03-08  Bruno Haible  <bruno@clisp.org>
52699
52700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52701         instead of 'expr' invocations.
52702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52703         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52704         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52706         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52707         Suggested by Paul Eggert.
52708
52709 2007-03-08  Bruno Haible  <bruno@clisp.org>
52710
52711         * modules/fseterr-tests: New file.
52712         * tests/test-fseterr.c: New file.
52713
52714         * modules/fseterr: New file.
52715         * lib/fseterr.h: New file.
52716         * lib/fseterr.c: New file.
52717
52718 2007-03-08  Bruno Haible  <bruno@clisp.org>
52719
52720         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52721         * lib/getopt_.h: Likewise.
52722         * lib/mbswidth.h: Likewise.
52723         * lib/setenv.h: Likewise.
52724         * lib/vasnprintf.h: Likewise.
52725         * lib/vasprintf.h: Likewise.
52726         * lib/verror.h: Likewise.
52727         * lib/xsetenv.h: Likewise.
52728         * lib/xvasprintf.h: Likewise.
52729
52730 2007-03-08  Jim Meyering  <jim@meyering.net>
52731
52732         * users.txt: Add parted.
52733
52734         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52735
52736 2007-03-07  Bruno Haible  <bruno@clisp.org>
52737
52738         * m4/printf.m4: Make the shell script snippets copy&pastable.
52739
52740 2007-03-02  Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/netinet_in_.h: New file.
52743         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52744         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52745         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52746         (Depends-on): Add absolute-header.
52747         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52748         into netinet/in.h.
52749
52750 2007-03-03  Bruno Haible  <bruno@clisp.org>
52751
52752         * lib/sys_select_.h: New file.
52753         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52754         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52755         * modules/sys_select (Files): Add lib/sys_select_.h.
52756         (Depends-on): Add absolute-header.
52757         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52758         into sys/select.h.
52759
52760 2007-03-02  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52763         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52764         values.
52765         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52766         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52767         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52768         * modules/sys_socket (Depends-on): Add absolute-header.
52769         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52770         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52771         (Include): Remove requirement of inclusion of <sys/types.h>.
52772
52773 2007-03-02  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/byteswap_.h (bswap_32): Fix formula.
52776
52777 2007-03-06  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/sprintf-posix-tests: New file.
52780         * tests/test-sprintf-posix.c: New file.
52781
52782         * modules/sprintf-posix: New file.
52783         * lib/sprintf.c: New file.
52784         * m4/sprintf-posix.m4: New file.
52785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52786         REPLACE_SPRINTF.
52787         * lib/stdio_.h (sprintf): New declaration.
52788         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52789         REPLACE_SPRINTF.
52790
52791 2007-03-06  Bruno Haible  <bruno@clisp.org>
52792
52793         * modules/vsprintf-posix-tests: New file.
52794         * tests/test-vsprintf-posix.c: New file.
52795         * tests/test-sprintf-posix.h: New file.
52796
52797         * modules/vsprintf-posix: New file.
52798         * lib/vsprintf.c: New file.
52799         * m4/vsprintf-posix.m4: New file.
52800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52801         REPLACE_VSPRINTF.
52802         * lib/stdio_.h (vsprintf): New declaration.
52803         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52804         REPLACE_VSPRINTF.
52805
52806 2007-03-06  Bruno Haible  <bruno@clisp.org>
52807
52808         * modules/vsnprintf (Depend-on): Remove minmax.
52809
52810 2007-03-06  Bruno Haible  <bruno@clisp.org>
52811
52812         * modules/snprintf-posix-tests: New file.
52813         * tests/test-snprintf-posix.c: New file.
52814
52815         * modules/snprintf-posix: New file.
52816         * m4/snprintf-posix.m4: New file.
52817         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52818         gl_FUNC_SNPRINTF.
52819         (gl_FUNC_SNPRINTF): Invoke it.
52820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52821         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52822         is set.
52823         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52824
52825 2007-03-06  Bruno Haible  <bruno@clisp.org>
52826
52827         * modules/vsnprintf-posix-tests: New file.
52828         * tests/test-vsnprintf-posix.c: New file.
52829         * tests/test-snprintf-posix.h: New file.
52830
52831         * modules/vsnprintf-posix: New file.
52832         * m4/vsnprintf-posix.m4: New file.
52833         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52834         gl_FUNC_VSNPRINTF.
52835         (gl_FUNC_VSNPRINTF): Invoke it.
52836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52837         * lib/stdio_.h (vsnprintf): Define as a replacement if
52838         REPLACE_VSNPRINTF is set.
52839         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52840
52841 2007-03-06  Bruno Haible  <bruno@clisp.org>
52842
52843         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52845
52846 2007-03-06  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52849         (asinl): Declare also if HAVE_DECL_ASINL is set.
52850         (atanl): Declare also if HAVE_DECL_ATANL is set.
52851         (ceill): Declare also if HAVE_DECL_CEILL is set.
52852         (cosl): Declare also if HAVE_DECL_COSL is set.
52853         (expl): Declare also if HAVE_DECL_EXPL is set.
52854         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52855         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52856         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52857         (logl): Declare also if HAVE_DECL_LOGL is set.
52858         (sinl): Declare also if HAVE_DECL_SINL is set.
52859         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52860         (tanl): Declare also if HAVE_DECL_TANL is set.
52861         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52863         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52864         declaration of frexpl, ldexpl.
52865         * modules/printf-frexpl (Depends-on): Add math.
52866         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52867
52868 2007-03-05  Bruno Haible  <bruno@clisp.org>
52869
52870         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52871         frexpl and ldexpl are declared.
52872         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52873
52874 2007-03-05  Bruno Haible  <bruno@clisp.org>
52875
52876         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52877         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52878
52879 2007-03-05  Bruno Haible  <bruno@clisp.org>
52880
52881         * lib/stdio_.h: Include <stddef.h>.
52882
52883 2007-03-05  Bruno Haible  <bruno@clisp.org>
52884
52885         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52886
52887 2007-03-05  Bruno Haible  <bruno@clisp.org>
52888
52889         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52890         NetBSD 4, from Ralf Wildenhues.
52891
52892 2007-03-04  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/vasprintf.h: Update #if logic for the case when the functions
52895         exist but are overridden.
52896
52897 2007-03-04  Bruno Haible  <bruno@clisp.org>
52898
52899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52900         implementations: glibc-2.4 and MacOS X 10.3.
52901         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52902         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52903         * tests/test-vasprintf-posix.c (test_function): Likewise.
52904
52905 2007-03-04  Bruno Haible  <bruno@clisp.org>
52906
52907         * modules/vasprintf-posix-tests: New file.
52908         * tests/test-vasprintf-posix.c: New file.
52909
52910         * modules/vasprintf-posix: New file.
52911         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52912         defined.
52913         * m4/vasprintf-posix.m4: New file.
52914         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52915         gl_FUNC_VASPRINTF.
52916         (gl_FUNC_VASPRINTF): Invoke it.
52917         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52918         here.
52919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52920
52921 2007-03-04  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52924         REPLACE_GETTIMEOFDAY.
52925         * modules/sys_time (Makefile.am): Likewise.
52926         * m4/sys_time_h.m4: Likewise.
52927         * m4/gettimeofday.m4: Likewise.
52928
52929 2007-03-04  Bruno Haible  <bruno@clisp.org>
52930
52931         * modules/vasnprintf-posix-tests: New file.
52932         * tests/test-vasnprintf-posix.c: New file.
52933
52934         * modules/vasnprintf-posix: New file.
52935         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52936         printf-frexpl.h.
52937         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52938         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52939         REPLACE_VASNPRINTF is defined.
52940         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52941         gl_FUNC_VASNPRINTF.
52942         (gl_FUNC_VASNPRINTF): Invoke it.
52943         * m4/vasnprintf-posix.m4: New file.
52944         * m4/printf.m4: New file.
52945
52946 2007-03-04  Bruno Haible  <bruno@clisp.org>
52947
52948         Compile progreloc.c only if --enable-relocatable is specified.
52949         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52950         if --enable-relocatable was specified.
52951         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52952         lib_SOURCES.
52953
52954 2007-03-04  Jim Meyering  <jim@meyering.net>
52955
52956         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52957         Use it consistently, rather than enumerating errno constants.
52958
52959 2007-03-04  Bruno Haible  <bruno@clisp.org>
52960
52961         * modules/xvasprintf-tests: New file.
52962         * tests/test-xvasprintf.c: New file.
52963
52964         * modules/vasprintf-tests: New file.
52965         * tests/test-vasprintf.c: New file.
52966
52967         * modules/vasnprintf-tests: New file.
52968         * tests/test-vasnprintf.c: New file.
52969
52970         * modules/vsnprintf-tests: New file.
52971         * tests/test-vsnprintf.c: New file.
52972
52973         * modules/snprintf-tests: New file.
52974         * tests/test-snprintf.c: New file.
52975
52976 2007-03-04  Bruno Haible  <bruno@clisp.org>
52977
52978         Compile relocatable.c only if --enable-relocatable is specified.
52979         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52980         gl_RELOCATABLE_LIBRARY.
52981         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52982         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52983         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52984         gl_RELOCATABLE_LIBRARY.
52985         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52986         (Makefile.am): Remove lib_SOURCES.
52987         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52988         gl_RELOCATABLE_LIBRARY.
52989         (Makefile.am): Remove lib_SOURCES.
52990         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52991         always.
52992         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52993         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52994
52995 2007-03-04  Bruno Haible  <bruno@clisp.org>
52996
52997         * modules/argmatch-tests: New file.
52998         * tests/test-argmatch.c: New file.
52999
53000         * tests/test-allocsa.c (main): Halve the number of loop runs.
53001
53002         * modules/alloca-opt-tests: New file.
53003         * tests/test-alloca-opt.c: New file.
53004
53005 2007-03-04  Jim Meyering  <jim@meyering.net>
53006
53007         Work around difference between Linux ACLs and Solaris 10 ZFS.
53008         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53009         for EINVAL.
53010
53011 2007-03-03  Bruno Haible  <bruno@clisp.org>
53012
53013         * modules/relocatable-prog (Depends-on): Add back progreloc's
53014         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53015
53016 2007-03-03  Bruno Haible  <bruno@clisp.org>
53017
53018         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53019         * modules/relocatable-lib: New file.
53020
53021 2007-03-03  Bruno Haible  <bruno@clisp.org>
53022
53023         * modules/relocatable-prog: Renamed from modules/relocatable.
53024         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53025
53026 2007-03-03  Bruno Haible  <bruno@clisp.org>
53027
53028         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53029         m4/relocatable-lib.m4.
53030         (Depends-on): Remove 'relocatable'.
53031         (configure.ac): Add gl_RELOCATABLE_NOP.
53032
53033 2007-03-03  Bruno Haible  <bruno@clisp.org>
53034
53035         * modules/relocatable-prog-wrapper: New file.
53036         * modules/relocatable (Depends-on): Add it. Remove all other
53037         dependencies except progname.
53038         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53039
53040         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53041         (gl_FUNC_STRERROR): Nop.
53042         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53043
53044         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53045         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53046
53047         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53048         (gl_FUNC_READLINK): Update.
53049
53050         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53051
53052 2007-03-03  Bruno Haible  <bruno@clisp.org>
53053
53054         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53055         * modules/xreadlink (Depends-on): Add unistd.
53056         * modules/xreadlink-with-size (Depends-on): Likewise.
53057
53058 2007-03-03  Bruno Haible  <bruno@clisp.org>
53059
53060         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53061         extracted from gt_FUNC_SETENV.
53062         (gt_FUNC_SETENV): Remove macro.
53063         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53064         remove gt_FUNC_SETENV.
53065
53066 2007-03-03  Bruno Haible  <bruno@clisp.org>
53067
53068         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53069         ENABLE_RELOCATABLE here.
53070         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53071
53072 2007-03-03  Bruno Haible  <bruno@clisp.org>
53073
53074         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53075         * tests/test-rbtreehash_list.c: Include progname.h.
53076         (main): Call set_program_name.
53077
53078         * modules/rbtree-oset-tests (Depends-on): Add progname.
53079         * tests/test-rbtree_oset.c: Include progname.h.
53080         (main): Call set_program_name.
53081
53082         * modules/rbtree-list-tests (Depends-on): Add progname.
53083         * tests/test-rbtree_list.c: Include progname.h.
53084         (main): Call set_program_name.
53085
53086         * modules/linked-list-tests (Depends-on): Add progname.
53087         * tests/test-linked_list.c: Include progname.h.
53088         (main): Call set_program_name.
53089
53090 2007-03-03  Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53093         All uses of __restrict changed to _Restrict_.
53094         * lib/glob_.h (__restrict): Remove macro.
53095
53096 2007-03-02  Bruno Haible  <bruno@clisp.org>
53097
53098         * modules/gettext (configure.ac): Require gettext infrastructure
53099         from version 0.16.1.
53100
53101 2007-03-02  Bruno Haible  <bruno@clisp.org>
53102
53103         * modules/linkedhash-list-tests (Depends-on): Add progname.
53104         * tests/test-linkedhash_list.c: Include progname.h.
53105         (main): Call set_program_name.
53106
53107         * modules/carray-list-tests (Depends-on): Add progname.
53108         * tests/test-carray_list.c: Include progname.h.
53109         (main): Call set_program_name.
53110
53111         * modules/avltreehash-list-tests (Depends-on): Add progname.
53112         * tests/test-avltreehash_list.c: Include progname.h.
53113         (main): Call set_program_name.
53114
53115         * modules/avltree-oset-tests (Depends-on): Add progname.
53116         * tests/test-avltree_oset.c: Include progname.h.
53117         (main): Call set_program_name.
53118
53119         * modules/avltree-list-tests (Depends-on): Add progname.
53120         * tests/test-avltree_list.c: Include progname.h.
53121         (main): Call set_program_name.
53122
53123         * modules/array-oset-tests (Depends-on): Add progname.
53124         * tests/test-array_oset.c: Include progname.h.
53125         (main): Call set_program_name.
53126
53127         * modules/array-list-tests (Depends-on): Add progname.
53128         * tests/test-array_list.c: Include progname.h.
53129         (main): Call set_program_name.
53130
53131         * modules/argp-tests (Depends-on): Add progname.
53132         * tests/test-argp.c: Include argp.h first. Include progname.h.
53133         (main): Call set_program_name.
53134
53135 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53136
53137         * doc/gnulib-tool.texi (Initial import): Reword description of
53138         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53139         limited effect even if defined after the first system include.
53140
53141 2007-03-01  Bruno Haible  <bruno@clisp.org>
53142
53143         * build-aux/config.libpath: Update to libtool-1.5.22.
53144         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53145
53146 2007-03-01  Bruno Haible  <bruno@clisp.org>
53147
53148         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53149         foo_CFLAGS.
53150         Reported by Ralf Wildenhues.
53151
53152 2007-03-01  Bruno Haible  <bruno@clisp.org>
53153
53154         * build-aux/install-reloc: Remove object files left over by some
53155         compilers.
53156         Reported by Ralf Wildenhues.
53157
53158 2007-03-01  Bruno Haible  <bruno@clisp.org>
53159
53160         * build-aux/install-reloc: Break long lines.
53161
53162 2007-03-01  Bruno Haible  <bruno@clisp.org>
53163
53164         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53165         Reported by Ralf Wildenhues.
53166
53167 2007-03-01  Bruno Haible  <bruno@clisp.org>
53168
53169         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53170         include ordering constraints.
53171
53172 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53173
53174         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53176         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53177         as another example.
53178         * lib/time_.h: Fix misspelling.
53179         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53180         Require gl_HEADER_TIME_H_DEFAULTS.
53181         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53182         * m4/time_r.m4 (gl_TIME_R): Likewise.
53183         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53184
53185 2007-03-01  Bruno Haible  <bruno@clisp.org>
53186
53187         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53188         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53189
53190 2007-03-01  Jim Meyering  <jim@meyering.net>
53191
53192         * modules/xreadlink (Maintainer): Add my name.
53193         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53194
53195 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53196             Bruno Haible  <bruno@clisp.org>
53197
53198         * build-aux/install-reloc: Compile also c-ctype.c.
53199         * build-aux/relocatable.sh.in: New file.
53200         * doc/relocatable.texi: New file.
53201         * doc/relocatable-maint.texi: New file.
53202         * doc/gnulib.texi: Include relocatable-maint.texi.
53203         * lib/progreloc.c: Include unistd.h unconditionally.
53204         * lib/relocwrapper.c: Include unistd.h unconditionally.
53205         Include c-ctype.h.
53206         (add_dotbin): Use c_tolower.
53207         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53208         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53209         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53210         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53211         to m4/relocatable-lib.m4.
53212         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53213         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53214         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53215         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53216         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53217         * modules/relocatable: New file.
53218         * modules/relocatable-lib: New file.
53219         * modules/relocatable-script: New file.
53220
53221 2007-02-28  Bruno Haible  <bruno@clisp.org>
53222
53223         Import --enable-relocatable infrastructure.
53224         * build-aux/config.libpath: New file, from GNU gettext.
53225         * build-aux/install-reloc: New file, from GNU gettext.
53226         * build-aux/reloc-ldflags: New file, from GNU gettext.
53227         * lib/relocatable.h: New file, from GNU gettext.
53228         * lib/relocatable.c: New file, from GNU gettext.
53229         * lib/relocwrapper.c: New file, from GNU gettext.
53230         * m4/relocatable.m4: New file, from GNU gettext.
53231
53232 2007-02-28  Bruno Haible  <bruno@clisp.org>
53233
53234         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53235
53236         * modules/xreadlink: New file, from GNU gettext with modifications.
53237         * lib/xreadlink.c: New file, from GNU gettext.
53238         * lib/xreadlink.h: Add comments.
53239         (xreadlink): New declaration.
53240
53241         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53242         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53243         lib/xreadlink-with-size.c.
53244         (configure.ac): Remove gl_XREADLINK invocation.
53245         (Makefile.am): Augment lib_SOURCES.
53246         * m4/xreadlink.m4: Remove file.
53247         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53248         (xreadlink_with_size): Renamed from xreadink.
53249         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53250         * modules/canonicalize (Depends-on): Replace xreadlink with
53251         xreadlink-with-size.
53252         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53253
53254 2007-02-25  Jim Meyering  <jim@meyering.net>
53255
53256         * build-aux/announce-gen: When complaining about excess arguments,
53257         list them.
53258
53259 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         * README: Document signed integer overflow situation more
53262         accurately.
53263
53264 2007-02-25  Bruno Haible  <bruno@clisp.org>
53265
53266         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53267         'a' or 'A' conversion.
53268
53269 2007-02-25  Bruno Haible  <bruno@clisp.org>
53270
53271         * modules/filename: Renamed from modules/pathname.
53272         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53273         lib/concatpath.c with lib/concat-filename.c.
53274         (Makefile.am): Update.
53275         (Include): Replace pathname.h with filename.h.
53276         * lib/filename.h: Renamed from lib/pathname.h.
53277         (concatenated_filename): Renamed from concatenated_pathname.
53278         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53279         (concatenated_filename): Renamed from concatenated_pathname.
53280         * lib/findprog.c: Include filename.h instead of pathname.h.
53281         (find_in_path): Update.
53282         * lib/javacomp.c: Include filename.h instead of pathname.h.
53283         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53284         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53285         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53286         is_oldgcj_14_13_usable, is_javac_usable): Update.
53287         * lib/javaexec.c: Include filename.h instead of pathname.h.
53288         (execute_java_class): Update.
53289         * modules/findprog: Update.
53290         * modules/javacomp: Update.
53291         * modules/javaexec: Update.
53292         * MODULES.html.sh (File system functions): Add 'filename', remove
53293         'pathname'.
53294
53295 2007-02-25  Bruno Haible  <bruno@clisp.org>
53296
53297         * modules/printf-frexpl-tests: New file.
53298         * tests/test-printf-frexpl.c: New file.
53299
53300         * modules/printf-frexpl: New file.
53301         * lib/printf-frexpl.h: New file.
53302         * lib/printf-frexpl.c: New file.
53303         * m4/printf-frexpl.m4: New file.
53304
53305 2007-02-25  Bruno Haible  <bruno@clisp.org>
53306
53307         * modules/printf-frexp-tests: New file.
53308         * tests/test-printf-frexp.c: New file.
53309
53310         * modules/printf-frexp: New file.
53311         * lib/printf-frexp.h: New file.
53312         * lib/printf-frexp.c: New file.
53313         * m4/printf-frexp.m4: New file.
53314
53315 2007-02-25  Bruno Haible  <bruno@clisp.org>
53316
53317         Assume automake >= 1.10 for the tests.
53318         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53319         * modules/arctwo-tests: Likewise.
53320         * modules/argp-tests: Likewise.
53321         * modules/avltree-list-tests: Likewise.
53322         * modules/avltree-oset-tests: Likewise.
53323         * modules/avltreehash-list-tests: Likewise.
53324         * modules/carray-list-tests: Likewise.
53325         * modules/crc-tests: Likewise.
53326         * modules/des-tests: Likewise.
53327         * modules/gc-arcfour-tests: Likewise.
53328         * modules/gc-arctwo-tests: Likewise.
53329         * modules/gc-des-tests: Likewise.
53330         * modules/gc-hmac-md5-tests: Likewise.
53331         * modules/gc-hmac-sha1-tests: Likewise.
53332         * modules/gc-md2-tests: Likewise.
53333         * modules/gc-md4-tests: Likewise.
53334         * modules/gc-md5-tests: Likewise.
53335         * modules/gc-pbkdf2-sha1-tests: Likewise.
53336         * modules/gc-rijndael-tests: Likewise.
53337         * modules/gc-sha1-tests: Likewise.
53338         * modules/gc-tests: Likewise.
53339         * modules/getaddrinfo-tests: Likewise.
53340         * modules/hmac-md5-tests: Likewise.
53341         * modules/hmac-sha1-tests: Likewise.
53342         * modules/linked-list-tests: Likewise.
53343         * modules/linkedhash-list-tests: Likewise.
53344         * modules/lock-tests: Likewise.
53345         * modules/md2-tests: Likewise.
53346         * modules/md4-tests: Likewise.
53347         * modules/md5-tests: Likewise.
53348         * modules/rbtree-list-tests: Likewise.
53349         * modules/rbtree-oset-tests: Likewise.
53350         * modules/rbtreehash-list-tests: Likewise.
53351         * modules/read-file-tests: Likewise.
53352         * modules/rijndael-tests: Likewise.
53353         * modules/stdint-tests: Likewise.
53354         * modules/tls-tests: Likewise.
53355
53356 2007-02-24  Bruno Haible  <bruno@clisp.org>
53357
53358         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53359         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53360         function; instead check whether isnan with a double argument links.
53361         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53362         function; instead check whether isnan with a 'long double' argument
53363         links.
53364         Reported by Eric Blake <ebb9@byu.net>.
53365
53366 2007-02-24  Bruno Haible  <bruno@clisp.org>
53367
53368         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53369         defined.
53370         * lib/isnanl.c: Remove all code. Just include isnan.c.
53371         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53372
53373 2007-02-25  Jim Meyering  <jim@meyering.net>
53374
53375         Avoid conflicting types for 'unsetenv' on FreeBSD.
53376         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53377         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53378         in stdlib.h.
53379
53380 2007-02-24  Bruno Haible  <bruno@clisp.org>
53381
53382         * modules/isnanl-nolibm-tests: New file.
53383         * tests/test-isnanl.c: New file.
53384
53385         * modules/isnanl-nolibm: New file.
53386         * lib/isnanl.h: New file.
53387         * lib/isnanl.c: New file.
53388         * m4/isnanl.m4: New file.
53389
53390 2007-02-24  Bruno Haible  <bruno@clisp.org>
53391
53392         * modules/isnan-nolibm-tests: New file.
53393         * tests/test-isnan.c: New file.
53394
53395         * modules/isnan-nolibm: New file.
53396         * lib/isnan.h: New file.
53397         * lib/isnan.c: New file.
53398         * m4/isnan.m4: New file.
53399
53400 2007-02-24  Bruno Haible  <bruno@clisp.org>
53401
53402         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53403         assume that an exponent fits in 20 bits.
53404
53405 2007-02-24  Jim Meyering  <jim@meyering.net>
53406
53407         * m4/regex.m4: Update the description of the configure-time option,
53408         --without-included-regex, to state accurately what the defaults are,
53409         and perhaps to give people an idea why using this option is risky.
53410
53411 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53412
53413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53414         loops on small arguments.  This attempts to avoid the problem
53415         Bruno Haible reported for AIX 4.3.2 in
53416         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53417
53418 2007-02-23  Bruno Haible  <bruno@clisp.org>
53419
53420         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53421         Needed for help2man.
53422
53423 2007-02-23  Karl Berry  <karl@gnu.org>
53424
53425         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53426         exists, foo.h should be cvs-ignored, not committed.
53427
53428 2007-02-23  Eric Blake  <ebb9@byu.net>
53429
53430         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53431         * lib/stat-time.h (includes): Likewise.
53432         * lib/utimecmp.c (includes): Likewise.
53433         * lib/utimens.h (includes): Likewise.
53434         * lib/getdate.y (includes): Also include "timespec.h" for use
53435         internal to the module.
53436         * modules/utimens (Depends-on): Revert yesterday's patch.
53437         * modules/nanosleep (Depends-on): Add missing dependency.
53438
53439 2007-02-22  Bruno Haible  <bruno@clisp.org>
53440
53441         * lib/glob.c: Don't include getlogin_r.h.
53442
53443 2007-02-22  Jim Meyering  <jim@meyering.net>
53444
53445         * modules/utimens (Depends-on): Add timespec, required for
53446         utimens.h's inclusion of timespec.h.
53447
53448 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53449
53450         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53451         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53452         Schwab in
53453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53454         I'll try to think of a better way to fix the Solaris problem.
53455
53456         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53457         like glibc; on Solaris 10, it fails with errno == EINVAL.
53458         POSIX says the behavior is unspecified if the first argument is NULL,
53459         so play it safe and never pass NULL to the system getcwd.
53460
53461 2007-02-21  Jim Meyering  <jim@meyering.net>
53462
53463         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53464         of gettimeofday.  It would conflict with the one now always
53465         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53466         an IRIX 6.5 build failure.
53467
53468 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53469
53470         Minor fixups to port to Solaris 10 with Sun C 5.8.
53471         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53472         * modules/getcwd (Depends-on): Add dirfd.
53473         * lib/putenv.c (putenv): #undef it.
53474         (rpl_putenv): New decl.
53475         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53476
53477 2007-02-20  Bruno Haible  <bruno@clisp.org>
53478
53479         * modules/stdio-tests: New file.
53480         * tests/test-stdio.c: New file.
53481
53482         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53483         (Depends-on): Add stdio.
53484         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53485         (Include): Use <stdio.h> instead of vsnprintf.h.
53486         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53487         HAVE_DECL_VSNPRINTF.
53488         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53489
53490         * modules/snprintf (Files): Remove lib/snprintf.h.
53491         (Depends-on): Add stdio.
53492         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53493         (Include): Use <stdio.h> instead of snprintf.h.
53494         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53495         HAVE_DECL_SNPRINTF.
53496         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53497         * lib/getaddrinfo.c: Likewise.
53498
53499         * modules/stdio: New file.
53500         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53501         * lib/snprintf.h: Remove file.
53502         * lib/vsnprintf.h: Remove file.
53503         * lib/.cppi-disable: Remove snprintf.h.
53504         * m4/stdio_h.m4: New file.
53505         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53506
53507 2007-02-20  Jim Meyering  <jim@meyering.net>
53508
53509         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53510         used by e.g., mingw.  From Bruno Haible.
53511
53512 2007-02-19  Bruno Haible  <bruno@clisp.org>
53513
53514         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53515         warnings.
53516         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53517
53518 2007-02-19  Bruno Haible  <bruno@clisp.org>
53519
53520         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53521         from mingw users.
53522
53523 2007-02-19  Bruno Haible  <bruno@clisp.org>
53524
53525         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53526         warnings.
53527         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53528
53529 2007-02-19  Jim Meyering  <jim@meyering.net>
53530
53531         Don't use FD after a successful "fdopendir (fd)".
53532         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53533         Reset it by calling dirfd on the just-obtained DIR*.
53534
53535         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53536         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53537
53538 2007-02-18  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/readlink.c: Include <unistd.h>.
53541         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53542         HAVE_READLINK.
53543         * modules/readlink (Depends-on): Add unistd.
53544         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53545         (Include): Add <unistd.h>.
53546
53547         * lib/getlogin_r.h: Remove file.
53548         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53549         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53550         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53551         HAVE_DECL_GETLOGIN_R.
53552         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53553         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53554         (Include): Use <unistd.h> instead of getlogin_r.h.
53555
53556         * lib/getcwd.h: Remove file.
53557         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53558         * lib/xgetcwd.c: Likewise.
53559         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53560         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53561         * modules/getcwd (Files): Remove lib/getcwd.h.
53562         (Depends-on): Add unistd.
53563         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53564         (Include): Use <unistd.h> instad of getcwd.h.
53565
53566         * lib/ftruncate.c: Include <unistd.h> first.
53567         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53568         Set HAVE_FTRUNCATE.
53569         * modules/ftruncate (Depends-on): Add unistd.
53570         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53571
53572         * lib/fchdir.c: Include <unistd.h> first.
53573         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53575         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53576         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53577         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53578
53579         * lib/dup2.c: Include <unistd.h> first.
53580         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53581         HAVE_DUP2.
53582         * modules/dup2 (Depends-on): Add unistd.
53583         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53584
53585         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53586         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53587         REPLACE_CHOWN. Don't define chown as a macro here.
53588         * modules/chown (Depends-on): Add unistd.
53589         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53590
53591         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53592         Add definition for GL_LINK_WARNING.
53593         (chown, dup2): New declarations.
53594         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53595         link warning.
53596         (ftruncate): New declaration.
53597         (getcwd): New declaration, taken from old getcwd.h.
53598         (getlogin_r): New declaration, taken from old getlogin_r.h.
53599         (readlink): New declaration.
53600         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53601         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53602         (gl_PREREQ_UNISTD): Remove macro.
53603         (gl_UNISTD_MODULE_INDICATOR): New macro.
53604         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53605         many new variables. Don't set UNISTD_H.
53606         * modules/unistd (Description): Change.
53607         (Depends-on): Add link-warning.
53608         (configure.ac): Update.
53609         (Makefile.am): Create unistd.h always. Substitute many new variables
53610         into it.
53611
53612 2007-02-18  Bruno Haible  <bruno@clisp.org>
53613
53614         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53615         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53616         HAVE_GETSUBOPT.
53617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53618         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53619         * lib/getsubopt.h: Remove file.
53620         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53621         (Depends-on): Add stdlib.
53622         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53623         (Includes): Use <stdlib.h> instead of getsubopt.h.
53624         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53625         Set HAVE_GETSUBOPT.
53626         * lib/getsubopt.c: Don't include getsubopt.h.
53627
53628 2007-02-18  Bruno Haible  <bruno@clisp.org>
53629
53630         * modules/fchdir (Depends-on): Add dup2.
53631
53632 2007-02-18  Bruno Haible  <bruno@clisp.org>
53633
53634         * lib/stdlib_.h: Handle glibc's special invocation convention
53635         specially.
53636
53637 2007-02-18  Bruno Haible  <bruno@clisp.org>
53638
53639         * modules/stdlib-tests: New file.
53640         * tests/test-stdlib.c: New file.
53641
53642         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53643         (Depends-on): Add stdlib.
53644         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53645         (Includes): Use <stdlib.h> instead of mkstemp.h.
53646         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53647         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53648         * lib/mkstemp.c: Don't include mkstemp.h.
53649         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53650         * lib/stdlib--.h: Don't include mkstemp.h.
53651
53652         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53653         (Depends-on): Add stdlib.
53654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53655         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53656         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53657         HAVE_MKDTEMP.
53658         * lib/mkdtemp.c: Don't include mkdtemp.h.
53659         * lib/clean-temp.c: Don't include mkdtemp.h.
53660
53661         * modules/exit (Files): Remove lib/exit.h.
53662         (Depends-on): Add stdlib.
53663         (Makefile.am): Remove lib_SOURCES.
53664         (Include): Use <stdlib.h> instead of exit.h.
53665         * lib/argmatch.c: Don't include exit.h.
53666         * lib/execute.c: Likewise.
53667         * lib/pagealign_alloc.c: Likewise.
53668         * lib/pipe.c: Likewise.
53669         * lib/wait-process.c: Likewise.
53670         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53671         * lib/exitfail.c: Likewise.
53672         * lib/savewd.c: Likewise.
53673         * lib/xsetenv.c: Likewise.
53674
53675         * modules/stdlib: New file.
53676         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53677         and extra comments about mkstemp().
53678         * lib/exit.h: Remove file.
53679         * lib/mkdtemp.h: Remove file.
53680         * lib/mkstemp.h: Remove file.
53681         * m4/stdlib_h.m4: New file.
53682         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53683
53684 2007-02-18  Bruno Haible  <bruno@clisp.org>
53685
53686         * modules/math-tests: New file.
53687         * tests/test-math.c: New file.
53688
53689         * modules/math: New file.
53690         * modules/mathl (Files): Remove lib/mathl.h.
53691         (Depends-on): Add math.
53692         (Makefile.am): Don't mention mathl.h.
53693         (Include): Use <math.h> instead of mathl.h.
53694         * lib/math_.h: New file.
53695         * lib/mathl.h: Remove file.
53696         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53697         mathl.h.
53698         * lib/asinl.c: Likewise.
53699         * lib/atanl.c: Likewise.
53700         * lib/ceill.c: Likewise.
53701         * lib/cosl.c: Likewise.
53702         * lib/expl.c: Likewise.
53703         * lib/floorl.c: Likewise.
53704         * lib/frexpl.c: Likewise.
53705         * lib/ldexpl.c: Likewise.
53706         * lib/logl.c: Likewise.
53707         * lib/sincosl.c: Likewise.
53708         * lib/sinl.c: Likewise.
53709         * lib/sqrtl.c: Likewise.
53710         * lib/tanl.c: Likewise.
53711         * lib/trigl.c: Likewise.
53712         * m4/math_h.m4: New file.
53713         * MODULES.html.sh (Mathematics): Add math.
53714
53715 2007-02-17  Bruno Haible  <bruno@clisp.org>
53716
53717         * modules/wctype-tests: New file.
53718         * tests/test-wctype.c: New file.
53719
53720         * modules/wchar-tests: New file.
53721         * tests/test-wchar.c: New file.
53722
53723         * modules/unistd-tests: New file.
53724         * tests/test-unistd.c: New file.
53725
53726         * modules/time-tests: New file.
53727         * tests/test-time.c: New file.
53728
53729         * modules/sysexits-tests: New file.
53730         * tests/test-sysexits.c: New file.
53731
53732         * modules/sys_time-tests: New file.
53733         * tests/test-sys_time.c: New file.
53734
53735         * modules/sys_stat-tests: New file.
53736         * tests/test-sys_stat.c: New file.
53737
53738         * modules/sys_socket-tests: New file.
53739         * tests/test-sys_socket.c: New file.
53740
53741         * modules/sys_select-tests: New file.
53742         * tests/test-sys_select.c: New file.
53743
53744         * modules/string-tests: New file.
53745         * tests/test-string.c: New file.
53746
53747         * modules/stdbool-tests: New file.
53748         * tests/test-stdbool.c: New file.
53749
53750         * modules/netinet_in-tests: New file.
53751         * tests/test-netinet_in.c: New file.
53752
53753         * modules/inttypes-tests: New file.
53754         * tests/test-inttypes.c: New file.
53755
53756         * modules/fcntl-tests: New file.
53757         * tests/test-fcntl.c: New file.
53758
53759         * modules/byteswap-tests: New file.
53760         * tests/test-byteswap.c: New file.
53761
53762         * modules/arpa_inet-tests: New file.
53763         * tests/test-arpa_inet.c: New file.
53764
53765 2007-02-17  Bruno Haible  <bruno@clisp.org>
53766
53767         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53768         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53769         if the corresponding module is not enabled. Emit link warnings if
53770         the function is used nevertheless.
53771         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53772         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53773         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53774         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53775         * modules/inttypes (Depends-on): Add link-warning.
53776         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53777         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53778         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53779         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53780         * modules/imaxdiv (configure.ac): Likewise.
53781         * modules/strtoimax (configure.ac): Likewise.
53782         * modules/strtoumax (configure.ac): Likewise.
53783
53784 2007-02-17  Bruno Haible  <bruno@clisp.org>
53785
53786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53787         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53788         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53789         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53790
53791 2007-02-17  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/link-warning: New file.
53794         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53795         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53796         * modules/string (Depends-on): Add link-warning.
53797         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53798         string.h.
53799         * MODULES.html.sh (Support for building libraries and executables): Add
53800         link-warning.
53801
53802 2007-02-17  Bruno Haible  <bruno@clisp.org>
53803
53804         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53805         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53806         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53807         long lines.
53808
53809 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53810             Bruno Haible  <bruno@clisp.org>
53811
53812         * modules/tmpfile: New file.
53813         * lib/tmpfile.c: New file.
53814         * m4/tmpfile.m4: New file.
53815         * MODULES.html.sh (func_all_modules): New section "Input/output".
53816
53817 2007-02-15  Bruno Haible  <bruno@clisp.org>
53818
53819         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53820         (supports_delete_on_close): New function.
53821         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53822
53823 2007-02-14  Bruno Haible  <bruno@clisp.org>
53824
53825         * modules/mbspcasecmp-tests: New file.
53826         * tests/test-mbspcasecmp.sh: New file.
53827         * tests/test-mbspcasecmp.c: New file.
53828
53829         New module mbspcasecmp.
53830         * modules/mbspcasecmp: New file.
53831         * lib/mbspcasecmp.c: New file.
53832         * lib/string_.h (strncasecmp): Change warning message.
53833         (mbspcasecmp): New declaration.
53834         * m4/mbspcasecmp.m4: New file.
53835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53836         GNULIB_MBSPCASECMP.
53837         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53838         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53839
53840 2007-02-14  Bruno Haible  <bruno@clisp.org>
53841
53842         * modules/mbsncasecmp-tests: New file.
53843         * tests/test-mbsncasecmp.sh: New file.
53844         * tests/test-mbsncasecmp.c: New file.
53845
53846         New module mbsncasecmp.
53847         * modules/mbsncasecmp: New file.
53848         * lib/mbsncasecmp.c: New file.
53849         * lib/string_.h (mbsncasecmp): New declaration.
53850         * m4/mbsncasecmp.m4: New file.
53851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53852         GNULIB_MBSNCASECMP.
53853         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53854         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53855
53856 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53859         Verify that it doesn't overlap with our flags.
53860         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53861         do not have the desired effect in multibyte locales; instead, use
53862         mbscasecmp.
53863         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53864         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53865         we don't require GNU fnmatch ourselves (if our users require it, they
53866         should do so explicitly).
53867
53868         Fix regex code so it doesn't rely on strcasecmp.
53869         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53870         Otherwise, include gnulib's langinfo.h.
53871         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53872         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53873         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53874         * modules/regex (FILES): Remove m4/codeset.m4.
53875         (Depends-on): Add localcharset.  Remove strcase.
53876
53877 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53878
53879         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53880         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53881
53882 2007-02-13  Bruno Haible  <bruno@clisp.org>
53883
53884         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53886
53887 2007-02-12  Bruno Haible  <bruno@clisp.org>
53888
53889         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53890         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53891         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53892         time warning rather than a link error.
53893
53894 2007-02-12  Bruno Haible  <bruno@clisp.org>
53895
53896         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53897         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53899
53900 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53901
53902         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53903         args, not 2.
53904
53905 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53906
53907         New module 'time', so that apps can include <time.h> as per
53908         POSIX and GNU instead of separate include files like time_r.h
53909         and timegm.h.  This implementation tries out a simpler approach
53910         for replacing decls in standard include files (as compared to
53911         the string module), somewhat as an experiment.
53912
53913         * config/srclist.txt: Comment out mktime.c for now.
53914         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53915         since it doesn't apply any more.  Use generic wording instead.
53916         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53917         'time'.
53918         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53919         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53920         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53921         Don't include <sys/types.h>; no longer needed since we assume C89.
53922         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53923         * lib/strftime.c: Likewise.
53924         * lib/time_r.c: Likewise.
53925         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53926         * lib/nanosleep.c: Include <time.h> first, to check interface.
53927         * lib/strptime.c: Likewise.
53928         * lib/time_r.c: Likewise.
53929         * lib/timegm.c: Likewise.
53930         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53931         needed.
53932         * lib/timegm.c: Don't include timegm.h; no longer needed.
53933         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53934         time.h now handles any problems in that area.
53935         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53936         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53937         that time.h defines struct timespec.
53938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53939         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53940         handles that.
53941         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53942         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53943         needed.  Set REPLACE_LOCALTIME.
53944         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53945         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53946         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53947         nanosleep; time_h.m4 now does that.  Don't require
53948         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53949         module handles this now.
53950         * modules/getdate (Depends-on): Remove timespec.  Add time.
53951         * modules/nanosleep (Depends-on): Likewise.
53952         * modules/stat-time (Depends-on): Likewise.
53953         * modules/nanosleep (Include): Include time.h, not timespec.h.
53954         * modules/strptime (Files): Remove lib/strptime.h.
53955         (Depends-on): Add extensions, time.
53956         (Include): Include time.h, not strptime.h.
53957         * modules/time_r (Files): Remove lib/time_r.h.
53958         (Depends-on): Add time.
53959         (Include): Include time.h, not time_r.h.
53960         * modules/timegm: Likewise.
53961         * modules/timespec (Description): Now does timespec-related decls
53962         of our own, instead of struct timespec itself.
53963         (Depends-on): Add time; remove extensions.
53964         (Maintainer): Add self.
53965         * modules/utimecmp (Depends-on): Add time; remove timespec.
53966         * modules/utimens (Depends-on): Likewise.
53967         * modules/xnanosleep (Depends-on): Likewise.
53968
53969 2007-02-11  Bruno Haible  <bruno@clisp.org>
53970
53971         * lib/c-strstr.c: Include allocsa.h.
53972         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53973         * lib/c-strcasestr.c: Include allocsa.h.
53974         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53975         * lib/strcasestr.c: Include allocsa.h.
53976         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53977         * lib/mbsstr.c: Include allocsa.h.
53978         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53979         allocsa/freesa instead of malloc/free.
53980         * lib/mbscasestr.c: Include allocsa.h.
53981         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53982         allocsa/freesa instead of malloc/free.
53983         * modules/c-strstr (Depends-on): Add allocsa.
53984         * modules/c-strcasestr (Depends-on): Likewise.
53985         * modules/strcasestr (Depends-on): Likewise.
53986         * modules/mbsstr (Depends-on): Likewise.
53987         * modules/mbscasestr (Depends-on): Likewise.
53988
53989 2007-02-11  Bruno Haible  <bruno@clisp.org>
53990
53991         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53992
53993         * modules/mbsspn-tests: New file.
53994         * tests/test-mbsspn.sh: New file.
53995         * tests/test-mbsspn.c: New file.
53996
53997 2007-02-11  Bruno Haible  <bruno@clisp.org>
53998
53999         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54000
54001         * modules/mbspbrk-tests: New file.
54002         * tests/test-mbspbrk.sh: New file.
54003         * tests/test-mbspbrk.c: New file.
54004
54005 2007-02-11  Bruno Haible  <bruno@clisp.org>
54006
54007         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54008         unneeded cast.
54009
54010         * modules/mbscspn-tests: New file.
54011         * tests/test-mbscspn.sh: New file.
54012         * tests/test-mbscspn.c: New file.
54013
54014 2007-02-11  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/mbscasecmp-tests: New file.
54017         * tests/test-mbscasecmp.sh: New file.
54018         * tests/test-mbscasecmp.c: New file.
54019
54020 2007-02-11  Bruno Haible  <bruno@clisp.org>
54021
54022         Ensure O(n) worst-case complexity of mbscasestr.
54023         * lib/mbscasestr.c: Include stdbool.h.
54024         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54025         functions.
54026         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54027         the bookkeeping indicates that it's worth it.
54028         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54029
54030         * modules/mbscasestr-tests: New file.
54031         * tests/test-mbscasestr1.c: New file.
54032         * tests/test-mbscasestr2.sh: New file.
54033         * tests/test-mbscasestr2.c: New file.
54034         * tests/test-mbscasestr3.sh: New file.
54035         * tests/test-mbscasestr3.c: New file.
54036         * tests/test-mbscasestr4.sh: New file.
54037         * tests/test-mbscasestr4.c: New file.
54038         * m4/locale-tr.m4: New file.
54039
54040 2007-02-11  Bruno Haible  <bruno@clisp.org>
54041
54042         Ensure O(n) worst-case complexity of mbsstr.
54043         * lib/mbsstr.c: Include stdbool.h.
54044         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54045         functions.
54046         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54047         bookkeeping indicates that it's worth it.
54048         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54049
54050         * modules/mbsstr-tests: New file.
54051         * tests/test-mbsstr1.c: New file.
54052         * tests/test-mbsstr2.sh: New file.
54053         * tests/test-mbsstr2.c: New file.
54054         * tests/test-mbsstr3.sh: New file.
54055         * tests/test-mbsstr3.c: New file.
54056         * m4/locale-fr.m4: New file.
54057
54058 2007-02-11  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/mbsrchr.c (mbsrchr): Fix bug.
54061
54062         * modules/mbsrchr-tests: New file.
54063         * tests/test-mbsrchr.sh: New file.
54064         * tests/test-mbsrchr.c: New file.
54065
54066 2007-02-11  Bruno Haible  <bruno@clisp.org>
54067
54068         * lib/mbschr.c (mbschr): Fix bug.
54069
54070         * modules/mbschr-tests: New file.
54071         * tests/test-mbschr.sh: New file.
54072         * tests/test-mbschr.c: New file.
54073         * m4/locale-zh.m4: New file.
54074
54075 2007-02-11  Bruno Haible  <bruno@clisp.org>
54076
54077         Support for copying multibyte string iterators.
54078         * lib/mbiter.h: Include <string.h>.
54079         (mbiter_multi_copy): New function.
54080         (mbi_copy): New macro.
54081         * lib/mbuiter.h: Include <string.h>.
54082         (mbuiter_multi_copy): New function.
54083         (mbui_copy): New macro.
54084
54085 2007-02-11  Bruno Haible  <bruno@clisp.org>
54086
54087         New module mbslen.
54088         * modules/mbslen: New file.
54089         * lib/mbslen.c: New file.
54090         * lib/string_.h (mbslen): New declaration.
54091         * m4/mbslen.m4: New file.
54092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54093         GNULIB_MBSLEN.
54094         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54095         * MODULES.html.sh (Internationalization functions): Add mbslen.
54096
54097 2007-02-11  Bruno Haible  <bruno@clisp.org>
54098
54099         Ensure O(n) worst-case complexity of strcasestr substitute.
54100         * lib/strcasestr.c: Include stdbool.h.
54101         (knuth_morris_pratt): New function.
54102         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54103         bookkeeping indicates that it's worth it.
54104         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54105
54106         * modules/strcasestr-tests: New file.
54107         * tests/test-strcasestr.c: New file.
54108
54109 2007-02-11  Bruno Haible  <bruno@clisp.org>
54110
54111         Ensure O(n) worst-case complexity of c_strcasestr.
54112         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54113         (knuth_morris_pratt): New function.
54114         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54115         the bookkeeping indicates that it's worth it.
54116         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54117
54118         * modules/c-strcasestr-tests: New file.
54119         * tests/test-c-strcasestr.c: New file.
54120
54121 2007-02-11  Bruno Haible  <bruno@clisp.org>
54122
54123         Ensure O(n) worst-case complexity of c_strstr.
54124         * lib/c-strstr.c: Include stdbool.h, string.h.
54125         (knuth_morris_pratt): New function.
54126         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54127         bookkeeping indicates that it's worth it.
54128         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54129
54130         * lib/c-strstr.c: Complete rewrite for maintainability.
54131
54132         * modules/c-strstr-tests: New file.
54133         * tests/test-c-strstr.c: New file.
54134
54135 2007-02-11  Bruno Haible  <bruno@clisp.org>
54136
54137         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54138         5.2.1 and earlier, whereby \055 was treated just like the range
54139         delimiter '-'.
54140         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54141
54142 2007-02-08  Bruno Haible  <bruno@clisp.org>
54143
54144         * modules/regex (Depends-on): Add stdbool.
54145         Reported by Dalibor Topic <robilad@kaffe.org>.
54146
54147 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54148
54149         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54150         Prefer returning from main to exiting from it.
54151         Remove unnecessary parens after sizeof.
54152
54153 2007-02-05  Bruno Haible  <bruno@clisp.org>
54154
54155         New module mbssep.
54156         * modules/mbssep: New file.
54157         * lib/mbssep.c: New file.
54158         * lib/string_.h (strsep): Add a conditional link warning.
54159         (mbssep): New declaration.
54160         * m4/mbssep.m4: New file.
54161         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54162         GNULIB_MBSSEP.
54163         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54164         * MODULES.html.sh (Internationalization functions): Add mbssep.
54165
54166 2007-02-05  Bruno Haible  <bruno@clisp.org>
54167
54168         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54169         Optimize search in case of 1 delimiter.
54170
54171 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54172
54173         * lib/acl.h: Include sys/types.h before sys/acl.h.
54174
54175 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54176
54177         Merge upstream fix for glibc bugzilla #3957:
54178
54179         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54180
54181         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54182         bit for RE_HAT_LISTS_NOT_NEWLINE.
54183         (build_charclass_op): Remove bogus comment.
54184
54185 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54186
54187         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54188
54189 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54192         * lib/memmem.c [!defined _LIBC]: Include config.h.
54193
54194 2007-02-04  Bruno Haible  <bruno@clisp.org>
54195
54196         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54197         warning message.
54198
54199 2007-02-04  Bruno Haible  <bruno@clisp.org>
54200
54201         New module mbstok_r.
54202         * modules/mbstok_r: New file.
54203         * lib/mbstok_r.c: New file.
54204         * lib/string_.h (strtok_r): Change argument names to match the
54205         comments. Add a conditional link warning.
54206         (mbstok_r): New declaration.
54207         * m4/mbstok_r.m4: New file.
54208         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54209         GNULIB_MBSTOK_R.
54210         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54211         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54212
54213 2007-02-04  Bruno Haible  <bruno@clisp.org>
54214
54215         New module mbsspn.
54216         * modules/mbsspn: New file.
54217         * lib/mbsspn.c: New file.
54218         * lib/string_.h (strspn): Add a conditional link warning.
54219         (mbsspn): New declaration.
54220         * m4/mbsspn.m4: New file.
54221         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54222         GNULIB_MBSSPN.
54223         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54224         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54225
54226 2007-02-04  Bruno Haible  <bruno@clisp.org>
54227
54228         New module mbspbrk.
54229         * modules/mbspbrk: New file.
54230         * lib/mbspbrk.c: New file.
54231         * lib/string_.h (strpbrk): Add a conditional link warning.
54232         (mbspbrk): New declaration.
54233         * m4/mbspbrk.m4: New file.
54234         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54235         GNULIB_MBSPBRK.
54236         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54237         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54238
54239 2007-02-04  Bruno Haible  <bruno@clisp.org>
54240
54241         New module mbscspn.
54242         * modules/mbscspn: New file.
54243         * lib/mbscspn.c: New file.
54244         * lib/string_.h (strcspn): Add a conditional link warning.
54245         (mbscspn): New declaration.
54246         * m4/mbscspn.m4: New file.
54247         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54248         GNULIB_MBSCSPN.
54249         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54250         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54251
54252 2007-02-04  Bruno Haible  <bruno@clisp.org>
54253
54254         New module mbscasestr, reduced goal of strcasestr.
54255         * modules/mbscasestr: New file.
54256         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54257         (mbscasestr): Renamed from strcasestr.
54258         * lib/strcasestr.c: Don't include mbuiter.h.
54259         (strcasestr): Remove support for multibyte locales.
54260         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54261         Change the conditional link warning.
54262         (mbscasestr): New declaration.
54263         * m4/mbscasestr.m4: New file.
54264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54265         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54266         REPLACE_STRCASESTR.
54267         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54269         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54270         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54271         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54272         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54273         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54274         (Depends-on): Remove mbuiter.
54275         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54276
54277 2007-02-04  Bruno Haible  <bruno@clisp.org>
54278
54279         Simplify handling of strncasecmp.
54280         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54281         the conditional link warning.
54282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54283         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54284         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54285         * modules/strcase (configure.ac): Don't invoke
54286         gl_STRING_MODULE_INDICATOR.
54287         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54288
54289 2007-02-04  Bruno Haible  <bruno@clisp.org>
54290
54291         New module mbscasecmp, reduced goal of strcasecmp.
54292         * modules/mbscasecmp: New file.
54293         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54294         (mbscasecmp): Renamed from strcasecmp.
54295         * lib/strcasecmp.c: Don't include mbuiter.h.
54296         (strcasecmp): Remove support for multibyte locales.
54297         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54298         Change the conditional link warning.
54299         (mbscasecmp): New declaration.
54300         * m4/mbscasecmp.m4: New file.
54301         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54302         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54303         REPLACE_STRCASECMP.
54304         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54306         GNULIB_MBSCASECMP.
54307         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54308         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54309         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54310         (Depends-on): Remove mbuiter.
54311         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54312
54313 2007-02-04  Bruno Haible  <bruno@clisp.org>
54314
54315         New module mbsstr. Remove module strstr.
54316         * modules/mbsstr: New file.
54317         * modules/strstr: Remove file.
54318         * lib/mbsstr.c: Renamed from lib/strstr.c.
54319         (mbsstr): Renamed from strstr.
54320         * lib/string_.h (strstr): Remove declaration. Change the conditional
54321         link warning.
54322         (mbsstr): New declaration.
54323         * m4/mbsstr.m4: New file.
54324         * m4/strstr.m4: Remove file.
54325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54326         REPLACE_STRSTR.
54327         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54328         Don't initialize GNULIB_STRSTR.
54329         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54330         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54331         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54332         (Support for systems lacking ANSI C 89): Remove strstr.
54333
54334 2007-02-04  Bruno Haible  <bruno@clisp.org>
54335
54336         New module mbsrchr.
54337         * modules/mbsrchr: New file.
54338         * lib/mbsrchr.c: New file.
54339         * lib/string_.h (strrchr): Add a conditional link warning.
54340         (mbsrchr): New declaration.
54341         * m4/mbsrchr.m4: New file.
54342         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54343         GNULIB_MBSRCHR.
54344         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54345         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54346
54347 2007-02-04  Bruno Haible  <bruno@clisp.org>
54348
54349         New module mbschr.
54350         * modules/mbschr: New file.
54351         * lib/mbschr.c: New file.
54352         * lib/string_.h (strchr): Add a conditional link warning.
54353         (mbschr): New declaration.
54354         * m4/mbschr.m4: New file.
54355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54356         GNULIB_MBSCHR.
54357         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54358         * MODULES.html.sh (Internationalization functions): Add mbschr.
54359
54360 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54361
54362         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54363
54364         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54365
54366 2007-02-04  Bruno Haible  <bruno@clisp.org>
54367
54368         New module description section 'configure.ac-early'.
54369         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54370         (func_get_autoconf_early_snippet): New function.
54371         (func_import, func_create_testdir): Use it. Remove special cases for
54372         modules 'extensions' and 'lock'.
54373         * modules/extensions (configure.ac-early): Require
54374         gl_USE_SYSTEM_EXTENSIONS.
54375         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54376
54377 2007-02-04  Bruno Haible  <bruno@clisp.org>
54378
54379         Make use of gcj-4.3's -fsource and -ftarget option.
54380         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54381         and if so try the options -fsource and -ftarget.
54382         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54383         source_version, ftarget_option, target_version arguments.
54384         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54385         (is_envjavac_oldgcj_14_14_usable): Renamed from
54386         is_envjavac_gcj_14_14_usable.
54387         (is_envjavac_oldgcj_14_13_usable): Renamed from
54388         is_envjavac_gcj_14_13_usable.
54389         (is_gcj_present): Update.
54390         (is_gcj_43, is_gcj43_usable): New functions.
54391         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54392         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54393         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54394         try the options -fsource and -ftarget.
54395
54396 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54397
54398         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54399         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54400         larger value.
54401
54402 2007-02-03  Jim Meyering  <jim@meyering.net>
54403
54404         Give tools a better chance to allocate space for very large buffers.
54405         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54406
54407         Make pwd and readlink work also when run with an unreadable parent dir
54408         on systems with openat support.
54409         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54410         provided getcwd function, even when we have openat support.
54411         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54412
54413 2007-02-02  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54416         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54417         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54418         portability problems if one of these functions is only used on specific
54419         platforms.
54420         Reported by Paul Eggert.
54421
54422 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54423
54424         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54425         is causing more trouble than it's curing.
54426         * lib/regex_internal.h (__mempcpy): Remove.
54427         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54428         (and make the code a tad smaller to boot).
54429         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54430
54431 2007-02-02  Jim Meyering  <jim@meyering.net>
54432
54433         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54434         section, not in the Makefile.am: one.
54435
54436 2007-02-02  Eric Blake  <ebb9@byu.net>
54437
54438         * lib/strchrnul.c: Always include config.h first.
54439
54440         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54441         gnulib strstr is not necessary here.
54442
54443 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54444
54445         * m4/socklen.m4: Fix typo.
54446
54447 2007-02-02  Eric Blake  <ebb9@byu.net>
54448
54449         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54450         * modules/netinet_in (Makefile.am): Likewise.
54451
54452 2007-02-01  Bruno Haible  <bruno@clisp.org>
54453
54454         * lib/string_.h (GL_LINK_WARNING): New macro.
54455         (strcasecmp, strstr, strcasestr): If provided by the system,
54456         conditionally define as a macro that leads to a warning instead of to
54457         an error.
54458         (strncasecmp): Conditionally define as a macro that leads to a warning.
54459
54460 2007-02-01  Karl Berry  <karl@gnu.org>
54461
54462         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54463
54464 2007-02-01  Bruno Haible  <bruno@clisp.org>
54465
54466         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54467         renamings.
54468
54469 2007-02-01  Eric Blake  <ebb9@byu.net>
54470
54471         * modules/regex (Depends-on): Revert dependence on mempcpy.
54472         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54473         module's definition of mempcpy.
54474         Reported by Paul Eggert.
54475
54476 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54477
54478         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54479         the symbol XYZ before redefining it.  This fixes a problem with
54480         programs that don't use XYZ, when compiled on systems that define
54481         XYZ to something else.
54482
54483 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54486         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54487         writeable to group or other and (2) is intended to have a special
54488         mode bit that is set or cleared.  In such a case, the directory
54489         should be neither group- nor other-writeable until the special
54490         mode bits are right.
54491
54492 2007-01-31  Eric Blake  <ebb9@byu.net>
54493
54494         * modules/mountlist (Depends-on): Add strstr.
54495
54496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54497         bug.
54498         * modules/string (Makefile.am): Remove redundant replacement.
54499         * modules/regex (Depends-on): Add mempcpy.
54500
54501 2007-01-31  Bruno Haible  <bruno@clisp.org>
54502
54503         New module description field 'Link'.
54504         * gnulib-tool (func_usage): Document --extract-link-directive.
54505         (sed_extract_prog): Recognize 'Link' directive.
54506         (func_get_link_directive): New function.
54507         (func_import): Show summary of link directives.
54508         Handle --extract-link-directive option.
54509         * modules/acl (Link): New section.
54510         * modules/clock-time (Link): New section.
54511         * modules/euidaccess (Link): New section.
54512         * modules/gettext (Link): New section.
54513         * modules/iconv (Link): New section.
54514         * modules/lock (Link): New section.
54515         * modules/nanosleep (Link): New section.
54516         * modules/readline (Link): New section.
54517
54518 2007-01-27  Bruno Haible  <bruno@clisp.org>
54519
54520         Enforce the use of gnulib modules for unportable <string.h> functions.
54521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54522         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54523         (gl_HEADER_STRING_H_BODY): Require it.
54524         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54525         the symbol XYZ to one that gives a link error.
54526         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54527         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54528         * modules/mempcpy (configure.ac): Likewise.
54529         * modules/memrchr (configure.ac): Likewise.
54530         * modules/stpcpy (configure.ac): Likewise.
54531         * modules/stpncpy (configure.ac): Likewise.
54532         * modules/strcase (configure.ac): Likewise.
54533         * modules/strcasestr (configure.ac): Likewise.
54534         * modules/strchrnul (configure.ac): Likewise.
54535         * modules/strdup (configure.ac): Likewise.
54536         * modules/strndup (configure.ac): Likewise.
54537         * modules/strnlen (configure.ac): Likewise.
54538         * modules/strpbrk (configure.ac): Likewise.
54539         * modules/strsep (configure.ac): Likewise.
54540         * modules/strstr (configure.ac): Likewise.
54541         * modules/strtok_r (configure.ac): Likewise.
54542
54543 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54544
54545         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54546
54547 2007-01-30  Jim Meyering  <jim@meyering.net>
54548
54549         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54550
54551 2007-01-29  Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54554         * lib/execute.c: Likewise.
54555         * lib/pipe.c: Likewise.
54556         * lib/printf-args.h: Likewise.
54557         * lib/printf-args.c: Likewise.
54558         * lib/printf-parse.c: Likewise.
54559         * lib/vasnprintf.c: Likewise.
54560
54561 2007-01-29  Eric Blake  <ebb9@byu.net>
54562
54563         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54564         declaration.
54565
54566 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54567
54568         * lib/strptime.h (strptime): Use 'restrict' for args where
54569         POSIX requires this.
54570         * lib/strptime.c (strptime): Likewise.
54571         Change license notice from LGPL to GPL, since gnulib-tool will
54572         change this as needed.
54573         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54574         defined.
54575         Include "strptime.h" first, to check interface.
54576         Do not #undef _LIBC and _NL_CURRENT.
54577         Do not include <stdlib.h>; no longer needed.
54578         Include "time_r.h" and declare ptime_locale_status
54579         only if _LIBC is not defined.
54580         (__P): Remove unused macro.
54581         (match_string): Bring back glibc version, but use it only if _LIBC
54582         is defined.
54583         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54584         Remove unnecessary assertion and abort() call.
54585         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54586         * m4/strptime.m4: Fix serial number comment.
54587         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54588         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54589         (Depends-on): Add time_r.
54590
54591 2007-01-29  Bruno Haible  <bruno@clisp.org>
54592
54593         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54594         strptime.
54595         * modules/strptime (Depends-on): Add stdbool.
54596         * lib/strptime.h: Include <time.h> always. Add comments.
54597
54598 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54599
54600         * modules/strptime: New file.
54601         * lib/strptime.h: New file.
54602         * lib/strptime.c: New file.
54603         * m4/strptime.m4: New file.
54604
54605 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54606
54607         * MODULES.html.sh: New module mpsort.
54608         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54609
54610         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54611         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54612         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54613         All uses changed.
54614         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54615         All uses changed.
54616         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54617         to _Restrict_.
54618         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54619         the parameter matches the prototype.
54620
54621 2007-01-28  Jim Meyering  <jim@meyering.net>
54622
54623         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54624         sys/time.h here, reverting that part of the previous patch:
54625         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54626
54627 2007-01-28  Bruno Haible  <bruno@clisp.org>
54628
54629         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54630         value of $(SYS_TIME_H).
54631         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54632         remove it conditionally, too. [added by Jim Meyering]
54633         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54635         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54636         GETTIMEOFDAY_REPLACEMENT to 1.
54637
54638 2007-01-28  Bruno Haible  <bruno@clisp.org>
54639
54640         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54641         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54643         Set UNISTD_H instead of UNISTD_H2.
54644         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54645
54646 2007-01-28  Bruno Haible  <bruno@clisp.org>
54647
54648         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54649         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54650
54651 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54652
54653         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54654         (func_create_testdir): Ensure C locale for `grep' and `tr'
54655         character ranges.
54656         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54657         ACLOCAL_AMFLAGS parsing state machine.
54658
54659 2007-01-27  Bruno Haible  <bruno@clisp.org>
54660
54661         * modules/unistr/base: Update.
54662
54663 2007-01-27  Bruno Haible  <bruno@clisp.org>
54664
54665         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54666         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54667         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54668         modules/unistr/u32-mbtouc.
54669         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54670         * lib/unistr.h: Update.
54671         * lib/linebreak.c: Update.
54672         * modules/unistr/u32-mbtouc: Renamed from
54673         modules/unistr/u32-mbtouc-safe.
54674         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54675         * lib/unistr.h: Update.
54676         * lib/unistr/u32-to-u8.c: Update.
54677         * lib/unistr/u32-to-u16.c: Update.
54678
54679 2007-01-27  Bruno Haible  <bruno@clisp.org>
54680
54681         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54682         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54683         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54684         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54685         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54686         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54687         modules/unistr/u16-mbtouc.
54688         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54689         * lib/unistr.h: Update.
54690         * lib/linebreak.c: Update.
54691         * modules/linebreak: Update.
54692         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54693         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54694         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54695         * modules/unistr/u16-mbtouc: Renamed from
54696         modules/unistr/u16-mbtouc-safe.
54697         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54698         * lib/unistr.h: Update.
54699         * lib/unistr/u16-to-u8.c: Update.
54700         * modules/unistr/u16-to-u8: Update.
54701         * lib/unistr/u16-to-u32.c: Update.
54702         * modules/unistr/u16-to-u32: Update.
54703
54704 2007-01-27  Bruno Haible  <bruno@clisp.org>
54705
54706         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54707         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54708         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54709         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54710         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54711         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54712         modules/unistr/u8-mbtouc.
54713         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54714         * lib/unistr.h: Update.
54715         * lib/striconveh.c: Update.
54716         * modules/striconveh: Update.
54717         * lib/linebreak.c: Update.
54718         * modules/linebreak: Update.
54719         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54720         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54721         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54722         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54723         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54724         * lib/unistr.h: Update.
54725         * lib/striconveh.c: Update.
54726         * modules/striconveh: Update.
54727         * lib/unistr/u8-to-u16.c: Update.
54728         * modules/unistr/u8-to-u16: Update.
54729         * lib/unistr/u8-to-u32.c: Update.
54730         * modules/unistr/u8-to-u32: Update.
54731
54732 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54733
54734         Sync from Libtool.
54735         * lib/argz.c: Do not include strings.h nor memory.h, include
54736         string.h unconditionally.  Patch by Simon Josefsson.
54737
54738 2007-01-27  Bruno Haible  <bruno@clisp.org>
54739
54740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54741         from gl_HEADER_STRING_H_BODY.
54742         (gl_HEADER_STRING_H_BODY): Require it.
54743         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54744         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54745         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54746         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54747         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54748         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54750         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54751         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54752         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54753         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54754         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54755         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54756         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54757         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54758
54759 2007-01-27  Bruno Haible  <bruno@clisp.org>
54760
54761         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54762         check_PROGRAMS into noinst_PROGRAMS.
54763         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54764         check_PROGRAMS in this case.
54765         (func_import): Set for_test to false.
54766         (func_create_testdir): Set for_test to true.
54767
54768 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54769             Bruno Haible  <bruno@clisp.org>
54770
54771         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54772         (Depends-on): Add string.
54773         (Includes): Use <string.h> instead of strcasestr.h.
54774         * modules/string (Makefile.am): Also substitute the value of
54775         REPLACE_STRCASESTR.
54776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54777         assume strcasestr is declared in <string.h> not <strings.h>. Also
54778         set REPLACE_STRCASESTR.
54779         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54780         REPLACE_STRCASESTR.
54781         * lib/strcasestr.h: Remove file.
54782         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54783         * lib/string_.h (strcasestr): New declaration.
54784
54785 2007-01-27  Bruno Haible  <bruno@clisp.org>
54786
54787         * lib/string_.h: Use 'extern'.
54788
54789 2007-01-27  Jim Meyering  <jim@meyering.net>
54790
54791         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54792         of set-but-not-used local, "q".
54793
54794         * lib/mempcpy.c: Include <config.h> before <string.h>.
54795         This fixes a compilation error on HP-UX, due to the system's
54796         "restrict"-using mempcpy prototype.
54797
54798 2007-01-26  Bruno Haible  <bruno@clisp.org>
54799
54800         Small optimization.
54801         * lib/javacomp.c: Include c-strstr.h.
54802          (is_envjavac_gcj): Use c_strstr instead of strstr.
54803         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54804
54805 2007-01-26  Bruno Haible  <bruno@clisp.org>
54806
54807         * MODULES.html.sh (Unicode string functions): Add the new modules.
54808
54809         * modules/uniconv/u32-strconv-to-locale: New file.
54810         * lib/uniconv/u32-strconv-to-locale.c: New file.
54811
54812         * modules/uniconv/u16-strconv-to-locale: New file.
54813         * lib/uniconv/u16-strconv-to-locale.c: New file.
54814
54815         * modules/uniconv/u8-strconv-to-locale: New file.
54816         * lib/uniconv/u8-strconv-to-locale.c: New file.
54817
54818         * modules/uniconv/u32-strconv-from-locale: New file.
54819         * lib/uniconv/u32-strconv-from-locale.c: New file.
54820
54821         * modules/uniconv/u16-strconv-from-locale: New file.
54822         * lib/uniconv/u16-strconv-from-locale.c: New file.
54823
54824         * modules/uniconv/u8-strconv-from-locale: New file.
54825         * lib/uniconv/u8-strconv-from-locale.c: New file.
54826
54827         * modules/uniconv/u32-strconv-to-enc: New file.
54828         * lib/uniconv/u32-strconv-to-enc.c: New file.
54829         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54830         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54831
54832         * modules/uniconv/u16-strconv-to-enc: New file.
54833         * lib/uniconv/u16-strconv-to-enc.c: New file.
54834         * lib/uniconv/u-strconv-to-enc.h: New file.
54835         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54836         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54837
54838         * modules/uniconv/u8-strconv-to-enc: New file.
54839         * lib/uniconv/u8-strconv-to-enc.c: New file.
54840         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54841         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54842
54843         * modules/uniconv/u32-strconv-from-enc: New file.
54844         * lib/uniconv/u32-strconv-from-enc.c: New file.
54845         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54846         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54847
54848         * modules/uniconv/u16-strconv-from-enc: New file.
54849         * lib/uniconv/u16-strconv-from-enc.c: New file.
54850         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54851         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54852
54853         * modules/uniconv/u8-strconv-from-enc: New file.
54854         * lib/uniconv/u8-strconv-from-enc.c: New file.
54855         * lib/uniconv/u-strconv-from-enc.h: New file.
54856         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54857         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54858
54859         * modules/uniconv/u32-conv-from-enc: New file.
54860         * lib/uniconv/u32-conv-from-enc.c: New file.
54861         * modules/uniconv/u32-conv-from-enc-tests: New file.
54862         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54863
54864         * modules/uniconv/u16-conv-from-enc: New file.
54865         * lib/uniconv/u16-conv-from-enc.c: New file.
54866         * lib/uniconv/u-conv-from-enc.h: New file.
54867         * modules/uniconv/u16-conv-from-enc-tests: New file.
54868         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54869
54870         * modules/uniconv/u8-conv-from-enc: New file.
54871         * lib/uniconv/u8-conv-from-enc.c: New file.
54872         * modules/uniconv/u8-conv-from-enc-tests: New file.
54873         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54874
54875         * modules/uniconv/base: New file.
54876         * lib/uniconv.h: New file.
54877
54878 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54879
54880         * doc/gnulib-tool.texi (Initial import): Update to match current
54881         behavior with strdup module.
54882         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54883         * lib/memmem.h: Remove; all uses removed.  This is now done
54884         by <string.h>.
54885         * lib/mempcpy.h: Likewise.
54886         * lib/memrchr.h: Likewise.
54887         * lib/stpcpy.h: Likewise.
54888         * lib/stpncpy.h: Likewise.
54889         * lib/strcase.h: Likewise.
54890         * lib/strchrnul.h: Likewise.
54891         * lib/strdup.h: Likewise.
54892         * lib/strndup.h: Likewise.
54893         * lib/strnlen.h: Likewise.
54894         * lib/strpbrk.h: Likewise.
54895         * lib/strsep.h: Likewise.
54896         * lib/strstr.h: Likewise.
54897         * lib/strtok_r.h: Likewise.
54898         * lib/string_.h: New file.
54899         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54900         Rely on <string.h> instead.
54901         * lib/canon-host.c: Likewise.
54902         * lib/chdir-long.c: Likewise.
54903         * lib/concatpath.c: Likewise.
54904         * lib/exclude.c: Likewise.
54905         * lib/fchdir.c: Likewise.
54906         * lib/getaddrinfo.c: Likewise.
54907         * lib/getcwd.c: Likewise.
54908         * lib/getsubopt.c: Likewise.
54909         * lib/glob.c: Likewise.
54910         * lib/hard-locale.c: Likewise.
54911         * lib/iconvme.c: Likewise.
54912         * lib/javacomp.c: Likewise.
54913         * lib/mempcpy.c: Likewise.
54914         * lib/memrchr.c: Likewise.
54915         * lib/regex_internal.h: Likewise.
54916         * lib/stpncpy.c: Likewise.
54917         * lib/strcasecmp.c: Likewise.
54918         * lib/strchrnul.c: Likewise.
54919         * lib/strdup.c: Likewise.
54920         * lib/striconv.c: Likewise.
54921         * lib/striconveh.c: Likewise.
54922         * lib/striconveha.c: Likewise.
54923         * lib/strncasecmp.c: Likewise.
54924         * lib/strndup.c: Likewise.
54925         * lib/strnlen.c: Likewise.
54926         * lib/strsep.c: Likewise.
54927         * lib/strstr.c: Likewise.
54928         * lib/strtok_r.c: Likewise.
54929         * lib/userspec.c: Likewise.
54930         * lib/w32spawn.h: Likewise.
54931         * lib/xstrndup.c: Likewise.
54932         * lib/mountlist.c (strstr): Remove decl.
54933         * m4/string_h.m4: New file.
54934         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54935         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54936         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54937         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54938         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54939         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54940         Set REPLACE_STRCASECMP if necessary.
54941         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54942         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54943         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54944         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54945         HAVE_DECL_STRDUP if necessary.
54946         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54947         since gl_FUNC_STRNDUP does that now.
54948         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54949         Check for decl here...
54950         (gl_PREREQ_STRNLEN): ... not here.
54951         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54952         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54953         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54954         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54955         necessary.
54956         * modules/string: New file.
54957         * modules/memmem (Files): Remove special-purpose include file.
54958         (Depends-on): Add string.
54959         (Include): Include <string.h>, not the removed file.
54960         * modules/mempcpy: Likewise.
54961         * modules/memrchr: Likewise.
54962         * modules/stpcpy: Likewise.
54963         * modules/stpncpy: Likewise.
54964         * modules/strcase: Likewise.
54965         * modules/strchrnul: Likewise.
54966         * modules/strdup: Likewise.
54967         * modules/strndup: Likewise.
54968         * modules/strnlen: Likewise.
54969         * modules/strpbrk: Likewise.
54970         * modules/strsep: Likewise.
54971         * modules/strstr: Likewise.
54972         * modules/strtok_r: Likewise.
54973         * tests/test-dirname.c: Don't include "strdup.h", since
54974         <string.h> now suffices.
54975         * tests/test-memmem.c: Don't include "memmem.h", since
54976         <string.h> now suffices.
54977
54978 2007-01-25  Bruno Haible  <bruno@clisp.org>
54979
54980         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54981         *resultp is 0.
54982
54983         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54984         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54985         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54986         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54987
54988         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54989         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54990         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54991         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54992         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54993         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54994
54995 2007-01-24  Bruno Haible  <bruno@clisp.org>
54996
54997         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54998         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54999         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55000         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55001         gl_FUNC_FTS_CORE.
55002         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55003         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55004         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55005         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55006         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55007         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55008         gl_FUNC_FCHOWNAT.
55009         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55010         gl_FUNC_STRFTIME.
55011         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55012         Reported by Ralf Wildenhues.
55013
55014 2007-01-24  Bruno Haible  <bruno@clisp.org>
55015
55016         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55017         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55018         gl_GETADDRINFO.
55019         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55020         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55021         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55022
55023 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55026         Don't use 'exit'; just return from 'main'.
55027         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55028
55029         * lib/fnmatch_.h: Readjust white space and comments to match
55030         glibc, to avoid spurious diffs.
55031
55032 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55033
55034         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55035         2004-12-01 change by Jakub Jelinek, since this code won't compile
55036         if !LIBC.  Problem reported by Bob Proulx.
55037
55038 2007-01-23  Bruno Haible  <bruno@clisp.org>
55039
55040         * lib/striconveh.c: Include c-strcaseeq.h.
55041         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55042         * modules/striconveh (Depends-on): Add c-strcaseeq.
55043
55044 2007-01-23  Bruno Haible  <bruno@clisp.org>
55045
55046         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55047
55048         * modules/c-strcaseeq: New file.
55049         * lib/c-strcaseeq.h: New file.
55050
55051         * modules/streq: New file.
55052         * lib/streq.h: New file.
55053
55054 2007-01-23  Bruno Haible  <bruno@clisp.org>
55055
55056         * modules/striconveha-tests: New file.
55057         * tests/test-striconveha.c: New file.
55058
55059         * lib/striconveha.h: Include <stdbool.h>.
55060         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55061         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55062         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55063         (mem_iconveha): New function.
55064         (str_iconveha_notranslit): Renamed from str_iconveha.
55065         (str_iconveha): New function.
55066         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55067         c-strcase.
55068
55069 2007-01-23  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55072         encodings without forgiving before trying any encoding with handler.
55073         (str_iconveha): Try all encodings without forgiving before trying any
55074         encoding with handler.
55075
55076 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55077
55078         Import the following changes from libc.
55079
55080         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55081
55082         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55083
55084         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55085
55086         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55087         normal_bracket label.
55088
55089         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55090
55091         [BZ #361]
55092         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55093         to normal_bracket after fetching the next character.
55094
55095 2007-01-22  Bruno Haible  <bruno@clisp.org>
55096
55097         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55098         argument.
55099         * lib/striconveh.c (iconv_carefully_1): New function.
55100         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55101         argument.
55102         (str_cd_iconveh): Update.
55103         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55104         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55105         * tests/test-striconveh.c (MAGIC): New macro.
55106         (new_offsets): New function.
55107         (main): Test call with and without offsets.
55108
55109 2007-01-22  Bruno Haible  <bruno@clisp.org>
55110
55111         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55112         * modules/sys_select (Makefile.am): Likewise.
55113         * modules/sys_socket (Makefile.am): Likewise.
55114         * modules/sys_time (Makefile.am): Likewise.
55115
55116 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55117
55118         * modules/gettimeofday (License): Change from GPL to LGPL, since
55119         gettimeofday is a library function.
55120
55121 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55122
55123         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55124
55125 2007-01-21  Bruno Haible  <bruno@clisp.org>
55126
55127         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55128
55129 2007-01-21  Bruno Haible  <bruno@clisp.org>
55130
55131         * modules/striconveha: New file.
55132         * lib/striconveha.h: New file.
55133         * lib/striconveha.c: New file.
55134         * MODULES.html.sh (Internationalization functions): Add striconveha.
55135         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55136         string.
55137         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55138
55139 2007-01-21  Bruno Haible  <bruno@clisp.org>
55140
55141         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55142         * lib/striconveh.c (str_iconveh): Likewise.
55143
55144 2007-01-21  Bruno Haible  <bruno@clisp.org>
55145
55146         * lib/striconveh.h (mem_iconveh): New declaration.
55147         * lib/striconveh.c (mem_iconveh): New function.
55148         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55149
55150 2007-01-21  Bruno Haible  <bruno@clisp.org>
55151
55152         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55153
55154         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55155         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55156         original result buffer.
55157         (str_cd_iconveh): Update.
55158         * tests/test-striconveh.c (main): Update.
55159
55160         * lib/striconv.h (mem_cd_iconv): Change specification.
55161         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55162         result buffer.
55163         (str_cd_iconv): Update.
55164         * tests/test-striconv.c (main): Update.
55165
55166 2007-01-21  Bruno Haible  <bruno@clisp.org>
55167
55168         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55169
55170 2007-01-20  Jim Meyering  <jim@meyering.net>
55171
55172         * lib/userspec.c (parse_with_separator): If a user or group string
55173         starts with "+", skip the corresponding name-to-ID look-up, since
55174         such a look-up must fail: user and group names may not include "+".
55175
55176 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55177
55178         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55179         since we now assume the sys_time module.
55180         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55181         check for sys/time.h; no longer needed.
55182         * modules/poll (Depends-on): Depend on sys_time.
55183
55184 2007-01-18  Bruno Haible  <bruno@clisp.org>
55185
55186         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55187         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55188
55189         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55190         gettimeofday.
55191
55192         * tests/test-gettimeofday.c: Include <time.h>.
55193         (dummy): Remove variable.
55194
55195         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55196         gl_HEADER_SYS_TIME_H.
55197         (gl_HEADER_SYS_TIME_H): New macro.
55198
55199         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55200         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55201         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55202         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55203         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55204         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55205         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55206         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55207         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55208         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55209         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55210
55211         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55212         last change; it caused a compilation error when cross-compiling to
55213         Cygwin.
55214
55215 2007-01-18  Jim Meyering  <jim@meyering.net>
55216
55217         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55218         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55219         than the race-prone "test -d sys || mkdir sys".
55220         (configure.ac): Use AC_PROG_MKDIR_P.
55221         * modules/sys_select: Likewise.
55222         * modules/sys_socket: Likewise.
55223         * modules/sys_time: Likewise.
55224
55225 2007-01-18  Eric Blake  <ebb9@byu.net>
55226
55227         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55228         replace gettimeofday.
55229         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55230         name, to avoid infinite recursion.
55231
55232 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55233
55234         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55235         module sys_time.
55236         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55237         assume timespec.h defines struct timeval.
55238         * lib/settime.c: Likewise.
55239         * lib/utimens.c: Likewise.
55240         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55241         since we now assume the gettimeofday module.
55242         * lib/tempname.c (__gen_tempname): Likewise.
55243         * lib/gettimeofday.h: Remove.
55244         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55245         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55246         Include <time.h>, for 'time()'.
55247         (localtime_buffer_addr): Also use this workaround if
55248         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55249         to simplify the uses.  All uses changed.
55250         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55251         that #undef is inside {}, and 'const' follows type name consistently.
55252         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55253         (gettimeofday): Do not use the maximum possible value for
55254         tv->tv_usec, since that might break usages other than ls.c.
55255         Instead, we'll leave ls.c alone.  This undoes today's patch
55256         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55257         we've never observed the problem but might as well keep the
55258         canary.
55259         * lib/nanosleep.c: Include timespec.h first, for interface check.
55260         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55261         now assume the sys_time module.
55262         * lib/tempname.c: Likewise.
55263         * lib/timespec.h: Likewise.
55264         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55265         needed.
55266         * lib/strftime.c: Likewise.
55267         * lib/timespec.h: Likewise.
55268         * lib/posixtm.c: Include posixtm.h first, for interface check.
55269         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55270         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55271         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55272         * lib/sys_time_.h: New file.
55273         * lib/timespec.h (struct timespec): Use long int, not long.
55274         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55275         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55276         Remove obsolescent call to AC_HEADER_TIME.
55277         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55279         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55280         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55281         Likewise.
55282         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55283         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55284         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55285         into the sys_time module.  Check for gettimeofday just once.
55286         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55287         for gettimeofday signature to just check the signature.  Merely
55288         compile it, since linking doesn't test signature.  Improve test for
55289         whether gettimeofday.o is actually needed.
55290         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55291         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55292         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55293         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55294         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55295         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55296         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55297         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55298         than worrying about sys/time.h.
55299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55300         Don't bother worrying about TIME_WITH_SYS_TIME.
55301         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55302         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55303         * m4/sys_time_h.m4: New file.
55304         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55305         Don't include sys/time.h.  Return from main rather than exiting.
55306         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55307         all uses changed.
55308         * modules/gethrxtime (Depends-on): Add sys_time.
55309         * modules/gettime (Depends-on): Likewise.
55310         * modules/gettimeofday (Depends-on): Likewise.
55311         * modules/nanosleep (Depends-on): Likewise.
55312         * modules/settime (Depends-on): Likewise.
55313         * modules/tempname (Depends-on): Likewise.
55314         * modules/utimens (Depends-on): Likewise.
55315         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55316         (Include): Change back to <sys/time.h>.
55317         (Maintainer): Add self.
55318         * modules/sys_time: New file.
55319         * modules/tempname (Depends-on): Add gettimeofday.
55320         * tests/test-gettimeofday.c: Include <sys/time.h>
55321         rather than gettimeofday.h.
55322
55323 2007-01-17  Bruno Haible  <bruno@clisp.org>
55324
55325         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55326         the license default to GPL.
55327         (func_create_testdir): Don't complain if a module is LGPL and its
55328         tests module depends on GPLed modules.
55329
55330 2007-01-17  Bruno Haible  <bruno@clisp.org>
55331
55332         * lib/gettimeofday.c (gettimeofday): Add code for the case
55333         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55334         maximum possible value for tv->tv_usec, rather than the minimum one.
55335
55336 2005-10-08  Martin Lambers  <marlam@marlam.de>
55337 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55338 2007-01-16  Bruno Haible  <bruno@clisp.org>
55339
55340         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55341         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55342         gl_FUNC_GETTIMEOFDAY.
55343         (Include): Add gettimeofday.h.
55344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55345         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55346         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55347         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55348         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55349         * lib/gettimeofday.h: New file.
55350         * lib/gettimeofday.c: Include <sys/timeb.h>.
55351         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55352         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55353         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55354         fall back on time().
55355
55356         * tests/test-gettimeofday.c: New file.
55357         * modules/gettimeofday-tests: New file.
55358
55359 2007-01-16  Eric Blake  <ebb9@byu.net>
55360
55361         * modules/fnmatch (Depends-on): Depend on wchar.
55362         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55363         * m4/fnmatch.m4: Likewise.
55364         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55365         * m4/mbchar.m4: Likewise.
55366         * modules/mbswidth (Depends-on): Depend on wchar.
55367         * lib/mbswidth.c: Assume <wchar.h>.
55368         * m4/mbswidth.m4: Likewise.
55369         * modules/quotearg (Depends-on): Depend on wchar.
55370         * lib/quotearg.c: Assume <wchar.h>.
55371         * m4/quotearg.m4: Likewise.
55372         * modules/regex (Depends-on): Depend on wchar.
55373         * lib/regex_internal.h: Assume <wchar.h>.
55374         * m4/regex.m4: Likewise.
55375         * modules/stdint (Depends-on): Depend on wchar.
55376         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55377         * m4/stdint.m4: Likewise.
55378         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55379         * modules/strftime (Depends-on): Depend on wchar.
55380         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55381         * modules/strtol (Depends-on): Depend on wchar.
55382         * lib/strtol.c: Assume <wchar.h>.
55383         * modules/wcwidth (Depends-on): Depend on wchar.
55384         * lib/wcwidth.h: Assume <wchar.h>.
55385         * m4/wcwidth.m4: Likewise.
55386
55387 2007-01-16  Bruno Haible  <bruno@clisp.org>
55388
55389         * modules/csharpexec-script: New, created from...
55390         * modules/csharpexec: ... this.
55391
55392 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55393
55394         * modules/javaexec-script: New, created from...
55395         * modules/javaexec: ... this.
55396
55397 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55398
55399         * modules/poll (Dependencies): Add sys_select.
55400
55401 2007-01-15  Jim Meyering  <jim@meyering.net>
55402
55403         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55404         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55405         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55406         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55407
55408 2007-01-15  Bruno Haible  <bruno@clisp.org>
55409
55410         * modules/striconveh: New file.
55411         * lib/striconveh.h: New file.
55412         * lib/striconveh.c: New file.
55413         * MODULES.html.sh (Internationalization functions): Add striconveh.
55414
55415         * modules/striconveh-tests: New file.
55416         * tests/test-striconveh.c: New file.
55417
55418 2007-01-15  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55421         not from GNU libiconv or GNU libc.
55422
55423 2007-01-15  Bruno Haible  <bruno@clisp.org>
55424
55425         * doc/gnulib-intro.texi (Copyright): Explain the different license
55426         terms for module descriptions, autoconf macros, tests, documentation.
55427
55428 2007-01-14  Bruno Haible  <bruno@clisp.org>
55429
55430         * modules/striconv-tests: New file.
55431         * tests/test-striconv.c: New file.
55432
55433 2007-01-14  Bruno Haible  <bruno@clisp.org>
55434
55435         * modules/iconv-tests: New file.
55436         * tests/test-iconv.c: New file.
55437
55438 2007-01-14  Bruno Haible  <bruno@clisp.org>
55439
55440         * gnulib-tool (func_get_license): For test modules, use the license of
55441         the main module.
55442
55443 2007-01-14  Bruno Haible  <bruno@clisp.org>
55444
55445         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55446         if iconv is found to exist.
55447
55448 2007-01-14  Bruno Haible  <bruno@clisp.org>
55449
55450         * modules/c-ctype-tests: New file.
55451         * tests/test-c-ctype.c: New file.
55452
55453 2007-01-14  Bruno Haible  <bruno@clisp.org>
55454
55455         * modules/binary-io-tests: New file.
55456         * tests/test-binary-io.sh: New file.
55457         * tests/test-binary-io.c: New file.
55458
55459 2007-01-14  Bruno Haible  <bruno@clisp.org>
55460
55461         * modules/array-oset-tests: New file.
55462         * tests/test-array_oset.c: New file.
55463
55464 2007-01-14  Bruno Haible  <bruno@clisp.org>
55465
55466         * modules/array-list-tests: New file.
55467         * tests/test-array_list.c: New file.
55468
55469 2007-01-14  Bruno Haible  <bruno@clisp.org>
55470
55471         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55472         and make.
55473         Reported by Simon Josefsson in
55474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55475
55476 2007-01-14  Bruno Haible  <bruno@clisp.org>
55477
55478         * modules/allocsa-tests: New file.
55479         * tests/test-allocsa.c: New file.
55480
55481 2007-01-14  Bruno Haible  <bruno@clisp.org>
55482
55483         * modules/fchdir (Depends-on): Add absolute-header.
55484         * modules/unistd (Depends-on): Likewise.
55485
55486 2006-12-30  Bruno Haible  <bruno@clisp.org>
55487
55488         * modules/fchdir: New file.
55489         * modules/unistd (Files): Add lib/unistd_.h.
55490         (Makefile.am): Generate unistd.h from unistd_.h.
55491         * lib/fchdir.c: New file.
55492         * lib/dirent_.h: New file.
55493         * lib/unistd_.h: New file.
55494         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55495         * m4/fchdir.m4: New file.
55496         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55497         (gl_HEADER_UNISTD): Invoke it.
55498         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55499         function.
55500         * lib/backupfile.c (opendir, closedir): Undefine.
55501         * lib/chown.c (open, close): Undefine.
55502         * lib/clean-temp.c (open, close): Undefine.
55503         * lib/copy-file.c (open, close): Undefine.
55504         * lib/execute.c (open, close): Undefine.
55505         * lib/fsusage.c (open, close): Undefine.
55506         * lib/gc-gnulib.c (open, close): Undefine.
55507         * lib/getcwd.c (opendir, closedir): Undefine.
55508         * lib/glob.c (opendir, closedir): Undefine.
55509         * lib/javacomp.c (open, close): Undefine.
55510         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55511         * lib/openat-proc.c (open, close): Undefine.
55512         * lib/pagealign_alloc.c (open, close): Undefine.
55513         * lib/pipe.c (open, close): Undefine.
55514         * lib/progreloc.c (open, close): Undefine.
55515         * lib/savedir.c (opendir, closedir): Undefine.
55516         * lib/utime.c (open, close): Undefine.
55517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55518
55519 2007-01-10  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55522
55523 2007-01-12  Eric Blake  <ebb9@byu.net>
55524
55525         Provide a robust <wchar.h>.  Further simplifications are now
55526         possible in other modules, but not included here.
55527         * modules/wchar: New module.
55528         * m4/wchar.m4: New file.
55529         * lib/wchar_.h: Likewise.
55530         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55531         of the new module.
55532         * MODULES.html.sh (Extended multibyte and wide character utilities):
55533         New section.
55534
55535 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55536
55537         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55538         to a reasonable default for memory allocation.
55539         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55540         file system that reports garbage st_size values for symlinks.
55541         Problem reported by Liyang Hu.
55542
55543 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55544
55545         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55546         Emacs .#* auto-save files).
55547
55548 2007-01-11  Bruno Haible  <bruno@clisp.org>
55549
55550         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55551         directory.
55552
55553 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55554
55555         Use @...@ consistently in lib/wctype_.h.
55556         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55557         on it being set to 1 or 0.
55558         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55559         go back to AC_SUBSTing it.
55560         * modules/wctype (Makefile.am): Undo previous change.
55561
55562 2007-01-10  Eric Blake  <ebb9@byu.net>
55563
55564         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55565         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55566         * modules/wctype (Makefile.am): Likewise.
55567         Reported by Chris McGuire.
55568
55569 2007-01-10  Jim Meyering  <jim@meyering.net>
55570
55571         fts.c: a small readability/maintainability improvement
55572         * lib/fts.c (fts_read): Make this code slightly more readable and
55573         maintainable by hoisting the "sp->fts_cur = p" assignments to
55574         immediately follow the statements that set P.  Derived from
55575         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55576
55577 2007-01-10  Eric Blake  <ebb9@byu.net>
55578
55579         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55580         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55582         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55583         Reported by Chris McGuire.
55584
55585 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55586
55587         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55588         in sed script.
55589
55590 2007-01-09  Bruno Haible  <bruno@clisp.org>
55591
55592         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55593         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55594         variables.
55595         (func_module): Use them.
55596
55597 2007-01-09  Bruno Haible  <bruno@clisp.org>
55598
55599         * modules/unistr/base: New file.
55600         * lib/unistr.h: New file.
55601
55602         * modules/unistr/u8-to-u16: New file.
55603         * lib/unistr/u8-to-u16.c: New file.
55604
55605         * modules/unistr/u8-to-u32: New file.
55606         * lib/unistr/u8-to-u32.c: New file.
55607
55608         * modules/unistr/u16-to-u8: New file.
55609         * lib/unistr/u16-to-u8.c: New file.
55610
55611         * modules/unistr/u16-to-u32: New file.
55612         * lib/unistr/u16-to-u32.c: New file.
55613
55614         * modules/unistr/u32-to-u8: New file.
55615         * lib/unistr/u32-to-u8.c: New file.
55616
55617         * modules/unistr/u32-to-u16: New file.
55618         * lib/unistr/u32-to-u16.c: New file.
55619
55620         * modules/unistr/u8-check: New file.
55621         * modules/unistr/u16-check: New file.
55622         * modules/unistr/u32-check: New file.
55623         * lib/unistr/u8-check.c: New file.
55624         * lib/unistr/u16-check.c: New file.
55625         * lib/unistr/u32-check.c: New file.
55626
55627         * modules/unistr/u8-chr: New file.
55628         * modules/unistr/u16-chr: New file.
55629         * modules/unistr/u32-chr: New file.
55630         * lib/unistr/u8-chr.c: New file.
55631         * lib/unistr/u16-chr.c: New file.
55632         * lib/unistr/u32-chr.c: New file.
55633
55634         * modules/unistr/u8-cmp: New file.
55635         * modules/unistr/u16-cmp: New file.
55636         * modules/unistr/u32-cmp: New file.
55637         * lib/unistr/u8-cmp.c: New file.
55638         * lib/unistr/u16-cmp.c: New file.
55639         * lib/unistr/u32-cmp.c: New file.
55640
55641         * modules/unistr/u8-cpy: New file.
55642         * modules/unistr/u16-cpy: New file.
55643         * modules/unistr/u32-cpy: New file.
55644         * lib/unistr/u8-cpy.c: New file.
55645         * lib/unistr/u16-cpy.c: New file.
55646         * lib/unistr/u32-cpy.c: New file.
55647         * lib/unistr/u-cpy.h: New file.
55648
55649         * modules/unistr/u8-cpy-alloc: New file.
55650         * modules/unistr/u16-cpy-alloc: New file.
55651         * modules/unistr/u32-cpy-alloc: New file.
55652         * lib/unistr/u8-cpy-alloc.c: New file.
55653         * lib/unistr/u16-cpy-alloc.c: New file.
55654         * lib/unistr/u32-cpy-alloc.c: New file.
55655         * lib/unistr/u-cpy-alloc.h: New file.
55656
55657         * modules/unistr/u8-endswith: New file.
55658         * modules/unistr/u16-endswith: New file.
55659         * modules/unistr/u32-endswith: New file.
55660         * lib/unistr/u8-endswith.c: New file.
55661         * lib/unistr/u16-endswith.c: New file.
55662         * lib/unistr/u32-endswith.c: New file.
55663         * lib/unistr/u-endswith.h: New file.
55664
55665         * modules/unistr/u8-mblen: New file.
55666         * modules/unistr/u16-mblen: New file.
55667         * modules/unistr/u32-mblen: New file.
55668         * lib/unistr/u8-mblen.c: New file.
55669         * lib/unistr/u16-mblen.c: New file.
55670         * lib/unistr/u32-mblen.c: New file.
55671
55672         * modules/unistr/u8-mbtouc: New file.
55673         * modules/unistr/u16-mbtouc: New file.
55674         * modules/unistr/u32-mbtouc: New file.
55675         * lib/unistr/u8-mbtouc.c: New file.
55676         * lib/unistr/u16-mbtouc.c: New file.
55677         * lib/unistr/u32-mbtouc.c: New file.
55678
55679         * modules/unistr/u8-mbtouc-safe: New file.
55680         * modules/unistr/u16-mbtouc-safe: New file.
55681         * modules/unistr/u32-mbtouc-safe: New file.
55682         * lib/unistr/u8-mbtouc-safe.c: New file.
55683         * lib/unistr/u16-mbtouc-safe.c: New file.
55684         * lib/unistr/u32-mbtouc-safe.c: New file.
55685
55686         * modules/unistr/u8-move: New file.
55687         * modules/unistr/u16-move: New file.
55688         * modules/unistr/u32-move: New file.
55689         * lib/unistr/u8-move.c: New file.
55690         * lib/unistr/u16-move.c: New file.
55691         * lib/unistr/u32-move.c: New file.
55692         * lib/unistr/u-move.h: New file.
55693
55694         * modules/unistr/u8-next: New file.
55695         * modules/unistr/u16-next: New file.
55696         * modules/unistr/u32-next: New file.
55697         * lib/unistr/u8-next.c: New file.
55698         * lib/unistr/u16-next.c: New file.
55699         * lib/unistr/u32-next.c: New file.
55700
55701         * modules/unistr/u8-prev: New file.
55702         * modules/unistr/u16-prev: New file.
55703         * modules/unistr/u32-prev: New file.
55704         * lib/unistr/u8-prev.c: New file.
55705         * lib/unistr/u16-prev.c: New file.
55706         * lib/unistr/u32-prev.c: New file.
55707
55708         * modules/unistr/u8-set: New file.
55709         * modules/unistr/u16-set: New file.
55710         * modules/unistr/u32-set: New file.
55711         * lib/unistr/u8-set.c: New file.
55712         * lib/unistr/u16-set.c: New file.
55713         * lib/unistr/u32-set.c: New file.
55714         * lib/unistr/u-set.h: New file.
55715
55716         * modules/unistr/u8-startswith: New file.
55717         * modules/unistr/u16-startswith: New file.
55718         * modules/unistr/u32-startswith: New file.
55719         * lib/unistr/u8-startswith.c: New file.
55720         * lib/unistr/u16-startswith.c: New file.
55721         * lib/unistr/u32-startswith.c: New file.
55722         * lib/unistr/u-startswith.h: New file.
55723
55724         * modules/unistr/u8-stpcpy: New file.
55725         * modules/unistr/u16-stpcpy: New file.
55726         * modules/unistr/u32-stpcpy: New file.
55727         * lib/unistr/u8-stpcpy.c: New file.
55728         * lib/unistr/u16-stpcpy.c: New file.
55729         * lib/unistr/u32-stpcpy.c: New file.
55730         * lib/unistr/u-stpcpy.h: New file.
55731
55732         * modules/unistr/u8-stpncpy: New file.
55733         * modules/unistr/u16-stpncpy: New file.
55734         * modules/unistr/u32-stpncpy: New file.
55735         * lib/unistr/u8-stpncpy.c: New file.
55736         * lib/unistr/u16-stpncpy.c: New file.
55737         * lib/unistr/u32-stpncpy.c: New file.
55738         * lib/unistr/u-stpncpy.h: New file.
55739
55740         * modules/unistr/u8-strcat: New file.
55741         * modules/unistr/u16-strcat: New file.
55742         * modules/unistr/u32-strcat: New file.
55743         * lib/unistr/u8-strcat.c: New file.
55744         * lib/unistr/u16-strcat.c: New file.
55745         * lib/unistr/u32-strcat.c: New file.
55746         * lib/unistr/u-strcat.h: New file.
55747
55748         * modules/unistr/u8-strchr: New file.
55749         * modules/unistr/u16-strchr: New file.
55750         * modules/unistr/u32-strchr: New file.
55751         * lib/unistr/u8-strchr.c: New file.
55752         * lib/unistr/u16-strchr.c: New file.
55753         * lib/unistr/u32-strchr.c: New file.
55754
55755         * modules/unistr/u8-strcmp: New file.
55756         * modules/unistr/u16-strcmp: New file.
55757         * modules/unistr/u32-strcmp: New file.
55758         * lib/unistr/u8-strcmp.c: New file.
55759         * lib/unistr/u16-strcmp.c: New file.
55760         * lib/unistr/u32-strcmp.c: New file.
55761
55762         * modules/unistr/u8-strcpy: New file.
55763         * modules/unistr/u16-strcpy: New file.
55764         * modules/unistr/u32-strcpy: New file.
55765         * lib/unistr/u8-strcpy.c: New file.
55766         * lib/unistr/u16-strcpy.c: New file.
55767         * lib/unistr/u32-strcpy.c: New file.
55768         * lib/unistr/u-strcpy.h: New file.
55769
55770         * modules/unistr/u8-strcspn: New file.
55771         * modules/unistr/u16-strcspn: New file.
55772         * modules/unistr/u32-strcspn: New file.
55773         * lib/unistr/u8-strcspn.c: New file.
55774         * lib/unistr/u16-strcspn.c: New file.
55775         * lib/unistr/u32-strcspn.c: New file.
55776         * lib/unistr/u-strcspn.h: New file.
55777
55778         * modules/unistr/u8-strdup: New file.
55779         * modules/unistr/u16-strdup: New file.
55780         * modules/unistr/u32-strdup: New file.
55781         * lib/unistr/u8-strdup.c: New file.
55782         * lib/unistr/u16-strdup.c: New file.
55783         * lib/unistr/u32-strdup.c: New file.
55784         * lib/unistr/u-strdup.h: New file.
55785
55786         * modules/unistr/u8-strlen: New file.
55787         * modules/unistr/u16-strlen: New file.
55788         * modules/unistr/u32-strlen: New file.
55789         * lib/unistr/u8-strlen.c: New file.
55790         * lib/unistr/u16-strlen.c: New file.
55791         * lib/unistr/u32-strlen.c: New file.
55792         * lib/unistr/u-strlen.h: New file.
55793
55794         * modules/unistr/u8-strmblen: New file.
55795         * modules/unistr/u16-strmblen: New file.
55796         * modules/unistr/u32-strmblen: New file.
55797         * lib/unistr/u8-strmblen.c: New file.
55798         * lib/unistr/u16-strmblen.c: New file.
55799         * lib/unistr/u32-strmblen.c: New file.
55800
55801         * modules/unistr/u8-strmbtouc: New file.
55802         * modules/unistr/u16-strmbtouc: New file.
55803         * modules/unistr/u32-strmbtouc: New file.
55804         * lib/unistr/u8-strmbtouc.c: New file.
55805         * lib/unistr/u16-strmbtouc.c: New file.
55806         * lib/unistr/u32-strmbtouc.c: New file.
55807
55808         * modules/unistr/u8-strncat: New file.
55809         * modules/unistr/u16-strncat: New file.
55810         * modules/unistr/u32-strncat: New file.
55811         * lib/unistr/u8-strncat.c: New file.
55812         * lib/unistr/u16-strncat.c: New file.
55813         * lib/unistr/u32-strncat.c: New file.
55814         * lib/unistr/u-strncat.h: New file.
55815
55816         * modules/unistr/u8-strncmp: New file.
55817         * modules/unistr/u16-strncmp: New file.
55818         * modules/unistr/u32-strncmp: New file.
55819         * lib/unistr/u8-strncmp.c: New file.
55820         * lib/unistr/u16-strncmp.c: New file.
55821         * lib/unistr/u32-strncmp.c: New file.
55822
55823         * modules/unistr/u8-strncpy: New file.
55824         * modules/unistr/u16-strncpy: New file.
55825         * modules/unistr/u32-strncpy: New file.
55826         * lib/unistr/u8-strncpy.c: New file.
55827         * lib/unistr/u16-strncpy.c: New file.
55828         * lib/unistr/u32-strncpy.c: New file.
55829         * lib/unistr/u-strncpy.h: New file.
55830
55831         * modules/unistr/u8-strnlen: New file.
55832         * modules/unistr/u16-strnlen: New file.
55833         * modules/unistr/u32-strnlen: New file.
55834         * lib/unistr/u8-strnlen.c: New file.
55835         * lib/unistr/u16-strnlen.c: New file.
55836         * lib/unistr/u32-strnlen.c: New file.
55837         * lib/unistr/u-strnlen.h: New file.
55838
55839         * modules/unistr/u8-strpbrk: New file.
55840         * modules/unistr/u16-strpbrk: New file.
55841         * modules/unistr/u32-strpbrk: New file.
55842         * lib/unistr/u8-strpbrk.c: New file.
55843         * lib/unistr/u16-strpbrk.c: New file.
55844         * lib/unistr/u32-strpbrk.c: New file.
55845         * lib/unistr/u-strpbrk.h: New file.
55846
55847         * modules/unistr/u8-strrchr: New file.
55848         * modules/unistr/u16-strrchr: New file.
55849         * modules/unistr/u32-strrchr: New file.
55850         * lib/unistr/u8-strrchr.c: New file.
55851         * lib/unistr/u16-strrchr.c: New file.
55852         * lib/unistr/u32-strrchr.c: New file.
55853
55854         * modules/unistr/u8-strspn: New file.
55855         * modules/unistr/u16-strspn: New file.
55856         * modules/unistr/u32-strspn: New file.
55857         * lib/unistr/u8-strspn.c: New file.
55858         * lib/unistr/u16-strspn.c: New file.
55859         * lib/unistr/u32-strspn.c: New file.
55860         * lib/unistr/u-strspn.h: New file.
55861
55862         * modules/unistr/u8-strstr: New file.
55863         * modules/unistr/u16-strstr: New file.
55864         * modules/unistr/u32-strstr: New file.
55865         * lib/unistr/u8-strstr.c: New file.
55866         * lib/unistr/u16-strstr.c: New file.
55867         * lib/unistr/u32-strstr.c: New file.
55868         * lib/unistr/u-strstr.h: New file.
55869
55870         * modules/unistr/u8-strtok: New file.
55871         * modules/unistr/u16-strtok: New file.
55872         * modules/unistr/u32-strtok: New file.
55873         * lib/unistr/u8-strtok.c: New file.
55874         * lib/unistr/u16-strtok.c: New file.
55875         * lib/unistr/u32-strtok.c: New file.
55876         * lib/unistr/u-strtok.h: New file.
55877
55878         * modules/unistr/u8-uctomb: New file.
55879         * modules/unistr/u16-uctomb: New file.
55880         * modules/unistr/u32-uctomb: New file.
55881         * lib/unistr/u8-uctomb.c: New file.
55882         * lib/unistr/u16-uctomb.c: New file.
55883         * lib/unistr/u32-uctomb.c: New file.
55884
55885         * MODULES.html.sh (Unicode string functions): Add the new modules.
55886
55887 2007-01-08  Bruno Haible  <bruno@clisp.org>
55888
55889         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55890         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55891         subdirectories.
55892
55893 2007-01-08  Karl Berry  <karl@gnu.org>
55894
55895         * doc/error.texi: mention that main() fns must set program_name
55896         when progname is used.
55897
55898 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55901         WCTYPE_H is empty, for the benefit of builds from non-distclean
55902         directories.  Problem reported by Eric Blake in
55903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55904
55905 2007-01-08  Bruno Haible  <bruno@clisp.org>
55906
55907         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55908         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55909         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55910         PROVIDE_CANONICALIZE_FILENAME_MODE.
55911         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55912
55913 2007-01-08  Bruno Haible  <bruno@clisp.org>
55914
55915         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55916         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55917         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55918         * lib/fts.c: Likewise.
55919         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55920
55921 2006-12-25  Bruno Haible  <bruno@clisp.org>
55922
55923         * modules/utf8-ucs4-safe: New file.
55924         * lib/utf8-ucs4-safe.h: New file.
55925         * lib/unistr/utf8-ucs4-safe.c: New file.
55926
55927         * modules/utf16-ucs4-safe: New file.
55928         * lib/utf16-ucs4-safe.h: New file.
55929         * lib/unistr/utf16-ucs4-safe.c: New file.
55930
55931         * MODULES.html.sh (Unicode string functions): Add the new modules.
55932
55933 2007-01-08  Bruno Haible  <bruno@clisp.org>
55934
55935         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55936         (Depends-on): Add unitypes.
55937         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55938         (u8_mbtouc_aux): Move out to separate file.
55939         (u8_mbtouc): Use ucs4_t, uint8_t types.
55940         * lib/unistr/utf8-ucs4.c: New file.
55941
55942         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55943         (Depends-on): Add unitypes.
55944         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55945         (u16_mbtouc_aux): Move out to separate file.
55946         (u16_mbtouc): Use ucs4_t, uint16_t types.
55947         * lib/unistr/utf16-ucs4.c: New file.
55948
55949         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55950         (Depends-on): Add unitypes.
55951         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55952         (u8_uctomb_aux): Move out to separate file.
55953         (u8_uctomb): Use ucs4_t, uint8_t types.
55954         * lib/unistr/ucs4-utf8.c: New file.
55955
55956         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55957         (Depends-on): Add unitypes.
55958         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55959         (u16_uctomb_aux): Move out to separate file.
55960         (u16_uctomb): Use ucs4_t, uint16_t types.
55961         * lib/unistr/ucs4-utf16.c: New file.
55962
55963 2006-12-25  Bruno Haible  <bruno@clisp.org>
55964
55965         * modules/unitypes: New file.
55966         * lib/unitypes.h: New file.
55967         * MODULES.html.sh (func_all_modules): New section "Unicode string
55968         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55969         this section. Add unitypes.
55970
55971 2007-01-08  Bruno Haible  <bruno@clisp.org>
55972
55973         Avoid variable names that conflict with those from libtool.
55974         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55975         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55976         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55977         library_names_spec to acl_library_names_spec, hardcode_* to
55978         acl_hardcode_*.
55979         Reported by Ralf Wildenhues.
55980
55981 2007-01-08  Bruno Haible  <bruno@clisp.org>
55982
55983         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55984         definition.
55985         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55986         definition.
55987         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55988         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55989         definition.
55990         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55991         definition.
55992         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55993         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55994         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55995         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55996         definition.
55997         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55998         definition.
55999         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56000         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56001         GC_USE_<algorithm>.
56002         * lib/gc-libgcrypt.c: Likewise.
56003         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56004         * modules/gc-arctwo (configure.ac): Likewise.
56005         * modules/gc-des (configure.ac): Likewise.
56006         * modules/gc-hmac-md5 (configure.ac): Likewise.
56007         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56008         * modules/gc-md2 (configure.ac): Likewise.
56009         * modules/gc-md4 (configure.ac): Likewise.
56010         * modules/gc-md5 (configure.ac): Likewise.
56011         * modules/gc-random (configure.ac): Likewise.
56012         * modules/gc-rijndael (configure.ac): Likewise.
56013         * modules/gc-sha1 (configure.ac): Likewise.
56014
56015 2007-01-08  Bruno Haible  <bruno@clisp.org>
56016
56017         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56018         macro definition.
56019         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56020         definition.
56021         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56022         definition.
56023         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56024         * modules/fcntl-safer (configure.ac): Likewise.
56025         * modules/fopen-safer (configure.ac): Likewise.
56026         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56027         GNULIB_FWRITEERROR macro definition.
56028
56029 2007-01-08  Bruno Haible  <bruno@clisp.org>
56030
56031         * m4/gnulib-common.m4: New file.
56032         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56033         (func_get_filelist): Add m4/gnulib-common.m4.
56034
56035 2007-01-08  Bruno Haible  <bruno@clisp.org>
56036
56037         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56038         command.
56039
56040 2007-01-08  Jim Meyering  <jim@meyering.net>
56041
56042         Use a more robust test for a "can't happen" condition.
56043         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56044         narrowed the st_size value.  Presuming the "can't happen" condition
56045         is true, that narrowing could conceivably convert an invalid st_size
56046         value into a valid one.  Instead, use a change based on Matthew
56047         Woehlke's original patch.
56048
56049         Slight readability improvement: use an assert-like macro
56050         in place of literal "abort ()" uses.
56051         * lib/fts.c (fts_assert): Define.
56052         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56053         Use this macro instead of a bare 'abort'.
56054
56055 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56056
56057         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56058         simply work around them.
56059         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56060         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56061         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56062         declaring.
56063         Don't bother to define as macros, since the standard doesn't require it.
56064         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56065         longer worry about IRIX 5.3.
56066         (HAVE_WCTYPE_CTMP_BUG): Remove.
56067
56068 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56069
56070         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56071         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56072         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56073         Problems reported by Georg Schwarz for IRIX 5.3.
56074
56075         * gnulib-tool (autoconf_minversion): Take the maximum version number
56076         found, not the minimum.  Problem reported by James Youngman.
56077
56078 2007-01-03  Karl Berry  <karl@gnu.org>
56079
56080         * doc/error.texi: new file, explaining interaction with progname.
56081         * doc/gnulib.texi: include it.  Update copyright.
56082
56083 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56084
56085         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56086         AC_CANONICAL_HOST, to improve autobuild outputs.
56087
56088 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56089             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56090
56091         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56092         sockets, server sockets, and other file descriptors.  Count errors
56093         to compute the return value.  Reorder the code a bit to be easier
56094         to follow.  Don't set event bits that were not requested (except
56095         POLLERR and POLLHUP).
56096
56097 2007-01-01  Bruno Haible  <bruno@clisp.org>
56098
56099         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56100
56101 2007-01-03  Jim Meyering  <jim@meyering.net>
56102
56103         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56104
56105 2007-01-02  Bruno Haible  <bruno@clisp.org>
56106
56107         * modules/settime (Include): Require timespec.h.
56108         * modules/nanosleep (Include): Likewise.
56109
56110 2007-01-01  Bruno Haible  <bruno@clisp.org>
56111
56112         * gnulib-tool (func_emit_copyright_notice): Bump year.
56113         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56114
56115 2007-01-01  Bruno Haible  <bruno@clisp.org>
56116
56117         Improve support for OpenBSD.
56118         * build-aux/config.rpath (libname_spec): Export.
56119         (library_names_spec): New variable. Export.
56120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56121         library_names_spec from the config.rpath output. Locate shared library
56122         through the name pattern in library_names_spec.
56123
56124 2007-01-01  Eric Blake  <ebb9@byu.net>
56125
56126         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56127
56128 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56129
56130         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56131         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56132         assume the C locale, and avoid an "eval" that could cause trouble.
56133         Problem with SORT reported by Bob Proulx.
56134
56135         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56136         Define.  Trivial patch from Henning Nielsen Lund, originally
56137         sent to bug-grep@gnu.org today.
56138
56139 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56142         struct stat.  Problem reported by Henning Nielsen Lund.
56143         * lib/acl.c: Include acl.h first, to check interface.  Don't
56144         bother to include sys/types.h and sys/stat.h again.
56145
56146 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56147
56148         Import the following change from libc; problem reported by
56149         Sven Verdoolaege.
56150
56151         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56152
56153         [BZ #1373]
56154         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56155
56156 2006-12-28  Jim Meyering  <jim@meyering.net>
56157
56158         * build-aux/announce-gen: Do not assume that the package
56159         builds any of tar.gz, tar.bz2, and .xdelta files.
56160         Suggestion from Simon Josefsson.
56161
56162 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56163
56164         * modules/announce-gen: New file.
56165
56166 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56167
56168         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56169         handles its gotchas now.
56170         * lib/mbswidth.c: Likewise.
56171         * lib/wcwidth.h: Likewise.
56172         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56173         and iswcntrl; the wctype module does this stuff now.
56174         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56176         * modules/mbchar (Depends-on): Add wctype.
56177         * modules/mbswidth (Depends-on): Likewise.
56178         * modules/wcwidth (Depends-on): Likewise.
56179
56180 2006-12-27  Eric Blake  <ebb9@byu.net>
56181
56182         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56183         module uses more than what <wctype.h> is required to provide.
56184
56185 2006-12-26  Eric Blake  <ebb9@byu.net>
56186
56187         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56188
56189 2006-12-26  Eric Blake  <ebb9@byu.net>
56190
56191         * modules/absolute-header: New module.
56192         * modules/fcntl (Depends-on): Depend on it.
56193         * modules/inttypes (Depends-on): Likewise.
56194         * modules/stdint (Depends-on): Likewise.
56195         * modules/sys_stat (Depends-on): Likewise.
56196         * modules/wctype (Depends-on): Likewise.
56197         * MODULES.html.sh (Support for building libraries and
56198         executables): Document it.
56199
56200 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56201
56202         * gnulib-tool (SED): Remove, undoing previous change.
56203         The problem was that it broke coreutils on Solaris, because
56204         "sed --posix" leaked into a makefile.
56205         (sed): New alias, if 'alias' and GNU sed.
56206
56207 2006-12-24  Jim Meyering  <jim@meyering.net>
56208
56209         Work around an fchownat bug in glibc-2.4:
56210         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56211         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56212         in spite of the -P option.
56213         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56214         New macros.
56215         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56216         * modules/openat (Files): Add lib/fchownat.c.
56217         * lib/openat.c (fchownat): Don't define here.  Move to...
56218         * lib/fchownat.c: ...this new file.
56219
56220 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56221
56222         Fix bug reported by Bruno Haible in
56223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56224         where quotearg.c didn't compile on Mac OS X 10.2 because it
56225         lacks <wchar.h> and wint_t.
56226         * lib/wctype_.h (__wctype_wint_t): New type.
56227         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56228         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56229         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56230         Arg is now of type __wctype_wint_t, not wint_t.
56231         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56232         substitute HAVE_WINT_T.
56233         * modules/wctype (Files): Add m4/wint_t.m4.
56234         (wctype.h): Substitute HAVE_WINT_T.
56235
56236 2006-12-23  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56239
56240 2006-12-23  Bruno Haible  <bruno@clisp.org>
56241
56242         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56243         S_ISLNK.
56244         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56245         mingw.
56246
56247 2006-12-22  Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/copy-file.c: Include acl.h.
56250         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56251         Close the file descriptors only after being done with copy_acl.
56252         * modules/copy-file (Depends-on): Add acl.
56253
56254 2006-12-22  Bruno Haible  <bruno@clisp.org>
56255
56256         * gnulib-tool (SED): New variable.
56257         Use $SED instead of sed everywhere.
56258
56259 2006-12-22  Bruno Haible  <bruno@clisp.org>
56260
56261         * modules/no-c++: New file.
56262         * m4/no-c++.m4: New file.
56263         * MODULES.html.sh (Support for building libraries and executables):
56264         Add no-c++.
56265
56266 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56267
56268         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56269         Include <limits.h>, and use its INT_MAX to rewrite the
56270         j loop so that it does not overflow 'int'.  Problem reported by
56271         Ralf Wildenhues in
56272         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56273         Play it safe by shifting left by 1 rather than multiplying by 2,
56274         as GCC is less likely to optimize this away when the value
56275         is signed (when it assumes overflow leads to undefined behavior).
56276         Also, don't assume time_t uses two's complement.
56277
56278 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56279
56280         * MODULES.html.sh: New module wctype.
56281         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56282         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56283         <wctype.h>, since the new wctype module should fix this.
56284         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56285         the wctype module should arrange for it.
56286         * lib/regex_internal.h: Likewise.
56287         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56288         since the wctype module should handle this now.
56289         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56290         * modules/fnmatch (Depends-on): Add wctype.
56291         * modules/quotearg (Depends-on): Likewise.
56292         * modules/regex (Depends-on): Likewise.
56293
56294 2006-12-19  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56297         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56298
56299 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56300
56301         * modules/savewd (Depends-on): Fix dependency on fcntl.
56302
56303 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56304
56305         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56306         conforms to C99, rather than relying on the user's environment
56307         setting of STDINT_H.
56308
56309 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56310         and Eric Blake  <ebb9@byu.net>
56311
56312         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56313         This is more consistent with the other defines here.
56314         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56315         Port to z/OS.  Problem reported by Paul Gilmartin.
56316         Change local vars to use gl_ prefix rather than ac_.
56317         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56318         with other defines.
56319         * modules/double-slash-root: New module.
56320         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56321         (Depends-on): Add double-slash-root.
56322         * MODULES.html.sh (File system functions): Mention new module.
56323
56324 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56325
56326         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56327         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56328         This is for the benefit of gzip, which doesn't do i18n.
56329
56330 2006-12-12  Jim Meyering  <jim@meyering.net>
56331
56332         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56333         Reported by Andreas Schwab <schwab@suse.de>.
56334
56335 2006-12-12  Bruno Haible  <bruno@clisp.org>
56336
56337         Merge these changes.
56338         2006-09-05  Bruno Haible  <bruno@clisp.org>
56339         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56340         iconv_alloc succeeded.
56341         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56342         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56343         test for " && dest " at the end - dest is always != NULL there. Call
56344         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56345         with 2xNULL arguments, also to flush the state storage. Handle the
56346         IRIX iconv behaviour. Realloc the final result, to throw away unused
56347         memory.
56348
56349 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56350
56351         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56352         and fchmodat unconditionally, since glibc 2.4 has them.
56353         Problem reported by Arkadiusz Miskiewicz.
56354
56355 2006-12-10  Bruno Haible  <bruno@clisp.org>
56356
56357         * gnulib-tool (func_import): Show the include files only for those
56358         modules that are copied and specified.
56359         Reported by Karl Berry.
56360
56361 2006-12-08  Jim Meyering  <jim@meyering.net>
56362
56363         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56364         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56365
56366         * build-aux/announce-gen: Add two new options, both optional:
56367         --bootstrap-tools=TOOL_LIST
56368               a comma-separated list of tools, e.g.,
56369               autoconf,automake,bison,gnulib
56370         --gnulib-snapshot-date=DATE
56371               if gnulib is in the bootstrap tool list,
56372               then report this as the snapshot date.
56373               If not specified, use the current date/time.
56374               If you specify a date here, be sure it's UTC.
56375
56376 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56377
56378         * tests/test-argp-2.sh: Fix test to match actual output.
56379         (func_compare): Fix sed script to be portable.
56380
56381 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56382
56383         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56384         workaround for this case.  It is not autoconfigured now; offhand
56385         it's hard to see how to autoconfigure it.
56386
56387 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56390         a directory that is about to be chowned.  Such a directory's
56391         initial file permissions should permit the owner only and this
56392         should not be changed until after the chown, since the group and
56393         other bits would be incorrect if they granted permission before
56394         the chown.
56395
56396         Fix porting problem for iswctype reported by Georg Schwarz in:
56397         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56398         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56399         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56400         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56401         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56402
56403 2006-12-03  Jim Meyering  <jim@meyering.net>
56404
56405         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56406         p->fts_statp may not yet be defined.
56407         (fts_read): Instead, set it in the caller, once p->fts_statp is
56408         sure to be defined, and corresponds to a top-level directory.
56409         This bug made du -x fail.  Here's the coreutils test case:
56410         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56411         Reported by Mike Frysinger.
56412
56413 2006-12-01  Jim Meyering  <jim@meyering.net>
56414
56415         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56416         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56417         Reported by Simon Josefsson.
56418
56419 2006-11-30  Jim Meyering  <jim@meyering.net>
56420
56421         * m4/warning.m4: Use the all-permissive copyright notice
56422         recommended by RMS (rather than LGPL).
56423         * m4/vararrays.m4: Likewise.
56424         * m4/flexmember.m4: Likewise.
56425
56426 2006-11-29  Bruno Haible  <bruno@clisp.org>
56427
56428         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56429         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56430         using +=.
56431         Reported by Simon Josefsson <simon@josefsson.org>.
56432
56433 2006-11-28  James Youngman <jay@gnu.org>
56434
56435         * README: Advise users that they might find the bug-gnulib@gnu.org
56436         and autotools-announce@gnu.org mailing lists useful.
56437
56438 2006-11-28  Bruno Haible  <bruno@clisp.org>
56439
56440         * m4/ptrdiff_max.m4: Remove file.
56441
56442 2006-11-21  Bruno Haible  <bruno@clisp.org>
56443
56444         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56445         _AC_COMPUTE_INT.
56446         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56447         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56448         _AC_COMPUTE_INT.
56449         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56450         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56451         _AC_COMPUTE_INT.
56452         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56453
56454 2006-11-28  Jim Meyering  <jim@meyering.net>
56455
56456         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56457         warning from "gcc -Wshadow" about shadowing the builtin.
56458
56459 2006-11-27  Bruno Haible  <bruno@clisp.org>
56460
56461         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56462         _AC_COMPUTE_INT.
56463         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56464
56465 2006-11-27  Bruno Haible  <bruno@clisp.org>
56466             Paul Eggert  <eggert@cs.ucla.edu>
56467
56468         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56469
56470 2006-11-26  Bruno Haible  <bruno@clisp.org>
56471
56472         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56473         noinst_LTLIBRARIES.
56474
56475 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56476             Bruno Haible  <bruno@clisp.org>
56477
56478         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56479         if compiling with "gcc -ansi".
56480
56481 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56482
56483         Fix some incompatibilities with gcc -ansi -pedantic.
56484         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56485         if compiling pedantically with GCC, unless it's C99 or later.
56486         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56487         it mishandles gcc -ansi -pedantic as well.
56488         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56489         if gcc -pedantic.
56490         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56491         initializers for struct if -pedantic, unless it's C99 or later.
56492
56493 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56494
56495         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56496         Don't close an fd more than once. Identical atimes indicate
56497         success, not failure.
56498
56499 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56500
56501         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56502
56503 2006-11-23  Jim Meyering  <jim@meyering.net>
56504
56505         * build-aux/announce-gen: New file.  From coreutils.
56506
56507 2006-11-22  Jim Meyering  <jim@meyering.net>
56508
56509         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56510         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56511         (fts_read): Use a temporary to narrow the overused st_size member
56512         before using it in a switch statement.  Reported by Matthew Woehlke.
56513
56514         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56515         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56516
56517 2006-11-20  Bruno Haible  <bruno@clisp.org>
56518
56519         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56520         changequote instead of pairs of brackets.
56521         Reported by Andreas Schwab <schwab@suse.de>.
56522
56523 2006-11-21  Jim Meyering  <jim@meyering.net>
56524
56525         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56526         so as to remain compatible with older compilers.
56527         Patch from Michael Deutschmann.
56528
56529 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56530
56531         * MODULES.html.sh (File system functions): Add openat.
56532
56533         * lib/openat.h (rpl_fstatat): New macro, if
56534         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56535         (fstatat): Define to rpl_fstatat under the same conditions,
56536         unless COMPILING_FSTATAT.
56537         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56538         seems to have the bug.
56539         * lib/fstatat.c: New file.
56540         * modules/openat (Files): Add it.
56541
56542 2006-11-20  Bruno Haible  <bruno@clisp.org>
56543
56544         * Makefile: New file.
56545
56546 2006-11-20  Jim Meyering  <jim@meyering.net>
56547
56548         The beginnings of syntax-related checks for gnulib.
56549         * lib/Makefile: New file.
56550         * lib/t-idcache: New script.  Ensure that the two halves of
56551         idcache.c stay in sync.
56552
56553         * lib/idcache.c: Adjust comments in user- and group- portions to
56554         be more accurate, and to be consistent with one another.
56555
56556 2006-11-20  Jim Meyering  <jim@meyering.net>
56557
56558         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56559         continue using the flexible array member (thus, this module performs
56560         half as many malloc calls), with the addition that...
56561         (getgroup, getuser): Consistently record a non-match via an empty
56562         "name" string, and map an empty string match to a NULL return value.
56563         * modules/idcache (Depends-on): Re-add flexmember.
56564
56565         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56566         (getuidbyname, getgroup, getgidbyname): Likewise.
56567
56568         Use cleaner syntax: NULL rather than 0.
56569         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56570
56571 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56572
56573         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56574         It mishandled the case where the group was missing.
56575         Problem reported by Greg Schafer.
56576         * modules/idcache: Likewise.
56577
56578 2006-11-18  Jim Meyering  <jim@meyering.net>
56579
56580         * check-module (%exempt_header): Add exception for some
56581         conditionally-included headers.
56582
56583         * modules/i-ring (Depends-on): Add verify.
56584         (License): Change to LGPL.
56585
56586 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56587
56588         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56589         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56590         and inttostr.h.  Use snprintf rather than uinttostr, so that
56591         LGPLed code doesn't depend on GPLed.
56592
56593 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56594
56595         * modules/inline (License): Change from GPL to LGPL.
56596
56597 2006-11-17  Jim Meyering  <jim@meyering.net>
56598
56599         * modules/d-type (License): Switch to LGPL.
56600
56601 2006-11-15  Bruno Haible  <bruno@clisp.org>
56602
56603         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56604
56605 2006-11-15  Eric Blake  <ebb9@byu.net>
56606
56607         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56608         the module dependency.
56609
56610 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56611             Bruno Haible  <bruno@clisp.org>
56612
56613         * gnulib-tool (func_create_testdir): Add license consistency check.
56614
56615 2006-11-15  Eric Blake  <ebb9@byu.net>
56616
56617         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56618         random "(cached)" in configure output.
56619
56620 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56621
56622         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56623         test for conforming inttypes.h is both announced and cached.
56624
56625         * MODULES.html.sh (seen_modules, seen_files): New variables.
56626         (func_module): Rewrite to use a few less gnulib-tool and sed
56627         invocations.  Avoid a couple of quadratic algorithms for ...
56628         (missed_modules, missed_files): ... these, with ...
56629         (func_append, func_tmpdir): ... these new functions, from
56630         gnulib-tool.  Analogously, install traps for cleanup.
56631
56632         * tests/test-gc.c (main): Remove unused variables.
56633         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56634
56635 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56636
56637         * modules/inttostr (License): Change to LGPL.
56638
56639 2006-11-14  Eric Blake  <ebb9@byu.net>
56640
56641         * modules/tempname (License): Change to LGPL.
56642
56643 2006-11-14  Eric Blake  <ebb9@byu.net>
56644
56645         * doc/functions.texi (Function Portability): *printf functions on
56646         Cygwin now understand all POSIX size specifiers.
56647
56648 2006-11-14  Bruno Haible  <bruno@clisp.org>
56649
56650         * modules/c-ctype (License): Change to LGPL.
56651
56652 2006-11-12  Bruno Haible  <bruno@clisp.org>
56653
56654         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56655         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56656         for GNOME libraries, for which the include files are installed in
56657         subdirectories of $prefix/include.
56658
56659 2006-11-12  Bruno Haible  <bruno@clisp.org>
56660
56661         * m4/lib-link.m4: Require at least autoconf-2.54.
56662         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56663         name to underscores for the --with option.
56664
56665 2006-11-13  Bruno Haible  <bruno@clisp.org>
56666
56667         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56668         the tests directory.
56669         Reported by Ralf Wildenhues.
56670
56671 2006-11-13  Bruno Haible  <bruno@clisp.org>
56672
56673         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56674         (func_emit_initmacro_end): Undo the override here.
56675         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56676         Works around the famous automake error in coreutils.
56677
56678 2006-11-13  Eric Blake  <ebb9@byu.net>
56679
56680         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56681         element, not its node.
56682
56683 2006-11-12  Bruno Haible  <bruno@clisp.org>
56684
56685         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56686         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56687
56688 2006-11-12  Bruno Haible  <bruno@clisp.org>
56689
56690         * gnulib-tool: New option --local-symlink.
56691         (func_usage): Document it.
56692         (lsymbolic): New variable.
56693         (func_import, func_create_testdir): If --symlink was not specified,
56694         test whether --local-symlink was specified and the file comes from
56695         the local_gnulib_dir.
56696
56697 2006-11-12  Bruno Haible  <bruno@clisp.org>
56698
56699         * gnulib-tool (func_ln): New function.
56700         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56701
56702 2006-11-12  Bruno Haible  <bruno@clisp.org>
56703
56704         Finish support for source files in subdirectories.
56705         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56706         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56707         AUTOMAKE_OPTIONS.
56708         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56709
56710 2006-11-12  Bruno Haible  <bruno@clisp.org>
56711
56712         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56713         EXTRA_lib_SOURCES augmentation.
56714         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56715
56716 2006-11-12  Jim Meyering  <jim@meyering.net>
56717
56718         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56719         file descriptors.  This also averts a failure on systems with
56720         native openat support when a traversed directory lacks "x" access.
56721         * lib/fts_.h: Include "i-ring.h"
56722         (struct FTS) [fts_fd_ring]: New member.
56723         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56724         (FCHDIR): Add parentheses.
56725         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56726         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56727         When descending, rather than simply closing the previous
56728         fts_cwd_fd value, push that file descriptor onto the ring.
56729         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56730         (fts_open): Initialize the new fd_ring member.
56731         (fts_close): Clear the ring.
56732         (fts_safe_changedir): When possible, use our new fd_ring to skip
56733         the diropen and fstat and dev/ino comparison that would normally
56734         accompany a virtual `chdir ("..")'.
56735
56736         * modules/fts (Depends-on): Add i-ring.
56737         * modules/i-ring: New module.
56738         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56739         * m4/i-ring.m4: New file.
56740
56741 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56742
56743         * gnulib-tool (func_create_testdir): Fix replacement of
56744         `build-aux' in configure.ac.  Run autotools in gltests
56745         subdirectory.
56746         (func_create_testdir, func_create_megatestdir, test): There is
56747         no need for '--force' in most autotool invocations in a new
56748         tree.  Actually fail the whole test if any of the tools, or the
56749         configure or make stages fail.
56750
56751         Sync from Automake.
56752         * build-aux/gnupload: Revert last change.  Add pointer to upload
56753         instructions of the GNU Maintenance Instructions.
56754         Suggestion by Karl Berry.
56755
56756 2006-11-10  Jim Meyering  <jim@meyering.net>
56757
56758         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56759
56760 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56761
56762         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56763         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56764         (bind_textdomain_codeset) [! ENABLE_NLS]:
56765         Evaluate all the arguments.  That way, callers get compatible behavior
56766         if the arguments have side effects.  Also, it avoids some GCC
56767         diagnostics in some cases; Joel E. Denny reported problems when Bison
56768         was configured with --enable-gcc-warnigs.
56769
56770 2006-11-10  Jim Meyering  <jim@meyering.net>
56771
56772         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56773         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56774         account.
56775
56776 2006-11-10  Jim Meyering  <jim@meyering.net>
56777
56778         * modules/inline: New file/module.
56779         * modules/xalloc (Files): Remove m4/inline.m4.
56780         (Depends-on): Add inline, instead.
56781         * modules/oset: Likewise.
56782         * modules/list: Likewise.
56783
56784 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56785
56786         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56787         Problem reported by Matthew Woehlke.
56788
56789 2006-11-09  Bruno Haible  <bruno@clisp.org>
56790
56791         * lib/tempname.c (gen_tempname): Remove variant that invokes
56792         __gen_tempname.
56793         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56794         __gen_tempname.
56795
56796 2006-11-08  Bruno Haible  <bruno@clisp.org>
56797
56798         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56799         to 'yes' instead of 'cross-compiling'.
56800
56801 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56802
56803         * lib/quotearg.h (quotearg_free): New decl.
56804         * lib/quotearg.c (quotearg_free): New function.
56805         (slot0, nslots, slotvec0, slotvec):
56806         Now file-scope so that quotearg_free can get at them.
56807
56808 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56809
56810         Sync from Automake.
56811         * build-aux/gnupload: Add missing 'gnu' to example URL.
56812         Report by Karl Berry.
56813
56814 2006-11-08  Bruno Haible  <bruno@clisp.org>
56815
56816         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56817         Suggested by Paul Eggert.
56818
56819 2006-11-08  Jim Meyering  <jim@meyering.net>
56820
56821         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56822         It's already included if !_LIBC.
56823         (fts_safe_changedir): Add a comment.
56824
56825 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56826
56827         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56828         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56829         Matthew Woehlke.
56830
56831         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56832         definitions up, to avoid colliding with change below.
56833         (static_inline) [HAVE_INLINE]: New macro.
56834         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56835         Provide extern decls when !HAVE_INLINE.  Do not define unless
56836         static_inline is defined, either by us or by xmalloc.c.  Use
56837         static_inline rather than static inline.
56838         (XCALLOC): Optimize sizeof(T) = 1 case.
56839         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56840
56841 2006-11-07  Bruno Haible  <bruno@clisp.org>
56842
56843         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56844         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56845         AC_C_INLINE.
56846         * modules/xalloc (Files): Add m4/inline.m4.
56847
56848 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56849
56850         * README: Fix typo.
56851         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56852         (Miscellanous Notes): ...from this.
56853
56854 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56855
56856         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56857         Mention that offsetof should be used instead of sizeof.
56858         From Bruno Haible.
56859
56860 2006-11-07  Bruno Haible  <bruno@clisp.org>
56861
56862         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56863
56864 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56865
56866         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56867         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56868         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56869         (gl_tree_add_before, gl_tree_add_after):
56870         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56871         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56872         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56873         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56874         (gl_linked_add_after, gl_linked_add_at): Likewise.
56875         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56876         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56877         (gl_tree_add_before, gl_tree_add_after): Likewise.
56878         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56879         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56880         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56881
56882 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56883
56884         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56885
56886 2006-11-06  Bruno Haible  <bruno@clisp.org>
56887
56888         * m4/inline.m4: New file.
56889         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56890         * modules/list (Files): Add m4/inline.m4.
56891         * modules/oset (Files): Likewise.
56892
56893 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56894
56895         * lib/idcache.c: Include <stddef.h>, for offsetof.
56896         (struct userid.name): Change from char * to a flexible array member.
56897         All uses changed.
56898         * modules/idcache (Depends-on): Add flexmember.
56899
56900         * MODULES.html.sh (Core language properties): New module flexmember.
56901         * modules/flexmember, m4/flexmember.m4: New files.
56902
56903         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56904         inline functions that are identical with the old xnmalloc_inline,
56905         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56906         that we can avoid some unnecessary integer multiplications and
56907         divisions in the common case where the element size is known at
56908         compile time.
56909         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56910         needed.
56911         (xnboundedmalloc): Remove.
56912         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56913         arguments, for consistency with rest of this header.
56914         (xcharalloc): Rewrite using XNMALLOC.
56915         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56916         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56917         versions have been moved to lib/xalloc.h and renamed to be the
56918         non-*_inline versions.
56919         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56920         and xnrealloc functions, since those functions are now inline and
56921         now call us.
56922         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56923         renaming described above.
56924         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56925         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56926         captures the dependency in AC_C_INLINE.
56927
56928         New module canonicalize-lgpl, proposed by Charles Wilson in
56929         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56930         with a few small changes afterwards.
56931         * MODULES.html.sh (File system functions): New module
56932         canonicalize-lgpl.
56933         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56934         and canonicalize_file_name.
56935         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56936         * modules/canonicalize-lgpl: New files.
56937
56938 2006-11-05  Bruno Haible  <bruno@clisp.org>
56939
56940         * gnulib-tool (func_import, func_create_testdir): Create directories
56941         also for files in subdirectories of lib/.
56942
56943 2006-11-05  Bruno Haible  <bruno@clisp.org>
56944
56945         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56946         ANSI C compliant.
56947
56948 2006-11-03  Bruno Haible  <bruno@clisp.org>
56949
56950         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56951         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56952         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56953         (xnboundedmalloc): New inline function.
56954         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56955         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56956         xmalloc.
56957         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56958         xmalloc.
56959         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56960         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56961         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56962         xmalloc.
56963         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56964         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56965         xmalloc.
56966         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56967         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56968         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56969         xmalloc.
56970         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56971         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56972         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56973         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56974         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56975         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56976         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56977
56978 2006-11-03  Bruno Haible  <bruno@clisp.org>
56979
56980         * lib/c-ctype.h [C++]: Define functions without name mangling.
56981         * lib/fwriteerror.h [C++]: Likewise.
56982         * lib/gcd.h [C++]: Likewise.
56983         * lib/linebreak.h [C++]: Likewise.
56984
56985 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56986
56987         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56988         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56989         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56990         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56991         Check for functions and headers just once.
56992         Check for declaration of canonicalize_file_name.
56993         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56994
56995 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56996
56997         * gnulib-tool (func_import): Fix typo in actioncmd.
56998
56999 2006-11-02  Bruno Haible  <bruno@clisp.org>
57000
57001         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57002         newline sequence in the Makefile.am snippet as a space, like "make"
57003         does.
57004         Reported by Roger Persson <perrog@gmail.com>.
57005
57006 2006-11-01  Bruno Haible  <bruno@clisp.org>
57007
57008         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57009         already declared in <string.h>.
57010         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57011
57012 2006-11-01  Bruno Haible  <bruno@clisp.org>
57013
57014         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57015         * lib/strcase.h: Include <string.h>.
57016         (strcasecmp): Define to rpl_strcasecmp here.
57017
57018 2006-11-01  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57021
57022 2006-11-01  Eric Blake  <ebb9@byu.net>
57023
57024         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57025
57026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57027
57028 2006-10-29  Bruno Haible  <bruno@clisp.org>
57029
57030         Make it compile in C++ mode.
57031         * lib/full-write.c (full_rw): Add a cast.
57032
57033 2006-11-01  Bruno Haible  <bruno@clisp.org>
57034
57035         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57036         be POSIX compliant.
57037         Reported by Roger Persson <perrog@gmail.com>.
57038
57039 2006-11-01  Eric Blake  <ebb9@byu.net>
57040
57041         * lib/getopt_.h: Fix comments.
57042
57043 2006-10-31  Eric Blake  <ebb9@byu.net>
57044
57045         * modules/tmpdir (Depends-on): Add sys_stat.
57046         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57047         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57048         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57049         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57050         tempname.
57051
57052 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57053
57054         Avoid some C++ diagnostics reported by Bruno Haible.
57055         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57056         xmalloc.
57057         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57058         (struct slotvec): Move to top level.
57059         (quotearg_n_options): Rewrite to avoid xmalloc.
57060         * lib/xalloc.h (xcharalloc): New function.
57061         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57062         [defined __cplusplus]: Add function template that provides result
57063         type propagation.  This part of the change is from Bruno Haible.
57064
57065 2006-10-29  Bruno Haible  <bruno@clisp.org>
57066
57067         Make it compile in C++ mode.
57068         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57069         * lib/strnlen1.c (strnlen1): Cast memchr result.
57070         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57071         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57072         (create_temp_dir): Rename local variable 'template'.
57073         (compile_csharp_using_sscli): Add cast.
57074         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57075         * lib/findprog.c (find_in_path): Likewise.
57076         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57077         * lib/wait-process.c (register_slave_subprocess): Likewise.
57078
57079 2006-10-22  Bruno Haible  <bruno@clisp.org>
57080
57081         * modules/tsearch: New file.
57082         * lib/tsearch.h: New file.
57083         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57084         * m4/tsearch.m4: New file.
57085         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57086
57087 2006-10-29  Eric Blake  <ebb9@byu.net>
57088
57089         * lib/arcfour.c: Assume config.h.
57090         * lib/arctwo.c: Likewise.
57091         * lib/base64.c: Likewise.
57092         * lib/check-version.c: Likewise.
57093         * lib/crc.c: Likewise.
57094         * lib/des.c: Likewise.
57095         * lib/gc-gnulib.c: Likewise.
57096         * lib/gc-libgcrypt.c: Likewise.
57097         * lib/gc-pbkdf2-sha1.c: Likewise.
57098         * lib/getaddrinfo.c: Likewise.
57099         * lib/getdelim.c: Likewise.
57100         * lib/getline.c: Likewise.
57101         * lib/hmac-md5.c: Likewise.
57102         * lib/hmac-sha1.c: Likewise.
57103         * lib/iconvme.c: Likewise.
57104         * lib/md2.c: Likewise.
57105         * lib/md4.c: Likewise.
57106         * lib/memxor.c: Likewise.
57107         * lib/read-file.c: Likewise.
57108         * lib/readline.c: Likewise.
57109         * lib/rijndael-alg-fst.c: Likewise.
57110         * lib/rijndael-api-fst.c: Likewise.
57111         * lib/xgetdomainname.c: Likewise.
57112
57113 2006-10-28  Eric Blake  <ebb9@byu.net>
57114
57115         * lib/xstrndup.c: Assume config.h.
57116
57117 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57118
57119         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57120         stat-macros.h is now for our own macros, whereas stat_h is for
57121         macros in the <sys/stat.h> name space.
57122         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57123         (STAT_MACROS_H): Remove.
57124         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57125         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57126         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57127         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57128         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57129         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57130         Move these macros to ...
57131         * lib/stat_.h: here.  Don't include stat-macros.h.
57132         * lib/canonicalize.c: Don't include stat-macros.h.
57133         * lib/chown.c: Likewise.
57134         * lib/euidaccess.c: Likewise.
57135         * lib/file-type.c: Likewise.
57136         * lib/filemode.c: Likewise.
57137         * lib/glob.c: Likewise.
57138         * lib/isapipe.c: Likewise.
57139         * lib/lchown.c: Likewise.
57140         * lib/lstat.c: Likewise.
57141         * lib/mkdir-p.c: Likewise.
57142         * lib/rmdir.c: Likewise.
57143         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57145         unless mkdir isn't declared, to speed up 'configure'.
57146         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57147         would define all the S_* symbols.
57148         * modules/canonicalize (Depends-on):
57149         Depend on sys_stat, not stat-macros.
57150         * modules/chown: Likewise.
57151         * modules/euidaccess: Likewise.
57152         * modules/filemode: Likewise.
57153         * modules/file-type: Likewise.
57154         * modules/glob: Likewise.
57155         * modules/isapipe: Likewise.
57156         * modules/lchown: Likewise.
57157         * modules/lstat: Likewise.
57158         * modules/mkancesdirs: Likewise.
57159         * modules/rmdir: Likewise.
57160         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57161         * modules/modechange: Likewise.
57162         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57163         (configure.ac): Remove gl_STAT_MACROS.
57164         * modules/sys_stat (Depends-on): Remove stat-macros.
57165
57166 2006-10-27  Bruno Haible  <bruno@clisp.org>
57167
57168         * m4/signed.m4: Remove file.
57169         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57170         invocation.
57171         * modules/vasnprintf (Files): Remove m4/signed.m4.
57172
57173 2006-10-27  Bruno Haible  <bruno@clisp.org>
57174
57175         Update to GNU gettext 0.16.
57176         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57177         m4/inttypes-h.m4, m4/signed.m4.
57178         * m4/gettext.m4: Update to GNU gettext 0.16.
57179         * m4/intl.m4: New file, from GNU gettext.
57180         * m4/intldir.m4: New file, from GNU gettext.
57181         * config/srclist.txt: Update
57182
57183 2006-10-27  Eric Blake  <ebb9@byu.net>
57184
57185         * MODULES.html.sh: Document tempname.
57186         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57187         dependencies.
57188         (Files): Move lib/tempname.c...
57189         * modules/tempname: ...to this new module.
57190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57191         (gl_PREREQ_TEMPNAME): Move...
57192         * m4/tempname.m4: ...to this new file.
57193         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57194         * modules/sys_stat (Depends-on): Add stat-macros.
57195         * lib/stat_.h (includes): Pick up stat macros.
57196         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57197         if stat macros are broken.
57198         * lib/tempname.c (includes): No need to include "stat-macros.h".
57199         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57200         (direxists, __path_search) [!_LIBC]: Don't compile these in
57201         gnulib; the tmpdir module covers that.
57202         * lib/tempname.h: New file.
57203
57204 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57205
57206         * COPYING: Explain how gnulib-tool converts licence headers.
57207         Almost all wording by Eric Blake.
57208
57209 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57210
57211         * lib/mbchar.h (is_basic_table): Make read-only.
57212         * lib/mbchar.c (is_basic_table): Likewise.
57213         Reported by John Darrington.
57214
57215 2006-10-25  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/progname.h (set_program_name): Undefine before defining.
57218
57219 2006-10-25  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57222         false for non-gcc C++ compilers.
57223         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57224
57225 2006-10-24  Bruno Haible  <bruno@clisp.org>
57226
57227         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57228         iconv implementations like Irix iconv.
57229
57230 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57231
57232         * modules/vararrays: New file.
57233         * m4/vararrays.m4: New file, taken from diffutils.
57234         * MODULES.html.sh: New module vararrays.
57235
57236 2006-10-24  Karl Berry  <karl@gnu.org>
57237
57238         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57239         Don't call GNU Unix.
57240
57241 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57242
57243         * users.txt: Add Libtool.
57244
57245         Sync from Libtool:
57246
57247         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57248
57249         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57250         to gnulib's policy of including config.h unconditionally.
57251
57252 2006-10-24  Bruno Haible  <bruno@clisp.org>
57253
57254         * modules/wcwidth (Files): Add m4/wint_t.m4.
57255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57256         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57257
57258 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57259
57260         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57261         to pacify GCC with some -W flags enabled.  Problem reported by
57262         Bruno Haible.
57263
57264 2006-10-24  Jim Meyering  <jim@meyering.net>
57265
57266         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57267         Reported by Karl Berry.
57268
57269 2006-10-23  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57272
57273 2006-10-24  Bruno Haible  <bruno@clisp.org>
57274
57275         * lib/gl_list.h: Use C comment style, not C++ comment style.
57276
57277 2006-10-23  Eric Blake  <ebb9@byu.net>
57278
57279         * lib/getaddrinfo.c (includes): Add missing include.
57280
57281 2006-10-23  Bruno Haible  <bruno@clisp.org>
57282             Paul Eggert  <eggert@cs.ucla.edu>
57283
57284         Ability to rename obstack_free.
57285         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57286         obstack_free.
57287         (obstack_free): Invoke the __obstack_free macro.
57288         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57289
57290 2006-10-23  Bruno Haible  <bruno@clisp.org>
57291             Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57294         __argc, __argv from the declaration. (They are defined as macros on
57295         mingw.)
57296
57297 2006-10-22  Bruno Haible  <bruno@clisp.org>
57298
57299         * doc/gnulib-intro.texi: New file.
57300         * doc/gnulib.texi: Include it.
57301
57302 2006-10-21  Bruno Haible  <bruno@clisp.org>
57303
57304         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57305         "Introduction", "Miscellanous Notes", "Particular Modules".
57306
57307 2006-10-21  Bruno Haible  <bruno@clisp.org>
57308
57309         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57310         Change mostlyclean-local rule to avoid sh syntax error from bash
57311         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57312
57313 2006-10-23  Jim Meyering  <jim@meyering.net>
57314
57315         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57316         in place of snprintf.
57317
57318         * modules/inttostr (Files): Add lib/uinttostr.c.
57319         * lib/uinttostr.c (inttostr): New file/function.
57320         * lib/inttostr.h (uinttostr): Declare.
57321         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57322         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57323         Add uinttostr.
57324         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57325
57326 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57327
57328         * lib/canonicalize.c (ELOOP): Define if not already defined.
57329         Problem reported by Bruno Haible in
57330         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57331
57332 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57333
57334         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57335         Problem reported by Perry Smith and Ville Laurikari.
57336
57337         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57338         uses.
57339
57340 2006-10-19  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57343         for mingw.
57344
57345 2006-10-19  Bruno Haible  <bruno@clisp.org>
57346
57347         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57348         Needed for mingw.
57349
57350 2006-10-19  Bruno Haible  <bruno@clisp.org>
57351
57352         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57353
57354 2006-10-19  Bruno Haible  <bruno@clisp.org>
57355
57356         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57357         it.
57358
57359 2006-10-19  Bruno Haible  <bruno@clisp.org>
57360
57361         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57362         invocation.
57363
57364 2006-10-19  Bruno Haible  <bruno@clisp.org>
57365
57366         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57367         mountlist by default.
57368
57369 2006-10-16  Bruno Haible  <bruno@clisp.org>
57370
57371         * lib/c-strstr.c: Include c-strstr.h.
57372
57373 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57374
57375         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57376         in a slash.
57377
57378 2006-10-18  Bruno Haible  <bruno@clisp.org>
57379
57380         * lib/lock.h [C++]: Wrap definitions in extern "C".
57381
57382 2006-10-18  Bruno Haible  <bruno@clisp.org>
57383
57384         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57385         gl_LIBOBJS list.
57386
57387 2006-10-18  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57390
57391 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57392
57393         * lib/xstrtol.h: Include gettext.h.
57394         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57395         Problem reported by Eric Blake.
57396         * modules/xstrtol (Depends-on): Add gettext-h.
57397
57398 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57399
57400         * lib/strftime.c (advance): New macro.
57401         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57402         incomplete type, so you can't add 0 to it.  Problem and patch
57403         reported by Eelco Dolstra for dietlibc.
57404
57405 2006-10-18  Jim Meyering  <jim@meyering.net>
57406
57407         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57408         type for a local, and rename it: s/up/user_proc/.
57409
57410 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57411
57412         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57413         READ_UTMP_USER_PROCESS.
57414         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57415
57416 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57419         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57420
57421 2006-10-17  Eric Blake  <ebb9@byu.net>
57422
57423         * lib/sigprocmask.c (sigprocmask): Fix typo.
57424
57425         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57426
57427         * modules/clean-temp (Makefile.am): Don't add to make output...
57428         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57429         config.h.
57430
57431 2006-10-17  Bruno Haible  <bruno@clisp.org>
57432
57433         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57434         differently if DEFAULT_TEXT_DOMAIN is set.
57435
57436 2006-10-16  Bruno Haible  <bruno@clisp.org>
57437
57438         * lib/clean-temp.c: Include fwriteerror.h.
57439
57440 2006-10-16  Bruno Haible  <bruno@clisp.org>
57441
57442         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57443
57444 2006-10-16  Bruno Haible  <bruno@clisp.org>
57445
57446         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57447         * lib/sigprocmask.h: Include <sys/types.h>.
57448         (sigset_t): Use the system's definition if present.
57449
57450 2006-10-17  Eric Blake  <ebb9@byu.net>
57451
57452         * lib/xvasprintf.c (includes): Assume config.h.
57453         * lib/xasprintf.c (includes): Likewise.
57454
57455 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57458         at least as wide as intmax_t.
57459
57460 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57461
57462         (Imported from Automake.)
57463         * build-aux/gnupload: Update to version 1.1 of directive file.
57464
57465 2006-10-16  Eric Blake  <ebb9@byu.net>
57466
57467         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57468         match Automake 1.10a.
57469
57470 2006-10-14  Bruno Haible  <bruno@clisp.org>
57471
57472         * modules/sigprocmask: New file.
57473         * lib/sigprocmask.h: New file.
57474         * lib/sigprocmask.c: New file.
57475         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57476         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57477         request sigprocmask.o.
57478         (gl_PREREQ_SIGPROCMASK): New macro.
57479         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57480         (Depends-on): Add sigprocmask.
57481         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57482         gt_SIGNALBLOCKING. Test for 'raise' only once.
57483         * lib/fatal-signal.c: Include sigprocmask.h.
57484         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57485         unblock_fatal_signals): Define always.
57486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57487         sigprocmask.
57488
57489 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57490
57491         Sync from Automake.
57492         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57493         which incorrectly sets the mode of an existing destination
57494         directory.  In some cases the unpatched install-sh could do the
57495         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57496         system.  We hope this is rare in practice, but it's clearly worth
57497         fixing.  Problem reported by Alex Unleashed in
57498         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57499         Also, don't bother to check for -m bugs unless we're using -m;
57500         suggested by Stepan Kasal.
57501
57502 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57503
57504         Sync from Automake.
57505         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57506         `-c' flag, so they appear at the same position as in %FASTDEP%
57507         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57508         which ignores unknown options only after the first non-option.
57509         Bug report against M4 by Nelson H. F. Beebe.
57510
57511 2006-10-13  Jim Meyering  <jim@meyering.net>
57512
57513         Fix a bug in yesterday's change.
57514         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57515         p->fts_statp->st_dev would be used uninitialized.
57516         Ensures that we always call fts_stat on the very first entry.
57517         Miklos Szeredi reported that find -xdev stopped working.
57518
57519 2006-10-12  Bruno Haible  <bruno@clisp.org>
57520
57521         * gnulib-tool (func_get_automake_snippet): Append an automatically
57522         computed EXTRA_DIST augmentation.
57523         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57524         * modules/alloca-opt (Makefile.am): Likewise.
57525         * modules/allocsa (Makefile.am): Likewise.
57526         * modules/arcfour (Makefile.am): Likewise.
57527         * modules/arctwo (Makefile.am): Likewise.
57528         * modules/argmatch (Makefile.am): Likewise.
57529         * modules/argz (Makefile.am): Likewise.
57530         * modules/atexit (Makefile.am): Likewise.
57531         * modules/backupfile (Makefile.am): Likewise.
57532         * modules/byteswap (Makefile.am): Likewise.
57533         * modules/c-strtod (Makefile.am): Likewise.
57534         * modules/c-strtold (Makefile.am): Likewise.
57535         * modules/calloc (Makefile.am): Likewise.
57536         * modules/canon-host (Makefile.am): Likewise.
57537         * modules/canonicalize (Makefile.am): Likewise.
57538         * modules/chdir-long (Makefile.am): Likewise.
57539         * modules/chdir-safer (Makefile.am): Likewise.
57540         * modules/check-version (Makefile.am): Likewise.
57541         * modules/chown (Makefile.am): Likewise.
57542         * modules/cloexec (Makefile.am): Likewise.
57543         * modules/close-stream (Makefile.am): Likewise.
57544         * modules/closeout (Makefile.am): Likewise.
57545         * modules/crc (Makefile.am): Likewise.
57546         * modules/csharpexec (Makefile.am): Likewise.
57547         * modules/cycle-check (Makefile.am): Likewise.
57548         * modules/des (Makefile.am): Likewise.
57549         * modules/dev-ino (Makefile.am): Likewise.
57550         * modules/dirfd (Makefile.am): Likewise.
57551         * modules/dirname (Makefile.am): Likewise.
57552         * modules/dup2 (Makefile.am): Likewise.
57553         * modules/eealloc (Makefile.am): Likewise.
57554         * modules/error (Makefile.am): Likewise.
57555         * modules/euidaccess (Makefile.am): Likewise.
57556         * modules/exclude (Makefile.am): Likewise.
57557         * modules/exitfail (Makefile.am): Likewise.
57558         * modules/fcntl-safer (Makefile.am): Likewise.
57559         * modules/fcntl (Makefile.am): Likewise.
57560         * modules/file-type (Makefile.am): Likewise.
57561         * modules/fileblocks (Makefile.am): Likewise.
57562         * modules/filemode (Makefile.am): Likewise.
57563         * modules/filenamecat (Makefile.am): Likewise.
57564         * modules/fnmatch (Makefile.am): Likewise.
57565         * modules/fopen-safer (Makefile.am): Likewise.
57566         * modules/fpending (Makefile.am): Likewise.
57567         * modules/fprintftime (Makefile.am): Likewise.
57568         * modules/free (Makefile.am): Likewise.
57569         * modules/fsusage (Makefile.am): Likewise.
57570         * modules/ftruncate (Makefile.am): Likewise.
57571         * modules/fts (Makefile.am): Likewise.
57572         * modules/gc-arcfour (Makefile.am): Likewise.
57573         * modules/gc-des (Makefile.am): Likewise.
57574         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57575         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57576         * modules/gc-md4 (Makefile.am): Likewise.
57577         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57578         * modules/gc-sha1 (Makefile.am): Likewise.
57579         * modules/gc (Makefile.am): Likewise.
57580         * modules/getaddrinfo (Makefile.am): Likewise.
57581         * modules/getcwd (Makefile.am): Likewise.
57582         * modules/getdelim (Makefile.am): Likewise.
57583         * modules/getdomainname (Makefile.am): Likewise.
57584         * modules/getgroups (Makefile.am): Likewise.
57585         * modules/gethostname (Makefile.am): Likewise.
57586         * modules/gethrxtime (Makefile.am): Likewise.
57587         * modules/getline (Makefile.am): Likewise.
57588         * modules/getloadavg (Makefile.am): Likewise.
57589         * modules/getlogin_r (Makefile.am): Likewise.
57590         * modules/getndelim2 (Makefile.am): Likewise.
57591         * modules/getopt (Makefile.am): Likewise.
57592         * modules/getpagesize (Makefile.am): Likewise.
57593         * modules/getpass-gnu (Makefile.am): Likewise.
57594         * modules/getpass (Makefile.am): Likewise.
57595         * modules/getsubopt (Makefile.am): Likewise.
57596         * modules/gettime (Makefile.am): Likewise.
57597         * modules/gettimeofday (Makefile.am): Likewise.
57598         * modules/getugroups (Makefile.am): Likewise.
57599         * modules/getusershell (Makefile.am): Likewise.
57600         * modules/glob (Makefile.am): Likewise.
57601         * modules/group-member (Makefile.am): Likewise.
57602         * modules/hard-locale (Makefile.am): Likewise.
57603         * modules/hash (Makefile.am): Likewise.
57604         * modules/hmac-md5 (Makefile.am): Likewise.
57605         * modules/hmac-sha1 (Makefile.am): Likewise.
57606         * modules/human (Makefile.am): Likewise.
57607         * modules/idcache (Makefile.am): Likewise.
57608         * modules/imaxabs (Makefile.am): Likewise.
57609         * modules/imaxdiv (Makefile.am): Likewise.
57610         * modules/inet_ntop (Makefile.am): Likewise.
57611         * modules/inet_pton (Makefile.am): Likewise.
57612         * modules/intprops (Makefile.am): Likewise.
57613         * modules/inttostr (Makefile.am): Likewise.
57614         * modules/inttypes (Makefile.am): Likewise.
57615         * modules/isapipe (Makefile.am): Likewise.
57616         * modules/javaversion (Makefile.am): Likewise.
57617         * modules/lchmod (Makefile.am): Likewise.
57618         * modules/lchown (Makefile.am): Likewise.
57619         * modules/localcharset (Makefile.am): Likewise.
57620         * modules/long-options (Makefile.am): Likewise.
57621         * modules/lstat (Makefile.am): Likewise.
57622         * modules/malloc (Makefile.am): Likewise.
57623         * modules/mathl (Makefile.am): Likewise.
57624         * modules/mbchar (Makefile.am): Likewise.
57625         * modules/md2 (Makefile.am): Likewise.
57626         * modules/md4 (Makefile.am): Likewise.
57627         * modules/md5 (Makefile.am): Likewise.
57628         * modules/memcasecmp (Makefile.am): Likewise.
57629         * modules/memchr (Makefile.am): Likewise.
57630         * modules/memcmp (Makefile.am): Likewise.
57631         * modules/memcoll (Makefile.am): Likewise.
57632         * modules/memcpy (Makefile.am): Likewise.
57633         * modules/memmem (Makefile.am): Likewise.
57634         * modules/memmove (Makefile.am): Likewise.
57635         * modules/mempcpy (Makefile.am): Likewise.
57636         * modules/memrchr (Makefile.am): Likewise.
57637         * modules/memset (Makefile.am): Likewise.
57638         * modules/memxor (Makefile.am): Likewise.
57639         * modules/mkancesdirs (Makefile.am): Likewise.
57640         * modules/mkdir-p (Makefile.am): Likewise.
57641         * modules/mkdir (Makefile.am): Likewise.
57642         * modules/mkdtemp (Makefile.am): Likewise.
57643         * modules/mkstemp (Makefile.am): Likewise.
57644         * modules/mktime (Makefile.am): Likewise.
57645         * modules/modechange (Makefile.am): Likewise.
57646         * modules/mountlist (Makefile.am): Likewise.
57647         * modules/nanosleep (Makefile.am): Likewise.
57648         * modules/obstack (Makefile.am): Likewise.
57649         * modules/openat (Makefile.am): Likewise.
57650         * modules/pagealign_alloc (Makefile.am): Likewise.
57651         * modules/pathmax (Makefile.am): Likewise.
57652         * modules/physmem (Makefile.am): Likewise.
57653         * modules/poll (Makefile.am): Likewise.
57654         * modules/posixtm (Makefile.am): Likewise.
57655         * modules/posixver (Makefile.am): Likewise.
57656         * modules/putenv (Makefile.am): Likewise.
57657         * modules/quote (Makefile.am): Likewise.
57658         * modules/quotearg (Makefile.am): Likewise.
57659         * modules/raise (Makefile.am): Likewise.
57660         * modules/read-file (Makefile.am): Likewise.
57661         * modules/readline (Makefile.am): Likewise.
57662         * modules/readlink (Makefile.am): Likewise.
57663         * modules/readtokens (Makefile.am): Likewise.
57664         * modules/readutmp (Makefile.am): Likewise.
57665         * modules/realloc (Makefile.am): Likewise.
57666         * modules/regex (Makefile.am): Likewise.
57667         * modules/rename-dest-slash (Makefile.am): Likewise.
57668         * modules/rename (Makefile.am): Likewise.
57669         * modules/rijndael (Makefile.am): Likewise.
57670         * modules/rmdir (Makefile.am): Likewise.
57671         * modules/rpmatch (Makefile.am): Likewise.
57672         * modules/safe-read (Makefile.am): Likewise.
57673         * modules/safe-write (Makefile.am): Likewise.
57674         * modules/same-inode (Makefile.am): Likewise.
57675         * modules/same (Makefile.am): Likewise.
57676         * modules/save-cwd (Makefile.am): Likewise.
57677         * modules/savedir (Makefile.am): Likewise.
57678         * modules/setenv (Makefile.am): Likewise.
57679         * modules/settime (Makefile.am): Likewise.
57680         * modules/sha1 (Makefile.am): Likewise.
57681         * modules/sig2str (Makefile.am): Likewise.
57682         * modules/snprintf (Makefile.am): Likewise.
57683         * modules/stat-macros (Makefile.am): Likewise.
57684         * modules/stat-time (Makefile.am): Likewise.
57685         * modules/stdbool (Makefile.am): Likewise.
57686         * modules/stdint (Makefile.am): Likewise.
57687         * modules/stdlib-safer (Makefile.am): Likewise.
57688         * modules/stpcpy (Makefile.am): Likewise.
57689         * modules/stpncpy (Makefile.am): Likewise.
57690         * modules/strcase (Makefile.am): Likewise.
57691         * modules/strcasestr (Makefile.am): Likewise.
57692         * modules/strchrnul (Makefile.am): Likewise.
57693         * modules/strcspn (Makefile.am): Likewise.
57694         * modules/strdup (Makefile.am): Likewise.
57695         * modules/strerror (Makefile.am): Likewise.
57696         * modules/strftime (Makefile.am): Likewise.
57697         * modules/strndup (Makefile.am): Likewise.
57698         * modules/strnlen (Makefile.am): Likewise.
57699         * modules/strpbrk (Makefile.am): Likewise.
57700         * modules/strsep (Makefile.am): Likewise.
57701         * modules/strstr (Makefile.am): Likewise.
57702         * modules/strtod (Makefile.am): Likewise.
57703         * modules/strtoimax (Makefile.am): Likewise.
57704         * modules/strtok_r (Makefile.am): Likewise.
57705         * modules/strtol (Makefile.am): Likewise.
57706         * modules/strtoll (Makefile.am): Likewise.
57707         * modules/strtoul (Makefile.am): Likewise.
57708         * modules/strtoull (Makefile.am): Likewise.
57709         * modules/strtoumax (Makefile.am): Likewise.
57710         * modules/strverscmp (Makefile.am): Likewise.
57711         * modules/sys_socket (Makefile.am): Likewise.
57712         * modules/sys_stat (Makefile.am): Likewise.
57713         * modules/sysexits (Makefile.am): Likewise.
57714         * modules/time_r (Makefile.am): Likewise.
57715         * modules/timegm (Makefile.am): Likewise.
57716         * modules/timespec (Makefile.am): Likewise.
57717         * modules/tmpfile-safer (Makefile.am): Likewise.
57718         * modules/trim (Makefile.am): Likewise.
57719         * modules/unistd-safer (Makefile.am): Likewise.
57720         * modules/unlinkdir (Makefile.am): Likewise.
57721         * modules/unlocked-io (Makefile.am): Likewise.
57722         * modules/userspec (Makefile.am): Likewise.
57723         * modules/utime (Makefile.am): Likewise.
57724         * modules/utimecmp (Makefile.am): Likewise.
57725         * modules/utimens (Makefile.am): Likewise.
57726         * modules/vasnprintf (Makefile.am): Likewise.
57727         * modules/vasprintf (Makefile.am): Likewise.
57728         * modules/vsnprintf (Makefile.am): Likewise.
57729         * modules/xalloc (Makefile.am): Likewise.
57730         * modules/xgetcwd (Makefile.am): Likewise.
57731         * modules/xnanosleep (Makefile.am): Likewise.
57732         * modules/xreadlink (Makefile.am): Likewise.
57733         * modules/xstrtod (Makefile.am): Likewise.
57734         * modules/xstrtol (Makefile.am): Likewise.
57735         * modules/xstrtold (Makefile.am): Likewise.
57736         * modules/yesno (Makefile.am): Likewise.
57737         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57738
57739 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57740
57741         * modules/error (Makefile.am): Distribute files through
57742         EXTRA_DIST, not lib_SOURCES.
57743
57744 2006-10-12  Eric Blake  <ebb9@byu.net>
57745
57746         * modules/error (Makefile.am): Distribute files in /lib.
57747         * modules/obstack (Makefile.am): Likewise.
57748
57749 2006-10-12  Bruno Haible  <bruno@clisp.org>
57750
57751         * modules/acl (Makefile.am): Distribute all files in lib/ through
57752         EXTRA_DIST.
57753         * modules/arcfour (Makefile.am): Likewise.
57754         * modules/arctwo (Makefile.am): Likewise.
57755         * modules/argmatch (Makefile.am): Likewise.
57756         * modules/argz (Makefile.am): Likewise.
57757         * modules/atexit (Makefile.am): Likewise.
57758         * modules/backupfile (Makefile.am): Likewise.
57759         * modules/c-strtod (Makefile.am): Likewise.
57760         * modules/c-strtold (Makefile.am): Likewise.
57761         * modules/calloc (Makefile.am): Likewise.
57762         * modules/canon-host (Makefile.am): Likewise.
57763         * modules/canonicalize (Makefile.am): Likewise.
57764         * modules/chdir-long (Makefile.am): Likewise.
57765         * modules/chdir-safer (Makefile.am): Likewise.
57766         * modules/check-version (Makefile.am): Likewise.
57767         * modules/chown (Makefile.am): Likewise.
57768         * modules/cloexec (Makefile.am): Likewise.
57769         * modules/close-stream (Makefile.am): Likewise.
57770         * modules/closeout (Makefile.am): Likewise.
57771         * modules/crc (Makefile.am): Likewise.
57772         * modules/cycle-check (Makefile.am): Likewise.
57773         * modules/des (Makefile.am): Likewise.
57774         * modules/dirfd (Makefile.am): Likewise.
57775         * modules/dirname (Makefile.am): Likewise.
57776         * modules/dup2 (Makefile.am): Likewise.
57777         * modules/euidaccess (Makefile.am): Likewise.
57778         * modules/exclude (Makefile.am): Likewise.
57779         * modules/exitfail (Makefile.am): Likewise.
57780         * modules/fcntl-safer (Makefile.am): Likewise.
57781         * modules/file-type (Makefile.am): Likewise.
57782         * modules/fileblocks (Makefile.am): Likewise.
57783         * modules/filemode (Makefile.am): Likewise.
57784         * modules/filenamecat (Makefile.am): Likewise.
57785         * modules/fnmatch (Makefile.am): Likewise.
57786         * modules/fopen-safer (Makefile.am): Likewise.
57787         * modules/fpending (Makefile.am): Likewise.
57788         * modules/fprintftime (Makefile.am): Likewise.
57789         * modules/free (Makefile.am): Likewise.
57790         * modules/fsusage (Makefile.am): Likewise.
57791         * modules/ftruncate (Makefile.am): Likewise.
57792         * modules/fts (Makefile.am): Likewise.
57793         * modules/gc (Makefile.am): Likewise.
57794         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57795         * modules/getaddrinfo (Makefile.am): Likewise.
57796         * modules/getcwd (Makefile.am): Likewise.
57797         * modules/getdelim (Makefile.am): Likewise.
57798         * modules/getdomainname (Makefile.am): Likewise.
57799         * modules/getgroups (Makefile.am): Likewise.
57800         * modules/gethostname (Makefile.am): Likewise.
57801         * modules/gethrxtime (Makefile.am): Likewise.
57802         * modules/getline (Makefile.am): Likewise.
57803         * modules/getloadavg (Makefile.am): Likewise.
57804         * modules/getlogin_r (Makefile.am): Likewise.
57805         * modules/getopt (Makefile.am): Likewise.
57806         * modules/getpass (Makefile.am): Likewise.
57807         * modules/getpass-gnu (Makefile.am): Likewise.
57808         * modules/getsubopt (Makefile.am): Likewise.
57809         * modules/gettime (Makefile.am): Likewise.
57810         * modules/gettimeofday (Makefile.am): Likewise.
57811         * modules/getugroups (Makefile.am): Likewise.
57812         * modules/getusershell (Makefile.am): Likewise.
57813         * modules/glob (Makefile.am): Likewise.
57814         * modules/group-member (Makefile.am): Likewise.
57815         * modules/hard-locale (Makefile.am): Likewise.
57816         * modules/hash (Makefile.am): Likewise.
57817         * modules/hmac-md5 (Makefile.am): Likewise.
57818         * modules/hmac-sha1 (Makefile.am): Likewise.
57819         * modules/human (Makefile.am): Likewise.
57820         * modules/idcache (Makefile.am): Likewise.
57821         * modules/imaxabs (Makefile.am): Likewise.
57822         * modules/imaxdiv (Makefile.am): Likewise.
57823         * modules/inet_ntop (Makefile.am): Likewise.
57824         * modules/inet_pton (Makefile.am): Likewise.
57825         * modules/inttostr (Makefile.am): Likewise.
57826         * modules/isapipe (Makefile.am): Likewise.
57827         * modules/lchown (Makefile.am): Likewise.
57828         * modules/long-options (Makefile.am): Likewise.
57829         * modules/lstat (Makefile.am): Likewise.
57830         * modules/malloc (Makefile.am): Likewise.
57831         * modules/mathl (Makefile.am): Likewise.
57832         * modules/mbchar (Makefile.am): Likewise.
57833         * modules/md2 (Makefile.am): Likewise.
57834         * modules/md4 (Makefile.am): Likewise.
57835         * modules/md5 (Makefile.am): Likewise.
57836         * modules/memcasecmp (Makefile.am): Likewise.
57837         * modules/memchr (Makefile.am): Likewise.
57838         * modules/memcmp (Makefile.am): Likewise.
57839         * modules/memcoll (Makefile.am): Likewise.
57840         * modules/memcpy (Makefile.am): Likewise.
57841         * modules/memmem (Makefile.am): Likewise.
57842         * modules/memmove (Makefile.am): Likewise.
57843         * modules/mempcpy (Makefile.am): Likewise.
57844         * modules/memrchr (Makefile.am): Likewise.
57845         * modules/memset (Makefile.am): Likewise.
57846         * modules/memxor (Makefile.am): Likewise.
57847         * modules/mkancesdirs (Makefile.am): Likewise.
57848         * modules/mkdir (Makefile.am): Likewise.
57849         * modules/mkdir-p (Makefile.am): Likewise.
57850         * modules/mkdtemp (Makefile.am): Likewise.
57851         * modules/mkstemp (Makefile.am): Likewise.
57852         * modules/mktime (Makefile.am): Likewise.
57853         * modules/modechange (Makefile.am): Likewise.
57854         * modules/mountlist (Makefile.am): Likewise.
57855         * modules/nanosleep (Makefile.am): Likewise.
57856         * modules/openat (Makefile.am): Likewise.
57857         * modules/pagealign_alloc (Makefile.am): Likewise.
57858         * modules/physmem (Makefile.am): Likewise.
57859         * modules/poll (Makefile.am): Likewise.
57860         * modules/posixtm (Makefile.am): Likewise.
57861         * modules/posixver (Makefile.am): Likewise.
57862         * modules/putenv (Makefile.am): Likewise.
57863         * modules/quote (Makefile.am): Likewise.
57864         * modules/quotearg (Makefile.am): Likewise.
57865         * modules/raise (Makefile.am): Likewise.
57866         * modules/read-file (Makefile.am): Likewise.
57867         * modules/readline (Makefile.am): Likewise.
57868         * modules/readlink (Makefile.am): Likewise.
57869         * modules/readtokens (Makefile.am): Likewise.
57870         * modules/readutmp (Makefile.am): Likewise.
57871         * modules/realloc (Makefile.am): Likewise.
57872         * modules/regex (Makefile.am): Likewise.
57873         * modules/rename (Makefile.am): Likewise.
57874         * modules/rename-dest-slash (Makefile.am): Likewise.
57875         * modules/rijndael (Makefile.am): Likewise.
57876         * modules/rmdir (Makefile.am): Likewise.
57877         * modules/rpmatch (Makefile.am): Likewise.
57878         * modules/safe-read (Makefile.am): Likewise.
57879         * modules/safe-write (Makefile.am): Likewise.
57880         * modules/same (Makefile.am): Likewise.
57881         * modules/save-cwd (Makefile.am): Likewise.
57882         * modules/savedir (Makefile.am): Likewise.
57883         * modules/setenv (Makefile.am): Likewise.
57884         * modules/settime (Makefile.am): Likewise.
57885         * modules/sha1 (Makefile.am): Likewise.
57886         * modules/sig2str (Makefile.am): Likewise.
57887         * modules/snprintf (Makefile.am): Likewise.
57888         * modules/stdlib-safer (Makefile.am): Likewise.
57889         * modules/stpcpy (Makefile.am): Likewise.
57890         * modules/stpncpy (Makefile.am): Likewise.
57891         * modules/strcase (Makefile.am): Likewise.
57892         * modules/strcasestr (Makefile.am): Likewise.
57893         * modules/strchrnul (Makefile.am): Likewise.
57894         * modules/strcspn (Makefile.am): Likewise.
57895         * modules/strdup (Makefile.am): Likewise.
57896         * modules/strerror (Makefile.am): Likewise.
57897         * modules/strftime (Makefile.am): Likewise.
57898         * modules/strndup (Makefile.am): Likewise.
57899         * modules/strnlen (Makefile.am): Likewise.
57900         * modules/strpbrk (Makefile.am): Likewise.
57901         * modules/strsep (Makefile.am): Likewise.
57902         * modules/strstr (Makefile.am): Likewise.
57903         * modules/strtod (Makefile.am): Likewise.
57904         * modules/strtoimax (Makefile.am): Likewise.
57905         * modules/strtok_r (Makefile.am): Likewise.
57906         * modules/strtol (Makefile.am): Likewise.
57907         * modules/strtoll (Makefile.am): Likewise.
57908         * modules/strtoul (Makefile.am): Likewise.
57909         * modules/strtoull (Makefile.am): Likewise.
57910         * modules/strtoumax (Makefile.am): Likewise.
57911         * modules/strverscmp (Makefile.am): Likewise.
57912         * modules/time_r (Makefile.am): Likewise.
57913         * modules/timegm (Makefile.am): Likewise.
57914         * modules/tmpfile-safer (Makefile.am): Likewise.
57915         * modules/unistd-safer (Makefile.am): Likewise.
57916         * modules/unlinkdir (Makefile.am): Likewise.
57917         * modules/userspec (Makefile.am): Likewise.
57918         * modules/utime (Makefile.am): Likewise.
57919         * modules/utimecmp (Makefile.am): Likewise.
57920         * modules/utimens (Makefile.am): Likewise.
57921         * modules/vasnprintf (Makefile.am): Likewise.
57922         * modules/vasprintf (Makefile.am): Likewise.
57923         * modules/vsnprintf (Makefile.am): Likewise.
57924         * modules/xalloc (Makefile.am): Likewise.
57925         * modules/xgetcwd (Makefile.am): Likewise.
57926         * modules/xnanosleep (Makefile.am): Likewise.
57927         * modules/xreadlink (Makefile.am): Likewise.
57928         * modules/xstrtod (Makefile.am): Likewise.
57929         * modules/xstrtol (Makefile.am): Likewise.
57930         * modules/xstrtold (Makefile.am): Likewise.
57931         * modules/yesno (Makefile.am): Likewise.
57932
57933 2006-10-12  Jim Meyering  <jim@meyering.net>
57934
57935         * m4/getloadavg.m4: Revert the change below.
57936
57937         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57938         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57939         fail with a symlink, which is what coreutils' ./bootstrap now
57940         creates by default.
57941
57942 2006-10-12  Bruno Haible  <bruno@clisp.org>
57943
57944         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57945         mingw.
57946         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57947         MSVC and mingw explicitly.
57948
57949 2006-10-11  Simon Josefsson  <jas@extundo.com>
57950             Bruno Haible  <bruno@clisp.org>
57951
57952         Add support for multiple gnulib-tool invocations in the scope of a
57953         single configure.ac file.
57954         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57955         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57956         with the same contents as the _LIBADD variable.
57957         (func_emit_initmacro_start, func_emit_initmacro_end,
57958         func_emit_initmacro_done): New functions.
57959         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57960         gl_LIBOBJS and gl_LTLIBOBJS.
57961
57962 2006-10-11  Bruno Haible  <bruno@clisp.org>
57963
57964         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57965         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57966         autoreconf. Instead, invoke autopoint explicitly but move back the
57967         *.m4 files from gnulib.
57968
57969 2006-10-11  Bruno Haible  <bruno@clisp.org>
57970
57971         * gnulib-tool (func_usage): Make module names after --create-testdir
57972         optional.
57973         (func_create_testdir): If no module was specified, use nearly all
57974         modules.
57975
57976 2006-10-12  Jim Meyering  <jim@meyering.net>
57977
57978         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57979         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57980         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57981         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57982         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57983         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57984         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57985         (fts_set_stat_required): New function.
57986         (fts_open): Defer the calls to fts_stat, if possible or requested.
57987         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57988         into fts_stat itself.
57989         (fts_read): Perform any required (deferred) fts_stat call.
57990         (fts_build): Likewise, for the directory we're about to open and read.
57991         In the readdir loop, carefully decide whether each entry will require
57992         an eventual call to fts_stat, using dirent.d_type info if available.
57993         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57994         a command line argument into this function.  Update all callers.
57995         Map a return value of FTS_DOT to FTS_D for a command line argument.
57996         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57997         Thanks to Miklos Szeredi for his tenacity and for the initial
57998         bug report about "find" failing on a FUSE-based file system.
57999
58000         * lib/fts.c (fts_open): Use consistent indentation.
58001
58002 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58005         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58006         reported by Jim Meyering.  All uses of cache variables renamed
58007         to match Autoconf's.
58008         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58009         the other one.
58010
58011         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58012         Fix misspelling in diagnostic.
58013
58014 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58017         defined.  Problem reported by Matthew Woehlke.
58018
58019         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58020         Add support for Tandem NonStop R series.
58021         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58022         Use new macro.
58023
58024         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58025         (has_trailing_slash): Omit size arg; all callers changed.
58026         Omit 'inline', since it doesn't help performance and we'd
58027         need to configure it.
58028         Don't count //, ///, etc. as having a trailing slash.
58029         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58030         (rpl_rename_dest_slash): On failure, use rename's errno rather
58031         than (in some cases) an incorrect or junk errno.
58032         Simplify code by removing need to compute length; this does
58033         cause it to make two passes instead of one over the file name,
58034         but it's worth it.
58035
58036         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58037         change, since Autoconf's version may no longer be appropriate now
58038         that we are using CVS Autoconf's version.  Add support for Tandem.
58039
58040 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58041             Bruno Haible  <bruno@clisp.org>
58042
58043         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58044         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58045         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58046         gl_AC_TYPE_LONG_LONG.
58047
58048         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58049         instead of HAVE_LONG_LONG.
58050         * lib/printf-args.c (printf_fetchargs): Likewise.
58051         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58052         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58053         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58054         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58055         gl_AC_TYPE_LONG_LONG.
58056
58057 2006-10-11  Bruno Haible  <bruno@clisp.org>
58058
58059         * m4/longlong.m4: Add comments.
58060         * m4/ulonglong.m4: Likewise.
58061
58062 2006-10-10  Bruno Haible  <bruno@clisp.org>
58063
58064         Make it possible to #define stpcpy, strdup to aliases.
58065         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58066         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58067
58068 2006-10-10  Bruno Haible  <bruno@clisp.org>
58069
58070         Make it possible to #define gcd to an alias.
58071         * lib/gcd.c: Include config.h.
58072
58073 2006-10-10  Bruno Haible  <bruno@clisp.org>
58074
58075         Make it possible to #define c_isascii to an alias.
58076         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58077         defined. Undefine the macros before defining them, to avoid gcc
58078         warnings.
58079         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58080         define NO_C_CTYPE_MACROS early.
58081
58082 2006-10-10  Bruno Haible  <bruno@clisp.org>
58083
58084         Make it possible to #define set_program_name to an alias.
58085         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58086         ENABLE_RELOCATABLE early.
58087
58088 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58089
58090         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58091         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58092         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58093         More generally, don't assume that 64-bit signed int is available
58094         if unsigned int is, and vice versa.
58095         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58096         unsigned symbols, not on their signed counterparts.
58097         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58098         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58099         (UINT64_C, UINTMAX_C):
58100         Likewise.
58101         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58102         unsigned counterparts.
58103         (Have_long_long, Unsigned): New macros.
58104         (Int): Renamed from INT.
58105         (strtoimax): Use the new macros.
58106         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58107         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58108         * modules/inttypes (inttypes.h): Substitute
58109         HAVE_UNSIGNED_LONG_LONG_INT.
58110         * modules/stdint (stdint.h): Likewise.
58111         (Files): Add m4/ulonglong.m4.
58112
58113 2006-10-10  Bruno Haible  <bruno@clisp.org>
58114
58115         Fix a gcc -Wshadow warning.
58116         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58117         to 'bucket'.
58118         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58119         gl_linked_indexof_from_to): Likewise.
58120         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58121         Likewise.
58122         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58123         Likewise.
58124         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58125         Reported by Eric Blake.
58126
58127 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58128
58129         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58130         for NetBSD.  Problem reported by Bruno Haible.
58131
58132 2006-10-09  Jim Meyering  <jim@meyering.net>
58133
58134         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58135         Patch from Bruno Haible.
58136
58137 2006-10-09  Jim Meyering  <jim@meyering.net>
58138
58139         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58140         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58141         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58142
58143 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58144
58145         Don't include <config.h> twice; this doesn't work in some cases,
58146         e.g., when config.h has "#define intmax_t long long int" and
58147         we include <config.h>, <inttypes.h>, <config.h> in that order.
58148         Problem reported by Matthew Woehlke in:
58149         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58150         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58151         * lib/fts-cycle.c: Don't include config.h.
58152         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58153         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58154         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58155         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58156         inttypes.h.
58157         * lib/xstrtoumax.c: Likewise.
58158         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58159         __strtol and the like, so that this module is more like its siblings.
58160         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58161         Remove; no longer needed now that we assume gnulib inttypes.h.
58162
58163 2006-10-08  Bruno Haible  <bruno@clisp.org>
58164
58165         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58166         option.
58167
58168 2006-10-07  Jim Meyering  <jim@meyering.net>
58169
58170         * modules/inttypes (inttypes.h): Revert what seems to have been
58171         an inadvertent part of today's change: use "|", not "/" in the
58172         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58173
58174 2006-10-07  Bruno Haible  <bruno@clisp.org>
58175
58176         * modules/sublist: New file.
58177
58178 2006-10-07  Bruno Haible  <bruno@clisp.org>
58179
58180         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58181         * modules/argz (argz.h): Likewise.
58182         * modules/arpa_inet (arpa/inet.h): Likewise.
58183         * modules/byteswap (byteswap.h): Likewise.
58184         * modules/configmake (configmake.h): Likewise.
58185         * modules/fcntl (fcntl.h): Likewise.
58186         * modules/fnmatch (fnmatch.h): Likewise.
58187         * modules/getopt (getopt.h): Likewise.
58188         * modules/glob (glob.h): Likewise.
58189         * modules/inttypes (inttypes.h): Likewise.
58190         * modules/netinet_in (netinet/in.h): Likewise.
58191         * modules/poll (poll.h): Likewise.
58192         * modules/stdbool (stdbool.h): Likewise.
58193         * modules/stdint (stdint.h): Likewise.
58194         * modules/sys_select (sys/select.h): Likewise.
58195         * modules/sys_socket (sys/socket.h): Likewise.
58196         * modules/sys_stat (sys/stat.h): Likewise.
58197         * modules/sysexits (sysexits.h): Likewise.
58198         * modules/unistd (unistd.h): Likewise.
58199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58200         Add a "DO NOT EDIT" comment to the generated file.
58201         (func_import): Likewise for gnulib-comp.m4.
58202
58203 2006-10-07  Bruno Haible  <bruno@clisp.org>
58204
58205         * lib/gl_sublist.h: New file.
58206         * lib/gl_sublist.c: New file.
58207
58208 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58209
58210         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58211         name (relative to the original working directory) and the file
58212         name component (relative to the temporary working directory).  All
58213         callers changed.
58214         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58215         * lib/mkdir-p.c (make_dir_parents): Likewise.
58216         * lib/mkdir-p.h (make_dir_parents): Likewise.
58217
58218 2006-10-06  Eric Blake  <ebb9@byu.net>
58219
58220         Define several macros for use by the clean-temp module.
58221         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58222         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58223         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58224
58225         * lib/clean-temp.h (close_stream_temp): New declaration.
58226         * lib/clean-temp.c (includes): Pull in headers according to what
58227         other modules are in use.
58228         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58229
58230 2006-10-06  Bruno Haible  <bruno@clisp.org>
58231
58232         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58233         instead of fopen, fwriteerror.
58234
58235 2006-10-06  Bruno Haible  <bruno@clisp.org>
58236
58237         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58238         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58239         int.
58240         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58241         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58242         Return an error indicator.
58243         Suggested by Eric Blake.
58244
58245 2006-10-06  Bruno Haible  <bruno@clisp.org>
58246
58247         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58248         Reported by Eric Blake.
58249
58250 2006-10-06  Bruno Haible  <bruno@clisp.org>
58251
58252         * modules/closeout (Description): Mention stderr too.
58253
58254 2006-10-06  Bruno Haible  <bruno@clisp.org>
58255         and Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         * lib/closeout.c (close_stdout): Also close stderr.
58258         * lib/closeout.h: Update comment.
58259
58260 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58261
58262         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58263         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58264         * lib/dirchownmod.c: Include lchown.h.
58265         * lib/lchown.c: Don't include files that lchown.h now includes.
58266         Don't declare chown, since lchown.h now does that.
58267         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58268         (lchown): Define to rpl_chown if lchown is declared but
58269         does not exist.  Declare using a prototype if lchown is not
58270         declared.  Add a copyright notice.
58271         * lib/mkstemp.h: Include <unistd.h>.
58272         * lib/openat.c: Include lchown.h.
58273
58274         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58275         we now test for that separately.
58276         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58277         rather than O_NOFOLLOW, when testing whether it's possible to
58278         avoid a race condition reliably.
58279         * lib/savewd.c (savewd_chdir): Likewise.
58280
58281         Remove macros that are no longer needed now that stdint.h is
58282         reliable.
58283         * lib/fsusage.c (UINTMAX_MAX): Remove.
58284         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58285         * lib/utimecmp.c (SIZE_MAX): Remove.
58286
58287         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58288
58289         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58290         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58291         O_NOATIME works.
58292
58293 2006-10-05  Bruno Haible  <bruno@clisp.org>
58294
58295         * lib/gl_list.h (gl_sortedlist_search_from_to,
58296         gl_sortedlist_indexof_from_to): New declarations.
58297         (gl_list_implementation): New fields sortedlist_search_from_to,
58298         sortedlist_indexof_from_to.
58299         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58300         inline functions.
58301         * lib/gl_list.c (gl_sortedlist_search_from_to,
58302         gl_sortedlist_indexof_from_to): New functions.
58303         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58304         function.
58305         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58306         (gl_array_sortedlist_search_from_to): New function.
58307         (gl_array_list_implementation): Update.
58308         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58309         function.
58310         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58311         (gl_carray_sortedlist_search_from_to): New function.
58312         (gl_carray_list_implementation): Update.
58313         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58314         gl_linked_sortedlist_indexof_from_to): New functions.
58315         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58316         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58317         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58318         gl_tree_sortedlist_indexof_from_to): New functions.
58319         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58320         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58321         Update.
58322         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58323         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58324         Update.
58325
58326 2006-10-05  Bruno Haible  <bruno@clisp.org>
58327
58328         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58329         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58330         (struct gl_list_implementation): Add fields search_from_to,
58331         indexof_from_to. Remove fields search, indexof.
58332         (gl_list_search): Use the search_from_to method.
58333         (gl_list_search_from, gl_list_search_from_to): New functions.
58334         (gl_list_indexof): Use the indexof_from_to method.
58335         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58336         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58337         (gl_list_search_from, gl_list_search_from_to): New functions.
58338         (gl_list_indexof): Use the indexof_from_to method.
58339         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58340         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58341         gl_array_indexof. Add start_index, end_index arguments.
58342         (gl_array_search_from_to): Renamed from gl_array_search. Add
58343         start_index, end_index arguments.
58344         (gl_array_remove, gl_array_list_implementation): Update.
58345         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58346         gl_carray_indexof. Add start_index, end_index arguments.
58347         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58348         start_index, end_index arguments.
58349         (gl_carray_remove, gl_carray_list_implementation): Update.
58350         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58351         gl_linked_search. Add start_index, end_index arguments.
58352         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58353         start_index, end_index arguments.
58354         (gl_linked_remove): Update.
58355         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58356         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58357         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58358         field to 'size_t'.
58359         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58360         gl_tree_search. Add start_index, end_index arguments.
58361         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58362         start_index, end_index arguments.
58363         (gl_tree_remove): Update.
58364         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58365         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58366         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58367         function.
58368         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58369         gl_tree_search. Add start_index, end_index arguments.
58370         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58371         start_index, end_index arguments.
58372         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58373         Update.
58374         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58375
58376 2006-10-05  Bruno Haible  <bruno@clisp.org>
58377
58378         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58379
58380         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58381         fwriteerror_temp): New declarations.
58382         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58383         (descriptors): New variable.
58384         (cleanup): First, close the descriptors.
58385         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58386         fclose_temp, fwriteerror_temp): New functions.
58387
58388 2006-10-04  Jim Meyering  <jim@meyering.net>
58389
58390         * lib/fts.c (fts_open): Tiny comment change.
58391
58392 2006-10-04  Bruno Haible  <bruno@clisp.org>
58393
58394         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58395         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58396         gl_LOCK_BODY.
58397         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58398         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58399         gl_LOCK_EARLY_BODY.
58400         (gl_LOCK): Require gl_LOCK_BODY.
58401
58402 2006-10-04  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58405         (gl_oset_search_atleast): New declaration.
58406         (struct gl_oset_implementation): Add field 'search_atleast'.
58407         (gl_oset_search_atleast): New inline function.
58408         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58409         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58410         (gl_array_oset_implementation): Update.
58411         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58412         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58413         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58414
58415 2006-10-04  Bruno Haible  <bruno@clisp.org>
58416
58417         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58418
58419 2006-10-03  Bruno Haible  <bruno@clisp.org>
58420
58421         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58422         from gl_avltreehash_list_implementation.
58423
58424 2006-10-03  Bruno Haible  <bruno@clisp.org>
58425
58426         * lib/gl_oset.c (gl_oset_add): Fix return type.
58427
58428 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58429
58430         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58431
58432 2006-10-02  Eric Blake  <ebb9@byu.net>
58433
58434         * modules/strnlen (Depends-on): Add extensions.
58435
58436 2006-10-02  Eric Blake  <ebb9@byu.net>
58437
58438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58439         definition in 2.60+.
58440
58441 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58442
58443         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58444         checks.
58445
58446 2006-10-02  Bruno Haible  <bruno@clisp.org>
58447
58448         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58449         to the AUTOMAKE_OPTIONS.
58450         Reported by Jim Meyering.
58451
58452 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58453
58454         Work around bug in Solaris 10 /proc file system:
58455         /proc/self/fd/NNN/.. isn't the parent directory of
58456         the directory whose file descriptor is NNN.  This needs to
58457         be worked around at run time, not compile time, since a
58458         program might be built on Solaris 8, where things work, and
58459         run on Solaris 10.
58460         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58461         to use the following interface instead:
58462         (OPENAT_BUFFER_SIZE): New macro.
58463         (openat_proc_name): New function.
58464         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58465         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58466         Likewise.
58467         * lib/openat-proc.c: New file.
58468         * modules/openat (Files): Add lib/openat-proc.c.
58469         (Depends-on): Add same-inode, stdbool.
58470         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58471
58472 2006-09-29  Bruno Haible  <bruno@clisp.org>
58473
58474         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58475         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58476         argument. Set stdout_closed before testing for ferror, not after.
58477         (fwriteerror, fwriteerror_no_ebadf): New functions.
58478
58479 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58480
58481         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58482
58483 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58484
58485         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58486         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58487
58488 2006-09-28  Jim Meyering  <jim@meyering.net>
58489
58490         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58491         Include <unistd.h>.
58492
58493 2006-09-28  Bruno Haible  <bruno@clisp.org>
58494
58495         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58496         * modules/linkedhash-list (Depends-on): Likewise.
58497         * modules/rbtreehash-list (Depends-on): Likewise.
58498
58499 2006-09-28  Bruno Haible  <bruno@clisp.org>
58500
58501         * lib/strndup.h: Simplify the redefinition of strndup.
58502         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58503         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58504
58505 2006-09-28  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58508         * lib/gl_linkedhash_list.c: Likewise.
58509         * lib/gl_rbtreehash_list.c: Likewise.
58510
58511 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58514         getaddrinfo.
58515
58516         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58517         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58518         it causes <stdio_ext.h> to cause a compile-time error.
58519         Problem reported by Nelson H. F. Beebe.
58520         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58521         of HAVE_DECL___PENDING.
58522
58523         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58524         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58525         declaration.
58526
58527 2006-09-27  Jim Meyering  <jim@meyering.net>
58528
58529         This file could end up with a definition for a function
58530         named __strndup, rather than rpl_strndup on a system with
58531         incomplete weak_alias support.
58532         * lib/strndup.c (strndup): Rename from __strndup.
58533         Remove #defines that used to map __strndup to strndup.
58534         Don't use K&R prototypes.
58535         Remove LIBC-related code, since this file is not sync'd with glibc.
58536         * lib/strndup.h: Revamp, accordingly.
58537         * m4/strndup.m4: Modernize.
58538
58539 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         * modules/savewd (Depends-on): Add 'raise'.
58542         * lib/savewd.c: Include <signal.h>, for 'raise'.
58543
58544 2006-09-26  Jim Meyering  <jim@meyering.net>
58545
58546         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58547         when we detect Darwin 8.7.0's acl_get_file bug.
58548         Rearrange to perform the new (below) run-test while $LIBS
58549         contains any acl-related library.  Set USE_ACL at the end.
58550         (gl_ACL_GET_FILE): New function.
58551
58552 2006-09-26  Eric Blake  <ebb9@byu.net>
58553
58554         * lib/verror.c: Include <config.h> unconditionally.
58555
58556 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58557
58558         * modules/clock-time (Maintainer): Add self.
58559         * modules/getlogin_r (Depends-on): Add extensions.
58560
58561 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58562
58563         * modules/clock-time: New module.
58564         * modules/nanosleep (Depends-on): Add clock-time.
58565         * modules/gethrxtime (Depends-on): Likewise.
58566         * modules/gettime (Depends-on): Likewise.
58567         * modules/settime (Depends-on): Likewise.
58568
58569         * modules/fts-lgpl: Depend on openat.
58570         * modules/mkancesdirs: Depend on savewd.
58571         * modules/mkdir-p: Likewise.
58572
58573 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58574
58575         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58576
58577         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58578         `gl_have_arbitrary_file_name_length_limit' to
58579         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58580         actually works between configure runs.
58581
58582 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58583             Bruno Haible  <bruno@clisp.org>
58584
58585         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58586
58587 2006-09-25  Jim Meyering  <jim@meyering.net>
58588
58589         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58590         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58591
58592 2006-09-25  Eric Blake  <ebb9@byu.net>
58593
58594         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58595         exec's in 2006-09-18 patch when shuffling fds.
58596
58597 2006-09-25  Bruno Haible  <bruno@clisp.org>
58598
58599         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58600         Reported by Jim Meyering.
58601
58602 2006-09-24  Jim Meyering  <jim@meyering.net>
58603
58604         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58605         compare a pointer against a literal "0".  That caused failures with
58606         at least HP-UX's hpcc.
58607
58608 2006-09-22  Simon Josefsson  <jas@extundo.com>
58609
58610         * modules/gc-sha1:
58611         * modules/gc-md4:
58612         * modules/gc-hmac-sha1:
58613         * modules/gc-hmac-md5:
58614         * modules/gc-des:
58615         * modules/gc-arcfour: Distribute more files.
58616
58617 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58618
58619         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58620         (gl_linked_iterator_from_to): Initialize struct completely.
58621         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58622         (gl_tree_iterator_from_to): Likewise
58623         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58624         * lib/gl_array_list.c [lint] (gl_array_iterator)
58625         (gl_array_iterator_from_to): Likewise.
58626         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58627         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58628         (gl_carray_iterator_from_to): Likewise.
58629
58630         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58631         * lib/md4.c (md4_process_block): Remove unused variable.
58632         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58633         parentheses for clarity.
58634
58635 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58636
58637         * modules/bison-i18n (Depends-on): Add gettext.
58638
58639 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58640
58641         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58642         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58643         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58644         also add missing comma that caused broken test.
58645         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58646         stdlib.h, for `abort'.
58647         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58648         variables.
58649         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58650         include unistd.h if present, for `rmdir'.
58651         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58652         variables.
58653         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58654         in the process include standard headers for prototypes.
58655         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58656         gets declared on GNU/Linux.
58657         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58658         unistd.h, for `rmdir'.
58659         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58660
58661         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58662         always true.
58663         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58664
58665         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58666
58667 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58668
58669         * gnulib-tool (func_version): Create output all at once.  This
58670         may help avoid triggering unnecessary SIGPIPEs, and at any
58671         rate it doesn't hurt.
58672
58673 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58674             Bruno Haible  <bruno@clisp.org>
58675
58676         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58677         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58678         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58679
58680         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58681         (gl_FUNC_VASPRINTF): Invoke it.
58682
58683 2006-09-22  Bruno Haible  <bruno@clisp.org>
58684
58685         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58686         getloadavg.c as first argument.
58687
58688 2006-09-22  Bruno Haible  <bruno@clisp.org>
58689
58690         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58691         at the beginning of the gl_INIT macro.
58692         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58693         gl_GETLOADAVG.
58694
58695 2006-09-22  Bruno Haible  <bruno@clisp.org>
58696
58697         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58698         module.
58699         Suggested by Ralf Wildenhues.
58700
58701 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58702
58703         Import this patch from libc:
58704
58705         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58706
58707         * lib/regex_internal.c (re_string_reconstruct): Handle
58708         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58709         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58710         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58711         re_string_context_at.
58712
58713         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58714         now requires it.
58715         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58716         gl_REGEX now does it for us.
58717         (gl_REGEX): Add test taken from
58718         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58719
58720         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58721         Check that large offsets work.  Modernize Autoconf usages.
58722         Prefer "yes" to mean a good thing rather than a bad.
58723         Don't put "#define mkstemp" in config.h, as this might interfere
58724         with standard system headers that "#define mkstemp mkstemp64".
58725
58726         * modules/mkstemp (Depends-on): Add extensions, so that
58727         mkstemp is visible on some platforms.
58728         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58729         (Include): Change to "mkstemp.h" from <stdlib.h>.
58730         (Files): Add mkstemp.h.
58731
58732         * lib/mkstemp.h: New file, since some standard headers
58733         #define mkstemp.
58734         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58735         Include "mkstemp.h".
58736         Make the _LIBC code resemble glibc original more,
58737         e.g., use K&R style.
58738         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58739         (mkstemp): Remove, since mkstemp.h does this for us.
58740         * lib/stdlib--.h: Include mkstemp.h.
58741
58742         Import this patch from libc:
58743
58744         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58745
58746         * lib/tempname.c (__gen_tempname): Change attempts_min
58747         into a macro.  Use preprocessor to decide how to initialize
58748         attempts [Coverity CID 67].
58749
58750 2006-09-20  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/mkdtemp.c: Import from libc.
58753         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58754                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58755                 attempts_min into a macro.  Use preprocessor to decide how to
58756                 initialize attempts [Coverity CID 67].
58757         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58758                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58759                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58760
58761 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58762
58763         * gnulib-tool (func_exit): New function, to allow to pass the
58764         exit status portably through the trap.  Use everywhere.
58765         (--help, --version): Signal a write error.
58766         (trap): catch SIGPIPE, for write errors.
58767         Exit at the end of the trap, with the correct exit status.
58768
58769 2006-09-19  Karl Berry  <karl@gnu.org>
58770
58771         * doc/gnulib.texi: note about the license texinfo files.
58772
58773 2006-09-19  Eric Blake  <ebb9@byu.net>
58774
58775         * gnulib-tool: Avoid space-tab.
58776
58777 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58778
58779         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58780         that prevented coreutils 6.1 from building.  Problem reported
58781         by Petter Reinholdtsen.
58782
58783 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * gnulib-tool (avoidlist): Fix typo that broke options like
58786         --avoid=lock that are used by coreutils bootstrap.
58787
58788 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58789
58790         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58791         more systematically.
58792
58793 2006-09-18  Jim Meyering  <jim@meyering.net>
58794
58795         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58796
58797 2006-09-18  Bruno Haible  <bruno@clisp.org>
58798
58799         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58800
58801 2006-09-18  Bruno Haible  <bruno@clisp.org>
58802
58803         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58804         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58805         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58806         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58807         * m4/gettext.m4: Require autoconf >= 2.52.
58808         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58809         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58810         of gl_cv_header_inttypes_h.
58811
58812 2006-09-18  Bruno Haible  <bruno@clisp.org>
58813
58814         * lib/javaversion.c: Include configmake.h.
58815
58816 2006-09-18  Bruno Haible  <bruno@clisp.org>
58817
58818         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58819         avoid that the while loops be executed in a subshell.
58820
58821 2006-09-18  Bruno Haible  <bruno@clisp.org>
58822
58823         * MODULES.html.sh (func_module): Break long lines.
58824         Suggested by Bruce Korb <bkorb@gnu.org>.
58825
58826 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58827
58828         Speed up by a factor of 1.12.
58829         * gnulib-tool (nl): New variable.
58830         (func_import): Rewrite include directive extraction to only read each
58831         directive once.
58832
58833 2006-09-17  Bruno Haible  <bruno@clisp.org>
58834
58835         * modules/javaversion (Makefile.am): Remove DEFS setting.
58836         (Depends-on): Add configmake, for PKGDATADIR definition.
58837
58838 2006-09-17  Bruno Haible  <bruno@clisp.org>
58839
58840         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58841
58842 2006-09-17  Bruno Haible  <bruno@clisp.org>
58843
58844         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58845         (func_modules_transitive_closure, func_modules_add_dummy,
58846         func_modules_to_filelist, func_import, func_create_testdir,
58847         func_create_megatestdir, ...): Use it wherever possible.
58848         Suggested by Ralf Wildenhues.
58849
58850 2006-09-16  Karl Berry  <karl@gnu.org>
58851
58852         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58853         to avoid sectioning errors.
58854         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58855         [ifinfo]: blank line after @center-ed titles.
58856         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58857         Spell FSF address consistently with others.
58858         (These changes approved by rms.)
58859
58860 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58861
58862         Speed up by a factor of 1.61.
58863         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58864         already checked module names again.
58865
58866 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58867
58868         Speed up by a factor of 1.13.
58869         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58870         for new_files, and the input to func_add_or_update.
58871
58872 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58873
58874         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58875         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58876
58877 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         * modules/mkancesdirs (Depends-on): Add fcntl.
58880         * modules/savewd: New file.
58881         * MODULES.html.sh (File system functions): Add savewd.
58882
58883         * modules/configmake (Makefile.am): Add support for the
58884         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58885
58886 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         * m4/savewd.m4: New file.
58889
58890 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58891
58892         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58893         (dirchownmod): New arg FD.  All callers changed.
58894         Use FD rather than opening the directory ourself, as opening is
58895         now the caller's responsibility.
58896         * lib/dirchownmod.h: Likewise.
58897         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58898         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58899         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58900         (test_dir): Remove.
58901         (mkancesdirs): Return length of prefix of FILE that has already
58902         been made, or -2 if there is a child doing the work.  Redo
58903         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58904         ".", and treat ".." specially since it might stray back into
58905         already-created areas.  Use a subprocess if necessary.  New arg
58906         WD; all users changed.  MAKE_DIR function should now return 1
58907         if it creates a directory that is not readable.  Return -2 if
58908         a child process is spun off.
58909         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58910         Adjust signature to match code.
58911         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58912         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58913         all users changed.
58914         * lib/savewd.c, lib/savewd.h: New files.
58915
58916 2006-09-15  Jim Meyering  <jim@meyering.net>
58917
58918         * modules/rename-dest-slash: New module.
58919         * MODULES.html.sh (posix_compat): Add it here.
58920
58921         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58922
58923 2006-09-15  Jim Meyering  <jim@meyering.net>
58924
58925         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58926         file.
58927
58928         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58929
58930 2006-09-15  Jim Meyering  <jim@meyering.net>
58931
58932         * lib/rename-dest-slash.c (has_trailing_slash): Use
58933         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58934         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58935         test before testing whether SRC is a directory.
58936         Suggestions from Bruno Haible.
58937
58938         Avoid a warning about an unused variable.
58939         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58940         into the #ifdef block where it's used.
58941
58942         * lib/rename-dest-slash.c: New file.
58943
58944 2006-09-14  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/allocsa.c: Include <config.h> unconditionally.
58947         * lib/asnprintf.c: Likewise.
58948         * lib/asprintf.c: Likewise.
58949         * lib/c-strcasecmp.c: Likewise.
58950         * lib/c-strcasestr.c: Likewise.
58951         * lib/c-strncasecmp.c: Likewise.
58952         * lib/c-strstr.c: Likewise.
58953         * lib/classpath.c: Likewise.
58954         * lib/clean-temp.c: Likewise.
58955         * lib/concatpath.c: Likewise.
58956         * lib/copy-file.c: Likewise.
58957         * lib/csharpcomp.c: Likewise.
58958         * lib/csharpexec.c: Likewise.
58959         * lib/execute.c: Likewise.
58960         * lib/fatal-signal.c: Likewise.
58961         * lib/findprog.c: Likewise.
58962         * lib/fwriteerror.c: Likewise.
58963         * lib/gl_array_list.c: Likewise.
58964         * lib/gl_array_oset.c: Likewise.
58965         * lib/gl_avltree_list.c: Likewise.
58966         * lib/gl_avltree_oset.c: Likewise.
58967         * lib/gl_avltreehash_list.c: Likewise.
58968         * lib/gl_carray_list.c: Likewise.
58969         * lib/gl_linked_list.c: Likewise.
58970         * lib/gl_linkedhash_list.c: Likewise.
58971         * lib/gl_list.c: Likewise.
58972         * lib/gl_oset.c: Likewise.
58973         * lib/gl_rbtree_list.c: Likewise.
58974         * lib/gl_rbtree_oset.c: Likewise.
58975         * lib/gl_rbtreehash_list.c: Likewise.
58976         * lib/imaxabs.c: Likewise.
58977         * lib/imaxdiv.c: Likewise.
58978         * lib/javacomp.c: Likewise.
58979         * lib/javaexec.c: Likewise.
58980         * lib/javaversion.c: Likewise.
58981         * lib/linebreak.c: Likewise.
58982         * lib/localcharset.c: Likewise.
58983         * lib/lock.c: Likewise.
58984         * lib/mbchar.c: Likewise.
58985         * lib/mbswidth.c: Likewise.
58986         * lib/mkdtemp.c: Likewise.
58987         * lib/pipe.c: Likewise.
58988         * lib/printf-args.c: Likewise.
58989         * lib/printf-parse.c: Likewise.
58990         * lib/progname.c: Likewise.
58991         * lib/progreloc.c: Likewise.
58992         * lib/readlink.c: Likewise.
58993         * lib/sh-quote.c: Likewise.
58994         * lib/stpcpy.c: Likewise.
58995         * lib/stpncpy.c: Likewise.
58996         * lib/strcasecmp.c: Likewise.
58997         * lib/strcasestr.c: Likewise.
58998         * lib/strcspn.c: Likewise.
58999         * lib/striconv.c: Likewise.
59000         * lib/strncasecmp.c: Likewise.
59001         * lib/strnlen1.c: Likewise.
59002         * lib/strstr.c: Likewise.
59003         * lib/strtok_r.c: Likewise.
59004         * lib/tls.c: Likewise.
59005         * lib/tmpdir.c: Likewise.
59006         * lib/unicodeio.c: Likewise.
59007         * lib/unsetenv.c: Likewise.
59008         * lib/vasnprintf.c: Likewise.
59009         * lib/vasprintf.c: Likewise.
59010         * lib/wait-process.c: Likewise.
59011         * lib/xallocsa.c: Likewise.
59012         * lib/xsetenv.c: Likewise.
59013         * lib/xstriconv.c: Likewise.
59014
59015 2006-09-13  Simon Josefsson  <jas@extundo.com>
59016
59017         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59018         that internally, suggested by Ralf Wildenhues
59019         <Ralf.Wildenhues@gmx.de>.
59020
59021 2006-09-13  Simon Josefsson  <jas@extundo.com>
59022
59023         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59024         @LIBOBJS@.
59025         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59026
59027 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59030         longer worry about uses that don't define HAVE_CONFIG_H.
59031         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59032         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59033         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59034         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59035         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59036         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59037         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59038         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59039         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59040         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59041         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59042         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59043         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59044         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59045         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59046         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59047         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59048         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59049         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59050         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59051         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59052         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59053         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59054         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59055         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59056         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59057         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59058         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59059         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59060         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59061         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59062         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59063         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59064         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59065         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59066         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59067         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59068         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59069         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59070         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59071         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59072         Likewise.
59073
59074 2006-09-13  Eric Blake  <ebb9@byu.net>
59075
59076         * lib/getopt.c: Fix typo in last commit.
59077
59078 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59079
59080         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59081         dgettext.
59082
59083 2006-09-12  Jim Meyering  <jim@meyering.net>
59084
59085         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59086         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59087         Reported by Nelson H. F. Beebe.
59088
59089 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59090
59091         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59092         program_invocation_name and program_invocation_short_name are
59093         initialized.
59094         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59095         and program_invocation_short_name to argp.h, so they are visible
59096         to user programs.
59097         * lib/argp.h: Likewise
59098
59099 2006-09-10  Bruno Haible  <bruno@clisp.org>
59100
59101         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59102         m4/inttypes_h.m4, m4/uintmax_t.m4.
59103
59104 2006-09-10  Bruno Haible  <bruno@clisp.org>
59105
59106         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59107         gl_AC_TYPE_UINTMAX_T.
59108
59109 2006-09-10  Bruno Haible  <bruno@clisp.org>
59110
59111         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59112
59113 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59114
59115         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59116         convention.  Text proposed by Bruno Haible.
59117         (struct argp_option): Document the use of N_() wrappers.
59118
59119         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59120         '\v', and translate the two parts separately, instead of feeding
59121         the whole string to gettext.  This allows to exclude
59122         '\v' from the strings visible to the translator by writing doc
59123         strings as N_("..") "\v" N_("..").
59124
59125 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59126
59127         * config/srclist.txt: Undo latest change; the bug was fixed.
59128
59129 2006-09-09  Bruno Haible  <bruno@clisp.org>
59130
59131         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59132         assignments if building a library without libtool.
59133         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59134         in func_emit_lib_Makefile_am.
59135         (func_import): When building a static library libfoo.a, arrange to
59136         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59137         (func_create_testdir): Likewise.
59138         * modules/gc (configure.ac, Makefile.am): If building statically,
59139         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59140         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59141         * modules/striconv (configure.ac, Makefile.am): Likewise.
59142         Based on a suggestion by Ralf Wildenhues.
59143
59144 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59145
59146         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59147         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59148         Also:
59149
59150         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59151         Add year_2050_test to catch glibc bug 2821
59152         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59153
59154         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59155         Prefer #ifdef to #if.
59156
59157         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59158         Return from 'main' instead of calling 'exit'.
59159
59160 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59161
59162         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59163         returned the maximum time_t value rather than (time_t) -1.
59164         Problem originally reported by William Bardwell
59165         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59166
59167         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59168         Moved to here ...
59169         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59170         ... from here.
59171
59172 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59173
59174         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59175         2821 is fixed.
59176
59177 2006-09-08  Jim Meyering  <jim@meyering.net>
59178
59179         Don't make generated files read-only.  That would bother too many
59180         people.  However, do retain the ability to work when targets are
59181         read-only: remove the destination and temporary files before writing
59182         them (when generated via sed or echo), or by using the -f option for
59183         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59184         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59185         * modules/byteswap, modules/configmake, modules/fcntl:
59186         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59187         * modules/localcharset, modules/netinet_in, modules/poll:
59188         * modules/stdbool, modules/stdint, modules/sys_select:
59189         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59190
59191 2006-09-08  Jim Meyering  <jim@meyering.net>
59192
59193         Avoid new build failure on FreeBSD 6.0.
59194         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59195         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59196         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59197
59198 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59199
59200         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59201
59202 2006-09-07  Jim Meyering  <jim@meyering.net>
59203
59204         Fix global typo in last change: use chmod u-w, not chmod u-x.
59205         Spotted by Paul Eggert and Bruce Korb.
59206         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59207         * modules/byteswap, modules/configmake, modules/fcntl:
59208         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59209         * modules/localcharset, modules/netinet_in, modules/poll:
59210         * modules/stdbool, modules/stdint, modules/sys_select:
59211         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59212
59213 2006-09-06  Jim Meyering  <jim@meyering.net>
59214
59215         Make generated files be read-only.
59216         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59217         Ensure that each generated file is now read-only.
59218         * modules/argz: Likewise.
59219         * modules/arpa_inet: Likewise.
59220         * modules/byteswap: Likewise.
59221         * modules/configmake: Likewise.
59222         * modules/fcntl: Likewise.
59223         * modules/fnmatch: Likewise.
59224         * modules/getopt: Likewise.
59225         * modules/glob: Likewise.
59226         * modules/inttypes: Likewise.
59227         * modules/netinet_in: Likewise.
59228         * modules/poll: Likewise.
59229         * modules/stdbool: Likewise.
59230         * modules/stdint: Likewise.
59231         * modules/sys_select: Likewise.
59232         * modules/sys_socket: Likewise.
59233         * modules/sys_stat: Likewise.
59234         * modules/sysexits: Likewise.
59235         * modules/localcharset: Same as above, but continue using temporary
59236         file named "t-$@" (why different?) rather than the "$@-t" used
59237         everywhere else.
59238
59239         * modules/sysexits (Makefile.am): Replace literal occurrences
59240         of "sysexit.h" more readable, and more consistent, "$@".
59241
59242 2006-09-06  Bruno Haible  <bruno@clisp.org>
59243
59244         * modules/striconv: New file.
59245         * modules/xstriconv: New file.
59246         * MODULES.html.sh (Internationalization functions): Add striconv,
59247         xstriconv.
59248
59249 2006-09-06  Bruno Haible  <bruno@clisp.org>
59250
59251         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59252         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59253         not using libtool correctly.
59254
59255 2006-09-06  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/striconv.h: New file.
59258         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59259         iconvstring.c.
59260         * lib/xstriconv.h: New file.
59261         * lib/xstriconv.c: New file.
59262
59263 2006-09-06  Bruno Haible  <bruno@clisp.org>
59264
59265         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59266         lib_..._LDFLAGS.
59267
59268 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59269
59270         * lib/argz_.h: Sync from Libtool.
59271
59272         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59273                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59274
59275         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59276
59277 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59278
59279         * modules/trim: New file.
59280
59281 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59282
59283         * lib/trim.h: New file.
59284         * lib/trim.c: New file.
59285
59286 2006-09-05  Bruno Haible  <bruno@clisp.org>
59287
59288         * MODULES.html.sh (String handling): Add trim.
59289
59290 2006-09-04  Karl Berry  <karl@gnu.org>
59291
59292         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59293         until next release.
59294
59295 2006-09-03  Bruno Haible  <bruno@clisp.org>
59296
59297         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59298         correctly.
59299
59300 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59301
59302         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59303         not gl_GETLOADAVG.  Omit unneeded semicolons.
59304         Problems reported by Ralf Wildenhues in
59305         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59306         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59307         at the end, which is the usual gnulib style.
59308
59309         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59310         of doing all the work ourselves.
59311         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59312         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59313
59314 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59315
59316         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59317         Problem reported by Ralf Wildenhues in
59318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59319
59320         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59321         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59322
59323 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59324
59325         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59326         yesterday's patch by changing test -n to test -z.
59327
59328 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59329
59330         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59331         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59332         the former is now obsolescent.
59333
59334         * modules/chdir-long (Depends-on): Add fcntl.
59335
59336 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59337
59338         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59339         obsolescent, and programs should use gnulib instead.
59340         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59341         but with prefixes changed.
59342
59343 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59346         or stdbool.h, because they might not exist while configuring.
59347
59348         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59349         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59350         does that for us.
59351         (O_DIRECTORY): Remove.
59352
59353 2006-08-31  Eric Blake  <ebb9@byu.net>
59354
59355         * gnulib-tool: Don't let emacs change spaces to TAB.
59356
59357 2006-08-31  Bruno Haible  <bruno@clisp.org>
59358
59359         * gnulib-tool: When calling func_import more than once, do it in a
59360         subshell.
59361         Reported by Eric Blake <ebb9@byu.net>.
59362
59363 2006-08-31  Bruno Haible  <bruno@clisp.org>
59364
59365         * gnulib-tool (nl): Remove variable.
59366         (sed_transform_lib_file): Use more robust test for config-h module.
59367         (func_import): Fix typo in 2006-08-25 patch.
59368
59369 2006-08-31  Bruno Haible  <bruno@clisp.org>
59370
59371         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59372         specified, augment Makefile.am variables instead of assigning them.
59373
59374 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59375
59376         Work around a bug in both the Linux and SunOS 64-bit kernels:
59377         nanosleep mishandles sleeps for longer than 2**31 seconds.
59378         Problem reported by Frank v Waveren in
59379         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59381         Check for nanosleep bug.
59382         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59383
59384 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59385
59386         Work around a bug in both the Linux and SunOS 64-bit kernels:
59387         nanosleep mishandles sleeps for longer than 2**31 seconds.
59388         Problem reported by Frank v Waveren in
59389         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59390         * lib/nanosleep.c (BILLION): New constant.
59391         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59392         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59393         implementation.
59394
59395 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59396
59397         * modules/nanosleep (Depends-on): Add gettime.
59398
59399 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59400         and Simon Josefsson  <jas@extundo.com>
59401         and Oskar Liljeblad  <oskar@osk.mine.nu>
59402
59403         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59404         * gnulib-tool (func_import): New license type 'unmodifiable license
59405         text'.
59406         * modules/fdl: Use it.  Longer description.
59407         * module/gpl, module/lgpl: New files.
59408
59409 2006-08-30  Jim Meyering  <jim@meyering.net>
59410
59411         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59412         shadowing the parameter.
59413
59414 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59415
59416         Sync from Libtool:
59417
59418         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59419
59420         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59421         sharing with gnulib.  Report by Eric Blake.
59422
59423 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * modules/isapipe: New file.
59426         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59427
59428 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59429
59430         * modules/configmake (Makefile.am): Add a comment, and omit
59431         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59432         by Bruno Haible.
59433
59434 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59435
59436         * m4/isapipe.m4: New file.
59437
59438 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59439
59440         * lib/isapipe.c, lib/isapipe.h: New files.
59441
59442 2006-08-29  Jim Meyering  <jim@meyering.net>
59443
59444         * modules/configmake (Makefile.am): Make configmake.h depend on
59445         Makefile.  Otherwise, a stale configmake.h could hang around.
59446
59447 2006-08-29  Eric Blake  <ebb9@byu.net>
59448
59449         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59450         resolution of upstream bug 3044.
59451
59452 2006-08-29  Bruno Haible  <bruno@clisp.org>
59453
59454         * modules/localcharset (Depends-on): Add configmake.
59455         (Makefile.am): Remove setting of LIBDIR through DEFS.
59456
59457 2006-08-29  Bruno Haible  <bruno@clisp.org>
59458
59459         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59460         defined.
59461
59462 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         * modules/fcntl: New file.
59465         * modules/chdir-safer (Depends-on): Add fcntl.
59466         * modules/fts: Likewise.
59467         * modules/mkdir-p: Likewise.
59468
59469         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59470         This undoes the most recent change, since we're now addressing the
59471         problem in a different way.
59472
59473         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59474         into output, since the output might be called Makefile.am even
59475         if $makefile_name is something different.
59476         (func_import): Use $makefile_am rather than
59477         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59478         empty.
59479
59480         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59481
59482 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59483
59484         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59485         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59486         recent change to stdint.m4, since we're now addressing the problem in a
59487         different way.
59488
59489 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59490
59491         * m4/fcntl_h.m4: New file.
59492
59493 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * lib/fcntl_.h: New file.
59496         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59497         the fcntl module.
59498         * lib/dirchownmod.c: Likewise.
59499         * lib/fts.c: Likewise.
59500
59501         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59502         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59503         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59504         just before including <inttypes.h>, to avoid circular inclusion.
59505
59506 2006-08-28  Jim Meyering  <jim@meyering.net>
59507
59508         * doc/visibility.texi: Actually read and correct the grammar of the
59509         sentence affected by yesterday's change.
59510
59511 2006-08-28  Eric Blake  <ebb9@byu.net>
59512
59513         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59514         needs wrapper.
59515
59516 2006-08-28  Eric Blake  <ebb9@byu.net>
59517
59518         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59519
59520 2006-08-28  Eric Blake  <ebb9@byu.net>
59521
59522         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59523
59524 2006-08-28  Bruno Haible  <bruno@clisp.org>
59525
59526         * modules/c-strstr: New file, from GNU gettext.
59527         * MODULES.html.sh (String handling): Add c-strstr.
59528
59529 2006-08-28  Bruno Haible  <bruno@clisp.org>
59530
59531         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59532         macros.
59533         Reported by Eric Blake.
59534
59535 2006-08-28  Bruno Haible  <bruno@clisp.org>
59536
59537         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59538         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59539         * lib/vasprintf.c: Include errno.h, limits.h.
59540         (EOVERFLOW): New fallback definition.
59541         (vasprintf): Test here whether the string length is > INT_MAX.
59542         * lib/vsnprintf.c: Include errno.h, limits.h.
59543         (EOVERFLOW): New fallback definition.
59544         (vsnprintf): Fix bug when generated string was too long for the buffer.
59545         Test here whether the string length is > INT_MAX.
59546
59547 2006-08-28  Bruno Haible  <bruno@clisp.org>
59548
59549         * lib/inttypes_.h (SCNX*): Remove definitions.
59550         Reported by Eric Blake.
59551
59552 2006-08-28  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/c-strstr.h: New file, from GNU gettext.
59555         * lib/c-strstr.c: New file, from GNU gettext.
59556
59557 2006-08-28  Bruno Haible  <bruno@clisp.org>
59558
59559         * gnulib-tool: Reorder some statements.
59560
59561 2006-08-28  Bruno Haible  <bruno@clisp.org>
59562
59563         * gnulib-tool: New option --makefile-name.
59564         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59565         $makefile_name.
59566         (func_import): Write $makefile_name to the cache file, and read it from
59567         there unless explicitly specified. Use $makefile_name as file name
59568         instead of Makefile.am. Adjust the recommendations accordingly.
59569
59570 2006-08-28  Bruno Haible  <bruno@clisp.org>
59571
59572         * gnulib-tool (func_verify_module): Check against misapplying patch.
59573
59574 2006-08-28  Bruno Haible  <bruno@clisp.org>
59575
59576         * gnulib-tool (func_relativize, func_relconcat): New functions.
59577         Give an error if --local-dir is given with --update.
59578         Remove trailing slashes from $local_gnulib_dir.
59579         (func_import): Store the relativized $local_gnulib_dir in
59580         gnulib-cache.m4, and read it from there if not specified explicitly.
59581
59582 2006-08-28  Bruno Haible  <bruno@clisp.org>
59583
59584         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59585         is the current directory. Respect also $local_gnulib_dir.
59586
59587 2006-08-28  Bruno Haible  <bruno@clisp.org>
59588             Simon Josefsson  <jas@extundo.com>
59589
59590         BeOS portability.
59591         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59592
59593 2006-08-27  Jim Meyering  <jim@meyering.net>
59594
59595         * doc/visibility.texi: Remove duplicate word: "pointer".
59596
59597 2006-08-26  Bruno Haible  <bruno@clisp.org>
59598
59599         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59600         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59601         (Makefile.am): Create inttypes.h from inttypes_.h.
59602         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59603
59604         * modules/imaxabs: New file.
59605
59606         * modules/imaxdiv: New file.
59607
59608 2006-08-26  Bruno Haible  <bruno@clisp.org>
59609
59610         * m4/inttypes.m4: New file.
59611         * m4/_inttypes_h.m4: Remove file.
59612         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59613         PRI_MACROS_BROKEN.
59614         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59615
59616         * m4/imaxabs.m4: New file.
59617
59618         * m4/imaxdiv.m4: New file.
59619
59620 2006-08-26  Bruno Haible  <bruno@clisp.org>
59621
59622         * lib/inttypes_.h: New file.
59623         * lib/inttypes.h: Remove file.
59624         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59625
59626         * lib/imaxabs.c: New file.
59627
59628         * lib/imaxdiv.c: New file.
59629
59630 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         New config-h module, so that "make" output needn't be cluttered
59633         by -DHAVE_CONFIG_H.
59634         * MODULES.html.sh (Support for building libraries and executables):
59635         Add config-h.
59636         * modules/config-h: New file.
59637         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59638         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59639         the config-h module is used.
59640
59641         New configmake module, so that "make" output needn't be cluttered
59642         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59643         * MODULES.html.sh (Support for building libraries and executables):
59644         Add configmake.
59645         * modules/configmake: New file.
59646
59647 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59648
59649         * m4/config-h.m4: New file.
59650
59651 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59652
59653         * config/srclist.txt: Add elisp-comp.
59654
59655 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * MODULES.html.sh (Support for building libraries and executables):
59658         Add elisp-comp.
59659         * build-aux/elisp-comp: New file.
59660         * modules/elisp-comp: New file.
59661
59662 2006-08-24  Bruno Haible  <bruno@clisp.org>
59663
59664         * gnulib-tool (func_create_testdir): Use non-default values of
59665         sourcebase and m4base.
59666
59667 2006-08-24  Bruno Haible  <bruno@clisp.org>
59668
59669         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59670         HTML structure.
59671
59672 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59673
59674         * modules/openat (Depends-on): Add lchown.
59675
59676 2006-08-23  Bruno Haible  <bruno@clisp.org>
59677
59678         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59679         of gl_LOCK_EARLY instead of gl_LOCK.
59680
59681 2006-08-23  Bruno Haible  <bruno@clisp.org>
59682
59683         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59684         on OSF/1 to no.
59685         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59686
59687 2006-08-23  Bruno Haible  <bruno@clisp.org>
59688
59689         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59690         as unusable.
59691
59692         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59693         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59694         (gl_LOCK): New macro.
59695
59696 2006-08-22  Simon Josefsson  <jas@extundo.com>
59697
59698         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59699         to md5 module.
59700
59701 2006-08-22  Simon Josefsson  <jas@extundo.com>
59702
59703         * MODULES.html.sh: Add "Support for maintaining and release
59704         projects".
59705
59706         * build-aux/gnupload: New file, from coreutils.
59707
59708 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         Avoid the need for AC_LIBSOURCES in m4 macros.
59711         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59712         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59713         * modules/check-version (EXTRA_DIST): Add check-version.h.
59714         * modules/crc (EXTRA_DIST): Add crc.h.
59715         * modules/des (EXTRA_DIST): Add des.h.
59716         * modules/gc (EXTRA_DIST): Add gc.h.
59717         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59718         * modules/getline (EXTRA_DIST): Add getline.h.
59719         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59720         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59721         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59722         * modules/md2 (EXTRA_DIST): Add md2.h.
59723         * modules/md4 (EXTRA_DIST): Add md4.h.
59724         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59725         * modules/read-file (EXTRA_DIST): Add read-file.h.
59726         * modules/readline (EXTRA_DIST): Add readline.h.
59727         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59728         rijndael-api-fst.h.
59729
59730 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         * m4/rijndael.m4 (gl_ARCFOUR):
59733         * m4/arctwo.m4 (gl_ARCTWO):
59734         * m4/check-version.m4 (gl_CHECK_VERSION):
59735         * m4/crc.m4 (gl_CRC):
59736         * m4/des.m4 (gl_DES):
59737         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59738         * m4/gc.m4 (gl_GC):
59739         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59740         * m4/getline.m4 (gl_FUNC_GETLINE):
59741         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59742         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59743         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59744         * m4/md2.m4 (gl_MD2):
59745         * m4/md4.m4 (gl_MD4):
59746         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59747         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59748         * m4/readline.m4 (gl_FUNC_READLINE):
59749         * m4/rijndael.m4 (gl_RIJNDAEL):
59750         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59751         to get the necessary .h files and whatnot.
59752
59753 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59754
59755         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59756         gnulib rather than the other way around.
59757         * config/srclistvars.sh (COREUTILS): Remove.
59758
59759 2006-08-22  Jim Meyering  <jim@meyering.net>
59760
59761         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59762
59763         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59764
59765 2006-08-22  Eric Blake  <ebb9@byu.net>
59766
59767         * modules/regexprops-generic: New file.
59768         * MODULES.html.sh (Support for building documentation): List it.
59769
59770 2006-08-22  Eric Blake  <ebb9@byu.net>
59771
59772         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59773         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59774         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59775         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59776
59777 2006-08-22  Bruno Haible  <bruno@clisp.org>
59778
59779         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59780         and lib_LTLIBRARIES like the other lib_* variables.
59781
59782 2006-08-22  Bruno Haible  <bruno@clisp.org>
59783
59784         * build-aux/x-to-1.in: New file, from GNU gettext.
59785
59786 2006-08-22  Bruno Haible  <bruno@clisp.org>
59787
59788         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59789         <utmpx.h> exists.
59790
59791 2006-08-22  Bruno Haible  <bruno@clisp.org>
59792
59793         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59794         <utmpx.h> exists.
59795
59796 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         BeOS portability.
59799         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59800         exist.
59801         Problem reported by Bruno Haible.
59802
59803 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59804
59805         Avoid the need for AC_LIBSOURCES in m4 macros.
59806         * modules/acl (EXTRA_DIST): Add acl.h.
59807         * modules/argmatch (Files): Add m4/argmatch.m4.
59808         (configure.ac): Add gl_ARGMATCH.
59809         (EXTRA_DIST): Renamed from lib_SOURCES, for
59810         consistency with the other modules.  Remove argmatch.c.
59811         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59812         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59813         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59814         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59815         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59816         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59817         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59818         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59819         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59820         * modules/closeout (EXTRA_DIST): Add closeout.h.
59821         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59822         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59823         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59824         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59825         dirname.h; remove basename.c and stripslash.c.
59826         * modules/exclude (EXTRA_DIST): Add exclude.h.
59827         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59828         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59829         * modules/file-type (EXTRA_DIST): Add file-type.h.
59830         * modules/filemode (EXTRA_DIST): Add filemode.h.
59831         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59832         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59833         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59834         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59835         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59836         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59837         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59838         * modules/getdate (EXTRA_DIST): Add getdate.c.
59839         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59840         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59841         * modules/getpass (EXTRA_DIST): Add getpass.h.
59842         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59843         * modules/group-member (EXTRA_DIST): Add group-member.h.
59844         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59845         * modules/hash (EXTRA_DIST): Add hash.h.
59846         * modules/human (EXTRA_DIST): Add human.h.
59847         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59848         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59849         * modules/lchown (EXTRA_DIST): Add lchown.h.
59850         * modules/long-options (EXTRA_DIST): Add long-options.h.
59851         * modules/lstat (EXTRA_DIST): Add lstat.h.
59852         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59853         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59854         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59855         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59856         * modules/memxor (EXTRA_DIST): Add memxor.h.
59857         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59858         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59859         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59860         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59861         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59862         * modules/physmem (EXTRA_DIST): Add physmem.h.
59863         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59864         * modules/posixver (EXTRA_DIST): Add posixver.h.
59865         * modules/quote (EXTRA_DIST): Add quote.h.
59866         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59867         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59868         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59869         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59870         regex_internal.h regexec.c.
59871         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59872         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59873         * modules/same (EXTRA_DIST): Add same.h.
59874         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59875         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59876         * modules/savedir (EXTRA_DIST): Add savedir.h.
59877         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59878         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59879         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59880         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59881         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59882         * modules/strdup (EXTRA_DIST): Add strdup.h.
59883         * modules/strftime (EXTRA_DIST): Add strftime.h.
59884         * modules/strndup (EXTRA_DIST): Add strndup.h.
59885         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59886         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59887         * modules/time_r (EXTRA_DIST): Add time_r.h.
59888         * modules/timespec (EXTRA_DIST): Add timespec.h.
59889         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59890         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59891         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59892         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59893         * modules/userspec (EXTRA_DIST): Add userspec.h.
59894         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59895         * modules/utimens (EXTRA_DIST): Add utimens.h.
59896         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59897         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59898         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59899         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59900         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59901         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59902         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59903         * modules/yesno (EXTRA_DIST): Add yesno.h.
59904
59905 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59906
59907         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59908
59909         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59910         * m4/dev-ino.m4, same-inode.m4: Remove.
59911
59912         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59913         * m4/acl.m4 (AC_FUNC_ACL):
59914         * m4/backupfile.m4 (gl_BACKUPFILE):
59915         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59916         * m4/canon-host.m4 (gl_CANON_HOST):
59917         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59918         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59919         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59920         * m4/cloexec.m4 (gl_CLOEXEC):
59921         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59922         * m4/closeout.m4 (gl_CLOSEOUT):
59923         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59924         * m4/dirname.m4 (gl_DIRNAME):
59925         * m4/exclude.m4 (gl_EXCLUDE):
59926         * m4/exitfail.m4 (gl_EXITFAIL):
59927         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59928         * m4/file-type.m4 (gl_FILE_TYPE):
59929         * m4/filemode.m4 (gl_FILEMODE):
59930         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59931         * m4/fpending.m4 (gl_FUNC_FPENDING):
59932         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59933         * m4/fts.m4 (gl_FUNC_FTS):
59934         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59935         * m4/getdate.m4 (gl_GETDATE):
59936         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59937         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59938         * m4/getpass.m4 (gl_FUNC_GETPASS):
59939         * m4/gettime.m4 (gl_GETTIME):
59940         * m4/getugroups.m4 (gl_GETUGROUPS):
59941         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59942         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59943         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59944         * m4/hash.m4 (gl_HASH):
59945         * m4/idcache.m4 (gl_IDCACHE):
59946         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59947         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59948         * m4/long-options.m4 (gl_LONG_OPTIONS):
59949         * m4/lstat.m4 (gl_FUNC_LSTAT):
59950         * m4/md5.m4 (gl_MD5):
59951         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59952         * m4/memcoll.m4 (gl_MEMCOLL):
59953         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59954         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59955         * m4/memxor.m4 (gl_MEMXOR):
59956         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59957         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59958         * m4/modechange.m4 (gl_MODECHANGE):
59959         * m4/mountlist.m4 (gl_MOUNTLIST):
59960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59961         * m4/openat.m4 (gl_FUNC_OPENAT):
59962         * m4/pathmax.m4 (gl_PATHMAX):
59963         * m4/physmem.m4 (gl_PHYSMEM):
59964         * m4/posixtm.m4 (gl_POSIXTM):
59965         * m4/posixver.m4 (gl_POSIXVER):
59966         * m4/quote.m4 (gl_QUOTE):
59967         * m4/quotearg.m4 (gl_QUOTEARG):
59968         * m4/readtokens.m4 (gl_READTOKENS):
59969         * m4/readutmp.m4 (gl_READUTMP):
59970         * m4/regex.m4 (gl_REGEX):
59971         * m4/safe-read.m4 (gl_SAFE_READ):
59972         * m4/safe-write.m4 (gl_SAFE_WRITE):
59973         * m4/same.m4 (gl_SAME):
59974         * m4/save-cwd.m4 (gl_SAVE_CWD):
59975         * m4/savedir.m4 (gl_SAVEDIR):
59976         * m4/settime.m4 (gl_SETTIME):
59977         * m4/sha1.m4 (gl_SHA1):
59978         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59979         * m4/stat-macros.m4 (gl_STAT_MACROS):
59980         * m4/stat-time.m4 (gl_STAT_TIME):
59981         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59982         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59983         * m4/strdup.m4 (gl_FUNC_STRDUP):
59984         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59985         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59986         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59987         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59988         * m4/time_r.m4 (gl_TIME_R):
59989         * m4/timespec.m4 (gl_TIMESPEC):
59990         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59991         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59992         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59993         * m4/userspec.m4 (gl_USERSPEC):
59994         * m4/utimecmp.m4 (gl_UTIMECMP):
59995         * m4/utimens.m4 (gl_UTIMENS):
59996         * m4/xalloc.m4 (gl_XALLOC):
59997         * m4/xgetcwd.m4 (gl_XGETCWD):
59998         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59999         * m4/xreadlink.m4 (gl_XREADLINK):
60000         * m4/xstrtod.m4 (gl_XSTRTOD):
60001         * m4/yesno.m4 (gl_YESNO):
60002         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60003         to get the necessary .h files and whatnot.
60004
60005 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60006             Bruno Haible  <bruno@clisp.org>
60007
60008         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60009         /bin/sh understanding of '!' conditional negation.
60010
60011 2006-08-21  Jim Meyering  <jim@meyering.net>
60012
60013         * modules/openat (Depends-on): Really alphabetize.
60014
60015         * modules/acl (Depends-on): Add error and quote.
60016
60017         * check-module (find_included_lib_files): Add at-func.c to the
60018         ok-to-include-more-than-once white list.
60019
60020         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60021
60022 2006-08-21  Bruno Haible  <bruno@clisp.org>
60023
60024         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60025         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60026         Reported by Martin Lambers <marlam@marlam.de>.
60027
60028 2006-08-21  Bruno Haible  <bruno@clisp.org>
60029
60030         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60031         specify an installation location, don't emit a noinst_LIBRARIES or
60032         noinst_LTLIBRARIES assignment.
60033
60034 2006-08-21  Bruno Haible  <bruno@clisp.org>
60035
60036         BeOS portability.
60037         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60038         BeOS has mbrtowc() but no <wctype.h>.
60039
60040 2006-08-21  Bruno Haible  <bruno@clisp.org>
60041
60042         BeOS portability.
60043         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60044         exist.
60045
60046 2006-08-21  Bruno Haible  <bruno@clisp.org>
60047
60048         BeOS portability.
60049         * lib/mbchar.h: Include <wctype.h> only if it exists.
60050
60051 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60052
60053         Remove files that are no longer needed by their respective modules.
60054         * m4/obstack.m4: Remove.
60055         * m4/strerror_r.m4: Remove.
60056         * m4/uint32_t.m4: Remove.
60057         * m4/uintptr_t.m4: Remove.
60058         * m4/ullong_max.m4: Remove.
60059         * m4/xstrtoimax.m4: Remove.
60060         * m4/xstrtoumax.m4: Remove.
60061
60062         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60063         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60064         dependencies now capture this.
60065
60066         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60067         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60068         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60069         * m4/human.m4 (gl_HUMAN): Likewise.
60070         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60071         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60072
60073         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60074
60075         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60076         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60077         stdint.
60078         * m4/human.m4 (gl_HUMAN): Likewise.
60079         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60080         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60081         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60082         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60083         * m4/xstrtol (gl_XSTRTOL): Likewise.
60084
60085         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60086         AC_TYPE_LONG_LONG_INT.
60087         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60088         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60089         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60090         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60091
60092         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60093         on stdbool.
60094
60095         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60096         (gl_PREREQ_XSTRTOUL): Remove.
60097
60098         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60099
60100         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60101         mode.
60102
60103 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60104
60105         Add and change modules to make it easier for coreutils to use
60106         gnulib-tool.
60107         * modules/backupfile (Files): Remove m4/d-ino.m4.
60108         (Depends-on): Add d-ino.
60109         * modules/cycle-check (Depends-on): Add stdint.
60110         (lib_SOURCES): Add cycle-check.h.
60111         * modules/d-ino: New module.
60112         * modules/d-type: New module.
60113         * modules/error (Files): Remove m4/strerror_r.m4.
60114         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60115         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60116         m4/inttypes_h.m4, m4/uintmax_t.m4.
60117         (Depends-on): Add stdint.
60118         (lib_SOURCES): Add fsusage.h.
60119         * modules/getcwd (Files): Remove d-ino.m4.
60120         (Depends-on): Add d-ino.
60121         * modules/getndelim2 (Depends-on): Add stdint.
60122         * modules/glob (Files): Remove m4/d-type.m4.
60123         (Depends-on): Add d-type.
60124         * modules/host-os: New module.
60125         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60126         m4/inttypes_h.m4, m4/uintmax_t.m4.
60127         * Depends-on: Add stdint.
60128         (lib_SOURCES): Add human.h.
60129         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60130         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60131         m4/uintmax_t.m4, m4/ulonglong.m4.
60132         (Depends-on): Add stdint.
60133         (EXTRA_DIST): Add inttostr.h.
60134         * modules/lchmod: New module.
60135         * modules/link-follow: New module.
60136         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60137         (Depends-on): Add lchmod.
60138         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60139         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60140         (Depends-on): Add stdint.
60141         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60142         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60143         (Depends-on): Add stdint.
60144         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60145         * modules/perl: New module.
60146         * modules/regex (Depends-on): Add stdint.
60147         * modules/rmdir-errno: New module.
60148         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60149         m4/intmax_t.m4.
60150         (Depends-on): Add stdint.
60151         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60152         m4/uintmax_t.m4.
60153         (Depends-on): Add stdint.
60154         * modules/unlink-busy: New module.
60155         * modules/utimecmp (Depends-on): Add stdint.
60156         * modules/uptime: New module.
60157         * modules/winsz-ioctl: New module.
60158         * modules/winsz-termios: New module.
60159         * modules/xnanosleep (Depends-on): Add nanosleep.
60160         * modules/ullong_max: Remove.
60161         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60162         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60163         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60164         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60165         (Depends-on): Add inttypes.
60166         (lib_SOURCES): Add xstrtol.h.
60167         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60168         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60169         * MODULES.html.sh: Move 'assert' into the assert section.
60170         Move 'dummy' into the linking section.
60171         Remove ullong_max.
60172         Add section for compatibility checks for POSIX:2001 functions,
60173         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60174         winsz-ioctl, and winsz-termios into it.
60175         Add lchmod.
60176         Add top-level Misc section and put host-os, perl, and uptime
60177         into it.
60178
60179 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60180
60181         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60182         now assume the stdint module.  Do not include inttypes.h.
60183         * lib/fsusage.h: Likewise.
60184         * lib/getndelim2.c: Likewise.
60185         * lib/human.h: Likewise.
60186         * lib/inttostr.h: Likewise.
60187         * lib/obstack.c: Likewise.
60188         * lib/regex_internal.h: Likewise.
60189         * lib/tempname.c: Likewise.
60190         * lib/utimecmp.c: Likewise.
60191         * lib/xstrtol.h: Likewise.
60192
60193         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60194
60195         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60196         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60197         * lib/xtime.h: Likewise.
60198
60199 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60200
60201         * modules/openat (Files): Add lib/fchmodat.c.
60202         Fixes problem reported by Jay Youngman.
60203
60204 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60205
60206         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60207         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60208
60209 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60210             Bruno Haible  <bruno@clisp.org>
60211
60212         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60213         and is a script that invokes bison. Tighten the code. Add comments.
60214
60215 2006-08-18  Jim Meyering  <jim@meyering.net>
60216
60217         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60218         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60219         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60220         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60221
60222 2006-08-18  Bruno Haible  <bruno@clisp.org>
60223
60224         * modules/bison-i18n: New file.
60225         * MODULES.html.sh (Internationalization functions): Add it.
60226
60227 2006-08-18  Bruno Haible  <bruno@clisp.org>
60228
60229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60230         sys/statvfs.h. When getmntinfo was found, check its declaration and
60231         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60232
60233 2006-08-18  Bruno Haible  <bruno@clisp.org>
60234
60235         * m4/bison-i18n.m4: New file, from bison.
60236
60237 2006-08-18  Bruno Haible  <bruno@clisp.org>
60238
60239         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60240         (ME_DUMMY): Treat "kernfs" as a dummy.
60241         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60242
60243 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60244
60245         Update from coreutils.
60246
60247         2006-08-15  Jim Meyering  <jim@meyering.net>
60248
60249         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60250
60251         2006-01-17  Jim Meyering  <jim@meyering.net>
60252
60253         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60254
60255         2006-01-11  Jim Meyering  <jim@meyering.net>
60256
60257         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60258         Check for the lchmod function.
60259
60260 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60261
60262         Update from coreutils.
60263
60264         * lib/__fpending.h: Add copyright notice.
60265         * lib/fprintftime.h: Likewise.
60266         * lib/savedir.c: Use (C) in copyright notice.
60267         * lib/savedir.h: Likewise.
60268
60269         2006-08-15  Jim Meyering  <jim@meyering.net>
60270
60271         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60272         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60273         in support of the EXPECTED_ERRNO macro.
60274         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60275         definitions.  Instead, define the appropriate symbols and include
60276         "at-func.c".
60277         * lib/mkdirat.c (mkdirat): Likewise.
60278         * lib/fchmodat.c (fchmodat): Likewise.
60279         (ENOSYS): Remove definition.
60280         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60281         it.  Don't include "unistd--.h" -- it wasn't ever used.
60282
60283         2006-01-17  Jim Meyering  <jim@meyering.net>
60284
60285         Rewrite fts.c not to change the current working directory,
60286         by using openat, fstatat, fdopendir, etc..
60287
60288         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60289         (HAVE_OPENAT_SUPPORT): Define.
60290         [_LIBC] (fchdir): Don't undef or define; no longer used.
60291         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60292         Now, this `function' always succeeds, and consumes its file descriptor
60293         parameter -- so callers must not close such FDs.  Update callers.
60294         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60295         (diropen): Add parameter, SP.  Adjust all callers.
60296         Implement using diropen_fd, rather than open.
60297         (fts_open): Initialize new member, fts_cwd_fd.
60298         Remove fts_rft-setting code.
60299         (fts_close): Close fts_cwd_fd, if necessary.
60300         (__opendir2): Define in terms of opendir or opendirat,
60301         depending on whether the FST_NOCHDIR flag is set.
60302         (fts_build): Since fts_safe_changedir consumes its FD, and since
60303         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60304         and close the dup'd file descriptor upon failure.
60305         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60306         (fts_safe_changedir): Tweak semantics to reflect that this function
60307         now calls cwd_advance_fd and hence consumes its FD argument.
60308         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60309         [struct FTS] (fts_rft): Remove now-unused member.
60310         [struct FTS] (fts_cycle.state): Improve comment.
60311
60312         * lib/openat.c (openat_needs_fchdir): New function.
60313         * lib/openat.h (openat_needs_fchdir): Declare it.
60314
60315 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60316
60317         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60318         Problem and fix reported by Pádraig Brady in
60319         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60320
60321 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60324
60325 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         * lib/memcoll.c (memcoll): Optimize for the common case where the
60328         arguments are bytewise equal.
60329
60330 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * doc/regexprops-generic.texi: Add a copyright notice.
60333
60334 2006-08-15  Bruno Haible  <bruno@clisp.org>
60335
60336         * modules/tmpdir (License): Change to LGPL.
60337
60338 2006-08-15  Bruno Haible  <bruno@clisp.org>
60339
60340         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60341         module.
60342
60343 2006-08-14  Simon Josefsson  <jas@extundo.com>
60344
60345         * config/srclist.txt: Add gnupload.
60346
60347 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60348
60349         Change copyright notice from LGPL 2 to GPL 2, since that's the
60350         standard form used in the gnulib repository.
60351         * tests/test-lock.c: Likewise.
60352         * tests/test-stdint.c: Likewise.
60353         * tests/test-tls.c: Likewise.
60354
60355         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60356         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60357         Add copyright notice.
60358
60359         * check-module: Add copyright notice.  Output a copyright
60360         notice if "--version" is specified.
60361         * modules/COPYING: New file.
60362         * tests/test-getaddrinfo.c: Add copyright notice.
60363         * tests/test-verify.c: Likewise.
60364
60365 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         Change copyright notice from LGPL 2 to GPL 2, since that's the
60368         standard form used in the gnulib repository.
60369         * lib/lock.c: LGPL -> GPL.
60370         * lib/lock.h: Likewise.
60371         * lib/strnlen1.c: Likewise.
60372         * lib/strnlen1.h: Likewise.
60373         * lib/tls.c: Likewise.
60374         * lib/tls.h: Likewise.
60375         * lib/tmpdir.c: Likewise.
60376
60377         * lib/TODO: Remove; this belongs only in coreutils.
60378
60379 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         Add copyright notices to long-enough files that lack them, since
60382         otherwise the files aren't clearly free.  Use the same notice that
60383         getdate.texi already uses.
60384         * doc/alloca-opt.texi: Add copyright notice.
60385         * doc/alloca.texi: Likewise.
60386         * doc/ctime.texi: Likewise.
60387         * doc/functions.texi: Likewise.
60388         * doc/gcd.texi: Likewise.
60389         * doc/gnulib-tool.texi: Likewise.
60390         * doc/inet_ntoa.texi: Likewise.
60391         * doc/visibility.texi: Likewise.
60392
60393         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60394         * doc/quote.texi: Add copyright notice.
60395
60396         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60397         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60398         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60399         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60400         is now obsolete, and give a pointer to the Sun list.
60401         Add copyright notice.
60402
60403 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60404
60405         * config/srclistvars.sh: Add copyright notice.
60406
60407 2006-08-14  Eric Blake  <ebb9@byu.net>
60408
60409         Import the following change from libc:
60410
60411         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60412
60413         Upstream bug 2997.
60414         * lib/misc/error.c: Add space between program name and message if file
60415         name is missing.
60416
60417 2006-08-12  Karl Berry  <karl@gnu.org>
60418
60419         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60420         remove, these originate in gnulib now.
60421
60422 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60423
60424         * doc/Makefile (standards.info standards.html standards.dvi):
60425         Also depend on make-stds.texi.
60426
60427 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60428
60429         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60430         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60431
60432         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60433         in wchar_t.  Problem reported by Eric Blake.
60434
60435         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60436         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60437         Also, help the compiler to keep LEN in a register.
60438
60439 2006-08-11  Eric Blake  <ebb9@byu.net>
60440
60441         * users.txt: Sort.  Add tar.
60442
60443 2006-08-11  Bruno Haible  <bruno@clisp.org>
60444
60445         * users.txt: New file.
60446
60447 2006-08-11  Bruno Haible  <bruno@clisp.org>
60448
60449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60450         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60451
60452 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * modules/snprintf (Depends-on): Remove minmax.
60455         (Maintainer): Add self and Bruno.
60456
60457 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60458
60459         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60460         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60461         (EOVERFLOW): Define if the system does not.
60462         Do not include "minmax.h"; it wasn't used.
60463         (snprintf): Don't assume size_t promotes to an unsigned type.
60464         Fix bug when generated string was too long for the buffer: the
60465         buffer's contents are supposed to be the initial prefix of the
60466         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60467         exceeds INT_MAX; do the check ourselves.
60468
60469         Import the following changes from libc:
60470
60471         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60472
60473         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60474         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60475         set wc to the byte which couldn't be converted.
60476         (re_string_reconstruct): Don't clear valid_raw_len before calling
60477         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60478         tip_context using re_string_context_at.
60479
60480         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60481
60482         * lib/posix/regex.h: g++ still cannot handled [restrict].
60483
60484         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60485
60486         * lib/posix/regex.h: Remove special handling for VMS.
60487
60488 2006-08-10  Jim Meyering  <jim@meyering.net>
60489
60490         * modules/same-inode: New module.
60491         * modules/dev-ino: New module.
60492         * modules/cycle-check: Depend on these modules, rather than simply
60493         including their .h files.
60494         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60495         required via m4/cycle-check.m4.
60496         * modules/same: Depend on new same-inode module, rather than
60497         including same-inode.h.
60498         * modules/chdir-safer: New file.
60499
60500         * modules/chown (Depends-on): Add stat-macros.
60501
60502 2006-08-10  Jim Meyering  <jim@meyering.net>
60503
60504         * m4/cycle-check.m4: New file.
60505         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60506         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60507
60508 2006-08-10  Eric Blake  <ebb9@byu.net>
60509
60510         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60511         in from original proposal.
60512
60513 2006-08-10  Eric Blake  <ebb9@byu.net>
60514         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60515
60516         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60517         namespace.
60518
60519 2006-08-10  Bruno Haible  <bruno@clisp.org>
60520
60521         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60522         as well.
60523
60524 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         Sync from coreutils.
60527
60528         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60529
60530         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60531         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60532
60533 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         * modules/restrict: Remove; no longer needed now that we assume
60536         Autoconf 2.59 or later.
60537         * MODULES.html.sh: Remove 'restrict'.
60538         * modules/argp (Depends-on): Remove 'restrict'.
60539         * modules/base64 (Depends-on): Likewise.
60540         * modules/gc (Depends-on): Likewise.
60541         * modules/getaddrinfo (Depends-on): Likewise.
60542         * modules/glob (Depends-on): Likewise.
60543         * modules/inet_ntop (Depends-on): Likewise.
60544         * modules/inet_pton (Depends-on): Likewise.
60545         * modules/memxor (Depends-on): Likewise.
60546         * modules/regex (Depends-on): Likewise.
60547         * modules/strtok_r (Depends-on): Likewise.
60548         * modules/time_r (Depends-on): Likewise.
60549
60550 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60551
60552         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60553         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60554         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60555         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60556         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60557         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60558         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60559         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60560
60561         Merge from coreutils.
60562         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60563         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60564         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60565         * m4/time_r.m4 (gl_TIME_R): Likewise.
60566
60567 2006-08-09  Karl Berry  <karl@gnu.org>
60568
60569         * config/srclist.txt: no more gettext-tools, per Bruno.
60570
60571 2006-08-08  Eric Blake  <ebb9@byu.net>
60572
60573         * modules/verror: New module.
60574         * MODULES.html.sh: Document it.
60575
60576 2006-08-08  Eric Blake  <ebb9@byu.net>
60577
60578         * lib/verror.h, lib/verror.c: New files.
60579
60580 2006-08-08  Eric Blake  <ebb9@byu.net>
60581
60582         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60583         verror_at_line output complies with GNU Coding Standards even when
60584         file is NULL.
60585
60586 2006-08-07  Bruno Haible  <bruno@clisp.org>
60587
60588         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60589         versions of AIX.
60590         Reported by Ralf Wildenhues.
60591
60592 2006-08-07  Bruno Haible  <bruno@clisp.org>
60593
60594         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60595         in an AC_DEFUN. Needed so that the autoconf snippets can use
60596         AC_REQUIRE.
60597
60598 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60599
60600         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60601         Initialize pkgdata_DATA.
60602         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60603         overriding it.
60604
60605 2006-08-06  Eric Blake  <ebb9@byu.net>
60606
60607         * lib/error.h: Fold in some upstream changes from glibc.
60608         * lib/error.c: Likewise.
60609
60610 2006-08-04  Bruno Haible  <bruno@clisp.org>
60611
60612         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60613         Make the mostlyclean-local rule depend on mostlyclean-generic.
60614         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60615
60616 2006-07-31  Bruno Haible  <bruno@clisp.org>
60617
60618         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60619         <stdlib.h>, <string.h>.
60620
60621 2006-07-30  Bruno Haible  <bruno@clisp.org>
60622
60623         * modules/readlink (License): Change to LGPL.
60624
60625 2006-07-30  Bruno Haible  <bruno@clisp.org>
60626
60627         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60628         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60629         set PKGDATADIR to point to it.
60630
60631 2006-07-30  Bruno Haible  <bruno@clisp.org>
60632
60633         * modules/csharpexec (configure.ac): Comment out macro invocation.
60634         * modules/javaexec (configure.ac): Likewise.
60635         * modules/javacomp-script (configure.ac): Likewise.
60636
60637         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60638
60639 2006-07-30  Bruno Haible  <bruno@clisp.org>
60640
60641         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60642         linked-list.
60643
60644 2006-07-30  Bruno Haible  <bruno@clisp.org>
60645
60646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60647
60648 2006-07-30  Bruno Haible  <bruno@clisp.org>
60649
60650         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60651         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60652         get removed.
60653
60654 2006-07-29  Bruno Haible  <bruno@clisp.org>
60655
60656         Make it possible for gnulib-tool to work with locally modified or
60657         augmented gnulib repositories.
60658         * gnulib-tool (func_usage): Document --local-dir option.
60659         (local_gnulib_dir): New variable.
60660         Handle --local-dir option.
60661         (func_lookup_file): New function.
60662         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60663         (func_get_description, func_get_filelist, func_get_description,
60664         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60665         func_get_automake_snippet, func_get_include_directive,
60666         func_get_license, func_get_maintainer): Use func_lookup_file.
60667         (func_import, func_create_testdir): Use func_lookup_file.
60668
60669 2006-07-29  Bruno Haible  <bruno@clisp.org>
60670
60671         * modules/setenv (Depends-on): Add unistd.
60672
60673 2006-07-29  Bruno Haible  <bruno@clisp.org>
60674
60675         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60676
60677 2006-07-29  Bruno Haible  <bruno@clisp.org>
60678
60679         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60680
60681 2006-07-29  Bruno Haible  <bruno@clisp.org>
60682
60683         * gnulib-tool (import, update): If there is no Makefile.am, look at
60684         aclocal.m4, instead of bailing out.
60685
60686 2006-07-29  Bruno Haible  <bruno@clisp.org>
60687
60688         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60689         Categorize the options by when they are useful.
60690
60691 2006-07-29  Bruno Haible  <bruno@clisp.org>
60692
60693         * gnulib-tool (func_usage): Document option --no-libtool.
60694         Handle option --no-libtool.
60695         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60696         for changed semantics of $libtool variable.
60697         (func_import): Likewise. If libtool is not used, show this through
60698         an option --no-libtool.
60699         (func_create_testdir): Update.
60700
60701 2006-07-29  Bruno Haible  <bruno@clisp.org>
60702
60703         * gnulib-tool (func_import): Extend error message about missing
60704         --doc-base.
60705
60706 2006-07-29  Bruno Haible  <bruno@clisp.org>
60707
60708         * gnulib-tool (func_import): Don't create the $docbase directory if
60709         there is no file to store there.
60710
60711 2006-07-29  Bruno Haible  <bruno@clisp.org>
60712
60713         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60714         relevant, look for configure.ac there, not in the current directory.
60715         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60716
60717 2006-07-29  Bruno Haible  <bruno@clisp.org>
60718
60719         * gnulib-tool (SORT): New variable.
60720         (func_usage): Undocument --assume-autoconf option.
60721         Remove --assume-autoconf option handling.
60722         (autoconf_minversion): Determine from the contents of configure.ac.
60723         (func_import): Remove autoconf_minversion handling.
60724         Suggested by Eric Blake.
60725
60726 2006-07-29  Bruno Haible  <bruno@clisp.org>
60727
60728         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60729
60730 2006-07-29  Bruno Haible  <bruno@clisp.org>
60731
60732         * config/srclist.txt (*setenv.[ch]): Remove rules.
60733
60734 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60735
60736         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60737
60738 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60739
60740         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60741         arpa/inet.h.
60742
60743 2006-07-28  Simon Josefsson  <jas@extundo.com>
60744
60745         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60746         * modules/inet_pton (Depends-on): Likewise.
60747
60748 2006-07-28  Simon Josefsson  <jas@extundo.com>
60749
60750         * m4/netinet_in_h.m4: New file.
60751
60752 2006-07-28  Simon Josefsson  <jas@extundo.com>
60753
60754         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60755         #include's.
60756
60757 2006-07-28  Simon Josefsson  <jas@extundo.com>
60758
60759         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60760         #include's.
60761
60762 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60763
60764         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60765         setgid on directories only if they set these bits.
60766         * lib/modechange.h: Remove obsolete comment about masks.
60767
60768 2006-07-28  Eric Blake  <ebb9@byu.net>
60769
60770         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60771         macro expansion.
60772
60773 2006-07-28  Bruno Haible  <bruno@clisp.org>
60774
60775         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60776
60777 2006-07-28  Bruno Haible  <bruno@clisp.org>
60778
60779         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60780
60781 2006-07-28  Bruno Haible  <bruno@clisp.org>
60782
60783         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60784         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60785         Define fallbacks.
60786         Avoids link error on FreeBSD 4.x.
60787         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60788
60789         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60790         encoding.
60791         * lib/mbswidth.c (iswcntrl): Likewise.
60792
60793 2006-07-27  Bruno Haible  <bruno@clisp.org>
60794
60795         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60796         test.
60797
60798 2006-07-27  Bruno Haible  <bruno@clisp.org>
60799
60800         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60801         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60802         defined.
60803
60804 2006-07-26  Eric Blake  <ebb9@byu.net>
60805
60806         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60807
60808 2006-07-26  Eric Blake  <ebb9@byu.net>
60809
60810         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60811         like mingw that lack mkstemp.
60812         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60813         avoid compilation warning on mingw.
60814
60815 2006-07-26  Bruno Haible  <bruno@clisp.org>
60816
60817         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60818         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60819         INT_FAST*_MIN, INTPTR_MIN.
60820
60821 2006-07-25  Bruno Haible  <bruno@clisp.org>
60822
60823         * modules/version-etc (Depends-on): Add stdarg.
60824
60825 2006-07-25  Bruno Haible  <bruno@clisp.org>
60826
60827         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60828         complex commands.
60829
60830 2006-07-25  Bruno Haible  <bruno@clisp.org>
60831
60832         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60833         defined in <stdarg.h> or config.h.
60834
60835 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60836
60837         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60838         (gl_STDIO_SAFER): Remove.
60839
60840 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60841
60842         * MODULES.html.sh (File stream based Input/Output):
60843         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60844         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60845         * modules/fopen-safer, modules/tmpfile-safer: New files.
60846         * modules/stdio-safer: Remove.
60847
60848 2006-07-24  Bruno Haible  <bruno@clisp.org>
60849
60850         * modules/tmpdir: New file.
60851         * MODULES.html.sh (File system functions): Add it.
60852
60853 2006-07-24  Bruno Haible  <bruno@clisp.org>
60854
60855         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60856         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60857
60858 2006-07-24  Bruno Haible  <bruno@clisp.org>
60859
60860         * modules/clean-temp: New file.
60861
60862 2006-07-24  Bruno Haible  <bruno@clisp.org>
60863
60864         * m4/tmpdir.m4: New file, from GNU gettext.
60865
60866 2006-07-24  Bruno Haible  <bruno@clisp.org>
60867
60868         * lib/tmpdir.h: New file, from GNU gettext.
60869         * lib/tmpdir.c: New file, from GNU gettext.
60870
60871 2006-07-24  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/clean-temp.h: New file, from GNU gettext.
60874         * lib/clean-temp.c: New file, from GNU gettext.
60875
60876 2006-07-23  Eric Blake  <ebb9@byu.net>
60877
60878         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60879         (Depends-on): Add binary-io.
60880
60881 2006-07-23  Eric Blake  <ebb9@byu.net>
60882
60883         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60884
60885 2006-07-23  Eric Blake  <ebb9@byu.net>
60886
60887         * lib/tmpfile-safer.c: New file.
60888         * lib/stdio-safer.h (fopen_safer): Add prototype.
60889         * lib/stdio--.h (tmpfile): Make safer.
60890
60891 2006-07-23  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60894         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60895         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60896         gl_linked_remove_at): Use it.
60897
60898 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60899         and Simon Josefsson <jas@extundo.com>
60900
60901         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60902
60903         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60904
60905 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60906
60907         * modules/close-stream: New file.
60908         * modules/closeout (Description): Make it clear that it exits
60909         with a diagnostic on error.
60910         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60911         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60912
60913 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60914
60915         * m4/close-stream.m4: New file.
60916
60917 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60918
60919         * lib/close-stream.c, lib/close-stream.h: New files.
60920
60921 2006-07-22  Bruno Haible  <bruno@clisp.org>
60922
60923         Merge from GNU gettext 0.15.
60924
60925         2006-05-01  Bruno Haible  <bruno@clisp.org>
60926
60927                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60928
60929         2006-07-22  Bruno Haible  <bruno@clisp.org>
60930
60931                 * modules/javaversion: New file.
60932                 * MODULES.html.sh (Java): Add javaversion.
60933
60934         2006-03-12  Bruno Haible  <bruno@clisp.org>
60935
60936                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60937
60938         2005-12-04  Bruno Haible  <bruno@clisp.org>
60939
60940                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60941                 (untested).
60942
60943         2006-06-21  Bruno Haible  <bruno@clisp.org>
60944
60945                 Avoid warnings from recent versions of mcs.
60946                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60947                 -o, -L, -r any more. Use options documented since mcs-1.0
60948                 instead. Similarly for -g.
60949
60950         2005-12-04  Bruno Haible  <bruno@clisp.org>
60951
60952                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60953                 .resources, not .resource.
60954
60955         2005-07-09  Bruno Haible  <bruno@clisp.org>
60956
60957                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60958                 add a .dll suffix.
60959                 Reported by Mark Junker <mjscod@gmx.de>.
60960
60961         2006-07-22  Bruno Haible  <bruno@clisp.org>
60962
60963                 * modules/gettext: Upgrade to gettext-0.15.
60964                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60965                 m4/visibility.m4.
60966                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60967
60968 2006-07-22  Bruno Haible  <bruno@clisp.org>
60969
60970         Merge from GNU gettext 0.15.
60971
60972         2006-03-25  Bruno Haible  <bruno@clisp.org>
60973
60974                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60975
60976         2006-07-21  Bruno Haible  <bruno@clisp.org>
60977
60978                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60979                 "1.1".
60980
60981         2006-05-09  Bruno Haible  <bruno@clisp.org>
60982
60983                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60984                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60985                 for the conftestver execution.
60986
60987         2006-05-01  Bruno Haible  <bruno@clisp.org>
60988
60989                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60990                 optional target-version argument. Verify that the compiler
60991                 groks source of the specified source-version, or add -source
60992                 option as necessary. Verify that the compiler produces
60993                 bytecode in the specified target-version, or add -target and
60994                 -source options as necessary. Make the result of the test
60995                 available as variable CONF_JAVAC. Also log error output in
60996                 config.log.
60997
60998         2006-03-11  Bruno Haible  <bruno@clisp.org>
60999
61000                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61001
61002         2006-05-09  Bruno Haible  <bruno@clisp.org>
61003
61004                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61005                 CLASSPATH_SEPARATOR to a semicolon.
61006
61007         2006-03-12  Bruno Haible  <bruno@clisp.org>
61008
61009                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61010                 available as variable CONF_JAVA, for subsequent autoconf
61011                 tests. Also log error output in config.log.
61012
61013         2006-07-19  Bruno Haible  <bruno@clisp.org>
61014
61015                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61016                 that getline works on glibc2 systems. Needed to avoid trouble
61017                 in relocatable.c.
61018                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61019
61020         2005-12-04  Bruno Haible  <bruno@clisp.org>
61021
61022                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61023                 launcher (untested).
61024
61025         2005-12-04  Bruno Haible  <bruno@clisp.org>
61026
61027                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61028
61029         2006-07-22  Bruno Haible  <bruno@clisp.org>
61030
61031                 * gettext.m4: Update from GNU gettext-0.15.
61032                 * nls.m4: Likewise.
61033                 * po.m4: Likewise.
61034                 * inttypes-pri.m4: Likewise.
61035                 * inttypes-h.m4: Renamed from inttypes.m4.
61036                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61037
61038 2006-07-22  Bruno Haible  <bruno@clisp.org>
61039
61040         Merge from GNU gettext 0.15.
61041
61042         2005-07-05  Bruno Haible  <bruno@clisp.org>
61043
61044                 * printf-args.c (printf_fetchargs): Work around broken
61045                 definition of wint_t on mingw.
61046
61047         2005-02-12  Bruno Haible  <bruno@clisp.org>
61048
61049                 * xallocsa.h: Add extern "C" for C++.
61050
61051         2006-05-17  Bruno Haible  <bruno@clisp.org>
61052
61053                 Cygwin portability.
61054                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61055
61056         2006-04-30  Bruno Haible  <bruno@clisp.org>
61057
61058                 * progreloc.c: Include <mach-o/dyld.h> if available.
61059                 (find_executable): Use _NSGetExecutablePath when possible.
61060
61061         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61062
61063                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61064                 function.
61065
61066         2005-12-29  Bruno Haible  <bruno@clisp.org>
61067
61068                 * progreloc.c (set_program_name_and_installdir): Fix
61069                 compilation error.
61070
61071         2005-12-04  Bruno Haible  <bruno@clisp.org>
61072
61073                 Cygwin portability.
61074                 * progreloc.c: Include <windows.h> also on Cygwin.
61075                 (find_executable): Add support for Cygwin.
61076                 (set_program_name_and_installdir): Handle also platforms with
61077                 nonempty EXEEXT.
61078
61079         2006-07-11  Bruno Haible  <bruno@clisp.org>
61080
61081                 * javacomp.c: Fix a comment.
61082                 Reported by Jim Meyering.
61083
61084         2006-04-30  Bruno Haible  <bruno@clisp.org>
61085
61086                 * javacomp.h (compile_java_class): Add source_version,
61087                 target_version arguments.
61088                 * javacomp.c: Rewritten to choose only a compiler that
61089                 respects the specified source_version and target_version.
61090
61091         2006-06-27  Bruno Haible  <bruno@clisp.org>
61092
61093                 Assume correct S_ISDIR macro.
61094                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61095
61096         2006-07-22  Bruno Haible  <bruno@clisp.org>
61097
61098                 * javaversion.h: New file, from GNU gettext.
61099                 * javaversion.c: New file, from GNU gettext.
61100                 * javaversion.java: New file, from GNU gettext.
61101                 * javaversion.class: New file, from GNU gettext.
61102
61103         2006-05-17  Bruno Haible  <bruno@clisp.org>
61104
61105                 Cygwin portability.
61106                 * javaexec.c (execute_java_class): Test for jview program
61107                 also on Cygwin.
61108
61109         2006-04-09  Bruno Haible  <bruno@clisp.org>
61110
61111                 * fatal-signal.c: Don't include string.h.
61112                 (at_fatal_signal): Use a copying loop instead of memcpy.
61113
61114         2005-12-04  Bruno Haible  <bruno@clisp.org>
61115
61116                 * csharpexec.c: Add support for 'clix' launcher (untested).
61117                 (execute_csharp_using_sscli): New function.
61118                 (execute_csharp_program): Call it.
61119
61120         2006-06-21  Bruno Haible  <bruno@clisp.org>
61121
61122                 Avoid warnings from recent versions of mcs.
61123                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61124                 -o, -L, -r any more. Use options documented since mcs-1.0
61125                 instead. Similarly for -g.
61126
61127         2005-07-09  Bruno Haible  <bruno@clisp.org>
61128
61129                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61130                 add a .dll suffix.
61131                 Reported by Mark Junker <mjscod@gmx.de>.
61132
61133         2006-06-17  Bruno Haible  <bruno@clisp.org>
61134
61135                 * config.charset: Update for NetBSD 3.0.
61136
61137         2006-05-17  Bruno Haible  <bruno@clisp.org>
61138
61139                 Cygwin portability.
61140                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61141
61142         2006-05-16  Bruno Haible  <bruno@clisp.org>
61143
61144                 * localcharset.c [CYGWIN]: Include <windows.h>.
61145                 (get_charset_aliases): For Cygwin, return the same CPxxx
61146                 aliases list as under WIN32.
61147                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61148                 the environment variables. Fall back to GetACP().
61149
61150         2006-04-05  Bruno Haible  <bruno@clisp.org>
61151
61152                 * config.charset: Update Juan Manuel Guerrero's address.
61153
61154         2005-02-12  Bruno Haible  <bruno@clisp.org>
61155
61156                 * allocsa.h: Add extern "C" for C++.
61157
61158         2005-02-10  Bruno Haible  <bruno@clisp.org>
61159
61160                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61161                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61162
61163         2006-07-22  Bruno Haible  <bruno@clisp.org>
61164
61165                 * gettext.h: Update to GNU gettext-0.15.
61166
61167 2006-07-22  Bruno Haible  <bruno@clisp.org>
61168
61169         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61170         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61171         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61172
61173 2006-07-21  Eric Blake  <ebb9@byu.net>
61174
61175         * modules/stdlib-safer: New file.
61176         * MODULES.html.sh (File stream based Input/Output): Add
61177         stdlib-safer.
61178
61179 2006-07-21  Eric Blake  <ebb9@byu.net>
61180
61181         * lib/stdlib-safer.h: New file from coreutils, required by
61182         stdlib--.h.
61183
61184 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61185
61186         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61187
61188 2006-07-20  Bruno Haible  <bruno@clisp.org>
61189
61190         * gnulib-tool: Recognize new option --assume-autoconf.
61191         (autoconf_minversion): New variable.
61192         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61193
61194 2006-07-20  Bruno Haible  <bruno@clisp.org>
61195
61196         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61197
61198 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61199
61200         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61201         Reindent and repaginate.
61202
61203 2006-07-19  Derek Price  <derek@ximbiot.com>
61204
61205         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61206         Correct grammar.
61207
61208 2006-07-17  Bruno Haible  <bruno@clisp.org>
61209
61210         * modules/list: New file.
61211         * modules/array-list: New file.
61212         * modules/carray-list, modules/carray-list-tests: New files.
61213         * modules/linked-list, modules/linked-list-tests: New files.
61214         * modules/avltree-list, modules/avltree-list-tests: New files.
61215         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61216         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61217         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61218         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61219         * modules/oset: New file.
61220         * modules/array-oset: New file.
61221         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61222         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61223         * tests/test-carray_list.c: New file.
61224         * tests/test-linked_list.c: New file.
61225         * tests/test-avltree_list.c: New file.
61226         * tests/test-rbtree_list.c: New file.
61227         * tests/test-linkedhash_list.c: New file.
61228         * tests/test-avltreehash_list.c: New file.
61229         * tests/test-rbtreehash_list.c: New file.
61230         * tests/test-avltree_oset.c: New file.
61231         * tests/test-rbtree_oset.c: New file.
61232         * MODULES.html.sh (Container data structures): New section.
61233
61234 2006-07-17  Bruno Haible  <bruno@clisp.org>
61235
61236         * m4/gl_list.m4: New file.
61237
61238 2006-07-17  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/gl_list.h: New file.
61241         * lib/gl_list.c: New file.
61242         * lib/gl_array_list.h: New file.
61243         * lib/gl_array_list.c: New file.
61244         * lib/gl_carray_list.h: New file.
61245         * lib/gl_carray_list.c: New file.
61246         * lib/gl_linked_list.h: New file.
61247         * lib/gl_linked_list.c: New file.
61248         * lib/gl_anylinked_list1.h: New file.
61249         * lib/gl_anylinked_list2.h: New file.
61250         * lib/gl_avltree_list.h: New file.
61251         * lib/gl_avltree_list.c: New file.
61252         * lib/gl_anyavltree_list1.h: New file.
61253         * lib/gl_anyavltree_list2.h: New file.
61254         * lib/gl_rbtree_list.h: New file.
61255         * lib/gl_rbtree_list.c: New file.
61256         * lib/gl_anyrbtree_list1.h: New file.
61257         * lib/gl_anyrbtree_list2.h: New file.
61258         * lib/gl_anytree_list1.h: New file.
61259         * lib/gl_anytree_list2.h: New file.
61260         * lib/gl_linkedhash_list.h: New file.
61261         * lib/gl_linkedhash_list.c: New file.
61262         * lib/gl_anyhash_list1.h: New file.
61263         * lib/gl_anyhash_list2.h: New file.
61264         * lib/gl_avltreehash_list.h: New file.
61265         * lib/gl_avltreehash_list.c: New file.
61266         * lib/gl_rbtreehash_list.h: New file.
61267         * lib/gl_rbtreehash_list.c: New file.
61268         * lib/gl_anytreehash_list1.h: New file.
61269         * lib/gl_anytreehash_list2.h: New file.
61270
61271         * lib/gl_oset.h: New file.
61272         * lib/gl_oset.c: New file.
61273         * lib/gl_array_oset.h: New file.
61274         * lib/gl_array_oset.c: New file.
61275         * lib/gl_avltree_oset.h: New file.
61276         * lib/gl_avltree_oset.c: New file.
61277         * lib/gl_rbtree_oset.h: New file.
61278         * lib/gl_rbtree_oset.c: New file.
61279         * lib/gl_anytree_oset.h: New file.
61280
61281 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61282
61283         * m4/mkancesdirs.m4: New file.
61284         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61285         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61286         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61287         it.
61288
61289 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61290
61291         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61292         * lib/mkancesdirs.h: New files.
61293         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61294         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61295         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61296         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61297         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61298         callers changed.  Revamp internals significantly, by not
61299         attempting to create directories that are temporarily more
61300         permissive than the final results.  Do not attempt to use
61301         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61302         This removes some race conditions, fixes some bugs, and simplifies
61303         things.  Use new dirchownmod function to do owner and mode changes.
61304         * lib/mkdir-p.h: Likewise.
61305         * lib/modechange.c (octal_to_mode): New function.
61306         (struct mode_change): New member mentioned.
61307         (make_node_op_equals): New arg mentioned.  All callers changed.
61308         (mode_compile): Keep track of which mode bits the user has explicitly
61309         mentioned.
61310         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61311         New arg PMODE_BITS, to keep track of which mode bits the user
61312         mentioned; it treats S_ISUID and S_ISGID speciall.
61313         All callers changed.
61314         * lib/modechange.h: Likewise.
61315
61316 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61317
61318         * MODULES.html.sh: Add mkancestors.
61319         * modules/mkancesdirs: New module.
61320         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61321         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61322         The chdir-safer and afs files are now orphans; I'll remove them
61323         unless someone speaks up.
61324         Add lib/dirchownmod.c, lib/dirchownmod.h.
61325         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61326         Add lchown, mkancesdirs.
61327         (Maintainer): Add self.
61328
61329 2006-07-15  Karl Berry  <karl@gnu.org>
61330
61331         * gnulib-tool: help message wording/arrangement.
61332
61333 2006-07-14  Simon Josefsson  <jas@extundo.com>
61334
61335         * doc/gnulib.texi (Libtool and Windows): New section.
61336
61337 2006-07-12  Simon Josefsson  <jas@extundo.com>
61338
61339         * modules/gendocs (License): Fix license, approved by Karl.
61340
61341 2006-07-12  Eric Blake  <ebb9@byu.net>
61342
61343         * MODULES.html.sh: Add gendocs.
61344
61345 2006-07-11  Eric Blake  <ebb9@byu.net>
61346
61347         * modules/fdl: New module, to install doc/fdl.texi.
61348         * MODULES.html.sh: Add new section for documentation modules.
61349         * gnulib-tool: Avoid space-tab.
61350         (--doc-base): New option, to manage files from doc.
61351
61352 2006-07-11  Eric Blake  <ebb9@byu.net>
61353
61354         * m4/absolute-header.m4: Fix comments to match recent change.
61355
61356 2006-07-11  Eric Blake  <ebb9@byu.net>
61357
61358         * gnulib-tool: List --doc-base before --tests-base.
61359
61360 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61361
61362         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61363
61364 2006-07-11  Bruno Haible  <bruno@clisp.org>
61365
61366         * README: Mention where to put documentation.
61367
61368 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61369
61370         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61371
61372 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61373
61374         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61375         to stdint.m4.
61376
61377 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61378
61379         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61380         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61381         "no/such/file/stdint.h" when there is no such file, so that
61382         the resulting C code can be parsed by dodgy compilers.
61383         Problems reported by Bob Proulx.
61384
61385 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61386
61387         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61388         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61389         macros into the GNU _D_EXACT_NAMLEN.
61390         * lib/savedir.c:  Likewise.
61391         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61392
61393 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61394         and Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61397         * m4/savedir.m4:
61398         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61399         macros into the GNU _D_EXACT_NAMLEN.
61400
61401 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61402
61403         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61404         around the absolute name, to work around a problem with the HP-UX
61405         11.23 native C compiler, reported by Bob Proulx.
61406
61407 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         * doc/maintain.texi, make-stds.texi: Sync from
61410         <http://savannah.gnu.org/projects/gnustandards>.
61411
61412 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61415
61416 2006-07-09  Jim Meyering  <jim@meyering.net>
61417
61418         * m4/glob.m4: Remove a doubled word in a comment.
61419
61420 2006-07-09  Jim Meyering  <jim@meyering.net>
61421
61422         * lib/argp-pv.c: Remove a doubled word in a comment.
61423         * lib/check-version.c (check_version): Likewise.
61424         * lib/javacomp.c (compile_java_class): Likewise.
61425
61426 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61427
61428         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61429         for the benefit of people using Autoconf 2.60.  If you want to
61430         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61431         (or m4/onceonly.m4, if pre-2.57) manually.
61432
61433 2006-07-08  Jim Meyering  <jim@meyering.net>
61434
61435         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61436         comment.
61437         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61438         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61439         comment.
61440
61441 2006-07-08  Jim Meyering  <jim@meyering.net>
61442
61443         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61444
61445 2006-07-07  Simon Josefsson  <jas@extundo.com>
61446
61447         * tests/test-crc.c: Change expected crc value, the test vector
61448         were probably computed using the old broken crc.c?
61449
61450 2006-07-06  Simon Josefsson  <jas@extundo.com>
61451
61452         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61453         now the canonical place for the M4 file).
61454
61455         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61456         from the sys_socket dependency now.
61457
61458         * modules/inet_pton (Files): Ditto.
61459
61460         * modules/inet_ntop (Files): Ditto.
61461
61462 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61463
61464         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61465         not gl_PREREQ_GETUSERSHELL.
61466
61467 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61468
61469         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61470         with only one argument, for Autoconf 2.60.
61471         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61472         expand to nothing, so add a shell command to avoid syntax error.
61473         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61474
61475 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61476
61477         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61478
61479 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61480
61481         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61482         no longer needed.  Check for isblank decl.
61483         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61484         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61485         of existence.
61486
61487 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61488
61489         * lib/getloadavg.c: Use __VMS, not VMS.
61490         * lib/getopt.c: Likewise.
61491         * lib/getpagesize.h: Likewise.
61492         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61493         and probably does not work.
61494
61495 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         * lib/.cppi-disable: Add wcwidth.
61498         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61499         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61500         (ISGRAPH): Remove.  All uses changed to isgraph.
61501         (FOLD) [!defined _LIBC]: Remove special case.
61502         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61503         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61504         HAVE_ISBLANK.
61505         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61506         case.
61507
61508 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61509
61510         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61511         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61512         brackets.  Other minor changes to suppress some compiler
61513         warnings.
61514
61515 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61516         and Paul Eggert  <eggert@cs.ucla.edu>
61517
61518         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61519         of invoking obsolescent AC_HEADER_DIRENT macro.
61520         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61521         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61522         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61523         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61524         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61525         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61526         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61527         * m4/readdir.m4: Remove; no longer needed.
61528
61529 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61530         and Paul Eggert  <eggert@cs.ucla.edu>
61531
61532         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61533         Don't worry about this obsolete case any more.
61534         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61535         directories.
61536         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61537         worry about this obsolete case any more.
61538         * lib/fts.c: Likewise.
61539         * lib/getcwd.c: Likewise.
61540         * lib/glob.h: Likewise.
61541         * lib/savedir.c: Likewise.
61542
61543 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61546         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61547         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61548         needed.
61549         All uses removed.
61550         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61551         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61552         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61553         needed.
61554         * m4/getdate.m4 (gl_GETDATE): Likewise.
61555         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61556         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61557         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61558         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61559         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61560         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61561         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61562         needed.
61563
61564 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61565
61566         * lib/memcasecmp.c: Include <limits.h>.
61567         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61568         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61569         Don't assume isdigit succeeds only on '0' through '9'.
61570
61571 2006-07-05  Eric Blake  <ebb9@byu.net>
61572
61573         * modules/getaddrinfo (Depends-on): Add snprintf.
61574
61575 2006-07-05  Eric Blake  <ebb9@byu.net>
61576
61577         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61578         to avoid 'header present but could not be compiled' on cygwin.
61579
61580 2006-07-05  Eric Blake  <ebb9@byu.net>
61581
61582         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61583         missing from netdb.h.
61584         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61585
61586 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61587
61588         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61589         no longer needed.
61590         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61591         * m4/getdate.m4 (gl_GETDATE): Likewise.
61592         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61593         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61594         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61595         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61596         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61597
61598 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61599
61600         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61601         All uses of is_space replaced by isspace.
61602         * lib/exit.h: Don't talk about STDC_HEADERS.
61603         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61604         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61605         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61606         replaced by isprint etc.
61607         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61608         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61609         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61610         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61611         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61612         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61613
61614 2006-07-05  Bruno Haible  <bruno@clisp.org>
61615
61616         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61617         the function exists, before testing against AIX.
61618         Reported by Martin Lambers <marlam@marlam.de>.
61619
61620 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61621
61622         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61623         From Mark D. Baushke.
61624
61625 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61626
61627         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61628         to the absolute name, not just one, to bypass Sun C 5.8's
61629         "warning: #include of /usr/include/... may be non-portable".
61630
61631 2006-07-04  Eric Blake  <ebb9@byu.net>
61632
61633         * modules/dirname-tests: New test module.
61634         * tests/test-dirname.c: New file, replacing dirname.c
61635         TEST_DIRNAME section that was recently deleted.
61636
61637 2006-07-04  Bruno Haible  <bruno@clisp.org>
61638
61639         Assume ANSI C header files and <ctype.h> functions.
61640         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61641         (mbsnwidth): Use isprint, iscntrl instead.
61642
61643 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61644
61645         Merge from coreutils.
61646         * MODULES.html.sh: Add xstrtold.
61647         * modules/xstrtold: New file.
61648         * modules/cycle-check (Files): Add lib/same-inode.h.
61649         * modules/dirname (Files): Add m4/double-slash-root.m4.
61650         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61651         * modules/mkdir-p (Files): Add lib/same-inode.h.
61652         * modules/same (Files): Add lib/same-inode.h.
61653
61654 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61657         This is to keep the terminology clean; POSIX talks about
61658         "absolute pathnames", not "full pathnames", but the GNU
61659         Coding Standards say to use "path" for something else;
61660         so use "absolute" to keep both sides happy.
61661         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61662         Set gl_absolute_header, not gl_full_header_path.
61663         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61664         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61665         All uses changed.
61666
61667         Merge from coreutils.
61668
61669         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61670
61671         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61672         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61673         want to require the building of c-strtod.o.
61674         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61675         needs -lm directly.
61676         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61677
61678         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61679
61680         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61681         --as-needed option if available.  Problem reported by Albert Chin in
61682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61683         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61684         cc merely issues a bunch of annoying warnings for --as-needed
61685         (this problem was reported by Bob Proulx).  Also, try linking with
61686         -lm to detect a bug in binutils 2.16 (this problem was reported
61687         by Ralf Wildenhues).
61688
61689         2006-06-18  Jim Meyering  <jim@meyering.net>
61690
61691         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61692         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61693         macro.
61694         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61695         also check for glibc-2.4's abort-inducing bug.
61696
61697         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61698         Low-probability clean-up should be to use rmdir to get rid of
61699         the just-created directory, not unlink.
61700
61701         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61702         configure fail, and request a bug report to inform us about it.
61703         Add a comment that, barring reports to the contrary, in 2007 we'll
61704         assume ftruncate is universally available.
61705
61706         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61709
61710         2006-03-12  Jim Meyering  <jim@meyering.net>
61711
61712         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61713         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61714         * m4/same.m4 (gl_SAME): Likewise.
61715         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61716
61717         2006-03-11  Eric Blake  <ebb9@byu.net>
61718
61719         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61720         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61721         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61722         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61723
61724 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61727         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61728         reported by Mark D. Baushke, one in
61729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61730
61731         Merge from coreutils.
61732
61733         * lib/.cppi-disable: Add stdint_.h.
61734         * lib/.cvsignore: Add stdint.h.
61735
61736         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61737
61738         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61739         both double and long double versions.
61740         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61741         * lib/xstrtold.c: New file.
61742         * lib/xstrtod.h (xstrtold): New decl.
61743
61744         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         * lib/filemode.c (setst): Remove.
61747         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61748         (arguably) clearer, and the generated code is a bit smaller on my
61749         Debian GNU/Linux stable x86 host.
61750
61751         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61752
61753         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61754         Assume that filemode.h includes sys/types.h and sys/stat.h.
61755         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61756         (ftypelet): Reorder to put common cases first, for efficiency.
61757         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61758         to do 'M'.
61759         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61760         of 10, for compatibility with FreeBSD.  All callers changed.
61761         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61762         types that can't be deduced solely from st_mode.  First arg is now a
61763         const pointer.
61764         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61765         (strmode): Renamed from mode_string.
61766         (filemodestring): New decl.
61767         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61768         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61769         needed.
61770         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61771
61772         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61773
61774         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61775         fsusage.h now does that.  Include fsusage.h first, to test interface.
61776         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61777         at most one method (the old code could have generated decls that
61778         didn't conform to C89, not that this was ever exercised).
61779         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61780
61781         2006-03-19  Jim Meyering  <jim@meyering.net>
61782
61783         Work even in a chroot where d_ino values for entries in "/"
61784         don't match the stat.st_ino values for the same names.
61785         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61786         number, iterate through all entries again, using lstat instead.
61787         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61788         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61789
61790         * lib/getcwd.c (__getcwd): Clarify a comment.
61791         Use memcpy in place of a call to strcpy.
61792
61793         2006-03-12  Jim Meyering  <jim@meyering.net>
61794
61795         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61796         matches that of the current directory (which we're about to chdir ".."
61797         out of), then save the dev-ino of the parent, instead.
61798
61799         * lib/same-inode.h (SAME_INODE): New file/macro.
61800         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61801         Include "same-inode.h", instead.
61802         * lib/same.c: Likewise.
61803         * lib/cycle-check.h: Include "same-inode.h".
61804         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61805         * lib/cycle-check.c (SAME_INODE): Remove definition.
61806         * lib/root-dev-ino.h: Include "same-inode.h".
61807
61808         2006-03-11  Eric Blake  <ebb9@byu.net>
61809
61810         * lib/same.c (same_name): s/base_name/last_component/
61811         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61812         * lib/filenamecat.c (file_name_concat): Likewise.
61813
61814         2006-03-11  Eric Blake  <ebb9@byu.net>,
61815                     Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61818         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61819         drive prefix.
61820         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61821         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61822         (last_component): New method.
61823         * lib/dirname.c (dir_len): Determine when drive letters need a
61824         subsequent slash.  Preserve // when it is special.
61825         (dir_name): Don't append dot when drive letter is absolute.
61826         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61827         * lib/basename.c (base_name): New semantics - malloc the result.
61828         Preserve // when it is special.  Preserve relative files that look
61829         like drive letters.
61830         (base_len): Preserve // when it is special.
61831         (last_component): New method, similar to old base_name semantics.
61832         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61833         base_name.  Strip redundant slashes from ///.
61834
61835 2006-07-03  Jim Meyering  <jim@meyering.net>
61836
61837         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61838         macro is used before the first cycle_check call.
61839
61840 2006-07-03  Eric Blake  <ebb9@byu.net>
61841
61842         * modules/dirname (Depends-on): Add xstrndup.
61843
61844 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61845
61846         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61847         test cases, so that config.log is a bit easier to follow.
61848
61849 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61850
61851         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61852         both are 64 bits, since this seems to be the tradition, and this
61853         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61854         we ever run into a host that prefers long long to long in this
61855         case, we'll need another configure-time test.  Problem reported by
61856         Jim Meyering.
61857
61858 2006-07-02  Eric Blake  <ebb9@byu.net>
61859
61860         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61861
61862 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61863
61864         * modules/inttypes (Depends-on): No longer depends on stdint.
61865         * modules/stdint (Description): Say more about assumptions.
61866         Say that the fast types might differ.  Say macros are used.
61867         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61868         (Makefile.am): Revise list of substituted symbols to match
61869         new stdint.m4.
61870         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61871         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61872         * tests/test-stdint.c (verify_same_types)
61873         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61874         the code conforms to C99/C89.
61875         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61876         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61877
61878 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61879
61880         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61881         but fix a bug, by requiring at least 64 bits.
61882         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61883         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61884         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61885         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61886
61887         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61888         changes.  Make 2.59 a prerequisite.  Check and substitute for
61889         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61890         inttypes.h.  Do not use special include files; just use the
61891         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61892         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61893         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61894         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61895         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61896         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61897         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61898         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61899         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61900         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61901         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61902         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61903         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61904         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61905         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61906         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61907         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61908         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61909         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61910         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61911         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61912         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61913         not check for things that C99 does not require, e.g., int8_t.  If
61914         a test isn't needed unless <stdint.h> isn't working, and is
61915         unlikely to be needed for any other reason, then don't do it
61916         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61917         size_t, since we assume C89 freestanding at least.  Do not check
61918         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61919         the right thing even if the types are not defined.  Instead use:
61920         (gl_STDINT_TYPE_PROPERTIES): New macro.
61921         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61922         testing whether <sys/types.h> clashes, as Autoconf does this for
61923         us now.  All uses removed.
61924         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61925         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61926         (gl_CHECK_TYPE_SAME):
61927         Remove; no longer needed.
61928         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61929         exists, since we'll return 0 anyway in that case.
61930         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61931
61932 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61935         possible collision with system files.
61936         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61937         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61938         WCHAR_MIN and WCHAR_MAX in this case.
61939         (<stddef.h>): Do not include; no longer needed.
61940         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61941         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61942         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61943         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61944         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61945         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61946         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61947         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61948         !defined(__c99))]: Include in this case too, since it's harmless
61949         now.
61950         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61951         dangerous to do so.
61952         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61953         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61954         (_STDINT_MIN, _STDINT_MAX): New macros.
61955         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61956         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61957         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61958         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61959         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61960         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61961         macros, not typedefs; this simplifies things quite a bit.
61962         Use long int for all types narrower than int64_t.
61963         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61964         Define in terms of long long int or int64_t or long int,
61965         not int64_t or int32_t.  This saves some compile-time testing.
61966         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61967         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61968         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61969         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61970         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61971         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61972         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61973         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61974         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61975         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61976         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61977         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61978         undef any previous version and define our own version, for
61979         simplicity and consistency with the new macros for types.
61980         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61981         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61982         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61983         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61984         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61985         @WINT_T_SUFFIX@ to keep things simple here.
61986         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61987         Simplify by assuming typical 8/16/32/64 host, since we're
61988         already doing that elsewhere anyway.
61989         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61990         and assume long long int is 64 bits if available.  This
61991         speeds up 'configure'.
61992
61993 2006-07-01  Eric Blake  <ebb9@byu.net>
61994
61995         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61996         Reported by Andreas Buening.
61997
61998 2006-07-01  Eric Blake  <ebb9@byu.net>
61999
62000         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62001
62002 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62003
62004         * lib/getaddrinfo.c: fixed typo
62005
62006 2006-06-29  Jim Meyering  <jim@meyering.net>
62007
62008         * modules/strftime (Maintainer): Add my name, since with the
62009         FPRINTFTIME changes strftime.c has forked from glibc.
62010
62011 2006-06-29  Eric Blake  <ebb9@byu.net>
62012
62013         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62014
62015 2006-06-29  Eric Blake  <ebb9@byu.net>
62016
62017         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62018
62019 2006-06-29  Eric Blake  <ebb9@byu.net>
62020
62021         * lib/stat_.h: New file.
62022
62023 2006-06-29  Eric Blake  <ebb9@byu.net>
62024
62025         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62026         unused static function.
62027
62028 2006-06-29  Eric Blake  <ebb9@byu.net>
62029
62030         * doc/functions.texi (Function Portability): Document missing lstat
62031         on mingw.
62032
62033 2006-06-29  Eric Blake  <ebb9@byu.net>
62034
62035         * MODULES.html.sh: Add sys_stat.
62036         * modules/sys_stat: New module.
62037         * modules/mkstemp (Depends-on): Add sys_stat.
62038
62039 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62040
62041         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62042
62043 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62044
62045         * m4/c-bs-a.m4: Removed.
62046
62047 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62048
62049         * lib/strftime.c: Assume strftime() exists.
62050
62051 2006-06-29  Derek Price  <derek@ximbiot.com>
62052
62053         * modules/c-bs-a: Removed - \a is C89.
62054         * MODULES.html.sh: Remove c-bs-a.
62055
62056 2006-06-29  Bruno Haible  <bruno@clisp.org>
62057
62058         * modules/wcwidth (License): Change to LGPL.
62059
62060 2006-06-28  Simon Josefsson  <jas@extundo.com>
62061
62062         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62063         on _WIN32.
62064
62065         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62066         getnameinfo.
62067
62068 2006-06-28  Simon Josefsson  <jas@extundo.com>
62069
62070         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62071
62072 2006-06-28  Simon Josefsson  <jas@extundo.com>
62073
62074         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62075         functions there.  It will succeed on Windows XP, but on Windows
62076         2000 and (presumably) earlier, it will fail, and use the internal
62077         re-implementation.
62078         (use_win32_p): New function.
62079         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62080         Support AI_NUMERICSERV to disable getservbyname.
62081         (getnameinfo): New function, only supports
62082         NI_NUMERICHOST|NI_NUMERICSERV for now.
62083
62084         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62085         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62086         getnameinfo.
62087
62088 2006-06-28  Eric Blake  <ebb9@byu.net>
62089
62090         * modules/wcwidth: New file.
62091         * modules/mbchar (Depends-on): Add wcwidth.
62092         * modules/mbswidth (Depends-on): Add wcwidth.
62093         * MODULES.html.sh: Add wcwidth.
62094
62095 2006-06-28  Eric Blake  <ebb9@byu.net>
62096
62097         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62099
62100 2006-06-28  Eric Blake  <ebb9@byu.net>
62101
62102         * lib/xvasprintf.h: Fix comments.
62103
62104 2006-06-28  Eric Blake  <ebb9@byu.net>
62105
62106         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62107         * lib/mbswidth.c (wcwidth): Move from here...
62108         * lib/wcwidth.h: ...to this new file.
62109
62110 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62111
62112         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62113
62114         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62115         it's obsolete.
62116         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62117
62118 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62119
62120         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62121         Autoconf 2.60 says this stuff was obsolete.
62122
62123 2006-06-28  Bruno Haible  <bruno@clisp.org>
62124
62125         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62126
62127 2006-06-28  Bruno Haible  <bruno@clisp.org>
62128
62129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62130         gt_TYPE_WCHAR_T.
62131
62132 2006-06-28  Bruno Haible  <bruno@clisp.org>
62133
62134         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62135         declaration for wcwidth.
62136         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62137
62138 2006-06-28  Bruno Haible  <bruno@clisp.org>
62139
62140         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62141         (mkdir): Define using _mkdir.
62142
62143 2006-06-28  Bruno Haible  <bruno@clisp.org>
62144
62145         * lib/getaddrinfo.h: Fix POSIX URL.
62146         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62147         _WIN32.
62148         (use_win32_p): Make static.
62149         (getaddrinfo): Reject service name if it is empty or does not consist
62150         solely of decimal digits, or if its value is > 65535.
62151         (getnameinfo): Remove useless casts.
62152
62153 2006-06-27  Simon Josefsson  <jas@extundo.com>
62154
62155         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62156         Eggert and Martin Lambers.
62157
62158 2006-06-27  Simon Josefsson  <jas@extundo.com>
62159
62160         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62161         Eggert and Martin Lambers.
62162
62163 2006-06-27  Bruno Haible  <bruno@clisp.org>
62164
62165         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62166         result to 0, not to empty.
62167         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62168
62169 2006-06-27  Bruno Haible  <bruno@clisp.org>
62170
62171         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62172
62173 2006-06-26  Simon Josefsson  <jas@extundo.com>
62174
62175         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62176         present.
62177
62178 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62179
62180         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62181         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62182         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62183
62184 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62185
62186         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62187
62188 2006-06-26  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62191
62192 2006-06-26  Bruno Haible  <bruno@clisp.org>
62193
62194         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62195
62196 2006-06-26  Bruno Haible  <bruno@clisp.org>
62197
62198         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62199         SGI C compiler in pre-C99 mode.
62200         Suggested by Mark D. Baushke and Larry Jones.
62201
62202 2006-06-26  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62205         WCHAR_MAX.
62206         Reported by Mark D. Baushke and Larry Jones.
62207
62208 2006-06-26  Bruno Haible  <bruno@clisp.org>
62209
62210         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62211         in pre-C99 mode.
62212         Suggested by Mark D. Baushke and Larry Jones.
62213
62214 2006-06-23  Simon Josefsson  <jas@extundo.com>
62215             Bruno Haible  <bruno@clisp.org>
62216
62217         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62218         Emit mostlyclean-local rule.
62219         (func_emit_tests_Makefile_am): Likewise.
62220         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62221
62222 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62223
62224         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62225
62226 2006-06-23  Bruno Haible  <bruno@clisp.org>
62227
62228         * tests/test-stdint.c: Update to match ISO C 99 Technical
62229         Corrigendum 1.
62230
62231 2006-06-23  Bruno Haible  <bruno@clisp.org>
62232
62233         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62234
62235 2006-06-23  Bruno Haible  <bruno@clisp.org>
62236
62237         * lib/stdint_.h: Treat IRIX like OpenBSD.
62238
62239 2006-06-23  Bruno Haible  <bruno@clisp.org>
62240
62241         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62242         ISO C 99 Technical Corrigendum 1.
62243
62244 2006-06-22  Simon Josefsson  <jas@extundo.com>
62245
62246         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62247         MinGW.
62248
62249 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62252         needed.  Some compiler complained about some of them.  Problem reported
62253         by Larry Jones in
62254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62255
62256 2006-06-21  Simon Josefsson  <jas@extundo.com>
62257
62258         * tests/test-getaddrinfo.c: New file.
62259
62260         * modules/getaddrinfo-tests: New file.
62261
62262         * MODULES.html.sh: Add inet_pton.
62263
62264         * modules/inet_pton: New file.
62265
62266 2006-06-21  Simon Josefsson  <jas@extundo.com>
62267
62268         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62269         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62270         of using the (limited) gnulib implementation on Windows XP.
62271
62272         * m4/inet_pton.m4: New file.
62273
62274 2006-06-21  Simon Josefsson  <jas@extundo.com>
62275
62276         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62277         variable.
62278
62279         * lib/socket_.h: Don't define WINVER.
62280
62281         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62282         slightly modified to work in gnulib.
62283
62284 2006-06-21  Simon Josefsson  <jas@extundo.com>
62285
62286         * doc/gnulib.texi (Windows sockets): Add.
62287
62288 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         * lib/read-file.c (fread_file): Start with buffer allocation of
62291         0 bytes rather than 1 byte; this simplifies the code.
62292         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62293         code to free buffer and save/restore errno.
62294         (internal_read_file): Remove unused local.
62295
62296 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62299         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62300         Problem reported by Denis Excoffier in
62301         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62302
62303 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62304
62305         * modules/sys_socket, modules/socklen: Include sys/types since
62306         FreeBSD 4.x's sys/socket.h needs it.
62307
62308 2006-06-19  Simon Josefsson  <jas@extundo.com>
62309
62310         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62311
62312 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62315
62316 2006-06-19  Bruno Haible  <bruno@clisp.org>
62317
62318         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62319         and FULL_PATH_INTTYPES_H in angle brackets.
62320         Reported by Mark D. Baushke <mdb@gnu.org>.
62321
62322 2006-06-17  Eric Blake  <ebb9@byu.net>
62323
62324         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62325         errno.
62326
62327 2006-06-17  Bruno Haible  <bruno@clisp.org>
62328
62329         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62330         <sys/inttypes.h>.
62331
62332 2006-06-17  Bruno Haible  <bruno@clisp.org>
62333
62334         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62335         whether errno is declared. Assume <errno.h> declares errno.
62336
62337 2006-06-17  Bruno Haible  <bruno@clisp.org>
62338
62339         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62340
62341 2006-06-17  Bruno Haible  <bruno@clisp.org>
62342
62343         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62344         problem on Solaris 2.5.1.
62345
62346 2006-06-16  Eric Blake  <ebb9@byu.net>
62347
62348         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62349         * lib/unicodeio.c [!defined errno]: Likewise.
62350         * lib/strtol.c [!defined errno]: Likewise.
62351         * lib/strtod.c [!defined errno]: Likewise.
62352
62353 2006-06-15  Eric Blake  <ebb9@byu.net>
62354
62355         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62356
62357 2006-06-15  Eric Blake  <ebb9@byu.net>
62358
62359         * config/srclist.txt (ssize_t.m4): Lose sync.
62360
62361 2006-06-15  Bruno Haible  <bruno@clisp.org>
62362
62363         * modules/stdint (Files): Include m4/full-header-path.m4,
62364         m4/size_max.m4, m4/wchar_t.m4.
62365         (Makefile.am): Many more substitutions.
62366         * modules/stdint-tests: New file.
62367         * tests/test-stdint.c: New file.
62368
62369 2006-06-15  Bruno Haible  <bruno@clisp.org>
62370
62371         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62372         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62373         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62374         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62375         gl_CHECK_TYPE_SAME): New macros.
62376
62377 2006-06-15  Bruno Haible  <bruno@clisp.org>
62378
62379         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62380
62381 2006-06-15  Bruno Haible  <bruno@clisp.org>
62382
62383         * lib/stdint_.h: Rewritten to be fully auto-configured.
62384         Fixes bug on HP-UX/IA64.
62385
62386 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62387
62388         * lib/getdate.y (__attribute__): Don't define if already defined.
62389         Problem reported by Larry Jones.
62390         * lib/utimens.c (__attribute__): Likewise.
62391
62392 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62395         reported by Andreas Schwab.
62396
62397 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62398             Bruno Haible  <bruno@clisp.org>
62399
62400         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62401         check for the declaration of strnlen and a run test that exposes the
62402         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62403         rpl_strndup.
62404
62405 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62406             Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62409
62410 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62411
62412         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62413         compile test, for Tru64 4.0D.
62414
62415 2006-05-28  Karl Berry  <karl@gnu.org>
62416
62417         * config/srclist.txt (printf-args.c): lose sync.
62418
62419 2006-05-26  Martin Lambers  <marlam@marlam.de>
62420
62421         * lib/getpass.c: Updates the test for the native W32 API, and adds
62422         missing includes, thus fixing compilation warnings.
62423
62424 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62425
62426         * lib/exclude.c (exclude_fnmatch): New function.
62427         (excluded_file_name): Call exclude_fnmatch.
62428         * lib/exclude.h (excluded_file_name): New prototype
62429
62430 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * lib/tempname.c (small_open, large_open): New macros.
62433         (__open, __open64) [!_LIBC]: Remove.
62434         (__gen_tempname): Use small_open and large_open instead of __open
62435         and __open64.  This fixes a portability bug on HP-UX 11.11i
62436         reported by Simon Wing-Tang in
62437         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62438
62439 2006-05-24  Bruno Haible  <bruno@clisp.org>
62440
62441         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62442         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62443         Reported by Thorsten Maerz <torte@netztorte.de> via
62444         Aaron Stone <aaron@serendipity.cx>.
62445
62446 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62449         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62450         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62451         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62452         not really conditional on the cache.
62453         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62454
62455 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62458         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62459         (my_usleep): Don't mishandle maximum value.
62460
62461 2006-05-19  Jim Meyering  <jim@meyering.net>
62462
62463         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62464
62465 2006-05-17  Bruno Haible  <bruno@clisp.org>
62466
62467         Cygwin portability.
62468         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62469
62470 2006-05-17  Bruno Haible  <bruno@clisp.org>
62471
62472         * lib/stdint_.h: Fix recognition of Cygwin.
62473
62474 2006-05-15  Bruno Haible  <bruno@clisp.org>
62475
62476         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62477         on libtool patch by Ralf Wildenhues.
62478
62479 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62482         test for C99 conformance; (bool) 0.5 is an integer constant
62483         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62484         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62485
62486 2006-05-11  Simon Josefsson  <jas@extundo.com>
62487
62488         * m4/xvasprintf.m4: Fix obvious typo.
62489
62490 2006-05-11  Jim Meyering  <jim@meyering.net>
62491
62492         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62493         James Lemley.
62494
62495 2006-05-10  Simon Josefsson  <jas@extundo.com>
62496
62497         * lib/md4.c: Typo fix, update copyright years.
62498         (K1, K2): Don't use L because it turn computations into 64-bit on
62499         64-bit platforms.
62500
62501 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62504         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62505         unwanted sign propagation, e.g., on hosts with 64-bit int.
62506         There still are some problems with reeelly weird theoretical hosts
62507         (e.g., 33-bit int) but it's not worth worrying about now.
62508         * lib/sha1.c (rol): Likewise.
62509         (K1, K2, K3, K4): Remove unnecessary L suffix.
62510
62511 2006-05-10  Bruno Haible  <bruno@clisp.org>
62512
62513         * lib/des.c: Cast to avoid warnings.
62514
62515 2006-05-09  Bruno Haible  <bruno@clisp.org>
62516
62517         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62518         (Depends-on): Depend also on xsize, stdarg.
62519         (configure.ac): Add gl_XVASPRINTF.
62520
62521 2006-05-09  Bruno Haible  <bruno@clisp.org>
62522
62523         * m4/xvasprintf.m4: New file.
62524
62525 2006-05-09  Bruno Haible  <bruno@clisp.org>
62526
62527         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62528         (EOVERFLOW): Define fallback value.
62529         (xstrcat): New function.
62530         (xvasprintf): Recognize the special case of a string concatenation.
62531
62532 2006-05-08  Eric Blake  <ebb9@byu.net>
62533
62534         * gnulib-tool (func_version): Base copyright year on CVS date.
62535         (func_emit_copyright_notice): New function.
62536         (func_emit_lib_Makefile_am): Use it.
62537         (func_emit_tests_Makefile_am): Likewise.
62538         (func_import): Likewise.
62539
62540 2006-05-08  Bruno Haible  <bruno@clisp.org>
62541
62542         * modules/stdarg: New file.
62543         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62544
62545 2006-05-08  Bruno Haible  <bruno@clisp.org>
62546
62547         * m4/stdarg.m4: New file, from GNU gettext.
62548
62549 2006-05-08  Bruno Haible  <bruno@clisp.org>
62550
62551         * config/srclist.txt (build-aux/config.rpath): different from latest
62552         release.
62553
62554 2006-05-08  Bruno Haible  <bruno@clisp.org>
62555
62556         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62557
62558 2006-05-05  Jim Meyering  <jim@meyering.net>
62559
62560         * m4/warning.m4: New file, derived from bison's file by the same name.
62561
62562 2006-05-03  Bruno Haible  <bruno@clisp.org>
62563
62564         * lib/stdint_.h: Shorter URL.
62565         * lib/inttypes.h: Likewise.
62566
62567 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62568
62569         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62570
62571 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62572
62573         * lib/verify.h: Document the internals better.  Most of this change
62574         was written by Bruno Haible.
62575
62576 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62577
62578         * doc/verify.texi: New file, partly based on a proposal by
62579         Bruno Haible.
62580
62581 2006-05-02  Bruno Haible  <bruno@clisp.org>
62582
62583         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62584         test from here...
62585         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62586
62587 2006-04-29  Bruno Haible  <bruno@clisp.org>
62588
62589         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62590         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62591
62592 2006-04-29  Bruno Haible  <bruno@clisp.org>
62593
62594         * gnulib-tool: Make --update option actually work.
62595
62596 2006-04-29  Bruno Haible  <bruno@clisp.org>
62597
62598         * doc/gcd.texi: New file.
62599         * doc/gnulib.texi: Include it.
62600
62601 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * lib/getdate.y (get_date): When adding relative date, start with the
62604         initial time, not with the result of the first mktime call.
62605
62606 2006-04-25  Bruno Haible  <bruno@clisp.org>
62607
62608         * gnulib-tool (func_import): Output the include directives in three
62609         blocks, sorted separately.
62610         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62611
62612 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62615         to define main with arguments, for C++.  Reported by Eric Blake.
62616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62617         Prefer 'int main ()' to 'int main (void)', for C++.
62618         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62620         for 'main', for C99 and C++.
62621
62622 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62625         Don't assume that exit status -1 is valid.
62626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62627         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62628         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62629         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62630         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62631         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62632         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62633         functions can be used without declaring them, or that you can
62634         exit with status -1.
62635         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62636
62637 2006-04-24  Karl Berry  <karl@gnu.org>
62638
62639         * config/srclist.txt (longdouble.m4): sync lost.
62640
62641 2006-04-24  Eric Blake  <ebb9@byu.net>
62642
62643         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62644
62645 2006-04-24  Bruno Haible  <bruno@clisp.org>
62646
62647         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62648         poll() implementation in AIX.
62649         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62650
62651 2006-04-24  Bruno Haible  <bruno@clisp.org>
62652
62653         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62654         assigned exactly once.
62655
62656 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62657             Bruno Haible  <bruno@clisp.org>
62658
62659         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62660         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62661         for AM_CPPFLAGS.
62662
62663 2006-04-23  Bruno Haible  <bruno@clisp.org>
62664
62665         * modules/copy-file: Depend on unistd.
62666         * modules/execute: Likewise.
62667         * modules/fatal-signal: Likewise.
62668         * modules/findprog: Likewise.
62669         * modules/mkdtemp : Likewise.
62670         * modules/pipe: Likewise.
62671         * modules/wait-process: Likewise.
62672
62673 2006-04-23  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62676         condition was already detected.
62677         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62678
62679 2006-04-23  Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/copy-file.c: Include <unistd.h> unconditionally.
62682         * lib/execute.c: Likewise.
62683         * lib/fatal-signal.c: Likewise.
62684         * lib/findprog.c: Likewise.
62685         * lib/mkdtemp.c: Likewise.
62686         * lib/pipe.h: Likewise.
62687         * lib/pipe.c: Likewise.
62688         * lib/wait-process.h: Likewise.
62689
62690 2006-04-23  Bruno Haible  <bruno@clisp.org>
62691
62692         * gnulib-tool (func_usage): Fix --import description. Document
62693         --update.
62694         (func_import): Create temporary file in a temporary directory, if
62695         --dry-run is specified. Silence errors from 'grep' when there are no
62696         m4 files in $m4dir.
62697         (func_create_testdir): Silence errors from 'grep' when there are no
62698         m4 files in $m4dir.
62699         Reported by Karl Berry <karl@freefriends.org>.
62700
62701 2006-04-20  Bruno Haible  <bruno@clisp.org>
62702
62703         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62704         one argument, so that the code will be portable to Autoconf 2.60.
62705         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62706         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62707         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62708
62709 2006-04-19  Derek Price  <derek@ximbiot.com>
62710             Eric Blake  <ebb9@byu.net>
62711
62712         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62713         rather than "/full/path.h".  Update comment to match.  Shorten &
62714         generalize m4_translit call via AS_TR_CPP.
62715
62716 2006-04-19  Derek Price  <derek@ximbiot.com>
62717             Eric Blake  <ebb9@byu.net>
62718
62719         * lib/inttypes.h: Correct grammar in comment.
62720
62721 2006-04-18  Derek Price  <derek@ximbiot.com>
62722             Paul Eggert  <eggert@cs.ucla.edu>
62723
62724         * modules/inttypes: New file.
62725         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62726
62727 2006-04-18  Derek Price  <derek@ximbiot.com>
62728             Paul Eggert  <eggert@cs.ucla.edu>
62729
62730         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62731         New files.
62732
62733 2006-04-18  Derek Price  <derek@ximbiot.com>
62734             Paul Eggert  <eggert@cs.ucla.edu>
62735
62736         * lib/inttypes.h: New file.
62737         * lib/strtoimax.c: Assume <inttypes.h>.
62738
62739 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62742         isn't mounted.  Problem reported by Kir Kolyshkin.
62743
62744 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62747         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62748         Derek R. Price.
62749         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62750         implementation.
62751
62752 2006-04-12  Eric Blake  <ebb9@byu.net>
62753
62754         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62755         is now done automatically by the corresponding Autoconf macro.
62756
62757 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62758
62759         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62760         time_r.h.
62761
62762 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62763
62764         Merge regex changes from libc, removing some of our
62765         POSIX-conformance changes that were rejected and redoing them in a
62766         less-intrusive way.
62767
62768         * lib/regcomp.c (re_compile_internal, init_dfa):
62769         Length arg is now size_t, not Idx.  All uses changed.
62770         (peek_token): Forward decl now says internal_function.
62771         (__re_error_msgid, __re_error_msgid_idx):
62772         Now static rather than extern with attribute_hidden.
62773         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62774         For some reason libc prefers K&R style defns for external functions.
62775         (regerror) [!defined _LIBC]: Likewise.
62776         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62777         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62778         (build_range_exp, build_collating_symbol):
62779         Use K&R-style defn.
62780         (re_compile_fastmap): Use '\0' to memset, not 0.
62781         (utf8_sb_map): Make the calculations more obvious.
62782         (init_dfa, parse_bracket_exp, build_charclass_op):
62783         Call calloc and cast result, as glibc does.
62784         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62785         (build_range_exp, build_collating_symbol):
62786         Now internal functions.
62787
62788         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62789
62790         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62791         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62792         Don't depend on VMS; depend on __VMS instead, for POSIX
62793         namespace cleanness.
62794         (regoff_t): Define to ssize_t, not long int.
62795
62796         Remove the REG_ macros named below.  Instead, make the old names
62797         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62798         __USE_GNU_REGEX.
62799         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62800         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62801         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62802         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62803         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62804         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62805         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62806         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62807         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62808         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62809         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62810         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62811         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62812         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62813         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62814         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62815         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62816         (REG_NREGS):
62817         Remove.  All uses replaced by the old RE_* names.
62818         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62819         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62820         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62821         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62822         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62823         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62824         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62825         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62826         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62827         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62828         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62829         Don't bother having these macros be independent of each others'
62830         values, since they no longer exist in the POSIX name space.
62831
62832         Rename the following member names back to their old names,
62833         unless !__USE_GNU_REGEX.  All uses changed back.
62834         (buffer): Renamed from re_buffer.
62835         (allocated): Renamed from re_allocated.
62836         (used): Renamed from re_used.
62837         (syntax): Renamed from re_syntax.
62838         (fastmap): Renamed from re_fastmap.
62839         (translate): Renamed from re_translate.
62840         (can_be_null): Renamed from re_can_be_null.
62841         (regs_allocated): Renamed from re_regs_allocated.
62842         (fastmap_accurate): Renamed from re_fastmap_accurate.
62843         (no_sub): Renamed from re_no_sub.
62844         (not_bol): Renamed from re_not_bol.
62845         (not_eol): Renamed from re_not_eol.
62846         (newline_anchor): Renamed from re_newline_anchor.
62847         (num_regs): Renamed from rm_num_regs.
62848         (start): Renamed from rm_start.
62849         (end): Renamed from rm_end.
62850
62851         (free_state): Move up a bit.
62852
62853         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62854         #define to be empty.
62855         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62856         when that is what is intended.
62857         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62858         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62859         (MAX): New macro.
62860         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62861         All uses changed back to re_malloc, etc.  It's now the caller's
62862         responsibility to check for overflow; all callers changed.
62863         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62864         (re_x2nrealloc): Remove.
62865         (free_state): Remove decl.
62866
62867         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62868         (re_set_registers, re_exec):
62869         Use K&R-style defn.
62870
62871         2006-01-31  Roland McGrath  <roland@redhat.com>
62872
62873         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62874         Reported by Mike Frysinger <vapier@gentoo.org>.
62875
62876         2006-01-15  Andreas Jaeger  <aj@suse.de>
62877
62878         [BZ #1950]
62879         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62880         build_wcs_upper_buffer change.
62881         (build_wcs_upper_buffer): Change return type.
62882
62883         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62884
62885         * lib/regex_internal.h: Include <stdint.h> if available.
62886
62887         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62888
62889         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62890
62891         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62892
62893         * lib/regcomp.c: Adjust for changed secondary hash function.
62894
62895         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62896
62897         * lib/regex.h: Pretty printing.
62898         Clean up namespace a bit.
62899
62900         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62901
62902         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62903         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62904
62905         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62906                     Ulrich Drepper  <drepper@redhat.com>
62907
62908         [BZ #1302]
62909         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62910         changed.
62911         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62912
62913         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62914
62915         [BZ #281]
62916         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62917         * lib/regcomp.c: Remove unnecessary uses of
62918         unsigned RE_TRANSLATE_TYPE.
62919         * lib/regex_internal.h: Likewise.
62920         * lib/regex_internal.c: Likewise.
62921         * lib/regexec.c: Likewise.
62922         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62923
62924         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62925
62926         * lib/regexec.c (find_recover_state): Remove unnecessary
62927         initialization.
62928         (transit_state_bkref): Make DFA a const pointer.
62929         (get_subexp): Likewise.
62930         (check_arrival): Likewise.
62931         (update_cur_sifted_state): Likewise.
62932         (re_search_internal): Likewise.
62933         (prune_impossible_nodes): Likewise.
62934         (acquire_init_state_context): Likewise.
62935         (proceed_next_node): Likewise.
62936         (set_regs): Likewise.
62937         (free_fail_stack_return): Likewise.
62938         (check_arrival_expand_ecl): Mark DFA parameter as const.
62939         (check_arrival_expand_ecl_sub): Likewise.
62940         (check_subexp_limits): Likewise.
62941         (sub_epsilon_src_nodes):  Likewise.
62942         (add_epsilon_src_nodes):  Likewise.
62943         (merge_state_array): Likewise.
62944         (update_regs): Likewise.
62945         (build_trtable): Likewise.
62946         (sift_states_backward): Mark MCTX parameter as const.
62947         (build_sifted_states): Likewise.
62948         (update_cur_sifted_state): Likewise.
62949         (sift_states_mkref): Likewise.
62950         (check_arrival_expand_ecl): Mark eclosure as const.
62951         (check_dst_limits_calc_pos_1): Likewise.
62952         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62953         pointer.
62954
62955         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62956
62957         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62958         (transit_state_sb): Likewise.
62959         (transit_state_mb): Likewise.
62960         (sift_states_iter_mb): Likewise.
62961         (check_arrival_add_next_nodes): Likewise.
62962         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62963         [_LIBC] (re_search_2_stub): Use mempcpy.
62964
62965         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62966         mbrtowc for very simple UTF-8 case.
62967
62968         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62969         a pointer-to-const.
62970         (re_acquire_state_context): Likewise.
62971         * lib/regex_internal.h: Adjust prototypes.
62972
62973         * lib/regex.c: Prevent using C++ compilers.
62974
62975         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62976         (re_acquire_state_context): Likewise.
62977
62978 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62979
62980         * modules/regex (Depends-on): Add ssize_t.
62981
62982 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62983
62984         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62985         translation table.
62986
62987 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62988
62989         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62990
62991 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62992             Bruno Haible  <bruno@clisp.org>
62993
62994         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62995         <sys/types.h> and <inttypes.h>.
62996
62997 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62998
62999         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63000         `__error_t_defined', so argp.h will not typedef the former.
63001
63002 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63003
63004         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63005         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63006         glibc names.  Even if glibc is changed to conform to POSIX, the
63007         traditional names will be available anyway, since regex depends on
63008         the extensions module.  Also, fix a longstanding typo in the
63009         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63010         reported by Emanuele Giaquinta.  Also, change sense of cached
63011         variable, so that the message makes sense.
63012
63013 2006-03-24  Simon Josefsson  <jas@extundo.com>
63014
63015         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63016         including some doc fixes.
63017         (base64_encode_alloc): Fix +1 bug on allocation failures.
63018
63019 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63020
63021         * lib/base64.c (base64_encode): Do not read past end of array with
63022         unsanitized input on systems with CHAR_BIT > 8.
63023
63024 2006-03-24  Eric Blake  <ebb9@byu.net>
63025
63026         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63027
63028 2006-03-22  Karl Berry  <karl@gnu.org>
63029
63030         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63031         * config/srclistvars.sh (COREUTILS): new var.
63032
63033 2006-03-17  Jim Meyering  <jim@meyering.net>
63034
63035         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63036         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63037
63038 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63039
63040         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63041         no longer needs it.  Instead, check that regoff_t is as least
63042         as wide as ptrdiff_t.
63043
63044         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63045         so that our regex.h stays compatible with the installed regex.
63046         This is helpful for installers who configure --without-included-regex.
63047         Problem reported by Emanuele Giaquinta.
63048
63049 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63052         Typedef to long int, not to off_, as POSIX will likely change
63053         in that direction.
63054
63055 2006-03-15  Eric Blake  <ebb9@byu.net>
63056
63057         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63058
63059 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63060
63061         * lib/argp-help.c (validate_uparams): Fix typo
63062         * lib/argp-parse.c (argp_default_options): Consistently begin help
63063         messages with a lowercase letter.
63064
63065 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63066
63067         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63068         overrun buffers and shouldn't be used (much as gets shouldn't be
63069         used).
63070         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63071
63072 2006-03-08  Simon Josefsson  <jas@extundo.com>
63073
63074         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63075         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63076
63077 2006-03-08  Simon Josefsson  <jas@extundo.com>
63078
63079         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63080         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63081
63082 2006-03-08  Simon Josefsson  <jas@extundo.com>
63083
63084         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63085         signal that configure disabled the device.
63086
63087 2006-03-08  Simon Josefsson  <jas@extundo.com>
63088
63089         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63090         languages.
63091
63092 2006-03-07  Simon Josefsson  <jas@extundo.com>
63093
63094         * modules/getopt (Depends-on): Add unistd.
63095
63096         * modules/unistd: New file.
63097
63098 2006-03-07  Simon Josefsson  <jas@extundo.com>
63099
63100         * modules/gc-random: New file.
63101
63102 2006-03-07  Simon Josefsson  <jas@extundo.com>
63103
63104         * m4/unistd_h.m4: New file.
63105
63106 2006-03-07  Simon Josefsson  <jas@extundo.com>
63107
63108         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63109         test to be side-effect free by storing the result in the cache
63110         variable gl_cv_lib_readline, and moving the assignment of
63111         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63112         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63113
63114 2006-03-07  Simon Josefsson  <jas@extundo.com>
63115
63116         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63117         error on missing devices (the functions will return an error).
63118
63119         * m4/gc.m4: Move random stuff to gc-random.m4
63120
63121 2006-03-07  Simon Josefsson  <jas@extundo.com>
63122
63123         * lib/unistd_.h: New file.
63124
63125 2006-03-07  Simon Josefsson  <jas@extundo.com>
63126
63127         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63128
63129 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63130
63131         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63132         Problem reported by Juan Manuel Guerrero.
63133
63134 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63135
63136         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63137         the unistd module.
63138         * lib/getlogin_r.c: Likewise.
63139         * lib/getlogin_r.h: Likewise.
63140         * lib/glob.c: Likewise.
63141         * lib/pagealign_alloc.c: Likewise.
63142         * lib/unistd_.h: Remove; no longer needed.
63143
63144 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63147         Add unistd.
63148         * modules/c-stack (Depends-on): Add unistd.
63149         * modules/getlogin_r: Likewise.
63150         * modules/glob: Likewise.
63151         * modules/pagealign_alloc: Likewise.
63152         * modules/unistd (Files): Remove lib/unistd_.h.
63153         (EXTRA_DIST): Remove.
63154         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63155         need unistd_.h.
63156         (MOSTLYCLEANFILES): Remove unistd.h-t.
63157
63158 2006-03-03  Simon Josefsson  <jas@extundo.com>
63159
63160         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63161
63162 2006-03-03  Simon Josefsson  <jas@extundo.com>
63163
63164         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63165         libidn and bison.
63166
63167 2006-03-03  Simon Josefsson  <jas@extundo.com>
63168
63169         * build-aux/maint.mk: Add indent target.
63170
63171 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63172
63173         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63174         our replacement poll.h in any case, to avoid a differing
63175         declaration from a system header.  Seen on AIX.
63176
63177 2006-03-01  Simon Josefsson  <jas@extundo.com>
63178
63179         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63180         <kasal@ucw.cz>.
63181
63182 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63183
63184         * modules/gettime (Depends-on): Add extensions module.
63185         * modules/nanosleep (Depends-on): Likewise.
63186         * modules/settime (Depends-on): Likewise.
63187
63188 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63191         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63192         pedantically.
63193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63194         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63195
63196         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63197         not "==".  Reported by Ralf Wildenhues.
63198
63199 2006-03-01  Karl Berry  <karl@gnu.org>
63200
63201         * doc/Copyright/request-*: new files, synced from gnuorg.
63202
63203 2006-03-01  Karl Berry  <karl@gnu.org>
63204
63205         * config/srclist.txt (Copyright/*): new entries.
63206
63207 2006-02-28  Simon Josefsson  <jas@extundo.com>
63208
63209         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63210
63211 2006-02-27  Simon Josefsson  <jas@extundo.com>
63212
63213         * lib/base64.h: Indent #define's.  From Jim Meyering
63214         <jim@meyering.net>.
63215
63216 2006-02-27  Jim Meyering  <jim@meyering.net>
63217
63218         Revert the change of 2006-02-24, so these files can continue
63219         to be sync'd from gettext.
63220         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63221         of `config.h'.
63222
63223 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63224
63225         * modules/intprops: New file.
63226         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63227         Add intprops.
63228         * modules/getloadavg (Files): Remove lib/intprops.h.
63229         (Depends-on): Add intprops.
63230         * modules/human: Likewise.
63231         * modules/inttostr: Likewise.
63232         * modules/openat: Likewise.
63233         * modules/sig2str: Likewise.
63234         * modules/userspec: Likewise.
63235         * modules/utimecmp: Likewise.
63236         * modules/xnanosleep: Likewise.
63237         * modules/xstrtol: Likewise.
63238
63239 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63240
63241         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63242         * modules/lock-tests (TESTS): Use $(EXEEXT).
63243         * modules/tls-tests: Likewise.
63244         * modules/argp-tests: Likewise.
63245         (check_PROGRAMS): New var, replacing...
63246         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63247
63248 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63249
63250         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63251         `config.h'.
63252
63253 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63256
63257 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63258
63259         Sync from coreutils.
63260         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63261         gl_CHDIR_SAFER.
63262
63263 2006-02-22  Jim Meyering  <jim@meyering.net>
63264
63265         Sync from coreutils.
63266         * m4/chdir-safer.m4: New file.
63267
63268 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63271         AT_FDCWD exceeds INT_MAX.
63272         * lib/openat.h (AT_FDCWD): Likewise.
63273
63274 2006-02-17  Eric Blake  <address@hidden>
63275
63276         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63277
63278 2006-02-16  Simon Josefsson  <jas@extundo.com>
63279
63280         * modules/getaddrinfo (Depends-on): Add sys_socket.
63281
63282 2006-02-15  Simon Josefsson  <jas@extundo.com>
63283
63284         * build-aux/maint.mk: Add dsyntax-check rule.
63285
63286 2006-02-15  Eric Blake  <ebb9@byu.net>
63287
63288         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63289         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63290         'present but cannot compile' warnings on cygwin.
63291         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63292         use ws2tcpip.h if sys/socket.h works.
63293         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63294         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63295
63296 2006-02-14  Simon Josefsson  <jas@extundo.com>
63297
63298         * modules/maintainer-makefile (Files): Rename.
63299
63300         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63301         and (the local) Makefile.cfg to maint-cfg.mk.
63302
63303         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63304         to the latter.
63305
63306         * modules/maintainer-makefile: New module.
63307
63308         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63309         severaly stripped to make it possible to build it up from scratch
63310         with reliable tests.
63311
63312         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63313         fixes to permit overriding the default actions when configure and
63314         makefile are not available.
63315
63316 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63317
63318         Sync from coreutils.
63319         * modules/lstat (Depends-on): Don't depend on xalloc.
63320         (License): Change from GPL to LGPL, since this is now simply a
63321         replacement for a libc function.
63322
63323 2006-02-14  Jim Meyering  <jim@meyering.net>
63324
63325         Sync from coreutils.
63326
63327         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63328         failure on deficient systems, and simplify gnulib lgpl dependencies.
63329         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63330         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63331
63332         * lib/xalloc-die.c: Remove unused definition of N_.
63333
63334 2006-02-14  Jim Meyering  <jim@meyering.net>
63335
63336         Sync from coreutils.
63337         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63338         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63339         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63340         double-quote uses of that variable, to accommodate the rare case in
63341         which getmntent is available in none of the libraries checked.  This
63342         happens at least on FreeBSD 5.0.
63343
63344 2006-02-13  Simon Josefsson  <jas@extundo.com>
63345
63346         * gnulib-tool (Usage): Fix --import, from
63347         karl@freefriends.org (Karl Berry).
63348
63349 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63350
63351         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63352
63353 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63354
63355         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63356         "autoupdate" on 2005-12-12.
63357
63358 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63359
63360         * modules/closeout (Depends-on): Remove atexit.
63361
63362 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63363
63364         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63365         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63366
63367 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63368
63369         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63370         __EXTENSIONS__ if this causes compilation to fail.  Problem
63371         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63372         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63373
63374 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63375
63376         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63377         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63378         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63379         All uses changed.
63380
63381 2006-01-26  Simon Josefsson  <jas@extundo.com>
63382
63383         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63384         prototype is visible on mingw32.
63385
63386         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63387         for mingw32.
63388
63389         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63390         mingw32).
63391
63392 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63395         attempt to open for write; this always fails, at least on POSIX
63396         hosts.  This reinstates the 2006-01-09 change, which was
63397         inadvertently removed.
63398
63399 2006-01-26  Bruno Haible  <bruno@clisp.org>
63400
63401         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63402         Reported by Paul Eggert.
63403
63404 2006-01-26  Bruno Haible  <bruno@clisp.org>
63405             Paul Eggert  <eggert@cs.ucla.edu>
63406
63407         * lib/stdbool_.h (_Bool)
63408         [(! (defined __cplusplus || defined __BEOS__)
63409           && !defined __GNUC__
63410           && !(defined __HP_cc || defined __xlc__
63411                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63412                || defined __sgi))]:
63413         #define to signed char in these cases too; this simplifies
63414         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63415         etc., separately) and makes it more conservative.
63416
63417 2006-01-25  Simon Josefsson  <jas@extundo.com>
63418
63419         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63420         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63421         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63422
63423 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63424
63425         * lib/argp-namefrob.h: Bugfix. Remove stray #
63426
63427 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63428
63429         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63430         so that we test the test.
63431         Check for yet another HP-UX cc bug involving *bool |= bool.
63432
63433 2006-01-25  Karl Berry  <karl@gnu.org>
63434
63435         * config/srclist.txt (vasnprintf.c): sync lost.
63436
63437 2006-01-25  Jim Meyering  <jim@meyering.net>
63438
63439         Sync from the stable (b5) branch of coreutils:
63440
63441         * lib/fts.c (fts_children): Don't let close() clobber errno from
63442         failed fchdir().
63443
63444         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63445         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63446         a dangling symlink.  That can also happen at least for ELOOP.
63447         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63448         FYI, this bug predates the inclusion of fts.c in coreutils.
63449
63450         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63451         in their own block, so pre-c99 compilers don't object.
63452
63453         Avoid the double-free (first in fts_read, second in fts_close) that
63454         would occur when an `active' directory is made inaccessible (e.g.,
63455         via chmod a-x) during a traversal.
63456         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63457         before returning.  Reproduce this failure by
63458         mkdir -p a/b; cd a; chmod a-x . b
63459         Reported by Stavros Passas.
63460
63461 2006-01-25  Jim Meyering  <jim@meyering.net>
63462
63463         * lib/fileblocks.c: Remove more useless parentheses.
63464         * lib/readutmp.h: Likewise.
63465
63466 2006-01-25  Bruno Haible  <bruno@clisp.org>
63467
63468         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63469         warnings.
63470         Reported by Paul Eggert.
63471
63472 2006-01-25  Bruno Haible  <bruno@clisp.org>
63473
63474         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63475         rid of a trap command. For Solaris sh.
63476         Reported by Mark D. Baushke <mdb@gnu.org>.
63477
63478 2006-01-24  Simon Josefsson  <jas@extundo.com>
63479
63480         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63481         Bruno.
63482
63483 2006-01-24  Karl Berry  <karl@gnu.org>
63484
63485         * config/srclist.txt (argp-namefrob.h): sync lost.
63486
63487 2006-01-24  Jim Meyering  <jim@meyering.net>
63488
63489         * modules/openat (Files): Add lib/intprops.h.
63490         From Mark D. Baushke.
63491
63492 2006-01-24  Jim Meyering  <jim@meyering.net>
63493
63494         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63495         Reported by Mark D. Baushke.
63496
63497 2006-01-24  Jim Meyering  <jim@meyering.net>
63498
63499         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63500
63501 2006-01-24  Bruno Haible  <bruno@clisp.org>
63502
63503         * modules/strnlen (Maintainer): Change from glibc to all.
63504
63505 2006-01-24  Bruno Haible  <bruno@clisp.org>
63506
63507         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63508         Patch by Paul Eggert.
63509
63510 2006-01-24  Bruno Haible  <bruno@clisp.org>
63511
63512         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63513         already has it.
63514         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63515         2005-11-26.
63516
63517         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63518         'signed char' to avoid problems with the built-in _Bool type.
63519         Reported by Paul Eggert on 2005-11-26.
63520
63521 2006-01-24  Bruno Haible  <bruno@clisp.org>
63522
63523         * gnulib-tool (func_import): Avoid constructing complicated sed
63524         expressions inside backquote.
63525         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63526
63527 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63528
63529         These changes imported from libc.
63530         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63531         test and two separate function calls.
63532         * lib/strndup.c (__strndup): Add libc_hidden_def.
63533
63534 2006-01-23  Simon Josefsson  <jas@extundo.com>
63535
63536         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63537         Remove the test_*_SOURCES variable: automake infers it by default.
63538         * modules/tls-tests: Likewise.
63539
63540 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63541
63542         Work around porting bugs reported by Dieter in
63543         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63544         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63545         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63546         Include "getopt.h" first, to check interface.
63547         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63548         !HAVE_DECL_GETENV.
63549         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63550         (__strndup): Revert to K&R-style function dfns, the glibc style.
63551         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63552         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63553         Include strnlen.h first, to get prototype properly.
63554         (strnlen): Renamed from __strnlen.
63555         Remove weak alias.
63556
63557 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63558
63559         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63560
63561 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63562
63563         * config/srclist.txt: Adjust to reflect glibc reorganization.
63564         This affects only comments.
63565
63566 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63567
63568          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63569          Reported by Bruce Korb <bkorb@gnu.org>.
63570
63571 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63572
63573         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63574         to pacify gcc -Wswitch-default.
63575
63576 2006-01-22  Bruno Haible  <bruno@clisp.org>
63577
63578         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63579         temporary buffer for sprintf, take into account the precision also
63580         for 'd', 'i', 'u', 'o', 'x', 'X'.
63581
63582 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63583
63584         * modules/argp-tests: New module
63585         * tests/test-argp.c: New file
63586         * tests/test-argp-2.sh: New file
63587
63588 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63589
63590         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63591         (__argp_base_name): Removed
63592         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63593         typo.
63594         (__argp_base_name): Provide macro definition or extern declaration
63595         depending on the configuration
63596
63597 2006-01-20  Simon Josefsson  <jas@extundo.com>
63598
63599         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63600
63601 2006-01-20  Simon Josefsson  <jas@extundo.com>
63602
63603         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63604
63605 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63608         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63609         Suggested by Bruno Haible.
63610
63611 2006-01-20  Karl Berry  <karl@gnu.org>
63612
63613         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63614         until changes propagate, I guess.
63615
63616 2006-01-19  Simon Josefsson  <jas@extundo.com>
63617
63618         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63619
63620 2006-01-19  Simon Josefsson  <jas@extundo.com>
63621
63622         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63623
63624 2006-01-19  Simon Josefsson  <jas@extundo.com>
63625
63626         * gnulib-tool: Set check_PROGRAMS.
63627
63628         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63629         modules/des-tests, modules/gc-arcfour-tests,
63630         modules/gc-arctwo-tests, modules/gc-des-tests,
63631         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63632         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63633         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63634         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63635         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63636         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63637         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63638         test_*_SOURCES.
63639
63640 2006-01-18  Simon Josefsson  <jas@extundo.com>
63641
63642         * modules/socklen (Depends-on): Depend on sys_socket.
63643
63644 2006-01-18  Simon Josefsson  <jas@extundo.com>
63645
63646         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63647         modules/des-tests, modules/gc-arcfour-tests,
63648         modules/gc-arctwo-tests, modules/gc-des-tests,
63649         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63650         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63651         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63652         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63653         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63654         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63655         $(EXEEXT) to automake TESTS variable, for mingw32.
63656
63657 2006-01-17  Simon Josefsson  <jas@extundo.com>
63658
63659         * modules/socklen (Include): Need sys/socket.h.
63660
63661 2006-01-17  Bruno Haible  <bruno@clisp.org>
63662
63663         * modules/ssize_t (Include): Add <sys/types.h>.
63664
63665 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63668         it's not portable and it doesn't work with cross-compiles.
63669         Problem reported by Bruno Haible.  Fix missing-$ typo in
63670         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63671         -zignore from being used with Sun's C compiler.
63672
63673 2006-01-12  Simon Josefsson  <jas@extundo.com>
63674
63675         * lib/base64.c: Fix warning, reported by Bruno Haible
63676         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63677
63678 2006-01-12  Bruno Haible  <bruno@clisp.org>
63679
63680         * modules/ldd: New file.
63681         * build-aux/ldd.sh.in: New file.
63682         * MODULES.html.sh (Support for building libraries and executables): Add
63683         ldd.
63684
63685 2006-01-12  Bruno Haible  <bruno@clisp.org>
63686
63687         * m4/ldd.m4: New file.
63688
63689 2006-01-12  Bruno Haible  <bruno@clisp.org>
63690
63691         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63692         endless loop while replacing $auxdir with build-aux.
63693
63694 2006-01-11  Simon Josefsson  <jas@extundo.com>
63695
63696         * lib/stdint_.h (SIZE_MAX): Add missing (.
63697
63698 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63699
63700         Sync from coreutils.
63701         * lib/md5.c: Fix commentary typos.
63702         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63703         * lib/md5.h (__attribute__): Remove; unused.
63704         * lib/sha1.c: Fix commentary to match md5 better.
63705         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63706         so that we don't need to worry about alignment.  All uses changed.
63707         This merges the 2005-10-28 md5 change into sha1.
63708
63709 2006-01-11  Jim Meyering  <jim@meyering.net>
63710
63711         Sync from coreutils.
63712         * lib/md5.c (OP): Fix spacing.
63713
63714 2006-01-11  Bruno Haible  <bruno@clisp.org>
63715
63716         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63717         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63718         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63719
63720 2006-01-11  Bruno Haible  <bruno@clisp.org>
63721
63722         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63723         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63724         the "early" section as well.
63725
63726 2006-01-11  Bruno Haible  <bruno@clisp.org>
63727
63728         Avoid "ar: no archive members specified" error on MacOS X.
63729         * gnulib-tool (func_modules_add_dummy): New function.
63730         (func_import, func_create_testdir): Invoke it.
63731
63732 2006-01-11  Bruno Haible  <bruno@clisp.org>
63733
63734         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63735         with $auxdir in AC_CONFIG_FILES statements.
63736
63737 2006-01-11  Bruno Haible  <bruno@clisp.org>
63738
63739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63740         Initialize also noinst_HEADERS to empty.
63741
63742 2006-01-11  Bruno Haible  <bruno@clisp.org>
63743
63744         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63745         variables.
63746         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63747         autoreconf.
63748
63749 2006-01-11  Bruno Haible  <bruno@clisp.org>
63750
63751         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63752         overridable by the user.
63753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63754
63755 2006-01-10  Simon Josefsson  <jas@extundo.com>
63756
63757         * modules/sys_socket: New file.
63758
63759 2006-01-10  Simon Josefsson  <jas@extundo.com>
63760
63761         * m4/sys_socket_h.m4: New file.
63762
63763 2006-01-10  Simon Josefsson  <jas@extundo.com>
63764
63765         * lib/socket_.h: New file.
63766
63767 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63768
63769         * modules/readutmp (Maintainer): Add myself.
63770
63771 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63774         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63775         People who are still concerned with buggy memcmp implementations
63776         can invoke gl_FUNC_MEMCMP themselves.
63777
63778 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63779
63780         * lib/regex_internal.h (BITSET_WORD_BITS):
63781         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63782         preprocessor mishandles large unsigned values as if they were signed.
63783         Problem reported by Claudio Fontana in
63784         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63785
63786 2006-01-10  Jim Meyering  <jim@meyering.net>
63787
63788         Avoid the double-free (first in fts_read, second in fts_close) that
63789         would occur when an `active' directory is made inaccessible (e.g.,
63790         via chmod a-x) during a traversal.
63791         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63792         before returning.  Reproduce this failure by
63793         mkdir -p a/b; cd a; chmod a-x . b
63794         Reported by Stavros Passas.
63795
63796         Sync from coreutils.
63797         * lib/sha1.c: Tweak grammar in a comment.
63798
63799 2006-01-10  Jim Meyering  <jim@meyering.net>
63800
63801         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63802         Patch by Joerg Sonnenberger.
63803
63804 2006-01-10  Bruno Haible  <bruno@clisp.org>
63805
63806         * modules/readutmp: Depend on module free.
63807         * modules/strtok_r: Depend on module restrict.
63808
63809 2006-01-10  Bruno Haible  <bruno@clisp.org>
63810
63811         * modules/gettext (configure.ac): Add an invocation of
63812         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63813
63814 2006-01-10  Bruno Haible  <bruno@clisp.org>
63815
63816         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63817         Reported by Werner Lemberg <wl@gnu.org>.
63818
63819 2006-01-10  Bruno Haible  <bruno@clisp.org>
63820
63821         * lib/localcharset.c: Update from GNU gettext.
63822
63823 2006-01-10  Bruno Haible  <bruno@clisp.org>
63824
63825         * lib/argp.h (__const): Remove macro. Use const instead.
63826         * lib/argp-fmtstream.h (__const): Likewise.
63827         * lib/glob_.h (__const): Remove macro.
63828         * lib/glob-libc.h: Use const instead of __const.
63829
63830 2006-01-10  Bruno Haible  <bruno@clisp.org>
63831
63832         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63833         variable.
63834         Needed to avoid an automake error regarding the 'gettext' module.
63835
63836 2006-01-09  Simon Josefsson  <jas@extundo.com>
63837
63838         * modules/inet_ntop (Depends-on): Add restrict.
63839
63840 2006-01-09  Simon Josefsson  <jas@extundo.com>
63841
63842         * modules/gc-rijndael-tests (License): Put under LGPL.
63843
63844         * modules/gc-des-tests (License): Likewise.
63845
63846         * modules/gc-arcfour-tests (License): Likewise.
63847
63848         * modules/gc-arctwo-tests (License): Likewise.
63849
63850         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63851
63852         * modules/gc-hmac-sha1-tests (Files): Likewise.
63853
63854         * modules/gc-hmac-md5-tests (License): Likewise.
63855
63856         * modules/gc-sha1-tests (License): Likewise.
63857
63858         * modules/gc-md5-tests (License): Likewise.
63859
63860         * modules/gc-md4-tests (License): Likewise.
63861
63862         * modules/gc-md2-tests (License): Likewise.
63863
63864         * modules/gc-tests (License): Likewise.
63865
63866         * modules/des-tests (License): Likewise.
63867
63868         * modules/md4-tests (License): Likewise.
63869
63870         * modules/md2-tests (License): Likewise.
63871
63872 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63873
63874         Sync from coreutils:
63875
63876         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63877         * modules/lib-ignore: New file.
63878         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63879         chdir-safer.m4, lchmod.m4.
63880         * modules/openat: Add mkdirat.c, openat-priv.h.
63881
63882 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63883
63884         Sync from coreutils.
63885         * m4/lib-ignore.m4: New file.
63886         * m4/lchmod.m4: New file.
63887
63888 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63889
63890         Sync from coreutils.
63891         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63892         for write access: POSIX says that must fail.
63893         * lib/fts.c (diropen): Likewise.
63894         * lib/save-cwd.c (save_cwd): Likewise.
63895         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63896         well, for minor improvements on hosts that lack O_DIRECTORY.
63897         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63898         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63899         Fall back on chown if open failed with EACCES.
63900
63901         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63902         Report an error at compile-time if only a 1-second nominal clock
63903         resolution is found.
63904
63905         * lib/lchmod.h: New file.
63906         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63907         (make_dir_parents): Use lchown rather than chown, and
63908         lchmod rather than chmod.
63909
63910         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63911         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63912         "proc" reported by n0dalus.
63913
63914         * lib/mountlist.c: Include <limits.h>.
63915         (dev_from_mount_options)
63916         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63917         New function.  It no longer assumes "dev=" has the System V meaning
63918         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63919         (read_file_system_list)
63920         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63921         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63922         dev= in that case.
63923
63924         * lib/posixtm.h (PDS_PRE_2000): New macro.
63925         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63926         allow_century.  All usages changed.  Reject dates outside the range
63927         1969-1999 if PDS_PRE_2000 is used.
63928
63929 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63930
63931         Sync from coreutils.
63932         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63933         (Time of day items): Mention the possibility of leap seconds.
63934         Problem reported by Dr. David Alan Gilbert.
63935
63936 2006-01-09  Jim Meyering  <jim@meyering.net>
63937
63938         Sync from coreutils.
63939
63940         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63941
63942         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63943
63944         * lib/modechange.c (mode_compile): Reject an invalid mode string
63945         that starts with an octal digit.  From Andreas Gruenbacher.
63946
63947         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63948         and dup to open_safer and dup_safer, respectively.
63949         (openat_permissive): Fix typo in comment.
63950
63951         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63952         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63953         (_): Remove; no longer needed.
63954         (openat): Renamed from rpl_openat; no need for rpl_openat
63955         since openat.h renames openat for us.
63956         Replace most of the body with a call to openat_permissive,
63957         to avoid duplicate code.
63958         Port to (probably hypothetical) environments were mode_t is
63959         wider than int.
63960         (openat_permissive): Require mode arg, so that we can check
63961         types better.  Put it just after flags.  Change cwd failure
63962         indicator from pointer-to-bool to pointer-to-errno-value.
63963         All callers changed.
63964         Invoke openat_save_fail and/or openat_restore_fail if
63965         cwd_errno is null, so that openat can call us.
63966         (openat_permissive, fdopendir, fstatat, unlinkat):
63967         Simplify errno handling to avoid some duplicate code,
63968         as it's OK to set errno on success.
63969         * lib/openat.h: Revamp code so that function macros depend on
63970         __OPENAT_PREFIX only, not also on AT_FDCWD.
63971         (openat_ro): Remove.  Caller changed to use openat_permissive.
63972         (openat_permissive): Now a macro, if not a function.
63973         (openat_restore_fail, openat_save_fail): Now always functions,
63974         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63975
63976         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63977         and openat.c.
63978         * lib/mkdirat.c: Include openat-priv.h.
63979         Remove definitions of macros defined therein.
63980         * lib/openat.c: Likewise.
63981
63982         * lib/mkdirat.c (mkdirat): New file and function.
63983         * lib/openat.h (mkdirat): Declare.
63984
63985         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63986
63987         * lib/openat.h (openat_permissive): Declare.
63988         (openat_ro): Define.
63989
63990         * lib/openat.c (EXPECTED_ERRNO): New macro.
63991         (openat_permissive): New function -- used in remove.c rewrite.
63992         (all functions): Set errno just before returning, only if there
63993         was an actual failure.
63994         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63995
63996         Emulate openat-family functions using Linux's procfs, if possible.
63997         Idea and some code based on Ulrich Drepper's glibc changes.
63998
63999         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64000         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64001         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64002         before falling back on save_cwd and restore_cwd.
64003         (fdopendir, fstatat, unlinkat): Likewise.
64004
64005         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64006         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64007
64008         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64009         as second argument to va_arg.  Otherwise, some versions of gcc
64010         warn that `if this code is reached, the program will abort'.
64011
64012 2006-01-09  Jim Meyering  <jim@meyering.net>
64013
64014         Sync from coreutils.
64015         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64016         Require openat-priv.h.
64017
64018 2006-01-09  Bruno Haible  <bruno@clisp.org>
64019
64020         * modules/strnlen (Include): Use strnlen.h.
64021
64022 2006-01-09  Bruno Haible  <bruno@clisp.org>
64023
64024         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64025
64026 2006-01-09  Bruno Haible  <bruno@clisp.org>
64027
64028         * lib/sysexit_.h (EX_OK): New macro.
64029         Suggested by Martin Lambers <marlam@marlam.de>.
64030
64031 2006-01-09  Bruno Haible  <bruno@clisp.org>
64032
64033         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64034         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64035
64036 2006-01-09  Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64039         numbers.
64040
64041 2006-01-09  Bruno Haible  <bruno@clisp.org>
64042
64043         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64044         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64045         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64046         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64047
64048 2006-01-09  Bruno Haible  <bruno@clisp.org>
64049
64050         * build-aux/javacomp.sh.in: New file, moved from lib/.
64051         * modules/javacomp-script (Files): Update.
64052         (configure.ac): Add AC_CONFIG_FILES invocation.
64053         (EXTRA_DIST): Remove variable.
64054
64055         * build-aux/javaexec.sh.in: New file, moved from lib/.
64056         * modules/javaexec (Files): Update.
64057         (configure.ac): Add AC_CONFIG_FILES invocation.
64058         (EXTRA_DIST): Remove javaexec.sh.in.
64059
64060         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64061         * modules/csharpcomp-script (Files): Update.
64062         (configure.ac): Add AC_CONFIG_FILES invocation.
64063         (EXTRA_DIST): Remove variable.
64064
64065         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64066         * modules/csharpexec (Files): Update.
64067         (configure.ac): Add AC_CONFIG_FILES invocation.
64068         (EXTRA_DIST): Remove csharpexec.sh.in.
64069
64070 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64071
64072         Sync from coreutils.
64073
64074         Add POSIX ACL support
64075         * lib/acl.h (copy_acl, set_acl): Add declarations.
64076         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64077         systems other than Linux.
64078         (chmod_or_fchmod): New function: use fchmod when possible,
64079         and chmod otherwise.
64080         (file_has_acl): Add a POSIX ACL implementation, with a
64081         Linux-specific subcase.
64082         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64083         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64084         acls are unsupported.
64085         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64086         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64087         are unsupported.
64088
64089 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64090
64091         Sync from coreutils.
64092         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64093
64094 2006-01-07  Bruno Haible  <bruno@clisp.org>
64095
64096         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64097         gl_EARLY.
64098
64099 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64100
64101         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64102         Problem reported for Mingw by Mark Junker.
64103
64104 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64105
64106         * README: Gnulib normally doesn't generate a tarball.
64107
64108 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64111         long int, not int, for nanosecond counts, so that people who are
64112         used to POSIX struct timespec won't be surprised.  Reported by Jim
64113         Meyering.
64114
64115 2005-12-28  Bruno Haible  <bruno@clisp.org>
64116
64117         * build-aux/config.rpath: Update from GNU gettext.
64118
64119 2005-12-16  Jim Meyering  <jim@meyering.net>
64120
64121         * modules/fprintftime: New module.
64122         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64123
64124 2005-12-16  Jim Meyering  <jim@meyering.net>
64125
64126         * m4/fprintftime.m4: New file.
64127
64128 2005-12-16  Jim Meyering  <jim@meyering.net>
64129
64130         * lib/fprintftime.c, lib/fprintftime.h: New files.
64131
64132 2005-12-15  Simon Josefsson  <jas@extundo.com>
64133
64134         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64135         new m4/socklen.m4.
64136
64137 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64138
64139         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64140         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64141
64142 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64143
64144         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64145         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64146         struct uparams is valid. Fall back to the default values if it is
64147         not.
64148
64149 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64150
64151         * modules/argp (Files): Add argp-pin.c
64152         (Depends-on): dirname
64153         (lib_SOURCES): Add argp-pin.c
64154
64155 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64156
64157         * m4/argp.m4:  Check if program_invocation_name and
64158         program_invocation_short_name are declared and define appropriate
64159         macros if they are not.
64160
64161 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64162
64163         * lib/argp-help.c (__argp_base_name): New function
64164         (__argp_short_program_name): Rewrite using __argp_base_name
64165         * lib/argp-namefrob.h: Define program_invocation_name and
64166         program_invocation_short_name if requested
64167         (__argp_base_name): Add prototype
64168         * lib/argp-parse.c (argp_def): Use gettext wrappers
64169         (argp_default_parser): Use __argp_base_name
64170         * lib/argp-pin.c: New file. Defines program_invocation_name and
64171         program_invocation_short_name on systems that lack them.
64172
64173 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64174
64175         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64176         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64177         porting problem reported by Georg Schwarz in
64178         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64179
64180 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64181
64182         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64183         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64184         porting problem reported by Georg Schwarz in
64185         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64186
64187 2005-12-05  Bruno Haible  <bruno@clisp.org>
64188
64189         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64190         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64191         Reported by Mark Junker <mjscod@gmx.de>.
64192
64193 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64194
64195         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64196         Use implementation from Albert Chin, with some
64197         comments/corrections by Stepan Kasal and myself.
64198
64199 2005-12-02  Bruno Haible  <bruno@clisp.org>
64200
64201         * gnulib-tool (func_import): Accept GPLed build tool modules when
64202         --lgpl is given.
64203         * modules/csharpcomp-script: New file.
64204         * modules/csharpcomp: Depend on it.
64205         * modules/javacomp-script: New file.
64206         * modules/javacomp: Depend on it.
64207         Suggested by Simon Josefsson.
64208
64209 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64212         statement, to work around an HP-UX 10.20 compiler bug reported by
64213         Peter O'Gorman.
64214
64215 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         * modules/savedir (Depends-on): Add openat.
64218
64219 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64220
64221         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64222         (uintmax_t) [defined uintmax_t]: Do not declare.
64223         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64224         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64225         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64226         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64227         sake of portability to weird hosts that C allows (though we don't
64228         know of any practical examples).
64229
64230         * lib/savedir.h (fdsavedir): New decl.
64231         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64232         contains most of the former guts of savedir.
64233         (savedir): Use savedirstream.
64234         Include "openat.h".
64235
64236 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64237
64238         * modules/obstack (Files): Add m4/ulonglong.m4.
64239         Problem reported by Davide Angelocola.
64240
64241 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64244         coreutils no longer futzes with rounding modes.
64245
64246 2005-11-14  Jim Meyering  <jim@meyering.net>
64247
64248         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64249         replacement of mkstemp.
64250
64251 2005-11-10  Simon Josefsson  <jas@extundo.com>
64252
64253         * lib/readline.c: Remove EOL.
64254
64255 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64256
64257         * modules/gethrxtime (Depends-on): Add gettime.
64258
64259 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64260
64261         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64262         or gettimeofday; no longer needed.
64263
64264 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64265
64266         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64267         time business.
64268         (gethrxtime) [! (HAVE_NANOUPTIME
64269         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64270         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64271         our own approximation.
64272
64273 2005-11-08  Eric Blake  <ebb9@byu.net>
64274
64275         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64276
64277 2005-11-08  Eric Blake  <ebb9@byu.net>
64278
64279         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64280
64281 2005-11-04  Bruno Haible  <bruno@clisp.org>
64282
64283         * gnulib-tool: Implement --update mode.
64284
64285 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64286
64287         Fix porting problem reported by Theodoros V. Kalamatianos.
64288         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64289         Don't assume that futimes failing means we must fail.
64290
64291 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64292
64293         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64294         variables to suggest the intended function of the PATH_MAX check.
64295
64296 2005-10-30  Kean Johnston  <jkj@sco.com>
64297
64298         Trivial changes to support SCO systems.
64299         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64300         as PATH_MAX.
64301         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64302         where __ptr is null when no I/O is pending.
64303
64304 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64307         leave errno alone.  Problem reported by Dmitry V. Levin.
64308
64309 2005-10-28  Simon Josefsson  <jas@extundo.com>
64310
64311         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64312         Test more.
64313
64314         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64315
64316         * modules/md2, modules/md2-tests: New files.
64317
64318 2005-10-28  Simon Josefsson  <jas@extundo.com>
64319
64320         * m4/inet_ntop.m4: More tests.
64321
64322         * m4/gc-md2.m4, md2.m4: New file.
64323
64324 2005-10-28  Simon Josefsson  <jas@extundo.com>
64325
64326         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64327         "restrict" keywords, as per POSIX.  Protect the function
64328         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64329         Don't use K&R prototypes.  Check the sprintf return values.
64330         Re-define EAFNOSUPPORT if not present.  Indent.
64331
64332         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64333         suggested by Bruno Haible <bruno@clisp.org>.
64334
64335         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64336
64337         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64338
64339         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64340         libgcrypt).
64341
64342         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64343
64344         * lib/md2.h, lib/md2.c: New files.
64345
64346 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64347
64348         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64349         errno alone.  Problem reported by Frederic Jolliton.
64350
64351 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         * modules/verify (License): Change from GPL to LGPL.  This is a
64354         tiny module and there are apparently near-equivalents that are
64355         under the BSD license.
64356
64357 2005-10-24  Simon Josefsson  <jas@extundo.com>
64358
64359         * modules/sha1: Relicense to LGPL.
64360
64361 2005-10-24  Simon Josefsson  <jas@extundo.com>
64362
64363         * lib/md4.h: Shrink buffer size, now that we changed the type.
64364
64365 2005-10-23  Simon Josefsson  <jas@extundo.com>
64366
64367         * gnulib-tool (func_import): Fix --tests-base.
64368
64369 2005-10-22  Simon Josefsson  <jas@extundo.com>
64370
64371         * modules/arcfour (Depends-on): Need stdint.
64372
64373 2005-10-22  Simon Josefsson  <jas@extundo.com>
64374
64375         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64376         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64377
64378 2005-10-22  Simon Josefsson  <jas@extundo.com>
64379
64380         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64381         suggested by Bruno Haible <bruno@clisp.org>.
64382
64383 2005-10-22  Simon Josefsson  <jas@extundo.com>
64384
64385         * lib/crc.h: Include stddef.h, for size_t.
64386
64387 2005-10-22  Simon Josefsson  <jas@extundo.com>
64388
64389         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64390         arcfour_context struct (simplify test vector testing in GNU
64391         Shishi).
64392
64393 2005-10-21  Simon Josefsson  <jas@extundo.com>
64394
64395         * modules/des, modules/des-tests: New files.
64396
64397         * modules/gc-des, modules/gc-des-tests: New files.
64398
64399         * tests/test-des.c, tests/test-gc-des.c: New file.
64400
64401 2005-10-21  Simon Josefsson  <jas@extundo.com>
64402
64403         * modules/arctwo, modules/arctwo-tests: New files.
64404
64405         * tests/test-arctwo.c: New file.
64406
64407         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64408
64409         * tests/test-gc-arctwo.c: New file.
64410
64411 2005-10-21  Simon Josefsson  <jas@extundo.com>
64412
64413         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64414         Bruno Haible <bruno@clisp.org>.
64415
64416         * m4/gc-des.m4: New file.
64417
64418 2005-10-21  Simon Josefsson  <jas@extundo.com>
64419
64420         * m4/arctwo.m4: New file.
64421
64422         * m4/gc-arctwo.m4: New file.
64423
64424 2005-10-21  Simon Josefsson  <jas@extundo.com>
64425
64426         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64427         block.
64428
64429 2005-10-21  Simon Josefsson  <jas@extundo.com>
64430
64431         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64432         <bruno@clisp.org>.
64433
64434         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64435
64436         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64437         Bruno Haible <bruno@clisp.org>.
64438
64439         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64440         <bruno@clisp.org>.
64441
64442 2005-10-21  Simon Josefsson  <jas@extundo.com>
64443
64444         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64445
64446 2005-10-21  Simon Josefsson  <jas@extundo.com>
64447
64448         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64449
64450 2005-10-21  Simon Josefsson  <jas@extundo.com>
64451
64452         * lib/des.h, lib/des.c: New files.
64453
64454         * lib/gc-gnulib.c: Support DES.c
64455
64456 2005-10-21  Simon Josefsson  <jas@extundo.com>
64457
64458         * lib/arctwo.h, lib/arctwo.c: New files.
64459
64460         * lib/gc-gnulib.c: Support ARCTWO.
64461
64462 2005-10-21  Simon Josefsson  <jas@extundo.com>
64463
64464         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64465         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64466
64467 2005-10-21  Simon Josefsson  <jas@extundo.com>
64468
64469         * gnulib-tool (func_import, func_create_testdir): Define automake
64470         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64471         Makefile.am snippet),
64472         suggested by Bruno Haible <bruno@clisp.org>.
64473
64474         * modules/gc (Makefile.am): Use it.
64475
64476 2005-10-21  Bruno Haible  <bruno@clisp.org>
64477
64478         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64479         patch.
64480
64481 2005-10-19  Simon Josefsson  <jas@extundo.com>
64482
64483         * tests/test-gc-rijndael.c: New file.
64484
64485         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64486
64487 2005-10-19  Simon Josefsson  <jas@extundo.com>
64488
64489         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64490         interface too.
64491
64492 2005-10-19  Simon Josefsson  <jas@extundo.com>
64493
64494         * tests/test-gc-arcfour.c: New file.
64495
64496         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64497
64498 2005-10-19  Simon Josefsson  <jas@extundo.com>
64499
64500         * modules/gc-md4, modules/gc-md4-tests: New file.
64501
64502         * tests/test-gc-md4.c: New file.
64503
64504 2005-10-19  Simon Josefsson  <jas@extundo.com>
64505
64506         * m4/gc-md4.m4: New file.
64507
64508 2005-10-19  Simon Josefsson  <jas@extundo.com>
64509
64510         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64511         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64512         <kasal@ucw.cz>.
64513
64514 2005-10-19  Simon Josefsson  <jas@extundo.com>
64515
64516         * m4/gc-arcfour.m4: New file.
64517
64518         * m4/gc-rijndael.m4: New file.
64519
64520 2005-10-19  Simon Josefsson  <jas@extundo.com>
64521
64522         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64523
64524 2005-10-19  Simon Josefsson  <jas@extundo.com>
64525
64526         * lib/gc-gnulib.c: Support ARCFOUR.
64527
64528 2005-10-19  Simon Josefsson  <jas@extundo.com>
64529
64530         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64531         support.
64532
64533         * lib/gc.h: Add ECB enum type.
64534
64535         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64536
64537 2005-10-18  Simon Josefsson  <jas@extundo.com>
64538
64539         * tests/test-md5.c: New file.
64540
64541         * modules/md5-tests: New file.
64542
64543 2005-10-18  Simon Josefsson  <jas@extundo.com>
64544
64545         * tests/test-md4.c: New file.
64546
64547         * modules/md4, modules/md4-tests: New files.
64548
64549 2005-10-18  Simon Josefsson  <jas@extundo.com>
64550
64551         * m4/md4.m4: New file.
64552
64553 2005-10-18  Simon Josefsson  <jas@extundo.com>
64554
64555         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64556
64557 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64558
64559         * gnulib-tool (func_create_testdir): Omit the second check whether
64560         BUILT_SOURCES in nonempty.
64561
64562 2005-10-17  Simon Josefsson  <jas@extundo.com>
64563
64564         * tests/test-rijndael.c: New file.
64565
64566 2005-10-17  Simon Josefsson  <jas@extundo.com>
64567
64568         * modules/sha1: Depend on stdint instead of md5.
64569
64570         * modules/md5: Depend on stdint, remove uint32_t.
64571
64572 2005-10-17  Simon Josefsson  <jas@extundo.com>
64573
64574         * modules/gc-sha1-tests: New file.
64575
64576         * tests/test-gc-sha1.c: New file.
64577
64578 2005-10-17  Simon Josefsson  <jas@extundo.com>
64579
64580         * m4/md5.m4: Remove call to uint32_t.m4.
64581
64582 2005-10-17  Simon Josefsson  <jas@extundo.com>
64583
64584         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64585
64586         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64587         md5.h.
64588
64589         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64590
64591         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64592
64593 2005-10-17  Simon Josefsson  <jas@extundo.com>
64594
64595         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64596
64597 2005-10-17  Simon Josefsson  <jas@extundo.com>
64598
64599         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64600
64601 2005-10-17  Simon Josefsson  <jas@extundo.com>
64602
64603         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64604
64605         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64606
64607 2005-10-17  Bruno Haible  <bruno@clisp.org>
64608
64609         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64610         that it can also be used in a test.
64611
64612 2005-10-16  Bruno Haible  <bruno@clisp.org>
64613
64614         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64615         TESTS_ENVIRONMENT, so that individual tests can augment it.
64616
64617         * gnulib-tool (func_create_testdir): Use an intermediate target for
64618         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64619         macros, like $(ALLOCA_H), which cannot be passed through the command
64620         line.
64621
64622 2005-10-15  Simon Josefsson  <jas@extundo.com>
64623
64624         * modules/rijndael-tests: New file.
64625
64626         * modules/rijndael: New file.
64627
64628 2005-10-15  Simon Josefsson  <jas@extundo.com>
64629
64630         * m4/rijndael.m4: New file.
64631
64632 2005-10-15  Simon Josefsson  <jas@extundo.com>
64633
64634         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64635
64636         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64637
64638 2005-10-14  Simon Josefsson  <jas@extundo.com>
64639
64640         * tests/test-arcfour.c: New file.
64641
64642         * modules/arcfour, modules/arcfour-tests: New files.
64643
64644 2005-10-14  Simon Josefsson  <jas@extundo.com>
64645
64646         * m4/arcfour.m4: New file.
64647
64648 2005-10-14  Simon Josefsson  <jas@extundo.com>
64649
64650         * lib/arcfour.h, lib/arcfour.c: New files.
64651
64652 2005-10-14  Roland McGrath  <roland@redhat.com>
64653
64654         Import from libc.  [BZ #1331]
64655         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64656         macro argument.
64657         Reported by Matej Vela <vela@debian.org>.
64658
64659 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64660
64661         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64662         include <wchar.h>; no longer needed.
64663
64664 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64665
64666         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64667
64668 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64669         and  Ulrich Drepper  <drepper@redhat.com>
64670
64671         Import from libc.
64672         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64673         instead of inline stream orientation test and two separate
64674         function calls.  Pay no attention to USE_IN_LIBIO.
64675
64676 2005-10-13  Simon Josefsson  <jas@extundo.com>
64677
64678         * modules/gc-hmac-md5-tests: New file.
64679
64680         * tests/test-gc-hmac-sha1.c: New file.
64681
64682         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64683
64684         * modules/gc-hmac-md5-tests: New file.
64685
64686         * tests/test-gc-md5.c: New file.
64687
64688         * modules/gc-md5-tests: New file.
64689
64690 2005-10-13  Simon Josefsson  <jas@extundo.com>
64691
64692         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64693         Move memory allocation outside of loop.
64694
64695 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64696
64697         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64698         intermediate directory is in a read-only file system.  Problem
64699         reported by Eric Blake.
64700
64701 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64702
64703         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64704
64705 2005-10-12  Simon Josefsson  <jas@extundo.com>
64706
64707         * tests/test-hmac-sha1.c: New file.
64708
64709         * modules/hmac-sha1-tests: New file.
64710
64711         * modules/hmac-sha1: New file.
64712
64713 2005-10-12  Simon Josefsson  <jas@extundo.com>
64714
64715         * modules/gc-sha1: New file.
64716
64717 2005-10-12  Simon Josefsson  <jas@extundo.com>
64718
64719         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64720
64721         * tests/test-gc-pbkdf2-sha1.c: New file.
64722
64723 2005-10-12  Simon Josefsson  <jas@extundo.com>
64724
64725         * modules/gc-md5, modules/gc-hmac-md5: New files.
64726
64727         * modules/gc (Files): Remove md5, memxor and hmac files.
64728
64729 2005-10-12  Simon Josefsson  <jas@extundo.com>
64730
64731         * m4/gc-pbkdf2-sha1.m4: New file.
64732
64733         * m4/gc-hmac-sha1.m4: New file.
64734
64735         * m4/gc-sha1: New file.
64736
64737         * m4/hmac-sha1.m4: New file.
64738
64739 2005-10-12  Simon Josefsson  <jas@extundo.com>
64740
64741         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64742
64743         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64744
64745 2005-10-12  Simon Josefsson  <jas@extundo.com>
64746
64747         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64748         suggested by Bruno Haible <bruno@clisp.org>.
64749
64750 2005-10-12  Simon Josefsson  <jas@extundo.com>
64751
64752         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64753
64754 2005-10-12  Simon Josefsson  <jas@extundo.com>
64755
64756         * lib/gc-pbkdf2-sha1.c: New file.
64757
64758         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64759
64760 2005-10-12  Simon Josefsson  <jas@extundo.com>
64761
64762         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64763
64764         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64765
64766 2005-10-12  Simon Josefsson  <jas@extundo.com>
64767
64768         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64769         GC_USE_HMAC_MD5, respectively.
64770
64771         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64772         (gc_md5): Fix typo.
64773
64774         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64775
64776         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64777
64778         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64779
64780 2005-10-12  Bruno Haible  <bruno@clisp.org>
64781
64782         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64783         Reported by Stepan Kasal <kasal@ucw.cz>.
64784
64785 2005-10-11  Simon Josefsson  <jas@extundo.com>
64786
64787         * tests/test-crc.c: New file.
64788
64789         * modules/crc, modules/crc-tests: New files.
64790
64791 2005-10-11  Simon Josefsson  <jas@extundo.com>
64792
64793         * m4/crc.m4: New file.
64794
64795 2005-10-11  Simon Josefsson  <jas@extundo.com>
64796
64797         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64798
64799         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64800
64801         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64802
64803 2005-10-11  Simon Josefsson  <jas@extundo.com>
64804
64805         * lib/crc.h, lib/crc.c: New files.
64806
64807         * lib/gc.h (gc_hash_buffer): Add doc.
64808
64809 2005-10-11  Bruno Haible  <bruno@clisp.org>
64810
64811         * modules/c-strcasestr: New file.
64812         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64813
64814 2005-10-11  Bruno Haible  <bruno@clisp.org>
64815
64816         * modules/c-strcase: New file.
64817         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64818
64819 2005-10-11  Bruno Haible  <bruno@clisp.org>
64820
64821         * lib/strcasecmp.c: Include limits.h.
64822         (strcasecmp): Avoid integer overflow on exotic platforms.
64823         * lib/strncasecmp.c: Include limits.h.
64824         (strncasecmp): Avoid integer overflow on exotic platforms.
64825         Reported by Paul Eggert.
64826
64827 2005-10-11  Bruno Haible  <bruno@clisp.org>
64828
64829         * lib/c-strcasestr.h: New file, from GNU gettext.
64830         * lib/c-strcasestr.c: New file, from GNU gettext.
64831
64832 2005-10-11  Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/c-strcase.h: New file, from GNU gettext.
64835         * lib/c-strcasecmp.c: New file, from GNU gettext.
64836         * lib/c-strncasecmp.c: New file, from GNU gettext.
64837
64838 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64839
64840         * modules/mempcpy (License): GPL -> LGPL.
64841         * modules/strchrnul (License): Likewise.
64842         * modules/sysexits (License): Likewise.
64843
64844 2005-10-08  Simon Josefsson  <jas@extundo.com>
64845
64846         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64847
64848 2005-10-07  Simon Josefsson  <jas@extundo.com>
64849
64850         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64851
64852 2005-10-06  Simon Josefsson  <jas@extundo.com>
64853
64854         * tests/test-hmac-md5.c: New file.
64855
64856         * modules/hmac-md5-tests: New file.
64857
64858         * modules/hmac-md5: New file.
64859
64860 2005-10-06  Simon Josefsson  <jas@extundo.com>
64861
64862         * m4/hmac-md5.m4: New file.
64863
64864         * m4/memxor.m4: Require gl_C_RESTRICT.
64865
64866 2005-10-06  Simon Josefsson  <jas@extundo.com>
64867
64868         * lib/memxor.c (memxor): Avoid casts and warnings.
64869
64870 2005-10-06  Simon Josefsson  <jas@extundo.com>
64871
64872         * lib/hmac-md5.c: New file.
64873
64874         * lib/hmac.h: New file.
64875
64876 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64879         promotes to int, not unsigned int, to catch the AIX 5.3
64880         compiler bug.
64881
64882 2005-10-05  Simon Josefsson  <jas@extundo.com>
64883
64884         * modules/memxor: New file.
64885
64886         * modules/iconv (Files): Move config.rpath to havelib, it is used
64887         there.
64888
64889         * modules/havelib (Files): Add config.rpath.
64890
64891 2005-10-05  Simon Josefsson  <jas@extundo.com>
64892
64893         * m4/memxor.m4: New file.
64894
64895 2005-10-05  Simon Josefsson  <jas@extundo.com>
64896
64897         * lib/memxor.c (memxor): Fix compiler error.
64898
64899         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64900         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64901
64902         * lib/memxor.h, lib/memxor.c: New files.
64903
64904         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64905         we assume all systems have it, suggested by Jim Meyering
64906         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64907         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64908         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64909         same reasons.
64910
64911 2005-10-05  Simon Josefsson  <jas@extundo.com>
64912
64913         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64914
64915 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64916
64917         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64918         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64919         needed, since the source code now assumes these .h files.
64920
64921 2005-10-05  Derek Price  <derek@ximbiot.com>
64922
64923         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64924
64925 2005-10-05  Bruno Haible  <bruno@clisp.org>
64926
64927         * modules/stdint (License): Change to LGPL.
64928
64929 2005-10-04  Simon Josefsson  <jas@extundo.com>
64930
64931         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64932         D. Baushke" <mdb@gnu.org>.
64933
64934 2005-10-04  Bruno Haible  <bruno@clisp.org>
64935
64936         * lib/verify.h (verify_true): Provide alternative definition for C++.
64937
64938 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64941         (SSIZE_MAX): New macro, if not already defined.
64942         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64943         than 2 GiB.
64944
64945 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         Sync from coreutils.
64948         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64949         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64950         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64951         ULLONG_MAX doesn't work with 2.7.2.1.
64952
64953 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64956         From Ben Pfaff.
64957
64958         * modules/exclude (Depends-on): Depend on verify.
64959         * modules/strtoimax (Depends-on): Likewise.
64960         * modules/utimecmp (Depends-on): Likewise.
64961
64962 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64963
64964         * lib/exclude.c: Include verify.h.
64965         (verify): Remove.  All callers changed to use verify.h's version.
64966         * lib/strtoimax.c: Likewise.
64967         * lib/utimecmp.c: Likewis.e
64968
64969         Sync from coreutils.
64970         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64971         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64972         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64973         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64974         bother returning ENOSYS if settimeofday or stime fails; just let
64975         them return whatever errno they want to return.
64976         * lib/utimens.c: Include unistd.h, for dup2.
64977         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64978         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64979
64980 2005-10-02  Jim Meyering  <jim@meyering.net>
64981
64982         Sync from coreutils.
64983         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64984         from glibc-2.2.5 that fails for read-only files.
64985
64986 2005-10-02  Jim Meyering  <jim@meyering.net>
64987
64988         Sync from coreutils.
64989         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64990         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64991         `#if HAVE_CONFIG_H'.
64992         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64993         Remove AT_FDCWD test.
64994         Do not consume the fd unless successful.
64995         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64996         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64997         block, so that we don't even try to compile it if settimeofday is
64998         available.  This works around a compilation failure on OSF1 V5.1,
64999         due to stime requiring a `long int*' while tv_sec is `int'.
65000
65001 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65002
65003         Sync from coreutils.
65004         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65005         against `yes', rather than just testing for nonempty.
65006
65007 2005-10-01  Simon Josefsson  <jas@extundo.com>
65008
65009         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65010         and Darwin.
65011
65012         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65013         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65014         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65015         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65016         Check if struct addrinfo is declared.
65017
65018 2005-10-01  Simon Josefsson  <jas@extundo.com>
65019
65020         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65021         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65022         AI_* and EAI_* definitions.  Protect function declarations.
65023
65024 2005-10-01  Jim Meyering  <jim@meyering.net>
65025
65026         Sync from coreutils.
65027
65028         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65029         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65030         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65032         in the inet and nsl libraries.  Required on Solaris 5.7.
65033
65034 2005-10-01  Jim Meyering  <jim@meyering.net>
65035
65036         Sync from coreutils.
65037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65038         in the inet and nsl libraries.  Required on Solaris 5.7.
65039
65040 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65041
65042         * lib/getdelim.c (getdelim): Remove unused variables.
65043
65044 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65045
65046         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65047         so that the code works even with ancient cpp.  Portability problem
65048         with GCC 2.7.2.1 reported by Thomas M.Ott.
65049
65050 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65051
65052         * modules/regex (Depends-on): Add strcase.
65053
65054         * modules/gethostname (Licence): Change from GPL to LGPL, since
65055         gethostname.c is a trivial implementation of a standard library
65056         function.
65057         * modules/poll (License): Change from GPL to LGPL, since it's
65058         derived from LGPL code.
65059
65060 2005-09-27  Jim Meyering  <jim@meyering.net>
65061
65062         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65063         HAVE_CONFIG_H.
65064
65065         * lib/intprops.h (signed_type_or_expr__): Define.
65066         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65067         for unsigned types.
65068
65069 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         * lib/verify.h (verify_expr): Remove, replacing with:
65072         (verify_true): New macro that returns true instead of void.
65073         (verify_type__): Remove.
65074         (verify): Use verify_true rather than verify_type__.
65075
65076 2005-09-26  Bruno Haible  <bruno@clisp.org>
65077
65078         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65079         is necessary.
65080         (lib_SOURCES): Remove mbchar.c.
65081         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65082         (Files): Add m4/mbrtowc.m4.
65083         * modules/mbiter: Likewise.
65084         * modules/mbuiter: Likewise.
65085
65086 2005-09-26  Bruno Haible  <bruno@clisp.org>
65087
65088         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65089         compile mbchar.c if they are not both present.
65090         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65091         * m4/mbiter.m4 (gl_MBITER): Likewise.
65092         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65093         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65094         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65095
65096 2005-09-25  Jim Meyering  <jim@meyering.net>
65097
65098         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65099         also uses socklen_t.
65100
65101 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65102
65103         * lib/utimens.c (ENOSYS): Define if not already defined.
65104         (futimens): Support having a null PATH if the file descriptor
65105         is nonnegative.
65106
65107         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65108         Remove.
65109         (__attribute): Define to empty unless GCC 3.1 or later.
65110         This works around a core dump on OpenBSD 3.4, which has GCC
65111         2.95.3, which dumps core when given __attribute__(()).  It also
65112         simplifies other tests, since we really don't want to bother with
65113         worrying about which ancient version of GCC supported what.
65114         Original problem reported by Yoann Vandoorselaere, with part of
65115         the fix suggested by Derek Price.
65116
65117 2005-09-24  Jim Meyering  <jim@meyering.net>
65118
65119         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65120         so we can once again use a positive bitfield width of 1 -- now we
65121         don't have to explain why we were using a bitfield width of 2.
65122
65123 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65126         and similarly for the other external symbols.  Problem reported
65127         by James Gallager.
65128
65129         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65130         bug reported by Jim Meyering.
65131
65132         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65134         not needed, since socklen is a prerequisite module.
65135
65136 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65137
65138         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65139         Problem reported by Eric Blake.
65140         (getaddrinfo): Initialize se so that it's not garbage.
65141         Redo internal storage allocation so that it doesn't make unportable
65142         assumptions about alignment.
65143         Fix a memory leak.
65144
65145         * lib/utimens.c (futimens): Use futimesat if available.
65146         Prefer it to futimes since it doesn't have the futimes bug.
65147
65148         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65149         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65150         Instead, declare a function that returns a pointer to an array,
65151         and use verify_type__ to declare the size of the array.
65152         Problem and germ of a solution reported by Bruno Haible.
65153         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65154         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65155
65156 2005-09-23  Jim Meyering  <jim@meyering.net>
65157
65158         Sync from coreutils.
65159         Correct build failure (socklen_t not defined) on at least
65160         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65162
65163 2005-09-23  Jim Meyering  <jim@meyering.net>
65164
65165         * modules/getaddrinfo (Depends-on): Add socklen.
65166
65167 2005-09-23  Bruno Haible  <bruno@clisp.org>
65168
65169         * tests/test-verify.c: New file.
65170
65171 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65172
65173         Sync from coreutils.
65174
65175         * modules/argmatch (Depends-on): Add verify.
65176         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65177         unistd-safer.
65178         * modules/save-cwd (Depends-on): Likewise.
65179
65180         * modules/openat (Files): Add lib/openat-die.c.
65181         (Depends-on): Remove error, exitfail.
65182         Add dirname.
65183
65184         * modules/verify: New file.
65185         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65186         with "verify" module.
65187
65188 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         Sync from coreutils.
65191
65192         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65193         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65194         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65195         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65196         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65197         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65198         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65199         Don't bother checking for string.h, stdlib.h, unistd.h.
65200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65201         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65202         module's job.
65203         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65204         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65205
65206         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65207         (gl_GETDATE): Use it.
65208
65209         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65210
65211 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65212
65213         Sync from coreutils.
65214
65215         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65216         stat-time.h.
65217         * lib/argmatch.h: Include verify.h
65218         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65219         (ARGMATCH_ASSERT): Remove; unused.
65220         * lib/canonicalize.c: Assume STDC_HEADERS.
65221         * lib/exclude.c: Include "strcase.h".
65222         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65223         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65224         and stdio-safer.h.
65225         (getusershell): Call fopen, not fopen_safer.
65226         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65227         Do not include unistd-safer.h.
65228         (save_cwd): Don't call fd_safer; no longer needed
65229         now that we include fcntl--.h.
65230
65231         * lib/getdate.y (relative_time): New type.
65232         (RELATIVE_TIME_0): New constant.
65233         (parser_control): Use relative_time instead of doing it ourselves.
65234         (%union): Add new relative_time rel member.
65235         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65236         Now typeless.
65237         (relunit, relunit_snumber): Now of type rel.
65238         (zone, rel, relunit, get_date): Adjust to above changes.
65239
65240         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65241         Do not include unistd-safer.h.
65242         (getloadavg): Don't call fd_safer; no longer needed
65243         now that we include fcntl--.h.
65244
65245         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65246         (make_dir_parents): Treat ENOSYS like EEXIST.
65247
65248         Improve quality of diagnostics on restore_cwd failure.
65249         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65250         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65251         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65252         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65253         each time through the loop.  Do not diagnose restore_cwd failure;
65254         that is the caller's job (and perhaps the caller does not care).
65255
65256         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65257         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65258         If the file already exists but is not a directory, don't bother
65259         to try to make its parents.
65260         Close potential file descriptor leak if we can't chdir("/") (!).
65261         Don't always return true if chdir($PWD) fails; return true only
65262         if the requested action was done successfully (except for the
65263         chdir($PWD)).
65264         Don't log final directory unless we actually made it.
65265         Refactor to avoid duplicate code to fix up permissions.
65266         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65267
65268         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65269         to make it a bit faster and (I hope) clearer.
65270         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65271         Fix bug in formats like %2N.
65272
65273         * lib/verify.h: New file.
65274
65275 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65276
65277         Sync from coreutils.
65278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65279
65280 2005-09-22  Jim Meyering  <jim@meyering.net>
65281
65282         Sync from coreutils.
65283
65284         * m4/lstat.m4 (gl_FUNC_LSTAT):
65285         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65286         Remove obsolete comment.
65287         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65288         * m4/xstrtod.m4: Likewise.
65289
65290         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65291
65292 2005-09-22  Jim Meyering  <jim@meyering.net>
65293
65294         Sync from coreutils.
65295
65296         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65297
65298         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65299         the .tm_year member, since otherwise gcc-4.0 would now warn about
65300         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65301
65302         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65303         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65304
65305         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65306         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65307         when run in a time zone for which daylight savings time is in effect
65308         for the starting date.
65309
65310         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65311         stop us from restricting permissions of just-created absolute-named
65312         directories.
65313         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65314         to restore initial working directory.
65315         * lib/mkdir-p.c (make_dir_parents): New parameter:
65316         different_working_dir, to tell caller if/when we change the working
65317         directory and are unable to return to the initial one.
65318         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65319         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65320         `return false'.  This fixes a bug introduced on 2004-07-30.
65321
65322         * lib/openat.c (fdopendir): Be sure to close the supplied
65323         file descriptor before returning.  This makes our replacement
65324         implementation a little closer to Solaris's, where fdopendir
65325         ties the file descriptor to the returned DIR* pointer.
65326         * lib/openat.c (unlinkat): New function.
65327         * lib/openat.h (unlinkat): Add prototype.
65328         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65329         (openat_restore_fail): Rename from openat_restore_die.
65330         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65331
65332         Provide an alternative to exiting immediately upon save_cwd or
65333         restore_cwd failure.  Now, an application can arrange e.g.,
65334         to perform a longjump in that case.
65335         * lib/openat.c: Include dirname.h.
65336         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65337         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65338         and openat_restore_die rather than calling error directly.
65339         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65340
65341         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65342         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65343         define.
65344
65345         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65346         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65347                             int utc, int nanoseconds);
65348         Background:
65349         date should not have to allocate a megabyte of virtual memory to
65350         handle a format argument like +%1048575T.  When implemented with
65351         strftime, it must allocate such a buffer, use strftime to fill it
65352         in, print it, then free it.
65353         With fprintftime, it simply prints everything and exits.
65354         With no need for memory allocation, that's one fewer way to fail.
65355         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65356         optional field width, not before, so we accept %9:z, not %:9z.
65357         (my_strftime): Be sure to use L_('x') for literals.
65358
65359         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65360         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65361         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65362         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65363         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65364         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65365         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65366         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65367         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65368         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65369         * lib/xgethostname.c, lib/xreadlink.c:
65370         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65371
65372         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65373         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65374         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65375         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65376         and don't include <sys/file.h>).
65377
65378 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65379
65380         Sync from coreutils.
65381
65382         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65383         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65384         [!LDAV_DONE]: Avoid unused variable warning.
65385
65386 2005-09-21  Bruno Haible  <bruno@clisp.org>
65387
65388         * lib/unicodeio.h (unicode_to_mb): New declaration.
65389
65390 2005-09-20  Derek Price  <derek@ximbiot.com>
65391
65392         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65393         getaddrinfo.h.
65394
65395 2005-09-20  Bruno Haible  <bruno@clisp.org>
65396
65397         * gnulib-tool: Remove trailing slashes from the values specified for
65398         --source-base, --m4-base, --tests-base, --aux-dir.
65399         Suggested by Simon Josefsson <jas@extundo.com>.
65400
65401 2005-09-20  Bruno Haible  <bruno@clisp.org>
65402
65403         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65404         func_modules_to_filelist, func_import, func_create_testdir): Make all
65405         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65406         change when gnulib-tool is invoked in a different locale.
65407
65408 2005-09-19  Simon Josefsson  <jas@extundo.com>
65409
65410         * m4/socklen.m4: Fix typo.
65411
65412 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65413
65414         Use a consistent style for including <config.h>.
65415         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65416         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65417         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65418         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65419         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65420         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65421         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65422         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65423         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65424         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65425         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65426         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65427         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65428         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65429         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65430         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65431         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65432         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65433         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65434         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65435         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65436         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65437         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65438         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65439         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65440         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65441         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65442         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65443         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65444         lib/xstrtoumax.c, lib/yesno.c:
65445         Standardize inclusion of config.h.
65446         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65447         lib/inttostr.h:  Removed inclusion of config.h from header files.
65448         * lib/inttostr.c:  Adjusted in-tree users.
65449         * lib/timespec.h: Remove superfluous warning to include config.h.
65450         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65451         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65452         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65453         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65454         config.h with HAVE_CONFIG_H.
65455
65456 2005-09-19  Jim Meyering  <jim@meyering.net>
65457
65458         * modules/pathmax (License): Change to LGPL.
65459
65460 2005-09-19  Derek Price  <derek@ximbiot.com>
65461
65462         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65463
65464 2005-09-19  Bruno Haible  <bruno@clisp.org>
65465
65466         * gnulib-tool (import): Provide default for --tests-base.
65467
65468 2005-09-19  Bruno Haible  <bruno@clisp.org>
65469
65470         * doc/quote.texi: New file, extracted from gnulib.texi.
65471         * doc/ctime.texi: New file, extracted from gnulib.texi.
65472         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65473         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65474         * doc/gnulib.texi: Include them.
65475
65476 2005-09-18  Bruno Haible  <bruno@clisp.org>
65477
65478         Portability fix.
65479         * gnulib-tool (func_readlink): New function.
65480         (func_ln_if_changed): Use it.
65481
65482 2005-09-18  Bruno Haible  <bruno@clisp.org>
65483
65484         * gnulib-tool: Support --with-tests also with --import.
65485         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65486         (func_import): Use variables $testsbase and $inctests. Emit a
65487         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65488         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65489         SUBDIRS += $testsdir.
65490         (func_create_testdir): Update.
65491
65492 2005-09-18  Bruno Haible  <bruno@clisp.org>
65493
65494         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65495         instead of $dry_run.
65496         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65497         (func_ln_if_changed): Don't handle dry-run here.
65498         (func_import): In dry-run mode, detect more precisely which actions
65499         would be performed, and don't use "...ing" verbs.
65500
65501 2005-09-18  Bruno Haible  <bruno@clisp.org>
65502
65503         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65504         (func_import): Use join on two temporary files instead of three nested
65505         loops, in order to determine which files are new or old.
65506
65507 2005-09-18  Bruno Haible  <bruno@clisp.org>
65508
65509         * gnulib-tool (func_import): Comment out code that spits out the
65510         new files with --dry-run.
65511
65512 2005-09-18  Bruno Haible  <bruno@clisp.org>
65513
65514         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65515
65516 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * lib/stat-time.h: New file.
65519         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65520         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65521         in a different way.
65522         (timespec_cmp): New function.
65523         * lib/utimecmp.c: Include stat-time.h.
65524         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65525         members exist, not on the obsolescent ST_MTIM_NSEC.
65526         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65527
65528 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65529
65530         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65531
65532 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65533
65534         * MODULES.html.sh (File system functions): Add stat-time.
65535         * modules/stat-time: New file.
65536         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65537         is now done in a different way, by the stat-time module.
65538         * modules/utimecmp (Depends-on): Add stat-time.
65539
65540 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         * m4/st_mtim.m4: Remove.  Superseded by...
65543         * m4/stat-time.m4: New file.
65544         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65545         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65546
65547 2005-09-15  Derek Price  <derek@ximbiot.com>
65548
65549         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65550
65551 2005-09-15  Derek Price  <derek@ximbiot.com>
65552
65553         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65554         * lib/regex_internal.c: Ditto, using this...
65555         (__GNUC_PREREQ): ...new macro.
65556         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65557         using...
65558         (__GNUC_PREREQ): ...this new macro.
65559
65560         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65561
65562 2005-09-15  Derek Price  <derek@ximbiot.com>
65563             Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65566         changes, consolidating in...
65567         * lib/regex_internal.h: ...this file.
65568
65569 2005-09-13  Jim Meyering  <jim@meyering.net>
65570
65571         * lib/canon-host.c: Filter through gnu indent and reword comments
65572         slightly.
65573         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65574
65575 2005-09-13  Derek Price  <derek@ximbiot.com>
65576
65577         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65578         failure.
65579         Reported by Jim Meyering  <jim@meyering.net>.
65580
65581 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65582
65583         * lib/base64.c: Typo.
65584         (base64_encode): Put b64str in initialized data section.
65585
65586 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         Merge glibc and coreutils changes into gnulib, plus a few
65589         extra fixes.
65590         * lib/md5.c: Use #error rather than a string.
65591         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65592         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65593         (__attribute__): Define to empty for non recent-GCC.
65594         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65595         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65596         Renamed from their non-__ counterparts, with new macros replacing
65597         them if not _LIBC.  Add __THROW attribute.
65598         (rol): Remove.
65599         (struct md5_ctx): Align buffer if using GCC.
65600         * lib/sha1.h (struct sha1_ctx): Likewise.
65601         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65602         The old name was backwards.
65603         (NOTSWAP): Remove; not used.
65604         (rol): New macro, moved here from md5.h.
65605         (sha1_process_block): Remove a FIXME that doesn't make sense.
65606
65607 2005-09-12  Derek Price  <derek@ximbiot.com>
65608
65609         Return usable errors from canon-host.
65610         * lib/canon-host.h: New file.
65611         * lib/canon-host.c (canon_host): Wrap...
65612         (canon_host_r): ...this new function, which now relies exclusively on
65613         getaddrinfo.
65614         (ch_strerror): New function.
65615         (last_cherror): New global.
65616         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65617         interface.
65618         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65619         void *.
65620         (freeaddrinfo): Free ai->ai_canonname when set.
65621
65622 2005-09-12  Derek Price  <derek@ximbiot.com>
65623
65624         Make canon-host require getaddrinfo.
65625         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65626         AC_LIBSOURCE canon-host.h.  Call...
65627         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65628         gl_GETADDRINFO.
65629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65630
65631 2005-09-12  Derek Price  <derek@ximbiot.com>
65632
65633         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65634         LGPL.
65635         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65636
65637 2005-09-12  Derek Price  <derek@ximbiot.com>
65638
65639         * lib/gai_strerror.c: Include config.h when available.  Include
65640         getaddrinfo.h before other headers to test interface.
65641         Reported by Larry Jones <lawrence.jones@ugs.com>.
65642
65643 2005-09-12  Derek Price  <derek@ximbiot.com>
65644             Paul Eggert  <eggert@cs.ucla.edu>
65645
65646         * modules/glob (Files): Add glob-libc.h.
65647
65648 2005-09-12  Derek Price  <derek@ximbiot.com>
65649             Paul Eggert  <eggert@cs.ucla.edu>
65650
65651         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65652         glob_.h, glob-libc.h.
65653         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65654
65655 2005-09-12  Derek Price  <derek@ximbiot.com>
65656             Paul Eggert  <eggert@cs.ucla.edu>
65657
65658         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65659         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65660         protecting things that should be done only in gnulib contexts.
65661         * lib/glob_.h: New file, containing only the glob things needed for
65662         gnulib.
65663         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65664         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65665         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65666         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65667         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65668         and to respect the namespace rules better.
65669
65670 2005-09-08  Simon Josefsson  <jas@extundo.com>
65671
65672         * modules/socklen: New file.
65673
65674 2005-09-08  Simon Josefsson  <jas@extundo.com>
65675
65676         * m4/socklen.m4: New file.
65677
65678 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65679
65680         * modules/utimens (Files): Add m4/utimbuf.m4, since
65681         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65682         Reported by Sergey Poznyakoff.
65683
65684 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65687         definitions, since that's the preferred style in glibc.
65688         Fix a minor spacing issue, and update copyright notice to match
65689         glibc's.
65690
65691 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65692
65693         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65694
65695 2005-09-06  Simon Josefsson  <jas@extundo.com>
65696
65697         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65698         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65699
65700 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65701
65702         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65703         warning.
65704
65705 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65706
65707         * config/srclist.txt: Add glibc bug 1302.
65708
65709 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         Change bitset word type from unsigned int to unsigned long int,
65712         as this has better performance on typical 64-bit hosts.
65713         Port bitset code to hosts with unusual word sizes.
65714         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65715         (build_collating_symbol):
65716         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65717         argument is a bitset.  This is merely a style issue, but it makes
65718         it clearer that an entire array is expected.
65719         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65720         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65721         Port to the case where bitset_word is not the same as unsigned int.
65722         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65723         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65724         Likewise.
65725         * lib/regexec.c (check_dst_limits_calc_pos_1,
65726         check_subexp_matching_top):
65727         (build_trtable, group_nodes_into_DFAstates):
65728         Likewise.
65729         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65730         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65731         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65732         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65733         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65734         * lib/regcomp.c (optimize_subexps, lower_subexp):
65735         Work even if bitset_word has holes in its bitwise representation.
65736         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65737         * lib/regexec.c (check_dst_limits_calc_pos_1,
65738         check_subexp_matching_top):
65739         Likewise.
65740         * lib/regex_internal.c (re_string_reconstruct):
65741         Don't assume UCHAR_MAX == 255.
65742         * lib/regex_internal.h (bitset_set_all): Likewise.
65743         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65744         All uses changed.
65745         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65746         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65747         All uses changed.
65748         (BITSET_WORD_MAX): New macro.
65749         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65750         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65751         (bitset_empty, bitset_copy):
65752         Prefer sizeof (bitset) to multiplying it out ourselves.
65753         (bitset_not_merge): Remove; unused.
65754         (bitset_contain): Return bool, not unsigned int with one bit on.
65755         All callers changed.
65756         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65757         alignment than re_node_set; do this by defining a new internal
65758         type struct dests_alloc and using it to allocate memory.
65759
65760 2005-09-05  Bruno Haible  <bruno@clisp.org>
65761
65762         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65763         links.
65764
65765 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65766
65767         * modules/size_max (Makefile.am): Add size_max.h
65768
65769 2005-09-04  Derek Price  <derek@ximbiot.com>
65770
65771         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65772
65773 2005-09-03  Simon Josefsson  <jas@extundo.com>
65774
65775         * gnulib-tool: Fix typo.
65776
65777 2005-09-03  Simon Josefsson  <jas@extundo.com>
65778
65779         * config/srclist.txt: Add glibc bug 1293.
65780
65781 2005-09-03  Derek Price  <derek@ximbiot.com>
65782
65783         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65784         From Larry Jones <lawrence.jones@ugs.com>.
65785
65786 2005-09-02  Simon Josefsson  <jas@extundo.com>
65787
65788         * modules/socklen: New file.
65789
65790 2005-09-02  Simon Josefsson  <jas@extundo.com>
65791
65792         * modules/havelib: New module.
65793
65794         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65795         Use havelib.
65796
65797 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         Check for arithmetic overflow when calculating sizes, to prevent
65800         some buffer-overflow issues.  These patches are conservative, in the
65801         sense that when I couldn't determine whether an overflow was possible,
65802         I inserted a run-time check.
65803         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65804         macros.
65805         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65806         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65807         (re_xnrealloc, re_x2nrealloc): New inline functions.
65808         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65809         parse_bracket_exp):
65810         (build_equiv_class, build_charclass): Check for arithmetic overflow
65811         in size expression calculations.
65812         * lib/regex_internal.c (re_string_realloc_buffers):
65813         (build_wcs_upper_buffer, re_node_set_add_intersect):
65814         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65815         (re_dfa_add_node, register_state): Likewise.
65816         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65817         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65818         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65819         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65820
65821 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65824         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65825
65826 2005-09-02  Bruno Haible  <bruno@clisp.org>
65827
65828         Support for lib vs. lib64 distinction on biarch platforms.
65829         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65830         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65831         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65832
65833 2005-09-02  Bruno Haible  <bruno@clisp.org>
65834
65835         * gnulib-tool (import): In the other first-use case, provide defaults
65836         as well.
65837
65838 2005-09-02  Bruno Haible  <bruno@clisp.org>
65839
65840         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65841         patches not yet found in the latest gettext release.
65842
65843 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65844
65845         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65846         to avoid a collision with bits/local_lim.h in glibc.
65847         All uses changed.  Problem reported by Dmitry V. Levin in
65848         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65849
65850         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65851         bugs in int versus size_t comparisons.
65852         (re_string_context_at): Fix bug where the code assumed that
65853         Idx is signed.
65854
65855         Use bool where appropriate.
65856         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65857         All callers changed.
65858         (calc_eclosure_iter): Likewise, for ROOT arg.
65859         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65860         (build_charclass_op): Likewise, for NON_MATCH arg.
65861         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65862         (re_string_construct_common): Likewise, for ICASE arg.
65863         * lib/regexec.c (re_search_2_stub, re_search_stub):
65864         Likewise, for RET_LEN arg.
65865         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65866         (set_regs): Likewise, for FL_BACKTRACK arg.
65867         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65868         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65869         (calc_eclosure_iter, parse_bracket_exp):
65870         Use bool for internal variables that are booleans.
65871         * lib/regexec.c (re_search_internal, check_matching,
65872         proceed_next_node):
65873         (set_regs, build_sifted_states, sift_states_bkref):
65874         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65875         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65876         (find_collation_sequence_value):
65877         Likewise.
65878         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65879         (re_node_set_compare):
65880         Return bool, not int. All callers changed.
65881         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65882         (build_trtable, check_node_accept): Likewise.
65883         * lib/regex_internal.h: Include stdbool.h.
65884
65885         Fix bugs uncovered when converting to bool.
65886         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65887         failure instead of charging ahead blindly.
65888         * lib/regex_internal.c (register_state): Likewise.
65889         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65890         for freeing internal storage.
65891         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65892         bitset pieces used as boolean, to avoid undefined behavior
65893         on hosts that do int overflow checking.
65894
65895 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65896
65897         * config/srclist.txt: Add glibc bugs 1285-1287.
65898
65899 2005-09-01  Jim Meyering  <jim@meyering.net>
65900
65901         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65902         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65903         Require gl_STAT_MACROS, too.
65904
65905 2005-09-01  Bruno Haible  <bruno@clisp.org>
65906
65907         * gnulib-tool (import): In the first-use case, provide defaults.
65908
65909 2005-09-01  Bruno Haible  <bruno@clisp.org>
65910
65911         * gnulib-tool (func_import): Remove the .tmp files.
65912
65913 2005-09-01  Bruno Haible  <bruno@clisp.org>
65914
65915         * gnulib-tool (func_import): Fix handling of symbolic links.
65916
65917 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65920         old glibc regex code mishandles strings longer than 2**31 bytes.
65921         This patch fixes this when the regex code is used in gnulib
65922         (i.e., outside glibc).
65923
65924         This patch should not affect the use of the regex code inside
65925         glibc.  No doubt this problem also needs to be handled for glibc
65926         as well, but the result will be an incompatible change to the
65927         glibc ABI, and the old ABI will have to be supported too.  That
65928         can be the the subject for another patch.
65929
65930         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65931         governing whether the rest of this patch is active.  By default,
65932         the macro is disabled and the patch has no effect.
65933         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65934         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65935         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65936         (re_match_2, re_set_registers): Use the new types.
65937         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65938         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65939         New macros.
65940         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65941         (re_string_context_at, bin_tree_t, re_dfastate_t):
65942         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65943         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65944         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65945         (re_string_char_size_at, re_string_wchar_at):
65946         (re_string_elem_size_at):
65947         Use the new types and macros to port to 64-bit hosts.
65948         Use unsigned types for internal values, so that the code
65949         mostly works even for arrays larger than SSIZE_MAX.
65950         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65951         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65952         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65953         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65954         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65955         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65956         (calc_inveclosure, parse_dup_op, build_range_exp):
65957         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65958         (fetch_number, create_token_tree, mark_opt_subexp):
65959         Likewise.
65960         * lib/regex_internal.c (re_string_construct_common,
65961         create_ci_newstate):
65962         (create_cd_newstate, re_string_allocate, re_string_construct):
65963         (re_string_realloc_buffers, build_wcs_upper_buffer):
65964         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65965         (re_string_reconstruct, re_string_peek_byte_case):
65966         (re_string_fetch_byte_case, re_string_context_at):
65967         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65968         (re_node_set_init_copy, re_node_set_add_intersect):
65969         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65970         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65971         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65972         (re_acquire_state, re_acquire_state_context, register_state):
65973         Likewise.
65974         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65975         search_cur_bkref_entry):
65976         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65977         (re_search_internal, re_search_2_stub, re_search_stub)
65978         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65979         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65980         (update_cur_sifted_state, check_dst_limits):
65981         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65982         (check_subexp_limits, sift_states_bkref, merge_state_array):
65983         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65984         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65985         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65986         (expand_bkref_cache, check_node_accept_bytes):
65987         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65988         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65989         (acquire_init_state_context, check_halt_node_context):
65990         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65991         (sift_states_backward, clean_state_log_if_needed):
65992         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65993         (find_recover_state, transit_state_sb, transit_state_mb):
65994         (transit_state_bkref, build_trtable, match_ctx_clean):
65995         Likewise.
65996         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65997         to work around an assumption that REG_MISSING is negative.
65998
65999         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66000         (seek_collating_symbol_entry) [defined _LIBC]:
66001         (lookup_collation_sequence_value) [defined _LIBC]:
66002         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66003         Use prototypes rather than old-style function definitions.
66004         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66005         (transit_state_sb) [0]:
66006         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66007
66008         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66009         rm_eo.
66010
66011         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66012         (optimize_subexps, lower_subexp):
66013         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66014         since the signed shift might overflow.  Use 1u<<31 instead.
66015         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66016         Likewise.
66017         * lib/regexec.c (check_dst_limits_calc_pos_1,
66018         check_subexp_matching_top): Likewise.
66019
66020         * lib/regcomp.c (optimize_subexps, lower_subexp):
66021         Use CHAR_BIT rather than 8, for clarity.
66022         * lib/regexec.c (check_dst_limits_calc_pos_1):
66023         (check_subexp_matching_top): Likewise.
66024         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66025         have to worry about portability issues when shifting it left.
66026         Remove no-longer-needed test for table_size > 0.
66027         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66028         in a word, as the resulting behavior is undefined.
66029         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66030         in one case, a <= should have been an <, and in another case the
66031         whole test was missing.
66032         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66033         the standard name CHAR_BIT.
66034         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66035         this is not true on one's complement and signed-magnitude hosts.
66036
66037         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66038         next_last_offset.
66039         (struct re_dfa_t): Remove unused member states_alloc.
66040         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66041
66042 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66043
66044         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66045         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66046         and large-file glibc and in 32-bit large-file Solaris.
66047
66048 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66049
66050         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66051         lengths fit in regoff_t; this isn't true if regoff_t is the same
66052         width as size_t.
66053         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66054         (= START + RANGE) instead of RANGE.  This avoids overflow
66055         problems when regoff_t is the same width as size_t.
66056         All callers changed.
66057         (re_search_2_stub): Check for overflow when adding the
66058         sizes of the two strings.
66059         (re_search_stub): Check for overflow when adding START
66060         to RANGE; if it occurs, substitute the extreme value.
66061
66062 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66063
66064         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66065
66066 2005-08-31  Jim Meyering  <jim@meyering.net>
66067
66068         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66069         a pointer-to-const.
66070         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66071         (register_state): Likewise.
66072         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66073         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66074         (group_nodes_into_DFAstates): Likewise.
66075
66076 2005-08-31  Jim Meyering  <jim@meyering.net>
66077
66078         * check-module: Add a FIXME comment.
66079
66080 2005-08-31  Eric Blake  <ebb9@byu.net>
66081
66082         * modules/unistd-safer (Files): Add unistd--.h.
66083         * modules/stdio-safer (Files): Add stdio--.h.
66084
66085 2005-08-31  Derek Price  <derek@ximbiot.com>
66086
66087         * lib/getdelim.c (getdelim): Return EOF on EOF.
66088         Reported by Larry Jones <lawrence.jones@ugs.com>.
66089
66090 2005-08-31  Bruno Haible  <bruno@clisp.org>
66091
66092         Avoid unnecessary diffs in the generated lib/Makefile.am.
66093         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66094         the generated files.
66095         (func_import): Don't set cmd.
66096
66097 2005-08-31  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/strstr.c: Include <stddef.h>, for NULL.
66100         * lib/strcasestr.c: Likewise.
66101         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66102
66103 2005-08-31  Bruno Haible  <bruno@clisp.org>
66104
66105         * gnulib-tool: New option --macro-prefix.
66106         (func_import): Use macro_prefix.
66107         (import): Handle option --macro-prefix.
66108
66109 2005-08-31  Bruno Haible  <bruno@clisp.org>
66110
66111         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66112         Also use new variables cached_lgpl, cached_libtool.
66113
66114 2005-08-31  Bruno Haible  <bruno@clisp.org>
66115
66116         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66117         always instantiating them.
66118
66119 2005-08-31  Bruno Haible  <bruno@clisp.org>
66120
66121         * gnulib-tool (func_import): Read the previous cached settings
66122         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66123         earlier added by gnulib but are now dropped. Warn when a gnulib file
66124         overwrites a non-gnulib file.
66125
66126 2005-08-31  Bruno Haible  <bruno@clisp.org>
66127
66128         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66129         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66130         projects that don't keep autogenerated files in CVS. Put into
66131         actioncmd only the specified modules, not the transitive closure.
66132
66133 2005-08-31  Bruno Haible  <bruno@clisp.org>
66134
66135         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66136         Create directories that shall be filled.
66137         (import): Don't look for gl_* macros in configure.ac. Recurse across
66138         all directories containing a gnulib-cache.m4 files, if meaningful.
66139
66140 2005-08-31  Bruno Haible  <bruno@clisp.org>
66141
66142         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66143         (import): Set seen_libtool when we see gl_LIBTOOL.
66144
66145 2005-08-31  Bruno Haible  <bruno@clisp.org>
66146
66147         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66148         declaration macro definitions from generated gnulib.m4.
66149
66150 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66151
66152         * lib/iconvme.h: Add prototype for iconv_alloc.
66153
66154 2005-08-29  Simon Josefsson  <jas@extundo.com>
66155
66156         * lib/iconvme.c: Fix errno.
66157
66158 2005-08-29  Bruno Haible  <bruno@clisp.org>
66159
66160         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66161         that it works when the directory contains spaces.
66162
66163 2005-08-29  Bruno Haible  <bruno@clisp.org>
66164
66165         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66166
66167 2005-08-29  Bruno Haible  <bruno@clisp.org>
66168
66169         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66170         Emit more advice.
66171
66172 2005-08-29  Bruno Haible  <bruno@clisp.org>
66173         and Stepan Kasal  <kasal@ucw.cz>
66174
66175         * check-module: If more parameters are given, check each of them
66176         separately; add more exceptions, as noted by Jim Meyering.
66177         (check_module): New procedure.
66178         (%exempt_header): Now contains all exceptions.
66179
66180 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66181
66182         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66183
66184 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66185
66186         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66187
66188 2005-08-28  Bruno Haible  <bruno@clisp.org>
66189
66190         * m4/gnulib-tool.m4: New file.
66191
66192 2005-08-27  Jim Meyering  <jim@meyering.net>
66193
66194         * modules/unistd-safer (Files): Add pipe-safer.c.
66195         * modules/fcntl-safer (Files): Add creat-safer.c.
66196
66197 2005-08-27  Jim Meyering  <jim@meyering.net>
66198
66199         * m4/stdlib-safer.m4: New file.  From coreutils.
66200         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66201         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66202         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66203         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66204         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66205
66206 2005-08-27  Jim Meyering  <jim@meyering.net>
66207
66208         * lib/fopen-safer.c: Merge minor changes from coreutils.
66209         * lib/dup-safer.c: Likewise.
66210         * lib/fd-safer.c: Likewise.
66211
66212         Merge from coreutils.
66213         * lib/stdio--.h: New file.
66214         * lib/stdlib--.h: New file.
66215         * lib/mkstemp-safer.c: New file.
66216
66217         GNU tar needs these.
66218         * lib/pipe-safer.c: New file.
66219         * lib/creat-safer.c: New file.
66220         * lib/fcntl--.h (creat): Define to creat_safer.
66221         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66222         * lib/unistd--.h (pipe): Define to pipe_safer.
66223         * lib/unistd-safer.h: Declare pipe_safer.
66224
66225 2005-08-26  Simon Josefsson  <jas@extundo.com>
66226
66227         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66228         Haible <bruno@clisp.org>.
66229
66230 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         * lib/regex_internal.h: Remove all references to
66233         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66234         or better.
66235         (bitset_not, bitset_merge, bitset_not_merge):
66236         (bitset_mask, re_string_allocate, re_string_construct):
66237         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66238         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66239         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66240         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66241         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66242         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66243         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66244         (re_acquire_state_context):
66245         Remove unnecessary forward decls.
66246         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66247         Put __attribute at function definition,
66248         now that the function decl has been removed.
66249         * lib/regex_internal.c (re_string_peek_byte_case):
66250         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66251         Likewise.
66252
66253 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66254
66255         * m4/regex.m4: Add AC_PREREQ(2.50).
66256         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66257
66258 2005-08-25  Simon Josefsson  <jas@extundo.com>
66259
66260         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66261         __fsetlocking.
66262
66263 2005-08-25  Simon Josefsson  <jas@extundo.com>
66264
66265         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66266         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66267         GLIBC specific code.
66268
66269 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         Make regex safe for g++.  This fixes one real bug (an "err"
66272         that should have been "*err").  g++ problem reported by
66273         Sam Steingold.
66274         * lib/regex_internal.h (re_calloc): New macro, consistent with
66275         re_malloc etc.  All callers of calloc changed to use re_calloc.
66276         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66277         not int.  All callers changed.
66278         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66279         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66280         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66281         (find_recover_state): Change "err" to "*err"; this fixes what
66282         appears to be a real bug.
66283         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66284         versus int.
66285
66286 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66287
66288         * modules/regex (Depends-on): Add malloc, since the code
66289         assumes that !malloc(0) means failure.
66290
66291 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66294
66295         alloca modernization/simplification for regex.
66296         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66297         needs to be at the start of the file, and can be moved into
66298         regex_internal.h and simplified.
66299         * lib/regex_internal.h: Include <alloca.h>.
66300         (__libc_use_alloca) [!defined _LIBC]: New macro.
66301         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66302         now works outside glibc.
66303
66304 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         * config/srclist.txt: Add glibc bugs 1241, 1245.
66307
66308 2005-08-25  Jim Meyering  <jim@meyering.net>
66309
66310         * lib/open-safer.c: Include <config.h>.
66311         Otherwise, we'd lose LARGEFILE support in any file using
66312         e.g. "fcntl--.h"
66313
66314 2005-08-25  Bruno Haible  <bruno@clisp.org>
66315
66316         * m4/minmax.m4: Require autoconf 2.52.
66317         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66318         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66319         alternatives of translit over the alphabet.
66320         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66321
66322 2005-08-24  Simon Josefsson  <jas@extundo.com>
66323
66324         * tests/test-getpass.c: New file.
66325
66326 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66327
66328         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66329         for GNU regex features.
66330
66331 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66332
66333         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66334         * lib/regex.h (regerror): Likewise.
66335
66336         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66337         requires this.  (The code never needed it.)
66338
66339         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66340         All uses of recently-renamed identifiers changed to use the new,
66341         POSIX-compliant names.  The code will build and run just fine
66342         without these changes, but it's better to eat our own dog food
66343         and use the standard-conforming names.
66344
66345         * lib/regex.h: Fix a multitude of POSIX name space violations.
66346         These changes have an effect only for programs that define
66347         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66348         do not change anything for programs compiled in the normal way.
66349         Also, there is no effect on the ABI.
66350
66351         (_REGEX_SOURCE): New macro.
66352         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66353         defined and _GNU_SOURCE is not; this fixes a name space violation.
66354
66355         Rename the following macros to obey POSIX requirements.
66356         The old names are still visible as macros if _REGEX_SOURCE is defined.
66357         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66358         RE_BACKSLASH_ESCAPE_IN_LISTS.
66359         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66360         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66361         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66362         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66363         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66364         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66365         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66366         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66367         (REG_INTERVALS): renamed from RE_INTERVALS.
66368         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66369         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66370         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66371         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66372         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66373         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66374         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66375         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66376         RE_UNMATCHED_RIGHT_PAREN_ORD.
66377         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66378         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66379         (REG_DEBUG): renamed from RE_DEBUG.
66380         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66381         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66382         unusual, since we can't clash with the POSIX REG_ICASE.
66383         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66384         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66385         (REG_NO_SUB): renamed from RE_NO_SUB.
66386         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66387         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66388         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66389         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66390         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66391         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66392         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66393         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66394         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66395         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66396         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66397         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66398         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66399         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66400         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66401         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66402         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66403         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66404         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66405         (REG_FIXED): Renamed from REGS_FIXED.
66406         (REG_NREGS): Renamed from RE_NREGS.
66407
66408         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66409         of other REG_* macros, since POSIX says the user is allowed to
66410         #undef these macros selectively.
66411
66412         (reg_errcode_t): Update comment stating what other tables need
66413         to be consistent.
66414
66415         Rename the following enum values to obey POSIX requirements.
66416         The old names are still visible as macros.
66417         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66418         is not defined, since GNU is supposed to be a superset of POSIX as
66419         much as possible, and since we want reg_errcode_t to be a signed
66420         type for implementation consistency.
66421         (_REG_NOERROR): Renamed from REG_NOERROR.
66422         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66423         (_REG_BADPAT): Renamed from REG_BADPAT.
66424         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66425         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66426         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66427         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66428         (_REG_EBRACK): Renamed from REG_EBRACK.
66429         (_REG_EPAREN): Renamed from REG_EPAREN.
66430         (_REG_EBRACE): Renamed from REG_EBRACE.
66431         (_REG_BADBR): Renamed from REG_BADBR.
66432         (_REG_ERANGE): Renamed from REG_ERANGE.
66433         (_REG_ESPACE): Renamed from REG_ESPACE.
66434         (_REG_BADRPT): Renamed from REG_BADRPT.
66435         (_REG_EEND): Renamed from REG_EEND.
66436         (_REG_ESIZE): Renamed from REG_ESIZE.
66437         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66438         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66439         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66440         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66441         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66442
66443         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66444         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66445         changed.  But support the old name if the new one is not defined
66446         and if _REGEX_SOURCE.
66447
66448         Change the following member names in struct re_pattern_buffer.
66449         The old names are still supported if !_REGEX_SOURCE.
66450         The new names are always supported, regardless of _REGEX_SOURCE.
66451         (re_buffer): Renamed from buffer.
66452         (re_allocated): Renamed from allocated.
66453         (re_used): Renamed from used.
66454         (re_syntax): Renamed from syntax.
66455         (re_fastmap): Renamed from fastmap.
66456         (re_translate): Renamed from translate.
66457         (re_can_be_null): Renamed from can_be_null.
66458         (re_regs_allocated): Renamed from regs_allocated.
66459         (re_fastmap_accurate): Renamed from fastmap_accurate.
66460         (re_no_sub): Renamed from no_sub.
66461         (re_not_bol): Renamed from not_bol.
66462         (re_not_eol): Renamed from not_eol.
66463         (re_newline_anchor): Renamed from newline_anchor.
66464
66465         Change the following member names in struct re_registers.
66466         The old names are still supported if !_REGEX_SOURCE.
66467         The new names are always supported, regardless of _REGEX_SOURCE.
66468         (rm_num_regs): Renamed from num_regs.
66469         (rm_start): Renamed from start.
66470         (rm_end): Renamed from end.
66471
66472         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66473         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66474         Prepend __ to parameter names.
66475
66476         Undo yesterday's changes.
66477
66478 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66479
66480         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66481         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66482         lib/regex.c.
66483
66484 2005-08-24  Jim Meyering  <jim@meyering.net>
66485
66486         Sync from coreutils.
66487         * m4/fcntl-safer.m4: New file.
66488
66489         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66490         and object files for this module.
66491
66492 2005-08-24  Jim Meyering  <jim@meyering.net>
66493
66494         Sync from coreutils.
66495         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66496
66497 2005-08-24  Jim Meyering  <jim@meyering.net>
66498
66499         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66500         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66501
66502 2005-08-24  Jim Meyering  <jim@meyering.net>
66503
66504         * modules/fcntl-safer: New module.
66505         * modules/fts (Depends-on): Add fcntl-safer.
66506         * MODULES.html.sh (File descriptor based Input/Output):
66507         Add fcntl-safer.
66508
66509 2005-08-24  Bruno Haible  <bruno@clisp.org>
66510
66511         Support for unit test modules.
66512         * modules/README: Mention tests modules.
66513         * modules/TEMPLATE-TESTS: New file.
66514         * gnulib-tool: New options --extract-tests-module, --with-tests and
66515         --tests-base (unused for the moment).
66516         (testsbase, inctests): New variables.
66517         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66518         (func_verify_module): Exclude TEMPLATE-TESTS.
66519         (func_verify_nontests_module, func_verify_tests_module): New functions.
66520         (func_get_dependencies): Add implicit dependency for tests modules.
66521         (func_get_tests_module): New function.
66522         (func_modules_transitive_closure): When --with-tests was specified,
66523         include the unit tests as well, unless explicitly avoided.
66524         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66525         (func_emit_tests_Makefile_am): New function.
66526         (func_create_testdir): When --with-tests was specified, emit a
66527         tests/ directory.
66528         * MODULES.html.sh (Future developments): Update.
66529
66530 2005-08-24  Bruno Haible  <bruno@clisp.org>
66531
66532         * modules/tls-tests: New file.
66533         * tests/test-tls.c: New file, from GNU gettext.
66534
66535 2005-08-24  Bruno Haible  <bruno@clisp.org>
66536
66537         * modules/lock-tests: New file.
66538         * tests/test-lock.c: New file, from GNU gettext.
66539
66540 2005-08-24  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/lock.h: Add multiple inclusion guard.
66543         * lib/tls.h: Add multiple inclusion guard.
66544
66545 2005-08-24  Bruno Haible  <bruno@clisp.org>
66546
66547         * gnulib-tool: Add support for the --aux-dir option to
66548         --create-testdir, --create-megatestdir, --test, --megatest.
66549         (func_create_testdir, func_create_megatestdir): Optionally emit a
66550         AC_CONFIG_AUX_DIR directive.
66551         (create-testdir, create-megatestdir, test, megatest): Provide a
66552         default value for $auxdir.
66553
66554 2005-08-24  Bruno Haible  <bruno@clisp.org>
66555
66556         * gnulib-tool (import): Use compound statement instead of subshell
66557         where possible.
66558
66559 2005-08-24  Bruno Haible  <bruno@clisp.org>
66560
66561         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66562
66563 2005-08-24  Bruno Haible  <bruno@clisp.org>
66564
66565         * gnulib-tool (func_version): Update.
66566
66567 2005-08-24  Bruno Haible  <bruno@clisp.org>
66568
66569         * gnulib-tool (func_import, func_create_testdir,
66570         func_create_megatestdir): Quote all autoconf macro arguments.
66571
66572 2005-08-24  Bruno Haible  <bruno@clisp.org>
66573
66574         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66575         option --force, because --force causes the aclocal.m4 of each
66576         subdirectory to be newer than the corresponding config.h.in.
66577
66578 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66581         All contents moved to gl_REGEX.
66582         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66583         assume that it does.
66584
66585 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66586
66587         * lib/regex.h (REG_NOSYS)
66588         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66589         Define, since POSIX requires it as of 2001.
66590         (_REG_ENOSYS)
66591         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66592         New private symbol, used to keep the enum signed in all cases.
66593         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66594         Youngman in
66595         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66596
66597         * lib/regex_internal.c (re_string_skip_chars, register_state):
66598         (calc_state_hash):
66599         Remove forward decls; no longer needed now that we use prototypes.
66600         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66601         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66602         (clean_state_log_if_needed): Likewise.
66603
66604 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66605
66606         * config/srclist.txt: Add glibc bugs 1231-1233.
66607
66608 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66609
66610         Fix problems reported by Sam Steingold in
66611         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66612         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66613         assumed that reg_errcode_t is a signed type, which is not
66614         necessarily true if _XOPEN_SOURCE is not defined.
66615         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66616         since some compilers warn about it otherwise.
66617
66618 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66621         (init_word_char, create_initial_state, duplicate_node_closure):
66622         (fetch_token, peek_token_bracket, build_range_exp):
66623         (build_collating_symbol): Remove forward decls; no longer needed
66624         now that we use prototypes.
66625
66626         * lib/regcomp.c:
66627         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66628         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66629         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66630         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66631         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66632         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66633         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66634         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66635         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66636         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66637         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66638         (build_charclass, build_charclass_op, fetch_number, create_tree):
66639         (create_token_tree, mark_opt_subexp, duplicate_tree):
66640         Use prototypes rather than old-style definitions.
66641
66642         * lib/regex_internal.c:
66643         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66644         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66645         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66646         (re_string_reconstruct, re_string_peek_byte_case):
66647         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66648         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66649         (re_node_set_init_copy, re_node_set_add_intersect):
66650         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66651         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66652         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66653         (re_acquire_state, re_acquire_state_context, register_state):
66654         (create_ci_newstate, create_cd_newstate, free_state):
66655         Likewise.
66656         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66657         re_search_2):
66658         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66659         (re_search_internal, prune_impossible_nodes):
66660         (acquire_init_state_context, check_matching, static):
66661         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66662         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66663         (update_regs, sift_states_backward, build_sifted_states):
66664         (clean_state_log_if_needed, merge_state_array):
66665         (update_cur_sifted_state, add_epsilon_src_nodes):
66666         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66667         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66668         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66669         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66670         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66671         (check_arrival, check_arrival_add_next_nodes):
66672         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66673         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66674         (check_node_accept_bytes, check_node_accept, extend_buffers):
66675         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66676         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66677         (sift_ctx_init):
66678         Likewise.
66679
66680         * lib/regex_internal.h:
66681         (re_string_allocate, re_string_construct, re_string_reconstruct):
66682         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66683         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66684         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66685         (re_string_context_at, re_string_peek_byte_case):
66686         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66687         is defined, since we now use prototypes always.
66688
66689         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66690         C89 or better.  All uses removed.
66691
66692 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66693
66694         * config/srclist.txt: Add glibc bugs 1220-1227.
66695
66696 2005-08-20  Jim Meyering  <jim@meyering.net>
66697
66698         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66699         of unused local, dfa.
66700
66701 2005-08-20  Bruno Haible  <bruno@clisp.org>
66702
66703         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66704
66705 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66706
66707         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66708         (re_node_set_insert_last, re_dfa_add_node):
66709         Rename local variables to avoid GCC shadowing warnings.
66710
66711 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66712
66713         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66714         [defined lint]: Suppress bogus uninitialized-variable warnings.
66715
66716         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66717         and let the caller return REG_ESPACE if out of space.  This
66718         removes an uninitialied-variable warning with GCC 4.0.1, and also
66719         avoids taking the address of a local variable.  All callers
66720         changed.
66721
66722 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66725         $LIBCSRC/posix/regexec.c.
66726         Add glibc bug 1217 for regcomp.c.
66727
66728 2005-08-19  Jim Meyering  <jim@meyering.net>
66729
66730         * lib/regexec.c (proceed_next_node): Redo local variables to
66731         avoid GCC shadowing warnings.
66732
66733 2005-08-18  Bruno Haible  <bruno@clisp.org>
66734
66735         * lib/strstr.c (strstr): Fix return value in multibyte case.
66736         * lib/strcasestr.c (strcasestr): Likewise.
66737
66738 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66739
66740         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66741
66742 2005-08-17  Jim Meyering  <jim@meyering.net>
66743
66744         Make the %s format (seconds since the epoch) work for a negative
66745         number and when used with a zero-padded field width, e.g. %015s.
66746
66747         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66748         label so that it precedes the code to set `digits'.  Otherwise,
66749         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66750         print `00-22'.  Now, it prints `-0022', as it should.
66751
66752 2005-08-17  Bruno Haible  <bruno@clisp.org>
66753
66754         * modules/strstr (Files): Add m4/mbrtowc.m4.
66755         (Depends-on): Add mbuiter.
66756
66757 2005-08-17  Bruno Haible  <bruno@clisp.org>
66758
66759         * modules/strcasestr: New file.
66760         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66761         strcasestr.
66762
66763 2005-08-17  Bruno Haible  <bruno@clisp.org>
66764
66765         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66766
66767 2005-08-17  Bruno Haible  <bruno@clisp.org>
66768
66769         * modules/mbuiter: New file.
66770         * MODULES.html.sh (Extended multibyte and wide character utilities):
66771         Add mbuiter.
66772
66773 2005-08-17  Bruno Haible  <bruno@clisp.org>
66774
66775         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66776         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66777
66778 2005-08-17  Bruno Haible  <bruno@clisp.org>
66779
66780         * m4/strcasestr.m4: New file.
66781
66782 2005-08-17  Bruno Haible  <bruno@clisp.org>
66783
66784         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66785         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66786
66787 2005-08-17  Bruno Haible  <bruno@clisp.org>
66788
66789         * lib/strcasestr.h: New file.
66790         * lib/strcasestr.c: New file.
66791
66792 2005-08-17  Bruno Haible  <bruno@clisp.org>
66793
66794         * lib/strcasecmp.c: Use mbuiter.h.
66795
66796 2005-08-17  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/mbuiter.h: New file.
66799
66800 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66803         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66804         and gl_GETOPT are both invoked via different paths (as happens
66805         with GNU tar CVS because it uses both argp and getopt), the former
66806         wins.
66807
66808 2005-08-16  Bruno Haible  <bruno@clisp.org>
66809
66810         * modules/tls: New file.
66811         * MODULES.html.sh (Multithreading): Add tls.
66812
66813 2005-08-16  Bruno Haible  <bruno@clisp.org>
66814
66815         * modules/strnlen1: New file.
66816         * MODULES.html.sh (String handling): Add strnlen1.
66817
66818 2005-08-16  Bruno Haible  <bruno@clisp.org>
66819
66820         * modules/strcase (Files): Add m4/mbrtowc.m4.
66821         (Depends-on): Add strnlen1, mbchar.
66822
66823 2005-08-16  Bruno Haible  <bruno@clisp.org>
66824
66825         * modules/mbiter: New file.
66826         * MODULES.html.sh (Extended multibyte and wide character utilities):
66827         Add mbiter.
66828
66829 2005-08-16  Bruno Haible  <bruno@clisp.org>
66830
66831         * modules/mbfile: New file.
66832         * MODULES.html.sh (Extended multibyte and wide character utilities):
66833         Add mbfile.
66834
66835 2005-08-16  Bruno Haible  <bruno@clisp.org>
66836
66837         * modules/mbchar: New file.
66838         * MODULES.html.sh (Extended multibyte and wide character utilities):
66839         New section.
66840
66841 2005-08-16  Bruno Haible  <bruno@clisp.org>
66842
66843         * m4/tls.m4: New file, from GNU gettext.
66844
66845 2005-08-16  Bruno Haible  <bruno@clisp.org>
66846
66847         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66848         always.
66849         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66850
66851 2005-08-16  Bruno Haible  <bruno@clisp.org>
66852
66853         * m4/mbiter.m4: New file.
66854
66855 2005-08-16  Bruno Haible  <bruno@clisp.org>
66856
66857         * m4/mbfile.m4: New file.
66858
66859 2005-08-16  Bruno Haible  <bruno@clisp.org>
66860
66861         * m4/mbchar.m4: New file.
66862
66863 2005-08-16  Bruno Haible  <bruno@clisp.org>
66864
66865         * lib/tls.h: New file, from GNU gettext.
66866         * lib/tls.c: New file, from GNU gettext.
66867
66868 2005-08-16  Bruno Haible  <bruno@clisp.org>
66869
66870         * lib/strnlen1.h: New file.
66871         * lib/strnlen1.c: New file.
66872
66873 2005-08-16  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66876         (mbi_init): Update.
66877         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66878         NUL byte, not after it.
66879
66880 2005-08-16  Bruno Haible  <bruno@clisp.org>
66881
66882         * lib/strcase.h (strcasecmp): Add note in comments.
66883         * lib/strncasecmp.c: Use code from strcasecmp.c.
66884         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66885         (strcasecmp): Work correctly in multibyte locales.
66886
66887 2005-08-16  Bruno Haible  <bruno@clisp.org>
66888
66889         * lib/mbiter.h: New file.
66890
66891 2005-08-16  Bruno Haible  <bruno@clisp.org>
66892
66893         * lib/mbfile.h: New file.
66894
66895 2005-08-16  Bruno Haible  <bruno@clisp.org>
66896
66897         * lib/mbchar.h: New file.
66898         * lib/mbchar.c: New file.
66899
66900 2005-08-16  Bruno Haible  <bruno@clisp.org>
66901
66902         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66903         the valid ones. Makes the comparison operations transitive:
66904         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66905         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66906
66907 2005-08-15  Simon Josefsson  <jas@extundo.com>
66908
66909         * modules/ssize_t (License): Change to 'unlimited'.
66910
66911         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66912
66913 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66916         Add comments for each pending glibc patch.
66917
66918 2005-08-15  Bruno Haible  <bruno@clisp.org>
66919
66920         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66921         __cplusplus is defined.
66922
66923 2005-08-14  Jim Meyering  <jim@meyering.net>
66924
66925         Sync from coreutils.
66926
66927         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66928         Use the hash-table-based cycle-detection code not just when
66929         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66930         Reported by James Youngman in
66931         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66932         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66933         FTS_TIGHT_CYCLE_CHECK.
66934         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66935         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66936         once again.
66937         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66938         * lib/fts.c (fd_safer): Remove decl.
66939         Include fcntl--.h rather than unistd-safer.h
66940         (fts_safe_changedir): Don't call fd_safer; no longer needed
66941         now that we include fcntl--.h.
66942
66943 2005-08-12  Simon Josefsson  <jas@extundo.com>
66944
66945         * modules/getndelim2: Use ssize_t module.
66946         * modules/getnline: Likewise.
66947         * modules/safe-read: Likewise.
66948         * modules/xreadlink: Likewise.
66949
66950         * modules/ssize_t: New file.
66951
66952 2005-08-12  Simon Josefsson  <jas@extundo.com>
66953
66954         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66955
66956 2005-08-12  Simon Josefsson  <jas@extundo.com>
66957
66958         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66959         ssize_t.
66960
66961 2005-08-12  Simon Josefsson  <jas@extundo.com>
66962
66963         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66964         readline, getdelim and check_version.
66965         (Support for systems lacking ISO C 99: Sizes of integer types):
66966         Add size_max.
66967
66968 2005-08-12  Bruno Haible  <bruno@clisp.org>
66969
66970         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66971
66972 2005-08-11  Simon Josefsson  <jas@extundo.com>
66973
66974         * modules/readline: New file.
66975
66976         * modules/strnlen (Files): Add strnlen.h.
66977
66978 2005-08-11  Simon Josefsson  <jas@extundo.com>
66979
66980         * m4/readline.m4: New file.
66981
66982 2005-08-11  Simon Josefsson  <jas@extundo.com>
66983
66984         * lib/readline.h, readline.c: New file.
66985
66986 2005-08-11  Simon Josefsson  <jas@extundo.com>
66987
66988         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66989         gl_AVOID.
66990
66991 2005-08-11  Bruno Haible  <bruno@clisp.org>
66992
66993         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66994
66995 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66996
66997         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66998
66999 2005-08-10  Simon Josefsson  <jas@extundo.com>
67000
67001         * tests/test-iconvme.c: New file.
67002
67003 2005-08-10  Simon Josefsson  <jas@extundo.com>
67004
67005         * m4/strnlen.m4: New file.
67006
67007         * m4/strndup.m4: Don't check for strnlen declaration, done in
67008         strnlen.m4.
67009
67010 2005-08-10  Simon Josefsson  <jas@extundo.com>
67011
67012         * lib/strndup.c: Use strnlen.h.
67013
67014         * lib/strnlen.h: New file.
67015
67016 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67017
67018         * README: Typos.
67019
67020 2005-08-02  Simon Josefsson  <jas@extundo.com>
67021
67022         * modules/readline: New file.
67023
67024 2005-08-02  Simon Josefsson  <jas@extundo.com>
67025
67026         * modules/getdelim: New file.
67027
67028         * modules/getline: Rewrite, don't use getndelim2.
67029
67030 2005-08-02  Simon Josefsson  <jas@extundo.com>
67031
67032         * m4/getline.m4: Separate out getdelim stuff into separate module.
67033
67034         * m4/getdelim.m4: New file.
67035
67036 2005-08-02  Simon Josefsson  <jas@extundo.com>
67037
67038         * lib/getline.h, getline.c: Rewrite.
67039
67040         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67041
67042 2005-07-31  Bruno Haible  <bruno@clisp.org>
67043
67044         * lib/lock.h (gl_lock_initializer): New macro.
67045         (gl_lock_define_initialized): Use it.
67046         (gl_rwlock_initializer): New macro.
67047         (gl_rwlock_define_initialized): Use it.
67048         (gl_recursive_lock_initializer): New macro.
67049         (gl_recursive_lock_define_initialized): Use it.
67050
67051 2005-07-30  Karl Berry  <karl@gnu.org>
67052
67053         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67054         Report from Ben Pfaff, regarding getopt.
67055
67056 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67059         normal way.
67060         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67061         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67062         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67063         (gl_GETOPT): Use the new macros.  Most of the implementation
67064         is moved to the new macros.  This is for programs like Emacs
67065         that don't want all the functionality of gl_GETOPT.
67066
67067 2005-07-26  Bruno Haible  <bruno@clisp.org>
67068
67069         * m4/lock.m4: Update from GNU gettext.
67070
67071 2005-07-26  Bruno Haible  <bruno@clisp.org>
67072
67073         * lib/lock.h: Update from GNU gettext.
67074         * lib/lock.c: Update from GNU gettext.
67075
67076 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67079         obsolescent AC_TRY_RUN.  Include the default includes files, for
67080         'exit'.
67081
67082 2005-07-24  Bruno Haible  <bruno@clisp.org>
67083
67084         * modules/visibility: New file.
67085         * MODULES.html.sh (Misc): Add visibility.
67086
67087 2005-07-24  Bruno Haible  <bruno@clisp.org>
67088
67089         * m4/visibility.m4: New file.
67090
67091 2005-07-24  Bruno Haible  <bruno@clisp.org>
67092
67093         * doc/visibility.texi: New file.
67094
67095 2005-07-22  Bruno Haible  <bruno@clisp.org>
67096
67097         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67098         $(ALLOCA_H), redundant through BUILT_SOURCES.
67099         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67100         redundant through BUILT_SOURCES.
67101         * modules/byteswap (Makefile.am): Remove explicit dependency on
67102         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67103         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67104         $(FNMATCH_H), redundant through BUILT_SOURCES.
67105         * modules/getopt (Makefile.am): Remove explicit dependency on
67106         $(GETOPT_H), redundant through BUILT_SOURCES.
67107         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67108         redundant through BUILT_SOURCES.
67109         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67110         redundant through BUILT_SOURCES.
67111         * modules/stdbool (Makefile.am): Remove explicit dependency on
67112         $(STDBOOL_H), redundant through BUILT_SOURCES.
67113         * modules/stdint (Makefile.am): Remove explicit dependency on
67114         $(STDINT_H), redundant through BUILT_SOURCES.
67115         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67116         Remove explicit dependency on $(SYSEXITS_H).
67117         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67118
67119 2005-07-18  Simon Josefsson  <jas@extundo.com>
67120
67121         * lib/check-version.c (check_version): Accept identical versions too.
67122
67123 2005-07-18  Bruno Haible  <bruno@clisp.org>
67124
67125         * modules/lock: New file.
67126         * MODULES.html.sh (Multithreading): New section.
67127
67128 2005-07-18  Bruno Haible  <bruno@clisp.org>
67129
67130         * m4/lock.m4: New file, from GNU gettext.
67131
67132 2005-07-18  Bruno Haible  <bruno@clisp.org>
67133
67134         * lib/lock.h: New file, from GNU gettext.
67135         * lib/lock.c: New file, from GNU gettext.
67136
67137 2005-07-18  Bruno Haible  <bruno@clisp.org>
67138
67139         * lib/lock.h (gl_once_t): New type.
67140         (gl_once_define, gl_once): New macros.
67141         * lib/lock.c (fresh_once): New variable.
67142         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67143         functions.
67144
67145 2005-07-16  Simon Josefsson  <jas@extundo.com>
67146
67147         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67148         workaround, suggested by Bruno.
67149
67150 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         * modules/xalloc (Depends-on): Add xalloc-die.
67153         * modules/xvasprintf (Depends-on): Add xalloc-die.
67154
67155 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67158         with a minor change.
67159
67160 2005-07-15  Bruno Haible  <bruno@clisp.org>
67161
67162         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67163         When using lib/poll.c, define poll as rpl_poll.
67164
67165 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * modules/argp (Depends-on): Remove unlocked-io.
67168
67169 2005-07-14  Derek Price  <derek@ximbiot.com>
67170
67171         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67172         for glob symlink bug.
67173
67174 2005-07-14  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67177         Instead, test for *_unlocked function declarations directly.
67178
67179 2005-07-11  Simon Josefsson  <jas@extundo.com>
67180
67181         * modules/size_max: New file.
67182
67183         * modules/xsize: Depend on size_max module for size_max.m4.
67184
67185 2005-07-11  Simon Josefsson  <jas@extundo.com>
67186
67187         * lib/size_max.h: New file.
67188
67189 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67190
67191         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67192         copyright symbol and the year.
67193         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67194         (version_etc_va): Use parameterized copyright notice.
67195         Reword to conform to the current GNU coding standards.
67196
67197 2005-07-11  Karl Berry  <karl@gnu.org>
67198
67199         * doc/gnulib.texi (Quoting): new node.
67200         (Initial import): more info, from Patrice.
67201
67202 2005-07-11  Bruno Haible  <bruno@clisp.org>
67203
67204         * gnulib-tool (func_usage): Document option --avoid.
67205         (Command line options): Handle --avoid.
67206         (func_acceptable): New function.
67207         (func_modules_transitive_closure): Use it.
67208
67209 2005-07-11  Bruno Haible  <bruno@clisp.org>
67210
67211         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67212         Reported by Jim Meyering.
67213
67214 2005-07-10  Bruno Haible  <bruno@clisp.org>
67215
67216         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67217         Needed when size_t is smaller than 'unsigned int'.
67218         Reported by Paul Eggert.
67219
67220 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67221
67222         * modules/argp (Depends-on): Add unlocked-io
67223
67224 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67225
67226         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67227         block of defines.
67228
67229 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67230
67231         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67232         fix now.
67233
67234 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67235         and Paul Eggert  <eggert@cs.ucla.edu>
67236
67237         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67238         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67239
67240 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67241
67242         * modules/regex (Files): Add lib/regex_internal.c,
67243         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67244         (Depends-on): Add extensions.
67245         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67246
67247 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67248
67249         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67250         pathconf.
67251         * m4/same.m4 (gl_SAME): Likewise.
67252         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67253
67254         * m4/regex.m4: Adjust to new libc regex implementation.
67255         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67256         all the .c and .h parts of (the new) regex.
67257         Quote the m4 stuff better.
67258         Check for RE_ICASE bug of old gnulib.
67259         Check for REG_STARTEND of recent libc.
67260         Rename local variables from jm_* to gl_*.
67261         Quote operand of "test -f".
67262         Say "recent enough" version of libc, not "version 2".
67263         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67264         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67265         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67266         Remove check for btowc, isascii.
67267         Require AM_LANGINFO_CODESET.
67268
67269 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67270
67271         * lib/regex.c, regex.h: Sync from libc.
67272         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67273         * lib/regexec.c:
67274         New files, synced from libc, except that regex_internal.h
67275         currently has a small porting fix.
67276
67277 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67278
67279         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67280         regex_internal.c, regexec.c.
67281         Add regex_internal.h too, but as a comment, since the libc version
67282         is currently broken in gnulib mode.
67283
67284 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67285
67286         Support programs like Emacs that use gnulib but not gettext.
67287         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67288         * modules/gettext-h: New file.
67289         * modules/gettext (Files): Remove lib/gettext.h.
67290         (Depends-on): Add gettext-h.
67291         (Makefile.am): Remove lib_SOURCES.
67292         * modules/argmatch, modules/c-stack, modules/closeout:
67293         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67294         * modules/execute, modules/file-type, modules/getaddrinfo:
67295         * modules/getopt, modules/human, modules/javacomp:
67296         * modules/javaexec, modules/mkdir-p, modules/obstack:
67297         * modules/openat, modules/pagealign_alloc, modules/pipe:
67298         * modules/quotearg, modules/regex, modules/rpmatch:
67299         * modules/unicodeio, modules/userspec, modules/version-etc:
67300         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67301         * modules/xsetenv:
67302         Depend on gettext-h, not gettext.
67303
67304 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67305
67306         * gnulib-tool (func_import): Add support for 'public domain' license.
67307         * modules/alloca, modules/atexit, modules/memmove:
67308         Now public domain, not GPL.
67309         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67310         * modules/realloc, modules/strerror, modules/strtod:
67311         Now LGPL, not GPL.
67312
67313 2005-07-05  Bruno Haible  <bruno@clisp.org>
67314
67315         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67316         autoconf CVS. Needed for mingw.
67317
67318 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         Remove the dependency of the strftime module on the tzset module.
67321         * modules/strftime (Depends-on): Remove dependency on tzset.
67322
67323 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         Remove the dependency of the strftime module on the tzset module.
67326         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67327         gl_FUNC_TZSET_CLOBBER.
67328
67329 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         Remove the dependency of the strftime module on the tzset module.
67332         * lib/strftime.c (my_strftime)
67333         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67334         Copy the input structure, to work around some of the bug with
67335         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67336         Solaris releases, you should also use the tzset module, but we won't
67337         require it as a dependency any more since we don't want LGPLed code
67338         to depend on GPLed code.
67339
67340 2005-07-02  Jim Meyering  <jim@meyering.net>
67341
67342         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67343         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67344         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67345         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67346
67347 2005-07-02  Jim Meyering  <jim@meyering.net>
67348
67349         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67350
67351 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67352
67353         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67354         declares only 'struct timespec;' (!).
67355
67356 2005-07-01  Jim Meyering  <jim@meyering.net>
67357
67358         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67359         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67360         * lib/save-cwd.c, tempname.c:
67361         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67362         and don't include <sys/file.h>).
67363
67364 2005-06-29  Jim Meyering  <jim@meyering.net>
67365
67366         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67367         type name.  Use the variable name instead.
67368         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67369         Likewise.
67370
67371 2005-06-28  Simon Josefsson  <jas@extundo.com>
67372
67373         * modules/check-version (Files): Add check-version.m4.
67374
67375 2005-06-28  Simon Josefsson  <jas@extundo.com>
67376
67377         * m4/check-version.m4: New file, suggested by Jim Meyering
67378         <jim@meyering.net>.
67379
67380 2005-06-28  Simon Josefsson  <jas@extundo.com>
67381
67382         * lib/check-version.h, lib/check-version.c: New files.
67383
67384 2005-06-28  Simon Josefsson  <jas@extundo.com>
67385
67386         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67387         collision with global variable.  Better indentation.  Don't
67388         increment buffer pointer beyond buffer end.  Based on comments
67389         from Paul Eggert <eggert@cs.ucla.edu>.
67390
67391         * lib/base64.h: Indent.
67392
67393 2005-06-28  Simon Josefsson  <jas@extundo.com>
67394
67395         * doc/gnulib.texi (Library version handling): New section.
67396
67397 2005-06-28  Jim Meyering  <jim@meyering.net>
67398
67399         * check-module (find_included_lib_files): Hard-code another
67400         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67401         but modules/fts-lgpl (correctly) does not list those files.
67402
67403         * modules/canonicalize (Files): Add lib/pathmax.h.
67404
67405 2005-06-25  Simon Josefsson  <jas@extundo.com>
67406
67407         * modules/check-version: New file.
67408
67409 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67410
67411         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67412         initializer of struct addrinfo, as an indication that we don't
67413         care how many members the structure has.
67414
67415 2005-06-24  Derek Price  <derek@ximbiot.com>
67416         and Bruno Haible  <bruno@clisp.org>
67417
67418         Remove stat module & update lstat.
67419         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67420         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67421         * m4/stat.m4: Remove this file.
67422
67423 2005-06-24  Derek Price  <derek@ximbiot.com>
67424         and Bruno Haible  <bruno@clisp.org>
67425
67426         Remove stat module & update lstat.
67427         * lib/stat.c: Remove this file...
67428         (slash_aware_lstat): ...moving this content and its support...
67429         * lib/lstat.c (rpl_lstat): ...into here.
67430         * lib/lstat.h: New file.
67431
67432 2005-06-24  Derek Price  <derek@ximbiot.com>
67433         and Bruno Haible  <bruno@clisp.org>
67434
67435         Remove stat module & update lstat.
67436         * config/srclist.txt (libc sources): Remove stat.
67437
67438 2005-06-24  Derek Price  <derek@ximbiot.com>
67439         and Bruno Haible  <bruno@clisp.org>
67440
67441         Remove stat module & update lstat.
67442         * MODULES.html.sh (stat): Remove.
67443         * MODULES.html: Regenerated.
67444         * modules/lstat (Description): Correct function name.
67445         (Files): Add "lstat.h".
67446         (Depends-on): Remove stat, add xalloc, stat-macros.
67447         * modules/stat: Remove this file.
67448         (Include): Add "lstat.h", remove <sys/stat.h>.
67449
67450 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67451
67452         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67453         (ranged_convert): Don't save conversion in a temporary struct.
67454         This causes a warning with GCC 4.0.0, and anyway in the typical
67455         case it's not worth the extra 100 bytes or so of code.
67456         (ranged_convert, __mktime_internal): When calling a function via a
67457         pointer P, use P () rather than (*P) (), as we now assume C89 or
67458         better.
67459
67460 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67461
67462         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67463         "who -r" failed to give output.  Problem reported by Tim Waugh.
67464
67465         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67466         (xcalloc): Use it to avoid needless tests.
67467         Problem reported by Jim Meyering.
67468
67469 2005-06-20  Derek Price  <derek@ximbiot.com>
67470
67471         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67472         unnecessary for Autoconfs > 2.59c.
67473
67474 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67475
67476         * lib/argp.h (__option_is_short): Check upper limit of
67477         __key. Isprint() requires its argument to have the value
67478         of an unsigned char or EOF.
67479
67480 2005-06-16  Jim Meyering  <jim@meyering.net>
67481
67482         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67483         when either N or S is zero.
67484
67485 2005-06-16  Derek Price  <derek@ximbiot.com>
67486
67487         * m4/bison.m4: Declare YACC & YFLAGS precious.
67488
67489 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67490
67491         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67492         multibyte string or pattern, fall back on unibyte matching.
67493         Problem reported by James Youngman.
67494
67495 2005-06-08  Bruno Haible  <bruno@clisp.org>
67496
67497         * modules/csharpcomp: New file.
67498         * MODULES.html.sh (C#): Add csharpcomp.
67499
67500 2005-06-08  Bruno Haible  <bruno@clisp.org>
67501
67502         * m4/csharpcomp.m4: New file, from GNU gettext.
67503
67504 2005-06-08  Bruno Haible  <bruno@clisp.org>
67505
67506         * lib/csharpcomp.h: New file, from GNU gettext.
67507         * lib/csharpcomp.c: New file, from GNU gettext.
67508         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67509
67510 2005-06-08  Bruno Haible  <bruno@clisp.org>
67511
67512         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67513         warning on mingw.
67514
67515 2005-06-07  Derek Price  <derek@ximbiot.com>
67516
67517         Sync from CVS.
67518         * lib/glob_.h: Indent nested #ifdef.
67519
67520 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67521
67522         Sync from coreutils.
67523         Use "file name" when talking about file names, instead of "filename"
67524         or "path", as per the GNU coding standards.
67525         * lib/mkdir-p.c: Renamed from makepath.c.
67526         (make_dir_parents): Renamed from make_path.  All callers changed.
67527         * lib/mkdir-p.h: Likewise.  All includers changed.
67528         * lib/filenamecat.c: Renamed from path-concat.c.
67529         (file_name_concat): Renamed from path_concat.  All callers changed.
67530         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67531         * lib/filenamecat.h: Likewise.  All includers changed.
67532         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67533         in comments or local variable names.
67534         * lib/basename.c: Likewise.
67535         * lib/canonicalize.c, canonicalize.h: Likewise.
67536         * lib/dirname.c, dirname.h: Likewise.
67537         * lib/euidaccess.c: Likewise.
67538         * lib/exclude.c: Likewise
67539         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67540         * lib/fsusage.c, fsuage.h: Likewise.
67541         * lib/fts.c, fts_.h: Likewise.
67542         * lib/getcwd.c: Likewise.
67543         * lib/getloadavg.c: Likewise.
67544         * lib/mkstemp.c: Likewise.
67545         * lib/mountlist.c, mountlist.h: Likewise.
67546         * lib/openat.c, openat.h: Likewise.
67547         * lib/readlink-stub.c: Likewise.
67548         * lib/readutmp.c, readutmp.h: Likewise.
67549         * lib/rename.c: Likewise.
67550         * lib/rmdir.c: Likewise.
67551         * lib/same.c: Likewise.
67552         * lib/savedir.c: Likewise.
67553         * lib/stripslash.c: Likewise.
67554         * lib/tempname.c: Likewise.
67555         * lib/xreadlink.c: Likewise.
67556         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67557         All uses changed.
67558         * lib/exclude.h: Likewise.
67559
67560         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67561         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67562         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67563         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67564         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67565         files have been getting away with it for years (MORE/BSD 4.3
67566         is extinct now).
67567         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67568         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67569
67570         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67571         Define to 256, not 255, as per modern POSIX.
67572
67573 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         Sync from coreutils.
67576         Use "file name" when talking about file names, instead of "filename"
67577         or "path", as per the GNU coding standards.
67578         * MODULES.html.sh: mkdir-p renamed from makepath.
67579         filenamecat renamed from path-concat.
67580         * modules/filenamecat: Renamed from modules/path-concat.
67581         (Files): filenamecat.h and filenamecat.c renamed from
67582         path-concat.h and path-concat.c.
67583         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67584         (Include): filenamecat.h, not path-concat.h.
67585         * modules/mkdir-p: Renamed from modules/makepath.
67586         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67587         makepath.c.
67588         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67589         (Include): mkdir-p.h, not makepath.h.
67590
67591 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67592
67593         Sync from coreutils.
67594         * m4/mkdir-p.m4: Renamed from makepath.m4.
67595         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67596         Rename files from makepath.c to mkdir-p.c, and from
67597         makepath.h to mkdir-p.h.
67598         * m4/filenamecat.m4: Renamed from path-concat.m4.
67599         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67600         Rename files from path-concat.c to filenamecat.c,
67601         and from path-concat.h to filenamecat.h.
67602         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67603         "file name" in local variables or comments.
67604         * m4/rename.m4: Likewise.
67605
67606 2005-06-01  Bruno Haible  <bruno@clisp.org>
67607
67608         * modules/csharpexec: New file.
67609         * MODULES.html.sh (C#): New section.
67610
67611 2005-06-01  Bruno Haible  <bruno@clisp.org>
67612
67613         * m4/csharp.m4: New file, from GNU gettext.
67614         * m4/csharpexec.m4: New file, from GNU gettext.
67615
67616 2005-06-01  Bruno Haible  <bruno@clisp.org>
67617
67618         * lib/csharpexec.h: New file, from GNU gettext.
67619         * lib/csharpexec.c: New file, from GNU gettext.
67620         * lib/csharpexec.sh.in: New file, from GNU gettext.
67621
67622 2005-05-31  Derek Price  <derek@ximbiot.com>
67623             Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         Sync from cvs.
67626         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67627
67628 2005-05-31  Derek Price  <derek@ximbiot.com>
67629             Paul Eggert  <eggert@cs.ucla.edu>
67630
67631         Sync from cvs.
67632         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67633
67634 2005-05-29  Derek Price  <derek@ximbiot.com>
67635
67636         * config/srclist.txt (glob_.h, glob.c): Add these files.
67637
67638 2005-05-29  Derek Price  <derek@ximbiot.com>
67639
67640         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67641         * modules/glob: New file.
67642         * modules/getlogin_r: Add link to POSIX spec in description.
67643
67644 2005-05-29  Derek Price  <derek@ximbiot.com>
67645             Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * m4/glob.m4: New file.
67648
67649 2005-05-29  Derek Price  <derek@ximbiot.com>
67650             Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         * lib/glob_.h, lib/glob.c: New files.
67653
67654 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67657         * modules/fts-lgpl (Depends-on): Remove gettext.
67658
67659 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67660
67661         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67662         and don't require gt_INTTYPES_PRI.
67663
67664 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67665
67666         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67667
67668         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67669         the configuration hassle isn't worth it.
67670         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67671         (LONGEST_MODIFIER, PRIuMAX): Remove.
67672
67673 2005-05-27  Bruno Haible  <bruno@clisp.org>
67674
67675         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67676
67677 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67678
67679         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67680         _POSIX_PTHREAD_SEMANTICS for Solaris.
67681
67682 2005-05-25  Derek Price  <derek@ximbiot.com>
67683
67684         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67685
67686 2005-05-25  Derek Price  <derek@ximbiot.com>
67687             Paul Eggert  <eggert@cs.ucla.edu>
67688
67689         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67690         * lib/getlogin_r.c, getlogin_r.h: New files.
67691
67692 2005-05-25  Bruno Haible  <bruno@clisp.org>
67693             Derek Price  <derek@ximbiot.com>
67694
67695         * lib/getlogin_r.h: Simplify API documentation.
67696
67697 2005-05-23  Derek Price  <derek@ximbiot.com>
67698
67699         * modules/minmax (Files): Add m4/minmax.m4.
67700         (configure.ac): Add gl_MINMAX.
67701
67702 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67703
67704         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67705         so that unistd-safer.h (GPL'ed code) need not be included.
67706
67707 2005-05-22  Bruno Haible  <bruno@clisp.org>
67708
67709         * m4/minmax.m4: New file.
67710         Based on a patch by Derek Price <derek@ximbiot.com>.
67711
67712 2005-05-22  Bruno Haible  <bruno@clisp.org>
67713
67714         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67715         (INT64_MIN): Fix definition.
67716         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67717
67718         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67719         NEED_SIGNED_INT_TYPES.
67720
67721         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67722         HAVE_SYSTEM_INTTYPES.
67723
67724 2005-05-22  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67727         Also include <sys/param.h> if it defines MIN, MAX.
67728         Based on a patch by Derek Price <derek@ximbiot.com>.
67729
67730 2005-05-21  Jim Meyering  <jim@meyering.net>
67731
67732         * modules/fts (Files): Add m4/inttypes-pri.m4.
67733         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67734
67735 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67736
67737         New fts module.
67738         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67739         (setup_dir, free_dir): New functions.
67740         (enter_dir, leave_dir): Define trivial
67741         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67742         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67743         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67744         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67745         Move to fts-cycle.c.
67746         (fts_open): Use setup_dir.
67747         (fts_close): Use free_dir.
67748         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67749         This adds a label and some gotos, but the alternatives were messier.
67750         Check for memory allocation failure when entering a dir.
67751         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67752         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67753         (FTS): New member fts_cycle, that is a union that contains the
67754         old active_dir_ht and cycle_state.  All uses changed to mention
67755         fts_cycle.ht and fts_cycle.state.
67756         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67757         fts.c, with the following changes:
67758         (setup_dir, free_dir): New functions.
67759         (enter_dir): Now returns bool.  Return true if successful, false
67760         if memory exhausted.  All callers changed.
67761         Do not bother partly cleaning up on
67762         memory allocation failure; that is free_dir's job.
67763         However, free ad if hash_insert fails, to avoid memory leak.
67764         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67765         fts->fts_options to see which union member to use.
67766
67767 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67768
67769         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67770         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67771
67772 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67773
67774         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67775
67776 2005-05-20  Jim Meyering  <jim@meyering.net>
67777
67778         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67779         Now a macro, to pacify GCC.
67780
67781 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67782
67783         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67784         of -1.
67785
67786 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67787
67788         * lib/chown.c (rpl_chown): Return -1 on failure.
67789
67790 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67791
67792         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67793         Don't check for stddef.h.
67794         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67795         don't use its results.
67796         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67797         since we include them unconditionally.  Don't require
67798         AM_STDBOOL_H, since stdbool is a prerequisite.
67799         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67800         since we assume C89 or better.
67801         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67802         as we don't use their results.
67803         Don't check for fchdir, memmove, memset, strrchr, as we use
67804         them unconditionally.
67805         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67806         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67807
67808 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67809
67810         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67811         Include <stddef.h> unconditionally, since we assume C89 now.
67812         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67813         * lib/fts.c: Include fts_.h first, to check interface.
67814         Do not include intprops.h; no longer needed.
67815         Include cycle-check.h and hash.h, since fts_.h no longer does.
67816         Remove unnecessary casts of closedir to void.
67817         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67818         decide whether to decrement nlinks.
67819         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67820         (FTS): Use struct hash_table * instead of Hash_table, so that
67821         we no longer need to include hash.h here.
67822
67823 2005-05-18  Jim Meyering  <jim@meyering.net>
67824
67825         * modules/dirfd (License): Change to LGPL.  Most of the code
67826         is already in the public domain.
67827
67828 2005-05-18  Jim Meyering  <jim@meyering.net>
67829
67830         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67831         Reported by Yoann Vandoorselaere.
67832
67833 2005-05-17  Jim Meyering  <jim@meyering.net>
67834
67835         * m4/fts.m4: New file, from coreutils.
67836
67837 2005-05-17  Jim Meyering  <jim@meyering.net>
67838
67839         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67840
67841 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         Sync from coreutils.
67844         * m4/unlinkdir.m4: New file.
67845
67846 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67847
67848         Sync from coreutils.
67849         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67850         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67851         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67852         White space changes only.
67853         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67854         special.
67855         * lib/yesno.c: Include getline.h, not ctype.h.
67856         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67857         Use getline to remove arbitrary restriction on response length.
67858
67859 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * config/srclist-update: Spell out "Street" in FSF postal
67862         mail address; this is the style the FSF seems to prefer.
67863
67864         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67865         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67866         this updates FSF postal mail address.
67867
67868         Sync from coreutils.
67869         * modules/unlinkdir: New file.
67870         * modules/yesno (Depends-on): Add getline.
67871         * MODULES.html.sh (File system functions): Add unlinkdir.
67872
67873 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67876         lib/strsep.h:
67877         Change the initial comment to refer to GPL, not LGPL.
67878         gnulib-tool will change it to LGPL as needed.
67879
67880         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67881         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67882         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67883         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67884         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67885         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67886         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67887         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67888         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67889         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67890         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67891         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67892         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67893         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67894         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67895         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67896         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67897         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67898         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67899         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67900         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67901         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67902         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67903         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67904         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67905         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67906         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67907         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67908         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67909         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67910         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67911         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67912         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67913         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67914         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67915         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67916         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67917         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67918         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67919         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67920         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67921         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67922         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67923         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67924         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67925         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67926         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67927         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67928         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67929         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67930         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67931         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67932         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67933         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67934         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67935         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67936         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67937         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67938         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67939         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67940         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67941         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67942         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67943         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67944         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67945         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67946         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67947         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67948         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67949         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67950         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67951         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67952         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67953         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67954         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67955         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67956         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67957         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67958         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67959         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67960         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67961         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67962         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67963         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67964         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67965         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67966         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67967         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67968         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67969         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67970         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67971         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67972         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67973         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67974         lib/yesno.c, lib/yesno.h:
67975         Update FSF postal mail address.
67976
67977 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67978
67979         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67980         tests/test-memmem.c, tests/test-stpncpy.c:
67981         Update FSF postal mail address.
67982
67983 2005-05-13  Bruno Haible  <bruno@clisp.org>
67984
67985         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67986         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67987         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67988         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67989         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67990         Add support for 64-bit integers in the MSVC compiler.
67991
67992 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67993
67994         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67995
67996 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67997
67998         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67999
68000 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68001
68002         * doc/getdate.texi (General date syntax): Don't say that date
68003         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68004         Problem reported by Nic Ferrier.
68005
68006 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68007
68008         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68009         specified in ai_socktype. Fix invalid ai_protocol
68010         check. ai_protocol is usually set to 0 or depending on
68011         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68012         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68013         ai_socktype / ai_protocol in the returned addrinfo structure.
68014
68015 2005-05-10  Simon Josefsson  <jas@extundo.com>
68016
68017         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68018         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68019
68020 2005-05-10  Karl Berry  <karl@gnu.org>
68021
68022         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68023         (from http://www.gnu.org/licenses).
68024         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68025         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68026         fdl.texi suffices.
68027
68028 2005-05-10  Karl Berry  <karl@gnu.org>
68029
68030         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68031         (COPYING.DOC): remove.
68032
68033         * config/srclist-update: new FSF address.
68034
68035 2005-05-10  Derek Price  <derek@ximbiot.com>
68036
68037         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68038         possible.
68039
68040 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68041             Bruno Haible  <bruno@clisp.org>
68042
68043         * modules/inet_ntop: New file.
68044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68045         inet_ntop.
68046
68047 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68048             Bruno Haible  <bruno@clisp.org>
68049
68050         * m4/inet_ntop.m4: New file.
68051
68052 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68053             Bruno Haible  <bruno@clisp.org>
68054
68055         * lib/inet_ntop.h: New file.
68056         * lib/inet_ntop.c: New file, from glibc with modifications.
68057
68058 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68059
68060         * modules/time_r (License): Change to LGPL.
68061         * modules/extensions (License): Change to LGPL.  Actually,
68062         the license is more permissive than that, but currently gnulib-tool
68063         doesn't know how to handle more-permissive licenses.
68064
68065         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68066         Problem reported by Dave Love.
68067
68068 2005-05-08  Jim Meyering  <jim@meyering.net>
68069
68070         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68071         blank.
68072
68073 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68074
68075         * modules/argmatch (Depends-on): Add stdbool.
68076         * modules/backupfile (Depends-on): Likewise.
68077         * modules/chdir-long (Depends-on): Likewise.
68078         * modules/closeout (Depends-on): Likewise.
68079         * modules/cycle-check (Depends-on): Likewise.
68080         * modules/dirname (Depends-on): Likewise.
68081         * modules/fnmatch (Depends-on): Likewise.
68082         * modules/fsusage (Depends-on): Likewise.
68083         * modules/fwriteerror (Depends-on): Likewise.
68084         * modules/getcwd (Depends-on): Likewise.
68085         * modules/getloadavg (Depends-on): Likewise.
68086         * modules/hard-locale (Depends-on): Likewise.
68087         * modules/makepath (Depends-on): Likewise.
68088         * modules/mountlist (Depends-on): Likewise.
68089         * modules/nanosleep (Depends-on): Likewise.
68090         * modules/posixtm (Depends-on): Likewise.
68091         * modules/quotearg (Depends-on): Likewise.
68092         * modules/readtokens (Depends-on): Likewise.
68093         * modules/readtokens0 (Depends-on): Likewise.
68094         * modules/readutmp (Depends-on): Likewise.
68095         * modules/save-cwd (Depends-on): Likewise.
68096         * modules/strftime (Depends-on): Likewise.
68097         * modules/userspec (Depends-on): Likewise.
68098         * modules/utimecmp (Depends-on): Likewise.
68099         * modules/xgetcwd (Depends-on): Likewise.
68100         * modules/xnanosleep (Depends-on): Likewise.
68101         * modules/xstrtod (Depends-on): Likewise.
68102         * modules/yesno (Depends-on): Likewise.
68103
68104 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68107         needless checks.
68108
68109 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68110
68111         Merge from coreutils.  Among other things,
68112         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68113         * lib/fd-safer.c: New file.
68114         * lib/fcntl-safer.h, open-safer.c: Remove.
68115         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68116         * lib/dup-safer.c: Include unistd-safer.h first.
68117         Don't include errno.h.
68118         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68119         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68120         * lib/file-type.c: Rely on file-type.h change.
68121         * lib/getloadavg.c: Include unistd-safer.h.
68122         (getloadavg): Use safer open.
68123         * lib/getusershell.c: Include "stdio-safer.h".
68124         (getusershell): Use safer fopen.
68125         * lib/long-options.c (long_options): Use NULL rather than 0.
68126         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68127         'free'.
68128         * lib/modechange.c: Likewise.
68129         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68130         (MODE_DONE): New constant.
68131         (struct mode_change): Remove 'next' member.
68132         (make_node_op_equals): New function; like the old one of the
68133         same name, except it allocates an array.
68134         (mode_compile, mode_create_from_ref): Use it.
68135         (mode_compile): Allocate result as an array, not a linked list.
68136         Parse octal string ourself, so that we catch mistakes like "+0".
68137         (mode_adjust): Arg is an array, not a linked list.
68138         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68139         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68140         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68141         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68142         Remove.  This is now stat-macros.h's job.
68143         (talloc): Remove.  All callers replaced by xalloc, so that
68144         our invokers don't have to worry about reporting memory failures.
68145         (make_node_op_equals): Remove.
68146         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68147         New constants.
68148         (struct mode_change): Moved here from modechange.h.
68149         (mode_append_entry): Remove.
68150         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68151         apps to have incorrect behavior.  Use simpler algorithm for head
68152         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68153         Detect more invalid usages rather than having somewhat-random behavior.
68154         Don't insert an "a=" action, as that leads to incorrect behavior.
68155         (mode_compile, mode_create_from_ref): Return NULL on error instead
68156         of an enum, since now there's only one way to have an error.  All
68157         callers changed.
68158         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68159         at the correct time.  Simplify calculation of "+u" and its ilk.
68160         Don't mishandle "+X".
68161         (mode_free): Remove "register" and localize decls.
68162         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68163         (struct mode_change): Move to modechange.c; callers don't
68164         need to see this stuff.
68165         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68166         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68167         (mode_change, mode_adjust): Reflect the new signatures noted above.
68168         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68169         that might redefine system include files.
68170         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68171         (my_usleep): Use NULL rather than (void *) 0.
68172         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68173         Use siginterrupt to specify that system calls should be interrupted.
68174         (rpl_nanosleep): Move initialization of suspended closer to call of
68175         my_usleep.
68176         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68177         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68178         (desirable_utmp_entry): New function.
68179         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68180         using x2nrealloc, to simplify logic.
68181         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68182         size calculation.  Do not assume utmp file is a regular file.
68183         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68184         (READ_UTMP_CHECK_PIDS): New constant.
68185         * lib/save-cwd.c: Include unistd-safer.h.
68186         (save_cwd): Use fd_safer.
68187         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68188         [!_LIBC] Include "stat-macros.h" instead.
68189         * lib/unistd-safer.h (fd_safer): New decl.
68190
68191 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * modules/getloadavg (Depends-on): Add unistd-safer.
68194         * modules/getusershell (Depends-on): Add stdio-safer.
68195         * modules/lstat (Depends-on): Remove xalloc.
68196         * modules/mkstemp (Depends-on): Add stat-macros.
68197         * modules/modechange (Depends-on): Remove xstrtol.
68198         Add stat-macros, xalloc.
68199         * modules/save-cwd (Depends-on): Add unistd-safer.
68200         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68201         * modules/unistd-safer (Files): Add lib/fd-safer.c
68202         (Makefile.am): Remove lib_SOURCES.
68203
68204         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68205         Remove fcntl-safer; unistd-safer supersedes it.
68206
68207 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68210         AC_HEADER_STAT.
68211         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68212         (gl_PREREQ_CHOWN): Remove.
68213         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68214         it.  Don't require AC_HEADER_STAT.
68215         (gl_PREREQ_LSTAT): Remove.
68216         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68217         Don't require AC_HEADER_STAT.
68218         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68219         (gl_PREREQ_RMDIR): Remove.
68220         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68221         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68222         the stat-macros module a prerequisite.
68223         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68224         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68225         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68226         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68227         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68228         variable names.
68229         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68230         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68231         variable prefixes.
68232         * m4/fcntl-safer.m4: Remove.
68233         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68234         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68235         Invoke gl_PREREQ_FD_SAFER.
68236         (gl_PREREQ_FD_SAFER): New macro.
68237         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68238         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68239         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68240         Remove duplicate call to AC_LIBOBJ(readutmp).
68241         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68242
68243         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68244         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68245
68246 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68247
68248         * MODULES.html.sh (Misc): Add byteswap.
68249
68250 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68251
68252         * modules/getcwd (Depends-on): Add extensions.
68253         * modules/openat (Depends-on): Likewise.
68254
68255 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68256
68257         * modules/byteswap: New file.
68258
68259 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68260
68261         * m4/byteswap.m4: New file.
68262
68263 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68264
68265         * lib/byteswap_.h: New file.
68266
68267 2005-04-25  Karl Berry  <karl@gnu.org>
68268
68269         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68270
68271 2005-04-25  Albert Chin  <china@thewrittenword.com>
68272
68273         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68274         Toolkit C bug.
68275
68276 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68277
68278         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68279         (func_ln_if_changed): Remove forcibly for no error message
68280         in case file does not exist.
68281
68282 2005-04-19  Simon Josefsson  <jas@extundo.com>
68283
68284         * gnulib-tool (Options): Make --symlink mean --symbolic.
68285
68286 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68287
68288         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68289
68290 2005-04-16  Simon Josefsson  <jas@extundo.com>
68291
68292         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68293
68294 2005-04-15  Simon Josefsson  <jas@extundo.com>
68295
68296         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68297
68298 2005-04-15  Simon Josefsson  <jas@extundo.com>
68299
68300         * gnulib-tool: Rename --symlink to --symbolic.
68301
68302 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68303
68304         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68305         symbolic links to files instead of copying/moving.  Add --aux-dir,
68306         specifying directory relative --dir where auxiliary build tools
68307         are placed.
68308
68309 2005-04-14  Bruno Haible  <bruno@clisp.org>
68310
68311         * modules/allocsa (License): Change to LGPL.
68312         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68313
68314 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68315
68316         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68317         that "UTC +1 second" continues to work.  Problem reported
68318         by Dmitry V. Levin.
68319         (relunit_snumber): New rule.
68320         (relunit): Use it.
68321
68322 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68323
68324         * lib/getdate.y (universal_time_zone_table): New constant.
68325         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68326         universal_time_zone_table.
68327         (lookup_zone): Prefer universal_time_zone_table to
68328         local_time_zone_table, so that "GMT" time stamps are allowed in
68329         London during the summer.  Problem reported by Ian Abbott.
68330
68331 2005-04-12  Jim Meyering  <jim@meyering.net>
68332
68333         * lib/human.c (humblock): Set *options even when returning due to
68334         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68335         warning from gcc-4.
68336
68337 2005-04-09  Jim Meyering  <jim@meyering.net>
68338
68339         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68340         -Wuninitialized: initialize tm0.tm_year.
68341
68342 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68345         count, since there's no maximum.  All uses changed.
68346         Add member dsts_seen.
68347         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68348         not being INT_MAX.
68349         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68350         Use pc_rels_seen to decide whther a date is absolute.
68351
68352         * lib/getdate.y (number): Don't overwrite year.
68353         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68354         check.
68355
68356 2005-04-02  Simon Josefsson  <jas@extundo.com>
68357
68358         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68359         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68360
68361 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68362
68363         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68364         where no absolute path name can be longer than PATH_MAX.
68365
68366 2005-03-27  Jim Meyering  <jim@meyering.net>
68367
68368         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68369
68370 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68373         "one's complement" -> "ones' complement" in comment, as per Knuth.
68374         "value of type" -> "type or expression" in comment.
68375         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68376
68377 2005-03-26  Jim Meyering  <jim@meyering.net>
68378
68379         Comment nits.
68380         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68381         Correct typos: s/or/of/.
68382
68383 2005-03-26  Jim Meyering  <jim@meyering.net>
68384
68385         * modules/check-include-files: Move to ../ and rename to...
68386         * check-module: ...this.
68387
68388 2005-03-25  Jim Meyering  <jim@meyering.net>
68389
68390         * modules/xvasprintf (Files): Add xalloc.h.
68391
68392 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68393
68394         * modules/gettext (Files): config/config.rpath ->
68395         build-aux/config.rpath
68396         * modules/iconv (Files): Likewise.
68397         Problem reported by Oskar Liljeblad.
68398
68399 2005-03-23  Jim Meyering  <jim@meyering.net>
68400
68401         * modules/check-include-files: New script to check for
68402         missing dependencies, multiple includes, etc.
68403
68404         * modules/c-strtold (Depends-on): Add xalloc.
68405         * modules/c-strtod (Depends-on): Add xalloc.
68406         * modules/hash (Depends-on): Add xalloc.
68407         (Files): Remove lib/xalloc.h.
68408
68409         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68410         * modules/userspec (Files): Add lib/inttostr.h.
68411
68412 2005-03-23  Jim Meyering  <jim@meyering.net>
68413
68414         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68415
68416 2005-03-22  Jim Meyering  <jim@meyering.net>
68417
68418         * modules/stat-macros: New module.
68419         * modules/canonicalize, modules/euidaccess, modules/file-type,
68420         * modules/filemode, modules/lchown, modules/makepath,
68421         * modules/rmdir, modules/stat: Depend on new stat-macros module
68422         rather than listing lib/stat-macros.h manually.
68423         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68424
68425 2005-03-22  Jim Meyering  <jim@meyering.net>
68426
68427         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68428
68429 2005-03-22  Bruno Haible  <bruno@clisp.org>
68430
68431         * config/srclist.txt: Replace target directory 'config' with
68432         'build-aux'.
68433         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68434         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68435         ../build-aux/.
68436
68437 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         * modules/chdir-long (Depends-on): Add mempcpy.
68440
68441         * modules/acl, modules/backupfile, modules/c-strtod,
68442         modules/c-strtold, modules/canon-host, modules/canonicalize,
68443         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68444         modules/exclude, modules/exitfail, modules/file-type,
68445         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68446         modules/getdate, modules/getline, modules/getpagesize,
68447         modules/getpass, modules/getugroups, modules/group-member,
68448         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68449         modules/inttostr, modules/long-options, modules/makepath,
68450         modules/md5, modules/memcasecmp, modules/memcoll,
68451         modules/modechange, modules/mountlist, modules/path-concat,
68452         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68453         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68454         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68455         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68456         modules/strftime, modules/strndup, modules/strverscmp,
68457         modules/timespec, modules/unlocked-io, modules/userspec,
68458         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68459         modules/yesno:
68460         Remove lib_SOURCES line from Makefile.am section, as this is now
68461         done automatically by the corresponding Autoconf macro.
68462
68463 2005-03-21  Jim Meyering  <jim@meyering.net>
68464
68465         Changes imported from coreutils.
68466
68467         * lib/cycle-check.c: Don't include xalloc.h.
68468
68469         * lib/path-concat.c: Don't include assert.h.
68470         (path_concat): Remove assertion that would have triggered
68471         for ABASE starting with more than one slash.
68472         Reported by Andreas Schwab.
68473
68474         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68475         properly when ABASE is an absolute file name.
68476         Correct the description of this function.
68477         Include <assert.h>.
68478         Add an assertion and a test driver.
68479         This fixes a bug introduced on 2004-07-02.
68480         Andreas Schwab reported the resulting failure of cp --parents:
68481         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68482
68483 2005-03-21  Jim Meyering  <jim@meyering.net>
68484
68485         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68486         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68487
68488 2005-03-21  Jim Meyering  <jim@meyering.net>
68489         and  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68492         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68493         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68494         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68495         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68496         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68497         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68498         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68499         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68500         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68501         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68502         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68503         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68504         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68505         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68506         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68507         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68508         for these modules.
68509
68510 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68511
68512         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68513         (which shouldn't happen), generate nothing instead of returning 0
68514         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68515
68516 2005-03-16  Bruno Haible  <bruno@clisp.org>
68517
68518         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68519         HAVE_LONGLONG_64BIT.
68520
68521 2005-03-16  Bruno Haible  <bruno@clisp.org>
68522
68523         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68524         HAVE_LONGLONG_64BIT.
68525
68526 2005-03-16  Bruno Haible  <bruno@clisp.org>
68527
68528         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68529         HAVE_LONGLONG_64BIT.
68530
68531 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68534         reliably distinguish strftime failure from empty output on POSIX
68535         hosts.
68536
68537 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68540         (iconv_string): Don't guess a size-zero buffer, as that might cause
68541         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68542         result would be 'too large', where 'too large' is (heuristically)
68543         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68544         overflow concerns.  This will prevent some unwanted malloc failures
68545         when the inputs are very large.
68546
68547 2005-03-15  Karl Berry  <karl@gnu.org>
68548
68549         * config/srclist.txt (config.rpath): from gettext.
68550         * config/config.rpath: update.
68551
68552 2005-03-15  Bruno Haible  <bruno@clisp.org>
68553
68554         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68555         to 'negate'.
68556
68557         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68558         variable.
68559
68560         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68561         results.
68562
68563 2005-03-14  Simon Josefsson  <jas@extundo.com>
68564
68565         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68566         <fx@gnu.org>.
68567
68568 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68571         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68572         intprops.h.
68573         * lib/strtol.c: Likewise.
68574
68575 2005-03-14  Jim Meyering  <jim@meyering.net>
68576
68577         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68578         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68579         to be nonzero so that we (and caller) can detect the difference
68580         between a valid zero-length expansion and an error return, even
68581         when the underlying strftime fails before writing anything into
68582         that location.
68583
68584 2005-03-14  Bruno Haible  <bruno@clisp.org>
68585
68586         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68587         Update from GNU gettext 0.14.3.
68588
68589 2005-03-10  Jim Meyering  <jim@meyering.net>
68590
68591         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68592
68593 2005-03-10  Jim Meyering  <jim@meyering.net>
68594
68595         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68596         so that this module works on systems without fchdir.
68597
68598 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         Factor int-properties macros into a single file, except for
68601         glibc-related files.
68602         * lib/intprops.h: New file.
68603         * lib/getloadavg.c: Include it instead of limits.h.
68604         (INT_STRLEN_BOUND): Remove.
68605         * lib/human.c: Include intprops.h.
68606         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68607         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68608         302/1000.
68609         * lib/inttostr.h: Include intprops.h instead of limits.h.
68610         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68611         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68612         for consistency with intprops.h.
68613         (time_t_is_integer, twos_complement_arithmetic): Use them.
68614         * lib/sig2str.h: Include <signal.h>, intprops.h.
68615         (INT_STRLEN_BOUND): Remove.
68616         * lib/strftime.c (TYPE_SIGNED): Remove.
68617         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68618         * lib/strtol.c: Adjust comments to match intprops.h.
68619         * lib/userspec.c: Include intprops.h.
68620         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68621         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68622         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68623         instead of rolling our own expressions.
68624         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68625
68626         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68627         instead of int.
68628         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68629         the right thing even if adding 1900 would overflow.  Similarly
68630         for tm_mon + 1 and tm_yday + 1.
68631         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68632         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68633         (DO_SIGNED_NUMBER): New macro.
68634         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68635
68636 2005-03-07  Bruno Haible  <bruno@clisp.org>
68637
68638         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68639
68640 2005-03-07  Bruno Haible  <bruno@clisp.org>
68641
68642         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68643
68644 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68645
68646         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68647         (func_import): Only replace files via --import when they have actually
68648         changed.
68649
68650 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68651
68652         * m4/mmap-anon.m4: New file.
68653         * m4/pagealign_alloc.m4: New file.
68654
68655 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68656             Bruno Haible  <bruno@clisp.org>
68657
68658         * modules/pagealign_alloc: New file.
68659         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68660
68661 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68662             Bruno Haible  <bruno@clisp.org>
68663
68664         * lib/pagealign_alloc.h: New file.
68665         * lib/pagealign_alloc.c: New file.
68666
68667 2005-03-03  Bruno Haible  <bruno@clisp.org>
68668
68669         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68670         Use an all-permissive copyright notice, recommended by RMS.
68671
68672 2005-03-02  Bruno Haible  <bruno@clisp.org>
68673
68674         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68675         of AIX, the replacement has to be done only after <string.h> is
68676         included, therefore not in config.h. stpncpy.h does the replacement,
68677         and stpncpy.c uses it.
68678
68679 2005-03-02  Bruno Haible  <bruno@clisp.org>
68680
68681         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68682         stpncpy.c uses it.
68683
68684 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68687         The workaround isn't strictly needed for POSIX conformance, and
68688         it's too much of a pain to configure and maintain.  We'll ask
68689         people to fix their kernels instead.
68690         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68691         (NANOSLEEP_BUG_WORKAROUND): Remove.
68692         (xnanosleep): Remove the workaround.
68693
68694 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68695
68696         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68697         Reported by Derek Price.
68698         (Include): Add "timespec.h".
68699
68700         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68701
68702 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68705         to detect nanosleep bug.
68706
68707 2005-03-01  Bruno Haible  <bruno@clisp.org>
68708
68709         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68710
68711 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68712
68713         * modules/gethrxtime: New file.
68714         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68715         (Depends-on): Add gethrxtime.
68716         (configure.ac): Add gl_XNANOSLEEP.
68717         (Makefile.am): Remove lib_SOURCES line.
68718
68719 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68722         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68723
68724 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68727         * lib/timespec.h (gettime): Return void, since it always
68728         succeeds now.  All uses changed.
68729         * lib/gettime.c (gettime): Likewise.
68730         [HAVE_NANOTIME]: Prefer nanotime.
68731         Assume gettimeofday succeeds, as POSIX requires.
68732         Assime time () succeeds, since other code already does.
68733         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68734         (timespec_subtract): Remove.
68735         (NANOSLEEP_BUG_WORKAROUND): New constant.
68736         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68737         things considerably.  Use it only on GNU/Linux hosts, since the
68738         workaround shouldn't be needed elsewhere.
68739
68740 2005-02-24  Bruno Haible  <bruno@clisp.org>
68741
68742         * modules/gettext (Files): Add m4/glibc2.m4.
68743
68744 2005-02-24  Bruno Haible  <bruno@clisp.org>
68745
68746         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68747         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68748         * m4/progtest.m4:
68749         Update from GNU gettext 0.14.2.
68750         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68751
68752 2005-02-24  Bruno Haible  <bruno@clisp.org>
68753
68754         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68755         * lib/config.charset: Update from GNU gettext 0.14.2.
68756
68757 2005-02-24  Bruno Haible  <bruno@clisp.org>
68758
68759         * lib/gettext.h: Update from GNU gettext 0.14.2.
68760
68761 2005-02-23  Simon Josefsson  <jas@extundo.com>
68762
68763         * m4/iconvme.m4: New file.
68764
68765 2005-02-23  Jim Meyering  <jim@meyering.net>
68766
68767         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68768         change.
68769         Thanks to Bruno Haible for catching it.
68770
68771 2005-02-22  Simon Josefsson  <jas@extundo.com>
68772
68773         * modules/iconvme: New file.
68774
68775         * MODULES.html.sh: Add iconvme.
68776
68777 2005-02-22  Simon Josefsson  <jas@extundo.com>
68778
68779         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68780
68781 2005-02-22  Simon Josefsson  <jas@extundo.com>
68782
68783         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68784
68785 2005-02-22  Jim Meyering  <jim@meyering.net>
68786
68787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68788         s/ifndef/ifdef/.
68789
68790 2005-02-20  Neil Conway  <neilc@samurai.com>
68791
68792         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68793         returned by OSX/Darwin if the specified buffer is not large
68794         enough for the hostname.
68795
68796 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68797
68798         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68799         pass it to _help, otherwise the latter coredumps trying to
68800         dereference state.root_argp.
68801
68802 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68803
68804         * modules/chdir-long (Depends-on): Add memrchr.
68805         * modules/memrchr (Files): Add lib/memrchr.h.
68806         (Include): "memrchr.h".
68807
68808 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68811
68812 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * lib/memrchr.h: New file.
68815         * lib/chdir-long.c: Include it.
68816         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68817         Don't bother including stddef.h.
68818
68819 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68822         inclusion.
68823         Include <sys/types.h>, for dev_t.
68824         (ME_DUMMY, ME_REMOTE): Move from here....
68825         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68826         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68827         Dmitry V. Levin.
68828         Include mountlist.h first, to test the interface.
68829
68830 2005-01-29  Bruno Haible  <bruno@clisp.org>
68831
68832         * lib/progname.c (program_name): Initialize.
68833         Needed when linking statically on MacOS X.
68834
68835 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68836
68837         Sync from coreutils.
68838         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68839         (Depends-on): Add c-strtod.
68840         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68841
68842 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         Sync from coreutils.
68845         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68846
68847         Remove files that are specific to coreutils.
68848         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68849
68850 2005-01-28  Bruno Haible  <bruno@clisp.org>
68851
68852         * modules/javacomp: New file.
68853         * MODULES.html.sh (Java): Add javacomp.
68854
68855 2005-01-28  Bruno Haible  <bruno@clisp.org>
68856
68857         * m4/javacomp.m4: New file, from GNU gettext.
68858
68859 2005-01-28  Bruno Haible  <bruno@clisp.org>
68860
68861         * lib/javacomp.sh.in: New file, from GNU gettext.
68862         * lib/javacomp.h: New file, from GNU gettext.
68863         * lib/javacomp.c: New file, from GNU gettext.
68864
68865 2005-01-26  Simon Josefsson  <jas@extundo.com>
68866
68867         * lib/gai_strerror.c: Use GPL in header.
68868
68869 2005-01-26  Bruno Haible  <bruno@clisp.org>
68870
68871         * modules/javaexec: New file.
68872         * MODULES.html.sh (Java): Add javaexec.
68873
68874 2005-01-26  Bruno Haible  <bruno@clisp.org>
68875
68876         * m4/javaexec.m4: New file, from GNU gettext.
68877
68878 2005-01-26  Bruno Haible  <bruno@clisp.org>
68879
68880         * lib/javaexec.sh.in: New file, from GNU gettext.
68881         * lib/javaexec.h: New file, from GNU gettext.
68882         * lib/javaexec.c: New file, from GNU gettext.
68883
68884 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68885
68886         * modules/lchown (Depends-on): Remove lchown.h
68887
68888 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68889
68890         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68891         must be defined if the header file was not found, in order
68892         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68893
68894 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68895
68896         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68897         initializers for struct pentry_state.
68898         (__argp_error): Check return value of __asprintf
68899         (__argp_failure): Translate error message
68900
68901         * lib/argp-parse.c: Removed braces around the expansion of N_()
68902
68903 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68904
68905         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68906         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68907         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68908         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68909         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68910         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68911         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68912         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68913         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68914         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68915         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68916         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68917         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68918         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68919         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68920         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68921         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68922         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68923         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68924         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68925         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68926         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68927         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68928         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68929         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68930         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68931         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68932         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68933         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68934         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68935         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68936         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68937         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68938         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68939         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68940         Use an all-permissive copyright notice, recommended by RMS.
68941
68942 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68943
68944         * modules/chdir-long (Depends-on): Remove mempcpy.
68945
68946 2005-01-21  Jim Meyering  <jim@meyering.net>
68947
68948         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68949         same value as for Solaris 9.
68950
68951         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68952         component length.  This included changing the parameter to be
68953         of type `char *' rather than `char const *'.
68954         * lib/chdir-long.h (chdir_long): Update prototype.
68955
68956         * lib/openat.c (fdopendir, fstatat): New functions.
68957         * lib/openat.h: Include headers required for use of DIR and struct
68958         stat.
68959         [AT_SYMLINK_NOFOLLOW]: Define.
68960         (fdopendir, fstatat): Add prototypes.
68961
68962 2005-01-21  Bruno Haible  <bruno@clisp.org>
68963
68964         * modules/classpath: New file.
68965         * MODULES.html.sh (Java): Add classpath.
68966
68967 2005-01-21  Bruno Haible  <bruno@clisp.org>
68968
68969         * lib/classpath.h: New file, from GNU gettext.
68970         * lib/classpath.c: New file, from GNU gettext.
68971
68972 2005-01-20  Simon Josefsson  <jas@extundo.com>
68973
68974         * modules/version-etc-fsf: New file.
68975
68976 2005-01-20  Simon Josefsson  <jas@extundo.com>
68977
68978         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68979         * lib/version-etc.c: Remove version_etc_copyright.
68980         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68981         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68982
68983 2005-01-20  Simon Josefsson  <jas@extundo.com>
68984
68985         * lib/base64.h (isbase64): Add.
68986
68987         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68988         using a unsigned prototype, don't inline.
68989         (base64_decode): Use it.
68990
68991 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68994         it.
68995
68996 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         * lib/save-cwd.c (save_cwd): Remove code to support the case
68999         where fchdir is missing or flaky.
69000
69001 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69004
69005 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69008         AC_LIBSOURCES now does this.
69009         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69010         with new ullong_max module.
69011
69012 2005-01-19  Bruno Haible  <bruno@clisp.org>
69013
69014         * modules/sh-quote: New file.
69015         * MODULES.html.sh (Executing programs): Add sh-quote.
69016
69017 2005-01-19  Bruno Haible  <bruno@clisp.org>
69018
69019         * lib/sh-quote.h: New file, from GNU gettext.
69020         * lib/sh-quote.c: New file, from GNU gettext.
69021
69022 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         Merge from coreutils.
69025         * m4/ullong_max.m4: New file.
69026         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69027         (gl_MACROS): Assume localeconv exists.
69028
69029 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69030
69031         Merge changes from coreutils, as described below in several
69032         changelogs dated today.
69033
69034         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69035         (O_DIRECTORY): Remove; not needed here, since "." must be
69036         a directory.  All uses removed.
69037         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69038         universal on Suns, and we also need to test for IRIX.
69039         Revamp code to use 'if' rather than '#if'.
69040         Avoid unnecessary comparison of cwd->desc to 0.
69041
69042         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69043         for known valid error numbers rather than observed invalid ones.
69044
69045 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * modules/ullong_max: New file.
69048
69049         * modules/chdir-long, modules/openat: New files.
69050         * modules/save-cwd (Depends-on): Depend on chdir-long.
69051         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69052
69053 2005-01-18  Jim Meyering  <jim@meyering.net>
69054
69055         Merge from coreutils.
69056         * m4/chdir-long.m4, m4/openat.m4: New files.
69057         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69058         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69059         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69060         is sane and DOES follow symlinks.  Besides, testing 20 different
69061         systems found no broken chown implementations.
69062         Prompted by a change in rsync's copy of this macro.
69063         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69064
69065         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69066
69067         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69068         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69069         NULL-means-set-to-current-time semantics.
69070         Remove temporary file immediately, rather than waiting
69071         for configure's at-exit trap code to do it.
69072
69073 2005-01-18  Jim Meyering  <jim@meyering.net>
69074
69075         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69076
69077         * lib/utimens.c (futimens): Account for the fact that futimes
69078         can also fail with errno == ENOSYS or errno == ENOENT.
69079         Patch from Dmitry V. Levin.
69080
69081         Change the name of the robust chdir function from chdir to chdir_long.
69082         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69083         (restore_cwd): Use chdir_long, not chdir.
69084         * lib/chdir-long.c: Renamed from chdir.c.
69085         * lib/chdir-long.h: Renamed from chdir.h.
69086         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69087         Hurd.
69088
69089 2005-01-18  Bruno Haible  <bruno@clisp.org>
69090
69091         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69092         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69093         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69094         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69095         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69096         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69097         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69098         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69099         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69100         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69101         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69102         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69103         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69104         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69105         Use an all-permissive copyright notice, recommended by RMS.
69106
69107 2005-01-18  Bob Proulx  <bob@proulx.com>
69108
69109         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69110         simplify offsetof() macro construct to avoid compile failure with
69111         native HP-UX 11.0 ANSI C compiler.
69112
69113 2005-01-17  Bruno Haible  <bruno@clisp.org>
69114
69115         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69116         redundant because stpncpy.m4 takes care of it.
69117
69118 2005-01-17  Bruno Haible  <bruno@clisp.org>
69119
69120         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69121
69122 2005-01-17  Bruno Haible  <bruno@clisp.org>
69123
69124         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69125         used.
69126
69127 2005-01-17  Bruno Haible  <bruno@clisp.org>
69128
69129         * lib/fwriteerror.h (fwriteerror): Change specification to include
69130         fclose.
69131         * lib/fwriteerror.c: Include <stdbool.h>.
69132         (fwriteerror): At the end, close the file stream. Record whether
69133         stdout was already closed.
69134
69135 2005-01-17  Bruno Haible  <bruno@clisp.org>
69136
69137         * lib/execute.c (environ): Declare if needed.
69138         * lib/pipe.c (environ): Likewise.
69139         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69140
69141 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69142
69143         * modules/argp: Depend on vsnprintf
69144
69145 2005-01-10  Jim Meyering  <jim@meyering.net>
69146
69147         * modules/closeout (Depends-on): Add atexit.
69148
69149 2005-01-06  Bruno Haible  <bruno@clisp.org>
69150
69151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69152
69153 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69156         definitions to be after all include files, to avoid collisions.
69157         Problem reported by Bob Proulx.
69158
69159 2005-01-04  Jim Meyering  <jim@meyering.net>
69160
69161         Changes imported from coreutils.
69162         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69163         as the mkstemp template, use a temporary directory and an
69164         8.3-friendly template to avoid trouble on systems like DJGPP.
69165         Reported by Juan M. Guerrero via Stepan Kasal.
69166         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69167         close. Remove the temporary directory right away, rather than waiting
69168         for configure's at-exit trap code to do it.
69169         Suggestion from Stepan Kasal.
69170
69171 2005-01-01  Simon Josefsson  <jas@extundo.com>
69172
69173         * gnulib-tool: Print #include directives when --import'ing.
69174
69175 2004-12-28  Simon Josefsson  <jas@extundo.com>
69176
69177         * tests/test-base64.c: Include required header files.  Remove
69178         unused variables.
69179
69180 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69181
69182         * modules/error (Depends-on): Remove gettext.
69183
69184 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69185
69186         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69187         not needed.  This removes a dependency on the gettext module.
69188         [defined _LIBC]: Do not include <libintl.h>; not needed.
69189
69190 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69191
69192         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69193         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69194
69195 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69198         HAVE_DECL_STRTOLD.
69199
69200 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69201
69202         * modules/getdate (Depends-on): Remove alloca-opt.
69203
69204 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69205
69206         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69207
69208 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * lib/argp-parse.c: Include <stddef.h>.
69211         (alignof, alignto): New macros.
69212         (parser_init): Don't assume that void * is aligned sufficiently
69213         for struct option.
69214
69215         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69216         need to extend the stack.
69217         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69218         large.
69219
69220 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69221
69222         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69223
69224 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69225
69226         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69227         (2004-10-24) change.  Apparently this was a false alarm.
69228
69229         * modules/getdate: Depend on alloca-opt, not alloca.
69230
69231 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69234         Remove now-obsolete comment about AIX.
69235         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69236         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69237         (YYMAXDEPTH): New macro.
69238
69239 2004-12-18  Simon Josefsson  <jas@extundo.com>
69240
69241         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69242
69243 2004-12-18  Bruno Haible  <bruno@clisp.org>
69244
69245         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69246
69247 2004-12-18  Bruno Haible  <bruno@clisp.org>
69248
69249         * lib/fatal-signal.c (fatal_signals): Make non-const.
69250         (init_fatal_signals): New function.
69251         (uninstall_handlers, install_handlers): Ignore signals that were set to
69252         SIG_IGN.
69253         (at_fatal_signal): Call init_fatal_signals.
69254         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69255         SIG_IGN.
69256         Reported by Paul Eggert.
69257
69258 2004-12-18  Bruno Haible  <bruno@clisp.org>
69259
69260         * doc/alloca.texi: New file.
69261         * doc/alloca-opt.texi: New file.
69262
69263 2004-12-17  Jim Meyering  <jim@meyering.net>
69264
69265         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69266         Otherwise, install-sh could exit with improper exit status when
69267         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69268
69269 2004-12-16  Simon Josefsson  <jas@extundo.com>
69270
69271         * tests/test-base64.c: Add license.
69272
69273 2004-12-15  Stepan Kasal  <address@hidden>
69274
69275         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69276
69277 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * modules/getcwd (Files): Add m4/d-ino.m4.
69280         Suggested by Mark D. Baushke.
69281
69282 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * lib/getdate.y (textint): New member "negative".
69285         (time_zone_hhmm): New function.
69286         Expect 14 shift-reduce conflicts, not 13.
69287         (o_colon_minutes): New rule.
69288         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69289         (yylex): Set the "negative" member of signed numbers.
69290
69291 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * doc/getdate.texi (Time of day items, Time zone items):
69294         Describe new formats +00:00, UTC+00:00.
69295
69296 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69297
69298         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69299         spurious "-l"s.  Problem reported by Stepan Kasal.
69300
69301 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69302
69303         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69304         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69305
69306 2004-12-04  Simon Josefsson  <jas@extundo.com>
69307
69308         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69309         Vandoorselaere <yoann@prelude-ids.org>.
69310
69311 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69312
69313         Changes imported from coreutils.
69314         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69315         exist.
69316         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69317
69318 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         Changes imported from coreutils.
69321         * lib/hard-locale.c: Assume <locale.h> exists.
69322         Include "strdup.h".
69323         (GLIBC_VERSION): New macro.
69324         (hard_locale): Assume setlocale exists.
69325         Rewrite to avoid #ifdef.
69326         Use strdup rather than malloc + strcpy.
69327         * lib/human.c: Assume <locale.h> exists.
69328         (human_readable): Assume localeconv exists.
69329
69330 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69331
69332         * modules/hard-locale (Depends-on): Add strdup.
69333
69334 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69335
69336         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69337         convert T2, not T.  (Imported from libc.)
69338
69339 2004-11-30  Simon Josefsson  <jas@extundo.com>
69340
69341         * modules/restrict (License): Change to LGPL.
69342
69343 2004-11-30  Simon Josefsson  <jas@extundo.com>
69344
69345         * m4/restrict.m4: Add copyright and copying conditions.
69346
69347 2004-11-30  Simon Josefsson  <jas@extundo.com>
69348
69349         * m4/base64.m4: New file.
69350
69351 2004-11-30  Simon Josefsson  <jas@extundo.com>
69352
69353         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69354         base64.
69355
69356         * tests/test-base64.c: New file.
69357
69358         * modules/base64: New file.
69359
69360 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69363         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69364
69365         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69366
69367 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69370         (__getcwd.c): Don't restore errno; glibc doesn't.
69371         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69372         first, falling back to our code only if its results look suspicious.
69373         Ensure that the resulting buffer is only as large as necessary.
69374
69375         * lib/readutmp.c: Include readutmp.h first.
69376         Include <errno.h>, since readutmp.h no longer does that.
69377         * lib/readutmp.h: Don't include <errno.h>,
69378         <sys/param.h>, <time.h>; not needed to establish interface.
69379         (errno): Remove decl.
69380         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69381         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69382         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69383
69384 2004-11-28  Simon Josefsson  <jas@extundo.com>
69385
69386         * lib/base64.h, base64.c: New file.
69387
69388 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69391
69392 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69395         (Depends-on): Remove pathmax, same.  Add mempcpy.
69396         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69397         (Makefile.am): Append getcwd.h to lib_SOURCES.
69398         (Include): Add getcwd.h.
69399         (Maintainer): Change from Jim Meyering to "all, glibc",
69400         since getdate now uses intended-for-glibc code.
69401         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69402         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69403
69404 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69407         HP's ANSI C compiler.
69408         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69409         Declaring int functions causes warnings on some modern systems and
69410         shouldn't be needed to compile on ancient ones.
69411         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69412         defined.
69413
69414         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69415         with the following changes.
69416         (__set_errno): Parenthesize properly.
69417         Include <stdbool.h>.
69418         (MIN, MAX, MATCHING_INO): New macros.
69419         (__getcwd): Define with prototype, not K&R form.
69420         Use heuristics to allocate default buffer on stack if possible.
69421         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69422         behavior, and to avoid the PATH_MAX limit when computing
69423         ../../../../...
69424         Use MATCHING_INO to compare inode number to file.
69425         Check for arithmetic overflow in size calculations.
69426         Fix bug in reallocation of dot array that caused getcwd to fail
69427         on directories nested deeper than 75.
69428         Be more careful about saving errno on error.
69429         Do not use realloc; use only free+malloc, as this is a bit
69430         more flexible and avoids a needless copy operation.
69431         Do not inspect st_dev and st_ino for symbolic links; POSIX
69432         doesn't specify the latter.
69433         Check for closedir errors.
69434         Avoid needless casts.
69435         Use "#ifdef weak_alias" around weak_alias, to be like other
69436         glibc code.
69437         The following changes to getcwd.c have effect only when used in
69438         gnulib; they have no effect inside glibc proper.
69439         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69440         as alloca isn't used.
69441         (alloca, __alloca): Likewise.
69442         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69443         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69444         unconditionally, as gnulib assumes C89 or better.
69445         Do not include <sys/param.h>.
69446         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69447         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69448         better.
69449         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69450         Include <dirent.h> in a way that is compatible with modern Autoconf.
69451         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69452         New macros, if not already defined.
69453         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69454         Use "_LIBC", not "defined _LIBC", for consistency.
69455         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69456         a mempcpy module.
69457         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69458         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69459         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69460         credit only to Jim Meyering and adjust the copyright dates.
69461         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69462         <stdlib.h>, <unistd.h>, "pathmax.h".
69463         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69464         (INITIAL_BUFFER_SIZE): Remove.
69465         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69466
69467 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69468
69469         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69470         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69471         Use the _ONCE methods, for efficiency.
69472         Check for fcntl.h.  In test program, include <errno.h>
69473         and <fcntl.h> if available.  Remove old K&R cruft from
69474         test program.  Check for common errors in GNU/Linux,
69475         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69476         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69477         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69478         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69479         name accordingly.
69480         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69481         accommodate new getcwd.c.
69482         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69483         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69484         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69485         that's all we need now.
69486
69487 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69488
69489         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69490         argp-parse.c depends on getopt internals, that means we should
69491         always use our getopt, to be on the safe side.
69492         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69493         order not to spoil the result of an eventual previous invocation
69494         of gl_GETOPT_SUBSTITUTE.
69495
69496 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69497
69498         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69499         redefinition warnings. To avoid them, include the defines
69500         in `#if !defined __need_getopt ... #endif'. The only place
69501         where __getopt_argv_const is used is in definitions
69502         of getopt_long and getopt_long_only below, which are as well
69503         protected by `#ifndef __need_getopt'.
69504         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69505         __need_getopt after including <stdio.h> and <unistd.h> These
69506         headers might have defined it.
69507
69508 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69511
69512 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69513
69514         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69515         (futimens): New function, which uses futimes if available.
69516         (futimens, utimens): Support timespec==NULL, with same semantics
69517         as utime and utimens.
69518         * lib/utimens.h (futimens): New decl.
69519
69520 2004-11-23  Jim Meyering  <jim@meyering.net>
69521
69522         * lib/getopt_.h: Remove trailing blanks.
69523
69524 2004-11-23  Jim Meyering  <jim@meyering.net>
69525
69526         * lib/__fpending.c: Add comment.
69527
69528 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69529
69530         * modules/canonicalize (Depends-on): Add xreadlink.
69531         Problem reported by James Youngman.
69532
69533 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69536         New macros.
69537         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69538         optopt): Use them instead of invoking ## directly; otherwise, the
69539         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69540
69541 2004-11-19  Bruno Haible  <bruno@clisp.org>
69542
69543         * lib/strtok_r.c: Move comments from here...
69544         * lib/strtok_r.h: ... to here.
69545
69546 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69549         implementations that mishandle size_t overflow.
69550
69551 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69554         might fail.  Problem reported by Yoann Vandoorselaere.
69555         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69556         implementations that mishandle size_t overflow.
69557
69558 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69559
69560         * modules/canon-host (Depends-on): Add strdup.
69561
69562 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69563
69564         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69565
69566 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         * lib/canon-host.c: Include "strdup.h".
69569         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69570         Use strdup instead of malloc/strcpy to duplicate strings.
69571
69572         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69573         (human_space_before_unit): New constant.
69574         * lib/human.c (human_readable): Support it.
69575
69576         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69577         (xgetcwd): Set errno correctly when failing.
69578         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69579         the failure is actually due to a PATH_MAX problem.
69580
69581         Further getopt changes to make it more likely that glibc will
69582         buy the changes back.
69583         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69584         (getopt): Use it, so to preserve glibc semantic
69585         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69586         when compiling for libc.
69587         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69588         (getopt_long, getopt_long_only): Use it.
69589
69590         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69591         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69592         (getopt): Argv is now char * const *, as per standard.
69593         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69594         not char *__getopt_argv_const *.
69595         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69596         _getopt_long_only_r): Likewise.
69597         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69598         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69599         _getopt_long_r, _getopt_long_only_r): Likewise.
69600         * lib/getopt_.h (__getopt_argv_const): Remove.
69601         (getopt): Argv is now char * const *, as per standard.
69602
69603         * lib/getdate.y (tORDINAL): New token.
69604         (day, relunit): Allow it for relative times.
69605         (relative_time_table): Use tORDINAL for ordinals.
69606
69607 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69610         Document that "second" isn't allowed as an ordinal number.
69611
69612 2004-11-16  Jim Meyering  <jim@meyering.net>
69613
69614         * modules/closeout (Depends-on): Add fpending.
69615
69616 2004-11-15  Jim Meyering  <jim@meyering.net>
69617
69618         * lib/closeout.c: Include "__fpending.h" once again.
69619         Include <stdbool.h>.
69620         (close_stdout): Don't fail just because stdout was closed initially,
69621         since some programs don't write to stdout in the normal course of
69622         operation (other than --version and --help), and we don't want this
69623         function to make e.g. `touch file >&-' fail.
69624         But do fail if it was closed and someone has tried to write to it.
69625         E.g., `printf foo >&-' must fail.
69626
69627 2004-11-13  Jim Meyering  <jim@meyering.net>
69628
69629         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69630
69631 2004-11-12  Simon Josefsson  <jas@extundo.com>
69632
69633         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69634         small doc fix is still pending.
69635
69636 2004-11-11  Simon Josefsson  <jas@extundo.com>
69637
69638         * modules/strtok_r: New file.
69639
69640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69641         strtok_r.
69642
69643 2004-11-11  Simon Josefsson  <jas@extundo.com>
69644
69645         * m4/strtok_r.m4: New file.
69646
69647         * m4/getopt.m4: Replace opterr.
69648
69649 2004-11-11  Simon Josefsson  <jas@extundo.com>
69650
69651         * lib/strtok_r.h, strtok_r.c: New file.
69652
69653 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69654
69655         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69656         of replacing opterr, getopt, etc.  This should handle the
69657         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69658
69659 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69662         we can stop lying to compilers about the constness of argv when we
69663         are compiled outside glibc.
69664         (getopt, getopt_long, getopt_long_only): Use it.
69665         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69666         _getopt_internal, getopt): Likewise.
69667         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69668         _getopt_long_only_r): Likewise.
69669         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69670         _getopt_long_r, _getopt_long_only_r): Likewise.
69671
69672         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69673         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69674         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69675         the other external symbols.
69676         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69677         declaration, since the above renaming now works around collisions.
69678
69679 2004-11-11  Jim Meyering  <jim@meyering.net>
69680
69681         * lib/linebreak.c: Remove trailing blanks.
69682         * lib/alloca_.h: Likewise.
69683         * lib/acosl.c: Likewise.
69684         * lib/euidaccess.c: Likewise.
69685         * lib/allocsa.h: Likewise.
69686
69687 2004-11-10  Simon Josefsson  <jas@extundo.com>
69688
69689         * m4/getaddrinfo.m4: New file.
69690
69691 2004-11-10  Simon Josefsson  <jas@extundo.com>
69692
69693         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69694
69695 2004-11-10  Simon Josefsson  <jas@extundo.com>
69696
69697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69698         getaddrinfo.
69699
69700         * modules/getaddrinfo: New file.
69701
69702 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69703
69704         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69705
69706 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69707
69708         * lib/mktime.c (SHR): New macro, which is a portable
69709         substitute for >> that should work even on Crays.
69710         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69711         Problem reported by Mark D. Baushke in
69712         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69713         * lib/getdate.y (SHR): Likewise.
69714         (tm_diff): Use it.
69715         * lib/strftime.c (SHR): Likewise.
69716         (tm_diff): Use it.
69717         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69718         quote_these_too, so that right shifts are well defined.  All uses
69719         changed.
69720
69721 2004-11-10  Jim Meyering  <jim@meyering.net>
69722
69723         Ensure that no close failure goes unreported.
69724         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69725         return early when it seems there's nothing to flush.
69726         Don't include __fpending.h.
69727
69728 2004-11-10  Jim Meyering  <jim@meyering.net>
69729
69730         * modules/closeout (Depends-on): Remove fpending.
69731
69732 2004-11-10  Jim Meyering  <jim@meyering.net>
69733
69734         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69735
69736 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69739         gl_FUNC_STRFTIME.
69740         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69741         and AC_REQUIRE when possible, to avoid duplicate checks.
69742         Check for <wchar.h>.
69743
69744 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69747
69748 2004-11-09  Bruno Haible  <bruno@clisp.org>
69749
69750         * m4/sockpfaf.m4: New file.
69751
69752 2004-11-05  Bruno Haible  <bruno@clisp.org>
69753
69754         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69755         Reported by Mark D. Baushke <mdb@cvshome.org>.
69756
69757 2004-11-04  Bruno Haible  <bruno@clisp.org>
69758
69759         2004-09-11  Bruno Haible  <bruno@clisp.org>
69760                 * allocsa.valgrind: New file.
69761         2004-02-06  Bruno Haible  <bruno@clisp.org>
69762                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69763                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69764                 Reported by Christopher Seip <chris.seip@hp.com>.
69765
69766 2004-11-04  Bruno Haible  <bruno@clisp.org>
69767
69768         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69769         (Makefile.am): Distribute it.
69770
69771 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69772
69773         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69774         with errno == ERANGE if the buffer is too small.
69775         Problem reported by Mark D. Baushke.
69776
69777 2004-11-03  Albert Chin  <china@thewrittenword.com>
69778             Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69781         equivalent, substitute $ac_type for equivalent type rather than
69782         blindly using uint32_t *always* which won't work if uint32_t is not
69783         available.  Define _UINT32_T to work around typedef of uint32_t if
69784         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69785         2.5.1.
69786
69787 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69788
69789         * m4/jm-macros.m4: Sync from coreutils.
69790         (gl_MACROS): Check for mbrlen, for pathchk.
69791         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69792
69793 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * lib/xreadlink.c (MAXSIZE): New macro.
69796         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69797         size does not exceed MAXSIZE.  Avoid cast.
69798         As suggested by Mark D. Baushke in
69799         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69800         if readlink fails with buffer size just under MAXSIZE, try again
69801         with MAXSIZE.
69802
69803 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69804
69805         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69806
69807 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69808         and  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69811         (get_date): Overparenthesize to avoid GCC warning.
69812
69813 2004-11-02  Bruno Haible  <bruno@clisp.org>
69814
69815         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69816         returns void.
69817
69818 2004-11-02  Bruno Haible  <bruno@clisp.org>
69819
69820         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69821         function returns void.
69822
69823 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69824
69825         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69826         fflush_unlocked, flockfile, funlockfile, funlockfile,
69827         fputs_unlocked, putc_unlocked.
69828
69829 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69830
69831         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69832         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69833         already declared.
69834
69835 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         * modules/getdate (Files): Add doc/getdate.texi.
69838         (Depends-on): Add setenv, xalloc.
69839
69840 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69841
69842         * lib/getdate.y: Add support for TZ="foo" within a date string.
69843         Fix some bugs near time_t boundaries.  Reject dates with
69844         out-of-range components, e.g., "Sept 31".
69845         Include <stdlib.h>, "setenv.h", "xalloc.h".
69846         (ISDIGIT_LOCALE): Remove; unused.
69847         Note that the TZ and time functions used here are not reentrant.
69848         (mktime_ok, get_tz): New functions.
69849         (TZBUFSIZE): New constant.
69850         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69851         This requires that we sometimes generate our own TZ="XXX..." setting.
69852
69853 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * doc/getdate.texi: New file, from coreutils with modifications for
69856         the new TZ parsing.
69857
69858 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69859
69860         * lib/mktime.c (not_equal_tm): Remove redundant check.
69861
69862 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * modules/regex (lib_SOURCES): Add regex.c.
69865         Reported by James Youngman in
69866         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69867
69868 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69869
69870         * lib/getdate.y: Use Bison 1.875 features, and some minor
69871         code cleanups.  This change does not affect semantics.
69872         Don't include <stdlib.h>; no longer needed.
69873         Don't include unlocked-io.h; only the "#if TEST" code uses
69874         stdio, and performance isn't crucial there.
69875         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69876         Bison 1.875 features as described below.
69877         All uses of "PC." replaced by "pc->".
69878         (YYSTYPE): Add a forward declaration.
69879         (yylex, yyerror): Use full prototypes in forward decls.
69880         Use "%pure-parser" rather than obsolescent "%pure_parser".
69881         Use %parse-param and %lex-param instead of obsolescent
69882         YYPARSE_PARAM and YYLEX_PARAM.
69883         (meridian_table, month_and_day_table, time_units_table,
69884         relative_time_table, time_zone_table, military_table,
69885         lookup_zone, lookup_word, get_date):
69886         Use NULL instead of 0 where appropriate.
69887         (to_hour): Avoid abort (), to avoid a dependency on
69888         stdlib.h.
69889         (yyerror, yylex): Now accepts parser_control * arg.
69890         (main) [TEST]: Use '\0' rather than 0 for char.
69891
69892 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69893
69894         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69895
69896 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69899         It's now the caller's responsibility to handle the case where
69900         !HAVE_GETPAGESIZE && !defined getpagesize.
69901
69902         * lib/mktime.c (leapyear): Arg is long int, not int.
69903
69904 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69905
69906         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69907
69908 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69909
69910         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69911         missing.  Problem reported by James Youngman.
69912
69913 2004-10-16  Simon Josefsson  <jas@extundo.com>
69914
69915         * gnulib-tool: Fix comments.  Fix parse problem.
69916         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69917
69918 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69921         implementation of getopt_long.  Problem reported by Alexander Taler in:
69922         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69923
69924 2004-10-15  Bruno Haible  <bruno@clisp.org>
69925
69926         * gnulib-tool: Untabify. Initialize supplied_libname.
69927         (func_usage): More homogenous output.
69928         (func_modules_transitive_closure, func_modules_to_filelist,
69929         func_emit_lib_Makefile_am): New functions.
69930         (func_import): New function, extracted from big case statement. Use
69931         func_get_license, func_modules_transitive_closure,
69932         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69933         opt_lgpl. Don't use test -a, as it's not portable.
69934         (func_create_testdir): Use func_modules_transitive_closure,
69935         func_modules_to_filelist, func_emit_lib_Makefile_am.
69936
69937 2004-10-15  Bruno Haible  <bruno@clisp.org>
69938
69939         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69940
69941 2004-10-15  Bruno Haible  <bruno@clisp.org>
69942
69943         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69944         the portions belonging to each module.
69945         Suggested by Derek Robert Price <derek@ximbiot.com>.
69946
69947 2004-10-12  Simon Josefsson  <jas@extundo.com>
69948
69949         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69950         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69951         to real functions.
69952
69953 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69954
69955         * modules/vsnprintf: New file.
69956
69957 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69958
69959         * m4/vsnprintf.m4: New file.
69960
69961 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69962
69963         * lib/vsnprintf.h: New file.
69964         * lib/vsnprintf.c: New file.
69965
69966 2004-10-11  Bruno Haible  <bruno@clisp.org>
69967
69968         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69969         vsnprintf.
69970
69971 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69974
69975 2004-10-07  Bruno Haible  <bruno@clisp.org>
69976
69977         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69978         fits into the provided buffer.
69979
69980 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69981
69982         * lib/diacrit.c, diacrit.h: Add GPL notice.
69983
69984         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69985         notice.
69986         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69987         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69988         This avoids a potential constant-folding bug.
69989
69990 2004-10-05  Bruno Haible  <bruno@clisp.org>
69991
69992         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69993         for the declaration of strsep.
69994
69995 2004-10-05  Bruno Haible  <bruno@clisp.org>
69996
69997         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69998
69999 2004-10-04  Simon Josefsson  <jas@extundo.com>
70000
70001         * modules/memmem: New file.
70002         * tests/test-memmem.c: New file.
70003         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70004
70005 2004-10-04  Simon Josefsson  <jas@extundo.com>
70006
70007         * m4/memmem.m4: New file.
70008
70009 2004-10-04  Simon Josefsson  <jas@extundo.com>
70010
70011         * lib/memmem.h: New file.
70012         * lib/memmem.c: New file, taken from glibc.
70013
70014 2004-10-04  Simon Josefsson  <jas@extundo.com>
70015
70016         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70017         '#ifdef USE_UNLOCKED_IO'.
70018
70019 2004-10-04  Simon Josefsson  <jas@extundo.com>
70020
70021         * config/srclist.txt: Add memmem from glibc.
70022
70023 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70024
70025         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70026
70027         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70028         modules/exclude, modules/getdate, modules/getline,
70029         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70030         modules/getusershell, modules/linebuffer, modules/md5,
70031         modules/mountlist, modules/posixtm, modules/readtokens,
70032         modules/readutmp, modules/regex, modules/sha1,
70033         modules/version-etc, modules/yesno:
70034         Remove dependency on unlocked-io.
70035
70036 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70037
70038         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70039
70040         * m4/unlocked-io.m4: Add copyright notice.
70041         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70042
70043 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70046         * lib/xmalloc.c (xmemdup): Likewise.
70047         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70048         XFREE): Remove these long-obsolescent macros.
70049         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70050         * lib/xstrdup.c: Remove.
70051
70052         * lib/regex.c (re_comp): Cast gettext return value to char *,
70053         Problem reported by Martin Neitzel via Mark D. Baushke.
70054
70055 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70058         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70059         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70060         regex.c, sha1.c, version-etc.c, yesno.c:
70061         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70062         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70063         the includer's responsibility.
70064
70065         Sync from coreutils.
70066
70067         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70068         points to the start of a string, as the C Standard says the
70069         resulting behavior is undefined.
70070
70071         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70072         simple -> simple_backups, numbered_existing ->
70073         numbered_existing_backups, numbered -> numbered_backups
70074         to avoid shadowing problems.  All uses changed.
70075         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70076         * lib/backupfile.c (check_extension, numbered_backup):
70077         Rename locals to avoid shadowing 'basename'.
70078         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70079         once.
70080
70081         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70082         * lib/.cvsignore: Add getopt.h.
70083
70084 2004-10-04  Bruno Haible  <bruno@clisp.org>
70085
70086         * modules/README: New file.
70087         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70088         not a module.
70089
70090 2004-10-02  Jim Meyering  <jim@meyering.net>
70091
70092         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70093
70094 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70095
70096         * modules/strsep: New file.
70097
70098 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70099
70100         * m4/strsep.m4: New file.
70101
70102 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70103
70104         * lib/strsep.h: New file.
70105         * lib/strsep.c: New file.
70106
70107 2004-10-01  Simon Josefsson  <jas@extundo.com>
70108
70109         * lib/snprintf.c (snprintf): Handle size==0.
70110
70111 2004-10-01  Simon Josefsson  <jas@extundo.com>
70112             Bruno Haible  <bruno@clisp.org>
70113
70114         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70115         (snprintf): Declare 'args'.
70116
70117 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         * lib/snprintf.c: Remove comments as to why each header is needed.
70120
70121 2004-10-01  Bruno Haible  <bruno@clisp.org>
70122
70123         * MODULES.html.sh: Add strsep.
70124
70125 2004-09-30  Simon Josefsson  <jas@extundo.com>
70126
70127         * modules/snprintf: New file.
70128
70129 2004-09-30  Simon Josefsson  <jas@extundo.com>
70130
70131         * m4/snprintf.m4: New file.
70132
70133 2004-09-30  Simon Josefsson  <jas@extundo.com>
70134
70135         * lib/snprintf.h, lib/snprintf.c: New files.
70136
70137 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70138
70139         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70140         (hol_entry_help): Never translate an empty string.
70141         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70142         * lib/argp.h (OPTION_NO_TRANS): New option.
70143
70144 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70145
70146         * modules/argp (Maintainer): Replace Simon Josefsson
70147         by Sergey Poznyakoff.
70148
70149 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70150
70151         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70152         changes merged back into glibc.
70153
70154 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70155
70156         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70157
70158 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70159
70160         * lib/xvasprintf.c: Include xalloc.h.
70161         (xvasprintf): Use xalloc_die, not xmalloc_die.
70162
70163 2004-09-29  Bruno Haible  <bruno@clisp.org>
70164
70165         * modules/alloca-opt: New file, derived from modules/alloca.
70166         * modules/allocsa: Depend on alloca-opt instead of alloca.
70167         * modules/setenv: Likewise.
70168         * modules/vasnprintf: Likewise.
70169         * MODULES.html.sh: Add alloca-opt.
70170
70171 2004-09-28  Simon Josefsson  <jas@extundo.com>
70172
70173         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70174         LGPL, and to replace license template from GPL to LGPL.
70175
70176 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * modules/dummy: Change license to LGPL.
70179
70180 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70181
70182         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70183
70184 2004-09-24  Simon Josefsson  <jas@extundo.com>
70185
70186         * modules/minmax (License): Change from GPL to LGPL.
70187
70188 2004-09-23  Simon Josefsson  <jas@extundo.com>
70189
70190         * gnulib-tool (--import): Typo.
70191
70192 2004-09-23  Simon Josefsson  <jas@extundo.com>
70193
70194         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70195
70196 2004-09-22  Bruno Haible  <bruno@clisp.org>
70197
70198         * modules/*: Add 'License' field.
70199         * gnulib-tool: Accept --extract-license option.
70200         (func_get_license): New function.
70201
70202 2004-09-21  Bruno Haible  <bruno@clisp.org>
70203
70204         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70205         Reported by Simon Josefsson.
70206
70207 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70210         gl_AC_TYPE_LONG_LONG.
70211
70212 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70213
70214         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70215
70216 2004-09-18  Simon Josefsson  <jas@extundo.com>
70217         and  Paul Eggert  <eggert@cs.ucla.edu>
70218
70219         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70220         calls with autoreconf.  Define GL_LIB.
70221
70222 2004-09-14  Karl Berry  <karl@gnu.org>
70223
70224         * config/srclist.txt: unsync setenv.c, sigh.
70225
70226 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70229         Problem reported by Bruno Haible in:
70230         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70231
70232 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70233
70234         * config/srclist.txt: Comment out argp-pvh.c.
70235
70236 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70237
70238         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70239         in case some system header has #define'd it.  Problem reported by
70240         Soeren D. Schulze in
70241         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70242
70243 2004-09-09  Karl Berry  <karl@gnu.org>
70244
70245         * regex.[ch]: delete from the root.  These were supposed to be
70246                 synced with emacs cvs, but this has not happened for about
70247                 a year, and anyway nothing else uses emacs regex.[ch].
70248                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70249                 lib/regex[.ch] is untouched.
70250
70251 2004-09-09  Bruno Haible  <bruno@clisp.org>
70252
70253         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70254
70255 2004-09-09  Bruno Haible  <bruno@clisp.org>
70256
70257         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70258         modifications.
70259         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70260
70261 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70262
70263         * modules/xvasprintf: New file.
70264         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70265
70266 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70267
70268         * lib/xvasprintf.h: New file.
70269         * lib/xvasprintf.c: New file.
70270         * lib/xasprintf.c: New file.
70271
70272 2004-09-08  Bruno Haible  <bruno@clisp.org>
70273
70274         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70275
70276 2004-09-08  Bruno Haible  <bruno@clisp.org>
70277
70278         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70279         length is > INT_MAX.
70280         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70281         more.
70282
70283 2004-09-08  Bruno Haible  <bruno@clisp.org>
70284
70285         * lib/stdint_.h: New file, taken from GNU clisp.
70286
70287 2004-09-08  Bruno Haible  <bruno@clisp.org>
70288             Oskar Liljeblad  <oskar@osk.mine.nu>
70289
70290         * modules/stdint: New file.
70291         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70292
70293 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70294
70295         Import from coreutils.
70296         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70297         strings on unbounded length.  alloca's performance benefits aren't
70298         that important here.
70299         (V_STRDUP): Remove.
70300         (parse_with_separator): New function, with most of the internals
70301         of the old parse_user_spec.  Allow user to omit both user and group,
70302         for compatibility with FreeBSD.
70303         Clone only the user name, not the entire spec.
70304         Do not set *uid, *gid unless entirely successful.
70305         Avoid memory leak in some failing cases.
70306         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70307         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70308         (parse_user_spec): Rewrite to use parse_with_separator.
70309
70310 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70311
70312         * modules/userspec: Don't depend on alloca.
70313
70314 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70315
70316         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70317
70318 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70319
70320         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70321         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70322         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70323
70324 2004-08-16  Simon Josefsson  <jas@extundo.com>
70325
70326         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70327         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70328         Add --dry-run for --import.
70329         Let user provided command line parameters override configure.ac
70330         settings.
70331
70332 2004-08-12  Simon Josefsson  <jas@extundo.com>
70333
70334         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70335         as discussed with Paul Eggert in threads rooted at
70336         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70337         and
70338         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70339         Before, the test was empty, and relied on ELIDE_CODE in source
70340         code.)
70341         (gl_PREREQ_GETOPT): New macro.
70342         (gl_GETOPT): Use them.
70343
70344 2004-08-12  Simon Josefsson  <jas@extundo.com>
70345
70346         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70347         * lib/getopt_.h: Renamed from getopt.h.
70348
70349 2004-08-12  Simon Josefsson  <jas@extundo.com>
70350
70351         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70352         Change default library name from libfoo to libgnu.
70353         Now, if you have a configure.ac that says:
70354                 gl_SOURCE_BASE(gl)
70355                 gl_M4_BASE(gl/m4)
70356                 gl_MODULES(error getopt etcetera)
70357                 gl_INIT
70358         you can import all you need by running:
70359                 ../gnulib/gnulib-tool --import
70360
70361         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70362         (Makefile.am): Rewrite, use logic from argz.
70363         (Include): Use <getopt.h> instead of "getopt.h".
70364
70365 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         * modules/argp (Files): Add m4/unlocked-io.m4.
70368         (Depends-on): Add extensions.
70369
70370 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70373         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70374         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70375         Check for program_invocation_name, program_invocation_short_name,
70376         flockfile, funlockfile, features.h, _getopt_long_only_r.
70377
70378 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70379
70380         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70381         its complicated substitute.
70382         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70383         and program_invocation_name.
70384         (__argp_basename) [!_LIBC]: Remove; the only use was
70385         replaced by its body.
70386         (__argp_short_program_name): Change condition from
70387         !defined __argp_short_program_name to
70388         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70389         to match argp-namefrob.h.
70390         (__argp_failure): Don't assume strerror_r returns char *.
70391         * lib/argp-parse.c (N_): Define unconditionally.
70392         (argp_default_options): Fill out initializers with 0 to avoid
70393         gcc warnings.
70394
70395 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70396
70397         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70398         getopt1.c.
70399
70400 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70401
70402         Merge from coreutils.
70403
70404         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70405
70406         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70407         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70408
70409 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70410
70411         Merge from coreutils.
70412
70413         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70414         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70415         for Reliant Unix 5.43.
70416
70417         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70418         (union fooround): Use uintmax_t, not long int.
70419         The rest is a merge from libc:
70420         [defined _LIBC]: Include <shlib-compat.h>.
70421         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70422
70423         * lib/settime.c (settime): Recode to avoid warning with
70424         Sun Forte C 6U2.
70425
70426         * lib/strverscmp.c: Convert to UTF-8.
70427
70428 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70429
70430         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70431         m4/uintmax_t.m4.
70432
70433 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * modules/xalloc-die: New file.
70436         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70437
70438         * modules/md5 (Files): Add m4/uint32_t.m4.
70439         * modules/sha1: Renamed from modules/sha.
70440         (Files):
70441         Rename lib/sha.h to lib/sha1.h.
70442         Rename lib/sha.c to lib/sha1.c.
70443         Rename m4/sha.m4 to m4/sha1.m4.
70444         (lib_SOURCES): Likewise.
70445         (configure.ac): Rename gl_SHA to gl_SHA1.
70446         (Include): sha.h -> sha1.h.
70447
70448 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70451         * m4/sha1.m4: Renamed from sha.m4.
70452         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70453
70454 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70455
70456         * lib/obstack.h (obstack_empty_p):
70457         Don't assume that chunk->contents is suitably aligned.
70458         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70459         Likewise. Problem reported by Benno in
70460         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70461
70462         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70463         readable.  This could be improved further but it'd take some work.
70464
70465 2004-08-08  Simon Josefsson  <jas@extundo.com>
70466
70467         * modules/xgethostname (Depends-on): Remove exit and error (not
70468         used).
70469
70470         * modules/getpass-gnu: Add getpass.h.
70471         (Depends-on): Add stdbool.
70472         * modules/getpass: Add getpass.h.
70473
70474 2004-08-08  Simon Josefsson  <jas@extundo.com>
70475
70476         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70477         Check getpass declaration.
70478
70479 2004-08-08  Simon Josefsson  <jas@extundo.com>
70480
70481         * lib/xgethostname.c: Don't include error.h (not used).
70482
70483         * lib/getpass.h: Add.
70484         * lib/getpass.c: Include getpass.h first.
70485
70486 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         * lib/xalloc-die.c: New file.
70489         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70490         All uses removed.
70491         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70492         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70493         xalloc-die.c.
70494         (_, N_, xalloc_die): Move to xalloc-die.c.
70495         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70496         so that we needn't mess with xalloc_msg_memory_exhausted.
70497
70498         * lib/sha1.h: Renamed from sha.h.
70499         (SHA1_H): Renamed from _SHA_H.
70500         (sha1_ctx): Renamed from sha_ctx.
70501         (sha1_init_ctx): Renamed from sha_init_ctx.
70502         (sha1_process_block): Renamed from sha_process_block.
70503         (sha1_process_bytes): Renamed from sha_process_bytes.
70504         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70505         (sha1_read_ctx): Renamed from sha_read_ctx.
70506         (sha1_stream): Renamed from sha_stream.
70507         (sha1_buffer): Renamed from sha_buffer.
70508         * lib/sha1.c: Likewise; renamed from sha.c.
70509         Do not include <sys/types.h>.
70510         Include <stddef.h> rather than <stdlib.h>.
70511
70512 2004-08-08  Bruno Haible  <bruno@clisp.org>
70513
70514         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70515         FILESYSTEM_PREFIX_LEN.
70516         * lib/progreloc.c: Likewise.
70517         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70518
70519 2004-08-06  Simon Josefsson  <jas@extundo.com>
70520
70521         * modules/progname (Depends-on): Don't depend on stdbool.
70522
70523 2004-08-06  Simon Josefsson  <jas@extundo.com>
70524
70525         * modules/getsubopt: New file.
70526         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70527         getsubopt.
70528
70529 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70530
70531         More merge from coreutils.
70532
70533         * m4/utimens.m4, m4/utimecmp.m4: New files.
70534         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70535         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70536         prereq.m4, sha.m4: Import changes from coreutils.
70537
70538 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70539
70540         More merge from coreutils.
70541         * modules/raise, modules/readtokens0, modules/utimens:
70542         * modules/utimecmp, module/xnanosleep: New files.
70543         * modules/strftime: Add lib/strftime.h.
70544         Change include from <time.h> to "strftime.h".
70545         * modules/yesno: Add lib/yesno.h.
70546         * modules/backupfile: Remove lib/addext.c.
70547         * modules/euidaccess: Add stat-macros.h.
70548         * modules/canonicalize, modules/euidaccess,
70549         modules/filemode, modules/lchown, modules/makepath,
70550         modules/rmdir, modules/stat: Likewise.
70551
70552 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70553
70554         Merge from tar.
70555         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70556         SIZE_MAX is a valid preprocessor constant.
70557         (__argp_basename): Change from "#ifndef _LIBC"
70558         to "#ifndef __argp_short_program_name", so that
70559         we don't compile these functions for tar.
70560
70561         More merges from coreutils.
70562         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70563         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70564         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70565         * lib/addext.c: Remove; no longer needed.
70566         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70567         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70568         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70569         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70570         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70571         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70572         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70573         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70574         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70575         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70576         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70577         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70578         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70579         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70580         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70581         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70582         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70583         Import changes from coreutils.
70584
70585 2004-08-05  Simon Josefsson  <jas@extundo.com>
70586
70587         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70588
70589 2004-08-05  Simon Josefsson  <jas@extundo.com>
70590
70591         * m4/getsubopt.m4: New file.
70592
70593 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         Merge from coreutils.
70596
70597         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70598         * m4/getcwd-path-max.m4: New files.
70599
70600         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70601         FILESYSTEM_PREFIX_LEN ->
70602         FILE_SYSTEM_PREFIX_LEN.
70603         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70604         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70605         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70606         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70607
70608         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70609         prerequisite modules now handle the DOS stuff.
70610         Don't check for unistd.h.
70611
70612 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         Merge from coreutils.
70615
70616         * lib/.gdb-history: Remove; this doesn't belong here.
70617
70618         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70619         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70620         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70621         * lib/getcwd.c: New files.
70622
70623         * lib/dirname.h: Include <stdbool.h>.
70624         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70625         for consistency with POSIX terminology.  All uses changed.
70626         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70627         (strip_trailing_slashes): Use bool for booleans.
70628         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70629
70630         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70631         sometimes returns a positive errno value even when it succeeds.
70632         (print_errno_message) [!LIBC]: Fall back on strerror if
70633         __strerror_r fails.
70634
70635         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70636         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70637         (longest_relative_suffix): New function.
70638         (path_concat): Use it.  Assume first argument is not NULL.
70639         Port to DOS.  Omit redundant separators.
70640         Report an error instead of returning NULL.
70641         Use mempcpy instead of memcpy.
70642         (xpath_concat): Remove: not declared or used.
70643
70644         * lib/same.h: Include <stdbool.h>
70645         (same_name): Return bool, not int.
70646         * lib/same.c (same_name): Likewise.
70647         (errno): Don't declare; we assume C89 or better now.
70648
70649         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70650         if not already defined.
70651
70652         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70653         * lib/dup-safer.c (errno): Likewise.
70654
70655 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70656
70657         Merge from coreutils.
70658         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70659         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70660         * modules/path-concat: Don't depend on strdup.
70661
70662 2004-08-03  Simon Josefsson  <jas@extundo.com>
70663
70664         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70665         * lib/progname.h: Don't include stdbool.h.
70666
70667 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70670         * MODULES.html.sh (func_all_modules): Remove fatal.
70671
70672 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70673
70674         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70675
70676 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70677
70678         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70679         working.
70680
70681 2004-08-02  Simon Josefsson  <jas@extundo.com>
70682
70683         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70684         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70685         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70686
70687 2004-08-01  Simon Josefsson  <jas@extundo.com>
70688
70689         * lib/xgetdomainname.c: Include stdlib.h, for free().
70690
70691 2004-07-19  Bruno Haible  <bruno@clisp.org>
70692
70693         * MODULES.html.sh (func_all_modules): Add dummy.
70694
70695 2004-07-16  Simon Josefsson  <jas@extundo.com>
70696
70697         * modules/dummy: New file.
70698
70699 2004-07-16  Simon Josefsson  <jas@extundo.com>
70700
70701         * lib/dummy.c: New file.
70702
70703 2004-07-16  Bruno Haible  <bruno@clisp.org>
70704
70705         * lib/backupfile.h: Add extern "C" for C++.
70706         * lib/closeout.h: Likewise.
70707         * lib/copy-file.h: Likewise.
70708         * lib/findprog.h: Likewise.
70709         * lib/full-write.h: Likewise.
70710         * lib/pathname.h: Likewise.
70711         * lib/progname.h: Likewise.
70712         * lib/stpcpy.h: Likewise.
70713         * lib/stpncpy.h: Likewise.
70714         * lib/strcase.h: Likewise.
70715         * lib/strstr.h: Likewise.
70716         * lib/xalloc.h: Likewise.
70717
70718         * lib/mbswidth.h: Add extern "C" for C++.
70719         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70720
70721 2004-07-13  Robert Millan  <robertmh@gnu.org>
70722
70723         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70724
70725 2004-07-09  Simon Josefsson  <jas@extundo.com>
70726
70727         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70728         failed without this.)
70729
70730 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * modules/chown (Files): Add lib/fchown-stub.c, since
70733         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70734
70735 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70736
70737         * lib/fchown-stub.c: New file.
70738
70739 2004-06-24  Jim Meyering  <jim@meyering.net>
70740
70741         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70742
70743 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         * modules/argz: Omit "#include".
70746
70747         * MODULES.html.sh (func_all_modules): Add calloc, to match
70748         2004-06-01 addition of calloc module.
70749
70750 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * m4/argz.m4: New file, which is autoupdated from libtool.
70753
70754 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70755
70756         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70757         libtool.
70758
70759 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         * config/srclist-update: Don't insist on "USA." before the
70762         close-comment, as libtool omits the period and puts the */ on a
70763         separate line.
70764         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70765         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70766
70767 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70768
70769         * modules/argz: New file.
70770         * MODULES.html.sh (func_all_modules): Add argz.
70771
70772 2004-06-12  Jim Meyering  <jim@meyering.net>
70773         and  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * modules/hash (Files): Add lib/xalloc.h.
70776         * modules/pipe (Depends-on): Add wait-process.
70777         * modules/stat (Depends-on): Add xalloc.
70778         * modules/userspec (Files): Add lib/userspec.h.
70779         * modules/xstrto
70780
70781         Upgrade from gettext-0.13.
70782         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70783         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70784         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70785
70786 2004-06-10  Jim Meyering  <jim@meyering.net>
70787
70788         * lib/calloc.c: New file.
70789
70790 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * lib/getdate.y (yylex): Allow space between sign and number.
70793         Problem reported by Dan Jacobson.
70794
70795 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70796
70797         Merge from coreutils CVS.
70798
70799         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70800         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70801         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70802         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70803         xstrtol.m4: Fix copyright date and/or serial number.
70804
70805         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70806         See if we need an fchown replacement.
70807         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70808         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70809         and use the replacement function if we detect either defect.
70810
70811         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70812         gl_UTIMECMP.
70813
70814 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70815         and  Jim Meyering  <jim@meyering.net>
70816
70817         Merge from coreutils CVS.
70818
70819         * lib/stat-macros.h: New file, with contents from file-type.h
70820         and coreutils' system.h.
70821         * lib/file-type.c: Include "stat-macros.h".
70822         * lib/file-type.h (file_type): Move all macro definitions to new file,
70823         stat-macros.h.
70824
70825         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70826         Wrap old code with this conditional.
70827         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70828         function that does not dereference symlinks.
70829         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70830
70831         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70832         dependency problems.
70833         (xreadlink): Accept new arg SIZE, for efficiency.
70834         All decls and uses changed.
70835         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70836
70837         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70838         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70839
70840         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70841         sysexits.h.
70842
70843 2004-06-01  Jim Meyering  <jim@meyering.net>
70844
70845         * m4/calloc.m4: New file.
70846
70847 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70848
70849         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70850         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70851         Also, fix a typo in a diagnostic.
70852
70853 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70856         or AC_FUNC_REALLOC.
70857
70858 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70861         macros to be defined.
70862         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70863         the allocator returns NULL because the requested size is zero.
70864
70865 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70868         var.  Add comment explaining why libc still defines it.  This
70869         merges the following patch from glibc:
70870         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70871
70872 2004-05-20  Andreas Schwab  <schwab@suse.de>
70873
70874         * m4/free.m4: Replace free if it not known to work, not the other
70875         way round.
70876
70877 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70880         present in glibc since revision 1.1 of this file.
70881         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70882         obstack_alignment_mask, obstack_alloc, obstack_base,
70883         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70884         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70885         obstack_grow0, obstack_init, obstack_int_grow,
70886         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70887         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70888         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70889         nonexistent functions.
70890
70891 2004-05-18  Karl Berry  <karl@gnu.org>
70892
70893         * config/srclist.txt: break link for vasnprintf.c.
70894
70895 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         Port obstack to the AS/400, where pointers are 16 bytes wide and
70898         you cannot cast an integer to a valid pointer.  This patch is
70899         currently waiting to be integrated into glibc; see
70900         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70901
70902         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70903         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70904         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70905         (struct obstack): temp member is now a union of a pointer and
70906         an integer, instead of an integer.  All integer uses changed.
70907         This does not affect the physical layout of struct obstack,
70908         except on hosts (like the AS/400) where the size or alignment of
70909         void * is greater than that of ptrdiff_t.
70910         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70911         __STDC__)]: Store temporary in pointer member of union, not
70912         integer member.
70913         * lib/obstack.c: Include <stddef.h>, for offsetof.
70914         (struct fooalign): Remove; it doesn't need a name.
70915         (union fooround): Change double to long double, and add void *.
70916         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70917         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70918         not a macro.  Hence the values are always int; so remove all
70919         casts-to-int in uses.
70920
70921 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70924         we can get this patch merged into glibc.
70925
70926 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70927             Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * m4/argp: Depend on alloca.
70930
70931 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70932             Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70935         freecoding.
70936
70937 2004-05-17  Bruno Haible  <bruno@clisp.org>
70938
70939         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70940         precision that consists of a '.' followed by an empty digit string.
70941         Patch by Tor Lillqvist <tml@iki.fi>.
70942
70943 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70946         for backward compatibility with older code.  We need our own
70947         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70948         it under some other name, and our alloca.h will define it.
70949
70950 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70951             Derek Price  <derek@ximbiot.com>
70952
70953         * lib/alloca.c: Include <alloca.h>, to get our interface.
70954         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70955         include <alloca.h> first.  Use C89 prototype for alloca; this
70956         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70957         Use #elif for simplicity, since we can assume C89 now.
70958         Don't try to source the system alloca.h since it will not be found
70959         and to prevent recursively including its replacement.
70960         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70961         * lib/regex.c: Likewise.
70962
70963 2004-05-16  Derek Price  <derek@ximbiot.com>
70964             Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         getline cleanup.  This changes the getndelim2 API: both order of
70967         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70968         no delimiter).
70969
70970         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70971         interface does that.
70972         (getline): Always use getdelim, so that we don't have two
70973         copies of this code.
70974         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70975         if available.
70976         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70977         (GETNDELIM2_MAXIMUM): New macro.
70978         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70979         instead of the old practice of delim2==0.  All callers changed.
70980         Return -1 on overflow, instead of returning junk.
70981         Do not set *linesize unless allocation succeeds.
70982         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70983         that we include sys/types.h.
70984         * lib/getnline.h: Likewise.
70985         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70986         (getndelim2): Reorder arguments.
70987         * lib/getnline.c (getnline, getndelim):
70988         Don't discard the NMAX argument.
70989         (getnline): Invoke getndelim, to avoid code duplication.
70990         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70991         of (size_t) -1 by callers of the getnline family.
70992
70993 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70996         Check for gettimeofday.
70997         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70998         Check for settimeofday, stime.
70999
71000 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         * lib/nanosleep.c (suspended): Change its type from int to
71003         sig_atomic_t volatile.
71004         (first_call): Make it private to rpl_nanosleep, and have it
71005         be zero initially as that's a bit faster.
71006         (my_usleep): Round up fractional times instead of truncating them,
71007         as this is the usual meaning for 'sleep'.
71008
71009         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71010         doesn't work.
71011         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71012         (ENOSYS): Define if not defined.
71013         (settime): Fall back on stime if it exists and settimeofday fails.
71014         But don't bother with fallbacks if a method fails with errno == EPERM.
71015
71016 2004-05-11  Jim Meyering  <jim@meyering.net>
71017
71018         Prior to this change, the save_cwd caller required read access to the
71019         current directory on most systems (ones with the fchdir function).
71020
71021         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71022         fails, try write-only, and finally, resort to using xgetcwd.
71023
71024 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         * lib/obstack.c, obstack.h: Import changes from libc.
71027
71028 2004-04-28  Bruno Haible  <bruno@clisp.org>
71029
71030         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71031         also implicitly appends .exe to executables.
71032         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71033         accepts Windows pathnames.
71034         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71035         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71036         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71037         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71038         Reported by Derek Robert Price <derek@ximbiot.com>.
71039
71040 2004-04-21  Karl Berry  <karl@gnu.org>
71041
71042         * config/srclist.txt (localcharset.c): break sync.
71043
71044 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71045
71046         * m4/host-os.m4: Add a copyright notice.
71047
71048 2004-04-20  Jim Meyering  <jim@meyering.net>
71049
71050         Change UTILS_ to gl_ in AC_DEFINE'd names.
71051         Change utils_- and jm_-prefixed variables, too.
71052         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71053         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71054         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71055
71056         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71057         Don't emit trailing blanks.
71058         Also rename jm_-prefixed variables to have gl_ prefix.
71059
71060         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71061         Also rename jm_-prefixed variables to have gl_ prefix.
71062
71063         * m4/jm-macros.m4: Reflect the renamings.
71064         * m4/prereq.m4: Likewise.
71065
71066 2004-04-20  Jim Meyering  <jim@meyering.net>
71067
71068         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71069         memory.
71070
71071 2004-04-20  Jim Meyering  <jim@meyering.net>
71072             Bruno Haible  <bruno@clisp.org>
71073
71074         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71075         memory when realloc fails.
71076
71077 2004-04-19  Jim Meyering  <jim@meyering.net>
71078
71079         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71080         now that readutmp.c may call `free (0)'.
71081
71082 2004-04-19  Bruno Haible  <bruno@clisp.org>
71083
71084         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71085         * m4/inttypes_h.m4: Likewise.
71086         * m4/stdint_h.m4: Likewise.
71087         * m4/intmax_t.m4: Likewise.
71088         * m4/uintmax_t.m4: Likewise.
71089
71090 2004-04-18  Jim Meyering  <jim@meyering.net>
71091
71092         * m4/prereq.m4: Don't forbid jm_ prefix.
71093
71094         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71095         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71096         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71097         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71098         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71099         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71100         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71101         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71102         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71103         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71104         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71105         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71106         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71107         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71108         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71109         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71110         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71111         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71112         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71113
71114 2004-04-18  Jim Meyering  <jim@meyering.net>
71115
71116         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71117         failure, don't leak memory and do call END_UTMP_ENT.
71118
71119 2004-04-16  Jim Meyering  <jim@meyering.net>
71120
71121         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71122         coreutils' stat program.
71123         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71124
71125 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71126
71127         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71128         C89.
71129         (CHAR_BIT): Remove, since we assume C89.
71130         Include <stdint.h> if available, as per current Autoconf CVS advice.
71131
71132 2004-03-31  Jim Meyering  <jim@meyering.net>
71133
71134         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71135         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71136         * m4/xalloc.m4: Likewise.
71137
71138 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71139
71140         Merge from coreutils.
71141
71142         * m4/inttostr.m4: New file.
71143         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71144         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71145         Require gl_CLOCK_TIME.
71146         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71147
71148 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71149
71150         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71151         not bool, to be more consistent with Unix conventions.
71152         Suggested by Bruno Haible.
71153
71154         Merge from coreutils.
71155
71156         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71157         * lib/umaxtostr.c: New files.
71158
71159         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71160         the usual <time.h> dance.
71161         (get_date): Change signature to support fractional time stamps.
71162         All callers changed.
71163         * lib/getdate.y: Include "getdate.h" first, as we can now
71164         assume C89 and don't need to worry about 'const'.
71165         Similarly, include "unlocked-io.h" near start, not in middle.
71166         Include <limits.h>.
71167         (textint.value): Use long int rather than int.
71168         (textint.digits): Use size_t rather than int.
71169         (BILLION, LOG10_BILLION): New constants.
71170         (parser_control): New member rel_ns.  Members day_ordinal,
71171         time_zone, month, day, hour, minutes, rel_year, rel_month,
71172         rel_day, rel_hour, rel_minutes, rel_seconds
71173         are now long int, not int.  Member seconds is now struct timespec,
71174         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71175         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71176         not int.
71177         (%union.intval): Now long int, not int.
71178         New member timespec.
71179         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71180         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71181         (spec): Now is a timespec or an item list.
71182         (timespec, items): New nonterminals.
71183         (time, rel, relunit, number, get_date):
71184         Add support for fractional seconds.
71185         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71186         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71187         (to_hour): First arg is now long int, not int.
71188         (to_year): Returns long int, not int.
71189         Don't treat year -70 like 70.
71190         (tm_diff): Returns long int, not int.
71191         (lookup_word): Use bool instead of int when appropriate.
71192         (yylex): Use size_t for count, not int.
71193         Detect overflow when parsing large integer constants.
71194         Add support for fractions.
71195         (get_date): Make pointers 'const' if possible.
71196         Use more-portable code to detect integer overflow.
71197         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71198         Don't use ctime; it's not reliable if the year has >4 digits.
71199
71200         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71201         This is for compatibility with BSD.
71202
71203         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71204         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71205         From coreutils' system.h.
71206
71207         * lib/userspec.c: Don't include "posixver.h".
71208         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71209         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71210         compatible extension.  Simplify code by removing a boolean int
71211         that was always nonzero if a string was nonnull.
71212
71213 2004-03-30  Jim Meyering  <jim@meyering.net>
71214
71215         Merge from coreutils.
71216
71217         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71218         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71219         on some systems one must include <grp.h> before it.
71220         Reported by Christian Krackowizer.
71221
71222 2004-03-30  Jim Meyering  <jim@meyering.net>
71223
71224         Merge from coreutils.
71225
71226         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71227
71228         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71229         an empty input stream.
71230
71231         * lib/readtokens.c: Include <stdbool.h>.
71232         (readtoken): Use `size_t' rather than int/long.
71233         All callers adjusted.
71234         Use `bool' rather than `int' where appropriate.
71235         Use memset rather than an explicit loop.
71236         Use x2nrealloc rather than xrealloc.
71237         Allow the use of `\0' as a delimiter.
71238         (readtokens): Likewise.
71239         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71240
71241 2004-03-30  Jim Meyering  <jim@meyering.net>
71242
71243         * m4/realloc.m4: Remove file, since now it does no more than
71244         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71245         the `configure.ac' section of module/realloc.
71246         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71247
71248 2004-03-30  Bruno Haible  <bruno@clisp.org>
71249
71250         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71251         nonnull.
71252
71253 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71254
71255         Merge changes to getloadavg.c from coreutils and Emacs.
71256
71257         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71258         Define to an expression, not to the empty string.
71259         Include cloexec.h and xalloc.h.
71260         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71261         Use set_cloexec_flag rather than rolling our own.
71262         * lib/cloexec.c, lib/cloexec.h: New files.
71263
71264 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71265
71266         * m4/cloexec.m4: New file.
71267
71268 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71269
71270         * lib/getopt.h: Sync with libc CVS.
71271
71272 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71273             Bruno Haible  <bruno@clisp.org>
71274
71275         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71276         mbswidth.
71277
71278 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71279             Bruno Haible  <bruno@clisp.org>
71280
71281         * lib/mbswidth.h: Include <wchar.h> only if
71282         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71283         <wchar.h>.
71284         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71285
71286 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71287
71288         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71289         Sync with libc CVS.
71290         * lib/getopt_int.h: New file, also synced from libc.
71291
71292 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71293
71294         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71295         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71296         Bring back getopt.c, getopt.h, getopt1.c.
71297
71298 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71299
71300         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71301         All uses changed.  Check for sa_sigaction member; this fixes
71302         a bug first reported by Jason Andrade in
71303         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71304
71305 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71306
71307         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71308         '#if' expressions.  Unlike the code it replaces, it does not
71309         depend on (defined _SC_PAGESIZE).  However, it does depend on
71310         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71311         first reported by Jason Andrade in
71312         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71313
71314 2004-02-25  Simon Josefsson  <jas@extundo.com>
71315
71316         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71317
71318 2004-02-25  Simon Josefsson  <jas@extundo.com>
71319
71320         * lib/strdup.h: New file.
71321         * lib/strdup.c: Include it.
71322         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71323         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71324
71325 2004-02-23  Karl Berry  <karl@gnu.org>
71326
71327         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71328         (from fencepost.gnu.org:/gd/gnuorg).
71329
71330 2004-02-23  Karl Berry  <karl@gnu.org>
71331
71332         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71333         * config/srclist.txt: add maintain/standards documents.
71334
71335 2004-02-18  Bruno Haible  <bruno@clisp.org>
71336
71337         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71338         Reported by Derek Robert Price <derek@ximbiot.com>.
71339
71340 2004-02-16  Karl Berry  <karl@gnu.org>
71341
71342         * config/mkinstalldirs, install-sh: update from automake.
71343
71344 2004-02-06  Karl Berry  <karl@gnu.org>
71345
71346         * m4/po.m4: update from gettext 0.14.1.
71347
71348 2004-02-06  Karl Berry  <karl@gnu.org>
71349
71350         * lib/config.charset: update from gettext 0.14.1.
71351
71352 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71353
71354         Add comments and code, prompted by suggestions from Bruno Haible
71355         for sh-quote.
71356         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71357         describing the enum quoting_style values.
71358         * lib/quotearg.c (quotearg_alloc): New function.
71359         (quotearg_buffer_restyled): Treat lone { and } as special.
71360         Treat = as special.  Work around bug with older shells
71361         that "see" a '\' that is really the 2nd byte of a multibyte char.
71362         Quote empty string with shell_quoting_style.
71363
71364 2004-02-03  Bruno Haible  <bruno@clisp.org>
71365
71366         * m4/pipe.m4: New file, from GNU gettext.
71367
71368 2004-02-03  Bruno Haible  <bruno@clisp.org>
71369
71370         * lib/pipe.h: New file, from GNU gettext.
71371         * lib/pipe.c: New file, from GNU gettext.
71372
71373 2004-01-27  Bruno Haible  <bruno@clisp.org>
71374
71375         * m4/execute.m4: New file, from GNU gettext.
71376
71377 2004-01-27  Bruno Haible  <bruno@clisp.org>
71378
71379         * lib/execute.h: New file, from GNU gettext.
71380         * lib/execute.c: New file, from GNU gettext.
71381         * lib/w32spawn.h: New file, from GNU gettext.
71382
71383 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71384
71385         Merge from diffutils.
71386
71387         * lib/file-type.c (file_type): Add typed memory objects.
71388         * lib/file-type.h (S_TYPEISTMO): New macro.
71389
71390         * lib/c-stack.h (c_stack_action): Remove argv argument.
71391         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71392         (die): Don't calculate message unless segv_action returns.
71393         (get_stack_location, min_address_from_argv, max_address_from_argv,
71394         volatile stack_base, volatile_stack_size): Remove.
71395         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71396         that every segmentation violation is a stack overflow.  (Ouch!)
71397         See Debian bug 136249 (still outstanding) for more info about why
71398         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71399
71400 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71401
71402         Exit-status fix from coreutils.
71403
71404         Use exit_failure consistently in place of EXIT_FAILURE,
71405         so that program exit statuses are consistent on failure.
71406
71407         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71408         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71409         * lib/argmatch.h: Comment fix to match the above.
71410         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71411         Now a macro referring to exit_failure, instead of a separate
71412         variable.  Include "exitfail.h" to get it.
71413         * lib/xstrtol.h: Include "exitfail.h".
71414         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71415
71416         * lib/long-options.c (parse_long_options): Use prototype
71417         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71418         for clarity.
71419
71420 2004-01-21  Jim Meyering  <jim@meyering.net>
71421
71422         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71423         so as not to conflict with a different-sized __mktime_internal
71424         function in GNU libc.
71425         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71426         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71427
71428 2004-01-20  Karl Berry  <karl@gnu.org>
71429
71430         * config/config.guess: update from config.
71431
71432         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71433
71434 2004-01-20  Bruno Haible  <bruno@clisp.org>
71435
71436         Safer stack allocation.
71437         * lib/setenv.c: Include allocsa.h.
71438         (alloca): Remove fallback definition.
71439         (freea): Remove macro.
71440         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71441         instead of freea.
71442
71443 2004-01-20  Bruno Haible  <bruno@clisp.org>
71444
71445         * m4/eealloc.m4: New file, from GNU gettext.
71446
71447 2004-01-20  Bruno Haible  <bruno@clisp.org>
71448
71449         * m4/allocsa.m4: New file, from GNU gettext.
71450
71451 2004-01-20  Bruno Haible  <bruno@clisp.org>
71452
71453         * lib/xallocsa.h: New file, from GNU gettext.
71454         * lib/xallocsa.c: New file, from GNU gettext.
71455
71456 2004-01-20  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71459
71460 2004-01-20  Bruno Haible  <bruno@clisp.org>
71461
71462         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71463         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71464         specially.
71465
71466 2004-01-20  Bruno Haible  <bruno@clisp.org>
71467
71468         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71469         patch.
71470
71471 2004-01-20  Bruno Haible  <bruno@clisp.org>
71472
71473         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71474
71475 2004-01-20  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/eealloc.h: New file.
71478
71479 2004-01-20  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/binary-io.h: Avoid warnings on Cygwin.
71482
71483 2004-01-20  Bruno Haible  <bruno@clisp.org>
71484
71485         * lib/allocsa.h: New file, from GNU gettext.
71486         * lib/allocsa.c: New file, from GNU gettext.
71487
71488 2004-01-18  Karl Berry  <karl@gnu.org>
71489
71490         * doc/gpl.texi, doc/lgpl.texi: new files.
71491
71492 2004-01-18  Karl Berry  <karl@gnu.org>
71493
71494         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71495         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71496
71497 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71498
71499         Merge from coreutils.
71500
71501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71502         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71503         (gl_DEFAULT_POSIX2_VERSION): Move
71504         the documentation from 'configure' into 'config.hin',
71505         so that 'configure --help' isn't burdened by it and
71506         we don't have to worry about its formatting there.
71507         Reword the documentation so that it's more succinct
71508         and can be run together into a single paragraph.
71509         * m4/same.m4 (gl_SAME): Check for pathconf.
71510
71511 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71512
71513         Merge from coreutils.
71514
71515         * lib/posixver.c: Include posixver.h.
71516
71517         * lib/same.c: Include <stdbool.h>, <limits.h>.
71518         (_POSIX_NAME_MAX): Define if not defined.
71519         (MIN): New macro.
71520         (same_name): If file names are silently truncated, report
71521         that the file names are the same if they are the same after
71522         the silent truncation.
71523
71524         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71525         conversion function.
71526         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71527         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71528         longer needed.
71529
71530 2004-01-15  Jim Meyering  <jim@meyering.net>
71531
71532         Merge from coreutils.
71533
71534         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71535         if no library is required.
71536         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71537         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71538         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71539         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71540         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71541         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71542         value, $ac_cv_search_crypt, if it's "none required".
71543         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71544         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71545         not gl_FUNC_GETLOADAVG.
71546         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71547         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71548
71549 2004-01-15  Jim Meyering  <jim@meyering.net>
71550
71551         Merge from coreutils.
71552
71553         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71554         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71555         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71556
71557         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71558         optional configure-time default.
71559
71560         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71561
71562         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71563
71564 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71565
71566         Merge from coreutils.
71567
71568         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71569         value, $ac_cv_search_nanosleep, if it's "none required".
71570
71571 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71572
71573         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71574         with like-named macro in fnmatch.c.
71575         (EXT): Use an internal constant instead.
71576
71577         Merge fnmatch patches from glibc.
71578         * lib/fnmatch.c (mbsinit): Remove define.
71579         Add libc_hidden_ver (__fnmatch, fnmatch).
71580         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71581         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71582
71583 2004-01-14  Karl Berry  <karl@gnu.org>
71584
71585         * config/install-sh: update from automake.
71586
71587 2004-01-13  Karl Berry  <karl@gnu.org>
71588
71589         * config/install-sh: update from automake.
71590
71591 2004-01-09  Karl Berry  <karl@gnu.org>
71592
71593         * config/install-sh: update from automake.
71594
71595 2004-01-05  Karl Berry  <karl@gnu.org>
71596
71597         * config/config.{sub,guess}: update from config.
71598
71599 2003-12-31  Karl Berry  <karl@gnu.org>
71600
71601         * config/depcomp: update from automake.
71602
71603 2003-12-14  Karl Berry  <karl@gnu.org>
71604
71605         * lib/config.charset: update from gettext-runtime.
71606
71607 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71608
71609         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71610         Bug reported by Alfred M. Szmidt.
71611
71612 2003-12-03  Bruno Haible  <bruno@clisp.org>
71613
71614         * m4/gettext.m4: Upgrade from gettext-0.13.
71615         * m4/po.m4: Upgrade from gettext-0.13.
71616         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71617         * m4/intmax.m4: New file, from gettext-0.13.
71618         * m4/printf-posix.m4: New file, from gettext-0.13.
71619
71620 2003-11-29  Karl Berry  <karl@gnu.org>
71621
71622         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71623
71624 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71625             Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/printf-parse.h: Don't include sys/types.h.
71628         (ARG_NONE): New macro.
71629         (char_directive): Change type of *arg_index fields to size_t.
71630         * lib/printf-parse.c: Don't include sys/types.h.
71631         (SSIZE_MAX): Remove macro.
71632         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71633         Remove unnecessary overflow check.
71634         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71635         fields.
71636
71637 2003-11-25  Bruno Haible  <bruno@clisp.org>
71638
71639         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71640
71641 2003-11-25  Bruno Haible  <bruno@clisp.org>
71642
71643         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71644         gt_TYPE_SSIZE_T.
71645
71646 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71647
71648         * modules/alloca: Remove dependency on xalloc.
71649
71650 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71651
71652         * lib/alloca.c: Remove dependency on xalloc module.
71653         (xalloc_die): Remove.
71654         (memory_full) [!defined emacs]: New macro.
71655         [!defined emacs]: Don't include xalloc.h.
71656         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71657         address arithmetic overflows.  Change datatypes a bit to avoid
71658         unnecessary casts.
71659
71660 2003-11-22  Jim Meyering  <jim@meyering.net>
71661
71662         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71663         s/size/size_t/.
71664
71665 2003-11-21  Karl Berry  <karl@gnu.org>
71666
71667         * config/config.{sub,guess}: update from config.
71668
71669 2003-11-18  Karl Berry  <karl@gnu.org>
71670
71671         * config/config.{sub,guess}: update from config.
71672
71673         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71674
71675 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71676
71677         * README: Mention that S+T cannot overflow if S is the size of
71678         an existing object and T is sufficiently small.
71679
71680 2003-11-17  Jim Meyering  <jim@meyering.net>
71681
71682         On systems without utime and without a utimes function capable of
71683         dealing with a NULL struct utimbuf* argument, this utime replacement
71684         could -- in unusual circumstances -- leak a file descriptor.
71685         * lib/utime.c: Include <unistd.h> and <errno.h>.
71686         (utime_null): Be sure to close `fd' and to preserve errno.
71687         Reported by Geoff Collyer via Arnold Robbins.
71688
71689 2003-11-17  Bruno Haible  <bruno@clisp.org>
71690
71691         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71692         (Depends-on): Add xsize.
71693
71694 2003-11-17  Bruno Haible  <bruno@clisp.org>
71695
71696         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71697
71698 2003-11-17  Bruno Haible  <bruno@clisp.org>
71699
71700         * lib/vasnprintf.c (alloca): Remove fallback definition.
71701         (freea): Remove definition.
71702         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71703         Reported by Paul Eggert.
71704
71705 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71706             Bruno Haible  <bruno@clisp.org>
71707
71708         Protect against address arithmetic overflow.
71709         * lib/printf-args.h: Include stddef.h.
71710         (arguments): Change type of field 'count' to size_t.
71711         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71712         'unsigned int' where appropriate.
71713         * lib/printf-parse.h: Include sys/types.h.
71714         (char_directive): Change type of *arg_index fields to ssize_t.
71715         (char_directives): Change type of fields 'count', max_*_length to
71716         size_t.
71717         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71718         (SSIZE_MAX): Define fallback value.
71719         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71720         instead of 'int' where appropriate. Check a_allocated, d_allocated
71721         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71722         * lib/vasnprintf.c: Include xsize.h.
71723         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71724         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71725         overflow. Avoid wraparound when converting a width or precision from
71726         decimal to binary.
71727
71728 2003-11-16  Bruno Haible  <bruno@clisp.org>
71729
71730         Update from GNU gettext.
71731         * lib/printf-parse.c: Generalize to it can be compiled for wide
71732         strings.
71733         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71734         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71735         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71736         SNPRINTF): New macros.
71737         Don't include <alloca.h> if the file is used inside libintl.
71738         (local_wcslen): New function, for Solaris 2.5.1.
71739         (VASNPRINTF): Use it instead of wcslen.
71740
71741 2003-11-16  Bruno Haible  <bruno@clisp.org>
71742
71743         * lib/xsize.h (xmax): New function.
71744         (xsum, xsum3, xsum4): Declare as "pure" functions.
71745
71746 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71747
71748         * modules/xalloc (Files): Undo latest change, since xalloc.h
71749         no longer needs SIZE_MAX or PTRDIFF_MAX.
71750
71751 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71752
71753         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71754         gl_PTRDIFF_MAX.
71755
71756 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71757
71758         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71759         "return", to pacify some unknown compiler.  Problem reported
71760         by Joerg Schilling.
71761
71762 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71763
71764         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71765         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71766         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71767         heuristic is just as accurate as far as we know, and it removes a
71768         dependency on size_max.m4 and ptrdiff_max.m4.
71769
71770 2003-11-11  Bruno Haible  <bruno@clisp.org>
71771
71772         * modules/xsize (Files): Add m4/size_max.m4.
71773         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71774
71775 2003-11-11  Bruno Haible  <bruno@clisp.org>
71776
71777         * m4/size_max.m4: New file.
71778         * m4/ptrdiff_max.m4: New file.
71779         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71780         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71781         (gl_XALLOC): Invoke it.
71782
71783 2003-11-11  Bruno Haible  <bruno@clisp.org>
71784
71785         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71786         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71787         defined.
71788
71789 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71790
71791         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71792         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71793         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71794         From Bruno Haible.
71795         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71796         not (size_t) -1, since it's defined here.
71797
71798 2003-11-09  Karl Berry  <karl@gnu.org>
71799
71800         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71801
71802 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71803
71804         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71805         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71806         Reject sizes of exactly SIZE_MAX bytes.
71807         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71808         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71809
71810 2003-11-05  Bruno Haible  <bruno@clisp.org>
71811
71812         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71813         SIZE_MAX defined in <limits.h> on Solaris.
71814
71815 2003-11-04  Jim Meyering  <jim@meyering.net>
71816
71817         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71818         variable names, rather than @VAR@.
71819         * modules/poll: Likewise.
71820
71821 2003-11-04  Bruno Haible  <bruno@clisp.org>
71822
71823         * modules/xsize: New file.
71824         * modules/linebreak: Depend on xsize.
71825         * MODULES.html.sh (func_all_modules): Add xsize.
71826
71827 2003-11-04  Bruno Haible  <bruno@clisp.org>
71828
71829         * m4/xsize.m4: New file.
71830
71831 2003-11-04  Bruno Haible  <bruno@clisp.org>
71832
71833         * lib/xsize.h: New file.
71834         * lib/linebreak.c: Include xsize.h.
71835         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71836         argument for overflow.
71837         Suggested by Paul Eggert.
71838
71839 2003-11-03  Karl Berry  <karl@gnu.org>
71840
71841         * config/config.{guess,sub}: update from config.
71842
71843 2003-11-03  Jim Meyering  <jim@meyering.net>
71844
71845         * modules/userspec (lib_SOURCES): Add userspec.h.
71846         (Include): Add "userspec.h".
71847         Improve description.
71848
71849 2003-11-03  Jim Meyering  <jim@meyering.net>
71850
71851         * lib/userspec.c: Include "userspec.h".
71852         * lib/userspec.h: New file.
71853
71854 2003-11-03  Bruno Haible  <bruno@clisp.org>
71855
71856         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71857
71858 2003-11-03  Bruno Haible  <bruno@clisp.org>
71859
71860         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71861         available, to avoid (extremely rare) race condition.
71862         Suggested by Paul Eggert.
71863
71864 2003-11-02  Karl Berry  <karl@gnu.org>
71865
71866         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71867
71868 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71869
71870         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71871         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71872         (read_filesystem_list): Set and use me_type_malloced.
71873         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71874         whatever the type happens to be), for brevity and consistency.
71875         Check for size calculation overflow on Alphas running OSF/1.
71876
71877 2003-10-31  Jim Meyering  <jim@meyering.net>
71878
71879         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71880
71881         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71882
71883 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71884             Bruno Haible  <bruno@clisp.org>
71885
71886         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71887         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71888
71889 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71890
71891         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71892         netbsd*-gnu*.  Suggested by Robert Millan.
71893
71894 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71895
71896         * modules/group-member: Depend on stdbool.
71897
71898 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71899
71900         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71901
71902 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71903
71904         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71905         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71906         after the 'gnu' in these cases.  This fixes some bugs in the
71907         previous change, and is based on suggestions by Robert Millan.
71908
71909 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71910
71911         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71912         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71913         no longer needed.
71914         * lib/quotearg.c (quotearg_n_options): Use it.
71915         * lib/group-member.c: Include <stdbool.h>.
71916         (free_group_info): Arg is now const *; don't free arg.
71917         (get_group_info): Now returns bool and accepts struct group_info *,
71918         rather than returning a malloc'ed struct group_info *.
71919         All uses changed.  Check for overflow in internal size calculation.
71920
71921         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71922         rather than xmalloc/xrealloc.
71923         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71924         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71925         conformance bug: the old code used a pointer after freeing the
71926         storage that it addressed.
71927         * lib/hash.c (hash_initialize): Simplify the code by using
71928         xalloc_oversized rather than doing it by hand.
71929         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71930         the buffer preserved.  Use free and xmalloc instead.
71931         * lib/quotearg.c (quotearg_n_options): Likewise.
71932         Use a simpler test for size overflow.  Don't use xalloc_oversized
71933         because unsigned int might be wider than size_t (!); this suggests
71934         that we should switch from unsigned int to size_t for slot numbers.
71935
71936 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71937
71938         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71939         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71940         NetBSD kernels.  Requested by Richard Stallman.
71941
71942 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71943
71944         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71945         to allocate the returned structure.  Do not allocate a subarray,
71946         as x2nrealloc will do that.
71947         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71948         instead of xnrealloc.
71949         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71950
71951 2003-10-27  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/stdbool_.h: Better support for BeOS.
71954
71955 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71956
71957         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71958         now uses inline.
71959
71960 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71961
71962         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71963         callers that want to do their own size-overflow checking.  Include
71964         <stdbool.h>, since xalloc_oversized returns bool.
71965         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71966         to use xalloc_oversized.
71967
71968         Add two functions x2realloc, x2nrealloc, for programs that grow
71969         arrays dynamically by doubling their sizes.
71970         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71971         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71972         New functions.
71973
71974         Port to C99 semantics for 'inline' of external functions.
71975         Bug reported by Bruno Haible.
71976         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71977         with the old contents of xnmalloc.
71978         (xnmalloc, xmalloc): Use it.
71979         (xnrealloc_inline): New static inline function,
71980         with the old contents of xnrealloc.
71981         (xnrealloc, xrealloc): Use it.
71982
71983         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71984         that.
71985
71986 2003-10-26  Karl Berry  <karl@gnu.org>
71987
71988         * config/srclist.txt (COPYING.DOC): no longer available from
71989         /gd/gnuorg; don't know where the ultimate source is.
71990
71991 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71992
71993         Fix several address-calculation bugs in the hash modules,
71994         plus some minor code cleanup.
71995
71996         * lib/hash.h: Include <stdbool.h>, for bool.
71997         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71998         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71999         hash_get_n_entries, hash_get_max_bucket_length,
72000         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72001         hash_rehash): Use size_t rather than unsigned.
72002         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72003         hash_get_n_buckets_used, hash_get_n_entries,
72004         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72005         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72006         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72007         Likewise.
72008         (SIZE_MAX): Define if not defined.
72009         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72010         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72011         hash_print):
72012         Use const * when possible.
72013         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72014         (check_tuning): Fix bug: if tuning parameters were very close to
72015         0 or 1, rounding errors could have caused subscript violations.
72016         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72017         (hash_initialize): Add 'fail:' label
72018         to free table and return NULL, and use it to simplify code.
72019         Use calloc rather than clearing the storage ourself.
72020         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72021         buffer size calculations.
72022         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72023         Include <stddef.h>, for size_t.
72024         * lib/hash-pjw.c (hash_pjw): Likewise.
72025         Switch to method described by Bruno Haible.
72026         Include <limits.h>, for CHAR_BIT.
72027         (SIZE_BITS): New macro.
72028
72029 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72030
72031         * m4/getline.m4 (AM_FUNC_GETLINE):
72032         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72033         hosts.  Problem reported by Derek Robert Price in
72034         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72035         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72036         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72037
72038 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72039
72040         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72041         ceiling the allocation at NMAX bytes rather than silently
72042         discarding input bytes before NMAX is reached.  This makes
72043         a difference only if NMAX exceeds SIZE_MAX / 2.
72044
72045         * lib/obstack.c: Merge from glibc.
72046         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72047         Add libc_hidden_def (_obstack_newchunk).
72048         (_obstack_free) [! defined _LIBC]: Remove.
72049         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72050         a clone of the function body.
72051         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72052         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72053
72054         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72055         glibc.
72056         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72057         arg to memcpy.
72058
72059         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72060         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72061         Don't use lvalue casts, as GCC plans to remove support for them
72062         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72063         was also present in the non-GCC version, indicating that this
72064         code had always been buggy and had never been widely used.
72065         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72066         Use the fast variant of each macro, rather than copying the
72067         definiens of the fast variant; that way, we'll be more likely to
72068         catch future bugs in the fast variants.
72069
72070 2003-10-20  Bruno Haible  <bruno@clisp.org>
72071
72072         * modules/wait-process: New file.
72073         * MODULES.html.sh (func_all_modules): Add wait-process.
72074
72075 2003-10-20  Bruno Haible  <bruno@clisp.org>
72076
72077         * m4/wait-process.m4: New file.
72078
72079 2003-10-20  Bruno Haible  <bruno@clisp.org>
72080
72081         * lib/wait-process.h: New file, from GNU gettext.
72082         * lib/wait-process.c: New file, from GNU gettext.
72083
72084 2003-10-19  Jim Meyering  <jim@meyering.net>
72085
72086         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72087         HPUX 10.20.
72088
72089 2003-10-18  Karl Berry  <karl@gnu.org>
72090
72091         * config/config.guess: update from config.
72092
72093 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72094
72095         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72096         (getgroups): First arg is int, not size_t.
72097         Don't let 'free' mangle errno.
72098
72099 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72100
72101         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72102
72103 2003-10-16  Karl Berry  <karl@gnu.org>
72104
72105         * config/config.{guess,sub}: update from config.
72106
72107 2003-10-16  Jim Meyering  <jim@meyering.net>
72108
72109         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72110         memcpy.
72111
72112 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72113
72114         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72115         (SIZE_MAX): Remove.
72116         (new_exclude, add_exclude_file): Initial size no longer needs to
72117         be a power of 2.
72118         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72119         our own address arithmetic overflow checking.
72120
72121         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72122         (fnmatch): Do not alloca more than 2000 wide characters;
72123         instead, use malloc for large buffers.
72124         Check for address arithmetic overflow, and return -1
72125         with errno set to ENOMEM in that case.
72126         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72127         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72128         instead, return -1.  Check for address arithmetic overflow.
72129
72130 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72131
72132         Handle invalid suffixes and overflow independently, so that
72133         callers can treat them independently as needed.  Fix some bugs in
72134         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72135         suffix for a human-readable blocksize.  The major caller-visible
72136         change is the addition of a new
72137         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72138         that both overflow and suffix chars were found.
72139
72140         * lib/human.c (humblock): Don't check separately for invalid suffix
72141         char; that is xstrtoumax's job (now that its bug is fixed).
72142         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72143         INTMAX_MAX]: New macros.
72144         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72145         TYPE_MAXIMUM): New macros.
72146         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72147         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72148         if overflow occurs, as it's what __strtol does and it's more useful
72149         in practice.
72150         (__xstrtol): If __strtol reports some error other than ERANGE,
72151         reflect it to the caller as LONGINT_INVALID.  If it reports
72152         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72153         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72154         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72155         value.
72156         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72157         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72158         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72159         [defined UINTMAX_MAX]: New macros.
72160
72161 2003-10-14  Bruno Haible  <bruno@clisp.org>
72162
72163         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72164
72165 2003-10-14  Bruno Haible  <bruno@clisp.org>
72166
72167         * m4/sig_atomic_t: New file, from GNU gettext.
72168         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72169
72170 2003-10-14  Bruno Haible  <bruno@clisp.org>
72171
72172         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72173         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72174         Also use volatile where needed.
72175
72176 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72177
72178         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72179         Change maintainer from Bruno Haible to 'all'.
72180
72181 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72182
72183         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72184
72185 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72186
72187         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72188         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72189         and define in terms of the other primitives.
72190         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72191         (SIZE_MAX): Define if not already defined.
72192         (array_size_overflow): New function.
72193         (xalloc_die): Abort instead of exiting if 'error' returns.
72194         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72195         (xmalloc, xrealloc): Use them.
72196         (xcalloc): Check for address arithmetic overflow.
72197         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72198         a bit faster than strcpy.
72199
72200 2003-10-10  Simon Josefsson  <jas@extundo.com>
72201
72202         * modules/argp (Depends-on): Add restrict and strcase.
72203
72204 2003-10-10  Simon Josefsson  <jas@extundo.com>
72205
72206         * m4/argp.m4: Add AC_C_INLINE.
72207
72208 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72209
72210         Merge getpass from libc, plus a few fixes.
72211
72212         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72213         Include <stdbool.h>.
72214         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72215         __fsetlocking to empty.
72216         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72217         do include <bits/libc-lock.h>.
72218         Do not include <fcntl.h>; not needed.
72219         [_LIBC]: Include <wchar.h>.
72220         (NOTCANCEL_MODE): New macro.
72221         (flockfile, funlockfile) [_LIBC]: New macros.
72222         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72223         [!_LIBC]: New macros.
72224         (call_fclose): New function.
72225         (getpass): Use it.  Save tty stream separately; this simplifies the
72226         code and makes it more reliable if stdin happens to equal stdout.
72227         Invoke __fsetlocking on tty.
72228         Handle thread cancellation if needed.
72229         Namespace cleanup (use __tcgetattr, __getline).
72230         Use bool for Booleans.
72231         [USE_IN_LIBIO]: Handle wide streams.
72232         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72233         stream might go where.
72234
72235         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72236         doesn't have to include <stdio.h> before us.
72237         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72238         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72239         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72240         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72241         if not declared, so that we can use getpass.c code from libc without
72242         rewriting it.
72243         (flockfile, ftrylockfile, funlockfile): New macros.
72244
72245 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72246
72247         * modules/getpass: Depend on stdbool.
72248
72249 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72250
72251         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72252
72253 2003-10-07  Karl Berry  <karl@gnu.org>
72254
72255         * config/config.{guess,sub}: update from config.
72256
72257 2003-10-06  Jim Meyering  <jim@meyering.net>
72258             Bruno Haible  <bruno@clisp.org>
72259
72260         This lets translators provide better translations for the
72261         "Written by ..." part of --version output.
72262         * lib/version-etc.h: Include stdarg.h.
72263         (version_etc_copyright): Declare as readonly.
72264         (version_etc): Make this function variadic with a NULL-terminated list
72265         of author name strings.
72266         (version_etc_va): New declaration.
72267         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72268         (version_etc_copyright): Declare as readonly.
72269         (version_etc_va): New function. Provide a different translatable string
72270         for each possible number of authors < 10. Abbreviate when there are 10
72271         authors or more.
72272         (version_etc): Make this function variadic. Call version_etc_va.
72273         Suggestion from Gary V. Vaughan.
72274
72275         * lib/long-options.h (parse_long_options): Change prototype: the
72276         authors string is moved to the end and becomes variadic.
72277         * lib/long-options.c: Include stdarg.h.
72278         (parse_long_options): Make this function variadic, too.
72279         Call version_etc_va, not version_etc.
72280
72281 2003-10-06  Bruno Haible  <bruno@clisp.org>
72282
72283         * modules/version-etc-2: Remove file.
72284         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72285
72286 2003-10-06  Bruno Haible  <bruno@clisp.org>
72287
72288         * modules/fatal-signal: New file.
72289         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72290
72291 2003-10-06  Bruno Haible  <bruno@clisp.org>
72292
72293         * m4/fatal-signal.m4: New file.
72294         * m4/signalblocking.m4: New file, from GNU gettext.
72295
72296 2003-10-06  Bruno Haible  <bruno@clisp.org>
72297
72298         * lib/version-etc-2.h: Remove file.
72299         * lib/version-etc-2.c: Remove file.
72300
72301 2003-10-06  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/fatal-signal.h: New file, from GNU gettext.
72304         * lib/fatal-signal.c: New file, from GNU gettext.
72305
72306 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72307
72308         * README: Rework advice for preventing empty .o files.
72309         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72310         not <sys/types.h>.
72311
72312 2003-10-04  Karl Berry  <karl@gnu.org>
72313
72314         * lib/argp*: update from libc.
72315
72316 2003-10-04  Karl Berry  <karl@gnu.org>
72317
72318         * config/config.{guess,sub}: update from config.
72319
72320 2003-10-02  Bruno Haible  <bruno@clisp.org>
72321
72322         * modules/lchown (Include): Add lchown.h.
72323         * modules/time_r (Include): Use "..." syntax.
72324         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72325
72326 2003-10-01  Simon Josefsson  <jas@extundo.com>
72327
72328         * MODULES.html.sh (func_all_modules): Move gethostname from section
72329         'based on' to section 'lacking' POSIX:2001.
72330
72331 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72332
72333         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72334         to output mode on the same stream.
72335
72336 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72337
72338         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72339         Fix arg typo in previous patch.
72340
72341 2003-09-28  Jim Meyering  <jim@meyering.net>
72342
72343         * lib/error.c: Correct cpp indentation.
72344
72345 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72346
72347         * modules/free: New file.
72348
72349 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72350
72351         * m4/free.m4: New file.
72352
72353 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72354
72355         * lib/minmax.h (MIN, MAX)
72356         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72357         Omit the special code that used __typeof__, since we worry that
72358         it could be more trouble than it's worth.  See:
72359         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72360         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72361
72362         * lib/free.c: New file.
72363
72364 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72365
72366         Trivial fixes to Makefile.am parts of module listings.
72367         * modules/strstr: Append strstr.h to lib_SOURCES.
72368         * modules/strcase: Likewise, for strcase.h.
72369
72370 2003-09-27  Karl Berry  <karl@gnu.org>
72371
72372         * config/mkinstalldirs: update from automake.
72373
72374 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72375
72376         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72377         (error_tail): Do not loop, reallocating temporary buffer, since
72378         the output cannot contain more wide characters than the input
72379         contains bytes, the size must be big enough already.  This avoids
72380         one potential size overflow calculation.  Check for size overflow
72381         when calculating temporary buffer size.  Free temporary buffer
72382         when done, if it was allocated with malloc; this plugs a memory
72383         leak.  Remove casts from void * to pointers, that are no longer
72384         needed now that we're assuming C89 or better.
72385
72386         Merge error changes from glibc.
72387
72388         * lib/error.c, error.h: Update copyright notice header to match glibc.
72389         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72390         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72391         Disable cancellation while printing error.
72392         * lib/error.h: Prepend __ to parameter names.
72393
72394 2003-09-26  Jim Meyering  <jim@meyering.net>
72395
72396         * lib/error.c (error_tail): Move some declarations
72397         into inner scope where the local variables are used.
72398
72399 2003-09-26  Bruno Haible  <bruno@clisp.org>
72400
72401         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72402         stpncpy().
72403         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72404
72405 2003-09-26  Bruno Haible  <bruno@clisp.org>
72406
72407         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72408         (stpncpy): Define as alias for gnu_stpncpy.
72409         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72410
72411 2003-09-25  Simon Josefsson  <jas@extundo.com>
72412
72413         * lib/xgetdomainname.h: New file.
72414         * lib/xgetdomainname.c: New file.
72415
72416 2003-09-25  Simon Josefsson  <jas@extundo.com>
72417             Bruno Haible  <bruno@clisp.org>
72418
72419         * modules/getdomainname: New file.
72420         * modules/xgetdomainname: New file.
72421         * MODULES.html.sh (func_all_modules): Add getdomainname,
72422         xgetdomainname.
72423
72424 2003-09-25  Simon Josefsson  <jas@extundo.com>
72425             Bruno Haible  <bruno@clisp.org>
72426
72427         * m4/getdomainname.m4: New file.
72428
72429 2003-09-25  Simon Josefsson  <jas@extundo.com>
72430             Bruno Haible  <bruno@clisp.org>
72431
72432         * lib/getdomainname.h: New file.
72433         * lib/getdomainname.c: New file.
72434
72435 2003-09-25  Karl Berry  <karl@gnu.org>
72436
72437         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72438
72439 2003-09-25  Karl Berry  <karl@gnu.org>
72440
72441         * config/install-sh: update from automake.
72442
72443 2003-09-25  Bruno Haible  <bruno@clisp.org>
72444
72445         * modules/version-etc-2: New file, from modules/version-etc with
72446         modifications.
72447         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72448
72449 2003-09-25  Bruno Haible  <bruno@clisp.org>
72450
72451         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72452         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72453
72454 2003-09-24  Simon Josefsson  <jas@extundo.com>
72455
72456         * modules/xgethostname: Add xgethostname.h.
72457
72458 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72459
72460         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72461         the buffer associated with the argument.  Bug reported by
72462         Simon Josefsson.
72463
72464 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72465
72466         * README: Document assumptions that 'int' is at least 32 bits
72467         wide, that integer arithmetic is 2's complement without overflow,
72468         that there are no holes in integer values, that adding sizes of
72469         two nonoverlapping objects can't overflow, and that all-bits-zero
72470         yields scalar zero.  Fix spelling and capitalization typos.
72471
72472 2003-09-19  Karl Berry  <karl@gnu.org>
72473
72474         * lib/argp.h: update from libc.
72475
72476 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72477
72478         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72479         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72480         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72481
72482 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72483
72484         * gnulib-tool: Use "test -h", not "test -L", for portability
72485         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72486         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72487         (sed_extract_prog): Issue s commands one-by-one, rather than
72488         using \| in one s command.
72489
72490 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72491
72492         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72493         input error, instead of returning NULL the next time we are called
72494         (and therefore losing track of errno).
72495
72496 2003-09-16  Bruno Haible  <bruno@clisp.org>
72497
72498         * gnulib-tool (func_create_testdir): Warn about duplicated
72499         dependencies.
72500
72501 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72502
72503         * modules/argmatch, modules/fatal, modules/obstack,
72504         modules/xalloc, modules/xgethostname: Sort dependencies by
72505         importance, not alphabetically.
72506
72507 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72508
72509         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72510         fails, so that the caller gets the proper errno.
72511
72512         * lib/readutmp.c (read_utmp): Likewise.
72513         Check for fstat error.  Close stream and free storage
72514         when failing.
72515
72516 2003-09-14  Karl Berry  <karl@gnu.org>
72517
72518         * config/srclist.txt (strdup.c): disable for c89 changes.
72519
72520 2003-09-14  Jim Meyering  <jim@meyering.net>
72521
72522         * lib/getloadavg.c: Correct cpp indentation.
72523         * lib/strdup.c: Likewise.
72524         * lib/vasnprintf.c: Likewise.
72525
72526 2003-09-14  Bruno Haible  <bruno@clisp.org>
72527
72528         * modules/fwriteerror: New file.
72529         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72530
72531 2003-09-14  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/fwriteerror.h: New file.
72534         * lib/fwriteerror.c: New file.
72535
72536 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72537
72538         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72539         modules/xgethostname, modules/xalloc: Depend on exit.
72540
72541 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72542
72543         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72544
72545         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72546         and AC_MINIX, too, so that their extensions are available.
72547
72548         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72549         This macro has been superseded by gl_BACKUPFILE.
72550
72551         More patches to assume C89 or better.
72552
72553         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72554
72555         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72556         unconditionally.
72557         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72558         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72559         Include <string.h>, <stdlib.h> unconditionally.
72560         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72561         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72562         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72563         headers or for string.h.
72564         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72565         or strtoul.
72566
72567         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72568         headers.
72569         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72570         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72571         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72572         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72573         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72574         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72575         memcpy, memset.
72576         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72577         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72578         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72579         strtol.
72580         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72581         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72582         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72583         strtoul.
72584
72585 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72586
72587         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72588         * lib/obstack.c [!defined _LIBC]: Likewise.
72589         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72590         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72591         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72592
72593         More changes to assume C89 or better.
72594
72595         * lib/error.c (error_tail): Assume vprintf.
72596
72597         * lib/argmatch.c (getenv): Remove decl.
72598         * lib/progreloc.c (get_full_program_name): Define via prototype.
72599         * lib/setenv.c (clearenv): Likewise.
72600         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72601         needed.
72602         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72603         (malloc, memcpy): Remove decls.
72604         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72605         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72606         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72607         (memcpy): Remove macro.
72608         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72609         (__P): Remove.  All uses removed.
72610         (PTR): Remove.  All uses changed to void *.
72611         (CHAR_BIT, NULL): Remove.
72612         (spaces, zeros, memset_space, memset_zero)
72613         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72614         Remove.
72615         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72616         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72617         Define with prototype.
72618         Remove now-unnecessary prototype decl.
72619         (extra_args_spec): Assume ANSI C.  All uses changed.
72620         (extra_args_spec_iso): Remove.
72621         (my_strftime, emacs_strftimeu): Define via prototype.
72622         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72623         unconditionally.
72624         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72625         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72626         (strtoul, strtol): Remove decls.
72627         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72628         LONG_MAX): Remove.
72629         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72630         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72631         (LOCALE_PARAM_PROTO): New macro.
72632         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72633         (INTERNAL (strtol), strtol): Define with a prototype.
72634         (PARAMS): Remove.  All uses removed.
72635         * lib/tempname.c: Include <string.h> unconditionally.
72636         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72637         * lib/xgethostname.c (main): Define with a prototype.
72638         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72639         Include <stdlib.h> unconditionally.
72640         (calloc, malloc, realloc, free): Remove decls.
72641         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72642         Include <stdlib.h> unconditionally.  Sort include file names.
72643         (strtod): Remove.
72644         (xstrtod): Define with a prototype.
72645         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72646         (strtol, strtoul): Remove decls.
72647
72648 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72649
72650         More patches to assume C89 or better.
72651         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72652         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72653         string.h, memchr, STDC_HEADERS.
72654
72655 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72656
72657         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72658         Include <stdlib.h>, <string.h> unconditionally.
72659         Remove now-unnecessary cast to char *.
72660         * lib/strnlen.c: Include <string.h> unconditionally.
72661         * lib/yesno.c (yesno): Define with a prototype.
72662
72663 2003-09-11  Bruno Haible  <bruno@clisp.org>
72664
72665         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72666
72667 2003-09-10  Jim Meyering  <jim@meyering.net>
72668
72669         * lib/error.c: Correct indentation of cpp directives.
72670
72671 2003-09-10  Bruno Haible  <bruno@clisp.org>
72672
72673         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72674         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72675         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72676         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72677         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72678         <stdlib.h> and <string.h> checks.
72679         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72680         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72681
72682 2003-09-10  Bruno Haible  <bruno@clisp.org>
72683
72684         * lib/strcspn.c: Include <string.h> unconditionally.
72685         * lib/strpbrk.c: Include <string.h> unconditionally.
72686         * lib/strstr.c: Include <string.h> unconditionally.
72687         * lib/unicodeio.c: Include <string.h> unconditionally.
72688         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72689         * lib/unsetenv.c: Likewise.
72690         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72691         * lib/yesno.c: Include <stdlib.h> unconditionally.
72692         (rpmatch): Add prototype.
72693
72694 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72695
72696         More patches to assume C89 or better.
72697         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72698         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72699         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72700         or for string.h.
72701         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72702         stdlib.h.
72703         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72704         C headers.
72705         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72706         string.h.
72707         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72708         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72709         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72710         or for string.h.
72711         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72712         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72713         C headers.
72714         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72715         memcpy.
72716         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72717         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72718         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72719         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72720         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72721         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72722         string.h, free.
72723         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72724         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72725         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72726         C headers, or for string.h.
72727         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72728         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72729         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72730         headers, memory.h, stdlib.h, string.h, strings.h.
72731         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72732         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72733         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72734         strchr.
72735         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72736         headers, memory.h, string.h.
72737         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72738         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72739         free.
72740         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72741         headers.
72742         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72743         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72744         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72745         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72746         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72747
72748 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72749
72750         More K&R removal.
72751
72752         * lib/acosl.c (main): Use a prototype.
72753         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72754         tanl.c: Likewise.
72755
72756         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72757
72758         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72759         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72760         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72761         with a prototype.
72762         * lib/getopt.c (const): Remove macro.
72763         Include <string.h> unconditionally.
72764         (my_index): Remove; all uses changed to strchr.
72765         (strlen): Remove decl.
72766         (exchange): Remove forward decl; no longer needed.
72767         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72768         Define with prototype.
72769         * lib/getopt1.c (const): Remove macro.
72770         (getopt_long, getopt_long_only, main): Define with prototype.
72771
72772         * lib/getugroups.c: Include <string.h> unconditionally.
72773
72774         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72775         (getusershell, setusershell, endusershell, readname, main):
72776         Define with prototypes.
72777
72778         * lib/group-member.c: Include group-member.h first.
72779         Include <stdlib.h> unconditionally.
72780
72781         * lib/hard-locale.c: Include hard-locale.h first.
72782         Include <stdlib.h>, <string.h> unconditionally.
72783
72784         * lib/hash.c (free, malloc): Remove decls.
72785         Include <stdlib.h> unconditionally.
72786
72787         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72788         (getenv): Do not declare.
72789
72790         * lib/idcache.c: Include <string.h> unconditionally.
72791
72792         * lib/long-options.c: Include long-options.h first, to test interface.
72793         Include <stdlib.h> unconditionally.
72794
72795         * lib/makepath.c: Include makepath.h first, to test interface.
72796         Include <stdlib.h> and <string.h> unconditionally.
72797
72798         * lib/linebuffer.c: Include <stdlib.h>.
72799         (free): Remove decl.
72800
72801         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72802         stddef.h. rpl_malloc returns void *, not char *.
72803         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72804         prototype.
72805
72806         * lib/md5.h: Include <limits.h> unconditionally.
72807         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72808         (__P): Remove; all uses removed.
72809         * lib/md5.c: Include "md5.h" first.
72810         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72811         md5_buffer, md5_process_bytes, md5_process_block):
72812         Define with prototypes.
72813         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72814         * lib/sha.c: Include "sha.h" first.
72815         Include <stdlib.h>, <string.h> unconditionally.
72816
72817         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72818         * lib/memcmp.c (__ptr_t): Likewise.
72819         * lib/memrchr.c (__ptr_t): Likewise.
72820         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72821         Include <string.h> unconditionally.
72822         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72823         * lib/memchr.c: Include <stdlib.h> unconditionally.
72824         * lib/memchr.c (LONG_MAX): Remove.
72825         * lib/memrchr.c (LONG_MAX): Likewise.
72826         * lib/memchr.c (__memchr): Define via a prototype.
72827         * lib/memrchr.c (__memrchr): Likewise.
72828         * lib/memcmp.c (__P): Remove, and remove all uses.
72829         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72830         Remove forward decls; no longer needed.
72831         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72832         Use types required by C89 in prototype.
72833
72834         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72835         * lib/savedir.c: Likewise.
72836         * lib/mkdir.c (free): Remove decl.
72837         * lib/rmdir.c (rmdir): Define with a prototype.
72838         * lib/savedir.c: Include savedir.h first, to test interface.
72839
72840         * lib/mktime.c (STDC_HEADERS): Remove.
72841         Include <stdlib.h>, <string.h> unconditionally.
72842
72843         * lib/modechange.c: Include <stdlib.h> unconditionally.
72844         (malloc): Remove decl.
72845
72846         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72847         (free): Remove decl.
72848
72849         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72850         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72851         (This type really should be intptr_t, but that's a C99ism.)
72852         (_obstack_memcpy): Remove: all uses changed to memcpy.
72853         Include <string.h> unconditionally.
72854         (struct obstack): Assume __STDC__ for types of members
72855         chunkfun, freefun, extra_arg.
72856         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72857         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72858         obstack_begin, obstack_specify_allocation,
72859         obstack_specify_allocation_with_arg, obstack_chunkfun,
72860         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72861         Remove unprototyped decls and the macros that use them.
72862         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72863         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72864         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72865         (defined __STDC__ && __STDC__)]:
72866         Remove nonprototyped code.
72867         Include <stdlib.h> unconditionally.
72868         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72869         _obstack_allocated_p, _obstack_free, obstack_free,
72870         _obstack_memory_used, print_and_abort):
72871         Define using prototypes.
72872         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72873         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72874         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72875         obstack_next_free, obstack_object_size, obstack_room) [0]:
72876         Remove unused, unprototyped code.
72877
72878         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72879
72880         * lib/physmem.c (physmem_total, physmem_available, main): Define
72881         with prototypes.
72882
72883         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72884         (main): Define with a prototype.
72885
72886         * lib/posixver.c (getenv): Remove decl.
72887
72888         * lib/putenv.c (malloc): Returns void *, not char *.
72889         Include <string.h> unconditionally.
72890         (strchr, memcpy, NULL): Do not define.
72891
72892         * lib/readtokens.c: Include readtokens.h first, to test interface.
72893         Include <stdlib.h>, <string.h> unconditionally.
72894         (init_tokenbuffer): Define with a prototype.
72895
72896         * lib/regex.c (PARAMS): Remove.  All uses removed.
72897         All uses of _RE_ARGS removed, too.
72898         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72899         unconditionally.
72900         (bzero): Assume memset exists.
72901         (memcmp, memcpy, NULL): Remove.
72902         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72903         char, or assignments to local vars of type signed char.
72904         (init_syntax_once, PREFIX(extract_number_and_incr),
72905         PREFIX(print_partial_compiled_pattern),
72906         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72907         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72908         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72909         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72910         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72911         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72912         wcs_compile_range, byte_compile_range, truncate_wchar,
72913         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72914         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72915         count_mbs_length, wcs_re_match_2_internal,
72916         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72917         PREFIX(alt_match_null_string_p),
72918         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72919         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72920         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72921         now-unnecessary declaration, if any.
72922         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72923         regcomp, regexec):
72924         Remove now-unnecessary casts among pointer types.
72925         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72926
72927         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72928         (free): Remove decl.
72929
72930         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72931
72932         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72933         (free): Remove decl.
72934
72935         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72936         * lib/xgetcwd.c: Likewise.
72937
72938         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72939         (free): Remove decl.
72940
72941         * lib/strchrnul.c (strchrnul): Define with a prototype.
72942         Fix bug: c_in was not converted to char before searching.
72943
72944         The following changes are not K&R related:
72945
72946         * lib/group-member.h: Include <sys/types.h>, so that this file is
72947         self-contained.
72948         * lib/makepath.h: Likewise.
72949
72950         * lib/getusershell.c (readname, default_index, line_size, readname):
72951         Use size_t, not int, for sizes.
72952         (readname): If the size overflows, report an error instead of
72953         looping forever.
72954
72955 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72956
72957         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72958         libc.
72959
72960 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72961
72962         * README: New section: portability guidelines.
72963
72964 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72965
72966         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72967         C89 spec.
72968
72969 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72970
72971         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72972
72973 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72974
72975         Assume C89 or better; remove K&R cruft.
72976         A few of these changes were first proposed by Derek Robert Price
72977         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72978
72979         * lib/addext.c: Include <string.h> unconditionally.
72980         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72981         Don't declare getenv or malloc.
72982
72983         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72984         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72985         (NULL): Remove.
72986         (find_stack_direction, alloca): Use prototypes.
72987
72988         * lib/atexit.c (atexit): Define using a prototype.
72989
72990         * lib/basename.c, dirname.c, stripslash.c:
72991         Include <string.h> unconditionally.
72992
72993         * lib/bcopy.c: Include <stddef.h>.
72994         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72995
72996         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72997
72998         * lib/error.h (error, error_at_line, error_print_progname)
72999         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73000         * lib/error.c: Include error.h first, to check interface.
73001         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73002         (VA_START): Remove; all uses changeed to va_start.
73003         (exit, strerror): Remove decls.
73004         (error_print_progname): Prototype uncondionally.
73005         Don't include <errno.h>; no longer needed.
73006         (private_strerror): Remove.
73007         (error_tail): Always define.
73008         (error, error_at_line): Assume C89 or better; always use prototypes.
73009         * lib/fatal.c: Include "fatal.h" first, to test interface.
73010         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73011         (VA_START): Remove; all uses changed to va_start.
73012         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73013         this case.
73014         (exit): Remove decl.
73015         (fatal): Prototype unconditionally.  Assume va_start works.
73016         Abort at end, to pacify gcc.
73017
73018         * lib/euidaccess.c (main): Define with a prototype.
73019
73020         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73021
73022         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73023
73024         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73025         prototypes.
73026         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73027         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73028         (getenv): Remove decl.
73029         (fnmatch): Define using a prototype.
73030         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73031         (FCT): Define using a prototype.
73032
73033         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73034
73035         * lib/gethostname.c: Include <stddef.h>.
73036         (gethostname): Define with prototype.  Length is size_t, not int.
73037
73038 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73039
73040         Assume C89 or better; remove K&R cruft.
73041         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73042         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73043         string.h, getenv, malloc.
73044         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73045         headers.
73046         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73047         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73048         do not check for strerror.
73049         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73050         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73051         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73052         do not check for doprnt or vprintf.
73053         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73054         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73055
73056 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73057
73058         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73059         getversion.c should have been removed then, but was accidentally
73060         preserved.
73061
73062         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73063         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73064
73065 2003-09-08  Karl Berry  <karl@gnu.org>
73066
73067         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73068                 config, forget about prep.
73069
73070         * config/depcomp, missing: update from automake.
73071
73072 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73073
73074         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73075         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73076
73077 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73078
73079         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73080         copy_tm_result.  Bug reported by Simon Josefsson in
73081         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73082
73083 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73084
73085         * m4/time_r.m4: New file.
73086         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73087         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73088         is. Check for timegm declaration.
73089         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73090         Do not check for gmtime_r.
73091         Replace mktime if __mktime_internal does not exist and if mktime
73092         hasn't been replaced already.
73093
73094 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73095
73096         * lib/time_r.c, lib/time_r.h: New files.
73097
73098         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73099         __localtime_r.
73100         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73101         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73102
73103         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73104         __gmtime_r.
73105         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73106         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73107         Include <time_r.h>.
73108
73109         * lib/timegm.c: Switch to glibc implementation, with the following
73110         changes:
73111         [defined HAVE_CONFIG_H]: Include <config.h>.
73112         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73113         (__mktime_internal) [!defined _LIBC]: New decl.
73114         (__gmtime_r) [!defined _LIBC]: New macro and function.
73115         (timegm): Use a prototype, since gnulib assumes C89.
73116         Do not bother declaring tmp to be const, as it's not really usefu.
73117         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73118         (timegm): Declare only if HAVE_DECL_TIMEGM.
73119
73120 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73121
73122         * MODULES.html.sh (func_all_modules): Add time_r.
73123         * modules/time_r: New file.
73124         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73125         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73126
73127 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73128
73129         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73130         Bug reported by Lute Kamstra in
73131         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73132
73133         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73134         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73135         course with correspondingly smaller numbers for tomorrow and
73136         yesterday.  From Tadayoshi Funaba.  Originally installed into
73137         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73138         coreutils merge?).
73139
73140 2003-08-31  Simon Josefsson  <jas@extundo.com>
73141
73142         * modules/timegm: New file.
73143         * MODULES.html.sh (func_all_modules): Add timegm.
73144
73145 2003-08-31  Simon Josefsson  <jas@extundo.com>
73146
73147         * m4/timegm.m4: New file.
73148
73149 2003-08-31  Simon Josefsson  <jas@extundo.com>
73150
73151         * lib/timegm.h: New file.
73152         * lib/timegm.c: New file.  Based on
73153         wget-1.8.2/src/http.c:mktime_from_utc.
73154
73155 2003-08-31  Karl Berry  <karl@gnu.org>
73156
73157         * lib/argp.h: update from libc.
73158
73159 2003-08-28  Bruno Haible  <bruno@clisp.org>
73160
73161         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73162         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73163         followed by '#define fnmatch fnmatch_posix' gives an error.
73164
73165 2003-08-28  Bruno Haible  <bruno@clisp.org>
73166
73167         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73168         warning on QNX, which defines O_BINARY to 000000.
73169
73170 2003-08-27  Jim Meyering  <jim@meyering.net>
73171
73172         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73173         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73174         would fail after 32.  Reported by Danny Levinson.  Details here:
73175         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73176
73177 2003-08-24  Bruno Haible  <bruno@clisp.org>
73178
73179         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73180         MSVC7 <stdio.h> is included later.
73181
73182 2003-08-22  Simon Josefsson  <jas@extundo.com>
73183
73184         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73185
73186 2003-08-20  Karl Berry  <karl@gnu.org>
73187
73188         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73189
73190 2003-08-20  Bruno Haible  <bruno@clisp.org>
73191
73192         * modules/progname: New file.
73193         * MODULES.html.sh (func_all_modules): Add progname.
73194
73195 2003-08-20  Bruno Haible  <bruno@clisp.org>
73196
73197         * lib/progname.h: New file, from GNU gettext.
73198         * lib/progname.c: New file, from GNU gettext.
73199         * lib/progreloc.c: New file, from GNU gettext.
73200
73201 2003-08-19  Jim Meyering  <jim@meyering.net>
73202
73203         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73204         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73205
73206 2003-08-19  Bruno Haible  <bruno@clisp.org>
73207
73208         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73209         more.
73210
73211 2003-08-19  Bruno Haible  <bruno@clisp.org>
73212
73213         * lib/xstrdup.c: Assume <string.h> exists.
73214
73215 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73216
73217         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73218         in makefile rules.
73219
73220 2003-08-18  Jim Meyering  <jim@meyering.net>
73221
73222         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73223         * m4/lib-ld.m4: Likewise.
73224
73225 2003-08-18  Jim Meyering  <jim@meyering.net>
73226
73227         * lib/setenv.h: Indent nested cpp directive.
73228         * lib/vasnprintf.c: Remove trailing blanks.
73229
73230 2003-08-17  Simon Josefsson  <jas@extundo.com>
73231
73232         * modules/xstrndup: New file.
73233         * MODULES.html.sh (func_all_modules): Add xstrndup.
73234
73235 2003-08-17  Simon Josefsson  <jas@extundo.com>
73236
73237         * modules/argp: Fix autoconf macro name. Add more dependencies.
73238
73239 2003-08-17  Simon Josefsson  <jas@extundo.com>
73240
73241         * m4/xstrndup.m4: New file.
73242
73243 2003-08-17  Simon Josefsson  <jas@extundo.com>
73244
73245         * m4/argp.m4: New file.
73246
73247 2003-08-17  Simon Josefsson  <jas@extundo.com>
73248             Bruno Haible  <bruno@clisp.org>
73249
73250         * lib/xstrndup.h: New file.
73251         * lib/xstrndup.c: New file.
73252
73253 2003-08-17  Bruno Haible  <bruno@clisp.org>
73254
73255         * modules/strndup (Files, Include): Add lib/strndup.h.
73256
73257 2003-08-17  Bruno Haible  <bruno@clisp.org>
73258
73259         * modules/euidaccess (Files): Add lib/euidaccess.h.
73260
73261 2003-08-17  Bruno Haible  <bruno@clisp.org>
73262
73263         * lib/strndup.h: New file.
73264
73265 2003-08-17  Bruno Haible  <bruno@clisp.org>
73266
73267         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73268         like AC_GNU_SOURCE.
73269         * modules/extensions (configure.ac): Comment out the invocation of
73270         gl_USE_SYSTEM_EXTENSIONS.
73271
73272 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73273
73274         Merges from coreutils, etc.
73275         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73276         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73277         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73278         fixing a typo.
73279         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73280         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73281
73282 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73283
73284         Document merge from coreutils.
73285         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73286         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73287         * modules/utime: Add m4/utimes-null.m4.
73288
73289 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73290
73291         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73292         space, undoing this 2003-08-12 change:
73293         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73294
73295 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73296
73297         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73298         strtoul.c from libc, undoing this 2003-08-12 change:
73299         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73300
73301 2003-08-16  Jim Meyering  <jim@meyering.net>
73302
73303         Merges from coreutils.
73304         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73305         prefix.  Adjust cache variables similarly.  Create 500 rather than
73306         just 300 files, to exercise bug on Darwin6.5, too.
73307         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73308         $missing_dir.
73309         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73310         AM_SYS_POSIX_TERMIOS.
73311         Reported by mkc@mathdogs.com.
73312         Also change use of $am_cv_sys_posix_termios
73313         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73314         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73315         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73316         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73317         in /proc/mounts until it finds one with matching device number.  This
73318         is unnecessary when the FILE argument *is* a mount point.  No stat call
73319         is necessary in that case.  So, disable the statvfs-testing code on
73320         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73321         as RedHat bug# 84846.
73322         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73323         to 1MB, so as not to render systems with no stack size limit (e.g.,
73324         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73325         Include <unistd.h>.  On some systems,
73326         it is required for the definition of _SC_PAGESIZE.
73327
73328 2003-08-16  Jim Meyering  <jim@meyering.net>
73329
73330         Merge from coreutils.
73331         * lib/xstrtoimax.c: #else #if -> #elif.
73332         * lib/xstrtoumax.c: Likewise.
73333
73334 2003-08-16  Jim Meyering  <jim@meyering.net>
73335
73336         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73337         * m4/utimes.m4: Removed.
73338         * m4/utimes-null.m4: Renamed from utimes.m4.
73339
73340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73341         to 1MB, so as not to render systems with no stack size limit (e.g.,
73342         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73343         Include <unistd.h>.  On some systems,
73344         it is required for the definition of _SC_PAGESIZE.
73345
73346 2003-08-16  Jim Meyering  <jim@meyering.net>
73347         and Paul Eggert  <eggert@cs.ucla.edu>
73348
73349         Merges from coreutils, etc.
73350
73351         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73352         using the latest version from cvs.  This avoids problems with #line
73353         directives using a vendor (Sun) compiler.
73354         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73355         Don't set GETGROUPS_LIB here; now it's
73356         done via getgroups.m4's wrapper function.
73357         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73358         rather than just in sh-util/configure.in, so that the
73359         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73360         same.
73361         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73362         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73363         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73364         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73365         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73366         Remove code that is now done by the newly-required macros.
73367         Append $(EXEEXT) to DF_PROG.
73368         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73369         Do not invoke or require the following here,
73370         since prereq.m4 or some gnulib .m4 now does this for us:
73371         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73372         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73373         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73374         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73375         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73376         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73377         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73378         AC_FUNC_OBSTACK.
73379         Do not replace the following functions, as this is now the job
73380         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73381         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73382         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73383         atexit getpass, strdup, getpagesize.
73384         Replace 'raise'.
73385         Do not check for the following functions, as this is now the job
73386         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73387         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73388         setregid.
73389         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73390         Check for sys/sysctl.h.
73391         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73392         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73393         of checking for ssize_t ourselves.
73394
73395         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73396         Require every macro that gnulib/modules/* suggests for us.
73397         (jm_PREREQ_ADDEXT): New macro.
73398         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73399         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73400
73401         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73402         (gl_PHYSMEM): Use it.
73403         Also check for `table' function.
73404         Check for new headers and functions.
73405         Add check for sys/sysmp.h.
73406         With suggestions from Kaveh Ghazi.
73407         Ignore headers that are present but cannot be compiled.  This
73408         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73409         C 5.4.
73410
73411 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73412
73413         Document merge from coreutils.
73414         * modules/userspec: Depend on posixver.
73415         * modules/strftime: Depend on tzset.
73416
73417 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73418
73419         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73420         rather than tab, after '#' in shell-script copyright notices.
73421         Suggested by Bruno Haible.
73422
73423 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73424
73425         * config/srclist-update: Use three spaces, rather than tab, after '#'
73426         in shell-script copyright notices.  Suggested by Bruno Haible.
73427         Remove unnecessary parenthesization in regular expression.
73428
73429 2003-08-15  Jim Meyering  <jim@meyering.net>
73430
73431         Merge from coreutils.
73432         * lib/xgethostname.c: Include <stdlib.h>.
73433         (xghostname): Don't exit for anything other than memory-related
73434         failure; just return NULL.
73435         * lib/userspec.c: Include "posixver.h".
73436         (parse_user_spec): Accept `.' as a separator only
73437         in pre-POSIX-200112 mode.
73438         * lib/strtoimax.c: Use #elif rather than #else #if.
73439         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73440         Remove function, now that we can rely on a working tzset function.
73441         [!_LIBC]: Ensure that the required autoconf test has been run.
73442         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73443         Use underlying_strftime for %r.
73444         * lib/sha.c: Merge in some clean-up and optimization changes from
73445         glibc.
73446         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73447         Ensure that it is a multiple of 64.
73448         Rearrange loop exit tests so as to avoid performing an
73449         additional fread after encountering an error or EOF.
73450         * lib/realloc.c: Update copyright date.
73451
73452 2003-08-15  Jim Meyering  <jim@meyering.net>
73453         and Paul Eggert  <eggert@twinsun.com>
73454
73455         Merge from coreutils.
73456         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73457         member but strut utmpx does not.  Needed for AIX 4.3.3.
73458         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73459
73460 2003-08-15  Jim Meyering  <jim@meyering.net>
73461         and Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         Merges from coreutils, etc.
73464         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73465         Require gl_FUNC_TZSET_CLOBBER.
73466         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73467         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73468         members.
73469
73470 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73471
73472         Help the merge from coreutils.
73473         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73474         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73475         * m4/tzset.m4: Use it too.
73476
73477 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73478
73479         * modules/tzset: New file.
73480
73481 2003-08-14  Jim Meyering  <jim@meyering.net>
73482
73483         Merges from coreutils.
73484         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73485         variable names, rather than @FNMATCH_H@.
73486         * modules/alloca: Likewise for $(ALLOCA_H).
73487
73488         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73489         the three copies of the literal target, `fnmatch.h'.
73490         * modules/alloca (alloca.h): Likewise.
73491
73492 2003-08-14  Jim Meyering  <jim@meyering.net>
73493
73494         Merge from coreutils.
73495         * m4/tzset.m4: New file.
73496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73497         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73498         otherwise, AIX 5.1 systems would end up using the latter.
73499         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73500         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73501         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73502         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73503
73504 2003-08-14  Jim Meyering  <jim@meyering.net>
73505
73506         Merge from coreutils.
73507         * lib/obstack.h: Whitespace changes.
73508         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73509         and xcalloc return values.
73510         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73511         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73512         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73513         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73514         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73515         error from mntctl.
73516         Use mntctl's return value to drive the entry-processing loop, since
73517         we can't rely on the value of the vmt_length member in the last
73518         entry.  On some systems doing so could result in exhausting
73519         virtual memory.  Based in part on a patch from Mike Jetzer.
73520
73521 2003-08-14  Jim Meyering  <jim@meyering.net>
73522         and Paul Eggert  <eggert@twinsun.com>
73523
73524         Merges from coreutils, plus other fixes.
73525         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73526         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73527         for credits and details.  Thanks to Kaveh Ghazi for helping
73528         to keep these files in sync.
73529         (ARRAY_SIZE): Define it.
73530         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73531         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73532         (memcasecmp): Don't assume size_t fits in unsigned int.
73533         Remove casts and duplicate code.
73534         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73535         (memcpy): Remove definition.
73536         Merge in some clean-up and optimization changes from glibc.
73537         [BLOCKSIZE]: Move definition to top of file.
73538         Ensure that it is a multiple of 64.
73539         Rearrange loop exit tests so as to avoid performing an
73540         additional fread after encountering an error or EOF.
73541         * lib/md5.h (md5_uintptr): Define.
73542         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73543         return to the initial working directory.  Preserve errno
73544         for caller.
73545         * lib/idcache.c: Include "xalloc.h".
73546         (xmalloc, xrealloc): Remove decls.
73547         (getuser): Remove casts no longer required in C89.
73548         * lib/human.c: Include stdio.h, for sprintf.
73549         * lib/group-member.c: Include "xalloc.h".
73550         (xmalloc, xrealloc): Remove decls.
73551         (get_group_info): Remove casts no longer required in C89.
73552         * lib/getusershell.c (readname): Remove casts no longer required in
73553         C89.
73554         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73555         * lib/getline.c: Whitespace fix, from coreutils.
73556
73557 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73558
73559         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73560         Check for isascii.
73561
73562         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73563         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73564         Undo previous (whitespace-only) change.
73565
73566 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73567
73568         * lib/exclude.c: Include <ctype.h>
73569         (IN_CTYPE_DOMAIN): New macro.
73570         (is_space): New fn.
73571         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73572         and empty lines.
73573
73574         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73575         Undo previous (whitespace-only) change.
73576
73577 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73578
73579         * config/srclist-update: Change update back to the old behavior,
73580         leaving whitespace alone.  Use one 'sed' command rather than a
73581         pipeline.
73582         (fixlicense): Now a variable, not a function.
73583         (remove_trailing_blanks): Remove.
73584         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73585         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73586         Undo previous (whitespace-only) change.
73587
73588 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73589
73590         Merge from coreutils.
73591         * modules/euidaccess: Add lib_SOURCES, include for new
73592         file euidaccess.h
73593
73594 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73595
73596         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73597         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73598         Normalize leading white space and remove trailing white space.
73599
73600         Merge from coreutils
73601         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73602
73603         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73604         0.12.1.  These files are now being upgraded automatically by
73605         ../config/srclist-update.
73606
73607 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73608
73609         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73610         Normalize leading white space and remove trailing white space.
73611         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73612         notice, as per ../config/srclist-update.
73613
73614         Merge from coreutils.
73615         * lib/euidaccess.h: New file.
73616         * lib/euidaccess.c: Include it.
73617         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73618         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73619         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73620
73621 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73622
73623         * config/srclist-update: Add copyright notice.
73624         (remove_id_lines, remove_trailing_blanks): New constants.
73625         (fixfile): Use them to normalize spacing a bit in copied files.
73626         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73627         Normalize leading white space and remove trailing white space.
73628
73629         * config/texinfo.tex: Sync with texinfo.
73630
73631         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73632         strtoul.c from libc, to merge coreutils whitespace changes.
73633
73634         * config/srclist.txt: Get the following m4 files from gettext:
73635         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73636         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73637         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73638         wint_t.m4.
73639
73640 2003-08-12  Karl Berry  <karl@gnu.org>
73641
73642         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73643         been made.
73644
73645 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73646
73647         * modules/gnu-source, m4/gnu-source.m4:
73648         Remove; we're assuming Autoconf 2.54 or later now.
73649         Suggested by Bruno Haible.
73650         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73651
73652 2003-08-11  Bruno Haible  <bruno@clisp.org>
73653
73654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73655
73656 2003-08-11  Bruno Haible  <bruno@clisp.org>
73657
73658         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73659         (vasnprintf): Use it instead of wcslen.
73660
73661 2003-08-11  Bruno Haible  <bruno@clisp.org>
73662
73663         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73664         value to ensure that _Bool promotes to int. Use #define for _Bool when
73665         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73666
73667 2003-08-10  Karl Berry  <karl@gnu.org>
73668
73669         * lib/regex.h: update from libc (whitespace fix).
73670
73671 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73672
73673         Merge some files from coreutils.  These changes were
73674         originally made by Jim Meyering.
73675         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73676         many older Unixes require this.
73677         * lib/alloca.c (alloca): Remove cast to argument of free;
73678         no longer needed in C89.
73679         * lib/alloca_.h, regex.h: Fix white space to match
73680         what GNU indent does.
73681
73682 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73683
73684         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73685         apparently Emacs's Unicode mode got confused before my 2003-08-05
73686         checkin.
73687
73688 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73689
73690         * m4/extensions.m4: New file.
73691         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73692         Require gl_USE_SYSTEM_EXTENSIONS.
73693         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73694         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73695
73696 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73697
73698         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73699         * modules/extensions, modules/gnu-source: New files.
73700         * modules/timespec, modules/unlocked-io: Depend on extensions.
73701
73702 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73703
73704         * modules/restrict: New file.
73705         * MODULES.html.sh (func_all_modules): Add restrict.
73706         * modules/regex: Depend on restrict.
73707
73708 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73709
73710         * m4/restrict.m4: New file.
73711         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73712
73713 2003-08-07  Bruno Haible  <bruno@clisp.org>
73714
73715         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73716         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73717
73718 2003-08-07  Bruno Haible  <bruno@clisp.org>
73719
73720         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73721         makes the module 'getndelim2' compatible with the module 'getline'.
73722
73723 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73724
73725         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73726         byte with "\201" to avoid glitches when editing that source file
73727         with multi-gnome-terminal.
73728
73729 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73730
73731         * lib/bumpalloc.h: Remove.
73732
73733 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73734
73735         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73736         * modules/bumpalloc: Remove.
73737
73738 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73739
73740         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73741         GNU coding style.
73742
73743         Merge from coreutils.
73744         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73745         1. From glibc.
73746         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73747         from Karl Berry, implemented by Jim Meyering.
73748         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73749         from Dmitry V. Levin.
73750         Remove anachronistic cast of xrealloc.
73751         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73752         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73753         type. Otherwise, it wouldn't compile with at least /bin/cc on
73754         ymp-cray-unicos9.0.2.X.
73755         Combine two mostly-identical uses of alloca into one.
73756         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73757
73758 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73759
73760         [From Emacs.]
73761
73762         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73763         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73764         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73765         obsolete NLIST_NAME_UNION.
73766         [__GNU__]: Undef BSD and FSCALE.
73767         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73768
73769 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73770
73771         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73772         an enum type, so that it's guaranteed to promote to int.  See:
73773         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73774
73775 2003-08-03  Karl Berry  <karl@gnu.org>
73776
73777         * config/depcomp: update from automake.
73778
73779 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73780
73781         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73782         (strerror): Don't assume that a printable int fits in 14 bytes.
73783
73784 2003-07-31  Bruno Haible  <bruno@clisp.org>
73785
73786         * modules/getpass-gnu: New file.
73787         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73788
73789 2003-07-31  Bruno Haible  <bruno@clisp.org>
73790
73791         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73792
73793 2003-07-24  Karl Berry  <karl@gnu.org>
73794
73795         * config/missing: update from automake.
73796
73797 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73798             Bruno Haible  <bruno@clisp.org>
73799
73800         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73801         * lib/getline.c (getline, getdelim): Likewise.
73802         Remove _GNU_SOURCE define; now it's defined in config.h through
73803         m4/getline.m4.
73804
73805 2003-07-23  Karl Berry  <karl@gnu.org>
73806
73807         * config/config.sub: update from prep.
73808
73809 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73810
73811         * modules/xalloc (Depends-on): Add exitfail.
73812         * modules/xmemcoll: Likewise.
73813
73814 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73815
73816         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73817         over-parenthesization in macros.
73818
73819         Sync with coreutils.
73820
73821         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73822         required by C99.
73823
73824         Use `exit_failure' for xalloc and xmemcoll instead of their own
73825         private exit-failure variables.
73826         * lib/xalloc.h (xalloc_exit_failure): Remove.
73827         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73828         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73829         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73830         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73831         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73832
73833 2003-07-20  Jim Meyering  <jim@meyering.net>
73834
73835         * modules/closeout (Depends-on): Add exitfail.
73836         Suggestion from Bruno Haible.
73837
73838 2003-07-19  Karl Berry  <karl@gnu.org>
73839
73840         * config/config.sub: update from prep.
73841
73842 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73843
73844         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73845         Remove.
73846         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73847         to test that it can stand by itself.  Include "exitfail.h".
73848         Clients should set exit_failure instead.
73849         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73850
73851 2003-07-18  Bruno Haible  <bruno@clisp.org>
73852
73853         * modules/getndelim2: New file.
73854         * modules/getline: Share files with module getndelim2.
73855         * modules/getnline: Depend on getndelim2 instead of sharing files with
73856         it. Add getnline.c to lib_SOURCES.
73857         * MODULES.html.sh (func_all_modules): Add getndelim2.
73858
73859 2003-07-18  Bruno Haible  <bruno@clisp.org>
73860
73861         * m4/getndelim2.m4: New file.
73862         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73863         invoke gl_PREREQ_GETNDELIM2.
73864         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73865         gl_PREREQ_GETNDELIM2.
73866         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73867         gl_GETNDELIM2.
73868
73869 2003-07-18  Bruno Haible  <bruno@clisp.org>
73870
73871         * lib/getndelim2.h: New file.
73872         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73873         getndelim2.h.
73874         (getndelim2): Make non-static. Change return type to ssize_t.
73875         * lib/getline.h: Change argument names.
73876         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73877         * lib/getnline.c: Include getndelim2.h.
73878
73879 2003-07-18  Andreas Schwab  <schwab@suse.de>
73880
73881         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73882
73883 2003-07-17  Karl Berry  <karl@gnu.org>
73884
73885         * config/config.sub: update from prep.
73886
73887 2003-07-17  Bruno Haible  <bruno@clisp.org>
73888
73889         * modules/getnline: New file.
73890         * modules/getline: Add lib/getndelim2.c to source file list.
73891         * MODULES.html.sh (func_all_modules): Add getnline.
73892
73893 2003-07-17  Bruno Haible  <bruno@clisp.org>
73894
73895         * m4/getnline.m4: New file.
73896
73897 2003-07-17  Bruno Haible  <bruno@clisp.org>
73898
73899         * m4/Makefile.am.in: Remove file.
73900         * m4/Makefile.am: Remove file.
73901         * m4/Makefile.in: Remove file.
73902
73903 2003-07-17  Bruno Haible  <bruno@clisp.org>
73904
73905         * lib/getnline.h: New file.
73906         * lib/getnline.c: New file.
73907         * lib/getndelim2.c: New file, extracted from getline.c.
73908         (getndelim2): Renamed from getdelim2, with added nmax argument.
73909         * lib/getline.c: Include getndelim2.c.
73910         (getdelim2): Moved out to getndelim2.c.
73911         (getline, getdelim): Update.
73912
73913 2003-07-17  Bruno Haible  <bruno@clisp.org>
73914
73915         * lib/Makefile.am: Remove file.
73916         * lib/Makefile.in: Remove file.
73917
73918 2003-07-17  Bruno Haible  <bruno@clisp.org>
73919
73920         * configure.in: Remove file.
73921         * Makefile.in: Remove file.
73922
73923 2003-07-17  Bruno Haible  <bruno@clisp.org>
73924
73925         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73926
73927 2003-07-16  Karl Berry  <karl@gnu.org>
73928
73929         * config/srclist-update: was running fixlicense twice, which caused
73930                 texinfo.tex to be nullified for some reason.  Simplify,
73931                 $gplsrc is no longer needed as far as I can see?
73932
73933 2003-07-16  Jim Meyering  <jim@meyering.net>
73934
73935         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73936
73937 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73938
73939         * config/srclist.txt: Get the following files from gettext-runtime/intl
73940         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73941         ref-del.sin.  From Bruno Haible.
73942         * config/srclist-update (fixfile): Change grep pattern again, since the
73943         previous fix didn't work (there was another trailing $).  Use
73944         '[$]' to escape the $s.
73945
73946 2003-07-15  Karl Berry  <karl@gnu.org>
73947
73948         * lib/vasnprintf.c: update from gettext.
73949
73950 2003-07-15  Karl Berry  <karl@gnu.org>
73951
73952         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73953         gets expanded when surrounded by '$'.
73954
73955 2003-07-15  Jim Meyering  <jim@meyering.net>
73956
73957         * modules/save-cwd: Don't depend on error.  From Derek Price.
73958
73959 2003-07-15  Jim Meyering  <jim@meyering.net>
73960
73961         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73962
73963 2003-07-14  Simon Josefsson  <jas@extundo.com>
73964
73965         * modules/mempcpy: New file.
73966         * MODULES.html.sh (func_all_modules): Add mempcpy.
73967
73968 2003-07-14  Simon Josefsson  <jas@extundo.com>
73969
73970         * m4/mempcpy.m4: New file.
73971
73972 2003-07-14  Simon Josefsson  <jas@extundo.com>
73973
73974         * lib/mempcpy.h: New file.
73975         * lib/mempcpy.c: New file.
73976
73977 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73978
73979         * modules/getdate, modules/posixtm: Depend on mktime.
73980
73981 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73982
73983         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73984         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73985         unicodeio.c, unicodeio.h, unlocked-io.h:
73986         Switch from LGPL to GPL.
73987
73988 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73989
73990         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73991         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73992         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73993         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73994         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73995         updated automatically by ../config/srclist-update.  This changes
73996         their license from LPGL to GPL.
73997
73998 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73999
74000         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74001         assumed to refer to the root of the most recent stable gettext version.
74002         * config/srclistvars.sh: Add defaults for eggert.
74003         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74004         Match "This program" as well as "The program".  This is needed
74005         for gettext.
74006
74007 2003-07-14  Jim Meyering  <jim@meyering.net>
74008
74009         Don't emit diagnostics.  Let callers do that.
74010         * lib/save-cwd.c: Don't include "error.h".
74011         (save_cwd): Don't call error.  Ensure that errno is valid
74012         when returning nonzero.
74013
74014         * lib/save-cwd.h (restore_cwd): Update prototype.
74015         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74016         Simplify.  Don't call error upon failure.  Let callers do that.
74017         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74018         when auditing is enabled.  But don't bother updating the #if.
74019
74020 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74021
74022         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74023         it breaks C++ compilation.
74024         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74025
74026 2003-07-10  Simon Josefsson  <jas@extundo.com>
74027
74028         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74029
74030 2003-07-10  Jim Meyering  <jim@meyering.net>
74031
74032         * m4/clock_time.m4: Remove trailing blank.
74033         * m4/intmax_t.m4: Likewise.
74034
74035 2003-07-10  Jim Meyering  <jim@meyering.net>
74036
74037         * lib/vasnprintf.c: Remove trailing blanks.
74038         Make cpp indentation consistent.
74039
74040 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74041
74042         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74043         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74044         Switch from LGPL to GPL.
74045
74046 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74047
74048         * config/srclist.txt: Sort sublists.  Add
74049         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74050         that differ from gnulib for one reason or another; we'd like this list
74051         to be smaller but for now let's document what we have.
74052
74053 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74054
74055         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74056         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74057         and sweeter "eval x=$x".
74058         * config/srclist.txt: Get lib/argp* from glibc.
74059
74060 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74061
74062         * lib/mktime.c: Fix some boundary cases and remove need for floating
74063         point.
74064
74065         Issue a compile-time diagnostic if time_t is floating point, or if
74066         two's complement arithmetic is not in effect, or if arithmetic
74067         right shift does not propagate the sign.  These assumptions were
74068         all in the original code but they weren't checked.
74069
74070         (TIME_T_MIDPOINT, verify): New macros.
74071         (__isleap): Remove; it has integer overflow problems.
74072         (leapyear): New function, without those problems.
74073         (ydhms_tm_diff): Remove; splitting into two parts.
74074         (ydhms_diff): New function, containing the arithmetic part of
74075         the old ydhms_tm_diff function.  Issue a compile-time
74076         diagnostic if we are not using C99 integer division.
74077         Avoid casts when possible.
74078         (guess_time_tm): New function, containing the checking part of
74079         the old ydhms_tm_diff function.  Return the new value, rather than
74080         the difference between it and the old.  Accept a new argument T
74081         so that *T specifies the old value.  Check for overflow in the result.
74082
74083         (__mktime_internal): Use a time_t offset, not a long int offset.
74084         This undoes the 2003-06-04 change, which is no longer needed now
74085         that we have better overflow checking.
74086         (localtime_offset): Likewise.
74087
74088         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74089         and long are 64-bit but int is only 32-bit.
74090         (ydhms_diff): Use long int to store year1 and yday1.
74091         Issue a compile-time diagnostic if long int is not wide enough.
74092
74093         (__mktime_internal): Use long int to store adjusted year and yday.
74094         Use plain C rather than preprocessor commands, if that doesn't
74095         affect efficiency.
74096         Check for overflow (and try to repair) after each probe
74097         rather than checking only at the very end.  This avoids some bugs
74098         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74099         does not equal GMT offset at maximum time).
74100         Use integer to check for overflow rather than floating point; this
74101         is more portable to non-IEEE hosts, and is a tad faster.
74102         When we detect that we are oscillating between two values,
74103         don't check whether tm_isdst has the requested value, since
74104         we already know the answer.  When tm_isdst has the wrong value,
74105         use a different heuristic to find the right one, based on the
74106         extreme values actually observed in practice in tz2003a,
74107         rather than the (overly optimistic) "previous 3 calendar quarters".
74108
74109         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74110         "T const" to accommodate glibc style.
74111         (check_result): Use less-confusing report format.  "long" -> "long int.
74112         (main): Likewise.
74113         Don't loop if the iteration overflows time_t.
74114         Allow a negative step in the iteration.
74115
74116 2003-07-06  Karl Berry  <karl@gnu.org>
74117
74118         * config/depcomp: update from automake.
74119         * config/config.sub: update from prep.
74120
74121 2003-07-03  Karl Berry  <karl@gnu.org>
74122
74123         * config/config.guess: update from prep.
74124
74125 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74126
74127         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74128         xreadlink.c now includes it unconditionally.
74129
74130 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74131
74132         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74133         having it depend on HAVE_SYS_TYPES_H.
74134
74135 2003-07-01  Bruno Haible  <bruno@clisp.org>
74136
74137         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74138         <sys/types.h> should be sufficient.
74139         Reported by Paul Eggert.
74140
74141 2003-06-26  Karl Berry  <karl@gnu.org>
74142
74143         * config/depcomp: update from automake.
74144
74145 2003-06-26  Bruno Haible  <bruno@clisp.org>
74146
74147         * modules/human: Depend on module stdbool.
74148
74149 2003-06-25  Bruno Haible  <bruno@clisp.org>
74150
74151         * modules/readlink: New file.
74152         * modules/xreadlink: Depend on it.
74153         * MODULES.html.sh (func_all_modules): Add readlink.
74154
74155 2003-06-25  Bruno Haible  <bruno@clisp.org>
74156
74157         * m4/readlink.m4: New file.
74158
74159 2003-06-25  Bruno Haible  <bruno@clisp.org>
74160
74161         * lib/readlink.c: New file.
74162
74163 2003-06-22  Karl Berry  <karl@gnu.org>
74164
74165         * config/srclist.txt: update mkinstalldirs from automake.
74166         * config/mkinstalldirs: update.
74167
74168 2003-06-22  Bruno Haible  <bruno@clisp.org>
74169
74170         Portability to mingw32.
74171         * m4/ssize_t.m4: New file, from GNU gettext.
74172         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74173         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74174
74175 2003-06-22  Bruno Haible  <bruno@clisp.org>
74176
74177         * modules/safe-read: Add m4/ssize_t.m4.
74178         * modules/xreadlink: Add m4/ssize_t.m4.
74179
74180 2003-06-20  Bruno Haible  <bruno@clisp.org>
74181
74182         Assume C89, so PARAMS isn't needed.
74183         * lib/unicodeio.h (PARAMS): Remove.
74184         * lib/unicodeio.c: Don't use PARAMS.
74185
74186 2003-06-18  Karl Berry  <karl@gnu.org>
74187
74188         * config/config.{guess,sub}: update from prep.
74189
74190 2003-06-18  Jim Meyering  <jim@meyering.net>
74191
74192         Merge changes from coreutils.
74193         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74194         Remove explicit declarations of xmalloc and realloc.
74195         Include xalloc.h.
74196         (read_utmp): Remove anachronistic cast of xmalloc.
74197
74198 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74199
74200         Assume C89, so PARAMS isn't needed.
74201         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74202         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74203         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74204         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74205         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74206         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74207         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74208         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74209         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74210         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74211         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74212         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74213         no longer needed. Anyway, config.h should always be included before any
74214         other file.
74215
74216 2003-06-11  Simon Josefsson  <jas@extundo.com>
74217
74218         * modules/sysexits: New file.
74219         * MODULES.html.sh (func_all_modules): Add sysexits.
74220
74221 2003-06-11  Simon Josefsson  <jas@extundo.com>
74222
74223         * lib/sysexit_.h: New file.
74224
74225 2003-06-11  Derek Price  <derek@ximbiot.com>
74226
74227         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74228         necessary.
74229
74230 2003-06-11  Bruno Haible  <bruno@clisp.org>
74231
74232         * m4/sysexits.m4: New file.
74233
74234 2003-06-10  Simon Josefsson  <jas@extundo.com>
74235
74236         * lib/argp.h: New file, from glibc.
74237         * lib/argp-ba.c: New file, from glibc.
74238         * lib/argp-eexst.c: New file, from glibc.
74239         * lib/argp-fmtstream.c: New file, from glibc.
74240         * lib/argp-fmtstream.h: New file, from glibc.
74241         * lib/argp-fs-xinl.c: New file, from glibc.
74242         * lib/argp-help.c: New file, from glibc.
74243         * lib/argp-namefrob.h: New file, from glibc.
74244         * lib/argp-parse.c: New file, from glibc.
74245         * lib/argp-pv.c: New file, from glibc.
74246         * lib/argp-pvh.c: New file, from glibc.
74247         * lib/argp-xinl.c: New file, from glibc.
74248
74249 2003-06-10  Simon Josefsson  <jas@extundo.com>
74250
74251         * modules/strchrnul: New file.
74252
74253 2003-06-10  Simon Josefsson  <jas@extundo.com>
74254
74255         * modules/argp: New file.
74256
74257 2003-06-10  Simon Josefsson  <jas@extundo.com>
74258
74259         * m4/strchrnul.m4: New file.
74260
74261 2003-06-10  Simon Josefsson  <jas@extundo.com>
74262
74263         * lib/strchrnul.h: New file.
74264         * lib/strchrnul.c: New file.
74265
74266 2003-06-10  Bruno Haible  <bruno@clisp.org>
74267
74268         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74269
74270 2003-06-07  Karl Berry  <karl@gnu.org>
74271
74272         * config/config.{guess,sub}: update from prep.
74273
74274 2003-06-07  Jim Meyering  <jim@meyering.net>
74275
74276         * modules/strtod: Use $(...) notation, not @...@ for
74277         AC_REPLACE'd variables.
74278         * modules/localcharset: Likewise.
74279
74280 2003-06-07  Jim Meyering  <jim@meyering.net>
74281
74282         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74283         in place of my name in the copyright comment.
74284         Remove definition and uses of __P.
74285
74286         From coreutils.
74287         * lib/stat.c: Don't declare xmalloc explicitly.
74288         Instead, include "xalloc.h".
74289         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74290         xrealloc, and xcalloc return values.
74291         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74292         Improve comment.
74293         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74294
74295 2003-06-07  Bruno Haible  <bruno@clisp.org>
74296
74297         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74298         avoid AC_CONFIG_LINKS.
74299         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74300         fnmatch.h, to avoid AC_CONFIG_LINKS.
74301         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74302
74303 2003-06-07  Bruno Haible  <bruno@clisp.org>
74304
74305         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74306         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74307         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74308         directory.
74309         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74310         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74311         directory.
74312
74313 2003-06-06  Jim Meyering  <jim@meyering.net>
74314
74315         Merge from coreutils.
74316         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74317         Consolidate declarations and initializations of *_base* locals.
74318
74319         Merge from coreutils.
74320         This avoids a core dump on systems without GNU putenv,
74321         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74322         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74323         (unsetenv): New static function, from GNU libc.
74324         (rpl_putenv): Use it.
74325
74326         * lib/modechange.c: Remove trailing blanks.
74327
74328         Merge from coreutils.
74329         * lib/fsusage.c: Remove declaration of statfs.
74330         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74331
74332         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74333
74334 2003-06-06  Jim Meyering  <jim@meyering.net>
74335
74336         * lib/stdbool_.h: Renamed from stdbool.h.in.
74337
74338 2003-06-06  Jim Meyering  <jim@meyering.net>
74339             Bruno Haible  <bruno@clisp.org>
74340
74341         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74342         Adjust Makefile.am snippet not to redirect directly to target.
74343         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74344
74345 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74346
74347         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74348         mismatch, look in future quarters as well as past.  This fixes a
74349         bug when processing fall-backwards gaps immediately after a long
74350         period of daylight-saving time.
74351
74352         * lib/mktime.c: Assume freestanding C89 or better.
74353         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74354         (__P): Remove; not used.
74355         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74356         (mktime, not_equal_tm, print_tm, check_result,
74357         main): Use prototypes.  Use const * where appropriate.
74358         (main): Fix typo in testing code that uncovered by above changes.
74359         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74360
74361 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74362
74363         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74364         locale.h, localeconv.  This merges changes from coreutils.
74365
74366         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74367         It can be removed after the next Autoconf is released.
74368         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74369         needed.
74370
74371 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74372
74373         * lib/mktime.c: Fix Debian bug 177940
74374         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74375         (localtime_offset): Now long int, not time_t, because we want it
74376         to be guaranteed to be signed.  All uses changed.
74377         (__mktime_internal): If overflow would occur when adding offset,
74378         don't add it.
74379
74380         Merge 'human' changes from coreutils.  Rewrite to support
74381         locale-specific notations like thousands separators.
74382         * lib/human.c: Simplify authorship notice.
74383         Include human.h immediately after config.h.
74384         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74385         <limits.h>: Do not include, since human.h does.
74386         (SIZE_MAX, UINTMAX_MAX): New macros.
74387         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74388         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74389         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74390         (power_letter): Renamed from suffixes.
74391         (generate_suffix_backwards): Remove.
74392         (adjust_value): Now takes int style (because of human.h changes)
74393         and long double value (for greater precision on some platforms).
74394         (group_number): New function.
74395         (human_readable): Use it.  Use integer options, not enum.
74396         Put the options before the sizes in the arg list.
74397         Support all the new options.
74398         The old human_readable function has been removed;
74399         use inttostr.h instead.
74400         (human_readable, default_block_size, humblock):
74401         Use uintmax_t, not int, for block sizes.
74402         (human_readable_inexact, block_size_types): Remove.
74403         (block_size_opts): New constant.
74404         (human_options): Renamed from human_block_size, with new signature
74405         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74406         * lib/human.h: Add copyright and authorship notice.
74407         Include <limits.h> and <stdbool.h> unconditionally.
74408         (PARAMS): Remove.  All uses removed.
74409         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74410         (enum human_inexact_style): Remove tag; now a nameless enum.
74411         (human_floor, human_ceiling, human_round_to_even): Now have
74412         values 2, 0, 1 rather than -1, 1, 0.
74413         (human_group_digits, human_suppress_point_zero, human_autoscale,
74414         human_base_1024, human_SI, human_B): New constants.
74415         (human_readable_inexact, human_block_size): Remove.
74416         (human_readable): Size args are now uintmax_t, not int.
74417         (human_options): New decl.
74418
74419         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74420         unnecessary now that we assume C89 or better.  This change
74421         imported from coreutils.
74422
74423         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74424         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74425         in the 2003-05-30 sync from glibc.
74426
74427         .h files should stand alone, but we shouldn't include <sys/types.h>
74428         if we can get away with just <stddef.h>.
74429
74430         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74431         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74432         rather than <sys/types.h>, as we merely need size_t.
74433         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74434         to get size_t.
74435         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74436         Include <stdio.h>, to get FILE.
74437         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74438         memcasecmp.h has included <stddef.h> and all we need is size_t.
74439         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74440         our interface, instead of including <sys/types.h>
74441
74442 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74443
74444         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74445         now, as glibc mktime is buggy on non-glibc systems.
74446
74447 2003-06-03  Karl Berry  <karl@gnu.org>
74448
74449         * config/config.sub: update from prep.
74450
74451 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74452
74453         [from coreutils]
74454         Fix some minor time-related bugs with POSIX time arguments.
74455         Some valid time stamps were being rejected (notably -1, and
74456         time stamps before 1900 on 64-bit hosts).  And some invalid
74457         time stamps were being accepted, e.g. September 31.
74458
74459         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74460         that we can return (time_t) -1 successfully.
74461         * lib/posixtm.c: Likewise.
74462         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74463         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74464         (t): Remove static var.
74465         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74466         of static var.  All uses changed.
74467         (year): Do not reject years before 1900; they can occur with
74468         64-bit time_t.
74469         (posix_time_parse): Do not check for out-of-range components;
74470         that is now the caller's responsibility, since our checks were
74471         only approximations.
74472         (posixtime): Use mktime to check for out-of-range components,
74473         since it knows them exactly.
74474         If mktime returns (time_t) -1, check whether an error actually occurred
74475         by invoking localtime on -1.
74476         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74477         posixtime failures better.
74478         Improve the test data (in comments only).
74479
74480 2003-06-02  Karl Berry  <karl@gnu.org>
74481
74482         * config/mkinstalldirs (version): new variable.
74483         (--version): new option.
74484         (usage): improve message.
74485
74486 2003-05-30  Karl Berry  <karl@gnu.org>
74487
74488         * lib/mktime.c: update from libc.
74489
74490 2003-05-30  Bruno Haible  <bruno@clisp.org>
74491
74492         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74493         * config/config.rpath: Upgrade to gettext-0.12.1.
74494
74495 2003-05-30  Bruno Haible  <bruno@clisp.org>
74496
74497         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74498         * m4/nls.m4: New file, from gettext-0.12.1.
74499         * m4/po.m4: New file, from gettext-0.12.1.
74500         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74501
74502 2003-05-30  Bruno Haible  <bruno@clisp.org>
74503
74504         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74505         * lib/localcharset.h: Likewise.
74506         * lib/localcharset.c: Likewise.
74507
74508 2003-05-29  Karl Berry  <karl@gnu.org>
74509
74510         * config/config.rpath: update from gettext.
74511
74512 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74513
74514         Assume the headers required for C89 freestanding compilers.
74515         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74516         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74517         * m4/human.m4 (gl_HUMAN): Likewise.
74518         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74519         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74520         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74521         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74522         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74523         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74524
74525 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74526
74527         Assume the headers required for C89 freestanding compilers.
74528         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74529         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74530         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74531         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74532         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74533         define, since <limits.h> is guaranteed to do that.
74534         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74535         * lib/exclude.c: Include <stdbool.h> unconditionally.
74536         * lib/tempname.c: Include <stddef.h> unconditionally.
74537         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74538         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74539         <stddef.h> does that.
74540         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74541         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74542         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74543         needed.
74544         * lib/xstrtol.c: Likewise.
74545         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74546         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74547
74548         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74549         warnings on some platforms.
74550
74551         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74552         arbitrarily.
74553
74554 2003-05-26  Jim Meyering  <jim@meyering.net>
74555
74556         Merge in a change from coreutils:
74557         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74558         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74559         that condition, rather than `-1' which is slightly misleading.
74560         Change the name of the cache variable to have the gl_ prefix.
74561         Prompted by a patch from Richard Dawe for DJGPP.
74562
74563 2003-05-24  Karl Berry  <karl@gnu.org>
74564
74565         * config/config.guess: update from prep.
74566
74567 2003-05-22  Karl Berry  <karl@gnu.org>
74568
74569         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74570
74571 2003-05-20  Karl Berry  <karl@gnu.org>
74572
74573         * config/config.guess: update from prep.
74574
74575 2003-05-18  Karl Berry  <karl@gnu.org>
74576
74577         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74578         might actually be set by the user.
74579
74580         * config/depcomp, install-sh, mdate-sh: update from automake.
74581
74582 2003-05-17  Bruno Haible  <bruno@clisp.org>
74583
74584         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74585         invalid expansion for AC_EGREP_CPP.
74586         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74587         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74588         Suggested by Akim Demaille <akim@epita.fr> in
74589         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74590
74591 2003-05-12  Jim Meyering  <jim@meyering.net>
74592
74593         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74594         the space-padded-by-default conversion specifiers, %e, %k, %l.
74595
74596 2003-05-12  Bruno Haible  <bruno@clisp.org>
74597
74598         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74599         the string is longer than 4 KB.
74600
74601 2003-05-11  Karl Berry  <karl@gnu.org>
74602
74603         * config/config.{guess,sub}: update from prep.
74604
74605 2003-05-09  Bruno Haible  <bruno@clisp.org>
74606
74607         * modules/error: Add m4/strerror_r.m4 to file list.
74608
74609 2003-05-03  Bruno Haible  <bruno@clisp.org>
74610
74611         Upgrade to Unicode-4.0.
74612         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74613         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74614         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74615         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74616         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74617         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74618         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74619         Change width of U+E0100..U+E01EF from 1 to 0.
74620
74621 2003-04-25  Jim Meyering  <jim@meyering.net>
74622
74623         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74624         of type size_t, not int.
74625
74626 2003-04-25  Bruno Haible  <bruno@clisp.org>
74627
74628         * lib/copy-file.c: Include <stddef.h>, for size_t.
74629
74630 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74631
74632         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74633         code which expansion is under static control.  Patch imported from
74634         Akim Demaille's patch to Bison; see
74635         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74636
74637 2003-04-14  Bruno Haible  <bruno@clisp.org>
74638
74639         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74640
74641 2003-04-11  Jim Meyering  <jim@meyering.net>
74642
74643         Merge changes from Coreutils.
74644
74645         2003-03-22  Jim Meyering  <jim@meyering.net>
74646
74647         * lib/strftime.c (widen): Cast alloca return value to proper type.
74648
74649         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74650
74651         From GNU libc.
74652         * lib/strftime.c (my_strftime): Handle very large width
74653         specifications for numeric values correctly.  Improve checks for
74654         overflow.
74655
74656         2003-01-19  Jim Meyering  <jim@meyering.net>
74657
74658         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74659         definitions.
74660         (nl_get_alt_digit) [! defined my_strftime]: Define.
74661         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74662         _nl_get_alt_digit and _nl_get_walt_digit.
74663
74664         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74665         libc. These changes have no effect outside of _LIBC.
74666
74667 2003-04-10  Bruno Haible  <bruno@clisp.org>
74668
74669         * modules/findprog: New file.
74670         * MODULES.html.sh (func_all_modules): Add it.
74671
74672 2003-04-10  Bruno Haible  <bruno@clisp.org>
74673
74674         * m4/findprog.m4: New file.
74675         * m4/eaccess.m4: New file.
74676
74677 2003-04-10  Bruno Haible  <bruno@clisp.org>
74678
74679         * lib/findprog.h: New file, from GNU gettext.
74680         * lib/findprog.c: New file, from GNU gettext.
74681
74682 2003-04-05  Jim Meyering  <jim@meyering.net>
74683
74684         Merge changes from Coreutils.
74685
74686         * lib/exclude.h (PARAMS): Remove definition and uses.
74687         * lib/exclude.c: Remove uses of `PARAMS'.
74688
74689         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74690         Add test-cases for DOS filenames. Declare program_name.
74691         (main): Set up program_name.  Patch by Rich Dawe.
74692
74693         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74694         error from mntctl.
74695         Use mntctl's return value to drive the entry-processing loop, since
74696         we can't rely on the value of the vmt_length member in the last
74697         entry.  On some systems doing so could result in exhausting
74698         virtual memory.  Based in part on a patch from Mike Jetzer.
74699
74700 2003-04-04  Bruno Haible  <bruno@clisp.org>
74701
74702         * modules/linebreak: New file.
74703         * MODULES.html.sh (func_all_modules): Add it.
74704
74705 2003-04-04  Bruno Haible  <bruno@clisp.org>
74706
74707         * m4/linebreak.m4: New file.
74708
74709 2003-04-04  Bruno Haible  <bruno@clisp.org>
74710
74711         * lib/linebreak.h: New file, from GNU gettext.
74712         * lib/linebreak.c: New file, from GNU gettext with slight
74713         modifications.
74714         * lib/lbrkprop.h: New file, from GNU gettext.
74715
74716 2003-04-03  Bruno Haible  <bruno@clisp.org>
74717
74718         * modules/utf8-ucs4: New file.
74719         * modules/utf16-ucs4: New file.
74720         * modules/ucs4-utf8: New file.
74721         * modules/ucs4-utf16: New file.
74722         * MODULES.html.sh (func_all_modules): Add them.
74723
74724 2003-04-03  Bruno Haible  <bruno@clisp.org>
74725
74726         * m4/utf-ucs4.m4: New file.
74727         * m4/ucs4-utf.m4: New file.
74728
74729 2003-04-03  Bruno Haible  <bruno@clisp.org>
74730
74731         * lib/utf8-ucs4.h: New file, from GNU gettext.
74732         * lib/utf16-ucs4.h: New file, from GNU gettext.
74733         * lib/ucs4-utf8.h: New file, from GNU gettext.
74734         * lib/ucs4-utf16.h: New file, from GNU gettext.
74735
74736 2003-04-02  Bruno Haible  <bruno@clisp.org>
74737
74738         * modules/binary-io: New file.
74739         * MODULES.html.sh (func_all_modules): Add it.
74740
74741 2003-04-02  Bruno Haible  <bruno@clisp.org>
74742
74743         * lib/binary-io.h: New file, from GNU gettext.
74744
74745 2003-04-01  Bruno Haible  <bruno@clisp.org>
74746
74747         * modules/pathname: New file.
74748         * MODULES.html.sh (func_all_modules): Add it.
74749
74750 2003-04-01  Bruno Haible  <bruno@clisp.org>
74751
74752         * lib/pathname.h: New file, from GNU gettext.
74753         * lib/concatpath.c: New file, from GNU gettext.
74754
74755 2003-03-30  Bruno Haible  <bruno@clisp.org>
74756
74757         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74758
74759 2003-03-30  Bruno Haible  <bruno@clisp.org>
74760
74761         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74762         function chown() doesn't exist.
74763
74764 2003-03-28  Bruno Haible  <bruno@clisp.org>
74765
74766         * modules/copy-file: New file.
74767         * MODULES.html.sh (func_all_modules): Add it.
74768
74769 2003-03-28  Bruno Haible  <bruno@clisp.org>
74770
74771         * m4/copy-file.m4: New file.
74772
74773 2003-03-28  Bruno Haible  <bruno@clisp.org>
74774
74775         * lib/copy-file.h: New file, from GNU gettext.
74776         * lib/copy-file.c: New file, from GNU gettext.
74777
74778 2003-03-18  Jim Meyering  <jim@meyering.net>
74779
74780         * lib/quote.c (quote_n): Fix typo in comment.
74781
74782 2003-03-18  Bruno Haible  <bruno@clisp.org>
74783
74784         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74785         checking.
74786         * m4/onceonly_2_57.m4: Likewise.
74787
74788 2003-03-17  Bruno Haible  <bruno@clisp.org>
74789
74790         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74791         (m4_quote): Remove macro.
74792         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74793
74794 2003-03-14  Jim Meyering  <jim@meyering.net>
74795
74796         Merge changes from Coreutils.
74797         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74798         to be const, in order to avoid warnings.
74799         (obstack_room): Likewise.
74800         (obstack_empty_p): Likewise.
74801
74802 2003-03-14  Bruno Haible  <bruno@clisp.org>
74803
74804         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74805         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74806
74807 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74808
74809         Merge changes from Bison.
74810         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74811         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74812         when compiling Bison 1.875's `bitset bset = obstack_alloc
74813         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74814         * lib/hash.c: Include <stdbool.h> unconditionally.
74815
74816 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74817
74818         * m4/onceonly.m4 (m4_quote): New macro.
74819         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74820         Quote AC_FOREACH variable-expansions properly.
74821
74822 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74823
74824         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74825
74826 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74827
74828         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74829         Reported by Bruce Becker; see:
74830         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74831
74832 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74833             Bruno Haible  <bruno@clisp.org>
74834
74835         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74836         Reported by John Hughes, see
74837         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74838
74839 2003-02-20  Bruno Haible  <bruno@clisp.org>
74840
74841         * MODULES.html.sh (func_all_modules): Add poll.
74842
74843 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74844
74845         * modules/poll: New file.
74846
74847 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74848
74849         * lib/poll_.h: New file.
74850         * lib/poll.c: New file.
74851
74852 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74853
74854         * m4/poll.m4: New file.
74855
74856 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74857
74858         * modules/mathl: New file.
74859
74860 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74861
74862         * lib/mathl.h: New file.
74863         * lib/acosl.c: New file.
74864         * lib/asinl.c: New file.
74865         * lib/atanl.c: New file.
74866         * lib/ceill.c: New file.
74867         * lib/cosl.c: New file.
74868         * lib/expl.c: New file.
74869         * lib/floorl.c: New file.
74870         * lib/frexpl.c: New file.
74871         * lib/ldexpl.c: New file.
74872         * lib/logl.c: New file.
74873         * lib/sincosl.c: New file.
74874         * lib/sinl.c: New file.
74875         * lib/sqrtl.c: New file.
74876         * lib/tanl.c: New file.
74877         * lib/trigl.c: New file.
74878         * lib/trigl.h: New file.
74879
74880 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74881
74882         * m4/mathl.m4: New file.
74883
74884 2003-02-18  Bruno Haible  <bruno@clisp.org>
74885
74886         * MODULES.html.sh (func_all_modules): Add mathl.
74887
74888 2003-02-17  Bruno Haible  <bruno@clisp.org>
74889
74890         * modules/mkdtemp: New module.
74891         * MODULES.html.sh (func_all_modules): Add it.
74892
74893 2003-02-17  Bruno Haible  <bruno@clisp.org>
74894
74895         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74896
74897 2003-02-17  Bruno Haible  <bruno@clisp.org>
74898
74899         * lib/mkdtemp.h: New file, from GNU gettext.
74900         * lib/mkdtemp.c: New file, from GNU gettext.
74901
74902 2003-02-02  Jim Meyering  <jim@meyering.net>
74903
74904         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74905         e.g. glibc-2.2.93.
74906
74907 2003-01-31  Bruno Haible  <bruno@clisp.org>
74908
74909         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74910         'rpl_rename'.
74911         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74912         'rpl_strnlen'.
74913         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74914         'rpl_strtod'.
74915         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74916         'rpl_utime'.
74917
74918 2003-01-31  Bruno Haible  <bruno@clisp.org>
74919
74920         * lib/rename.c: #undef rename before defining rpl_rename.
74921         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74922
74923 2003-01-30  Bruno Haible  <bruno@clisp.org>
74924
74925         * modules/vasnprintf, modules/vasprintf: New modules.
74926         * MODULES.html.sh (func_all_modules): Add them.
74927
74928 2003-01-30  Bruno Haible  <bruno@clisp.org>
74929
74930         * m4/signed.m4: New file, from GNU gettext.
74931         * m4/longdouble.m4: New file, from GNU gettext.
74932         * m4/wchar_t.m4: New file, from GNU gettext.
74933         * m4/wint_t.m4: New file, from GNU gettext.
74934         * m4/vasnprintf.m4: New file.
74935         * m4/vasprintf.m4: New file.
74936
74937 2003-01-30  Bruno Haible  <bruno@clisp.org>
74938
74939         * lib/printf-args.h: New file, from GNU gettext.
74940         * lib/printf-args.c: New file, from GNU gettext.
74941         * lib/printf-parse.h: New file, from GNU gettext.
74942         * lib/printf-parse.c: New file, from GNU gettext.
74943         * lib/vasnprintf.h: New file, from GNU gettext.
74944         * lib/vasnprintf.c: New file, from GNU gettext.
74945         * lib/asnprintf.c: New file, from GNU gettext.
74946         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74947         * lib/vasprintf.c: New file, from GNU gettext.
74948         * lib/asprintf.c: New file, from GNU gettext.
74949
74950 2003-01-29  Bruno Haible  <bruno@clisp.org>
74951
74952         * modules/stpncpy: New module.
74953         * MODULES.html.sh (func_all_modules): Add it.
74954
74955 2003-01-29  Bruno Haible  <bruno@clisp.org>
74956
74957         * m4/stpncpy.m4: New file.
74958
74959 2003-01-29  Bruno Haible  <bruno@clisp.org>
74960
74961         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74962         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74963
74964 2003-01-28  Bruno Haible  <bruno@clisp.org>
74965
74966         * modules/c-ctype: New module.
74967         * MODULES.html.sh (func_all_modules): Add it.
74968
74969 2003-01-28  Bruno Haible  <bruno@clisp.org>
74970
74971         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74972         Paul Eggert.
74973         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74974         Paul Eggert.
74975
74976 2003-01-27  Bruno Haible  <bruno@clisp.org>
74977
74978         * modules/xsetenv: New module.
74979         * MODULES.html.sh (func_all_modules): Add it.
74980
74981 2003-01-27  Bruno Haible  <bruno@clisp.org>
74982
74983         * lib/xsetenv.h: New file, from GNU gettext.
74984         * lib/xsetenv.c: New file, from GNU gettext.
74985
74986 2003-01-23  Jim Meyering  <jim@meyering.net>
74987
74988         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74989         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74990
74991 2003-01-23  Bruno Haible  <bruno@clisp.org>
74992
74993         * modules/minmax: New module.
74994         * MODULES.html.sh (func_all_modules): Add it.
74995
74996 2003-01-23  Bruno Haible  <bruno@clisp.org>
74997
74998         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74999         Eggert.
75000
75001 2003-01-22  Bruno Haible  <bruno@clisp.org>
75002
75003         * modules/exit: New module.
75004         * MODULES.html.sh (func_all_modules): Add it.
75005
75006 2003-01-22  Bruno Haible  <bruno@clisp.org>
75007
75008         * lib/exit.h: New file, from GNU gettext.
75009
75010 2003-01-19  Bruno Haible  <bruno@clisp.org>
75011
75012         * gnulib-tool: Recognize option --extract-maintainer.
75013         (func_get_maintainer): New function.
75014         * modules/*: Add Maintainer entry.
75015
75016 2003-01-16  Jim Meyering  <jim@meyering.net>
75017
75018         * m4/regex.m4: The `regex' struct is both input and output.
75019         Initialize it before each use.  Patch by Tim Waugh.
75020
75021 2003-01-16  Bruno Haible  <bruno@clisp.org>
75022
75023         * MODULES.html.sh: Add a table of contents. Add the module name as
75024         leftmost column. Add hyperlinks.
75025
75026 2003-01-15  Bruno Haible  <bruno@clisp.org>
75027
75028         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75029
75030 2003-01-15  Bruno Haible  <bruno@clisp.org>
75031
75032         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75033         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75034         suffix.
75035
75036 2003-01-15  Bruno Haible  <bruno@clisp.org>
75037
75038         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75039
75040 2003-01-15  Bruno Haible  <bruno@clisp.org>
75041
75042         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75043         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75044
75045 2003-01-14  Jim Meyering  <jim@meyering.net>
75046
75047         * lib/same.c (same_name): Tweak a comment.
75048
75049 2003-01-14  Bruno Haible  <bruno@clisp.org>
75050
75051         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75052         when a string comparison is sufficient.
75053
75054 2003-01-14  Bruno Haible  <bruno@clisp.org>
75055
75056         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75057         'unsigned int'.
75058
75059 2003-01-14  Bruno Haible  <bruno@clisp.org>
75060
75061         * lib/hash-pjw.c: Add comment about low quality of this function.
75062
75063 2003-01-13  Bruno Haible  <bruno@clisp.org>
75064
75065         * modules/stpcpy: Distribute lib/stpcpy.h.
75066         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75067
75068 2003-01-13  Bruno Haible  <bruno@clisp.org>
75069
75070         * modules/*: Add a description.
75071         * modules/strpbrk: Fix Makefile.am snippet.
75072         * modules/strtoimax: Fix dependencies.
75073         * modules/strtoumax: Likewise.
75074
75075 2003-01-13  Bruno Haible  <bruno@clisp.org>
75076
75077         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75078         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75079         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75080
75081 2003-01-13  Bruno Haible  <bruno@clisp.org>
75082
75083         * gnulib-tool (func_create_testdir): Store config/* files in the main
75084         directory.
75085         * config.rpath: Move to ...
75086         * config/config.rpath: ... here.
75087         * modules/gettext: Contains config/config.rpath, not config.rpath.
75088         * modules/iconv: Likewise.
75089
75090 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75091
75092         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75093         to avoid collisions with libcurses and libreadline.
75094
75095         * m4/getstr.m4: Remove.
75096         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75097
75098 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75099
75100         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75101         to avoid collisions with libcurses and libreadline.
75102
75103         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75104         * lib/getstr.h, getstr.c: Remove.
75105         * lib/getline.c: Include "getline.h", to check interface.
75106         Move body of old getstr.c here: this defines MIN_CHUNK and
75107         declares getdelim2, which is renamed from getstr.
75108         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75109
75110         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75111         All uses changed.
75112         * lib/linebuffer.h: Likewise.
75113         (readline): Remove backward-compatibility macro.
75114
75115 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75116
75117         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75118         to avoid collisions with libcurses and libreadline.
75119         * getstr: Remove.
75120         * MODULES.html.sh: Remove getstr.
75121         * modules/getline: Depend on unlocked-io, not getstr.
75122
75123 2003-01-12  Jim Meyering  <jim@meyering.net>
75124
75125         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75126
75127 2003-01-10  Bruno Haible  <bruno@clisp.org>
75128
75129         * modules/alloca: Change Makefile.am requirements. Simplify Include
75130         requirements. Add lib/alloca_.h to file list.
75131
75132 2003-01-10  Bruno Haible  <bruno@clisp.org>
75133
75134         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75135
75136 2003-01-10  Bruno Haible  <bruno@clisp.org>
75137
75138         * lib/alloca_.h: New file.
75139         * lib/getdate.y: Unconditionally include alloca.h.
75140         * lib/makepath.c: Likewise.
75141         * lib/setenv.c: Likewise.
75142         * lib/userspec.c: Likewise.
75143
75144 2003-01-09  Karl Berry  <karl@gnu.org>
75145
75146         * MODULES.html.sh: include `dirname $0` in PATH, to find
75147         gnulib-tool.
75148
75149 2003-01-09  Bruno Haible  <bruno@clisp.org>
75150
75151         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75152         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75153
75154 2003-01-09  Bruno Haible  <bruno@clisp.org>
75155
75156         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75157
75158 2003-01-09  Bruno Haible  <bruno@clisp.org>
75159
75160         * lib/stdbool.h.in: New file.
75161
75162 2003-01-09  Bruno Haible  <bruno@clisp.org>
75163
75164         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75165         * MODULES.html.sh: Likewise.
75166
75167 2003-01-08  Jim Meyering  <jim@meyering.net>
75168
75169         * lib/full-write.c: Undefine and define-away `const' after inclusion
75170         of errno.h, not before.  Suggestion from Bruno Haible.
75171
75172 2003-01-08  Bruno Haible  <bruno@clisp.org>
75173
75174         * modules/full-read: Depend on full-write.
75175
75176 2003-01-08  Bruno Haible  <bruno@clisp.org>
75177
75178         * lib/safe-read.c: Include specification header first, to ensure its
75179         selfcontainedness.
75180         * lib/full-write.c: Likewise.
75181
75182 2003-01-07  Jim Meyering  <jim@meyering.net>
75183
75184         * lib/full-write.c: Rework so that it may serve to define full_read,
75185         too.
75186         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75187
75188 2003-01-07  Bruno Haible  <bruno@clisp.org>
75189
75190         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75191         <inttypes.h>.
75192         * lib/xstrtol.h: Likewise.
75193         * lib/xstrtoimax.c: Likewise.
75194         * lib/xstrtoumax.c: Likewise.
75195         * lib/human.h: Likewise.
75196
75197         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75198         on systems that have <inttypes.h> but not <stdint.h>.
75199
75200 2003-01-07  Bruno Haible  <bruno@clisp.org>
75201
75202         * MODULES.html.sh: Add copyright notice.
75203         (missed_files): Omit CVS directory entries.
75204         (func_module): Make it work with sed-3.02.
75205         * MODULES.txt: Remove file.
75206
75207 2003-01-06  Jim Meyering  <jim@meyering.net>
75208
75209         * lib/version-etc.c: Update year in translatable copyright string.
75210
75211 2003-01-03  Karl Berry  <karl@gnu.org>
75212
75213         * config/config.{guess,sub}: update from prep.
75214
75215 2003-01-02  Karl Berry  <karl@gnu.org>
75216
75217         * doc/COPYING.DOC: belatedly updated to 1.2.
75218
75219 2003-01-01  Karl Berry  <karl@gnu.org>
75220
75221         * gnulib-tool (func_verify_module): report module name $module in
75222         error message, not $1.
75223         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75224         be created, only if it doesn't exist.
75225         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75226
75227 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75228
75229         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75230
75231 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75232
75233         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75234         memcmp if strcoll doesn't work.
75235
75236 2002-12-31  Bruno Haible  <bruno@clisp.org>
75237
75238         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75239         nonempty.
75240
75241 2002-12-31  Bruno Haible  <bruno@clisp.org>
75242
75243         * lib/memcoll.c (STRCOLL): New macro.
75244         (memcoll): Use it.
75245
75246 2002-12-31  Bruno Haible  <bruno@clisp.org>
75247
75248         * lib/localcharset.h: New file.
75249         * lib/localcharset.c: Include it.
75250         * lib/unicodeio.c: Likewise.
75251
75252 2002-12-31  Bruno Haible  <bruno@clisp.org>
75253
75254         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75255         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75256
75257 2002-12-31  Bruno Haible  <bruno@clisp.org>
75258
75259         * lib/getline.h: Include <stddef.h>, for size_t.
75260
75261         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75262         * lib/unicodeio.c: Don't include <stddef.h>.
75263
75264 2002-12-31  Bruno Haible  <bruno@clisp.org>
75265
75266         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75267         HAVE_TM_ZONE.
75268
75269 2002-12-24  Karl Berry  <karl@gnu.org>
75270
75271         * config/config.guess: update from prep.
75272
75273 2002-12-24  Bruno Haible  <bruno@clisp.org>
75274
75275         General infrasructure.
75276         * m4/README: Rewritten.
75277         * m4/onceonly.m4: New file.
75278         * m4/onceonly_2_57.m4: New file.
75279
75280         Module atexit.
75281         * m4/atexit.m4: New file.
75282
75283         Module strtod.
75284         * m4/strtod.m4: New file.
75285
75286         Module strtol.
75287         * m4/strtol.m4: New file.
75288
75289         Module strtoul.
75290         * m4/strtoul.m4: New file.
75291
75292         Module memchr.
75293         * m4/memchr.m4: New file.
75294
75295         Module memcmp.
75296         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75297         (jm_FUNC_MEMCMP): Invoke it.
75298
75299         Module memcpy.
75300         * m4/memcpy.m4: New file.
75301
75302         Module memmove.
75303         * m4/memmove.m4: New file.
75304
75305         Module memset.
75306         * m4/memset.m4: New file.
75307
75308         Module strcspn.
75309         * m4/strcspn.m4: New file.
75310
75311         Module strpbrk.
75312         * m4/strpbrk.m4: New file.
75313
75314         Module strstr.
75315         * m4/strstr.m4: New file.
75316
75317         Module strerror.
75318         * m4/strerror.m4: New file.
75319
75320         Module mktime.
75321         * m4/mktime.m4: Renamed from jm-mktime.m4.
75322         (gl_PREREQ_MKTIME): New macro.
75323         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75324
75325         Module malloc.
75326         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75327         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75328         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75329
75330         Module realloc.
75331         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75332         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75333         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75334
75335         Module strftime.
75336         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75337         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75338         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75339         gl_TM_GMTOFF.
75340         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75341
75342         Module xalloc.
75343         * m4/xalloc.m4: New file.
75344
75345         Module alloca.
75346         * m4/alloca.m4: New file.
75347
75348         Module putenv.
75349         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75350         (jm_FUNC_PUTENV): Invoke it.
75351
75352         Module setenv.
75353         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75354         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75355         when invoked twice.
75356         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75357         gt_FUNC_SETENV.
75358
75359         Module memrchr.
75360         * m4/memrchr.m4: New file.
75361
75362         Module stpcpy.
75363         * m4/stpcpy.m4: New file.
75364
75365         Module strcase.
75366         * m4/strcase.m4: New file.
75367
75368         Module strdup.
75369         * m4/strdup.m4: New file.
75370
75371         Module strnlen.
75372         * m4/strnlen.m4: New file.
75373
75374         Module strndup.
75375         * m4/strndup.m4: New file.
75376
75377         Module xstrtod.
75378         * m4/xstrtod.m4: New file.
75379
75380         Module xstrtol.
75381         * m4/xstrtol.m4: New file.
75382
75383         Module getdate.
75384         * m4/getdate.m4: New file.
75385
75386         Module unlocked-io.
75387         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75388         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75389         * m4/jm-glibc-io.m4n: Remove file.
75390
75391         Module long-options.
75392         * m4/long-options.m4: New file.
75393
75394         Module md5.
75395         * m4/md5.m4: New file.
75396
75397         Module sha.
75398         * m4/sha.m4: New file.
75399
75400         Module getstr.
75401         * m4/getstr.m4: New file.
75402
75403         Module getline.
75404         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75405         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75406         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75407         simply getline. Infoke gl_PREREQ_GETLINE.
75408
75409         Module obstack.
75410         * m4/obstack.m4: New file.
75411
75412         Module hash.
75413         * m4/hash.m4: New file.
75414
75415         Module readtokens.
75416         * m4/readtokens.m4: New file.
75417
75418         Module strverscmp.
75419         * m4/strverscmp.m4: New file.
75420
75421         Module stdbool.
75422         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75423         OSF/1.
75424
75425         Module strtoll.
75426         * m4/strtoll.m4: New file.
75427
75428         Module strtoull.
75429         * m4/strtoull.m4: New file.
75430
75431         Module strtoimax.
75432         * m4/strtoimax.m4: New file.
75433
75434         Module strtoumax.
75435         * m4/strtoumax.m4: New file.
75436
75437         Module xstrtoimax.
75438         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75439         jm_AC_PREREQ_XSTRTOIMAX.
75440         Moved the strtol prerequisites to strtol.m4.
75441         Moved the strtoll prerequisites to strtoll.m4.
75442         Moved the strtoimax prerequisites to strtoimax.m4.
75443
75444         Module xstrtoumax.
75445         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75446         jm_AC_PREREQ_XSTRTOUMAX.
75447         Moved the strtoul prerequisites to strtoul.m4.
75448         Moved the strtoull prerequisites to strtoull.m4.
75449         Moved the strtoumax prerequisites to strtoumax.m4.
75450
75451         Module chown.
75452         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75453         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75454
75455         Module dup2.
75456         * m4/dup2.m4: New file.
75457
75458         Module ftruncate.
75459         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75460         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75461
75462         Module getgroups.
75463         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75464         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75465
75466         Module gettimeofday.
75467         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75468         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75469         gl_PREREQ_GETTIMEOFDAY.
75470
75471         Module mkdir.
75472         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75473         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75474
75475         Module mkstemp.
75476         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75477         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75478         jm_AC_TYPE_UINTMAX_T.
75479         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75480
75481         Module stat.
75482         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75483         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75484
75485         Module lstat.
75486         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75487         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75488
75489         Module timespec.
75490         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75491         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75492         * m4/st_mtim.m4: Indentation.
75493
75494         Module nanosleep.
75495         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75496         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75497         gl_PREREQ_NANOSLEEP.
75498
75499         Module regex.
75500         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75501         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75502         (gl_REGEX): New macro.
75503
75504         Module rename.
75505         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75506         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75507
75508         Module rmdir.
75509         * m4/rmdir.m4: New file.
75510
75511         Module utime.
75512         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75513         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75514         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75515
75516         Module dirname.
75517         * m4/dirname.m4: New file.
75518
75519         Module getopt.
75520         * m4/getopt.m4: New file.
75521
75522         Module unistd-safer.
75523         * m4/unistd-safer.m4: New file.
75524
75525         Module fnmatch.
75526         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75527         declaration.
75528         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75529         (gl_FUNC_FNMATCH_POSIX): New macro.
75530         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75531         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75532         simply fnmatch.
75533
75534         Module exclude.
75535         * m4/exclude.m4: New file.
75536
75537         Module human.
75538         * m4/human.m4: New file.
75539
75540         Module acl.
75541         * m4/acl.m4: Nop.
75542
75543         Module backupfile.
75544         * m4/backupfile.m4: New file.
75545         * m4/d-ino.m4: Indentation.
75546
75547         Module fsusage.
75548         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75549         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75550         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75551
75552         Module dirfd.
75553         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75554         requirements.
75555
75556         Module euidaccess.
75557         * m4/euidaccess.m4: New file.
75558
75559         Module file-type.
75560         * m4/file-type.m4: New file.
75561
75562         Module fileblocks.
75563         * m4/fileblocks.m4: New file.
75564
75565         Module filemode.
75566         * m4/filemode.m4: New file.
75567
75568         Module isdir.
75569         * m4/isdir.m4: New file.
75570
75571         Module lchown.
75572         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75573         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75574
75575         Module makepath.
75576         * m4/makepath.m4: New file.
75577
75578         Module modechange.
75579         * m4/modechange.m4: New file.
75580
75581         Module mountlist.
75582         * m4/mountlist.m4: New file.
75583         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75584         Indentation.
75585
75586         Module path-concat.
75587         * m4/path-concat.m4: New file.
75588
75589         Module pathmax.
75590         * m4/pathmax.m4: New file.
75591
75592         Module same.
75593         * m4/same.m4: New file.
75594
75595         Module save-cwd.
75596         * m4/save-cwd.m4: New file.
75597
75598         Module savedir.
75599         * m4/savedir.m4: New file.
75600
75601         Module xgetcwd.
75602         * m4/xgetcwd.m4: New file.
75603         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75604
75605         Module xreadlink.
75606         * m4/xreadlink.m4: New file.
75607
75608         Module safe-read.
75609         * m4/safe-read.m4: New file.
75610
75611         Module safe-write.
75612         * m4/safe-write.m4: New file.
75613
75614         Module closeout.
75615         * m4/closeout.m4: New file.
75616
75617         Module stdio-safer.
75618         * m4/stdio-safer.m4: New file.
75619
75620         Module getpass.
75621         * m4/getpass.m4: New file.
75622
75623         Module getugroups.
75624         * m4/getugroups.m4: New file.
75625
75626         Module group-member.
75627         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75628         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75629
75630         Module idcache.
75631         * m4/idcache.m4: New file.
75632
75633         Module userspec.
75634         * m4/userspec.m4: New file.
75635
75636         Module gettime.
75637         * m4/clock_time.m4: New file.
75638         * m4/gettime.m4: New file.
75639
75640         Module settime.
75641         * m4/settime.m4: New file.
75642
75643         Module posixtm.
75644         * m4/posixtm.m4: New file.
75645
75646         Module gethostname.
75647         * m4/gethostname.m4: New file.
75648
75649         Module canon-host.
75650         * m4/canon-host.m4: New file.
75651
75652         Module gettext.
75653         * m4/codeset.m4: New file, from gettext-0.11.5.
75654         * m4/gettext.m4: New file, from gettext-0.11.5.
75655         * m4/glibc21.m4: New file, from gettext-0.11.5.
75656         * m4/iconv.m4: New file, from gettext-0.11.5.
75657         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75658         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75659         * m4/inttypes.m4: New file, from gettext-0.11.5.
75660         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75661         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75662         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75663         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75664         * m4/lib-link.m4: New file, from gettext-0.11.5.
75665         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75666         * m4/progtest.m4: New file, from gettext-0.11.5.
75667         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75668         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75669         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75670
75671         Module localcharset.
75672         * m4/localcharset.m4: New file.
75673
75674         Module hard-locale.
75675         * m4/hard-locale.m4: New file.
75676
75677         Module mbswidth.
75678         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75679         onceonly macros.
75680         * m4/mbrtowc.m4: Add comment.
75681
75682         Module memcasecmp.
75683         * m4/memcasecmp.m4: New file.
75684
75685         Module memcoll.
75686         * m4/memcoll.m4: New file.
75687
75688         Module unicodeio.
75689         * m4/unicodeio.m4: New file.
75690
75691         Module rpmatch.
75692         * m4/rpmatch.m4: New file.
75693
75694         Module yesno.
75695         * m4/yesno.m4: New file.
75696
75697         Module exitfail.
75698         * m4/exitfail.m4: New file.
75699
75700         Module c-stack.
75701         * m4/c-stack.m4 (gl_C_STACK): New macro.
75702         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75703
75704         Module error.
75705         * m4/error.m4 (gl_ERROR): New macro.
75706         (jm_PREREQ_ERROR): Use onceonly macros.
75707
75708         Module fatal.
75709         * m4/fatal.m4: New file.
75710
75711         Module getloadavg.
75712         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75713         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75714
75715         Module getpagesize.
75716         * m4/getpagesize.m4: New file.
75717
75718         Module getusershell.
75719         * m4/getusershell.m4: New file.
75720
75721         Module physmem.
75722         * m4/physmem.m4: New file.
75723
75724         Module posixver.
75725         * m4/posixver.m4: New file.
75726
75727         Module quotearg.
75728         * m4/quotearg.m4: New file.
75729
75730         Module quote.
75731         * m4/quote.m4: New file.
75732
75733         Module readutmp.
75734         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75735
75736         Module sig2str.
75737         * m4/sig2str.m4: New file.
75738
75739         Other.
75740         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75741         ulonglong.m4.
75742         * m4/intmax_t.m4: New file.
75743         * m4/d-type.m4: Indentation.
75744         * m4/jm-macros.m4: Update.
75745         * m4/prereq.m4 (jm_PREREQ): Update.
75746         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75747         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75748         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75749         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75750         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75751         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75752         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75753         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75754         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75755         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75756         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75757         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75758         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75759         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75760         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75761         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75762         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75763         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75764         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75765
75766 2002-12-24  Bruno Haible  <bruno@clisp.org>
75767
75768         * MODULES.txt: Update according to m4/ changes.
75769
75770         Module gettext.
75771         * config.rpath: New file, from gettext-0.11.5.
75772
75773         * modules/*: New module descriptions.
75774         * gnulib-tool: New file.
75775         * MODULES.html.sh: New file.
75776
75777 2002-12-21  Karl Berry  <karl@gnu.org>
75778
75779         * doc/fdl.texi: update to version 1.2.
75780
75781 2002-12-19  Karl Berry  <karl@gnu.org>
75782
75783         * config/config.guess: update from prep.
75784
75785 2002-12-18  Bruno Haible  <bruno@clisp.org>
75786
75787         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75788         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75789
75790 2002-12-17  Bruno Haible  <bruno@clisp.org>
75791
75792         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75793         stdlib.h, string.h.
75794
75795 2002-12-17  Bruno Haible  <bruno@clisp.org>
75796
75797         * lib/canon-host.c (strdup): Remove unused declaration.
75798
75799         * lib/fsusage.c: Include full_read.h.
75800         (get_fs_usage): Use full_read instead of safe_read.
75801
75802         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75803
75804 2002-12-12  Karl Berry  <karl@gnu.org>
75805
75806         * config/config.guess: update from prep.
75807
75808 2002-12-11  Bruno Haible  <bruno@clisp.org>
75809
75810         * m4/setenv.m4: New file, from gettext-0.11.5.
75811
75812 2002-12-11  Bruno Haible  <bruno@clisp.org>
75813
75814         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75815         not unsetenv().
75816         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75817         modifications:
75818
75819         2002-12-11  Bruno Haible  <bruno@clisp.org>
75820
75821                 * setenv.c (alloca): Fall back to malloc.
75822                 (freea): New macro.
75823                 (setenv): Use freea() to free memory allocated with alloca().
75824
75825         2002-11-13  Bruno Haible  <bruno@clisp.org>
75826
75827                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75828                 function declarations.
75829                 * unsetenv.c (unsetenv): Likewise.
75830
75831         2002-03-04  Bruno Haible  <bruno@clisp.org>
75832
75833                 Portability to AIX 4.3.3.
75834                 * unsetenv.c: New file, extracted from setenv.c.
75835                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75836
75837         2001-12-20  Bruno Haible  <bruno@clisp.org>
75838
75839                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75840                 use malloc instead. For SunOS 4.
75841
75842         2001-12-11  Bruno Haible  <bruno@clisp.org>
75843
75844                 * setenv.c: Declare alloca.
75845                 (compar_fn_t): New typedef.
75846                 (KNOWN_VALUE, STORE_VALUE): Use it.
75847
75848         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75849         setenv.h.
75850
75851 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75852
75853         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75854         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75855         Choose values that are less likely to collide with system fnmatch
75856         options.
75857         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75858         defined (e.g., a pure POSIX system).
75859         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75860         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75861
75862 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75863
75864         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75865         a pain in practice to deal with generated m4 files.  This change
75866         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75867
75868         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75869         and jm-glibc-io.m4, as they are no longer a special case.
75870         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75871         kludge and the auto-generation stuff.  Check only whether the
75872         functions are declared, not whether they exist, since older hosts
75873         that don't declare the functions can't use the optimization anyway.
75874
75875 2002-12-06  Jim Meyering  <jim@meyering.net>
75876
75877         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75878
75879         Merge in changes from libc's misc/error.c, in preparation
75880         for the merge of gnulib's changes back into libc.
75881
75882         * lib/error.c (_): Define only if not already defined.
75883         Move definition to follow all #include directives.
75884         Include unlocked-io.h only if !_LIBC.
75885         [_LIBC]: Include <libio/libioP.h>.
75886         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75887         (fflush): Tweak definition to use INTUSE.
75888         (putc): Define.
75889
75890 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75891
75892         * lib/alloca.c [defined emacs]: Include "lisp.h".
75893         (xalloc_die) [defined emacs]: New macro.
75894         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75895         [! defined emacs]: Include <xalloc.h>.
75896         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75897         (pointer): Typedef to POINTER_TYPE *.
75898         (malloc): Remove decl; we now always use xmalloc.
75899         (alloca): Use old-style definition, since Emacs needs this.
75900         Check for arithmetic overflow when computing combined size.
75901
75902 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75903
75904         Do not generate unlocked-io.h automatically, since it's easier to
75905         maintain it by hand.
75906
75907         * lib/unlocked-io.h: New file, from GNU diffutils,
75908         but with proper copyright notice and attribution.
75909         * lib/gen-uio: Remove.
75910         * lib/Makefile.am: Add copyright notice.
75911         (libfetish_a_SOURCES): Add unlocked-io.h.
75912         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75913         (DISTCLEANFILES, io_functions): Remove macros.
75914         (EXTRA_DIST): Remove gen_uio.
75915         (unlocked-io.h): Remove rule.
75916
75917 2002-12-04  Jim Meyering  <jim@meyering.net>
75918
75919         Reflect the fact that stat.c and lstat.c are no longer generated.
75920         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75921         (DISTCLEANFILES): Likewise.
75922         (EXTRA_DIST): Likewise.
75923         (all_local): Don't depend on stat.c or lstat.c.
75924         (stat.c, lstat.c): Remove rules.
75925         (EXTRA_DIST): Remove xstat.in.
75926
75927         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75928         * lib/stat.c: New file.  Contents mostly from xstat.in.
75929         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75930         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75931
75932         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75933         too.
75934         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75935
75936 2002-12-03  Jim Meyering  <jim@meyering.net>
75937
75938         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75939         but not semantics, to minimize the differences between these two files.
75940         (safe_read): Change comment to mention SAFE_READ_ERROR.
75941
75942         * lib/safe-read.c (IS_EINTR): Define.
75943         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75944
75945 2002-12-02  Jim Meyering  <jim@meyering.net>
75946
75947         * lib/safe-read.c (EINTR): Define.
75948         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75949         (INT_MAX): Provide fallback.
75950         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75951
75952         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75953
75954 2002-12-02  Bruno Haible  <bruno@clisp.org>
75955
75956         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75957         Define, taken from safe-read.c.
75958         (INT_MAX): Provide fallback.
75959         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75960         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75961
75962         * lib/safe-read.c (EINTR): Remove definition.
75963         (safe_read): Don't use EINTR if it is absent.
75964
75965 2002-12-01  Jim Meyering  <jim@meyering.net>
75966
75967         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75968         zero.
75969         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75970
75971 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75972
75973         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75974         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75975         with `if (! (value < limit)) abort ();', for readability.
75976
75977 2002-11-26  Karl Berry  <karl@gnu.org>
75978
75979         * lib/strdup.c: copy from libc again, with jim's ok.
75980         * lib/.cppi-disable: re-add strdup.c
75981
75982 2002-11-25  Karl Berry  <karl@gnu.org>
75983
75984         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75985         instead of "strtol.c".
75986
75987 2002-11-25  Karl Berry  <karl@gnu.org>
75988
75989         * config/install-sh: update from automake for variable quoting, $0 in
75990         error msgs, etc.
75991
75992         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75993         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75994         entry.
75995
75996 2002-11-25  Jim Meyering  <jim@meyering.net>
75997
75998         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75999
76000 2002-11-24  Karl Berry  <karl@gnu.org>
76001
76002         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76003         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76004
76005 2002-11-24  Jim Meyering  <jim@meyering.net>
76006
76007         Update from coreutils:
76008
76009         * lib/mktime.c: Merge in changes from libc.
76010
76011         Avoid a link-time failure on some Linux systems.
76012         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76013         (otherwise).
76014         (__mon_yday): Declare with the STATIC attribute.
76015         (__mktime_internal): Likewise.
76016         Based on a report from Greg Schafer.
76017
76018 2002-11-23  Jim Meyering  <jim@meyering.net>
76019
76020         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76021         Use `unsigned', not `int', as type of index.
76022
76023         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76024
76025         * lib/fsusage.c: Remove unneeded parentheses around operands of
76026         `defined'.
76027
76028 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76029
76030         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76031         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76032         so that we can be included first.
76033         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76034         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76035         No need to include stddef.h or sys/types.h any more.
76036         Surround local include files with "", not "<>".
76037         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76038         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76039         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76040         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76041         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76042         (ISPRINT): Remove; no longer needed now that we assume C89.
76043
76044         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76045         Preserve errno.
76046
76047         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76048         quotearg_char): Use SIZE_MAX rather than
76049         (size_t) -1 when we are talking about "infinity".
76050
76051         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76052
76053 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76054
76055         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76056         hint that one should use `if (! x) abort ();' rather than `assert
76057         (x);', and anyway it's one less thing to worry about configuring.
76058         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76059         hash_rehash, hash_insert): Use abort rather than assert.
76060
76061 2002-11-22  Bruno Haible  <bruno@clisp.org>
76062
76063         * lib/safe-read.h: Assume C89. Add comments.
76064         (safe_read): Change return type to size_t.
76065         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76066         byte counts > SSIZE_MAX correctly.
76067         * lib/safe-write.h: New file.
76068         * lib/safe-write.c: New file.
76069         * lib/full-read.h: New file.
76070         * lib/full-read.c: New file.
76071         * lib/full-write.h: Assume C89. Add comments.
76072         * lib/full-write.c: Include safe-write.h.
76073         (full_write): Rewritten to use safe_write.
76074         Suggested by Jim Meyering and Paul Eggert.
76075
76076 2002-11-21  Jim Meyering  <jim@meyering.net>
76077
76078         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76079
76080         Merge in changes from the coreutils.
76081
76082         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76083         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76084         <stdint.h>.
76085         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76086         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76087         int.  Work more efficiently if X is the same width as uintmax_t.
76088         Do not compare X to -1, to avoid bogus compiler warning.
76089         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76090         Don't assume that f_frsize and f_bsize are the same type.
76091
76092         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76093         warning on FreeBSD.
76094
76095         * lib/makepath.c (make_path): Restore umask *before* creating the final
76096         component.
76097         (make_path): Minor reformatting.
76098
76099         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76100         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76101         HAVE_MALLOC/HAVE_REALLOC.
76102
76103         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76104         dummy ones.  At least on GNU/Linux systems, `auto' means something
76105         else.
76106         From Michael Stone.
76107
76108 2002-11-21  Bruno Haible  <bruno@clisp.org>
76109
76110         Remove case insensitive option matching.
76111         * lib/argmatch.h (argcasematch): Remove declaration.
76112         (ARGCASEMATCH): Remove macro.
76113         (__xargmatch_internal): Remove case_sensitive argument.
76114         (XARGMATCH): Update.
76115         (XARGCASEMATCH): Remove macro.
76116         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76117         case_sensitive argument.
76118         (argcasematch): Remove function.
76119         (__xargmatch_internal): Remove case_sensitive argument.
76120         (main): Use XARGMATCH instead of XARGCASEMATCH.
76121
76122         * lib/xmalloc.c: Change compile-time error message. Add comment about
76123         required autoconf version.
76124
76125 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76126
76127         Merge argmatch cleanups from Bison.  Assume C89.
76128
76129         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76130         Include stdlib.h, for EXIT_FAILURE.
76131         Always include <string.h>, since we assume C89.
76132         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76133         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76134         Include <stddef.h> instead, since it's all we need for size_t.
76135         (PARAMS): Remove.  All uses removed.
76136         (ARRAY_CARDINALITY): Do not bother to #undef.
76137         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76138         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76139         Remove unnecessary parentheses.
76140         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76141         Insert necessary parentheses.
76142         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76143         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76144
76145 2002-11-19  Bruno Haible  <bruno@clisp.org>
76146
76147         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76148         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76149
76150         * lib/mbswidth.h (PARAMS): Remove macro.
76151         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76152         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76153
76154         * lib/gcd.h (PARAMS): Remove macro.
76155         (gcd): Use ANSI C function declarations.
76156         * lib/gcd.c (gcd): Likewise.
76157
76158 2002-11-15  Bruno Haible  <bruno@clisp.org>
76159
76160         * lib/strcspn.c: Include <stddef.h>.
76161         (strcspn): Use ANSI C function declaration. Change return type to
76162         size_t. Use NULL.
76163         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76164         (strpbrk): Use NULL.
76165         * lib/strpbrk.h (PARAMS): Remove macro.
76166         (strpbrk): Use ANSI C function declaration.
76167         * lib/strstr.c: Don't include <sys/types.h>.
76168         * lib/strstr.h (PARAMS): Remove macro.
76169         (strstr): Use ANSI C function declarations.
76170
76171 2002-11-14  Karl Berry  <karl@gnu.org>
76172
76173         * config/mkinstalldirs: `do' on separate line, instead of
76174         `for var; do'.
76175
76176 2002-11-06  Bruno Haible  <bruno@clisp.org>
76177
76178         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76179         * lib/gcd.c (gcd): Likewise.
76180
76181 2002-11-05  Bruno Haible  <bruno@clisp.org>
76182
76183         * lib/gcd.h: New file, from gettext-0.11.5.
76184         * lib/gcd.c: New file, from gettext-0.11.5.
76185
76186 2002-11-05  Bruno Haible  <bruno@clisp.org>
76187
76188         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76189         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76190         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76191         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76192
76193         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76194         <libintl.h>.
76195         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76196         <libintl.h>.
76197
76198         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76199         * lib/human.c: Include gettext.h instead of <libintl.h>.
76200         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76201         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76202         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76203         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76204         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76205         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76206         (textdomain): Remove definition.
76207         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76208
76209         * lib/long-options.c: Remove include of <libintl.h> and definition of
76210         _.
76211         * lib/same.c: Remove include of <libintl.h> and definition of _.
76212
76213 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76214
76215         * lib/config.charset: A few additions for Solaris.
76216
76217 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76218
76219         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76220         * lib/localcharset.c (locale_charset): Declare as extern "C".
76221
76222 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76223
76224         * lib/config.charset: msdos in uk_UA uses CP1125.
76225
76226 2002-11-04  Bruno Haible  <bruno@clisp.org>
76227
76228         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76229         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76230         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76231         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76232         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76233
76234 2002-11-04  Bruno Haible  <bruno@clisp.org>
76235
76236         * lib/localcharset.c (locale_charset): Don't return an empty string.
76237
76238 2002-11-04  Bruno Haible  <bruno@clisp.org>
76239
76240         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76241         aliases.
76242
76243 2002-11-04  Bruno Haible  <bruno@clisp.org>
76244
76245         * lib/config.charset: Update for newest glibc. Add canonical names
76246         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76247
76248 2002-11-04  Bruno Haible  <bruno@clisp.org>
76249
76250         * lib/config.charset: Add support for NetBSD.
76251
76252 2002-11-04  Bruno Haible  <bruno@clisp.org>
76253
76254         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76255
76256 2002-11-01  Bruno Haible  <bruno@clisp.org>
76257
76258         * configure.in: Add AC_CONFIG_AUX_DIR call.
76259         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76260         test/Makefile.
76261         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76262
76263 2002-09-28  Karl Berry  <karl@gnu.org>
76264
76265         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76266         installed automake until the next release, since changes have been
76267         made.
76268
76269 2002-09-25  Karl Berry  <karl@gnu.org>
76270
76271         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76272         * lib/getopt*: copy from libc/posix.
76273         * lib/gettext.h: copy from gettext.
76274         * lib/.cppi-disable: add strdup.c, gettext.h.
76275
76276 2002-09-25  Karl Berry  <karl@gnu.org>
76277
76278         * config/srclist.txt: enable gettext.h check.
76279         * config/config.{guess,sub}: update from prep.
76280         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76281                 from automake 1.6.3.
76282         See srclist*.
76283
76284 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76285
76286         * regex.c (PATFETCH): Remove the translating fetch.
76287         (PATFETCH_RAW): Rename to PATFETCH.
76288         (set_image_of_range): New fun.
76289         (SET_RANGE_TABLE_WORK_AREA): Use it.
76290         (regex_compile): Don't translate the pattern chars so eagerly.
76291         Only do it when inserting an `exactn' bytecode or when handling
76292         a char-range.
76293         (mutually_exclusive_p): Avoid empty statement.
76294
76295 2002-07-06  Jim Meyering  <meyering@lucent.com>
76296
76297         * m4/README: Don't mention Makefile.am.in.
76298         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76299
76300 2002-07-01  Jim Meyering  <meyering@lucent.com>
76301
76302         * lib/c-stack.c: Include sys/time.h.
76303         From Volker Borchert.
76304
76305 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76306
76307         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76308
76309 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76310
76311         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76312         New macro.  Use it uniformly instead of
76313         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76314         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76315         reported by Vin Shelton.
76316
76317 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76318
76319         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76320         Do not assume SA_SIGINFO behavior.
76321         Bug reported by Jim Meyering on NetBSD 1.5.2.
76322
76323 2002-06-22  Jim Meyering  <meyering@lucent.com>
76324
76325         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76326         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76327
76328         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76329         now that configure.ac uses AC_GNU_SOURCE.
76330         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76331         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76332
76333         Update to latest tools.  Suggestions from Paul Eggert.
76334         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76335         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76336         * m4/fnmatch.m4: Likewise.
76337         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76338         to AC_HEADER_STDBOOL
76339
76340 2002-06-22  Jim Meyering  <meyering@lucent.com>
76341
76342         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76343         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76344
76345 2002-06-22  Jim Meyering  <meyering@lucent.com>
76346
76347         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76348
76349         * lib/exitfail.c, exitfail.h: Likewise.
76350         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76351
76352         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76353         of fnmatch.h.
76354         (EXTRA_DIST): Add fnmatch_loop.c.
76355         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76356
76357         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76358         * lib/fnmatch.c: Update from diffutils-2.8.2.
76359         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76360         * lib/fnmatch.h: Remove file.
76361
76362 2002-06-21  Jim Meyering  <meyering@lucent.com>
76363
76364         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76365         * m4/mbrtowc.m4: Likewise.
76366
76367         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76368         * m4/mbswidth.m4: Reflect name change:
76369         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76370         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76371
76372         * m4/lib-link.m4: Update from gettext-0.11.2.
76373         * m4/gettext.m4: Likewise.
76374
76375         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76376         From Alfred M. Szmidt.
76377
76378 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76379
76380         * lib/file-type.h: Report an error if neither S_ISREG nor
76381         S_IFREG is defined, instead of using a test specific to glibc
76382         2.2.  This should be safe, since POSIX requires S_ISREG and
76383         Unix Version 7 had S_IFREG.  We don't need to check for
76384         <sys/types.h> since we don't use any symbols that it defines.
76385
76386 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76387
76388         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76389         $@-t, so that each temporary file name is unique and valid in the first
76390         8 characters, for operation under DOS.
76391
76392 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76393
76394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76395
76396 2002-06-15  Jim Meyering  <meyering@lucent.com>
76397
76398         Work even with DJGPP 2.03, which lacks support for symlinks.
76399         From Richard Dawe.
76400         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76401         is defined.
76402         * lib/lchown.c (S_ISLNK): Likewise.
76403
76404 2002-06-15  Jim Meyering  <meyering@lucent.com>
76405
76406         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76407         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76408         have been included before this file.
76409
76410 2002-06-14  Jim Meyering  <meyering@lucent.com>
76411
76412         * lib/file-type.h: Use the version from diffutils-2.8.2.
76413         * lib/file-type.c: Likewise.
76414
76415 2002-06-07  Jim Meyering  <meyering@lucent.com>
76416
76417         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76418         They're needed at least for NetBSD 1.5.2.
76419         ($statxfs_includes): Include those same headers.
76420         ($statxfs_includes): Include sys/vfs.h if available.
76421         ($statxfs_includes): Likewise for sys/statvfs.h.
76422         Check for the following members in both structs statfs and statvfs:
76423         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76424
76425 2002-06-01  Jim Meyering  <meyering@lucent.com>
76426
76427         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76428         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76429
76430 2002-05-28  Jim Meyering  <meyering@lucent.com>
76431
76432         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76433         Reported by Volker Borchert.
76434
76435 2002-05-27  Jim Meyering  <meyering@lucent.com>
76436
76437         Fix a problem seen only on nonconforming systems whereby ls.c's
76438         use of localtime, and then of gettimeofday would cause trouble:
76439         the localtime call used to initialize rpl_gettimeofday's save
76440         mechanism would clobber ls's current local time information so
76441         that in any long listing the first file would always be listed
76442         with date 1970-01-01.  Analysis by Volker Borchert.
76443
76444         * lib/gettimeofday.c (localtime): Undefine.
76445         (rpl_localtime): New function.
76446
76447 2002-05-27  Jim Meyering  <meyering@lucent.com>
76448
76449         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76450         localtime.
76451
76452         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76453         use the replacement function; it wouldn't resolve at link time.
76454         Reported by Volker Borchert.
76455
76456 2002-05-22  Jim Meyering  <meyering@lucent.com>
76457
76458         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76459         file-type.h.
76460         * lib/file-type.h: New file.
76461         * lib/file-type.c (file_type): New file/function.  Extracted from
76462         diffutils.
76463
76464 2002-04-30  Jim Meyering  <meyering@lucent.com>
76465
76466         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76467
76468 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76469
76470         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76471
76472 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76473
76474         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76475         Do not check for alloca.h (no longer used) or stdbool.h (was never
76476         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76477
76478 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76479
76480         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76481
76482 2002-04-29  Jim Meyering  <meyering@lucent.com>
76483
76484         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76485         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76486         Use AC_FUNC_STRNLEN here instead.
76487
76488         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76489         With autoconf-2.53a, it's part of AC_PROG_CC.
76490
76491 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76492
76493         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76494         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76495
76496 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76497
76498         * lib/sig2str.h, lib/sig2str.c: New files.
76499         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76500
76501 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76502
76503         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76504         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76505         of 127, since 64 is the largest conceivable number for ancient
76506         nonstandard hosts.
76507         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76508
76509 2002-04-28  Jim Meyering  <meyering@lucent.com>
76510
76511         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76512
76513 2002-04-24  Jim Meyering  <meyering@lucent.com>
76514
76515         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76516         (jm_PREREQ): Use it.
76517
76518         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76519         mach/mach.h fcntl.h.
76520         Check for this function: setlocale.
76521
76522 2002-04-24  Jim Meyering  <meyering@lucent.com>
76523
76524         * lib/gettext.h: New file, from Gettext.
76525         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76526         (libfetish_a_SOURCES): Add gettext.h.
76527
76528 2002-04-16  Jim Meyering  <meyering@lucent.com>
76529
76530         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76531         ut_pid, ut_id, ut_exit.
76532
76533 2002-04-16  Jim Meyering  <meyering@lucent.com>
76534
76535         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76536         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76537         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76538
76539 2002-04-12  Jim Meyering  <meyering@lucent.com>
76540
76541         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76542         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76543         existence of the getmntinfo function.  Needed for Darwin 5.3.
76544
76545         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76546         This is necessary at least on Darwin 5.3.
76547
76548         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76549         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76550         strnlen.o in the library, and that makes some versions of ranlib
76551         object.
76552
76553 2002-04-12  Jim Meyering  <meyering@lucent.com>
76554
76555         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76556
76557 2002-04-09  Jim Meyering  <meyering@lucent.com>
76558
76559         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76560         to be more precise.  Rather than saying we're checking whether the
76561         function `works', say what we're testing.
76562         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76563         Reported by Bruno Haible.
76564
76565 2002-03-10  Jim Meyering  <meyering@lucent.com>
76566
76567         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76568         Suggestion from Santiago Vila.
76569
76570 2002-03-08  Jim Meyering  <meyering@lucent.com>
76571
76572         * lib/rename.c: Mention that this wrapper is needed also on
76573         mips-dec-ultrix4.4 systems.
76574
76575 2002-03-02  Jim Meyering  <meyering@lucent.com>
76576
76577         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76578         not HAVE_CLOCK_SETTIME.
76579
76580 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76581
76582         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76583         Check for clock_settime.
76584
76585 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76586
76587         * lib/nanosleep.h: Rename to....
76588         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76589
76590         * lib/gettime.c: New file.
76591         * lib/settime.c: New file.
76592         * lib/stime.c: Remove.
76593
76594         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76595         timespec.h.  Remove nanosleep.h.
76596
76597 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76598
76599         * m4/acl.m4: New file.
76600         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76601         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76602
76603 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76604
76605         * lib/acl.c, lib/acl.h: New files.
76606         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76607
76608 2002-02-24  Jim Meyering  <meyering@lucent.com>
76609
76610         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76611         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76612         cause trouble.  Reported by Nelson Beebe.
76613
76614 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76615
76616         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76617         compilers that don't know that xalloc_die never returns.
76618
76619 2002-02-20  Jim Meyering  <meyering@lucent.com>
76620
76621         * lib/getdate.c: Regenerate using bison-1.33.
76622
76623 2002-02-17  Jim Meyering  <meyering@lucent.com>
76624
76625         * config/config.guess (main): Don't use `head -1'; it's no longer
76626         portable. Use `sed 1q' instead.
76627
76628 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76629
76630         * m4/codeset.m4: Upgrade to gettext-0.11.
76631         * m4/gettext.m4: Upgrade to gettext-0.11.
76632         * m4/glibc21.m4: Upgrade to gettext-0.11.
76633         * m4/iconv.m4: Upgrade to gettext-0.11.
76634         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76635         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76636         * m4/lib-ld.m4: New file, from gettext-0.11.
76637         * m4/lib-link.m4: New file, from gettext-0.11.
76638         * m4/lib-prefix.m4: New file, from gettext-0.11.
76639         * m4/progtest.m4: Upgrade to gettext-0.11.
76640
76641 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76642
76643         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76644         (jm_PREREQ): Use it.
76645
76646 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76647
76648         * lib/posixver.c, lib/posixver.h: New files.
76649         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76650
76651 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76652             Bruno Haible  <bruno@clisp.org>
76653
76654         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76655         (fwrite_success_callback): New declaration.
76656         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76657         print_unicode_char. Call failure callback instead of error.
76658         (fwrite_success_callback): New function.
76659         (exit_failure_callback): New function.
76660         (fallback_failure_callback): New function.
76661         (print_unicode_char): Call unicode_to_mb.
76662
76663 2002-01-26  Jim Meyering  <meyering@lucent.com>
76664
76665         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76666         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76667
76668 2002-01-26  Jim Meyering  <meyering@lucent.com>
76669
76670         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76671
76672 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76673
76674         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76675
76676 2002-01-22  Jim Meyering  <meyering@lucent.com>
76677
76678         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76679         Otherwise, some versions of automake would omit the rule that makes
76680         Makefile from Makefile.in.
76681
76682 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76683
76684         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76685         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76686         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76687         (memcoll): Set errno to zero if there is no error.
76688
76689         * lib/quotearg.c (quotearg_buffer_restyled):
76690         Fix bug with quoting buffers containing NUL when backslashing escapes.
76691         This bug was exposed by the other changes in this patch.
76692         (quotearg_n_options): New arg ARGSIZE.
76693         All callers changed.
76694         (quoting_options_from_style): New function.
76695         (quotearg_n_style): Use it.
76696         (quotearg_n_style_mem): New function.
76697
76698         * lib/quotearg.h (quotearg_n_style_mem): New function.
76699
76700 2002-01-19  Jim Meyering  <meyering@lucent.com>
76701
76702         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76703         Remove useless quotes: DF_PROG="df".
76704         * m4/strnlen.m4: New file.
76705
76706 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76707
76708         * lib/backupfile.c (ISDIGIT): Comment fix.
76709         * lib/getdate.y (ISDIGIT): Likewise.
76710         * lib/posixtm.c (ISDIGIT, year): Likewise.
76711         * lib/strverscmp.c (ISDIGIT): Likewise.
76712         * lib/userspec.c (ISDIGIT): Likewise.
76713
76714 2002-01-16  Jim Meyering  <meyering@lucent.com>
76715
76716         * lib/getdate.y: Add three semicolons, each just before a closing
76717         brace. Bison (as of version 1.31) no longer papers over that mistake.
76718
76719 2002-01-05  Jim Meyering  <meyering@lucent.com>
76720
76721         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76722
76723 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76724
76725         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76726         not silently exit merely because the output buffer happens to
76727         have nothing pending.
76728
76729 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76730
76731         See the big note in ../ChangeLog.
76732         * lib/human.c (suffixes): Prefer K to k for 1024.
76733         (generate_suffix_backwards): New function.
76734         (human_readable_inexact): Use it.
76735         * lib/xstrtol.c (__xstrtol): If there is no number but there
76736         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76737         Accept 'K' as well as 'k'.
76738
76739 2001-12-15  Jim Meyering  <meyering@lucent.com>
76740
76741         * lib/regex.h (__restrict_arr): Update from libc.
76742
76743         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76744         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76745         (STREQ): Define.
76746
76747 2001-12-14  Jim Meyering  <meyering@lucent.com>
76748
76749         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76750         Suggestion from Bruno Haible.
76751
76752 2001-12-10  Jim Meyering  <meyering@lucent.com>
76753
76754         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76755         xrealloc, Instead, include "xalloc.h".
76756         (initbuffer): Don't cast xmalloc return value to char*.
76757         (readline): Reword comment.
76758         Don't cast xrealloc return value to char*
76759         Return NULL, not 0.
76760
76761 2001-12-09  Jim Meyering  <meyering@lucent.com>
76762
76763         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76764         about `signed and unsigned type in conditional expression'.
76765         * lib/posixtm.c (posix_time_parse): Likewise.
76766
76767         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76768
76769         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76770         to avoid a pedantic warning.
76771
76772         * lib/getstr.c: Don't include assert.h.
76773         (getstr): Remove warning-evoking assertions.
76774         Return -1 if offset parameter is out of bounds.
76775         Change the type of a local from int to size_t.
76776
76777         * lib/strftime.c (my_strftime_localtime_r): Include this function
76778         definition in the `#if ! HAVE_TM_GMTOFF' block.
76779
76780         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76781         Include xalloc.h instead.
76782
76783 2001-12-02  Jim Meyering  <meyering@lucent.com>
76784
76785         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76786         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76787         included.
76788
76789         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76790         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76791
76792 2001-11-30  Akim Demaille  <akim@epita.fr>
76793
76794         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76795         before being defined.
76796
76797 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76798
76799         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76800         First arg is int, not unsigned.
76801         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76802         (SIZE_MAX, UINT_MAX): New macros.
76803         (quotearg_n_options): Abort if N is negative.
76804         Avoid overflow check on hosts where size_t is 64 bits and int
76805         is 32 bits, as overflow is impossible there.
76806         Fix off-by-one typo that caused unnecessary reallocation.
76807
76808 2001-11-27  Jim Meyering  <meyering@lucent.com>
76809
76810         * lib/tempname.c: Merge with version from libc.
76811         * lib/regex.c: Likewise.
76812
76813         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76814         systems for which STDC_HEADERS is 0, it was not included, resulting in
76815         a warning about an integer-to-pointer conversion problem with getenv.
76816         Reported by Volker Borchert.
76817
76818 2001-11-26  Jim Meyering  <meyering@lucent.com>
76819
76820         * lib/gtod.h: Remove file.
76821         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76822         * lib/gettimeofday.c: Don't include gtod.h.
76823         (GTOD_init): Remove function.
76824         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76825         Suggestion from Volker Borchert.
76826
76827 2001-11-23  Jim Meyering  <meyering@lucent.com>
76828
76829         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76830         it.
76831         * lib/hash.c (struct hash_table): Define it here instead.
76832
76833 2001-11-22  Jim Meyering  <meyering@lucent.com>
76834
76835         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76836
76837 2001-11-20  Jim Meyering  <meyering@lucent.com>
76838
76839         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76840         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76841
76842 2001-11-19  Jim Meyering  <meyering@lucent.com>
76843
76844         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76845         directory.  Use "conftestXXXXXX" as the template.
76846         Suggestion from Paul Eggert.
76847
76848         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76849         immediately, so the test doesn't mistakenly hit the max-open-files
76850         limit.
76851
76852 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76853
76854         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76855         (TEMPORARIES): New macro.
76856         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76857         removes an artificial limitation (e.g. HP-UX 10.20, where
76858         TMP_MAX is 17576).
76859
76860 2001-11-18  Jim Meyering  <meyering@lucent.com>
76861
76862         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76863
76864 2001-11-18  Jim Meyering  <meyering@lucent.com>
76865
76866         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76867         on SunOS 4.
76868
76869         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76870         files will be created before anything else.
76871
76872 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76873
76874         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76875         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76876
76877 2001-11-17  Jim Meyering  <meyering@lucent.com>
76878
76879         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76880         Prompted by a report from Bob Proulx.
76881
76882         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76883         Instead, require UTILS_FUNC_MKSTEMP.
76884
76885 2001-11-17  Jim Meyering  <meyering@lucent.com>
76886
76887         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76888         Now, that's done as part of AC_FUNC_STRTOD.
76889
76890 2001-11-17  Jim Meyering  <meyering@lucent.com>
76891
76892         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76893         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76894         rather than group writable.  Patch by Juan F. Codagnone.
76895
76896         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76897         xrealloc, Instead, include "xalloc.h".
76898
76899         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76900         Remove explicit declarations of xmalloc, xrealloc,
76901         and xstrdup.  Instead, include "xalloc.h".
76902
76903         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76904         unlocked-io.h.
76905         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76906         Likewise.
76907         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76908
76909         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76910         Reported by Padraig Brady.
76911
76912         * lib/mkstemp.c: #undef mkstemp.
76913         Include config.h.
76914         (rpl_mkstemp): Rename from mkstemp.
76915         Protoize.
76916
76917 2001-11-16  Jim Meyering  <meyering@lucent.com>
76918
76919         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76920         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76921         determine the amount of total physical memory, use pstat_getstatic.
76922         HPUX-11 doesn't define _SC_PHYS_PAGES.
76923         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76924         If sysconf couldn't be used to determine the amount of available
76925         physical memory, use both pstat_getstatic and pstat_getdynamic.
76926         Based on a patch from Bob Proulx.
76927
76928 2001-11-10  Jim Meyering  <meyering@lucent.com>
76929
76930         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76931         (jm_PREREQ): Use it.
76932
76933 2001-11-09  Jim Meyering  <meyering@lucent.com>
76934
76935         * m4/jm-macros.m4: Require autoconf-2.52f.
76936         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76937         Use these AC_-prefixed names, not the AM_-prefixed ones.
76938
76939         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76940
76941 2001-11-05  Jim Meyering  <meyering@lucent.com>
76942
76943         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76944
76945 2001-11-04  Jim Meyering  <meyering@lucent.com>
76946
76947         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76948         $DEFS.
76949
76950 2001-11-03  Jim Meyering  <meyering@lucent.com>
76951
76952         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76953         of AC_DEFUN.
76954
76955         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76956         know the name of the variable in the macro definition.
76957
76958 2001-11-03  Jim Meyering  <meyering@lucent.com>
76959
76960         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76961         in argmatch_to_argument call.
76962
76963         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76964         argument.
76965
76966         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76967         e.g., a fault due to an attempt to free a NULL pointer.
76968
76969 2001-11-01  Jim Meyering  <meyering@lucent.com>
76970
76971         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76972         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76973
76974 2001-11-01  Jim Meyering  <meyering@lucent.com>
76975
76976         * lib/dirfd.c, lib/dirfd.h: New files.
76977         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76978
76979         * lib/hash.c (hash_print) [TESTING]: Clean up.
76980
76981 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76982
76983         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76984         to avoid a warning if -Wall.
76985
76986 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76987
76988         * README: New file
76989         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76990         (per RMS's instructions, this is now the canonical source)
76991         * lgpl/, gpl/: New directories.
76992
76993 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76994
76995         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76996
76997 2001-10-21  Jim Meyering  <meyering@lucent.com>
76998
76999         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77000         this code would end up calling gettext even in packages built
77001         with --disable-nls.
77002         * lib/getopt.c (_): Likewise.
77003         * lib/regex.c (_): Likewise.
77004
77005 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77006
77007         * m4/error.m4 (jm_PREREQ_ERROR):
77008         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77009         AC_FUNC_STRERROR_R does that.
77010         Check for strerror declaration.
77011
77012         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77013         are supposed to have them these days.
77014         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77015         Merge changes from latest Autoconf CVS.
77016         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77017         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77018         POSIX decided to standardize on the int flavor of strerror_r.
77019
77020 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77021
77022         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77023         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77024         Use strerror_r that is only a macro, even if it is not a function.
77025         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77026         (private_strerror): Use prototypes, not old-style function definition.
77027         (print_errno_message): New function.
77028         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77029         char*-flavored one.
77030         (error_tail, error, error_at_line): Use it.
77031
77032 2001-10-11  Jim Meyering  <meyering@lucent.com>
77033
77034         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77035         and quote_n (1, ... to avoid clobbering a buffer.
77036
77037 2001-10-05  Jim Meyering  <meyering@lucent.com>
77038
77039         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77040         hash-pjw.h.
77041         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77042         * lib/hash-pjw.h: New file.
77043
77044 2001-09-30  Jim Meyering  <meyering@lucent.com>
77045
77046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77047         `struct fsstat' has the `f_fstypename' member.
77048         Use that to define FS_TYPE, which is now used to make
77049         the getfsstat link test tighter.
77050
77051 2001-09-30  Jim Meyering  <meyering@lucent.com>
77052
77053         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77054         Include <sys/ucred.h>, for Apple Darwin.
77055         Include sys/mount.h and sys/fs_types.h only if available.
77056         (FS_TYPE): Define.
77057         (read_filesystem_list): Use FS_TYPE.
77058
77059 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77060
77061         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77062         a boolean context.
77063
77064 2001-09-29  Jim Meyering  <meyering@lucent.com>
77065
77066         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77067         [one-argument getmntent function]): Include stdio.h before mntent.h.
77068         SunOS 4.1.x needs it for the declaration of `FILE'.
77069         Patch by Volker Borchert.
77070
77071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77072         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77073         sys/fs_types.h, and make the link-test for getfsstat guard #include
77074         directives with appropriate #if HAVE_*_H tests so that we can
77075         detect getfsstat on Apple Darwin1.3.7 systems.
77076         Reported by Nelson Beebe.
77077         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77078
77079 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77080
77081         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77082         #defines strtoimax.  Also treat the other strto* functions
77083         like strtoimax.
77084
77085         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77086         Check for strtoul and strtoumax,
77087         as those declarations are made even in the signed case.
77088         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77089         Likewise, for strtol and strtoimax.
77090
77091 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77092
77093         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77094         #defines strtoimax.  Also treat the other strto* functions
77095         like strtoimax.
77096
77097         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77098         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77099         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77100
77101 2001-09-26  Jim Meyering  <meyering@lucent.com>
77102
77103         Most macros in unlocked-io.h had the wrong number of arguments.
77104         * lib/gen-uio: New script.
77105         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77106         * lib/unlocked-io.hin: Remove file.
77107         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77108         rather than trying to embed it here.
77109         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77110         Reported by Padraig Brady.
77111
77112 2001-09-25  Volker Borchert  <bt@teknon.de>
77113
77114         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77115         `result'.
77116
77117 2001-09-24  Jim Meyering  <meyering@lucent.com>
77118
77119         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77120
77121 2001-09-23  Jim Meyering  <meyering@lucent.com>
77122
77123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77124         instead of the mere test for existence of mntent.h.  The latter
77125         would get a false-positive on AIX 3.4 systems.
77126         In the outer getmntent if-block, don't die if neither of the getmntent
77127         tests succeeds.  Instead, just fall through and continue with the
77128         remaining tests.
77129
77130 2001-09-23  Jim Meyering  <meyering@lucent.com>
77131
77132         * lib/mountlist.c: Remove useless parentheses in #if directives.
77133         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77134         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77135
77136 2001-09-22  Jim Meyering  <meyering@lucent.com>
77137
77138         * m4/gettext.m4: New file.  From gettext.
77139         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77140         * m4/progtest.m4: Likewise
77141         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77142         * m4/glibc21.m4: Likewise.
77143
77144         * m4/libintl.m4: Remove.  No longer used.
77145
77146 2001-09-22  Jim Meyering  <meyering@lucent.com>
77147
77148         * lib/localcharset.c: Update from latest gettext.
77149         * lib/config.charset: Likewise.
77150
77151 2001-09-20  Jim Meyering  <meyering@lucent.com>
77152
77153         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77154         strtoimax.
77155         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77156         strtoumax.
77157
77158 2001-09-20  Jim Meyering  <meyering@lucent.com>
77159
77160         * lib/xstrtol.c (strtoimax): Guard declaration with
77161         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77162         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77163         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77164         (strtoumax): Likewise, for completeness (it wasn't necessary).
77165
77166 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77167
77168         * lib/strtoimax.c (HAVE_LONG_LONG):
77169         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77170         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77171         to work around bug in IBM C compiler.
77172
77173 2001-09-17  Jim Meyering  <meyering@lucent.com>
77174
77175         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77176         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77177         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77178         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77179         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77180         whenever the right hand side need not be expanded by the shell.
77181
77182 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77183
77184         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77185         library.  It's not correct, as some older glibcs are buggy.
77186         fnmatch wasn't fixed until glibc 2.2.
77187
77188         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77189         special shell magic here.
77190
77191 2001-09-16  Jim Meyering  <meyering@lucent.com>
77192
77193         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77194         * m4/jm-macros.m4: Require it.
77195
77196 2001-09-16  Jim Meyering  <meyering@lucent.com>
77197
77198         * lib/mkdir.c: New file.
77199
77200 2001-09-15  Jim Meyering  <meyering@lucent.com>
77201
77202         * m4/jm-macros.m4: Check for help2man.
77203
77204 2001-09-11  Jim Meyering  <meyering@lucent.com>
77205
77206         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77207         The body, by Paul Eggert, was moved here from configure.in.
77208         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77209
77210 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77211
77212         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77213         (jm_PREREQ): Use it.
77214
77215 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77216
77217         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77218         Use ssize_t, not int, to store result of readlink.
77219         Check for ssize_t overflow as well as size_t overflow,
77220         as POSIX says the result of readlink is implementation-defined
77221         when ssize_t overflows.
77222         Remove unnecessary cast to char*.
77223         Use free+malloc instead of realloc, as the storage doesn't need
77224         to be preserved and it's clearer and can be more efficient that way.
77225         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77226         * lib/xreadlink.h (xreadlink): Update prototype.
77227
77228 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77229
77230         * lib/xgetcwd.c: Revert some of the previous change; intead,
77231         fix the HAVE_GETCWD_NULL code to behave more like the
77232         !HAVE_GETCWD_NULL code used to.
77233
77234         Include "xalloc.h".
77235         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77236         invoke xalloc_die.
77237
77238 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77239
77240         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77241         sys/param.h, as pathmax.h includes them.
77242
77243 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77244
77245         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77246         (jm_PREREQ_XGETCWD): New macro.
77247
77248         * m4/getcwd.m4: New file.
77249
77250 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77251
77252         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77253         like the HAVE_GETCWD_NULL code.
77254         Include pathmax.h if not HAVE_GETCWD.
77255         Do not include xalloc.h.
77256         (INITIAL_BUFFER_SIZE): New symbol.
77257         Do not use xmalloc / xrealloc, since the caller is responsible for
77258         handling errors.  Preserve errno around `free' during failure.
77259         Do not overrun buffer when using getwd.
77260
77261 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77262
77263         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77264         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77265         getcwd (NULL, 0).
77266
77267 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77268
77269         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77270         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77271         spotted by Jim Meyering.
77272
77273 2001-09-03  Jim Meyering  <meyering@lucent.com>
77274
77275         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77276         failure.
77277
77278 2001-09-02  Jim Meyering  <meyering@lucent.com>
77279
77280         * lib/error.c: Update from GNU libc.
77281
77282 2001-09-01  Jim Meyering  <meyering@lucent.com>
77283
77284         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77285         Used by df.
77286
77287 2001-09-01  Jim Meyering  <meyering@lucent.com>
77288
77289         * lib/xreadlink.c: New file.
77290         * lib/xreadlink.h: New file.
77291         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77292         xreadlink.h.
77293
77294         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77295         doesn't conflict with sparc Solaris 7's definition in
77296         /usr/include/sys/int_types.h.
77297
77298         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77299         files.
77300         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77301         and strncasecmp as r-values.  Unixware didn't have declarations.
77302
77303 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77304
77305         * lib/xstrtol.h: Add copyright notice.
77306         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77307         LONGINT_INVALID_SUFFIX_CHAR.
77308
77309 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77310
77311         * lib/xstrtol.c (strtoimax): New decl.
77312
77313 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77314
77315         * lib/xgetcwd.c: Don't include pathmax.h.
77316         Include stdlib.h and unistd.h if available.
77317         Include xalloc.h.
77318         (xmalloc, xstrdup, free): Remove decls.
77319         (xgetcwd): Don't assume sizes fit in unsigned.
77320         Check for overflow when computing sizes.
77321         Simplify reallocation code.
77322
77323 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77324
77325         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77326         a directory's st_size can have an arbitrary value, so the old
77327         usage could waste an arbitrary amount of memory.  All uses
77328         changed.
77329         * lib/savedir.h: Update prototype.
77330
77331 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77332
77333         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77334
77335         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77336         old strtoimax.c.
77337
77338         Also, make the following further changes to make this file's
77339         configuration more similar to that of strtol.c:
77340         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77341         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77342         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77343         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77344         changed to signed values.
77345
77346         And make the following changes as well:
77347         Fix copyright notice, as 1999 was missing.
77348         (verify): New macro.
77349         (strtoimax): Check sizes at compile-time, not run-time.
77350         Prefer strtol to strtoll if both work.
77351         (main): Remove; it was not that useful and was a pain to maintain.
77352
77353         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77354
77355 2001-08-31  Jim Meyering  <meyering@lucent.com>
77356
77357         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77358         Use an initial, malloc'd, buffer of length 128 rather than
77359         a statically allocated one of length 1024.
77360
77361 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77362
77363         Simplify code, partly by assuming autoconf 2.52 semantics.
77364
77365         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77366
77367         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77368         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77369         All uses removed.
77370         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77371         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77372         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77373         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77374         jm_AC_HEADER_INTTYPES_H.
77375         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77376
77377         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77378
77379         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77380         Quote first arg of AC_DEFUN.
77381         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77382         since they are needed to parse the include file even if we need
77383         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77384         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77385         but with opposite signedness.
77386
77387 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77388
77389         Merge 'exclude' changes from tar 1.13.22.
77390         This fixes one or two unlikely storage allocation overflow bugs,
77391         but doesn't change user-visible behavior otherwise.
77392
77393 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77394
77395         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77396         (jm_PREREQ_EXCLUDE): New macro.
77397
77398 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77399
77400         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77401         tm to be declared.
77402
77403 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77404
77405         * lib/hash.c: Remove '2001' from copyright notice.
77406
77407 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77408
77409         * lib/full-write.h: New file.
77410         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77411         * lib/full-write.c: Correct credits, as cccp.c no longer
77412         exists and anyway it was so heavily changed from the old cccp
77413         code as to be unrecognizable.  Include full-write.h.
77414         (full_write): Return size_t, with short writes meaning failure.
77415         All callers changed.  This fixes a bug with large buffers
77416         on 64-bit hosts.
77417         * lib/utime.c: Include full-write.h.
77418
77419 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77420
77421         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77422         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77423         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77424         Include if available.
77425         (<xalloc.h>): Include
77426         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77427         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77428         collide with FNM macros.
77429         (struct patopts): New struct.
77430         (struct exclude): Use it, as exclude patterns now come with options.
77431         (new_exclude): Support above changes.
77432         (new_exclude, add_exclude_file):
77433         Initial size must now be a power of two to simplify overflow checking.
77434         (free_exclude, fnmatch_no_wildcards): New function.
77435         (excluded_filename): No longer requires options arg, as the options
77436         are determined by add_exclude.  Now returns bool, not int.
77437         (excluded_filename, add_exclude):
77438         Add support for the fancy new exclusion options.
77439         (add_exclude, add_exclude_file): Now takes int options arg.
77440         Check for arithmetic overflow when computing sizes.
77441         (add_exclude_file): xrealloc might modify errno, so don't
77442         realloc until after errno might be used.
77443
77444         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77445         New macros.
77446         (free_exclude): New decl.
77447         (add_exclude, add_exclude_file): Now takes int options arg.
77448         (excluded_filename): No longer requires options arg, as the options
77449         are determined by add_exclude.  Now returns bool, not int.
77450
77451 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77452
77453         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77454
77455 2001-08-27  Jim Meyering  <meyering@lucent.com>
77456
77457         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77458
77459         * lib/version-etc.c (N_): Remove definition.
77460         Revert most of last change.
77461         Instead, simply don't mark the `Copyright...' string for translation.
77462         Based on advice from Paul Eggert.
77463
77464         * lib/strtoxmax.c: Tweak comment.
77465
77466 2001-08-26  Jim Meyering  <meyering@lucent.com>
77467
77468         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77469
77470         * m4/xstrtoimax.m4: New file.
77471         * m4/xstrtoumax.m4: Add comments explaining why we
77472         AC_REPLACE_FUNCS(strtol).
77473
77474 2001-08-26  Jim Meyering  <meyering@lucent.com>
77475
77476         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77477         of copyright with `%s' so translators don't get an untranslated
77478         message in 2002.
77479         (COPYRIGHT_YEAR): Define.
77480         (version_etc): Use fprintf rather than fputs.
77481         Suggestion from Ulrich Drepper.
77482
77483         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77484
77485         * lib/strtoll.c: New file, from GNU libc.
77486         * lib/xstrtoimax.c: New file.
77487
77488         * lib/xstrtol.h: Add xstrtoimax.
77489         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77490         * lib/strtoimax.c: New file.  Likewise, but first define
77491         STRTOUXMAX_SIGNED.
77492
77493         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77494         ...
77495         * lib/strtoxmax.c: ... then renamed to this.
77496
77497 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77498
77499         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77500         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77501         (jm_AC_TYPE_INTMAX_T): New macro.
77502         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77503
77504         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77505
77506         * m4/longlong.m4: Renamed from ulonglong.m4.
77507         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77508         * m4/uintmax_t.m4: Removed.
77509
77510 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77511
77512         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77513         Port to Solaris 8, where 'sed' requires a space after the 'r'
77514         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77515         Redirect output to $tmp just once.
77516
77517 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77518
77519         * lib/addext.c (<errno.h>): Include.
77520         (errno): Declare if not defined.
77521         (addext): Work correctly when pathconf returns -1 and leaves
77522         errno alone because there is no limit.  Also, work even if
77523         pathconf returns a value greater than SIZE_MAX.
77524
77525 2001-08-12  Jim Meyering  <meyering@lucent.com>
77526
77527         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77528         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77529         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77530         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77531         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77532         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77533         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77534         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77535         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77536         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77537         utime.m4, utimes.m4, xstrtoumax.m4:
77538         Quote the first argument in each use of AC_DEFUN.
77539
77540 2001-08-12  Jim Meyering  <meyering@lucent.com>
77541
77542         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77543         Simply `return getcwd (NULL, 0);'.
77544         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77545         Use 1300 as initial value for length, not PATH_MAX.
77546
77547         * lib/pathmax.h: Clean up cpp syntax.
77548
77549 2001-08-12  Jim Meyering  <meyering@lucent.com>
77550
77551         * lib/gettimeofday.c: New file.
77552         * lib/gtod.h: New file.
77553         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77554
77555 2001-08-05  Jim Meyering  <meyering@lucent.com>
77556
77557         * m4/jm-macros.m4: Require autoconf-2.52.
77558
77559 2001-08-04  Jim Meyering  <meyering@lucent.com>
77560
77561         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77562         stmt, to get in sync with glibc.
77563
77564 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77565
77566         The following changes are from gettext 0.10.39 as maintained by
77567         Bruno Haible.
77568
77569         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77570         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77571         with inverted sense.  All uses changed.
77572
77573         * lib/mbswidth.c: Don't include <limits.h>.
77574         Include <stdlib.h> and <string.h> unconditionally.
77575         (iswcntrl, mbsinit, ISCNTRL): New macros.
77576         (mbsnwidth): Use K&R style function declarations.
77577         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77578         can optimize it when MB_CUR_MAX == 1.
77579         The width of control characters is zero, not 1.
77580
77581 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77582
77583         The following changes are from gettext 0.10.39 as maintained by
77584         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77585
77586         * m4/codeset.m4: Upgrade to serial AM1.
77587         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77588         all uses changed.  Quote first arg of AC_DEFUN.
77589         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77590
77591         * m4/iconv.m4: Upgrade to serial AM2.
77592         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77593         Add --with-libconv-prefix.
77594         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77595         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77596         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77597         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77598         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77599
77600         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77601         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77602         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77603         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77604         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77605         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77606         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77607         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77608         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77609
77610         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77611         string.h any more.
77612
77613         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77614         not the default value.
77615
77616         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77617         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77618         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77619         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77620         Also check for iswcntrl, used for wcwidth fallback.
77621         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77622         to Autoconf 2.13.
77623
77624 2001-08-03  Jim Meyering  <meyering@lucent.com>
77625
77626         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77627         as it was in the original.  Reported by Paul Eggert.
77628
77629 2001-07-16  Jim Meyering  <meyering@lucent.com>
77630
77631         * m4/gettimeofday.m4: New file.
77632         Prompted by a report from Bernhard Baehr.
77633
77634 2001-07-15  Jim Meyering  <meyering@lucent.com>
77635
77636         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77637         stuff. Now it's in ../Makefile.cfg.
77638
77639 2001-07-15  Jim Meyering  <meyering@lucent.com>
77640
77641         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77642         (BUILT_SOURCES): Add unlocked-io.h.
77643         (io_functions): Define.
77644         (unlocked-io.h): New rule.
77645         (DISTCLEANFILES): Add unlocked-io.h.
77646         (all-local): Depend on unlocked-io.h, to ensure it is created.
77647
77648         * lib/unlocked-io.hin: New file
77649
77650         * lib/regex.c: Update from glibc.
77651
77652 2001-07-05  Jim Meyering  <meyering@lucent.com>
77653
77654         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77655         recommendation.
77656         (libfetish_a_SOURCES): Put all .h files here instead.
77657         Remove a thus-exposed (better checks in automake) duplicate and
77658         two unnecessary .h files.
77659
77660 2001-07-04  Jim Meyering  <meyering@lucent.com>
77661
77662         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77663         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77664         distcheck failure.
77665
77666 2001-07-02  Jim Meyering  <meyering@lucent.com>
77667
77668         The following changes were prompted by suggestions from Bruno Haible.
77669
77670         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77671         is now generated.
77672         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77673         definition of EXTRA_DIST.
77674         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77675         ensure that the generated file is created/updated whenever the list
77676         of $(unlocked_functions) is changed.
77677         (jm-glibc-io.m4): New rule.
77678         (unlocked-io.h): New rule -- currently unused.
77679
77680 2001-06-24  Jim Meyering  <meyering@lucent.com>
77681
77682         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77683         unmatched right bracket, rather than kludging it with an extra,
77684         falsely-matching quote in a comment.  Patch by Akim Demaille.
77685
77686 2001-06-11  Jim Meyering  <meyering@lucent.com>
77687
77688         * lib/regex.c: Update from GNU libc.
77689
77690 2001-05-27  Jim Meyering  <meyering@lucent.com>
77691
77692         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77693         Check for ut_type in struct utmp.
77694
77695 2001-05-27  Jim Meyering  <meyering@lucent.com>
77696
77697         * lib/readutmp.h (UT_TYPE): Define.
77698
77699 2001-05-24  Jim Meyering  <meyering@lucent.com>
77700
77701         * lib/argmatch.c: Include "quote.h".
77702         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77703         quote function.  Reported by Göran Uddeborg.
77704
77705 2001-05-22  Jim Meyering  <meyering@lucent.com>
77706
77707         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77708         now that we use the package-supplied version unconditionally.
77709         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77710
77711 2001-05-21  Jim Meyering  <meyering@lucent.com>
77712
77713         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77714         shell syntax errors.
77715
77716 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77717
77718         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77719
77720 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77721
77722         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77723         Don't bother to check library strftime, since
77724         we'll be using our own my_strftime function anyway.
77725         Define my_strftime instead of strftime.
77726
77727 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77728
77729         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77730         which is not yet declared.
77731
77732 2001-05-15  Jim Meyering  <meyering@lucent.com>
77733
77734         * m4/regex.m4: Use proper quoting so brackets appear in the test
77735         program.
77736         Reported by, and with help from, Bruno Haible.
77737
77738 2001-05-13  Jim Meyering  <meyering@lucent.com>
77739
77740         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77741         undefined.
77742
77743 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77744
77745         dirname code cleanup.  base_name now behaves more compatibly
77746         with POSIX basename when given file names that have trailing
77747         slashes, and similarly for dir_name.  Add new primitives
77748         base_len and dir_len.  Put the directory-name-related decls
77749         into dirname.h.
77750
77751         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77752         * lib/backupfile.c (base_name): Likewise.
77753         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77754         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77755         * lib/makepath.c (strip_trailing_slashes): Likewise.
77756         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77757         ISSLASH): Likewise.
77758         * lib/rename.c (strip_trailing_slashes): Likewise.
77759         * lib/same.c (base_name): Likewise.
77760         * lib/stripslash.c (ISSLASH): Likewise.
77761
77762         * lib/addext.c: Include <dirname.h> after size_t is defined.
77763         * lib/backupfile.c: Likewise.
77764
77765         * lib/addext.c (addext): Use base_len to trim redundant
77766         trailing slashes instead of doing it ourselves.
77767         But do not trim the last slash if it is not redundant.
77768
77769         * lib/backupfile.c (find_backup_file_name,
77770         max_backup_version): Use base_len instead of rolling it ourselves.
77771         Handle the case of "" and (on DOS) "C:" correctly.
77772
77773         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77774         needed. Include <string.h>, <dirname.h>.
77775         (base_name): Allow file names ending in slashes, other than names
77776         that are all slashes.  In this case, return the basename followed
77777         by the slashes.  This is more general, and can be used in places
77778         where the original base_name purposely had an assertion failure.
77779         (base_len): New function.
77780
77781         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77782         Do not include <assert.h>; no longer needed.
77783         Include xalloc.h.
77784         (memrchr): Remove decl.
77785         (dir_name_r): Remove.
77786         (dir_len): Renamed from dirlen.  All callers changed.
77787         Rewrite in terms of base_name, for simplicity and consistency.
77788         (dir_name): Never return NULL.  All callers changed.
77789         Do not include <stdlib.h> in test program; no longer needed.
77790         return 0; is fine for test program.
77791
77792         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77793         New macros.
77794         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77795
77796         * lib/path-concat.c (path_concat): Use base_len to compute
77797         base length, not strlen; this means we cannot rely on memcpy
77798         to null-terminate.
77799
77800         * lib/same.c (STREQ): Remove.
77801         (same_name): Handle the case where the basename ends in trailing '/'.
77802
77803         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77804         a slash was stripped.  Do not strip the last slash after a
77805         file system prefix.
77806
77807 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77808
77809         * lib/Makefile.am (libfetish_a_SOURCES):
77810         Add strftime.c, since we now compile it on all hosts.
77811
77812         * lib/strftime.c (my_strftime):
77813         Define to nstrftime if emacs, but only if my_strftime is not defined.
77814         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77815         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77816         Add one more extra argument: a nanoseconds value.
77817         All uses changed.
77818         (ns): New macro.
77819         (my_strftime function): Add %N format.
77820         (emacs_strftimeu): Renamed from emacs_strftime,
77821         with extra ut argument.
77822
77823 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77824
77825         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77826
77827 2001-04-21  Jim Meyering  <meyering@lucent.com>
77828
77829         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77830         doesn't interfere.
77831
77832 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77833
77834         * m4/ftruncate.m4: Check for chsize.
77835         Link with ftruncate.o unconditionally if ftruncate is missing.
77836         This was required when cross-compiling to i586-mingw32msvc.
77837
77838 2001-04-08  Jim Meyering  <meyering@lucent.com>
77839
77840         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77841         recomputed; that's necessary when the offset spans a DST transition.
77842         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77843
77844 2001-04-02  Jim Meyering  <meyering@lucent.com>
77845
77846         * lib/regex.h, regex.c: Update from GNU libc.
77847
77848 2001-03-24  Jim Meyering  <meyering@lucent.com>
77849
77850         * m4/jm-macros.m4: Require autoconf-2.49d.
77851
77852 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77853
77854         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77855
77856 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77857
77858         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77859
77860 2001-03-17  Jim Meyering  <meyering@lucent.com>
77861
77862         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77863         now that the version in autoconf is equivalent.
77864         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77865
77866         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77867         Suggestion from Akim Demaille.
77868
77869         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77870         (jm_PREREQ_TEMPNAME): New function.
77871
77872 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77873
77874         * lib/tempname.c (uint64_t): Define to uintmax_t if
77875         not defined, and if UINT64_MAX is not defined.
77876         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77877         Reported by John David Anglin.
77878
77879 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77880
77881         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77882         resolve alias if codeset is empty.
77883         * lib/config.charset (BeOS): Use wildcard syntax.
77884
77885 2001-03-13  Jim Meyering  <meyering@lucent.com>
77886
77887         * lib/path-concat.c (path_concat)
77888         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77889         concatenating e.g., `C:' and `foo'.
77890         From Bruno Haible.
77891
77892 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77893
77894         * lib/localcharset.c (locale_charset): Don't use
77895         setlocale(LC_CTYPE,NULL). Don't return NULL.
77896         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77897
77898 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77899
77900         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77901         support for DOS/DJGPP.
77902
77903 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77904
77905         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77906         lacks mkstemp.  Compile our own tempname.c if we compile our own
77907         mkstemp.c, as mkstemp relies on tempname.
77908
77909 2001-03-01  Jim Meyering  <meyering@lucent.com>
77910
77911         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77912         AH_VERBATIM really does output its argument verbatim.
77913
77914 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77915
77916         * lib/Makefile.am (libfetish_a_SOURCES):
77917         Add dup-safer.c, fopen-safer.c.
77918         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77919
77920         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77921         * lib/unistd-safer.h: New files.
77922
77923 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77924
77925         The mkstemp replacement is taken from glibc 2.2.2, with some
77926         portability fixes for use outside glibc, as follows:
77927
77928         * lib/tempname.c (struct_stat64): New macro.
77929         (direxists, __gen_tempname): Use it.
77930         This avoids a portability problem with Solaris 8.
77931
77932         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77933         (<stddef.h>, <stdint.h>, <string.h>):
77934         Include only if STDC_HEADERS || _LIBC.
77935         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77936         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77937         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77938         (__set_errno): Define this macro if <errno.h> doesn't.
77939         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77940         Define these macros if <stdio.h> doesn't.
77941         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77942         Define these macros if <sys/stat.h>
77943         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77944         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77945         __xstat64): Define if not _LIBC.
77946         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77947         (__gen_tempname): Invoke gettimeofday only if
77948         HAVE_GETTIMEOFDAY || _LIBC;
77949         otherwise, fall back on plain "time".
77950         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77951
77952         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77953
77954         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77955
77956 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77957
77958         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77959
77960 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77961
77962         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77963         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77964         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77965         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77966
77967 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77968
77969         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77970         Remove workaround macros for hosts that have mbrtowc but not
77971         mbstate_t, as we now insist on proper declarations for both
77972         before using mbrtowc.
77973
77974 2001-02-17  Jim Meyering  <meyering@lucent.com>
77975
77976         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77977         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77978         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77979         UnixWare 7.1.1.
77980
77981         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77982         rather than AC_CACHE_VAL.
77983
77984 2001-02-17  Jim Meyering  <meyering@lucent.com>
77985
77986         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77987         around included file name.
77988
77989         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77990
77991         * lib/strftime.c: Update from GNU libc (the only changes were to
77992         comments).
77993
77994 2001-02-17  Jim Meyering  <meyering@lucent.com>
77995
77996         * lib/regex.c: Update from libc.
77997
77998 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77999
78000         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78001         clash.
78002
78003 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78004
78005         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78006         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78007         Reported by Mark Hounschell via Paul Eggert.
78008
78009 2001-02-07  Jim Meyering  <meyering@lucent.com>
78010
78011         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78012
78013 2001-02-05  Jim Meyering  <meyering@lucent.com>
78014
78015         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78016         it includes the patch required for `large file' support with at least
78017         HP-UX's 10.20 /bin/cc.
78018
78019 2001-02-03  Jim Meyering  <meyering@lucent.com>
78020
78021         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78022         AS_IF, now that it works once again (mysteriously).
78023         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78024
78025 2001-01-30  Jim Meyering  <meyering@lucent.com>
78026
78027         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78028         * m4/chown.m4: Rename conftestchown to conftest.chown.
78029         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78030         s/conftestdir2/conftest.d2/.
78031         * m4/utimes.m4: s/conftestdata/conftest.data/
78032         Inspired by Pavel Roskin's change in autoconf.
78033
78034 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78035
78036         * lib/config.charset: Update for FreeBSD 4.2.
78037
78038 2001-01-27  Jim Meyering  <meyering@lucent.com>
78039
78040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78041         a use of AS_IF.
78042         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78043
78044 2001-01-26  Jim Meyering  <meyering@lucent.com>
78045
78046         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78047         quotearg.c includes it.
78048
78049 2001-01-26  Jim Meyering  <meyering@lucent.com>
78050
78051         * lib/quotearg.c: Include stddef.h.
78052         * lib/quote.c: Include stddef.h.
78053         Reported by Axel Kittenberger.
78054
78055         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78056         line in double quotes so that it evokes a better diagnostic.
78057         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78058         Reported by Axel Kittenberger.
78059
78060 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78061
78062         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78063         as if it was a `charset'.
78064
78065 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78066
78067         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78068         has const.
78069
78070 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78071
78072         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78073         to avoid a warning.  Add back 'const' to inptr.
78074
78075 2001-01-20  Jim Meyering  <meyering@lucent.com>
78076
78077         Be sure that headers are checked before used in code compiled
78078         for the type checks.
78079         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78080         In place of that, invoke jm_CHECK_ALL_TYPES.
78081         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78082         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78083         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78084         The check for ssize_t was mistakenly run before the test for unistd.h.
78085
78086         The configure-time check for stdbool.h was missing.
78087         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78088         (jm_PREREQ_HASH): New function.
78089
78090 2001-01-17  Jim Meyering  <meyering@lucent.com>
78091
78092         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78093         for autoconf-2.49c.
78094         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78095
78096 2001-01-16  Jim Meyering  <meyering@lucent.com>
78097
78098         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78099         From Bruno Haible.
78100
78101 2001-01-14  Jim Meyering  <meyering@lucent.com>
78102
78103         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78104         foo and bar.  Create conftestdir/ in the script, not in the C code.
78105         Remove directories in the script, not in the C code.
78106         Remove conftestdir{,2} before trying to create the directory.
78107         Make the entire configure script fail if the mkdir fails.
78108
78109 2001-01-14  Jim Meyering  <meyering@lucent.com>
78110
78111         * lib/rename.c: New file.  From Volker Borchert.
78112         Include stdlib.h, string.h or strings.h, and xalloc.h.
78113         Use strip_trailing_slashes rather than open-coding it.
78114
78115 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78116
78117         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78118
78119 2001-01-03  Jim Meyering  <meyering@lucent.com>
78120
78121         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78122         of local `inptr' to avoid warning with some system declarations of
78123         iconv.
78124
78125 2001-01-02  Volker Borchert  <bt@teknon.de>
78126
78127         * m4/rename.m4: New file.
78128         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78129
78130 2001-01-01  Jim Meyering  <meyering@lucent.com>
78131
78132         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78133         even on systems with utmpx.h.  It's necessary for the declaration of
78134         utmp's ut_user member.  Reported by Andreas Jaeger.
78135
78136         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78137         available. They are required for the declarations of getgrgid and
78138         getpwuid resp.
78139         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78140         Reported by Andreas Jaeger.
78141
78142 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78143
78144         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78145         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78146         so `make install' also works in VPATH builds.
78147
78148 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78149
78150         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78151         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78152         can be used in subdirectories.
78153
78154 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78155
78156         * lib/modechange.c: Do not assume that mode_t uses the
78157         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78158         the other-execute bit of FOO even if S_IXOTH != 1.
78159
78160         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78161         WOTH, XOTH, ALLM): New macros.
78162         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78163          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78164         Use them.
78165         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78166         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78167         (mode_compile):
78168         No need to use uintmax_t; unsigned long is long enough.
78169         Don't bother to get suffix since we don't use it.
78170
78171 2000-12-26  Jim Meyering  <meyering@lucent.com>
78172
78173         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78174         better with autoheader.
78175
78176 2000-12-24  Jim Meyering  <meyering@lucent.com>
78177
78178         * lib/hash.c (is_prime): Return explicit boolean values.
78179         (hash_get_first): Return NULL to appease Irix5.6's 89.
78180         Reported by Nelson Beebe.
78181
78182 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78183
78184         * lib/localcharset.c (locale_charset): Add support for Win32.
78185
78186 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78187
78188         * lib/physmem.h, lib/physmem.c: New files.
78189
78190         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78191         (noinst_HEADERS): Add physmem.h.
78192
78193         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78194         't' for compatibility with Solaris 8 sort.
78195
78196 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78197
78198         * lib/config.charset: Add support for BeOS.
78199
78200 2000-12-17  Jim Meyering  <meyering@lucent.com>
78201
78202         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78203         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78204
78205 2000-12-16  Jim Meyering  <meyering@lucent.com>
78206
78207         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78208         N and M) would have treated it like `chown N:N FILE'.
78209
78210         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78211
78212 2000-12-16  Jim Meyering  <meyering@lucent.com>
78213
78214         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78215         SHELLS_FILE to a file name that's useful on djgpp systems.
78216         Include stdlib.h.
78217         (ADDITIONAL_DEFAULT_SHELLS): Define.
78218         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78219         Based mostly on a patch from Prashant TR.
78220
78221 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78222
78223         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78224         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78225         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78226
78227 2000-12-08  Andreas Schwab  <schwab@suse.de>
78228
78229         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78230         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78231
78232 2000-12-07  Jim Meyering  <meyering@lucent.com>
78233
78234         * lib/stripslash.c (ISSLASH): Define.
78235         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78236         `/'.
78237         From Prashant TR.
78238
78239         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78240         (dir_name_r): Declare this function as static.
78241         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78242         manifest itself on a name containing a mix of slashes and
78243         backslashes.
78244         Make this function work with names starting with a DOS-style
78245         drive letter and colon prefix.
78246         (dir_name): Append `.' if necessary.
78247         Based mostly on patches from Prashant TR and Eli Zaretskii.
78248
78249         * lib/dirname.h (dir_name_r): Remove prototype.
78250
78251 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78252
78253         * m4/off_t-format.m4: Remove this file.
78254         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78255
78256 2000-12-06  Jim Meyering  <meyering@lucent.com>
78257
78258         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78259         replacement strtoull, we may well need the replacement strtoul, too.
78260         Check for declarations of strtoul and strtoull.
78261         Check for strtol.  Mainly as a cue to cause automake to include
78262         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78263         Check for limits.h -- strtol.c needs it.
78264
78265 2000-12-05  Jim Meyering  <meyering@lucent.com>
78266
78267         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78268
78269 2000-12-04  Jim Meyering  <meyering@lucent.com>
78270
78271         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78272         Also include memory.h, stdlib.h, unistd.h if appropriate.
78273         Reported by Andreas Jaeger (conflicting declaration of malloc).
78274
78275 2000-12-02  Jim Meyering  <meyering@lucent.com>
78276
78277         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78278         * m4/jm-macros.m4 (jm_MACROS): require it.
78279
78280 2000-12-02  Jim Meyering  <meyering@lucent.com>
78281
78282         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78283
78284 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78285
78286         * lib/memrchr.c: Include <config.h> before any system include file.
78287
78288 2000-11-30  Jim Meyering  <meyering@lucent.com>
78289
78290         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78291
78292 2000-11-30  Jim Meyering  <meyering@lucent.com>
78293
78294         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78295
78296 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78297
78298         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78299
78300 2000-11-26  Jim Meyering  <meyering@lucent.com>
78301
78302         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78303
78304 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78305
78306         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78307         size of (size_t) -1; it's not portable.
78308
78309 2000-11-17  Jim Meyering  <meyering@lucent.com>
78310
78311         * lib/strstr.c: Update from GNU libc.
78312
78313 2000-11-17  Akim Demaille  <akim@epita.fr>
78314
78315         * lib/obstack.h: Formatting changes.
78316         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78317         prevent type checking.
78318         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78319         cast the value to (void *): assigning a `foo *' to a `void *'
78320         variable is valid.
78321         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78322
78323 2000-11-16  Jim Meyering  <meyering@lucent.com>
78324
78325         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78326
78327 2000-11-11  Jim Meyering  <meyering@lucent.com>
78328
78329         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78330
78331 2000-11-10  Jim Meyering  <meyering@lucent.com>
78332
78333         * lib/obstack.h: Update from GNU libc.
78334         * lib/obstack.c: Likewise.
78335
78336 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78337
78338         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78339
78340 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78341
78342         * lib/getusershell.c (setusershell): Use rewind rather than
78343         fseek/fseeko, to avoid configuration hassles with fseeko.
78344         Don't bother opening SHELLS_FILE if shellstream is NULL;
78345         it's not necessary.
78346
78347 2000-11-05  Jim Meyering  <meyering@lucent.com>
78348
78349         * lib/makepath.h (make_dir): Declare.
78350         * lib/makepath.c (make_dir): Remove `static' attribute.
78351         Tweak a comment.
78352
78353 2000-11-04  Jim Meyering  <meyering@lucent.com>
78354
78355         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78356
78357 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78358
78359         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78360         last one in a bucket, advance to the next bucket.
78361
78362 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78363
78364         * lib/fnmatch.c: Do not comment out all the code if we are using
78365         the GNU C library, because in some cases we are replacing buggy
78366         code in the GNU C library itself.
78367
78368 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78369
78370         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78371         (regex_compile): Catch bogus \(\1\).
78372
78373 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78374
78375         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78376         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78377         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78378
78379 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78380
78381         * lib/error.h, getline.h, modechange.h:
78382         Remove "2000" from Copyright line, as the file hasn't been
78383         changed this year other than in the copyright notice.
78384
78385         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78386         was changed this year.
78387
78388 2000-10-29  Jim Meyering  <meyering@lucent.com>
78389
78390         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78391         renaming.
78392         * m4/ls-mntd-fs.m4: Likewise
78393
78394 2000-10-29  Jim Meyering  <meyering@lucent.com>
78395
78396         * lib/xstat.in: Fix grammar in comment.
78397
78398 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78399
78400         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78401         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78402         doesn't define __restrict_arr.
78403
78404 2000-10-28  Jim Meyering  <meyering@lucent.com>
78405
78406         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78407         (jm_PREREQ_MEMCHR): New function.
78408
78409 2000-10-28  Jim Meyering  <meyering@lucent.com>
78410
78411         * lib/memchr.c: Update from libc.
78412         Adjust for portability:
78413         [HAVE_STDLIB_H]: Include stdlib.h.
78414         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78415         Undef __memchr, too.
78416         [!weak_alias]: Define __memchr to memchr.
78417
78418         * lib/regex.c: Update from libc.
78419         * lib/regex.h: Likewise.
78420         * lib/getopt1.c: Likewise.
78421         * lib/memcmp.c: Likewise.
78422
78423         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78424         Avoid using fseek, when possible -- it's broken by design.
78425         Patch by Ulrich Drepper.
78426
78427 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78428
78429         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78430         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78431         Giving in to popular pressure to shut up the compiler with casts.
78432
78433 2000-10-26  Jim Meyering  <meyering@lucent.com>
78434
78435         * lib/strftime.c: Update from libc.
78436
78437 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78438
78439         * regex.c: More `unsigned char' -> `re_char' changes.
78440         Also change several `int' into `re_wchar_t'.
78441         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78442         (PUSH_FAILURE_POINTER): Don't cast any more.
78443         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78444         We want GCC to complain, since this piece of code makes
78445         re_match non-reentrant, which *should* be fixed.
78446         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78447         (EXTEND_BUFFER): Use RETALLOC.
78448         (SET_LIST_BIT): Don't cast.
78449         (re_wchar_t): New type.
78450         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78451         that those two functions will always properly return.
78452         (IMMEDIATE_QUIT_CHECK): Cast to void.
78453         (analyse_first): Use recursion rather than an explicit stack.
78454         (re_compile_fastmap): Can't fail anymore.
78455         (re_search_2): Don't check re_compile_fastmap for failure.
78456         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78457         Now also sets the new value (passed in a new argument).
78458         (re_match_2_internal): Use it.
78459         Also, use a new var `reg' of type size_t when looping through regs
78460         rather than reuse the inappropriate `mcnt'.
78461
78462 2000-10-25  Jim Meyering  <meyering@lucent.com>
78463
78464         * lib/obstack.c: Update from libc.
78465
78466 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78467
78468         * regex.c (regex_compile): Change the way of handling a range from
78469         a char less than 256 to a char not less than 256.
78470
78471 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78472
78473         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78474         NT-Emacs only.
78475         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78476         so that re_search functions only quit when callers expect them to.
78477
78478 2000-10-23  Jim Meyering  <meyering@lucent.com>
78479
78480         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78481         wrong.  That set_locale call must not have any side effects.
78482         From Paul Eggert.
78483
78484 2000-10-22  Jim Meyering  <meyering@lucent.com>
78485
78486         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78487         [CYCLIC]: Remove now-unused definition.
78488
78489         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78490         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78491         Suggestion from Ulrich Drepper.
78492
78493 2000-10-21  Jim Meyering  <meyering@lucent.com>
78494
78495         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78496         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78497         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78498
78499 2000-10-21  Jim Meyering  <meyering@lucent.com>
78500
78501         * lib/dirname.c (memrchr): Declare if necessary.
78502         (dir_name): Remove the restriction that there be no
78503         trailing slashes.  Now, this code skips past them, effectively
78504         ignoring them.
78505         [TEST_DIRNAME] (main): New unit tests.
78506
78507         * lib/memrchr.c: New file from GNU libc.
78508         Undef __memrchr, too.
78509         [!weak_alias]: Define __memrchr to memrchr.
78510         Guard weak_alias use with `#ifdef weak_alias'.
78511
78512 2000-10-21  Jim Meyering  <meyering@lucent.com>
78513
78514         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78515         (dir_name): Use dir_name_r.
78516         * lib/dirname.h (dir_name_r): Declare it.
78517
78518 2000-10-17  Jim Meyering  <meyering@lucent.com>
78519
78520         * lib/quote.h (PARAMS): Define and use.
78521         Reported by Akim Demaille.
78522
78523         * lib/getopt.c: Update from libc.
78524
78525 2000-10-16  Jim Meyering  <meyering@lucent.com>
78526
78527         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78528         setlocale.
78529         From Jan Fedak.
78530
78531 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78532
78533         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78534
78535 2000-09-25  Jim Meyering  <meyering@lucent.com>
78536
78537         * lib/md5.h (rol): Define (from GnuPG).
78538
78539         * lib/sha.c: Give credit (GnuPG) where due.
78540         (M): Use rol rather than open-coding it.
78541         Add a FIXME comment.
78542
78543 2000-09-21  Jim Meyering  <meyering@lucent.com>
78544
78545         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78546         Reported by Michael Stone.
78547
78548 2000-09-20  Jim Meyering  <meyering@lucent.com>
78549
78550         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78551         (noinst_HEADERS): Add sha.h.
78552         Based on code from Scott G. Miller and from GnuPG.
78553
78554 2000-09-18  Jim Meyering  <meyering@lucent.com>
78555
78556         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78557         LIBS. Otherwise, everyone ends up linking with -lelf for some
78558         configurations.
78559         Reported by Mike Stone.
78560
78561 2000-09-15  Jim Meyering  <meyering@lucent.com>
78562
78563         * lib/regex.c: Update from libc.
78564
78565 2000-09-10  Jim Meyering  <meyering@lucent.com>
78566
78567         * lib/getopt.c (_getopt_internal): Update from glibc.
78568
78569 2000-09-09  Jim Meyering  <meyering@lucent.com>
78570
78571         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78572         think it should be used as a general replacement for isascii.
78573         * lib/fnmatch.c: Likewise.
78574         * lib/mbswidth.c: Likewise
78575         * lib/regex.c: Likewise.
78576
78577         Don't use atoi.
78578         * lib/userspec.c: Include sys/param.h and limits.h.
78579         Include xstrtol.h.
78580         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78581         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78582         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78583         UID, GID.  Check range.
78584
78585 2000-09-06  Jim Meyering  <meyering@lucent.com>
78586
78587         * lib/getopt.c (_getopt_internal): Update from glibc.
78588
78589 2000-08-30  Jim Meyering  <meyering@lucent.com>
78590
78591         * lib/strftime.c: Merge in changes from GNU libc.
78592
78593 2000-08-26  Jim Meyering  <meyering@lucent.com>
78594
78595         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78596         * m4/fpending.m4: New file.
78597
78598 2000-08-26  Jim Meyering  <meyering@lucent.com>
78599
78600         * lib/closeout.c: Include "__fpending.h".
78601         (close_stdout_status): Return right away if there's nothing to flush.
78602
78603         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78604         * lib/__fpending.c: New file.
78605         * lib/__fpending.h: New file.
78606
78607 2000-08-20  Jim Meyering  <meyering@lucent.com>
78608
78609         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78610         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78611         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78612
78613 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78614
78615         Improve fileutils installation on systems where running
78616         programs (like install) can't be unlinked.
78617         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78618         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78619
78620 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78621
78622         Standardize on "memory exhausted" instead of "Memory exhausted"
78623         or "virtual memory exhausted".
78624         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78625         "virtual memory exhausted".
78626         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78627         our own message.
78628         * lib/userspec.c (parse_user_spec): Likewise.
78629         * lib/bumpalloc.h: comment fix
78630         * lib/same.c, userspec.c: Include xalloc.h.
78631
78632         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78633         not char *const and pointing to a constant array.
78634         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78635         (xrealloc): Comment fix.
78636
78637         * lib/userspec.c (parse_user_spec):
78638         Don't translate a message until just before returning,
78639         to avoid unnecessary translation.
78640
78641 2000-08-07  Jim Meyering  <meyering@lucent.com>
78642
78643         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78644         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78645         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78646         getgroups.c, gethostname.c, getopt.h, group-member.c,
78647         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78648         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78649         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78650         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78651         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78652         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78653         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78654         yesno.c: Back out Copyright date changes for each file with no change
78655         this year.  This eases coordination with other programs using the same
78656         source code modules.  From Paul Eggert.
78657
78658 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78659
78660         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78661         not char, for compatibility with glibc 2.1.3 strftime.c.
78662
78663 2000-08-03  Greg McGary  <greg@mcgary.org>
78664
78665         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78666         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78667         (EXTEND_BUFFER): Use them.
78668
78669 2000-08-01  Jim Meyering  <meyering@lucent.com>
78670
78671         * lib/dirname.c (ISSLASH): Define.
78672         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78673         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78674         both `\' and `/' may be use as path separators.
78675         Based on a patch from Prashant TR.
78676
78677 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78678
78679         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78680         slot vector a constant, since it might get modified.
78681
78682 2000-07-31  Jim Meyering  <meyering@lucent.com>
78683
78684         * lib/xmalloc.c: Use `virtual memory exhausted', not
78685         `Memory exhausted'.
78686         * lib/obstack.c (print_and_abort): Likewise.
78687
78688 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78689
78690         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78691         buffer, so that the caller can always quote one small
78692         component of a "memory exhausted" message in slot 0.
78693         From a suggestion by Jim Meyering.
78694
78695 2000-07-30  Jim Meyering  <meyering@lucent.com>
78696
78697         * lib/makepath.c (make_path): Quote the other instance, too.
78698
78699         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78700         (STATIC_BUF_SIZE): Define.
78701         (quotearg_n_options): Use only statically allocated storage when
78702         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78703         than STATIC_BUF_SIZE.
78704
78705 2000-07-29  Jim Meyering  <meyering@lucent.com>
78706
78707         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78708         * lib/dirname.c (dir_name): Likewise.
78709
78710         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78711         `/'.
78712
78713         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78714         (dir_name): Assert that there are no trailing slashes.
78715
78716 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78717
78718         * lib/mbswidth.h (mbswidth): Add a flags argument.
78719         (mbswidth): New declaration.
78720         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78721         * lib/mbswidth.c (mbswidth): Add a flags argument.
78722         (mbsnwidth): New function.
78723
78724 2000-07-24  Jim Meyering  <meyering@lucent.com>
78725
78726         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78727
78728 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78729
78730         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78731
78732 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78733
78734         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78735         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78736         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78737         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78738         invoke multibyte primitives.
78739
78740 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78741
78742         * lib/quotearg.c:
78743         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78744         so that mbstate_t is always defined.
78745
78746         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78747         be 1 in at least one GCC installation, and this configuration
78748         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78749         performance on hosts that have mbrtowc but have only unibyte
78750         locales, but I assume these hosts are rare.
78751
78752 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78753
78754         * lib/mbswidth.c (_XOPEN_SOURCE):
78755         Don't define; this causes problems on Solaris 7.
78756         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78757
78758 2000-07-23  Jim Meyering  <meyering@lucent.com>
78759
78760         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78761         too: getgrgid, getpwuid, getuid.
78762
78763 2000-07-23  Jim Meyering  <meyering@lucent.com>
78764
78765         * lib/basename.c (base_name): Add an assertion.
78766
78767 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78768
78769         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78770         shadow its mbsinit function.
78771
78772 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78773
78774         * lib/mbswidth.h: New file.
78775         * lib/mbswidth.c: New file.
78776         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78777         (noinst_HEADERS): Add mbswidth.h.
78778
78779 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78780
78781         * lib/config.charset: Add support for FreeBSD. Improve support for
78782         HP-UX and IRIX 6.
78783
78784 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78785
78786         * m4/mbswidth.m4: New file.
78787         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78788
78789 2000-07-15  Jim Meyering  <meyering@lucent.com>
78790
78791         * lib/makepath.c: Include quote.h.
78792         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78793         corresponding argument in a `quote (...)' call.
78794         Give better diagnostics.
78795
78796         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78797         (noinst_HEADERS): Add quote.h.
78798
78799         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78800         from tar's src/misc.c.
78801         * lib/quote.h: New file.  Prototypes for same.
78802
78803 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78804
78805         From a suggestion by Bruno Haible.
78806         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78807         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78808         to decide whether to define the BeOS workaround macro;
78809         this adjusts to the change to AC_MBSTATE_T.
78810
78811 2000-07-14  Jim Meyering  <meyering@lucent.com>
78812
78813         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78814         jm_AC_TYPE_UINTMAX_T.
78815
78816 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78817
78818         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78819
78820         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78821         quotearg_buffer_restyled): Add support for
78822         clocale_quoting_style.  Undo previous change to
78823         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78824         and "{RIGHT QUOTATION MARK}" msgids.
78825
78826 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78827
78828         From a suggestion by Bruno Haible.
78829         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78830         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78831         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78832         and mbstate_t, to a single-part test that simply defines mbstate_t.
78833         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78834         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78835
78836 2000-07-10  Jim Meyering  <meyering@lucent.com>
78837
78838         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78839
78840         * m4/gnu-source.m4: Output to confdefs.h directly.
78841         Suggestion from Akim Demaille.
78842
78843 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78844
78845         The old behavior of quoting `like this' doesn't look good with
78846         newer, ISO-style fonts.  See:
78847         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78848
78849         Instead, quote "like this" by default.  Let the translator
78850         tailor the locale-specific quoting behavior by providing
78851         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78852
78853         * lib/quotearg.c (N_): New macro.
78854         (gettext_default): New function.
78855         (quotearg_buffer_restyled): Use
78856         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78857         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78858
78859 2000-07-09  Jim Meyering  <meyering@lucent.com>
78860
78861         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78862         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78863
78864         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78865         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78866
78867 2000-07-09  Jim Meyering  <meyering@lucent.com>
78868
78869         * lib/Most files: Update copyright dates to include 2000.
78870
78871 2000-07-08  Jim Meyering  <meyering@lucent.com>
78872
78873         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78874         if not defined.
78875         (xgethostname): Remove now-unnecessary #ifdef.
78876         Move declaration of `err' into loop where it's used.
78877
78878 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78879         and Bruno Haible  <haible@clisp.cons.org>
78880
78881         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78882         only if the test for an object-type mbstate_t fails.  This
78883         prevents us from mistakenly reporting that mbstate_t is a
78884         system object type after we "#define mbstate_t int" to work
78885         around its lack.
78886
78887 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78888         and Bruno Haible  <haible@clisp.cons.org>
78889
78890         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78891
78892 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78893
78894         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78895         to strerror_r.
78896         Include <ctype.h> for use of isalpha.
78897
78898 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78899
78900         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78901         by allocating a larger buffer. Test the gethostname return value for
78902         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78903         returns an error and ENAMETOOLONG isn't defined.
78904
78905 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78906
78907         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78908         dimension.
78909
78910 2000-07-04  Jim Meyering  <meyering@lucent.com>
78911
78912         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78913         of the deprecated AC_CHECKING.
78914
78915 2000-07-04  Jim Meyering  <meyering@lucent.com>
78916
78917         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78918         Reported by Bruno Haible.
78919
78920 2000-07-04  Jim Meyering  <meyering@lucent.com>
78921
78922         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78923         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78924         lacks mbrtowc.
78925
78926 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78927
78928         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78929         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78930
78931 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78932         and Bruno Haible  <haible@clisp.cons.org>
78933
78934         * lib/quotearg.c (mbrtowc):
78935         Assign to *pwc, and return 1 only if result is nonzero.
78936         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78937
78938 2000-07-03  Jim Meyering  <meyering@lucent.com>
78939
78940         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78941
78942 2000-07-03  Jim Meyering  <meyering@lucent.com>
78943
78944         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78945         This is necessary to get a definition of e.g., UTMP_FILE on
78946         HP-UX 10.20.
78947         From Bob Proulx.
78948
78949 2000-07-02  Jim Meyering  <meyering@lucent.com>
78950
78951         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78952
78953         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78954         AC_LIBOBJ(function_name).
78955         * m4/chown.m4: Likewise.
78956         * m4/fnmatch.m4: Likewise.
78957         * m4/ftruncate.m4: Likewise.
78958         * m4/getgroups.m4: Likewise.
78959         * m4/getline.m4: Likewise.
78960         * m4/group-member.m4: Likewise.
78961         * m4/jm-macros.m4: Likewise.
78962         * m4/lstat.m4: Likewise.
78963         * m4/malloc.m4: Likewise.
78964         * m4/memcmp.m4: Likewise.
78965         * m4/nanosleep.m4: Likewise.
78966         * m4/putenv.m4: Likewise.
78967         * m4/realloc.m4: Likewise.
78968         * m4/regex.m4: Likewise.
78969         * m4/stat.m4: Likewise.
78970         * m4/strftime.m4: Likewise.
78971
78972 2000-07-02  Jim Meyering  <meyering@lucent.com>
78973
78974         * lib/quotearg.c (mbstate_t): Don't define here.
78975
78976 2000-07-02  Jim Meyering  <meyering@lucent.com>
78977
78978         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78979
78980 2000-07-01  Jim Meyering  <meyering@lucent.com>
78981
78982         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78983
78984 2000-07-01  Jim Meyering  <meyering@lucent.com>
78985
78986         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78987         problem.
78988
78989 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78990
78991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78992         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78993
78994 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78995
78996         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78997         per change in ../m4/ls-mntd-fs.m4.
78998         (read_filesystem_list): Ignore symbolic links.
78999
79000 2000-06-29  Jim Meyering  <meyering@lucent.com>
79001
79002         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79003         for declaration of strcmp.
79004
79005         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79006
79007         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79008         Avoid warning by casting result to `char *' to remove `const'.
79009
79010 2000-06-28  Jim Meyering  <meyering@lucent.com>
79011
79012         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79013         included by quotearg.c, for which we perform this test.  From
79014         Bruno Haible.
79015
79016 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79017
79018         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79019         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79020         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79021
79022 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79023
79024         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79025
79026 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79027
79028         savedir now sets errno on failure and invokes xmalloc to get memory.
79029         Fix a couple of other minor bugs while we're at it.
79030
79031         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79032         (NAMLEN): Remove macro.
79033         (malloc, realloc): Remove decls.
79034         (stpcpy): Likewise.
79035         ("xalloc.h"): Include.
79036         (NAME_SIZE_DEFAULT): New macro.
79037         (savedir): Use xmalloc / xrealloc to allocate memory.
79038         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79039         Skip "" directory entries.
79040         Use strlen to calculate directory entry length, since the old method
79041         is rarely used these days and isn't worth supporting.
79042         Don't use a pointer after freeing it.
79043         Check for integer overflow when calculating allocation size.
79044         Use memcpy to copy entries, instead of stpcpy.
79045         Set errno properly when returning NULL.
79046         Check for readdir error.
79047
79048 2000-06-26  Jim Meyering  <meyering@lucent.com>
79049
79050         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79051
79052 2000-06-25  Jim Meyering  <meyering@lucent.com>
79053
79054         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79055         Linux header bug when _XOPEN_SOURCE is defined to 500.
79056
79057 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79058
79059         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79060         deficiency.
79061
79062 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79063
79064         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79065         Include xalloc.h.
79066         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79067
79068 2000-06-24  Jim Meyering  <meyering@lucent.com>
79069
79070         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79071         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79072         for which strerror does return char*, but which lacks a conveniently
79073         accessible declaration of the function.  If the compile-test says
79074         strerror_r doesn't work, then resort to a `run'-test that works on
79075         BeOS and segfaults on DEC Unix.
79076
79077 2000-06-24  Jim Meyering  <meyering@lucent.com>
79078
79079         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79080
79081 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79082
79083         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79084         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79085
79086 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79087
79088         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79089         (mbrtowc, mbstate_t): Define substitutes if
79090         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79091         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79092         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79093
79094 2000-06-23  Jim Meyering  <meyering@lucent.com>
79095
79096         * m4/afs.m4: Add missing AC_MSG_RESULT.
79097         Reported by Bruno Haible.
79098
79099         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79100         Suggestion from Bruno Haible.
79101
79102 2000-06-23  Jim Meyering  <meyering@lucent.com>
79103
79104         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79105
79106 2000-06-21  Jim Meyering  <meyering@lucent.com>
79107
79108         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79109
79110 2000-06-21  Jim Meyering  <meyering@lucent.com>
79111
79112         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79113         (noinst_HEADERS): Add getstr.h.
79114
79115         * lib/getline.c (getstr): Move into a separate file.
79116         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79117         the following changes: new parameter, delim2; both delim[12]
79118         parameters have type `int', not `char'.  The latter would lose
79119         with 8-bit delimiters.
79120         * lib/getstr.h: New file.
79121
79122 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79123
79124         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79125         than 1024, return a memory chunk of least possible size, instead
79126         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79127         Use free/xmalloc instead of xrealloc to avoid copying for very long
79128         paths.
79129
79130 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79131
79132         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79133         the empty string.
79134
79135 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79136
79137         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79138         address, not strdup.  Include <stdlib.h> and don't declare free().
79139
79140 2000-06-19  Jim Meyering  <meyering@lucent.com>
79141
79142         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79143
79144 2000-06-18  Jim Meyering  <meyering@lucent.com>
79145
79146         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79147
79148         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79149         `checking whether...' message to be consistent with that of the
79150         lstat test.
79151
79152 2000-06-18  Jim Meyering  <meyering@lucent.com>
79153
79154         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79155         Besides, these days every porting target provides a mkdir function.
79156
79157         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79158         needed. (this snippet comes from src/system.h).
79159
79160 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79161
79162         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79163
79164 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79165
79166         * lib/human.c (adjust_value): New function.
79167         (human_readable_inexact): Apply rounding style even when
79168         printing approximate values.
79169
79170 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79171
79172         * lib/human.c (human_readable_inexact): Allow an input block
79173         size that is not a multiple of the output block size, and vice versa.
79174         Reported by Piergiorgio Sartor.
79175
79176 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79177
79178         * lib/getdate.y (get_date): Apply relative times after time
79179         zone indicator, not before.  Reported by Todd A. Jacobs.
79180
79181 2000-06-13  Jim Meyering  <meyering@lucent.com>
79182
79183         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79184
79185         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79186
79187 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79188
79189         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79190
79191 2000-06-12  Jim Meyering  <meyering@lucent.com>
79192
79193         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79194         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79195         optional argument.
79196         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79197         the optional argument, `lib'.
79198
79199 2000-06-08  Jim Meyering  <meyering@lucent.com>
79200
79201         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79202
79203 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79204
79205         Rewrite largefile configuration so that we don't need to run
79206         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79207         AC_CANONICAL_HOST in configure.in -- jmm]
79208
79209         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79210         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79211         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79212         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79213         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79214         All uses changed.
79215         Instead of inspecting the output of getconf, try to compile the
79216         test program without and with the macro definition.
79217         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79218         for getconf.  Instead, check for the needed flags by compiling
79219         test programs.
79220
79221 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79222
79223         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79224
79225 2000-06-04  Jim Meyering  <meyering@lucent.com>
79226
79227         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79228         SunOS 4.1.4 for which gid_t is an unsigned type.
79229
79230 2000-06-03  Jim Meyering  <meyering@lucent.com>
79231
79232         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79233         now that autoconf requires that.
79234
79235         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79236         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79237         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79238
79239 2000-06-03  Jim Meyering  <meyering@lucent.com>
79240
79241         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79242
79243 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79244
79245         * m4/glibc21.m4: New file.
79246         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79247
79248 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79249
79250         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79251         newer, don't install charset.alias.
79252         * lib/config.charset: Change the Linux/glibc rules so they become empty
79253         on glibc-2.1 or newer.
79254
79255 2000-06-02  Jim Meyering  <meyering@lucent.com>
79256
79257         * lib/mountlist.c: Back out last change.  Instead, do this...
79258         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79259         me_dummy member using the same `ignore'-testing code.
79260         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79261         fs_type strings.
79262         From Mark D. Roth.
79263
79264 2000-05-29  Jim Meyering  <meyering@lucent.com>
79265
79266         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79267         mounts with the `ignore' attribute.  Based on a patch from
79268         Mark D. Roth.
79269
79270 2000-05-28  Jim Meyering  <meyering@lucent.com>
79271
79272         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79273         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79274         * m4/stat.m4: Likewise.
79275         * m4/lstat.m4: Likewise.
79276         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79277
79278         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79279         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79280
79281 2000-05-26  Jim Meyering  <meyering@lucent.com>
79282
79283         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79284
79285 2000-05-24  Jim Meyering  <meyering@lucent.com>
79286
79287         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79288         autoconf requires that.
79289         * m4/lib-check.m4: Likewise.
79290         * m4/jm-macros.m4: Likewise.
79291         * m4/strftime.m4: Likewise.
79292
79293         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79294         AC_CHECK_DECLS, now that autoconf requires that.
79295
79296 2000-05-22  Jim Meyering  <meyering@lucent.com>
79297
79298         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79299         * m4/lstat.m4: Likewise.
79300
79301 2000-05-22  Jim Meyering  <meyering@lucent.com>
79302
79303         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79304
79305 2000-05-20  Jim Meyering  <meyering@lucent.com>
79306
79307         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79308         (jm_PREREQ): Use it.
79309
79310 2000-05-18  Jim Meyering  <meyering@lucent.com>
79311
79312         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79313         back, too, since it may have been modified by allocate_entry.
79314         (hash_delete): Rewrite to use neither the assignment operator
79315         nor the comma operator in an if-expression.
79316
79317 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79318
79319         * lib/closeout.c:
79320         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79321         Remove; no longer needed.
79322         "quotearg.h": Add include.
79323         (file_name): Do not bother to explicitly initialize to NULL; it's less
79324         efficient on some hosts.
79325         (close_stdout_status): Remove test as to whether stdout was already
79326         closed; it breaks for the case "echo x | sort >&-".
79327         Quote file name colons.
79328         Do not assume that _("write error") lacks format strings.
79329
79330 2000-05-15  Jim Meyering  <meyering@lucent.com>
79331
79332         * lib/version-etc.c (version_etc_copyright): Update the copyright
79333         string used in all --version output.
79334
79335 2000-05-14  Jim Meyering  <meyering@lucent.com>
79336
79337         * lib/closeout.c (close_stdout_set_file_name): New function.
79338         (close_stdout_status): Use new file-scoped global.
79339         Return right away if fstat says the stdout file descriptor is invalid.
79340         * lib/closeout.h (close_stdout_set_file_name): Declare.
79341
79342 2000-05-10  Jim Meyering  <meyering@lucent.com>
79343
79344         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79345         (close_stdout_set_status): New function.
79346         * lib/closeout.h (close_stdout_set_status): Declare.
79347
79348 2000-05-09  Jim Meyering  <meyering@lucent.com>
79349
79350         * m4/gettext.m4: Rename this...
79351         * m4/libintl.m4: ...to this.
79352
79353 2000-05-08  Jim Meyering  <meyering@lucent.com>
79354
79355         * lib/long-options.c: Don't include closeout.h.
79356         (parse_long_options): Don't call close_stdout for --version.
79357
79358 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79359
79360         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79361         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79362         2.1.3 bug.  This avoids a clash when files like regex.c define
79363         _GNU_SOURCE.
79364
79365 2000-05-06  Jim Meyering  <meyering@lucent.com>
79366
79367         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79368         (AC_REPLACE_FUNCS): Add strnlen.
79369
79370         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79371         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79372
79373         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79374         AC_SEARCH_LIBS call for nanosleep.
79375         (LIB_NANOSLEEP): Set and AC_SUBST.
79376
79377 2000-05-06  Jim Meyering  <meyering@lucent.com>
79378
79379         * lib/strnlen.c: Undefine __strnlen and strnlen.
79380         [!weak_alias]: Define __strnlen to strnlen.
79381
79382         * lib/atexit.c: New file, from libiberty.
79383
79384 2000-05-06  Jim Meyering  <meyering@lucent.com>
79385
79386         * lib/closeout.c (close_stdout_status): Also check for errors on the
79387         stderr stream.
79388
79389 2000-05-05  Jim Meyering  <meyering@lucent.com>
79390
79391         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79392         AC_SEARCH_LIBS call for clock_gettime.
79393         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79394
79395         * m4/search-libs.m4: Update from autoconf.
79396
79397         su doesn't work on Solaris 2.6.
79398         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79399         <shadow.h>.  Reported by Dragos Harabor.
79400
79401 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79402
79403         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79404         memcpy instead of xmalloc, xrealloc, path_concat.
79405         (locale_charset): Treat empty environment variables as absent.
79406         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79407
79408 2000-05-04  Jim Meyering  <meyering@lucent.com>
79409
79410         * lib/getopt.c: Update from glibc.
79411         * lib/obstack.c: Likewise.
79412         * lib/obstack.h: Likewise.
79413         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79414         file
79415
79416         * lib/regex.h: Likewise.
79417         * lib/strndup.c: Likewise.
79418         * lib/strnlen.c: New file, from glibc.
79419
79420 2000-05-03  Jim Meyering  <meyering@lucent.com>
79421
79422         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79423
79424 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79425
79426         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79427         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79428         compile-time test, rather than inspecting host and OS, to
79429         decide whether to define _LARGEFILE_SOURCE.
79430
79431 2000-05-01  Jim Meyering  <meyering@lucent.com>
79432
79433         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79434
79435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79436         Based on a patch from Bruno Haible.
79437
79438 2000-05-01  Jim Meyering  <meyering@lucent.com>
79439
79440         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79441
79442 2000-04-29  Jim Meyering  <meyering@lucent.com>
79443
79444         * lib/path-concat.c: Declare strdup only if it's not defined.
79445         * lib/canon-host.c: Likewise.
79446
79447 2000-04-28  Jim Meyering  <meyering@lucent.com>
79448
79449         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79450         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79451         is included first, then limits.h is included by locale.h by libintl.h.
79452         From John David Anglin.
79453
79454 2000-04-25  Jim Meyering  <meyering@lucent.com>
79455
79456         * lib/makepath.c (S_IRWXUGO): Define.
79457         (make_path): Always perform explicit chmod if MODE specifies any
79458         of the `special' permission bits.  Prompted by a bug report against
79459         install from Mate Wierdl and Joost van Baal.
79460
79461 2000-04-18  Jim Meyering  <meyering@lucent.com>
79462
79463         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79464         (jm_PREREQ): Use it.
79465
79466 2000-04-18  Jim Meyering  <meyering@lucent.com>
79467
79468         * lib/README: New file.
79469
79470         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79471         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79472
79473 2000-04-17  Jim Meyering  <meyering@lucent.com>
79474
79475         Get it right :-)
79476         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79477         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79478         Suggestion from Akim Demaille.
79479
79480 2000-04-17  Jim Meyering  <meyering@lucent.com>
79481
79482         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79483         the definition of it to rpl_strftime also defined-away the system's
79484         declaration.
79485
79486 2000-04-15  Jim Meyering  <meyering@lucent.com>
79487
79488         Use `C' to denote so-called `contiguous' files, the same way
79489         that tar does.
79490         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79491         (ftypelet): Use S_ISCTG.
79492         From Michael Deutschmann.
79493
79494 2000-04-14  Jim Meyering  <meyering@lucent.com>
79495
79496         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79497         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79498         clobbered.
79499
79500 2000-04-14  Jim Meyering  <meyering@lucent.com>
79501
79502         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79503
79504 2000-04-13  Jim Meyering  <meyering@lucent.com>
79505
79506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79507         AH_VERBATIM to insert required #ifndef into config.h.in.
79508         Suggestion from Akim Demaille.
79509
79510 2000-04-12  Jim Meyering  <meyering@lucent.com>
79511
79512         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79513         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79514         Christian Krackowizer.
79515
79516         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79517         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79518         (AC_SYS_LARGEFILE): Require.
79519         (AM_C_PROTOTYPES): Require.
79520
79521 2000-04-08  Jim Meyering  <meyering@lucent.com>
79522
79523         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79524         names don't conflict.  Reported by Eli Zaretskii.
79525
79526 2000-04-07  Jim Meyering  <meyering@lucent.com>
79527
79528         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79529         sys/types.h, to work around system header problems on AIX 3.2.5.
79530         From Bruno Haible.
79531
79532 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79533
79534         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79535         bug.  Deal with the different error behavior of Irix iconv.
79536
79537 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79538
79539         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79540         IRIX if the installer said otherwise.
79541
79542 2000-04-05  Jim Meyering  <meyering@lucent.com>
79543
79544         Portability tweaks required for ultrix4.3.
79545         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79546         (jm_CHECK_DECLS): Add getutent to the list of functions.
79547         (_jm_DECL_HEADERS): Add utmpx.h.
79548         From John David Anglin.
79549
79550         * m4/strftime.m4: Back out the 2000-04-02 change.
79551         Instead of that change, simply undefine putenv in the test program.
79552
79553 2000-04-05  Jim Meyering  <meyering@lucent.com>
79554
79555         Portability tweaks required for ultrix4.3.
79556         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79557         getutent.
79558         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79559         * lib/canon-host.c: Declare strdup.
79560         * lib/path-concat.c: Likewise.
79561         From John David Anglin.
79562
79563 2000-04-04  Jim Meyering  <meyering@lucent.com>
79564
79565         Be more DOS 8.3-friendly.
79566         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79567         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79568         * lib/Makefile.am: Reflect renaming.
79569         Reported by Eli Zaretskii.
79570
79571         Use a temporary file name that won't clash with `charset.alias'
79572         in the DOS 8.3 name space.
79573         * lib/Makefile.am (charset_tmp): Define.
79574         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79575         (uninstall-local): Likewise.
79576         Reported by Eli Zaretskii.
79577
79578 2000-04-03  Jim Meyering  <meyering@lucent.com>
79579
79580         * m4/gettext.m4: Fix typo in comment.
79581
79582         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79583         textutils/configure.in).  Suggestion from Paul Eggert.
79584         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79585
79586 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79587
79588         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79589         variable in the shell rather than using putenv, which isn't
79590         portable.  This avoids the configure-time inter-test dependency
79591         on the potentially-renamed putenv function.
79592
79593 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79594
79595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79596         before checking struct stat.st_blksize, so that
79597         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79598
79599 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79600
79601         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79602         since strftime.c uses HAVE_STRFTIME to decide whether to use
79603         the underlying strftime.
79604
79605 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79606
79607         * lib/time/strftime.c (my_strftime): Make sure we call the system
79608         strftime, not ourselves, when invoking the underlying strftime.
79609
79610 2000-03-24  Jim Meyering  <meyering@lucent.com>
79611
79612         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79613         (charset_alias): Define.
79614         (install-exec-local): Factor out common code.
79615         (uninstall-local): Split lines longer than 80.
79616         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79617         (SUFFIXES): Define.
79618         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79619         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79620
79621 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79622
79623         * lib/config.charset: Output a line containing "Packages using this
79624         file".
79625         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79626         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79627         ref-del.sed): New rules.
79628
79629 2000-03-17  Jim Meyering  <meyering@lucent.com>
79630
79631         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79632         Otherwise, include <strings.h>
79633
79634 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79635
79636         * lib/unicodeio.c (utf8_wctomb): New function.
79637         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79638         format instead of in UCS-4 with platform dependent endianness.
79639
79640 2000-03-10  Jim Meyering  <meyering@lucent.com>
79641
79642         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79643         From Marco Franzen.
79644
79645 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79646
79647         * lib/savedir.c (savedir): Work even if directory size is
79648         negative; this can happen with some screwy NFS configurations.
79649
79650 2000-03-06  Jim Meyering  <meyering@lucent.com>
79651
79652         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79653         if it's NULL (because we ran out of memory).  From Bruno Haible.
79654
79655 2000-03-05  Jim Meyering  <meyering@lucent.com>
79656
79657         * lib/localcharset.c ("path-concat.h"): Include.
79658         (get_charset_aliases): Use path_concat instead of ANSI string
79659         concatenation.
79660
79661         * lib/unicodeio.h (PARAMS): Define.
79662         Use it to guard prototype.
79663
79664 2000-03-04  Jim Meyering  <meyering@lucent.com>
79665
79666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79667         for lib/localcharset.c.
79668
79669 2000-03-04  Jim Meyering  <meyering@lucent.com>
79670
79671         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79672         installing into it.
79673         (uninstall-local): Uncomment this rule so `make distcheck' works
79674         once again.
79675
79676         * lib/unicodeio.c (<errno.h>): Include it.
79677         (errno): Declare if not defined.
79678
79679         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79680
79681         * lib/config.charset: New version, incorporating remarks from a linux
79682         i18n mailing list.  From Bruno Haible.
79683
79684 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79685
79686         * m4/codeset.m4: New file.
79687         * m4/iconv.m4: New file.
79688         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79689
79690 2000-03-03  Jim Meyering  <meyering@lucent.com>
79691
79692         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79693
79694 2000-03-02  Jim Meyering  <meyering@lucent.com>
79695
79696         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79697         the messages come out on separate lines.
79698
79699         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79700         rather than jm_CHECK_DECLARATIONS.
79701         * m4/decl.m4: Remove now-unused file.
79702
79703         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79704         geteuid.
79705
79706 2000-03-02  Jim Meyering  <meyering@lucent.com>
79707
79708         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79709
79710 2000-03-01  Jim Meyering  <meyering@lucent.com>
79711
79712         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79713         * lib/unicodeio.c: Likewise.
79714
79715 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79716
79717         * lib/config.charset: New file.
79718         * lib/localcharset.c: New file.
79719         * lib/unicodeio.h, lib/unicodeio.c: New files.
79720         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79721         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79722         (noinst_HEADERS): Add unicodeio.h.
79723         (all-local, install-exec-local, charset.alias): New targets.
79724
79725 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79726
79727         * lib/quotearg.c (ALERT_CHAR): New macro.
79728         (quotearg_buffer_restyled): Use it.
79729
79730 2000-02-27  Jim Meyering  <meyering@lucent.com>
79731
79732         * m4/check-decl.m4: Add getenv to the list.
79733
79734 2000-02-27  Jim Meyering  <meyering@lucent.com>
79735
79736         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79737         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79738
79739         * lib/backupfile.c: Guard inclusion of stdlib.h with
79740         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79741         Declare malloc if needed.
79742
79743         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79744         `#ifndef HAVE_DECL..'
79745         now that autoconf always defines the HAVE_DECL_ symbols.
79746         * lib/human.c: Likewise.
79747         * lib/same.c: Likewise.
79748         * lib/strtoumax.c: Likewise.
79749
79750         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79751         declaration check was not run.
79752         * lib/hash.c: Likewise.
79753         * lib/human.c: Likewise.
79754         * lib/same.c: Likewise.
79755         * lib/strtoumax.c: Likewise.
79756
79757         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79758         `.', then first look up the entire `.'-containing string as a login
79759         name.
79760
79761 2000-02-23  Jim Meyering  <meyering@lucent.com>
79762
79763         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79764         in place of my hack.
79765
79766 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79767
79768         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79769         (textint): New typedef.
79770         (parser_control): Member year changed from int to textint.
79771         All uses changed.
79772         (YYSTYPE): Removed; replaced by %union with int and textint members.
79773         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79774         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79775         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79776         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79777         (date, number, to_year): Use width of number in digits, not its value,
79778         to determine whether it's a 2-digit year, or a 2-digit time.
79779         (yylex): Store number of digits of numeric tokens.
79780         Reported by John Kendall.
79781
79782         (parser_control): Changed from struct parser_control to typedef (for
79783         consistency).  All uses changed.
79784
79785         (tID): Removed; not used.
79786         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79787
79788 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79789
79790         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79791         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79792
79793 2000-02-12  Jim Meyering  <meyering@lucent.com>
79794
79795         * lib/userspec.c (ISDIGIT): Define it.
79796         (isdigit): Remove definition.
79797         (is_number): Use ISDIGIT, not isdigit.
79798         <libintl.h>: Include.
79799         (_ and N_): Define.
79800         (parse_user_spec): Mark translatable strings.
79801
79802 2000-02-10  Jim Meyering  <meyering@lucent.com>
79803
79804         With these changes, nanosleep.[ch] are finally enough like the other
79805         lib/* replacement files to compile on a few more losing systems.
79806
79807         * lib/nanosleep.h: Don't include config.h.
79808         Remove prototype from declaration of nanosleep.
79809         (PARAMS): Remove now-unneeded definition.
79810         * lib/nanosleep.c: #undef nanosleep.
79811         (rpl_nanosleep): Rename from nanosleep.
79812
79813 2000-02-10  Jim Meyering  <meyering@lucent.com>
79814
79815         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79816         gnu_nanosleep to rpl_nanosleep.
79817
79818 2000-02-09  Jim Meyering  <meyering@lucent.com>
79819
79820         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79821         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79822
79823 2000-02-08  Akim Demaille  <akim@epita.fr>
79824
79825         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79826         `[' and `]' and remove uses of `changequote'.
79827         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79828         (AC_SYS_LARGEFILE): Likewise.
79829         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79830         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79831         of changequote.
79832         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79833         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79834         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79835         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79836
79837 2000-02-05  Jim Meyering  <meyering@lucent.com>
79838
79839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79840         Remove explicit use of AC_HEADER_TIME.  It is required by
79841         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79842         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79843         in autoconf whereby the expansion of the latter ended up preceding
79844         the expansion of its prerequisite, AC_HEADER_TIME.
79845         Reported by Volker Borchert.
79846
79847 2000-02-03  Jim Meyering  <meyering@lucent.com>
79848
79849         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79850
79851 2000-02-03  Jim Meyering  <meyering@lucent.com>
79852
79853         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79854         rather than with `#if HAVE_UTMPNAME'.
79855
79856 2000-02-02  Jim Meyering  <meyering@lucent.com>
79857
79858         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79859         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79860         Reported by Eli Zaretskii.
79861
79862 2000-02-01  Jim Meyering  <meyering@lucent.com>
79863
79864         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79865
79866 2000-01-31  Jim Meyering  <meyering@lucent.com>
79867
79868         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79869         functions.  Add the time.h and sys/time.h headers along with the
79870         AC_REQUIRE'ment of AC_HEADER_TIME.
79871
79872 2000-01-31  Jim Meyering  <meyering@lucent.com>
79873
79874         * lib/nanosleep.h (nanosleep): Guard declaration with
79875         `#if ! HAVE_DECL_NANOSLEEP'.
79876         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79877         the declaration in that vendor's sys/timers.h.
79878         Reported by Christian Krackowizer.
79879
79880         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79881         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79882         (ISPRINT): Likewise.
79883         Reported by Tom Tromey.
79884
79885 2000-01-30  Jim Meyering  <meyering@lucent.com>
79886
79887         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79888
79889         * m4/prereq.m4 (utmp_includes): Define.
79890         Check for ut_user and ut_name members in both struct utmpx
79891         and struct utmp.
79892
79893 2000-01-30  Jim Meyering  <meyering@lucent.com>
79894
79895         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79896         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79897         header files where only utmpx.ut_user is declared.
79898
79899         * lib/readutmp.h (UT_USER): Define.
79900
79901 2000-01-29  Jim Meyering  <meyering@lucent.com>
79902
79903         * m4/lib-check.m4: New file containing library-related checks from
79904         fileutils and sh-utils (textutils had none).
79905
79906 2000-01-28  Jim Meyering  <meyering@lucent.com>
79907
79908         * m4/perl.m4: Change format of warning message to look more like that
79909         from the missing script.  Suggestion from François Pinard.
79910
79911 2000-01-25  Jim Meyering  <meyering@lucent.com>
79912
79913         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79914         well as time.h in the compile check.
79915         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79916         Fix typo in cross-compiling case: s/yes/no/.
79917
79918 2000-01-23  Jim Meyering  <meyering@lucent.com>
79919
79920         * m4/jm-macros.m4: Move df-related tests here from
79921         fileutils/configure.in
79922
79923         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79924         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79925
79926         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79927         s/space/ac_fsusage_space/.
79928         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79929
79930         * m4/ftruncate.m4: New file (derived from part of
79931         fileutils/configure.in).
79932         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79933         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79934
79935         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79936         AC_SUBST these here, rather than just in sh-util/configure.in, so
79937         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79938         all the same.
79939         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79940         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79941         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79942         (AC_SUBST(POW_LIBM)): Likewise.
79943         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79944
79945 2000-01-23  Jim Meyering  <meyering@lucent.com>
79946
79947         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79948         obstack.c.
79949
79950 2000-01-22  Jim Meyering  <meyering@lucent.com>
79951
79952         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79953
79954         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79955
79956         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79957         configure.in
79958         (AC_CHECK_HEADERS): Likewise for sh-utils.
79959         (AC_CHECK_HEADERS): Likewise for textutils.
79960         Merge the three lists of headers.
79961
79962         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79963         from fileutils' configure.in.
79964
79965         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79966         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79967         check-decl.m4.
79968
79969         * m4/check-decl.m4: Use #if rather than #ifdef.
79970         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79971         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79972         (_jm_DECL_HEADERS): Define new function.
79973         (jm_CHECK_DECLARATIONS): Require it.
79974
79975 2000-01-22  Jim Meyering  <meyering@lucent.com>
79976
79977         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79978         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79979         Required for some AIX systems.  Reported by Christian Krackowizer.
79980         [TESTING] (main): New function.
79981
79982         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79983         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79984         letters.
79985
79986         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79987         iswprint.
79988
79989         * lib/strverscmp.c (ISDIGIT): Define.
79990         (strverscmp): Use ISDIGIT, not isdigit.
79991
79992 2000-01-19  Jim Meyering  <meyering@lucent.com>
79993
79994         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79995         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79996         defines `struct timespec' in <sys/time.h>
79997
79998         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79999         Thanks to Akim for explaining.
80000
80001 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80002
80003         * lib/nanosleep.c (nanosleep):
80004         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80005         POSIX.1 doesn't require SA_INTERRUPT and some systems
80006         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80007         it's been part of POSIX.1 since day 1 (in 1988).
80008
80009 2000-01-17  Jim Meyering  <meyering@lucent.com>
80010
80011         * lib/interlock: Remove unused file.  Reported by François Pinard.
80012
80013 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80014
80015         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80016         alert, backslash, formfeed, and vertical tab unnecessarily in
80017         shell quoting style.
80018
80019 2000-01-16  Jim Meyering  <meyering@lucent.com>
80020
80021         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80022         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80023         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80024         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80025
80026 2000-01-16  Jim Meyering  <meyering@lucent.com>
80027
80028         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80029         because the latter didn't work.
80030
80031 2000-01-15  Jim Meyering  <meyering@lucent.com>
80032
80033         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80034         (AC_REPLACE_FUNCS): Add memcpy and memset.
80035         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80036         Add strpbrk.
80037         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80038
80039 2000-01-12  Jim Meyering  <meyering@lucent.com>
80040
80041         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80042         (jm_PREREQ): Use it.
80043         (jm_PREREQ_READUTMP): New macro.
80044         (jm_PREREQ): Use it.
80045
80046 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80047
80048         Quote multibyte characters correctly.
80049         * m4/c-bs-a.m4: New file.
80050         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80051         (jm_PREREQ): Use it.
80052
80053 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80054
80055         * m4/uintmax_t.m4: Port to autoconf 2.13.
80056
80057 2000-01-08  Jim Meyering  <meyering@ascend.com>
80058
80059         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80060         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80061
80062 2000-01-04  Jim Meyering  <meyering@ascend.com>
80063
80064         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80065         jm_STRUCT_DIRENT_D_TYPE.
80066         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80067         jm_STRUCT_DIRENT_D_INO.
80068         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80069         jm_STRUCT_UTIMBUF.
80070         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80071         renamings.
80072         * m4/utime.m4: Likewise.
80073
80074         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80075         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80076
80077 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80078
80079         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80080         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80081
80082 2000-01-02  Jim Meyering  <meyering@ascend.com>
80083
80084         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80085         remember if this is necessary.
80086
80087 1999-12-26  Jim Meyering  <meyering@ascend.com>
80088
80089         * m4/jm-macros.m4: Use it here.
80090         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80091
80092 1999-12-23  Jim Meyering  <meyering@ascend.com>
80093
80094         * m4/jm-macros.m4: Check for clock_gettime (moved from
80095         fileutils/configure.in)
80096         Check for gettimeofday.
80097
80098 1999-12-20  Jim Meyering  <meyering@ascend.com>
80099
80100         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80101         autoconf-2.14a-1999-12-20.
80102
80103 1999-12-19  Jim Meyering  <meyering@ascend.com>
80104
80105         * m4/lstat-slash.m4: New file.
80106         * m4/jm-macros.m4: Use the new macro:
80107         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80108
80109 1999-12-07  Jim Meyering  <meyering@ascend.com>
80110
80111         * m4/perl.m4: Require that File::Compare be available, too.
80112         Too many systems seem to lack it.
80113
80114         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80115         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80116
80117 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80118
80119         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80120         problem with the QNX 4.25 shell, which doesn't propagate exit
80121         status of failed commands inside shell assignments.
80122
80123 1999-11-17  Jim Meyering  <meyering@ascend.com>
80124
80125         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80126
80127 1999-11-07  Jim Meyering  <meyering@ascend.com>
80128
80129         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80130
80131 1999-11-06  Jim Meyering  <meyering@ascend.com>
80132
80133         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80134         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80135
80136 1999-11-05  Jim Meyering  <meyering@ascend.com>
80137
80138         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80139         configure.in of textutils, fileutils, and sh-utils into this one
80140         (shared between those packages) file.
80141         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80142         AC_STRUCT_ST_BLKSIZE.
80143
80144 1999-11-03  Jim Meyering  <meyering@ascend.com>
80145
80146         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80147         of AC_CHECK_TYPE checks includes unistd.h.
80148         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80149         Suggestion from Akim Demaille.
80150
80151 1999-10-30  Jim Meyering  <meyering@ascend.com>
80152
80153         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80154         m4-quoted string.
80155         * m4/ls-mntd-fs.m4: Likewise.
80156         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80157         * m4/jm-winsz1.m4: Likewise.
80158
80159         * m4/const.m4: Remove file, since the fix made it into the experimental
80160         version of autoconf.
80161         * m4/mktime.m4: Likewise.
80162
80163         * m4/check-type.m4: Remove file, now that the latest version of
80164         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80165
80166         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80167         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80168         AC_CHECK_TYPE.
80169
80170 1999-10-04  Jim Meyering  <meyering@ascend.com>
80171
80172         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80173
80174 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80175
80176         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80177         2.95.1 bug with HP-UX 10.20.
80178
80179 1999-09-17  Jim Meyering  <meyering@ascend.com>
80180
80181         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80182         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80183         due to missing strdup (against sh-utils-2.0).
80184
80185 1999-08-29  Jim Meyering  <meyering@ascend.com>
80186
80187         * m4/jm-macros.m4: Require jm_BISON.
80188         * m4/bison.m4: New file.
80189
80190 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80191
80192         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80193         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80194
80195 1999-08-05  Jim Meyering  <meyering@ascend.com>
80196
80197         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80198         to avoid conflicts with `conftest' on 8+3 filesystems.
80199         Suggestion from Eli Zaretskii.
80200
80201 1999-08-04  Jim Meyering  <meyering@ascend.com>
80202
80203         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80204         fileutils and sh-utils (textutils's getline test was inadequate).
80205         (AM_FUNC_GETLINE): Run this test.
80206         (AC_CHECK_FUNCS): Check for getdelim.
80207         Reported by Bob Proulx.
80208
80209 1999-08-02  Jim Meyering  <meyering@ascend.com>
80210
80211         * m4/jm-macros.m4: Add a comment.
80212
80213 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80214
80215         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80216         <inttypes.h> defines strtoumax as a macro (and not as a
80217         function).
80218
80219 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80220
80221         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80222         that we can shift, multiply and divide unsigned long long
80223         values; Ultrix cc can't do it.
80224
80225 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80226
80227         * m4/mktime.m4: New file, which is a preview of what should appear
80228         in the next public autoconf release.
80229
80230 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80231
80232         * m4/lfs.m4: Remove this file.
80233         * m4/largefile.m4: New file.  It contains the old contents of
80234         lfs.m4, except that all names with prefix AC_LFS have been
80235         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80236         compatible with future autoconf versions.  Also, some minor m4
80237         quoting problems have been fixed.
80238
80239 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80240
80241         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80242         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80243         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80244         and simplify the shell code.
80245
80246 1999-08-01  Jim Meyering  <meyering@ascend.com>
80247
80248         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80249         m4.
80250
80251 1999-07-20  Jim Meyering  <meyering@ascend.com>
80252
80253         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80254
80255 1999-07-15  Jim Meyering  <meyering@ascend.com>
80256
80257         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80258
80259 1999-05-22  Jim Meyering  <meyering@ascend.com>
80260
80261         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80262
80263 1999-05-20  Jim Meyering  <meyering@ascend.com>
80264
80265         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80266         Add a colon after each `then' in case $4 is empty.
80267
80268 1999-05-16  Jim Meyering  <meyering@ascend.com>
80269
80270         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80271
80272 1999-05-10  Jim Meyering  <meyering@ascend.com>
80273
80274         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80275
80276         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80277         AC_FUNC_MKTIME.
80278
80279 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80280
80281         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80282
80283 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80284
80285         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80286         not CPPFLAGS, so that linking works correctly in IRIX.
80287
80288 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80289
80290         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80291
80292 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80293
80294         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80295         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80296         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80297         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80298         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80299
80300         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80301
80302 1999-04-20  Jim Meyering  <meyering@ascend.com>
80303
80304         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80305         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80306         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80307
80308 1999-04-18  Jim Meyering  <meyering@ascend.com>
80309
80310         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80311         * m4/jm-macros.m4: Use it.
80312
80313 1999-04-06  Jim Meyering  <meyering@ascend.com>
80314
80315         * m4/strftime.m4: Remove test for %f.
80316
80317 1999-03-29  Jim Meyering  <meyering@ascend.com>
80318
80319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80320         superset of the AC_TYPE_* checks in the textutils, fileutils,
80321         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80322         AC_TYPE_PID_T.
80323
80324 1999-03-28  Jim Meyering  <meyering@ascend.com>
80325
80326         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80327         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80328         replaced e.g., in the *.sh files of the sh-utils.
80329
80330 1999-03-20  Jim Meyering  <meyering@ascend.com>
80331
80332         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80333         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80334         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80335
80336 1999-03-19  Jim Meyering  <meyering@ascend.com>
80337
80338         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80339
80340 1999-03-12  Jim Meyering  <meyering@ascend.com>
80341
80342         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80343
80344 1999-03-07  Jim Meyering  <meyering@ascend.com>
80345
80346         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80347         declared.
80348
80349 1999-02-17  Jim Meyering  <meyering@ascend.com>
80350
80351         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80352         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80353
80354 1999-02-07  Jim Meyering  <meyering@ascend.com>
80355
80356         * m4/group-member.m4: New file -- extracted from sh-utils'
80357         configure.in.
80358
80359         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80360         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80361
80362 1999-02-06  Jim Meyering  <meyering@ascend.com>
80363
80364         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80365         * m4/fnmatch.m4: Likewise.
80366         * m4/getgroups.m4: Likewise.
80367         * m4/lstat.m4: Likewise.
80368         * m4/malloc.m4: Likewise.
80369         * m4/putenv.m4: Likewise.
80370         * m4/realloc.m4: Likewise.
80371         * m4/regex.m4: Likewise.
80372         * m4/stat.m4: Likewise.
80373         * m4/strftime.m4: Likewise.
80374         Suggestion from Alain Magloire.
80375
80376         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80377         * m4/fnmatch.m4: Likewise.
80378         * m4/getgroups.m4: Likewise.
80379         * m4/getline.m4: Likewise.
80380         * m4/lstat.m4: Likewise.
80381         * m4/malloc.m4: Likewise.
80382         * m4/memcmp.m4: Likewise.
80383         * m4/putenv.m4: Likewise.
80384         * m4/realloc.m4: Likewise.
80385         * m4/regex.m4: Likewise.
80386         * m4/stat.m4: Likewise.
80387         * m4/strftime.m4: Likewise.
80388         Suggestion from Alain Magloire.
80389
80390         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80391         an argument.
80392
80393         * m4/regex.m4: Add a run-time Test for proper operation of
80394         re_compile_pattern.
80395
80396 1999-01-31  Jim Meyering  <meyering@ascend.com>
80397
80398         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80399
80400 1999-01-30  Jim Meyering  <meyering@ascend.com>
80401
80402         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80403
80404         * m4/jm-mktime.m4: Make this a wrapper around the official
80405         AM_FUNC_MKTIME rather than my private copy, now that the official one
80406         is up to date.
80407         * m4/mktime.m4: Remove file.
80408
80409         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80410         * m4/uptime.m4: Likewise.
80411         * m4/uintmax_t.m4: Likewise.
80412
80413 1999-01-28  Jim Meyering  <meyering@ascend.com>
80414
80415         * m4/jm-macros.m4: Use jm_AFS.
80416         * m4/afs.m4: New file (from fileutils' configure.in).
80417
80418         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80419         * m4/chown.m4: Likewise.
80420         * m4/d-ino.m4: Likewise.
80421         * m4/d-type.m4: Likewise.
80422         * m4/fnmatch.m4: Likewise.
80423         * m4/getgroups.m4: Likewise.
80424         * m4/gettext.m4: Likewise.
80425         * m4/jm-mktime.m4: Likewise.
80426         * m4/jm-winsz2.m4: Likewise.
80427         * m4/lcmessage.m4: Likewise.
80428         * m4/ls-mntd-fs.m4: Likewise.
80429         * m4/malloc.m4: Likewise.
80430         * m4/memcmp.m4: Likewise.
80431         * m4/putenv.m4: Likewise.
80432         * m4/realloc.m4: Likewise.
80433         * m4/st_mtim.m4: Likewise.
80434         * m4/strftime.m4: Likewise.
80435
80436 1999-01-16  Jim Meyering  <meyering@ascend.com>
80437
80438         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80439         (ARGMATCH_DIE_DECL): Define.
80440
80441 1999-01-12  Jim Meyering  <meyering@ascend.com>
80442
80443         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80444         Reported by Lars Hecking.
80445
80446 1999-01-10  Jim Meyering  <meyering@ascend.com>
80447
80448         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80449         gross kludge.
80450         * m4/inttypes_h.m4: Likewise.
80451         * m4/lstat.m4: Likewise.
80452         * m4/malloc.m4: Likewise.
80453         * m4/readdir.m4: Likewise.
80454         * m4/realloc.m4: Likewise.
80455         * m4/st_dm_mode.m4: Likewise.
80456         * m4/stat.m4: Likewise.
80457         * m4/utimbuf.m4: Likewise.
80458         * m4/utimes.m4: Likewise.
80459
80460         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80461         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80462         comments in config.h.in are meaningful.
80463
80464         * m4/jm-macros.m4: Require autoconf-2.13 here.
80465
80466         * m4/regex.m4: By default, don't use the included regex.c on systems
80467         with glibc 2.  Suggestion from Uli Drepper.
80468
80469 1999-01-02  Jim Meyering  <meyering@ascend.com>
80470
80471         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80472
80473 1998-12-18  Jim Meyering  <meyering@ascend.com>
80474
80475         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80476         Based on a suggestion from Lars Hecking.
80477
80478 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80479
80480         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80481
80482 1998-11-16  Jim Meyering  <meyering@ascend.com>
80483
80484         * m4/lfs.m4: Double-quote the `uname...` expression.
80485
80486 1998-11-14  Jim Meyering  <meyering@ascend.com>
80487
80488         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80489         * m4/stat.m4: Likewise.
80490
80491 1998-11-03  Jim Meyering  <meyering@ascend.com>
80492
80493         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80494         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80495
80496 1998-10-18  Jim Meyering  <meyering@ascend.com>
80497
80498         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80499
80500 1998-10-17  Jim Meyering  <meyering@ascend.com>
80501
80502         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80503         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80504         calls for those previously hard-coded headers.  Instead, take a new
80505         parameter.
80506         (jm_CHECK_DECLARATIONS): Reflect interface change.
80507         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80508         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80509
80510         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80511
80512 1998-10-14  Jim Meyering  <meyering@ascend.com>
80513
80514         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80515         instead of "TZ=America/Vancouver".  From Paul Eggert.
80516
80517 1998-10-11  Jim Meyering  <meyering@ascend.com>
80518
80519         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80520         This adds a test for a recently added compatibility fix for mktime.c.
80521         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80522
80523 1998-09-27  Jim Meyering  <meyering@ascend.com>
80524
80525         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80526
80527         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80528         ../configure.in, including a change from Gordon Matzigkeit to allow
80529         cross-compiling for the Hurd.
80530
80531         * m4/glibc.m4: New file/macro to test for the GNU C Library
80532         versions 1 and 2.  From Gordon Matzigkeit.
80533         Indent.
80534
80535 1998-09-21  Jim Meyering  <meyering@ascend.com>
80536
80537         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80538
80539 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80540
80541         Port nanosecond-resolution times to UnixWare 2.1.2 and
80542         pedantic Solaris 2.6.
80543
80544         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80545         AC_STRUCT_ST_MTIM.
80546         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80547         Generate name of ns member, instead of just 1 or undef.
80548         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80549
80550 1998-08-15  Jim Meyering  <meyering@ascend.com>
80551
80552         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80553         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80554         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80555         instead of jm_TYPE_SSIZE_T.
80556
80557 1998-08-12  Jim Meyering  <meyering@ascend.com>
80558
80559         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80560
80561 1998-08-02  Jim Meyering  <meyering@ascend.com>
80562
80563         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80564         in acconfig.h manually.
80565
80566 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80567
80568         * m4/st_mtim.m4: New file.
80569
80570 1998-07-28  Jim Meyering  <meyering@ascend.com>
80571
80572         * m4/utimes.m4: Undef stat.
80573
80574 1998-07-25  Jim Meyering  <meyering@ascend.com>
80575
80576         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80577         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80578
80579 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80580
80581         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80582         uid and gid actually remain unchanged.
80583
80584 1998-07-07  Jim Meyering  <meyering@ascend.com>
80585
80586         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80587
80588 1998-07-04  Jim Meyering  <meyering@ascend.com>
80589
80590         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80591         to prove that this macro can be used in packages without regex.c.
80592
80593 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80594
80595         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80596         is to be used.
80597
80598 1998-07-03  Jim Meyering  <meyering@ascend.com>
80599
80600         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80601
80602         * m4/gettext.m4: New file -- from gettext-0.10.35.
80603         * m4/lcmessage.m4: Likewise.
80604         * m4/progtest.m4: Likewise.
80605
80606         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80607         * m4/jm-macros.m4: Require the new macro.
80608
80609 1998-06-29  Jim Meyering  <meyering@ascend.com>
80610
80611         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80612         for the definition of NGROUPS (used in a system header included
80613         by sys/mount.h).
80614
80615 1998-06-28  Jim Meyering  <meyering@ascend.com>
80616
80617         * m4/ls-mntd-fs.m4: New file.
80618         * m4/fstypename.m4: New file.
80619
80620         * m4/jm-macros.m4: Require the new macro.
80621         * m4/jm-glibc-io.m4: New file.
80622
80623 1998-05-19  Jim Meyering  <meyering@ascend.com>
80624
80625         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80626         * m4/lchown.m4: New file.
80627
80628         * m4/Makefile.am.in: New file.
80629         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80630
80631 1998-05-14  Jim Meyering  <meyering@ascend.com>
80632
80633         * m4/Makefile.am (EXTRA_DIST): Add them.
80634         * m4/jm-macros.m4: New file.
80635         * m4/utimbuf.m4: New file.
80636
80637 1998-05-12  Jim Meyering  <meyering@ascend.com>
80638
80639         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80640
80641 1998-05-11  Jim Meyering  <meyering@ascend.com>
80642
80643         * m4/isc-posix.m4: New file.
80644
80645 1998-05-10  Jim Meyering  <meyering@ascend.com>
80646
80647         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80648
80649 1998-05-09  Jim Meyering  <meyering@ascend.com>
80650
80651         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80652         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80653         with automake.
80654
80655         * m4/ssize_t.m4: New file.
80656         * m4/mktime.m4: Remove file -- the new automake has this now.
80657
80658 1998-04-26  Jim Meyering  <meyering@ascend.com>
80659
80660         * m4/assert.m4: New file.
80661         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80662
80663 1998-04-05  Jim Meyering  <meyering@ascend.com>
80664
80665         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80666         (jm_PREREQ): Use it here.
80667
80668 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80669
80670         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80671         in acconfig.h.
80672
80673 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80674
80675         * m4/prereq.m4: New file.
80676         * m4/error.m4: New file.
80677         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80678
80679 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80680
80681         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80682         cache-check for the same variable -- that defeated the purpose of
80683         the test; the test program was never run.  This was a problem only
80684         on systems with losing getline functions -- HP-UX 10.20 is one.
80685         Reported by Bjorn Helgaas.
80686
80687 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80688
80689         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80690
80691 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80692
80693         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80694
80695         * m4/const.m4: New file.  Use an initializer in this declaration
80696         typedef int charset[2]; const charset x;
80697         Reported by Bob Glickstein.
80698
80699 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80700
80701         * m4/chown.m4: Fix reversed types on -1 args to chown.
80702         From Kaveh Ghazi.
80703
80704 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80705
80706         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80707         Add lseek and memchr.
80708
80709         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80710         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80711         have a 20-character limit on names.
80712
80713 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80714
80715         * m4/inttypes_h.m4: New file.
80716         * m4/uintmax_t.m4: New file.
80717         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80718
80719
80720         -----
80721
80722         Local Variables:
80723         coding: utf-8
80724         End:
80725
80726         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80727
80728         Copying and distribution of this file, with or without
80729         modification, are permitted provided the copyright notice
80730         and this notice are preserved.