f030e93a005580cad7b416e4a25d0bf618388313
[gnulib.git] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         atexit: Move AC_LIBOBJ invocations to module description.
4         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6         here...
7         * modules/atexit (configure.ac): ... to here.
8
9 2011-05-05  Bruno Haible  <bruno@clisp.org>
10
11         atoll: Move AC_LIBOBJ invocations to module description.
12         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13         invocations from here...
14         * modules/atoll (configure.ac): ... to here.
15
16 2011-05-05  Bruno Haible  <bruno@clisp.org>
17
18         argz: Move AC_LIBOBJ invocations to module description.
19         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20         * modules/argz (configure.ac): ... to here.
21
22 2011-05-05  Bruno Haible  <bruno@clisp.org>
23
24         alphasort: Move AC_LIBOBJ invocations to module description.
25         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
26         gl_PREREQ_ALPHASORT invocations from here...
27         * modules/alphasort (configure.ac): ... to here.
28
29 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30
31         verify: new macro verify_expr; verify_true deprecated
32         * NEWS: Mention this.
33         * doc/verify.texi (Compile-time Assertions): Document this.
34         * lib/verify.h (verify_true): Deprecate.
35         (verify_expr): New macro.
36         * tests/test-verify.c (function): Test verify_expr.
37
38 2011-06-14  Jim Meyering  <meyering@redhat.com>
39
40         init.sh: give more portable redirection-related advice in a comment
41         * tests/init.sh (stderr_fileno_): Update the advice in comments.
42         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
43         for lots of discussion.  Stefano Lattarini suggested the solution
44         of putting "9>&2" after the command.  Reported by Bruno Haible.
45
46 2011-06-13  Bruno Haible  <bruno@clisp.org>
47
48         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
49         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
50         'none'.
51
52 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53
54         ftoastr: use strtof only if HAVE_STRTOF
55         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
56         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
57         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
58         * modules/ftoastr (configure.ac): Check for strtof.
59
60 2011-06-13  Bruno Haible  <bruno@clisp.org>
61
62         gnulib-tool: Addendum to 2011-06-08 commit.
63         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
64         and --witness-c-macro have been given, augment AM_CPPFLAGS.
65
66 2011-06-13  Bruno Haible  <bruno@clisp.org>
67
68         fseeko: Provide a non-inline replacement of fseek().
69         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
70         * modules/fseeko (Depends-on): Add fseek.
71         * modules/fseek (License): Change to LGPLv2+.
72
73 2011-06-13  Bruno Haible  <bruno@clisp.org>
74
75         ftello: Provide a non-inline replacement of ftell().
76         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
77         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
78         not have ftello() (such as on mingw).
79         * modules/ftello (Depends-on): Add ftell.
80         * modules/ftell (License): Change to LGPLv2+.
81
82 2011-05-07  Bruno Haible  <bruno@clisp.org>
83
84         ftell: Move AC_LIBOBJ invocations to module description.
85         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
86         * modules/ftell (configure.ac): ... to here.
87
88 2011-05-07  Bruno Haible  <bruno@clisp.org>
89
90         ftello: Respect rules for use of AC_LIBOBJ.
91         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
92         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
93         here...
94         * modules/ftello (configure.ac): ... to here.
95
96 2011-05-07  Bruno Haible  <bruno@clisp.org>
97
98         fseeko: Simplify.
99         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
100         (gl_FUNC_FSEEKO): Inline it here.
101
102 2011-05-07  Bruno Haible  <bruno@clisp.org>
103
104         fseek: Move AC_LIBOBJ invocations to module description.
105         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
106         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
107         * modules/fseek (configure.ac): ... to here.
108
109 2011-05-07  Bruno Haible  <bruno@clisp.org>
110
111         fseek: Respect rules for use of AC_LIBOBJ.
112         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
113         here...
114         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
115
116 2011-05-07  Bruno Haible  <bruno@clisp.org>
117
118         fseeko: Respect rules for use of AC_LIBOBJ.
119         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
120         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
121         here...
122         * modules/fseeko (configure.ac): ... to here.
123
124 2011-06-13  Bruno Haible  <bruno@clisp.org>
125
126         gnulib-tool: Allow comments in the 'Depends-on' section.
127         * doc/gnulib.texi (Module description): Mention comment syntax in the
128         Depends-on section.
129         * gnulib-tool (func_get_dependencies): Filter out comment lines.
130
131 2011-06-13  Bruno Haible  <bruno@clisp.org>
132
133         file-set.h: guard __attibute__ use, now that it's not always defined
134         * lib/file-set.h (record_file): Use __attribute__ only with compiler
135         versions that support it.  This fixes a coreutils build failure with
136         the vendor cc on HP-UX 11.31.
137
138 2011-06-12  Bruno Haible  <bruno@clisp.org>
139
140         acl: Add support for HP-UX >= 11.11 JFS ACLs.
141         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
142         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
143         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
144         (acl, aclsort): New declarations.
145         (aclv_nontrivial): New declaration.
146         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
147         (file_has_acl): Read also the second kind of HP-UX ACLs.
148         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
149         kind of HP-UX ACLs if the first kind fails.
150         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
151         second kind of HP-UX ACLs.
152         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
153         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
154         agree.
155         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
156         hpuxjfs.
157         Handle hpuxjfs.
158         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
159         hpuxjfs.
160         Handle hpuxjfs.
161         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
162         (func_test_same_acls): Use both lsacl and getacl.
163         Handle hpuxjfs.
164         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
165         (func_test_same_acls): Use both lsacl and getacl.
166         Handle hpuxjfs.
167
168 2011-06-12  Bruno Haible  <bruno@clisp.org>
169
170         acl: Complete the 2010-08-10 fix.
171         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
172         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
173         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
174         explicitly.
175         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
176         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
177
178 2011-06-12  Bruno Haible  <bruno@clisp.org>
179
180         spawn-pipe tests: Comments.
181         * tests/test-spawn-pipe-child.c (main): Update comment.
182         Reported by James Youngman <jay@gnu.org>.
183
184 2011-06-11  James Youngman  <jay@gnu.org>
185
186         New module 'stat-size'.
187         * modules/stat-size: New module.  Provides macros for accessing
188         file size information in instances of struct stat.  Depends on the
189         fileblocks module because it calls st_blocks.
190         * lib/stat-size.h: New file, adapted from coreutils' system.h.
191         * doc/gnulib.texi: Include stat-size.texi.
192         * doc/stat-size.texi: Documentation for this module.
193         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
194         * m4/fileblocks.m4: Mention that stat-size depends on the call to
195         AC_STRUCT_ST_BLOCKS.
196
197 2011-06-09  Bruno Haible  <bruno@clisp.org>
198
199         thread: Support pthreads-win32.
200         * lib/glthread/thread.h (gl_thread_self): Define differently on
201         pthreads-win32.
202         (gl_null_thread): New declaration.
203         (gl_thread_self_pointer): New macro.
204         * lib/glthread/thread.c (gl_null_thread): New constant.
205         * tests/test-lock.c: Use gl_thread_self_pointer instead of
206         gl_thread_self.
207         * tests/test-tls.c: Likewise.
208         Suggested by Paul Eggert. Reported by Eric Blake.
209
210 2011-06-09  Bruno Haible  <bruno@clisp.org>
211
212         thread: Fix confusion between NULL and 0.
213         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
214         Reported by Paul Eggert.
215
216 2011-06-09  Bruno Haible  <bruno@clisp.org>
217
218         spawn-pipe tests: Avoid test failure on HP-UX 11.
219         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
220         is closed.
221
222 2011-06-09  Bruno Haible  <bruno@clisp.org>
223
224         acl tests: Fix compilation error on HP-UX 11.
225         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
226
227 2011-06-09  Bruno Haible  <bruno@clisp.org>
228
229         rmdir: Avoid test failure on HP-UX 10.20.
230         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
231         EEXIST.
232
233 2011-06-08  Eric Blake  <eblake@redhat.com>
234
235         perror: fix test on mingw
236         * modules/perror-tests (Depends-on): Add dup2.
237
238         strerror_r-posix: fix on MacOS
239         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
240         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
241         logic bug.
242         * lib/strerror_r.c (strerror_r): Fix the bug.
243         * lib/strerror.c (strerror): Likewise.
244         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
245         problem.
246         * doc/posix-functions/strerror.texi (strerror): Likewise.
247         * doc/posix-functions/perror.texi (perror): Likewise.
248         * tests/test-strerror.c (main): Enhance test.
249         * tests/test-strerror_r.c (main): Likewise.
250
251 2011-06-08  Bruno Haible  <bruno@clisp.org>
252
253         gnulib-tool: Better isolation between different gnulib-tool invocations.
254         * gnulib-tool: New option --witness-c-macro.
255         (witness_c_macro): New variable.
256         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
257         AM_CPPFLAGS define it as a C macro.
258         (func_emit_tests_Makefile_am): Likewise.
259         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
260         read it from there.
261         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
262         m4_define, not AC_DEFUN.
263         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
264         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
265         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
266         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
267         s|...|...|, to substitute the values of the GNULIB_* module indicator
268         variables.
269         * modules/dirent (Makefile.am): Likewise.
270         * modules/fcntl-h (Makefile.am): Likewise.
271         * modules/iconv-h (Makefile.am): Likewise.
272         * modules/langinfo (Makefile.am): Likewise.
273         * modules/locale (Makefile.am): Likewise.
274         * modules/math (Makefile.am): Likewise.
275         * modules/netdb (Makefile.am): Likewise.
276         * modules/poll-h (Makefile.am): Likewise.
277         * modules/pty (Makefile.am): Likewise.
278         * modules/search (Makefile.am): Likewise.
279         * modules/signal (Makefile.am): Likewise.
280         * modules/spawn (Makefile.am): Likewise.
281         * modules/stdio (Makefile.am): Likewise.
282         * modules/stdlib (Makefile.am): Likewise.
283         * modules/string (Makefile.am): Likewise.
284         * modules/sys_ioctl (Makefile.am): Likewise.
285         * modules/sys_select (Makefile.am): Likewise.
286         * modules/sys_socket (Makefile.am): Likewise.
287         * modules/sys_stat (Makefile.am): Likewise.
288         * modules/sys_times (Makefile.am): Likewise.
289         * modules/sys_utsname (Makefile.am): Likewise.
290         * modules/sys_wait (Makefile.am): Likewise.
291         * modules/termios (Makefile.am): Likewise.
292         * modules/time (Makefile.am): Likewise.
293         * modules/unistd (Makefile.am): Likewise.
294         * modules/wchar (Makefile.am): Likewise.
295
296 2011-06-08  Eric Blake  <eblake@redhat.com>
297
298         strerror: simplify replacement
299         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
300         * modules/strerror (configure.ac): No prereqs needed here...
301         * modules/strerror-override (configure.ac): ...but this needs it.
302         (Files): Add file for needed prereq macro.
303
304 2011-06-08  Bruno Haible  <bruno@clisp.org>
305
306         strerror_r-posix: Tweaks.
307         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
308         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
309         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
310         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
311         (gl_FUNC_STRERROR_R): ... to here.
312         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
313
314 2011-06-07  Eric Blake  <eblake@redhat.com>
315
316         perror: document fixed bugs
317         * doc/posix-functions/perror.texi (perror): Document recent
318         patches.
319
320 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
321
322         stat-time: get_stat_birthtime failure is better-defined
323         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
324         return a timestamp whose tv_sec and tv_nsec values are both -1.
325         Previously, the spec said only that the tv_nsec value was negative.
326         This upward-compatible change simplifies GNU tar a bit.
327
328 2011-06-07  Eric Blake  <eblake@redhat.com>
329
330         strerror_r-posix: work around cygwin 1.7.9
331         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
332         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
333         bug without replacing strerror_r.
334         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
335         strerror_r is buggy, but without requiring strerror_r compilation.
336         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
337
338         test-perror: relax test to ignore cygwin bug
339         * tests/test-perror2.c (main): Relax test on requiring detection
340         of stream errors, and use unbuffered stream.
341         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
342         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
343         * doc/posix-functions/fputc.texi (fputc): Likewise.
344         * doc/posix-functions/fputs.texi (fputs): Likewise.
345         * doc/posix-functions/fputws.texi (fputws): Likewise.
346         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
347         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
348         * doc/posix-functions/getopt.texi (getopt): Likewise.
349         * doc/posix-functions/perror.texi (perror): Likewise.
350         * doc/posix-functions/printf.texi (printf): Likewise.
351         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
352         * doc/posix-functions/psignal.texi (psignal): Likewise.
353         * doc/posix-functions/putc.texi (putc): Likewise.
354         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
355         Likewise.
356         * doc/posix-functions/putchar.texi (putchar): Likewise.
357         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
358         Likewise.
359         * doc/posix-functions/puts.texi (puts): Likewise.
360         * doc/posix-functions/putwc.texi (putwc): Likewise.
361         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
362         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
363         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
364         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
365         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
366         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
367         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
368         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
369
370 2011-05-22  Bruno Haible  <bruno@clisp.org>
371
372         strerror: Move AC_LIBOBJ invocations to module description.
373         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
374         gl_PREREQ_STRERROR invocations from here...
375         * modules/strerror (configure.ac): ... to here.
376
377 2011-05-21  Bruno Haible  <bruno@clisp.org>
378
379         perror: Use common idiom.
380         * modules/perror (configure.ac): Reorder statements.
381
382 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
383
384         tests: fix usage message in 'mktempd_'
385         * tests/init.sh (mktempd_): In the usage message, use literal
386         'mktempd_', not '$ME' (which is even undefined), as the name of
387         the subroutine.
388
389 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
390
391         tests init: new function 'fatal_', for hard errors
392         Before this patch, the only way offered by tests/init.sh to
393         properly signal a hard error was the `framework_failure_'
394         function.  But the error message issued by that function,
395         as its name would suggest, refers to a set-up failure in the
396         testsuite, while hard errors can obviously also be due to
397         other reasons.  The best way to fix this inconsistency is to
398         introduce a new function with a more general error message.
399         * tests/init.sh (fatal_): New function.
400
401 2011-06-06  Eric Blake  <eblake@redhat.com>
402
403         canonicalize-lgpl: use common idiom
404         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
405         over newer POSIX -Rf.
406         Reported by Bruno Haible.
407
408         canonicalize-lgpl: work around AIX realpath bug
409         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
410         * doc/posix-functions/realpath.texi (realpath): Document it.
411         Reported by Bruno Haible.
412
413         strerror: work around FreeBSD bug
414         * lib/strerror.c (strerror): Special case 0.
415         Reported by Bruno Haible.
416
417         strerror-override: avoid bloating errno module
418         * modules/errno (Files, configure.ac): Move replacement strings...
419         * modules/strerror-override: ...to new module.
420         * modules/strerror (Depends-on): Add strerror-override.
421         * modules/strerror_r-posix (Depends-on): Likewise.
422         * MODULES.html.sh: Document new module.
423         Reported by Bruno Haible.
424
425 2011-06-06  Bruno Haible  <bruno@clisp.org>
426
427         spawn-pipe tests: Rename program.
428         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
429         * tests/test-spawn-pipe-child.c: Update comment.
430         * tests/test-spawn-pipe.sh: Update.
431         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
432
433         spawn-pipe tests: Link the child program only against libc.
434         * tests/test-spawn-pipe-child.c: New file, extracted from
435         tests/test-spawn-pipe.c.
436         (main): Expect only one argument.
437         (is_open): New function, copied from tests/test-pipe.c.
438         * tests/test-spawn-pipe.c: Don't include <errno.h>.
439         (child_main): Remove function.
440         (test_pipe): Pass only one argument to the child program.
441         (main): Remove child process code. Expect the child program's name as
442         first argument.
443         * tests/test-spawn-pipe.sh: Pass the child program's name as first
444         argument.
445         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
446         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
447         test-spawn-pipe-child against no libraries.
448
449 2011-06-06  Bruno Haible  <bruno@clisp.org>
450
451         careadlinkat: Avoid mismatch between ssize_t and int.
452         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
453         * lib/careadlinkat.c (careadlinkatcwd): Define always.
454
455 2011-06-06  Jim Meyering  <meyering@redhat.com>
456
457         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
458         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
459         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
460
461 2011-06-05  Bruno Haible  <bruno@clisp.org>
462
463         ansi-c++-opt: Interoperability with libtool.
464         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
465         set the variable to "no", not to ":".
466         * NEWS: Mention the change.
467
468 2011-06-05  Bruno Haible  <bruno@clisp.org>
469
470         acl: Fix test failure on AIX 7.
471         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
472         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
473
474 2011-06-05  Bruno Haible  <bruno@clisp.org>
475
476         pipe-filter-ii: Fix test failure on AIX and IRIX.
477         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
478         with EAGAIN, retry with a smaller buffer size.
479
480 2011-06-05  Bruno Haible  <bruno@clisp.org>
481
482         localename: Fix link dependencies.
483         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
484         * modules/localename-tests (Makefile.am): Link test-localename with
485         $(LIBTHREAD).
486
487 2011-06-05  Bruno Haible  <bruno@clisp.org>
488
489         error: Avoid gcc warning.
490         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
491
492 2011-06-05  Bruno Haible  <bruno@clisp.org>
493
494         unsetenv: Avoid gcc warning.
495         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
496
497 2011-06-05  Bruno Haible  <bruno@clisp.org>
498
499         setenv: Avoid gcc warning.
500         * lib/setenv.c (setenv): Provide declaration if system lacks it.
501
502 2011-06-05  Bruno Haible  <bruno@clisp.org>
503
504         sys_select: Ensure memset is declared also on AIX 7.
505         * lib/sys_select.in.h: Include <string.h> also on AIX.
506         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
507         self-contained also on AIX 7.1.
508
509 2011-06-04  Jim Meyering  <meyering@redhat.com>
510
511         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
512         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
513         function name, "error".
514         (_gl_translatable_diag_func_re): New configurable variable.
515
516 2011-06-04  Bruno Haible  <bruno@clisp.org>
517
518         getopt: Avoid gcc warning.
519         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
520
521 2011-06-04  Bruno Haible  <bruno@clisp.org>
522
523         strerror_r: Fix comments.
524         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
525         commit.
526
527 2011-06-04  Bruno Haible  <bruno@clisp.org>
528
529         perror: Fix compilation error.
530         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
531         Undefine fprintf, not sprintf.
532         * modules/perror (Depends-on): Remove intprops, verify.
533
534 2011-06-04  Bruno Haible  <bruno@clisp.org>
535
536         setlocale: Enable replacement on Cygwin 1.5.
537         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
538         Cygwin 1.5.x.
539         * doc/posix-functions/setlocale.texi: Mention that the problem with the
540         LC_CTYPE category also exists on Cygwin 1.5.x.
541
542 2011-06-04  Bruno Haible  <bruno@clisp.org>
543
544         strerror-override: Don't disable symbol renamings.
545         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
546         * lib/strerror-override.c: Include config.h.
547         (strerror_override): Don't undefine.
548
549 2011-06-03  Bruno Haible  <bruno@clisp.org>
550
551         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
552         * lib/localename.h: Update copyright header.
553         * lib/localename.c: Likewise.
554         * lib/relocatable.h: Likewise.
555         * lib/relocatable.c: Likewise.
556
557 2011-06-02  Bruno Haible  <bruno@clisp.org>
558
559         doc: Fix a module name.
560         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
561
562 2011-06-02  Bruno Haible  <bruno@clisp.org>
563
564         pipe2: Remove dependency on 'nonblocking' module.
565         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
566         O_NONBLOCK is defined by gnulib.
567         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
568         is zero.
569         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
570         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
571         defined by gnulib.
572         (get_nonblocking_flag): New function.
573         (main): Test O_NONBLOCK flag only if it is nonzero.
574         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
575
576 2011-06-03  Jim Meyering  <meyering@redhat.com>
577
578         maint: three new prohibit-header-without-use rules
579         Prohibit use of cloexec.h, posixver.h, same.h without use.
580         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
581         (sc_prohibit_posixver_without_use): Likewise.
582         (sc_prohibit_same_without_use): Likewise.
583
584 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
585
586         allocator: 'die' routine is now given requested size
587         * lib/allocator.h (struct allocator.die): New size arg.
588         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
589         If the actual problem is an ssize_t limitation, not a size_t or
590         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
591
592 2011-06-01  Eric Blake  <eblake@redhat.com>
593
594         strerror: drop strerror_r dependency
595         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
596         * lib/strerror-override.c (strerror_override): ...to new file.
597         * lib/strerror-override.h: Add prototype.
598         * lib/strerror-impl.h: Delete.
599         * lib/strerror.c (strerror): New implementation.
600         * modules/errno (Files): Add new files.
601         (configure.ac): Compile new file as appropriate.
602         * modules/strerror (Files): Drop unused file.
603         (Depends-on): Drop strerror_r-posix.
604         * MODULES.html.sh: Document strerror_r-posix.
605         Requested by Sam Steingold.
606
607         perror: call strerror_r directly
608         * modules/perror (Files): Drop strerror-impl.h.
609         * lib/perror.c (perror): Use our own stack buffer, rather than
610         calling a wrapper that uses static storage.
611         * doc/posix-functions/perror.texi (perror): Document a limitation
612         of our replacement.
613
614         strerror_r: fix includes for FreeBSD
615         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
616         since we use abort on some platforms.
617         Reported by Matthias Bolte.
618
619 2011-05-31  Bruno Haible  <bruno@clisp.org>
620
621         Fix link errors in tests: openat-die uses gettext-h.
622         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
623         against $(LIBINTL).
624         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
625         against $(LIBINTL).
626         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
627         $(LIBINTL).
628         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
629         against $(LIBINTL).
630         * modules/linkat-tests (Makefile.am): Link test-linkat against
631         $(LIBINTL).
632         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
633         $(LIBINTL).
634         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
635         against $(LIBINTL).
636         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
637         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
638         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
639         $(LIBINTL).
640         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
641         $(LIBINTL).
642         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
643         $(LIBINTL).
644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
645
646 2011-05-31  Bruno Haible  <bruno@clisp.org>
647
648         Fix link errors in tests: wait-process uses gettext-h.
649         * modules/nonblocking-pipe-tests (Makefile.am): Set
650         test_nonblocking_pipe_main_LDADD.
651         * modules/nonblocking-socket-tests (Makefile.am): Link
652         test-nonblocking-socket-main against $(LIBINTL).
653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
654
655 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
656
657         assert-h: work around 'verify' incompatibility
658         * lib/verify.h: Use @...@ directives, not ifdef.
659         * modules/assert-h (assert.h): Implement the directives.
660         (assert.h): Substitute the symbol-prefix more consistently.
661
662 2011-05-29  Jim Meyering  <meyering@redhat.com>
663
664         trim: remove three superfluous assignments
665         * lib/trim.c (trim2): Remove three superfluous assignments
666         and correct brace positioning.
667
668 2011-05-29  Bruno Haible  <bruno@clisp.org>
669
670         wctype-h: Avoid namespace pollution on Solaris 2.6.
671         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
672         identifiers.
673         * doc/posix-headers/wctype.texi: Mention the problem.
674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
675
676 2011-05-28  Jim Meyering  <meyering@redhat.com>
677
678         parse-datetime.y: accommodate -Wstrict-overflow
679         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
680         placate -Wstrict-overflow.
681
682         trim: avoid a warning from -O2 -Wstrict-overflow
683         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
684
685 2011-05-29  Bruno Haible  <bruno@clisp.org>
686
687         gnulib-tool: Fix bug in yesterday's commit.
688         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
689         twice.
690
691 2011-05-29  Bruno Haible  <bruno@clisp.org>
692
693         Allow multiple gnulib generated include files to be combined.
694         * gnulib-tool (func_compute_include_guard_prefix): New function.
695         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
696         ${gl_include_guard_prefix} references.
697         (func_import, func_create_testdir): Invoke
698         func_compute_include_guard_prefix.
699         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
700         * lib/ctype.in.h: Likewise.
701         * lib/dirent.in.h: Likewise.
702         * lib/errno.in.h: Likewise.
703         * lib/fcntl.in.h: Likewise.
704         * lib/float.in.h: Likewise.
705         * lib/getopt.in.h: Likewise.
706         * lib/iconv.in.h: Likewise.
707         * lib/langinfo.in.h: Likewise.
708         * lib/locale.in.h: Likewise.
709         * lib/math.in.h: Likewise.
710         * lib/netdb.in.h: Likewise.
711         * lib/netinet_in.in.h: Likewise.
712         * lib/poll.in.h: Likewise.
713         * lib/pthread.in.h: Likewise.
714         * lib/pty.in.h: Likewise.
715         * lib/sched.in.h: Likewise.
716         * lib/se-selinux.in.h: Likewise.
717         * lib/search.in.h: Likewise.
718         * lib/signal.in.h: Likewise.
719         * lib/spawn.in.h: Likewise.
720         * lib/stdarg.in.h: Likewise.
721         * lib/stddef.in.h: Likewise.
722         * lib/stdint.in.h: Likewise.
723         * lib/stdio.in.h: Likewise.
724         * lib/stdlib.in.h: Likewise.
725         * lib/string.in.h: Likewise.
726         * lib/strings.in.h: Likewise.
727         * lib/sys_file.in.h: Likewise.
728         * lib/sys_ioctl.in.h: Likewise.
729         * lib/sys_select.in.h: Likewise.
730         * lib/sys_socket.in.h: Likewise.
731         * lib/sys_stat.in.h: Likewise.
732         * lib/sys_time.in.h: Likewise.
733         * lib/sys_times.in.h: Likewise.
734         * lib/sys_uio.in.h: Likewise.
735         * lib/sys_utsname.in.h: Likewise.
736         * lib/sys_wait.in.h: Likewise.
737         * lib/sysexits.in.h: Likewise.
738         * lib/termios.in.h: Likewise.
739         * lib/time.in.h: Likewise.
740         * lib/unistd.in.h: Likewise.
741         * lib/wchar.in.h: Likewise.
742         * lib/wctype.in.h: Likewise.
743         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
744         * modules/ctype (Makefile.am): Likewise.
745         * modules/dirent (Makefile.am): Likewise.
746         * modules/errno (Makefile.am): Likewise.
747         * modules/fcntl-h (Makefile.am): Likewise.
748         * modules/float (Makefile.am): Likewise.
749         * modules/getopt-posix (Makefile.am): Likewise.
750         * modules/iconv-h (Makefile.am): Likewise.
751         * modules/langinfo (Makefile.am): Likewise.
752         * modules/locale (Makefile.am): Likewise.
753         * modules/math (Makefile.am): Likewise.
754         * modules/netdb (Makefile.am): Likewise.
755         * modules/netinet_in (Makefile.am): Likewise.
756         * modules/poll-h (Makefile.am): Likewise.
757         * modules/pthread (Makefile.am): Likewise.
758         * modules/pty (Makefile.am): Likewise.
759         * modules/sched (Makefile.am): Likewise.
760         * modules/search (Makefile.am): Likewise.
761         * modules/selinux-h (Makefile.am): Likewise.
762         * modules/signal (Makefile.am): Likewise.
763         * modules/spawn (Makefile.am): Likewise.
764         * modules/stdarg (Makefile.am): Likewise.
765         * modules/stddef (Makefile.am): Likewise.
766         * modules/stdint (Makefile.am): Likewise.
767         * modules/stdio (Makefile.am): Likewise.
768         * modules/stdlib (Makefile.am): Likewise.
769         * modules/string (Makefile.am): Likewise.
770         * modules/strings (Makefile.am): Likewise.
771         * modules/sys_file (Makefile.am): Likewise.
772         * modules/sys_ioctl (Makefile.am): Likewise.
773         * modules/sys_select (Makefile.am): Likewise.
774         * modules/sys_socket (Makefile.am): Likewise.
775         * modules/sys_stat (Makefile.am): Likewise.
776         * modules/sys_time (Makefile.am): Likewise.
777         * modules/sys_times (Makefile.am): Likewise.
778         * modules/sys_uio (Makefile.am): Likewise.
779         * modules/sys_utsname (Makefile.am): Likewise.
780         * modules/sys_wait (Makefile.am): Likewise.
781         * modules/sysexits (Makefile.am): Likewise.
782         * modules/termios (Makefile.am): Likewise.
783         * modules/time (Makefile.am): Likewise.
784         * modules/unistd (Makefile.am): Likewise.
785         * modules/wchar (Makefile.am): Likewise.
786         * modules/wctype-h (Makefile.am): Likewise.
787         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
788
789 2011-05-29  Bruno Haible  <bruno@clisp.org>
790
791         assert-h: Allow multiple gnulib generated replacements to coexist.
792         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
793
794 2011-05-29  Bruno Haible  <bruno@clisp.org>
795
796         argp: Allow coexistence with strerror_r-posix module.
797         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
798         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
799         by gnulib's <string.h> replacement), assume it has the POSIX signature,
800         not the glibc signature.
801
802 2011-05-28  Bruno Haible  <bruno@clisp.org>
803
804         gnulib-tool: Alternative structure of testdirs, similar to --import.
805         * gnulib-tool: New option --single-configure.
806         (func_usage): Document it.
807         (single_configure): New variable.
808         (func_modules_transitive_closure_separately,
809         func_modules_transitive_closure_separately,
810         func_determine_use_libtests, func_modules_add_dummy_separately,
811         func_modules_to_filelist_separately): New functions, extracted from
812         func_import.
813         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
814         (func_import): Use the new functions.
815         (func_create_testdir): Set final_modules. Handle $single_configure =
816         true case.
817
818 2011-05-28  Bruno Haible  <bruno@clisp.org>
819
820         getloadavg: Remove an unreliable safety check.
821         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
822         getloadavg.c is in place.
823         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
824         Reported by Sam Steingold <sds@gnu.org>.
825
826 2011-05-28  Bruno Haible  <bruno@clisp.org>
827
828         doc: Cleanup yet another file produced by texinfo.tex.
829         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
830
831 2011-05-28  Bruno Haible  <bruno@clisp.org>
832
833         Finish the conditional dependencies mechanism.
834         * gnulib-tool: New option --no-conditional-dependencies.
835         (func_usage): Document it. Don't mark --conditional-dependencies as
836         experimental.
837         (cond_dependencies): The possible values can now be true, false, empty.
838         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
839         (func_import): Store setting in gnulib-cache.m4 and read it from there.
840         * doc/gnulib-tool.texi (Conditional dependencies): New section.
841
842 2011-05-28  Bruno Haible  <bruno@clisp.org>
843
844         doc: Use a recent texinfo.tex.
845         * doc/Makefile (tex_opts): New variable.
846         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
847
848 2011-05-28  Jim Meyering  <meyering@redhat.com>
849
850         intprops.h: adjust comment to match code change
851         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
852         only once, it *may* have side effects.  Also fix an unrelated typo.
853         (_GL_INT_SIGNED): Likewise.
854
855 2011-05-26  Simon Josefsson  <simon@josefsson.org>
856
857         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
858
859 2011-05-26  Bruno Haible  <bruno@clisp.org>
860
861         mbsrchr: Avoid collision with system function on Interix.
862         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
863         Reported by Markus Duft <mduft@gentoo.org>.
864
865 2011-05-15  James Youngman  <jay@gnu.org>
866
867         getopt: for ambiguous options, enumerate the possibilities.
868         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
869         the ambiguous options when an ambiguous prefix is given. This was
870         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
871         glibc change was
872         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
873
874 2011-05-25  Eric Blake  <eblake@redhat.com>
875
876         getcwd: work around mingw bug
877         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
878         * doc/posix-functions/getcwd.texi (getcwd): Document it.
879         Reported by Matthias Bolte.
880
881 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
882
883         test-intprops: disable -Wtype-limits diagnostics
884         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
885         diagnostics.  Otherwise, the integer overflow macros generate many
886         diagnostics.  Reported by Jim Meyering in
887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
888
889         intprops: shorten, to pacify gcc -Woverlength-strings
890         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
891         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
892         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
893         likely to run afoul of C compiler limits for string constant lengths.
894         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
895
896 2011-05-24  Eric Blake  <eblake@redhat.com>
897
898         docs: document recently fixed glibc printf bug
899         * doc/posix-functions/fprintf.texi (fprintf): Document it.
900         * doc/posix-functions/printf.texi (printf): Likewise.
901         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
902         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
903
904         closein-tests: convert to init.sh
905         * modules/closein-tests (Files): Add init.sh
906         * tests/test-closein.sh Use it.
907
908         yesno-tests: convert to init.sh
909         * modules/yesno-tests (Files): Add init.sh.
910         * tests/test-yesno.sh: Use it.
911
912         atexit-tests: ensure reliable exit status
913         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
914         Reported by Bruno Haible.
915
916 2011-05-24  Bruno Haible  <bruno@clisp.org>
917
918         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
919         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
920         gl_PREREQ_STRERROR_R invocations from here...
921         * modules/strerror_r-posix (configure.ac): ... to here.
922
923 2011-05-24  Eric Blake  <eblake@redhat.com>
924
925         strerror_r: fix missing header
926         * lib/strerror_r.c: Avoid compiler warning about snprintf.
927
928         strerror_r: fix AIX test failures
929         * lib/strerror_r.c (strerror_r): Convert silent truncation to
930         ERANGE failure.
931
932         strerror_r: fix Solaris test failures
933         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
934         failures.
935         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
936
937         strerror_r: enforce POSIX recommendations
938         * lib/strerror_r.c (safe_copy): New helper method.
939         (strerror_r): Guarantee a non-empty string.
940         * tests/test-strerror_r.c (main): Enhance tests to incorporate
941         recent POSIX rulings and to match our strerror guarantees.
942         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
943
944 2011-05-24  Jim Meyering  <meyering@redhat.com>
945
946         test-perror2.c: avoid warning about unused variable
947         * tests/test-perror2.c (main): Remove declaration of unused "fp".
948
949 2011-05-24  Eric Blake  <eblake@redhat.com>
950
951         perror: avoid spurious test failure on HP-UX
952         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
953
954         tests: fix logic bug in init.sh
955         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
956         shell.
957
958 2011-05-24  Jim Meyering  <meyering@redhat.com>
959
960         utimensat: do not reference an out-of-scope buffer
961         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
962         declared in an inner scope, yet "times" would be dereferenced outside
963         the scope in which "ts" was valid.
964         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
965         of ts[2] "out/up", so that the use of aliased "times" (via
966         "times = ts;") does not end up referencing an out-of-scope "ts"
967
968         opendir-safer.c: don't clobber errno; don't close negative FD
969         * lib/opendir-safer.c (opendir_safer):
970         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
971         file descriptor, and more importantly, don't clobber the
972         offending errno value with EINVAL.  Before, upon failure
973         of dup_safer, we would pass the negative file descriptor to
974         fdopendir, which would clobber errno.
975
976 2011-05-23  Bruno Haible  <bruno@clisp.org>
977
978         idcache: Fix module description.
979         * modules/idcache (Include): Set to "idcache.h".
980
981 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
982
983         gnulib-tool: fix portability problem with MacOS sed
984         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
985         before the "}".  Problem reported by Leo in
986         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
987         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
988         sed_extract_condition1, sed_extract_condition2.
989
990 2011-05-23  Bruno Haible  <bruno@clisp.org>
991
992         hash: Simplify autoconf macro.
993         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
994
995 2011-05-23  Bruno Haible  <bruno@clisp.org>
996
997         getugroups: Fix module description.
998         * modules/getugroups (Include): Set to "getugroups.h".
999
1000 2011-05-23  Bruno Haible  <bruno@clisp.org>
1001
1002         linkat: Simplify autoconf macro.
1003         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1004
1005 2011-05-23  Bruno Haible  <bruno@clisp.org>
1006             Eric Blake  <eblake@redhat.com>
1007
1008         linkat, renameat: Update dependencies.
1009         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1010         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1011         symlinkat.
1012
1013 2011-05-23  Jim Meyering  <meyering@redhat.com>
1014
1015         maint.mk: more tight_scope improvements
1016         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1017         (_gl_TS_headers): Define only in if-0'd block.
1018         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1019         sometimes we must *not* use it.  Adjust uses accordingly.
1020         (sc_tight_scope): Use much simpler grep-based test to determine
1021         whether we skip this rule.
1022
1023         maint.mk: generalize/improve the tight-scope rule
1024         * top/maint.mk: Emit a warning when the test is skipped.
1025         (_gl_TS_dir): Add $(srcdir)/ prefix.
1026         (_gl_TS_function_match): Simplify, rather than trying
1027         to enumerate common types.  Otherwise, it would fail to match an
1028         "extern unsigned char const *" declaration in idutils.
1029         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1030         a way to support use of that type of macro.
1031         (_gl_TS_var_match): Simplify regexp.
1032         (_gl_TS_obj_files): New configurable variable.
1033         (_gl_TS_headers): Likewise.
1034
1035 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         verify: fix bug when gnulib <assert.h> is also included
1038         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1039         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1040         Perhaps there's a better way, but this fixes the immediate problem.
1041         Problem reported by Bruno Haible in
1042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1043
1044 2011-05-22  Bruno Haible  <bruno@clisp.org>
1045
1046         xgetcwd: Simplify autoconf macro.
1047         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1048
1049 2011-05-22  Bruno Haible  <bruno@clisp.org>
1050
1051         New module 'mktime-internal'.
1052         * modules/mktime-internal: New file.
1053         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1054         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1055         mktime_internal as a C macro if libc has __mktime_internal.
1056         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1057         conditions.
1058         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1059
1060 2011-05-22  Bruno Haible  <bruno@clisp.org>
1061
1062         timegm: Correct mktime replacement statements.
1063         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1064         defining mktime as a C macro. This completes a 2009-07-28 commit.
1065
1066 2011-05-22  Bruno Haible  <bruno@clisp.org>
1067
1068         timegm: Simplify autoconf macro.
1069         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1070
1071 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1072
1073         clock-time: change to LGPLv2+.
1074         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1075         BSD-like but we have no mark for that; this is good enough for now.
1076
1077 2011-05-21  Bruno Haible  <bruno@clisp.org>
1078
1079         strerror_r: Fix comments.
1080         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1081
1082 2011-05-21  Bruno Haible  <bruno@clisp.org>
1083
1084         relocatable-prog-wrapper: Fix possible link error.
1085         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1086         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1087         (gl_FUNC_SETENV): ... to here.
1088         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1089         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1090
1091 2011-05-21  Bruno Haible  <bruno@clisp.org>
1092
1093         relocatable-prog-wrapper: Assume strerror() exists.
1094         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1095         m4/strerror.m4.
1096         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1097         * lib/relocwrapper.c: Remove mention of strerror module.
1098         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1099         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1100         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1101         C macro.
1102
1103 2011-05-21  Bruno Haible  <bruno@clisp.org>
1104
1105         select: Simplify replacement idiom.
1106         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1107         Win32 platforms.
1108         * lib/sys_select.in.h (select): Simplify accordingly.
1109         * modules/select (Depends-on): Likewise.
1110
1111 2011-05-21  Bruno Haible  <bruno@clisp.org>
1112
1113         mkdir-p: Simplify autoconf macro.
1114         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1115         gl_FUNC_LCHOWN.
1116
1117 2011-05-21  Eric Blake  <eblake@redhat.com>
1118
1119         strerror_r: avoid clobbering strerror on cygwin
1120         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1121         fall back instead to sys_errlist.
1122         * modules/strerror (configure.ac): Add witness.
1123         * tests/test-strerror_r.c (main): Enhance test.
1124         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1125         * tests/test-perror2.c (main): Free memory before exit.
1126
1127 2011-05-21  Bruno Haible  <bruno@clisp.org>
1128
1129         mkdtemp: Use gnulib naming conventions.
1130         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1131         * modules/mkdtemp (configure.ac): Update.
1132
1133 2011-05-20  Eric Blake  <eblake@redhat.com>
1134
1135         strerror_r: avoid corrupting errno on Solaris
1136         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1137         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1138
1139         strerror_r: avoid compiler warning
1140         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1141
1142         strerror_r: simplify AIX code
1143         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1144
1145         test-perror: avoid spurious failure on FreeBSD
1146         * modules/perror-tests (Depends-on): Add strerror, now that
1147         strerror_r no longer pulls it in.
1148
1149 2011-05-20  Bruno Haible  <bruno@clisp.org>
1150
1151         strerror_r-posix: Remove unused dependencies.
1152         * modules/strerror_r-posix (Depends-on): Remove strerror.
1153         Reported by Eric Blake.
1154
1155 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         intprops: remove assumption about A|B representation
1158         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1159         is a valid integer if both A and B are.  Although this is true for
1160         all known practical hosts, the C standard doesn't guarantee it,
1161         and the code need not assume it.  Also, this change may work around
1162         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1164
1165 2011-05-20  Eric Blake  <eblake@redhat.com>
1166
1167         perror: work around FreeBSD bug
1168         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1169         is broken.  Move AC_LIBOBJ...
1170         * modules/perror (configure.ac): Here.
1171         * doc/posix-functions/perror.texi (perror): Document this.
1172         * tests/test-perror2.c (main): Enhance test.
1173
1174         test-perror: check for strerror interactions
1175         * tests/macros.h (STREQ): Add macro.
1176         * modules/perror-tests (Files): Add second test.
1177         * tests/test-perror2.c (main): New file.
1178         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1179
1180         test-perror: rewrite to use init script
1181         * modules/perror-tests (Files): Add init.sh.
1182         * tests/test-perror.sh: Use temporary directory.
1183
1184 2011-05-20  Jim Meyering  <meyering@redhat.com>
1185
1186         maint: replace misused "a" with "an"
1187         * doc/intprops.texi: "a integer"
1188         * doc/regex.texi: "a explanation"
1189         * lib/alignof.h: "a object"
1190         * lib/argmatch.h: "a explanation"
1191         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1192         * lib/stdint.in.h: "a integer"
1193         * lib/userspec.c: "a owner"
1194         * doc/gnulib.texi: Fix "a idea", and reword.
1195
1196 2011-05-19  Jim Meyering  <meyering@redhat.com>
1197
1198         maint: correct misuse of "a" and "an"
1199         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1200         * lib/argp-help.c: "an docum...": s/an/a/
1201         * lib/argp-parse.c: "An vector": s/An/A/
1202         * lib/execute.c: "an native": s/an/a/
1203         * lib/spawn-pipe.c: Likewise.
1204         * lib/gc.h: "an Gc_rc": s/an/a/
1205         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1206         * lib/fts.c: "an stat.st_dev": s/an/a/
1207
1208 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1209
1210         intprops-tests: work around HP-UX 11.23 cc bug with constants
1211         * tests/test-intprops.c (VERIFY): New macro.
1212         (main): Use it, instead of verify, to work around the compiler bug; see
1213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1214
1215         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1216         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1217         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1218         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1219         (_GL_REMAINDER_OVERFLOW): Use it.
1220
1221         intprops-tests: revert unsigned part of previous change
1222         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1223         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1224         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1226
1227 2011-05-19  Bruno Haible  <bruno@clisp.org>
1228
1229         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1230         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1231         strerror_r() returned without filling the buffer.
1232         Reported by Eric Blake.
1233
1234 2011-05-19  Eric Blake  <eblake@redhat.com>
1235
1236         strerror_r: guarantee unchanged errno
1237         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1238         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1239         failure.
1240         * tests/test-strerror_r.c (main): Enhance test.
1241
1242 2011-05-19  Bruno Haible  <bruno@clisp.org>
1243
1244         strerror_r: Reorder #if blocks.
1245         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1246         for consistency with the previous commit.
1247
1248 2011-05-19  Bruno Haible  <bruno@clisp.org>
1249
1250         perror: Avoid clobbering the strerror buffer when possible.
1251         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1252         * lib/strerror.c: Include it.
1253         * modules/strerror (Files): Add lib/strerror-impl.h.
1254         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1255         (my_strerror): New function, defined through lib/strerror-impl.h.
1256         (perror): Use it instead of strerror.
1257         * modules/perror (Files): Add lib/strerror-impl.h.
1258         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1259
1260 2011-05-19  Eric Blake  <eblake@redhat.com>
1261
1262         strerror_r: fix on newer cygwin
1263         * lib/strerror_r.c (strerror_r): Cygwin now has
1264         __xpg_strerror_r, use it.
1265
1266 2011-05-19  Bruno Haible  <bruno@clisp.org>
1267
1268         strerror_r: Avoid clobbering the strerror buffer when possible.
1269         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1270         (sys_nerr, sys_errlist): New declarations.
1271         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1272         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1273         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1274
1275 2011-05-19  Bruno Haible  <bruno@clisp.org>
1276
1277         strerror_r: Fix test failure on mingw.
1278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1279         EXTEND_STRERROR_R.
1280         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1281         macros from errno.in.h instead.
1282
1283 2011-05-19  Eric Blake  <eblake@redhat.com>
1284
1285         strerror: relax test for Solaris
1286         * tests/test-strerror.c (main): Permit Solaris behavior.
1287         * tests/test-strerror_r.c (main): Likewise.
1288
1289         strerror: enforce POSIX ruling on strerror(0)
1290         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1292         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1293         * doc/posix-functions/strerror.texi (strerror): Document it.
1294         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1295         * tests/test-strerror.c (main): Strengthen test.
1296         * tests/test-strerror_r.c (main): Likewise.
1297
1298 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1299
1300         intprop-tests: port to older and more-pedantic compilers
1301         * modules/intprops-tests (Files): Add tests/macros.h.
1302         * tests/test-intprops.c: Include macros.h.
1303         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1304         it's no longer documented to expand to an integer constant expression.
1305         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1306         argument is floating point, as it's no longer documented to expand
1307         to an integer constant expression in that case.
1308         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1309         compiler bugs reported by Bruno Haible.  See
1310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1311         (U0, U1): New constants, to work around the same bugs.  Also,
1312         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1313
1314         intprops: work around C compiler bugs
1315         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1316         bug in Sun C 5.11 2010/08/13 and other compilers; see
1317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1318
1319         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1320         * doc/intprops.texi (Integer Type Determination): Fix
1321         documentation for TYPE_IS_INTEGER: it returns an constant
1322         expression, not an integer constant expression.  Fix doc for
1323         TYPE_SIGNED: it returns an integer constant expression only if its
1324         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1325         hardly worth documented that way....)
1326
1327 2011-05-18  Bruno Haible  <bruno@clisp.org>
1328
1329         strerror_r: Avoid clobbering the strerror buffer when possible.
1330         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1331         Handle gnulib defined errno values here. When strerror() returns NULL
1332         or an empty string, return EINVAL.
1333         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1334         gnulib defined errno values here.
1335         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1336
1337 2011-05-18  Eric Blake  <eblake@redhat.com>
1338
1339         fnmatch: avoid compiler warning
1340         * lib/fnmatch_loop.c (FCT): Use correct type.
1341         Reported by Matthias Bolte.
1342
1343 2011-05-13  Jim Meyering  <meyering@redhat.com>
1344
1345         maint.mk: three new prohibit_<HDR>_without_use rules
1346         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1347         (sc_prohibit_stdio-safer_without_use): Likewise.
1348         (sc_prohibit_xfreopen_without_use): Likewise.
1349
1350 2011-05-17  Jim Meyering  <meyering@redhat.com>
1351
1352         announce-gen: fail if the NEWS delta is empty
1353         If there's nothing noteworthy in NEWS, then either you forgot
1354         or you shouldn't be releasing.
1355         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1356
1357 2011-05-17  Pádraig Brady <P@draigBrady.com>
1358
1359         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1360         reserved symbols starting with double underscore from the check.
1361
1362 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         intprops: add doc
1365         * doc/intprops.texi: New file, documenting intprops.
1366         * doc/gnulib.texi (Particular Modules): Include it.
1367
1368         verify: add doc to gnulib manual and fix example
1369         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1370         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1371         (Compile-time Assertions): Fix example so it can't overflow.
1372
1373 2011-05-17  Jim Meyering  <meyering@redhat.com>
1374
1375         warnings.m4: don't usurp save_CPPFLAGS variable name
1376         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1377
1378         doc: fix typo
1379         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1380
1381 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1382             Bruno Haible  <bruno@clisp.org>
1383
1384         doc: Tweak recent change.
1385         * README (Portability guidelines): Tweak new text.
1386         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1387         Interix 6.1.
1388
1389 2011-05-16  Eric Blake  <eblake@redhat.com>
1390
1391         inttypes: avoid autoconf warning
1392         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1393         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1394
1395 2011-05-16  Sam Steingold <sds@gnu.org>
1396         and Eric Blake  <eblake@redhat.com>
1397
1398         vc-list-files: accept multiple directory operands
1399         * build-aux/vc-list-files: Iterate over all remaining operands.
1400
1401 2011-05-16  Bruno Haible  <bruno@clisp.org>
1402
1403         Fix confusion regarding deprecated modules.
1404         * modules/calloc (Status, Notice): Mark module as deprecated, not
1405         obsolete.
1406         * modules/fnmatch-posix (Status, Notice): Likewise.
1407         * modules/getdate (Status, Notice): Likewise.
1408         * modules/getopt (Status, Notice): Likewise.
1409         * modules/malloc (Status, Notice): Likewise.
1410         * modules/pipe (Status, Notice): Likewise.
1411         * modules/realloc (Status, Notice): Likewise.
1412         * modules/rename-dest-slash (Status, Notice): Likewise.
1413         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1414         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1415         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1416         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1417         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1418
1419 2011-05-16  Bruno Haible  <bruno@clisp.org>
1420
1421         doc: List the target platforms.
1422         * doc/gnulib-intro.texi (Target Platforms): New section.
1423         * doc/gnulib.texi (Introduction): Update menu.
1424         * README (Portability guidelines): Refer to the new section. Update
1425         statement about oldest supported environment. Remove rationale why
1426         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1427         unportable C89 function.
1428         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1429         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1430
1431 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1432
1433         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1434
1435 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1436
1437         intprops-tests: new module
1438         * modules/intprops-tests, tests/test-intprops.c: New files.
1439
1440         intprops: add safe, portable integer overflow checking
1441         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1442         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1443         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1444         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1445         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1446         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1447         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1448         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1449         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1450         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1451         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1452
1453 2011-05-12  James Youngman  <jay@gnu.org>
1454
1455         Add a test for glibc's Bugzilla bug #12378.
1456         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1457         doesn't allow the literal matching of a lone "[" (which is
1458         required by POSIX).
1459         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1460
1461 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1462
1463         Sync glibc change fixing Bugzilla bug #12378.
1464         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1465         beginning and fall back to matching as normal character if the
1466         string ends before the matching ']' is found.  This is what POSIX
1467         requires.
1468
1469 2011-05-13  Eric Blake  <eblake@redhat.com>
1470
1471         getcwd-lgpl: relax test for FreeBSD
1472         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1473         issue.
1474         * tests/test-getcwd-lgpl.c (main): Relax test.
1475         Reported by Matthias Bolte.
1476
1477 2011-05-11  Eric Blake  <eblake@redhat.com>
1478
1479         test-fflush: silence compiler warning
1480         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1481
1482 2011-05-11  Bruno Haible  <bruno@clisp.org>
1483
1484         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1485         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1486         * modules/canonicalize (Depends-on): Add 'nocrash'.
1487         * modules/canonicalize-lgpl (Depends-on): Likewise.
1488         * doc/posix-functions/realpath.texi: Update platforms list.
1489         Reported by Ryan Schmidt <ryandesign@macports.org>.
1490
1491 2011-05-11  Bruno Haible  <bruno@clisp.org>
1492
1493         group-member: Declare function in <unistd.h>.
1494         * lib/unistd.in.h (group_member): New declaration.
1495         * lib/group-member.h: Remove file.
1496         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1497         * tests/test-unistd-c++.cc: Check signature of group_member.
1498         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1499         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1500         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1501         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1502         HAVE_GROUP_MEMBER.
1503         * modules/group-member (Files): Remove lib/group-member.h.
1504         (Depends-on): Add unistd. Specify conditions.
1505         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1506         (Include): Change to <unistd.h>.
1507         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1508         HAVE_GROUP_MEMBER.
1509         * NEWS: Mention the change.
1510         * lib/euidaccess.c: Don't include group-member.h.
1511
1512 2011-05-11  Bruno Haible  <bruno@clisp.org>
1513
1514         group-member: Document module.
1515         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1516         module.
1517
1518 2011-05-11  Bruno Haible  <bruno@clisp.org>
1519
1520         fclose: Fix mistake earlier today.
1521         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1522
1523 2011-05-11  Eric Blake  <eblake@redhat.com>
1524
1525         fclose: preserve fflush errors
1526         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1527         Reported by Jim Meyering.
1528
1529         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1530         * build-aux/bootstrap (check_versions): When no specific version
1531         is required, merely check that the app produces an exit status
1532         that indicates its existence.
1533
1534         maint.mk: drop redundant check
1535         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1536         the same but better.
1537
1538 2011-05-11  Bruno Haible  <bruno@clisp.org>
1539
1540         fclose: Fix possible link error.
1541         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1542         unregister_shadow_fd. Improve comments.
1543         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1544         Eric Blake.
1545
1546 2011-05-11  Jim Meyering  <meyering@redhat.com>
1547
1548         maint.mk: improve "can not" detection and generalize rule name
1549         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1550         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1551         Use the same technique as in sc_prohibit_doubled_word, so that
1552         we recognize "can not" also when the words are separated by a newline.
1553         Suggested by Eric Blake.
1554         (perl_filename_lineno_text_): Define.  Factored out of...
1555         (prohibit_doubled_word_): ...here.  Use the new definition.
1556         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1557         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1558         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1559
1560 2011-05-10  Eric Blake  <eblake@redhat.com>
1561
1562         fclose: avoid double close race when possible
1563         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1564         all but WINDOWS_SOCKETS.
1565
1566 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1567
1568         openat: correct new comment
1569         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1570
1571 2011-05-10  Jim Meyering  <meyering@redhat.com>
1572
1573         openat: add comments
1574         * lib/openat-proc.c (openat_proc_name): Add comments,
1575         mostly from Eric Blake.
1576
1577 2011-05-09  Eric Blake  <eblake@redhat.com>
1578
1579         openat: reduce syscalls in first probe of /proc
1580         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1581         be a directory.  Simplify the probe for .. bugs.
1582         * modules/openat (Depends-on): Drop same-inode.
1583         Reported by Bastien ROUCARIES.
1584
1585 2011-05-09  Jim Meyering  <meyering@redhat.com>
1586
1587         maint.mk: change semantics/name of tight_scope variables
1588         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1589         Rename variables to align with semantics that make them more useful.
1590
1591         maint.mk: tweak new rule's name not to impinge
1592         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1593         (sc_tight_scope): Use new rule name rather than $@-0.
1594
1595         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1596         * top/maint.mk (sc_tight_scope): New rule.
1597         (sc_tight_scope-0): New rule, ifdef'd out.
1598         (_gl_TS_dir): Default.
1599         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1600         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1601
1602 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1603
1604         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1605         Haible <bruno@clisp.org>.
1606
1607 2011-05-08  Bruno Haible  <bruno@clisp.org>
1608
1609         Comments.
1610         * m4/isnanf.m4: Add comment.
1611         * m4/isnanl.m4: Likewise.
1612
1613 2011-05-08  Bruno Haible  <bruno@clisp.org>
1614
1615         glob: Remove obsolete macro.
1616         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1617
1618 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1619
1620         intprops: Sun C 5.11 supports __typeof__
1621         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1622         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1623         which is new.
1624         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1625
1626         intprops: switch to usual gnulib indenting and naming
1627         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1628         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1629
1630         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1631
1632 2011-05-08  Jim Meyering  <meyering@redhat.com>
1633
1634         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1635         * top/maint.mk (release-prep): Use make's --no-print-directory
1636         option when generating the announcement.  This eliminates the
1637         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1638         generated announcement template.
1639
1640 2011-05-08  Bruno Haible  <bruno@clisp.org>
1641
1642         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1643         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1644         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1645
1646 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1647
1648         ignore-value, verify: Omit include files from lib_SOURCES.
1649         * modules/ignore-value, modules/verify (Makefile.am):
1650         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1651         that leads Automake to duplicate use of am__objects_... variables
1652         in Makefile.in.  See
1653         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1654
1655 2011-05-07  Bruno Haible  <bruno@clisp.org>
1656
1657         fclose: Simplify autoconf macro.
1658         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1659         defined.
1660
1661 2011-05-07  Bruno Haible  <bruno@clisp.org>
1662
1663         canonicalize-lgpl: Fix autoconf macro ordering bug.
1664         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1665         gl_STDLIB_H_DEFAULTS.
1666
1667 2011-05-06  Eric Blake  <eblake@redhat.com>
1668
1669         maintainer-makefile: make sc_po_check easier to tune
1670         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1671         to probe for strings, such as an alternate location for gnulib.
1672
1673         fclose: guarantee behavior on seekable stdin
1674         * modules/fclose (Depends-on): Add fflush.
1675         * doc/posix-functions/fclose.texi (fclose): Document this.
1676         * tests/test-fclose.c (main): Make test for this unconditional.
1677
1678 2011-05-06  Bruno Haible  <bruno@clisp.org>
1679
1680         fflush, fpurge: Relicense under LGPLv2+.
1681         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1682         * modules/fpurge (License): Likewise.
1683         With permission from Eric Blake and Jim Meyering.
1684         Suggested by Eric Blake.
1685
1686 2011-05-06  Karl Berry  <karl@gnu.org>
1687
1688         * MODULES.html.sh (func_all_modules): remove exit.
1689
1690 2011-05-06  Jim Meyering  <meyering@redhat.com>
1691
1692         maint.mk: use info-gnu@ as the default only for a stable release
1693         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1694         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1695         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1696         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1697
1698 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1699
1700         assert-h: new module, which supports C1X-style static_assert
1701         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1702         * lib/verify.h: Revamp so that this can be copied into assert.h,
1703         while retaining the ability to use it standalone as before.
1704         Rename private identifiers so as not to encroach on the
1705         standard C namespace, since this is now used by assert.h.
1706         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1707         the old verify_true.
1708         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1709         the old verify_true.  Use _GL_VERIFY_TYPE.
1710         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1711         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1712         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1713         defined when this file is copied into the replacement assert.h.
1714         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1715         and _Static_assert is not built in.
1716         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1717         defined, and use the new macros mentioned above.
1718         * doc/posix-headers/assert.texi: Document this.
1719
1720 2011-05-05  Bruno Haible  <bruno@clisp.org>
1721
1722         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1723         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1724         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1725         gl_REPLACE_FCLOSE here.
1726         * modules/fflush (Depends-on): Remove fclose.
1727         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1728         combination with module 'fclose'.
1729
1730 2011-05-05  Bruno Haible  <bruno@clisp.org>
1731
1732         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1733         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1734         gl_FUNC_FFLUSH.
1735         (gl_FUNC_FFLUSH): Use it.
1736         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1737         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1738         gl_REPLACE_FSEEKO here.
1739
1740 2011-05-05  Bruno Haible  <bruno@clisp.org>
1741
1742         tzset: Relicense under LGPL.
1743         * modules/tzset (License): Change to LGPL.
1744         No agreement needed; it's a no-op.
1745
1746         strtoimax, strtoumax: Relicense under LGPL.
1747         * modules/strtoimax (License): Change to LGPL.
1748         * modules/strtoumax (License): Likewise.
1749         With permission from Jim Meyering, Paul Eggert:
1750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1752
1753         getgroups: Relicense under LGPL.
1754         * modules/getgroups (License): Change to LGPL.
1755         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1759
1760         nanosleep: Relicense under LGPL.
1761         * modules/nanosleep (License): Change to LGPL.
1762         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1763         Haible:
1764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1768
1769         futimens: Relicense under LGPL.
1770         * modules/futimens (License): Change to LGPL.
1771         With permission from Eric Blake:
1772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1773
1774         fflush: Relicense under LGPL.
1775         * modules/fflush (License): Change to LGPL.
1776         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1780
1781         tmpfile: Relicense under LGPL.
1782         * modules/tmpfile (License): Change to LGPL.
1783         With permission from Ben Pfaff:
1784         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1785
1786         isfinite: Relicense under LGPL.
1787         * modules/isfinite (License): Change to LGPL.
1788         With permission from Ben Pfaff, Bruno Haible:
1789         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1791
1792         acosl..tanl: Relicense under LGPL.
1793         * modules/acosl (License): Change to LGPL.
1794         * modules/asinl (License): Likewise.
1795         * modules/atanl (License): Likewise.
1796         * modules/cosl (License): Likewise.
1797         * modules/expl (License): Likewise.
1798         * modules/logl (License): Likewise.
1799         * modules/sinl (License): Likewise.
1800         * modules/sqrtl (License): Likewise.
1801         * modules/tanl (License): Likewise.
1802         Source code originally from glibc and Paolo Bonzini. Agreements:
1803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1805
1806 2011-05-05  Bruno Haible  <bruno@clisp.org>
1807
1808         signal: Define sighandler_t.
1809         * lib/signal.in.h (sighandler_t): New type.
1810         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1811         whether sighandler_t is defined.
1812         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1813         * modules/signal (Depends-on): Add extensions.
1814         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1815         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1816         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1817
1818 2011-05-05  Eric Blake  <eblake@redhat.com>
1819
1820         maint: remove useless REPLACE_*_H macros
1821         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1822         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1823         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1824         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1825         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1826         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1827         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1828         * m4/btowc.m4: Update callers.
1829         * m4/dirfd.m4: Likewise.
1830         * m4/duplocale.m4: Likewise.
1831         * m4/fchdir.m4: Likewise.
1832         * m4/fdopendir.m4: Likewise.
1833         * m4/inet_ntop.m4: Likewise.
1834         * m4/inet_pton.m4: Likewise.
1835         * m4/ioctl.m4: Likewise.
1836         * m4/mbrlen.m4: Likewise.
1837         * m4/mbrtowc.m4: Likewise.
1838         * m4/mbsinit.m4: Likewise.
1839         * m4/mbsnrtowcs.m4: Likewise.
1840         * m4/mbsrtowcs.m4: Likewise.
1841         * m4/poll.m4: Likewise.
1842         * m4/setlocale.m4: Likewise.
1843         * m4/wcrtomb.m4: Likewise.
1844         * m4/wcsnrtombs.m4: Likewise.
1845         * m4/wcsrtombs.m4: Likewise.
1846         * m4/wctob.m4: Likewise.
1847         * m4/wcwidth.m4: Likewise.
1848         * modules/posix_spawn: Likewise.
1849         * modules/posix_spawn_file_actions_addclose: Likewise.
1850         * modules/posix_spawn_file_actions_adddup2: Likewise.
1851         * modules/posix_spawn_file_actions_addopen: Likewise.
1852         * modules/posix_spawn_file_actions_destroy: Likewise.
1853         * modules/posix_spawn_file_actions_init: Likewise.
1854         * modules/posix_spawnattr_destroy: Likewise.
1855         * modules/posix_spawnattr_getflags: Likewise.
1856         * modules/posix_spawnattr_getpgroup: Likewise.
1857         * modules/posix_spawnattr_getschedparam: Likewise.
1858         * modules/posix_spawnattr_getschedpolicy: Likewise.
1859         * modules/posix_spawnattr_getsigdefault: Likewise.
1860         * modules/posix_spawnattr_getsigmask: Likewise.
1861         * modules/posix_spawnattr_init: Likewise.
1862         * modules/posix_spawnattr_setflags: Likewise.
1863         * modules/posix_spawnattr_setpgroup: Likewise.
1864         * modules/posix_spawnattr_setschedparam: Likewise.
1865         * modules/posix_spawnattr_setschedpolicy: Likewise.
1866         * modules/posix_spawnattr_setsigdefault: Likewise.
1867         * modules/posix_spawnattr_setsigmask: Likewise.
1868         * modules/posix_spawnp: Likewise.
1869
1870 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1871
1872         Add option to do-release-commit-and-tag to specify branch.
1873         * build-aux/do-release-commit-and-tag: Add --branch.
1874
1875 2011-05-03  Bruno Haible  <bruno@clisp.org>
1876
1877         Avoid unnecessary compilation units, through conditional dependencies.
1878         * modules/accept (Depends-on): Add conditions to the dependencies.
1879         * modules/acosl (Depends-on): Likewise.
1880         * modules/argz (Depends-on): Likewise.
1881         * modules/asinl (Depends-on): Likewise.
1882         * modules/atanl (Depends-on): Likewise.
1883         * modules/atoll (Depends-on): Likewise.
1884         * modules/bind (Depends-on): Likewise.
1885         * modules/btowc (Depends-on): Likewise.
1886         * modules/canonicalize-lgpl (Depends-on): Likewise.
1887         * modules/ceil (Depends-on): Likewise.
1888         * modules/ceilf (Depends-on): Likewise.
1889         * modules/ceill (Depends-on): Likewise.
1890         * modules/chdir-long (Depends-on): Likewise.
1891         * modules/chown (Depends-on): Likewise.
1892         * modules/close (Depends-on): Likewise.
1893         * modules/connect (Depends-on): Likewise.
1894         * modules/cosl (Depends-on): Likewise.
1895         * modules/dirfd (Depends-on): Likewise.
1896         * modules/dprintf (Depends-on): Likewise.
1897         * modules/dprintf-posix (Depends-on): Likewise.
1898         * modules/error (Depends-on): Likewise.
1899         * modules/euidaccess (Depends-on): Likewise.
1900         * modules/expl (Depends-on): Likewise.
1901         * modules/faccessat (Depends-on): Likewise.
1902         * modules/fchdir (Depends-on): Likewise.
1903         * modules/fclose (Depends-on): Likewise.
1904         * modules/fcntl (Depends-on): Likewise.
1905         * modules/fdopendir (Depends-on): Likewise.
1906         * modules/fflush (Depends-on): Likewise.
1907         * modules/floor (Depends-on): Likewise.
1908         * modules/floorf (Depends-on): Likewise.
1909         * modules/floorl (Depends-on): Likewise.
1910         * modules/fnmatch (Depends-on): Likewise.
1911         * modules/fopen (Depends-on): Likewise.
1912         * modules/fprintf-posix (Depends-on): Likewise.
1913         * modules/frexp (Depends-on): Likewise.
1914         * modules/frexp-nolibm (Depends-on): Likewise.
1915         * modules/frexpl (Depends-on): Likewise.
1916         * modules/frexpl-nolibm (Depends-on): Likewise.
1917         * modules/fseek (Depends-on): Likewise.
1918         * modules/fsusage (Depends-on): Likewise.
1919         * modules/ftell (Depends-on): Likewise.
1920         * modules/ftello (Depends-on): Likewise.
1921         * modules/futimens (Depends-on): Likewise.
1922         * modules/getcwd (Depends-on): Likewise.
1923         * modules/getcwd-lgpl (Depends-on): Likewise.
1924         * modules/getdelim (Depends-on): Likewise.
1925         * modules/getdomainname (Depends-on): Likewise.
1926         * modules/getgroups (Depends-on): Likewise.
1927         * modules/gethostname (Depends-on): Likewise.
1928         * modules/getline (Depends-on): Likewise.
1929         * modules/getlogin_r (Depends-on): Likewise.
1930         * modules/getopt-posix (Depends-on): Likewise.
1931         * modules/getpeername (Depends-on): Likewise.
1932         * modules/getsockname (Depends-on): Likewise.
1933         * modules/getsockopt (Depends-on): Likewise.
1934         * modules/getsubopt (Depends-on): Likewise.
1935         * modules/getusershell (Depends-on): Likewise.
1936         * modules/glob (Depends-on): Likewise.
1937         * modules/grantpt (Depends-on): Likewise.
1938         * modules/iconv_open (Depends-on): Likewise.
1939         * modules/iconv_open-utf (Depends-on): Likewise.
1940         * modules/inet_ntop (Depends-on): Likewise.
1941         * modules/inet_pton (Depends-on): Likewise.
1942         * modules/ioctl (Depends-on): Likewise.
1943         * modules/isapipe (Depends-on): Likewise.
1944         * modules/isfinite (Depends-on): Likewise.
1945         * modules/isinf (Depends-on): Likewise.
1946         * modules/lchown (Depends-on): Likewise.
1947         * modules/ldexpl (Depends-on): Likewise.
1948         * modules/link (Depends-on): Likewise.
1949         * modules/linkat (Depends-on): Likewise.
1950         * modules/listen (Depends-on): Likewise.
1951         * modules/logl (Depends-on): Likewise.
1952         * modules/lstat (Depends-on): Likewise.
1953         * modules/mbrlen (Depends-on): Likewise.
1954         * modules/mbrtowc (Depends-on): Likewise.
1955         * modules/mbsinit (Depends-on): Likewise.
1956         * modules/mbsnrtowcs (Depends-on): Likewise.
1957         * modules/mbsrtowcs (Depends-on): Likewise.
1958         * modules/mbtowc (Depends-on): Likewise.
1959         * modules/memcmp (Depends-on): Likewise.
1960         * modules/mkdir (Depends-on): Likewise.
1961         * modules/mkdtemp (Depends-on): Likewise.
1962         * modules/mkfifo (Depends-on): Likewise.
1963         * modules/mkfifoat (Depends-on): Likewise.
1964         * modules/mknod (Depends-on): Likewise.
1965         * modules/mkostemp (Depends-on): Likewise.
1966         * modules/mkostemps (Depends-on): Likewise.
1967         * modules/mkstemp (Depends-on): Likewise.
1968         * modules/mkstemps (Depends-on): Likewise.
1969         * modules/mktime (Depends-on): Likewise.
1970         * modules/nanosleep (Depends-on): Likewise.
1971         * modules/open (Depends-on): Likewise.
1972         * modules/openat (Depends-on): Likewise.
1973         * modules/perror (Depends-on): Likewise.
1974         * modules/poll (Depends-on): Likewise.
1975         * modules/popen (Depends-on): Likewise.
1976         * modules/posix_spawn (Depends-on): Likewise.
1977         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1978         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1979         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1980         * modules/posix_spawnp (Depends-on): Likewise.
1981         * modules/pread (Depends-on): Likewise.
1982         * modules/printf-posix (Depends-on): Likewise.
1983         * modules/ptsname (Depends-on): Likewise.
1984         * modules/putenv (Depends-on): Likewise.
1985         * modules/pwrite (Depends-on): Likewise.
1986         * modules/readline (Depends-on): Likewise.
1987         * modules/readlink (Depends-on): Likewise.
1988         * modules/readlinkat (Depends-on): Likewise.
1989         * modules/recv (Depends-on): Likewise.
1990         * modules/recvfrom (Depends-on): Likewise.
1991         * modules/regex (Depends-on): Likewise.
1992         * modules/remove (Depends-on): Likewise.
1993         * modules/rename (Depends-on): Likewise.
1994         * modules/renameat (Depends-on): Likewise.
1995         * modules/rmdir (Depends-on): Likewise.
1996         * modules/round (Depends-on): Likewise.
1997         * modules/roundf (Depends-on): Likewise.
1998         * modules/roundl (Depends-on): Likewise.
1999         * modules/rpmatch (Depends-on): Likewise.
2000         * modules/select (Depends-on): Likewise.
2001         * modules/send (Depends-on): Likewise.
2002         * modules/sendto (Depends-on): Likewise.
2003         * modules/setenv (Depends-on): Likewise.
2004         * modules/setlocale (Depends-on): Likewise.
2005         * modules/setsockopt (Depends-on): Likewise.
2006         * modules/shutdown (Depends-on): Likewise.
2007         * modules/sigaction (Depends-on): Likewise.
2008         * modules/signbit (Depends-on): Likewise.
2009         * modules/sigprocmask (Depends-on): Likewise.
2010         * modules/sinl (Depends-on): Likewise.
2011         * modules/sleep (Depends-on): Likewise.
2012         * modules/snprintf (Depends-on): Likewise.
2013         * modules/snprintf-posix (Depends-on): Likewise.
2014         * modules/socket (Depends-on): Likewise.
2015         * modules/sprintf-posix (Depends-on): Likewise.
2016         * modules/sqrtl (Depends-on): Likewise.
2017         * modules/stat (Depends-on): Likewise.
2018         * modules/strchrnul (Depends-on): Likewise.
2019         * modules/strdup-posix (Depends-on): Likewise.
2020         * modules/strerror (Depends-on): Likewise.
2021         * modules/strerror_r-posix (Depends-on): Likewise.
2022         * modules/strndup (Depends-on): Likewise.
2023         * modules/strnlen (Depends-on): Likewise.
2024         * modules/strptime (Depends-on): Likewise.
2025         * modules/strsep (Depends-on): Likewise.
2026         * modules/strsignal (Depends-on): Likewise.
2027         * modules/strstr-simple (Depends-on): Likewise.
2028         * modules/strtod (Depends-on): Likewise.
2029         * modules/strtoimax (Depends-on): Likewise.
2030         * modules/strtok_r (Depends-on): Likewise.
2031         * modules/strtoumax (Depends-on): Likewise.
2032         * modules/symlink (Depends-on): Likewise.
2033         * modules/symlinkat (Depends-on): Likewise.
2034         * modules/tanl (Depends-on): Likewise.
2035         * modules/tcgetsid (Depends-on): Likewise.
2036         * modules/tmpfile (Depends-on): Likewise.
2037         * modules/trunc (Depends-on): Likewise.
2038         * modules/truncf (Depends-on): Likewise.
2039         * modules/truncl (Depends-on): Likewise.
2040         * modules/uname (Depends-on): Likewise.
2041         * modules/unlink (Depends-on): Likewise.
2042         * modules/unlockpt (Depends-on): Likewise.
2043         * modules/unsetenv (Depends-on): Likewise.
2044         * modules/usleep (Depends-on): Likewise.
2045         * modules/utimensat (Depends-on): Likewise.
2046         * modules/vasprintf (Depends-on): Likewise.
2047         * modules/vdprintf (Depends-on): Likewise.
2048         * modules/vdprintf-posix (Depends-on): Likewise.
2049         * modules/vfprintf-posix (Depends-on): Likewise.
2050         * modules/vprintf-posix (Depends-on): Likewise.
2051         * modules/vsnprintf (Depends-on): Likewise.
2052         * modules/vsnprintf-posix (Depends-on): Likewise.
2053         * modules/vsprintf-posix (Depends-on): Likewise.
2054         * modules/wcrtomb (Depends-on): Likewise.
2055         * modules/wcscasecmp (Depends-on): Likewise.
2056         * modules/wcscspn (Depends-on): Likewise.
2057         * modules/wcsdup (Depends-on): Likewise.
2058         * modules/wcsncasecmp (Depends-on): Likewise.
2059         * modules/wcsnrtombs (Depends-on): Likewise.
2060         * modules/wcspbrk (Depends-on): Likewise.
2061         * modules/wcsrtombs (Depends-on): Likewise.
2062         * modules/wcsspn (Depends-on): Likewise.
2063         * modules/wcsstr (Depends-on): Likewise.
2064         * modules/wcstok (Depends-on): Likewise.
2065         * modules/wcswidth (Depends-on): Likewise.
2066         * modules/wctob (Depends-on): Likewise.
2067         * modules/wctomb (Depends-on): Likewise.
2068         * modules/wctype (Depends-on): Likewise.
2069         * modules/wcwidth (Depends-on): Likewise.
2070         * modules/write (Depends-on): Likewise.
2071
2072 2011-05-03  Bruno Haible  <bruno@clisp.org>
2073
2074         Support for conditional dependencies.
2075         * doc/gnulib.texi (Module description): Document the syntax of
2076         conditional dependencies.
2077         * gnulib-tool: New option --conditional-dependencies.
2078         (func_usage): Document it.
2079         (cond_dependencies): New variable.
2080         (func_get_automake_snippet_conditional,
2081         func_get_automake_snippet_unconditional): New functions, extracted from
2082         func_get_automake_snippet.
2083         (func_get_automake_snippet): Use them.
2084         (sed_first_32_chars): New variable.
2085         (func_module_shellfunc_name): New function.
2086         (func_module_shellvar_name): New function.
2087         (func_module_conditional_name): New function.
2088         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2089         func_cond_module_condition): New functions.
2090         (func_modules_transitive_closure): Add support for conditional
2091         dependencies.
2092         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2093         conditional automake snippet in an automake conditional.
2094         (func_emit_autoconf_snippets): Emit shell functions that contain the
2095         code for conditional modules.
2096         (func_import, func_create_testdir): Update specification.
2097
2098 2011-05-03  Eric Blake  <eblake@redhat.com>
2099
2100         test-getaddrinfo: report error information
2101         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2102
2103 2011-05-03  Jim Meyering  <meyering@redhat.com>
2104
2105         bootstrap: avoid build failure when $GZIP is set
2106         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2107         program name.  If defined at all, it is supposed to list gzip options.
2108         Reported by Alan Curry in http://debbugs.gnu.org/8609
2109
2110 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2111
2112         readme-release: new module with release instructions
2113         * modules/readme-release: New module.
2114         * top/README-release: New file, from coreutils, grep, diffutils.
2115         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2116
2117 2011-05-02  Eric Blake  <eblake@redhat.com>
2118
2119         fflush: also replace fclose when fixing fflush
2120         * modules/fflush (Depends-on): Add fclose.
2121         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2122         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2123         memstreams with no backing fd.
2124         * doc/posix-functions/fclose.texi (fclose): Document the use of
2125         fflush module to fix the bug.
2126         * tests/test-fclose.c (main): Relax test when fclose is used in
2127         isolation.
2128
2129         fclose: add some tests
2130         * modules/fclose-tests: New test module.
2131         * tests/test-fclose.c: New file.
2132         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2133
2134         fclose: reduced dependencies
2135         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2136         simpler lseek.
2137         * lib/fclose.c (rpl_fclose): Likewise.
2138         Reported by Simon Josefsson.
2139
2140         exit: drop remaining clients
2141         * modules/argmatch (Depends-on): Replace exit with stdlib.
2142         * modules/copy-file (Depends-on): Likewise.
2143         * modules/execute (Depends-on): Likewise.
2144         * modules/exitfail (Depends-on): Likewise.
2145         * modules/obstack (Depends-on): Likewise.
2146         * modules/pagealign_alloc (Depends-on): Likewise.
2147         * modules/pipe-filter-gi (Depends-on): Likewise.
2148         * modules/pipe-filter-ii (Depends-on): Likewise.
2149         * modules/savewd (Depends-on): Likewise.
2150         * modules/spawn-pipe (Depends-on): Likewise.
2151         * modules/wait-process (Depends-on): Likewise.
2152         * modules/xsetenv (Depends-on): Likewise.
2153         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2154         * modules/git-merge-changelog (Depends-on): Likewise.
2155         * modules/long-options (Depends-on): Likewise.
2156         * modules/pt_chown (Depends-on): Likewise.
2157         * modules/sysexits (Depends-on): Likewise.
2158
2159         freading: relax license from LGPLv3+ to LGPLv2+
2160         * modules/freading (License): Relax LGPL version.
2161
2162 2011-05-02  Bruno Haible  <bruno@clisp.org>
2163
2164         fchdir: Remove unused dependencies.
2165         * modules/fchdir (Depends-on): Remove include_next.
2166
2167 2011-05-02  Bruno Haible  <bruno@clisp.org>
2168
2169         gnulib-tool: Refactor.
2170         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2171         from func_emit_autoconf_snippets.
2172         (func_emit_autoconf_snippets): Use it.
2173
2174 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2175
2176         * NEWS: Document removal of 'exit'.
2177         * modules/exit: Remove file.
2178
2179 2011-05-01  Bruno Haible  <bruno@clisp.org>
2180
2181         Update DEPENDENCIES.
2182         * DEPENDENCIES (gettext): Recommend the newest release.
2183         Reported by Simon Josefsson.
2184
2185 2011-05-01  Bruno Haible  <bruno@clisp.org>
2186
2187         gnulib-tool: Reduce code duplication.
2188         * gnulib-tool (func_emit_autoconf_snippets): New function.
2189         (func_import, func_create_testdir): Use it.
2190
2191 2011-04-30  Eric Blake  <eblake@redhat.com>
2192
2193         fclose: don't fail on non-seekable input stream
2194         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2195         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2196         since fflush is allowed to fail in that case.
2197
2198 2011-04-30  Bruno Haible  <bruno@clisp.org>
2199
2200         dup3: cleanup
2201         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2202
2203 2011-04-30  Bruno Haible  <bruno@clisp.org>
2204
2205         netdb: Make it work in C++ mode.
2206         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2207         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2208         module.
2209         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2210         gl_MODULE_INDICATOR_FOR_TESTS.
2211         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2212         * modules/netdb-c++-tests: New file.
2213         * tests/test-netdb-c++.cc: New file.
2214
2215 2011-04-30  Bruno Haible  <bruno@clisp.org>
2216
2217         New modules 'vfscanf', 'vscanf'.
2218         * modules/vfscanf: New file.
2219         * modules/vscanf: New file.
2220         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2221         here.
2222         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2223         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2224
2225 2011-04-30  Bruno Haible  <bruno@clisp.org>
2226
2227         passfd: Add comments.
2228         * lib/passfd.c: Add comments about platforms.
2229
2230 2011-04-30  Bruno Haible  <bruno@clisp.org>
2231
2232         sys_uio: Make <sys/uio.h> self-contained.
2233         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2234         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2235
2236 2011-04-30  Bruno Haible  <bruno@clisp.org>
2237
2238         sys_socket: Ensure 'struct iovec' definition.
2239         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2240         <sys/socket.h>.
2241         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2242
2243 2011-04-30  Bruno Haible  <bruno@clisp.org>
2244
2245         sys_uio: Protect definition of 'struct iovec'.
2246         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2247         it as a C struct.
2248
2249 2011-04-30  Bruno Haible  <bruno@clisp.org>
2250
2251         manywarnings: fix indentation
2252         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2253
2254 2011-04-30  Pádraig Brady <P@draigBrady.com>
2255
2256         manywarnings: add -Wno-missing-field-initializers if needed.
2257         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2258         option if it's needed to allow initialization with { 0, }
2259
2260 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2261
2262         announce-gen: cosmetic improvement
2263         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2264
2265 2011-04-29  Jim Meyering  <meyering@redhat.com>
2266
2267         vc-list-files: indent with spaces, not TABs
2268         * build-aux/vc-list-files: Convert leading TABs to spaces,
2269         to match the style of most other files in gnulib.
2270
2271         announce-gen: indent with spaces, not TABs
2272         * build-aux/announce-gen: Convert all TABs to spaces, to match
2273         the style of most other files in gnulib.
2274
2275 2011-04-29  Eric Blake  <eblake@redhat.com>
2276
2277         quotearg: avoid uninitialized variable use
2278         * lib/quotearg.c (quoting_options_from_style): Initialize
2279         remaining fields, and ensure that custom styles are only used via
2280         quoting_options rather than quoting_style.
2281
2282 2011-04-29  Jim Meyering  <meyering@redhat.com>
2283
2284         maint.mk: remove unused VC-tag variable
2285         * top/maint.mk (VC-tag): Remove unused variable.
2286
2287 2011-04-29  Bruno Haible  <bruno@clisp.org>
2288
2289         netdb: fix gai_strerror replacements
2290         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2291         * modules/netdb: Substitute it.
2292
2293 2011-04-29  Jim Meyering  <meyering@redhat.com>
2294
2295         test-getcwd.c: avoid new set-but-not-used warning
2296         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2297         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2298         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2299         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2300
2301         test-hash.c: avoid a new shadowing warning
2302         * tests/test-hash.c (main): Don't shadow "dup".
2303
2304 2011-04-28  Eric Blake  <eblake@redhat.com>
2305
2306         getaddrinfo: fix gai_strerror signature
2307         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2308         and work around mingw with UNICODE defined.
2309         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2310         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2311         * modules/netdb (Makefile.am): Substitute it.
2312         * lib/netdb.in.h (gai_strerror): Declare replacement.
2313         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2314         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2315         the fix.
2316
2317         getsockopt: avoid compiler warning
2318         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2319         Reported by Matthias Bolte.
2320
2321         tests: drop unused link dependency
2322         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2323         * modules/dirent-safer-tests (Makefile.am): Likewise.
2324         * modules/fdopendir-tests (Makefile.am): Likewise.
2325         * modules/mkfifoat-tests (Makefile.am): Likewise.
2326         * modules/openat-safer-tests (Makefile.am): Likewise.
2327         * modules/openat-tests (Makefile.am): Likewise.
2328         * modules/readlinkat-tests (Makefile.am): Likewise.
2329         * modules/symlinkat-tests (Makefile.am): Likewise.
2330         * modules/linkat-tests (Makefile.am): Likewise.
2331         (Depends-on): Switch to filenamecat-lgpl.
2332         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2333         LIBINTL.
2334         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2335         * tests/test-linkat.c (main): Don't require xalloc.
2336
2337         hash, mgetgroups: drop xalloc dependency
2338         * lib/hash.c (includes): Adjust includes.
2339         * lib/mgetgroups.c (includes): Likewise.
2340         (xgetgroups): Move...
2341         * lib/xgetgroups.c: ...to new file.
2342         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2343         * modules/xgetgroups: New file, split from...
2344         * modules/mgetgroups: ...here.
2345         (Depends-on): Add xalloc-oversized.
2346         * modules/hash (Depends-on): Likewise.
2347         * modules/hash-tests (Depends-on): Drop xalloc.
2348         (test_hash_LDADD): Drop unused library.
2349         * tests/test-hash.c (main): Break xalloc dependency.
2350         (includes): Drop unused include.
2351
2352         xalloc-oversized: new module
2353         * modules/xalloc-oversized: New module.
2354         * modules/xalloc (Depends-on): Add it.
2355         * lib/xalloc.h (xalloc_oversized): Move...
2356         * lib/xalloc-oversized.h: ...into new file.
2357
2358         utimecmp: drop dependency on xmalloc
2359         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2360         due to memory pressure.
2361         * modules/utimecmp (Depends-on): Drop xalloc.
2362
2363 2011-04-27  Eric Blake  <eblake@redhat.com>
2364
2365         getcwd: fix mingw bugs
2366         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2367         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2368         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2369
2370 2011-04-27  Bruno Haible  <bruno@clisp.org>
2371
2372         mkstemps: Ensure declaration on MacOS X 10.5.
2373         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2374         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2375         MacOS X.
2376
2377 2011-04-27  Bruno Haible  <bruno@clisp.org>
2378
2379         mkstemp: More documentation.
2380         * doc/posix-functions/mkstemp.texi: Document header file problem on
2381         MacOS X.
2382
2383 2011-04-27  Bruno Haible  <bruno@clisp.org>
2384
2385         mkstemp: Tweak configure message when cross-compiling.
2386         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2387         result as a guess.
2388
2389 2011-04-27  Bruno Haible  <bruno@clisp.org>
2390
2391         clean-temp: Clarify what it does.
2392         * lib/clean-temp.h: Add more comments.
2393         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2394         module.
2395         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2396         * doc/glibc-functions/mkstemps.texi: Likewise.
2397         * doc/glibc-functions/mkostemps.texi: Likewise.
2398
2399 2011-04-27  Eric Blake  <eblake@redhat.com>
2400
2401         fchdir: avoid extra chdir and fix test
2402         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2403         getcwd-lgpl.
2404         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2405         have to be canonical.
2406         (canonicalize_file_name): Drop unused macro.
2407         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2408
2409         filenamecat-lgpl: fix licence
2410         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2411         when it was first created.
2412
2413         linkat, renameat: add missing dependency
2414         * modules/linkat (Depends-on): Require getcwd-lgpl.
2415         * modules/renameat (Depends-on): Likewise.
2416
2417         tests: reduce dependencies
2418         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2419         * tests/test-renameat.c (main): Likewise.
2420         * modules/linkat-tests (Depends-on): Relax dependency.
2421         * modules/renameat-tests (Depends-on): Likewise.
2422         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2423         dependency explicit.
2424
2425         save-cwd: reduce default dependency
2426         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2427         * lib/save-cwd.c: Update comments.
2428         * NEWS: Document the semantic change.
2429
2430         getcwd: enhance tests
2431         * tests/test-getcwd-lgpl.c: New file, taken from...
2432         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2433         repeat long path stress tests from m4 probe.
2434         * modules/getcwd-lgpl-tests: New module.
2435         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2436         * m4/getcwd-abort-bug.m4: Update comment.
2437         * m4/getcwd-path-max.m4: Likewise.
2438
2439         getcwd-lgpl: new module
2440         * modules/getcwd-lgpl: New module.
2441         * lib/getcwd-lgpl.c: New file.
2442         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2443         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2444         * modules/getcwd (configure.ac): Set C witness.
2445         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2446
2447         getcwd: tweak comments
2448         * m4/getcwd-abort-bug.m4: Fix comments.
2449         * m4/getcwd-path-max.m4: Likewise.
2450         * m4/getcwd.m4: Likewise.
2451
2452 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2453         and Eric Blake  <eblake@redhat.com>
2454
2455         mkstemp: replace if system version uses wrong permissions
2456         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2457         read/write mode bits set in file created by mkstemp.
2458         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2459
2460 2011-04-27  Eric Blake  <eblake@redhat.com>
2461
2462         passfd: avoid compiler warning
2463         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2464         Reported by Laine Stump.
2465
2466 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2467
2468         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2469         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2470
2471 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2472         and Eric Blake  <eblake@redhat.com>
2473
2474         mkstemp: mention clean-temp module
2475         * lib/mkstemp.c: Add comment.
2476         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2477
2478 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2479
2480         inttypes: also provide default values for 32-bit tests
2481         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2482         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2483
2484 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2485
2486         strtoumax: remove dependency on strtoimax
2487         This is like the strtoull change of yesterday.
2488         * modules/strtoumax (Files): Add lib/strtoimax.c.
2489         (Depends-on): Remove strtoimax and add verify.
2490
2491         inttypes-incomplete: new module
2492         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2493         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2494         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2495         of gl_INTTYPES_H.
2496         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2497         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2498         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2499         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2500         * modules/strtoumax, modules/xstrtol (Depends-on):
2501         Depend on inttypes-incomplete, not inttypes.
2502         * modules/inttypes-incomplete: New module, containing the contents
2503         of the old modules/inttypes module, except that the Files: section
2504         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2505         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2506         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2507         (Depends-on): Depend only on inttypes-incomplete.
2508         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2509
2510         inttypes: omit now-redundant strtoimax and strtoumax work
2511         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2512         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2513
2514         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2515         This supports apps that need pointers to strtoimax and strtoumax,
2516         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2517         nonexistent functions.  See
2518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2519         et seq.
2520         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2521         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2522         a macro.
2523         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2524
2525 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2526
2527         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2528
2529 2011-04-25  Bruno Haible  <bruno@clisp.org>
2530
2531         strtol, strtoul: Mark modules as obsolete.
2532         * modules/strtol (Status, Notice): New sections.
2533         * modules/strtoul (Status, Notice): New sections.
2534
2535 2011-04-25  Bruno Haible  <bruno@clisp.org>
2536
2537         strtod: Remove check for strtod, unless supporting old platforms.
2538         * modules/strtod-obsolete: New file.
2539         * m4/strtod-obsolete.m4: New file.
2540         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2541         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2542         * modules/strtod (Depends-on): Add strtod-obsolete.
2543         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2544
2545 2011-04-25  Bruno Haible  <bruno@clisp.org>
2546
2547         strcase: Make module obsolete.
2548         * modules/strcase (Status, Notice): New sections.
2549
2550 2011-04-25  Bruno Haible  <bruno@clisp.org>
2551
2552         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2553         * modules/dup2-obsolete: New file.
2554         * m4/dup2-obsolete.m4: New file.
2555         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2556         gl_FUNC_DUP2_OBSOLETE is not also defined.
2557         * modules/dup2 (Depends-on): Add dup2-obsolete.
2558         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2559
2560 2011-04-25  Bruno Haible  <bruno@clisp.org>
2561
2562         strnlen: Avoid memchr related link error on old obsolete platforms.
2563         * modules/memchr-obsolete: New file.
2564         * m4/memchr-obsolete.m4: New file.
2565         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2566         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2567         * modules/memchr (Depends-on): Add memchr-obsolete.
2568         * modules/strnlen (Depends-on): Likewise.
2569         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2570
2571 2011-04-25  Jim Meyering  <meyering@redhat.com>
2572
2573         maint.mk: makefile_at_at_check extend and clean up
2574         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2575         in addition to */Makefile.am.
2576         Exempt legitimate uses of @VAR@ notation, e.g.,
2577         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2578         Remove obsolete coreutils-specific comment.
2579         Prompted by discussion here:
2580         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2581
2582 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2583
2584         strtoul: remove dependency on strtol
2585         This is so that 'configure' need not check for strtol merely because
2586         the application needs strtoul.
2587         * modules/strtoul (Files): Add lib/strtol.c.
2588         (Depends-on): Remove strtol.
2589
2590         strtoull: remove dependency on strtoul
2591         This is like the strtoll change.
2592         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2593         (Depends-on): Remove strtoul.
2594
2595         strtoll: remove dependency on strtol
2596         This is so that 'configure' need not check for strtol merely because
2597         the application needs strtoll.
2598         * modules/strtoll (Files): Add lib/strtol.c.
2599         (Depends-on): Remove strtol.
2600
2601 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2602
2603         inttypes: Move some configure check to module 'imaxdiv'.
2604         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2605         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2606         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2607
2608 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2609
2610         inttypes: Move some configure check to module 'imaxabs'.
2611         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2612         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2613         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2614
2615 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2616
2617         inttypes: Remove configure tests that are not needed since 2009-12-31.
2618         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2619         gl_cv_header_working_inttypes_h.
2620
2621 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2622
2623         * modules/strnlen (Depends-on): Remove memchr.
2624         The strnlen implementation doesn't need the memchr module's fixes; see
2625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2626
2627         strtol: remove dependency on wchar
2628         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2629         * modules/strtol (Depends-on): Remove wchar.
2630
2631 2011-04-21  Eric Blake  <eblake@redhat.com>
2632
2633         passfd: fix test regression on Linux
2634         * modules/passfd-tests (configure.ac): Correct socketpair check.
2635
2636         passfd: speed up configure and drop unused code
2637         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2638         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2639         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2640         Instead of probing at configure for unix_scm_rights_bsd44_way,
2641         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2642         check to a struct member probe.
2643         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2644         (sendfd, recvfd): Update preprocessor checks.
2645         * modules/passfd (Files): Reflect rename, and drop unused file.
2646         (Depends-on): Drop unused dependency.
2647
2648         passfd: allow compilation on mingw
2649         * modules/sys_socket (Depends-on): Add sys_uio.
2650         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2651         iovec and a minimal struct msghdr.
2652         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2653         * tests/test-sys_socket.c (main): Enhance test.
2654         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2655         guaranteed to provide what we need.
2656         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2657         * modules/passfd-tests (Depends-on): Add sys_wait.
2658         * tests/test-passfd.c (main): Skip test on mingw, for now.
2659         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2660         partial 'struct msghdr' implementation.
2661
2662         sys_uio: new module
2663         * modules/sys_uio: New module.
2664         * modules/sys_uio-tests: Likewise.
2665         * lib/sys_uio.in.h: New file.
2666         * m4/sys_uio_h.m4: Likewise.
2667         * tests/test-sys_uio.c: Likewise.
2668         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2669         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2670
2671 2011-04-20  Jim Meyering  <meyering@redhat.com>
2672
2673         useless-if-before-free: avoid false-positive
2674         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2675         disjunct so that it too requires a terminating ";".  Without that,
2676         this script would identify as useless one statement from gcc that
2677         was not:
2678           if (aligned_ptr)
2679             free (((void **) aligned_ptr) [-1]);
2680
2681 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2682
2683         doc: update users.txt.
2684         * users.txt: Add barcode.
2685
2686 2011-04-19  Bruno Haible  <bruno@clisp.org>
2687
2688         ioctl: Remove link dependency on native Windows.
2689         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2690         (gl_close_fn, gl_ioctl_fn): New types.
2691         (struct fd_hook): Renamed from struct close_hook. Change type of
2692         private_close_fn field. Add private_ioctl_fn field.
2693         (close_hook_fn): Add parameter for primary close method.
2694         (execute_close_hooks, execute_all_close_hooks): Likewise.
2695         (ioctl_hook_fn): New type.
2696         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2697         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2698         argument.
2699         (unregister_fd_hook): Renamed from unregister_close_hook.
2700         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2701         Don't include <unistd.h>.
2702         (close): Remove undef.
2703         (anchor): Update.
2704         (execute_close_hooks): Add argument for primary close method.
2705         (execute_all_close_hooks): Likewise.
2706         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2707         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2708         argument. Allow each argument to be NULL.
2709         (unregister_fd_hook): Renamed from unregister_close_hook.
2710         * lib/close.c (rpl_close): Pass 'close' function pointer to
2711         execute_all_close_hooks.
2712         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2713         (primary_ioctl): New function.
2714         (ioctl): Don't call ioctlsocket here. Instead, call
2715         execute_all_ioctl_hooks.
2716         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2717         close method.
2718         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2719         (fd_sockets_hook): Renamed from close_sockets_hook.
2720         (gl_sockets_startup, gl_sockets_cleanup): Update.
2721         * modules/fd-hook: Renamed from modules/close-hook. Update.
2722         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2723         * modules/sockets (Depends-on): Likewise.
2724         * modules/ioctl (Depends-on): Add fd-hook.
2725         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2726         GNULIB_SOCKET.
2727
2728 2011-04-19  Bruno Haible  <bruno@clisp.org>
2729
2730         Move the support of O_NONBLOCK in open() to the 'open' module.
2731         * modules/nonblocking (Depends-on): Remove 'open'.
2732         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2733         gl_cv_have_open_O_NONBLOCK.
2734         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2735         O_NONBLOCK support.
2736         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2737
2738 2011-04-17  Bruno Haible  <bruno@clisp.org>
2739
2740         pipe2: Simplify code.
2741         * lib/pipe2.c (pipe2): Reduce code duplication.
2742
2743 2011-04-17  Bruno Haible  <bruno@clisp.org>
2744
2745         nonblocking: Add comment.
2746         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2747
2748 2011-04-17  Bruno Haible  <bruno@clisp.org>
2749
2750         nonblocking: Add tests for sockets.
2751         * tests/test-nonblocking-socket.sh: New file.
2752         * tests/test-nonblocking-socket-main.c: New file.
2753         * tests/test-nonblocking-socket-child.c: New file.
2754         * tests/test-nonblocking-socket.h: New file.
2755         * tests/socket-server.h: New file.
2756         * tests/socket-client.h: New file.
2757         * modules/nonblocking-socket-tests: New file.
2758         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2759
2760 2011-04-17  Bruno Haible  <bruno@clisp.org>
2761
2762         nonblocking: Add tests for pipes.
2763         * tests/test-nonblocking-pipe.sh: New file.
2764         * tests/test-nonblocking-pipe-main.c: New file.
2765         * tests/test-nonblocking-pipe-child.c: New file.
2766         * tests/test-nonblocking-pipe.h: New file.
2767         * tests/test-nonblocking-writer.h: New file.
2768         * tests/test-nonblocking-reader.h: New file.
2769         * tests/test-nonblocking-misc.h: New file.
2770         * modules/nonblocking-pipe-tests: New file.
2771         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2772
2773 2011-04-16  Bruno Haible  <bruno@clisp.org>
2774
2775         gettext: Clarify the needed programmer actions.
2776         * modules/gettext (Notice): New field.
2777         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2778
2779 2011-04-16  Bruno Haible  <bruno@clisp.org>
2780
2781         strchrnul: Tweak last commit.
2782         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2783         bug.
2784         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2785         as in _GL_FUNCDECL_SYS.
2786         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2787         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2788
2789 2011-04-15  Eric Blake  <eblake@redhat.com>
2790
2791         strchrnul: work around cygwin bug
2792         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2793         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2795         * modules/string (Makefile.am): Substitute it.
2796         * lib/string.in.h (strchrnul): Use it.
2797
2798 2011-04-15  Bruno Haible  <bruno@clisp.org>
2799
2800         Don't require lib/stdio-write.c when only module 'stdio' is used.
2801         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2802         invocation.
2803         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2804
2805 2011-04-14  Bruno Haible  <bruno@clisp.org>
2806
2807         Support non-blocking pipe I/O in read() on native Windows.
2808         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2809         (read): New declaration.
2810         * lib/read.c: New file.
2811         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2812         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2813         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2814         vscanf): New declarations.
2815         * lib/stdio-read.c: New file.
2816         * m4/read.m4: New file.
2817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2818         REPLACE_READ.
2819         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2820         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2821         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2822         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2823         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2824         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2825         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2826         * modules/read: New file.
2827         * modules/nonblocking (Files): Add lib/stdio-read.c.
2828         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2829         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2830         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2831         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2832         * modules/pread (Depends-on): Add read.
2833         * modules/safe-read (Depends-on): Likewise.
2834         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2835         gets, scanf, vfscanf, vscanf): Verify signatures.
2836         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2837         problem with non-blocking pipes.
2838         * doc/posix-functions/fgetc.texi: Likewise.
2839         * doc/posix-functions/fgets.texi: Likewise.
2840         * doc/posix-functions/fread.texi: Likewise.
2841         * doc/posix-functions/fscanf.texi: Likewise.
2842         * doc/posix-functions/getc.texi: Likewise.
2843         * doc/posix-functions/getchar.texi: Likewise.
2844         * doc/posix-functions/gets.texi: Likewise.
2845         * doc/posix-functions/scanf.texi: Likewise.
2846         * doc/posix-functions/vfscanf.texi: Likewise.
2847         * doc/posix-functions/vscanf.texi: Likewise.
2848
2849 2011-04-14  Bruno Haible  <bruno@clisp.org>
2850
2851         Support non-blocking pipe I/O in write() on native Windows.
2852         * lib/write.c (rpl_write): Split a write request that failed merely
2853         because the byte count was larger than the pipe buffer's size.
2854         * doc/posix-functions/write.texi: Mention the problem with large byte
2855         counts.
2856
2857 2011-04-14  Bruno Haible  <bruno@clisp.org>
2858
2859         wchar: Ensure that wchar_t gets defined on uClibc.
2860         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2861         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2862
2863 2011-04-13  Bruno Haible  <bruno@clisp.org>
2864
2865         safe-write, full-read: Avoid unnecessary compilation units.
2866         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2867         (Depends-on): Remove safe-read. Add ssize_t.
2868         * modules/full-read (Files): Add lib/full-write.c.
2869         (Depends-on): Add full-write.
2870
2871 2011-04-13  Bruno Haible  <bruno@clisp.org>
2872
2873         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2874         * modules/pwrite (Depends-on): Add 'write'.
2875
2876 2011-04-13  Bruno Haible  <bruno@clisp.org>
2877
2878         Support non-blocking pipe I/O in write() on native Windows.
2879         * lib/unistd.in.h (write): Enable replacement also if
2880         GNULIB_UNISTD_H_NONBLOCKING is 1.
2881         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2882         (rpl_write): When failing to write on a non-blocking pipe, change
2883         errno from ENOSPC to EAGAIN.
2884         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2885         putchar, puts, vfprintf, vprintf): Enable replacement also if
2886         GNULIB_STDIO_H_NONBLOCKING is 1.
2887         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2888         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2889         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2890         CALL_WITH_SIGPIPE_EMULATION.
2891         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2892         * m4/nonblocking.m4: New file.
2893         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2894         for non-blocking I/O support.
2895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2896         GNULIB_UNISTD_H_NONBLOCKING.
2897         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2898         required for non-blocking I/O support.
2899         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2900         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2901         lib/stdio-write.c, m4/asm-underscore.m4.
2902         (Depends-on): Add stdio, unistd.
2903         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2904         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2905         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2906         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2907         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2908         problem with non-blocking pipes.
2909         * doc/posix-functions/fputc.texi: Likewise.
2910         * doc/posix-functions/fputs.texi: Likewise.
2911         * doc/posix-functions/fwrite.texi: Likewise.
2912         * doc/posix-functions/printf.texi: Likewise.
2913         * doc/posix-functions/putc.texi: Likewise.
2914         * doc/posix-functions/putchar.texi: Likewise.
2915         * doc/posix-functions/puts.texi: Likewise.
2916         * doc/posix-functions/vfprintf.texi: Likewise.
2917         * doc/posix-functions/vprintf.texi: Likewise.
2918         * doc/posix-functions/write.texi: Likewise.
2919
2920 2011-04-10  Jim Meyering  <meyering@redhat.com>
2921
2922         maint.mk: prohibit doubled words
2923         Detect them also when they're separated by a newline.
2924         There are 3 ways to customize it:
2925           - disable the test on a per file basis, as usual with rules using
2926             $(VC_LIST_EXCEPT)
2927           - replace the default doubled-word-selecting regexp (affects all files)
2928           - ignore a particular file-vs-doubled-word match
2929         I nearly used that last one to ignore the "is is" match in
2930         coreutils' NEWS file, since the text was "ls -is is ..."
2931         To do that, I would have added this line to cfg.mk:
2932           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2933         but it would have ignored any "is is" match in NEWS.
2934         Low probability, but still...
2935         Instead, I changed the text, slightly:
2936           -  ls -is is now consistent with ls -lis in ignoring values returned
2937           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2938         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2939         (prohibit_doubled_word_): Define.
2940         (sc_prohibit_doubled_word): New rule.
2941         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2942
2943 2011-04-10  Jim Meyering  <meyering@redhat.com>
2944
2945         maint: fix doubled-word typo in comment
2946         * m4/gethostname.m4: s/is is/it is/
2947         * m4/getdomainname.m4: Likewise.
2948
2949 2011-04-10  Jim Meyering  <meyering@redhat.com>
2950
2951         maint: remove doubled word: s/it it/it/
2952         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2953
2954 2011-04-10  Jim Meyering  <meyering@redhat.com>
2955
2956         maint.mk: remove useless semicolon and backslash
2957         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2958         semicolon and backslash.
2959
2960 2011-04-10  Bruno Haible  <bruno@clisp.org>
2961
2962         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2963         * modules/stdint-tests (Depends-on): Add wchar.
2964
2965 2011-04-10  Jim Meyering  <meyering@redhat.com>
2966
2967         maint: remove doubled words in comments, e.g., s/a a/a/
2968         * lib/strptime.c (day_of_the_week): s/the the/the/
2969         * tests/test-chown.h (test_chown): s/a a/a/
2970
2971         test-chown.h: correct a cast
2972         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2973         when the destination is a stat.st_gid.
2974
2975 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2976
2977         getaddrinfo: Fix test for sa_len member.
2978         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2979         include <sys/types.h> before <sys/socket.h>.
2980
2981 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2982
2983         maint: change "can not" to "cannot"
2984         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2985         boundaries.
2986
2987 2011-04-09  Jim Meyering  <meyering@redhat.com>
2988
2989         maint: change "a a" to "a"
2990         * tests/test-lchown.h (test_lchown): s/a a/a/
2991
2992         maint.mk: prohibit \<the the\>
2993         * top/maint.mk (sc_prohibit_the_the): New rule.
2994
2995         maint: fix "the the" in comment
2996         * lib/count-one-bits.h: s/the the/the/
2997
2998         maint: change "can not" to "cannot"
2999         But do not change the occurrences in maintain.texi or in
3000         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3001         * doc/gnulib-tool.texi: s/can not/cannot/
3002         * doc/posix-functions/accept.texi (accept): Likewise.
3003         * doc/posix-functions/socket.texi (socket): Likewise.
3004         * lib/mbrtowc.c: Likewise.
3005
3006         maint.mk: prohibit use of "can not"
3007         * top/maint.mk (sc_prohibit_can_not): New rule.
3008         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3009
3010 2011-04-09  Bruno Haible  <bruno@clisp.org>
3011
3012         careadlinkat: Guard against misuse of careadlinkatcwd.
3013         * lib/careadlinkat.c: Include <stdlib.h>.
3014         (careadlinkatcwd): Check that the fd argument is as expected.
3015
3016 2011-04-09  Bruno Haible  <bruno@clisp.org>
3017
3018         careadlinkat: Use common coding style.
3019         * lib/careadlinkat.c: Move gnulib includes after system includes.
3020
3021 2011-04-09  Bruno Haible  <bruno@clisp.org>
3022
3023         careadlinkat: Clarify specification.
3024         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3025         (careadlinkatcwd): Add comment.
3026         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3027
3028 2011-04-09  Bruno Haible  <bruno@clisp.org>
3029
3030         areadlinkat: Avoid link error on many platforms.
3031         * modules/areadlinkat (Depends-on): Add areadlink.
3032
3033 2011-04-09  Bruno Haible  <bruno@clisp.org>
3034
3035         allocator, careadlinkat: Fix double-inclusion guard.
3036         * lib/allocator.h: Fix double-inclusion guard.
3037         * lib/careadlinkat.h: Likewise.
3038
3039 2011-04-09  Bruno Haible  <bruno@clisp.org>
3040
3041         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3042         * lib/relocwrapper.c: Update dependencies hierarchy.
3043         * build-aux/install-reloc: Update list of files to be compiled.
3044         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3045         lib/allocator.[hc].
3046
3047 2011-04-08  Eric Blake  <eblake@redhat.com>
3048
3049         strftime: silence gnulib-tool warning
3050         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3051
3052 2011-04-08  Bruno Haible  <bruno@clisp.org>
3053
3054         verify: Fix syntax error with GCC 4.6 in C++ mode.
3055         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3056         (HAVE_STATIC_ASSERT): New macro.
3057         (verify_true, verify): Use 'static_assert' if it is supported and
3058         '_Static_assert' is not supported.
3059
3060 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3061
3062         allocator: New module.
3063         * modules/allocator, lib/allocator.c: New files.
3064         * lib/allocator.h (stdlib_allocator): New decl.
3065         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3066         Remove.  Do not include <stdlib.h>.
3067         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3068         * modules/careadlinkat (Files): Remove lib/allocator.h.
3069         (Depends-on): Add allocator.
3070
3071         stdlib: let modules use system malloc, realloc
3072         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3073         if !_GL_USE_STDLIB_ALLOC.
3074         (malloc, realloc): Limit this change to a smaller scope.
3075
3076         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3077         (malloc, realloc): Don't #undef; no longer needed.
3078         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3079         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3080         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3081         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3082         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3083         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3084         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3085         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3086
3087         careadlinkat: rename members to avoid problem
3088         * lib/allocator.h (struct allocator): Rename members from
3089         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3090         and realloc are #define'd.  Reported by Eric Blake in
3091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3092         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3093
3094 2011-04-08  Eric Blake  <eblake@redhat.com>
3095
3096         nonblocking: reduce dependency
3097         * tests/test-nonblocking.c: Only test sockets when in use.
3098         * modules/nonblocking-tests (Depends-on): Drop socket.
3099         (Makefile.am): Link even if sockets are not present.
3100         * modules/pipe2-tests (Makefile.am): Likewise.
3101         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3102
3103         pipe2: fix O_NONBLOCK support on mingw
3104         * modules/pipe2 (Depends-on): Add nonblocking.
3105         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3106         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3107         * tests/test-nonblocking.c (main): Likewise.
3108         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3109
3110         fcntl-h: fix O_ACCMODE on cygwin
3111         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3112         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3113
3114         pipe-filter: drop O_NONBLOCK workarounds
3115         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3116         * modules/pipe-filter-ii (Depends-on): Likewise.
3117         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3118
3119         nonblocking: provide O_NONBLOCK for mingw
3120         * modules/nonblocking (Depends-on): Add open.
3121         (configure.ac): Set new witness macro.
3122         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3123         * modules/fcntl-h (Makefile.am): Substitute it.
3124         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3125         nonblocking module is in use.
3126         * lib/nonblocking.c: Adjust portability test.
3127         * lib/open.c (open): Don't let native open see gnulib flag.
3128         * tests/test-fcntl-h.c (main): Enhance test.
3129         * tests/test-open.h (test_open): Likewise.
3130         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3131
3132         careadlinkat: fix compilation error on mingw
3133         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3134         within struct allocator.
3135
3136 2011-04-06  Eric Blake  <eblake@redhat.com>
3137
3138         binary-io: relicense under LGPLv2+
3139         * modules/binary-io (License): Relax to LGPLv2+.
3140         Requested for libvirt, and required by pipe2.
3141
3142 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3143
3144         verify: use _Static_assert if available
3145         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3146         (verify_true, verify): Use it if available.  This generates better
3147         diagnostics with GCC 4.6.0 and later.
3148
3149 2011-04-05  Bruno Haible  <bruno@clisp.org>
3150
3151         Remove leftover generated .h files after config.status changed.
3152
3153         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3154         GL_GENERATE_ALLOCA_H.
3155         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3156         GL_GENERATE_ALLOCA_H evaluates to false.
3157
3158         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3159         GL_GENERATE_ARGZ_H.
3160         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3161         evaluates to false.
3162
3163         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3164         GL_GENERATE_BYTESWAP_H.
3165         * modules/byteswap (Makefile.am): Remove byteswap.h if
3166         GL_GENERATE_BYTESWAP_H evaluates to false.
3167
3168         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3169         GL_GENERATE_ERRNO_H.
3170         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3171         evaluates to false.
3172
3173         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3174         GL_GENERATE_FLOAT_H.
3175         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3176         evaluates to false.
3177
3178         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3179         GL_GENERATE_FNMATCH_H.
3180         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3181         GL_GENERATE_FNMATCH_H evaluates to false.
3182
3183         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3184         GL_GENERATE_GLOB_H.
3185         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3186         evaluates to false.
3187
3188         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3189         automake conditional GL_GENERATE_ICONV_H.
3190         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3191         evaluates to false.
3192
3193         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3194         GL_GENERATE_NETINET_IN_H.
3195         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3196         GL_GENERATE_NETINET_IN_H evaluates to false.
3197
3198         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3199         conditional GL_GENERATE_PTHREAD_H.
3200         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3201         * modules/pthread (Makefile.am): Remove pthread.h if
3202         GL_GENERATE_PTHREAD_H evaluates to false.
3203
3204         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3205         GL_GENERATE_SCHED_H.
3206         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3207         evaluates to false.
3208
3209         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3210         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3211         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3212         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3213
3214         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3215         GL_GENERATE_STDARG_H.
3216         * modules/stdarg (Makefile.am): Remove stdarg.h if
3217         GL_GENERATE_STDARG_H evaluates to false.
3218
3219         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3220         GL_GENERATE_STDBOOL_H.
3221         * modules/stdbool (Makefile.am): Remove stdbool.h if
3222         GL_GENERATE_STDBOOL_H evaluates to false.
3223
3224         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3225         conditional GL_GENERATE_STDDEF_H.
3226         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3227         * modules/stddef (Makefile.am): Remove stddef.h if
3228         GL_GENERATE_STDDEF_H evaluates to false.
3229
3230         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3231         GL_GENERATE_STDINT_H.
3232         * modules/stdint (Makefile.am): Remove stdint.h if
3233         GL_GENERATE_STDINT_H evaluates to false.
3234
3235         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3236         GL_GENERATE_SYSEXITS_H.
3237         * modules/sysexits (Makefile.am): Remove sysexits.h if
3238         GL_GENERATE_SYSEXITS_H evaluates to false.
3239
3240         Reported by Karl Berry and Ralf Wildenhues.
3241
3242 2011-04-05  Bruno Haible  <bruno@clisp.org>
3243
3244         Ensure to rebuild generated .h files when config.status has changed.
3245         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3246         config.status.
3247         * modules/ctype (Makefile.am): Likewise.
3248         * modules/dirent (Makefile.am): Likewise.
3249         * modules/errno (Makefile.am): Likewise.
3250         * modules/fcntl-h (Makefile.am): Likewise.
3251         * modules/float (Makefile.am): Likewise.
3252         * modules/getopt-posix (Makefile.am): Likewise.
3253         * modules/glob (Makefile.am): Likewise.
3254         * modules/iconv-h (Makefile.am): Likewise.
3255         * modules/inttypes (Makefile.am): Likewise.
3256         * modules/langinfo (Makefile.am): Likewise.
3257         * modules/locale (Makefile.am): Likewise.
3258         * modules/math (Makefile.am): Likewise.
3259         * modules/netdb (Makefile.am): Likewise.
3260         * modules/netinet_in (Makefile.am): Likewise.
3261         * modules/poll-h (Makefile.am): Likewise.
3262         * modules/pthread (Makefile.am): Likewise.
3263         * modules/pty (Makefile.am): Likewise.
3264         * modules/sched (Makefile.am): Likewise.
3265         * modules/search (Makefile.am): Likewise.
3266         * modules/selinux-h (Makefile.am): Likewise.
3267         * modules/signal (Makefile.am): Likewise.
3268         * modules/spawn (Makefile.am): Likewise.
3269         * modules/stdarg (Makefile.am): Likewise.
3270         * modules/stdbool (Makefile.am): Likewise.
3271         * modules/stddef (Makefile.am): Likewise.
3272         * modules/stdint (Makefile.am): Likewise.
3273         * modules/stdio (Makefile.am): Likewise.
3274         * modules/stdlib (Makefile.am): Likewise.
3275         * modules/string (Makefile.am): Likewise.
3276         * modules/strings (Makefile.am): Likewise.
3277         * modules/sys_file (Makefile.am): Likewise.
3278         * modules/sys_ioctl (Makefile.am): Likewise.
3279         * modules/sys_select (Makefile.am): Likewise.
3280         * modules/sys_socket (Makefile.am): Likewise.
3281         * modules/sys_stat (Makefile.am): Likewise.
3282         * modules/sys_time (Makefile.am): Likewise.
3283         * modules/sys_times (Makefile.am): Likewise.
3284         * modules/sys_utsname (Makefile.am): Likewise.
3285         * modules/sys_wait (Makefile.am): Likewise.
3286         * modules/sysexits (Makefile.am): Likewise.
3287         * modules/termios (Makefile.am): Likewise.
3288         * modules/time (Makefile.am): Likewise.
3289         * modules/unistd (Makefile.am): Likewise.
3290         * modules/wchar (Makefile.am): Likewise.
3291         * modules/wctype-h (Makefile.am): Likewise.
3292         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3293
3294 2011-04-05  Bruno Haible  <bruno@clisp.org>
3295
3296         pipe2: Relicense under LGPLv2+.
3297         * modules/pipe2 (License): Change to LGPLv2+.
3298         Requested by Eric Blake, for libvirt.
3299
3300 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3301
3302         bootstrap: compute gnulib_extra_files after updating build_aux
3303         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3304         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3305
3306 2011-04-05  Eric Blake  <eblake@redhat.com>
3307
3308         bootstrap: preserve git whitelist item sorting
3309         * build-aux/bootstrap (sort_patterns): New function.
3310         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3311
3312 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3313
3314         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3315         sc_space_tab check.
3316
3317 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3318
3319         areadlink, areadlinkat: rewrite in terms of careadlinkat
3320         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3321         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3322         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3323         (malloc, realloc): Remove #undefs.
3324         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3325         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3326         readlink, ssize_t, stdint, unistd.
3327         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3328         areadlink, stdint.
3329
3330         careadlinkat: new module
3331         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3332         * modules/careadlinkat: New files, written by me with
3333         a review and feedback from Ben Pfaff in
3334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3335
3336 2011-04-01  Bruno Haible  <bruno@clisp.org>
3337
3338         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3339         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3340         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3341         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3342         Reported by Bruce Korb <bruce.korb@gmail.com>.
3343
3344 2011-04-01  Bruno Haible  <bruno@clisp.org>
3345
3346         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3347         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3348         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3349         * modules/wcpcpy (Depends-on): Add extensions.
3350         * modules/wcpncpy (Depends-on): Likewise.
3351         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3352         systems.
3353         * doc/posix-functions/wcpncpy.texi: Likewise.
3354         * doc/posix-functions/wcwidth.texi: Likewise.
3355
3356 2011-03-31  Eric Blake  <eblake@redhat.com>
3357
3358         nonblocking: fix mingw test failures
3359         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3360         non-blocking flag on regular file.
3361         (get_nonblocking_flag): Set errno on invalid fd.
3362         * tests/test-nonblocking.c (main): Avoid test failure on
3363         directories if fchdir is not active.
3364         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3365
3366 2011-03-31  Bruno Haible  <bruno@clisp.org>
3367
3368         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3369         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3370         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3371         Reported by Simon Josefsson <simon@josefsson.org>.
3372
3373 2011-03-31  Bruno Haible  <bruno@clisp.org>
3374         and Eric Blake  <eblake@redhat.com>
3375
3376         nonblocking: new module
3377         * modules/nonblocking: New module.
3378         * modules/nonblocking-tests: Likewise.
3379         * lib/nonblocking.h: New file.
3380         * lib/nonblocking.c: Likewise.
3381         * tests/test-nonblocking.c: New test.
3382         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3383
3384 2011-03-30  Bruno Haible  <bruno@clisp.org>
3385
3386         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3387         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3388         instead of 'printf' format for GCC >= 4.4.
3389         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3390         (fprintf, printf, vfprintf, vprintf): Declare with
3391         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3392         the system's vfprintf() function.
3393         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3394
3395 2011-03-30  Eric Blake  <eblake@redhat.com>
3396
3397         passfd: fix scoping bug
3398         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3399         before sendmsg/recvmsg.
3400
3401         passfd: standardize coding conventions
3402         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3403         can be learned at compile time.
3404         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3405         ifdefs.
3406         (sendfd, recvfd): Follow gnulib code conventions.
3407
3408         passfd: fix incorrect sendmsg arguments
3409         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3410         incorrect msg_controllen value.
3411         * modules/passfd-tests (Depends-on): Check for alarm.
3412         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3413         Reported by Bastien ROUCARIES.
3414
3415 2011-03-30  Bruno Haible  <bruno@clisp.org>
3416
3417         c-strcasestr: Relicense under LGPLv2+.
3418         * modules/c-strcasestr (License): Change to LGPLv2+.
3419         Requested by Eric Blake, for libvirt.
3420
3421 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3422
3423         * users.txt: Add libidn2.  Fix libtasn1 link.
3424
3425 2011-03-30  Jim Meyering  <meyering@redhat.com>
3426
3427         tests: readlink* ("",... fails with EINVAL on newer kernels
3428         readlink and readlinkat have typically failed with ENOENT for
3429         the invalid, empty file name,  "".  However, with the advent
3430         of linux-2.6.39, they fail with EINVAL.
3431         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3432         when operating on the empty file name.
3433         * tests/test-readlink.h (test_readlink): Likewise.
3434
3435 2011-03-29  Bruno Haible  <bruno@clisp.org>
3436
3437         Relicense some modules under LGPLv2+, for libidn2.
3438         * modules/array-mergesort (License): Change to LGPLv2+.
3439         * modules/c-strcaseeq (License): Likewise.
3440         * modules/striconveh (License): Likewise.
3441         * modules/striconveha (License): Likewise.
3442         * modules/uniconv/base (License): Likewise.
3443         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3444         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3445         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3446         * modules/unictype/base (License): Likewise.
3447         * modules/unictype/bidiclass-of (License): Likewise.
3448         * modules/unictype/category-M (License): Likewise.
3449         * modules/unictype/category-none (License): Likewise.
3450         * modules/unictype/category-of (License): Likewise.
3451         * modules/unictype/category-test (License): Likewise.
3452         * modules/unictype/category-test-withtable (License): Likewise.
3453         * modules/unictype/combining-class (License): Likewise.
3454         * modules/unictype/joiningtype-of (License): Likewise.
3455         * modules/unictype/scripts (License): Likewise.
3456         * modules/uninorm/base (License): Likewise.
3457         * modules/uninorm/canonical-decomposition (License): Likewise.
3458         * modules/uninorm/composition (License): Likewise.
3459         * modules/uninorm/decompose-internal (License): Likewise.
3460         * modules/uninorm/decomposition-table (License): Likewise.
3461         * modules/uninorm/nfc (License): Likewise.
3462         * modules/uninorm/nfd (License): Likewise.
3463         * modules/uninorm/u32-normalize (License): Likewise.
3464         * modules/unistr/base (License): Likewise.
3465         * modules/unistr/u32-cpy (License): Likewise.
3466         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3467         * modules/unistr/u32-to-u8 (License): Likewise.
3468         * modules/unistr/u32-uctomb (License): Likewise.
3469         * modules/unistr/u8-check (License): Likewise.
3470         * modules/unistr/u8-mblen (License): Likewise.
3471         * modules/unistr/u8-mbtouc (License): Likewise.
3472         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3473         * modules/unistr/u8-mbtoucr (License): Likewise.
3474         * modules/unistr/u8-prev (License): Likewise.
3475         * modules/unistr/u8-strlen (License): Likewise.
3476         * modules/unistr/u8-to-u32 (License): Likewise.
3477         * modules/unistr/u8-uctomb (License): Likewise.
3478         * modules/unitypes (License): Likewise.
3479         Requested by Simon Josefsson.
3480
3481 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3482
3483         lib-symbol-visibility: Add a notice.
3484         * modules/lib-symbol-visibility (Notice): New field.
3485
3486 2011-03-29  Bruno Haible  <bruno@clisp.org>
3487
3488         getaddrinfo: Doc fix.
3489         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3490         section "fixed in Gnulib".
3491
3492 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3493
3494         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3495         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3496
3497 2011-03-26  Bruno Haible  <bruno@clisp.org>
3498
3499         unictype/property-byname: Reduce the number of load-time relocations.
3500         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3501         (UC_PROPERTY_INDEX_*): New enumeration values.
3502         (uc_property_byname): Convert an index from the lookup table to an
3503         uc_property_t.
3504         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3505         values.
3506
3507 2011-03-26  Bruno Haible  <bruno@clisp.org>
3508
3509         unictype/property-byname: Allow omitted word separators and aliases.
3510         * lib/unictype/pr_byname.gperf: Add property names without word
3511         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3512         for 'space'.
3513
3514 2011-03-26  Bruno Haible  <bruno@clisp.org>
3515
3516         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3517         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3518         also hyphens to space.
3519         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3520         without spaces.
3521         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3522
3523 2011-03-26  Bruno Haible  <bruno@clisp.org>
3524
3525         unictype/joiningtype-byname: Recognize long names as well.
3526         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3527         a long name.
3528         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3529         unictype/joiningtype_byname.h.
3530         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3531         * lib/unictype/joiningtype_byname.gperf: New file.
3532         * modules/unictype/joiningtype-byname (Files): Add
3533         lib/unictype/joiningtype_byname.gperf.
3534         (Depends-on): Add gperf.
3535         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3536         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3537         long names.
3538
3539         Tests for module 'unictype/joiningtype-longname'.
3540         * modules/unictype/joiningtype-longname-tests: New file.
3541         * tests/unictype/test-joiningtype_longname.c: New file.
3542
3543         New module 'unictype/joiningtype-longname'.
3544         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3545         * lib/unictype/joiningtype_longname.c: New file.
3546         * modules/unictype/joiningtype-longname: New file.
3547         * modules/unictype/joiningtype-all (Depends-on): Add
3548         unictype/joiningtype-longname.
3549
3550 2011-03-26  Bruno Haible  <bruno@clisp.org>
3551
3552         unictype/bidiclass-byname: Recognize long names as well.
3553         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3554         name.
3555         * lib/unictype/bidi_byname.c: Include <string.h>,
3556         unictype/bidi_byname.h.
3557         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3558         * lib/unictype/bidi_byname.gperf: New file.
3559         * modules/unictype/bidiclass-byname (Files): Add
3560         lib/unictype/bidi_byname.gperf.
3561         (Depends-on): Add gperf.
3562         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3563         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3564         long names.
3565
3566         Tests for module 'unictype/bidiclass-longname'.
3567         * modules/unictype/bidiclass-longname-tests: New file.
3568         * tests/unictype/test-bidi_longname.c: New file.
3569
3570         New module 'unictype/bidiclass-longname'.
3571         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3572         * lib/unictype/bidi_longname.c: New file.
3573         * modules/unictype/bidiclass-longname: New file.
3574         * modules/unictype/bidiclass-all (Depends-on): Add
3575         unictype/bidiclass-longname.
3576
3577 2011-03-26  Bruno Haible  <bruno@clisp.org>
3578
3579         unictype/bidi*: Rename modules.
3580         * modules/unictype/bidiclass-all: Renamed from
3581         modules/unictype/bidicategory-all.
3582         * modules/unictype/bidiclass-name: Renamed from
3583         modules/unictype/bidiclass-name.
3584         (Description): Update.
3585         * modules/unictype/bidiclass-name-tests: Renamed from
3586         modules/unictype/bidicategory-name-tests.
3587         * modules/unictype/bidiclass-byname: Renamed from
3588         modules/unictype/bidicategory-byname.
3589         (Description): Update.
3590         * modules/unictype/bidiclass-byname-tests: Renamed from
3591         modules/unictype/bidicategory-byname-tests.
3592         * modules/unictype/bidiclass-of: Renamed from
3593         modules/unictype/bidicategory-of.
3594         (Description): Update.
3595         * modules/unictype/bidiclass-of-tests: Renamed from
3596         modules/unictype/bidicategory-of-tests.
3597         * modules/unictype/bidiclass-test: Renamed from
3598         modules/unictype/bidicategory-test.
3599         (Description): Update.
3600         * modules/unictype/bidiclass-test-tests: Renamed from
3601         modules/unictype/bidicategory-test-tests.
3602         * modules/unictype/bidicategory-all: New file, a simple redirection.
3603         * modules/unictype/bidicategory-name: Likewise.
3604         * modules/unictype/bidicategory-byname: Likewise.
3605         * modules/unictype/bidicategory-of: Likewise.
3606         * modules/unictype/bidicategory-test: Likewise.
3607         * modules/unictype/property-bidi-* (Dependencies): Update.
3608         * lib/unictype/bidi_*.c: Update comment.
3609
3610 2011-03-26  Bruno Haible  <bruno@clisp.org>
3611
3612         unictype/bidi*: Rename functions, part 2.
3613         * modules/unictype/bidicategory-name (configure.ac): Update required
3614         libunistring version.
3615         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3616
3617 2011-03-25  Bruno Haible  <bruno@clisp.org>
3618
3619         New module 'unictype/combining-class-all'.
3620         * modules/unictype/combining-class-all: New file.
3621
3622         Tests for module 'unictype/combining-class-byname'.
3623         * modules/unictype/combining-class-byname-tests: New file.
3624         * tests/unictype/test-combiningclass_byname.c: New file.
3625
3626         New module 'unictype/combining-class-byname'.
3627         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3628         * lib/unictype/combiningclass_byname.c: New file.
3629         * lib/unictype/combiningclass_byname.gperf: New file.
3630         * modules/unictype/combining-class-byname: New file.
3631
3632         Tests for module 'unictype/combining-class-longname'.
3633         * modules/unictype/combining-class-longname-tests: New file.
3634         * tests/unictype/test-combiningclass_longname.c: New file.
3635
3636         New module 'unictype/combining-class-longname'.
3637         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3638         * lib/unictype/combiningclass_longname.c: New file.
3639         * modules/unictype/combining-class-longname: New file.
3640
3641         Tests for module 'unictype/combining-class-name'.
3642         * modules/unictype/combining-class-name-tests: New file.
3643         * tests/unictype/test-combiningclass_name.c: New file.
3644
3645         New module 'unictype/combining-class-name'.
3646         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3647         * lib/unictype/combiningclass_name.c: New file.
3648         * modules/unictype/combining-class-name: New file.
3649
3650 2011-03-25  Bruno Haible  <bruno@clisp.org>
3651
3652         unictype/combining-class: Rename source files.
3653         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3654         of unictype/combining.h.
3655         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3656         Update.
3657         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3658         * modules/unictype/combining-class (Description): Fix.
3659         (Files, Makefile.am): Update.
3660         * tests/unictype/test-combiningclass.c: Renamed from
3661         tests/unictype/test-combining.c.
3662         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3663
3664 2011-03-25  Bruno Haible  <bruno@clisp.org>
3665
3666         unictype: Update list of canonical combining classes.
3667         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3668
3669 2011-03-25  Bruno Haible  <bruno@clisp.org>
3670
3671         unictype/category-byname: Recognize long names as well.
3672         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3673         a long name.
3674         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3675         unictype/categ_byname.h.
3676         (UC_CATEGORY_INDEX_*): New enumeration values.
3677         (uc_general_category_byname): Use uc_general_category_lookup and
3678         convert from index to value.
3679         * lib/unictype/categ_byname.gperf: New file.
3680         * modules/unictype/category-byname (Files): Add
3681         lib/unictype/categ_byname.gperf.
3682         (Depends-on): Add gperf.
3683         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3684         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3685         long names.
3686
3687         Tests for module 'unictype/category-longname'.
3688         * modules/unictype/category-longname-tests: New file.
3689         * tests/unictype/test-categ_longname.c: New file.
3690
3691         New module 'unictype/category-longname'.
3692         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3693         * lib/unictype/categ_longname.c: New file.
3694         * modules/unictype/category-longname: New file.
3695         * modules/unictype/category-all (Depends-on): Add it.
3696
3697 2011-03-25  Bruno Haible  <bruno@clisp.org>
3698
3699         Tests for module 'unictype/category-LC'.
3700         * modules/unictype/category-LC-tests: New file.
3701         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3702
3703         New module 'unictype/category-LC'.
3704         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3705         (UC_CATEGORY_LC): New declaration.
3706         (UC_CASED_LETTER): New macro.
3707         * lib/gen-uni-tables.c (is_category_LC): New function.
3708         (output_categories): Also handle category LC.
3709         (UC_CATEGORY_MASK_LC): New enumeration value.
3710         (general_category_byname): Also handle category LC.
3711         * lib/unictype/categ_LC.c: New file.
3712         * lib/unictype/categ_LC.h: New file, automatically generated.
3713         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3714         category LC.
3715         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3716         * modules/unictype/category-LC: New file.
3717         * modules/unictype/category-byname (Depends-on): Add
3718         unictype/category-LC.
3719         * modules/unictype/category-all (Depends-on): Likewise.
3720
3721 2011-03-25  Eric Blake  <eblake@redhat.com>
3722
3723         xmalloc: revert yesterday's regression
3724         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3725         realloc's underlying behavior (allowing allocation of zero-size
3726         objects, especially if malloc-gnu is also in use).
3727
3728 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3729
3730         maint.mk: add missing version to VC-tag
3731         * top/maint.mk: git tag was missing actual tag name; add it.
3732
3733         valgrind: do leak checking, and exit with code 1 on error (not 0)
3734         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3735         to VALGRIND.
3736
3737 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3738
3739         posix-modules: say what it does.
3740         * posix-modules: Add a line to the --help output saying what it does.
3741
3742 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3743
3744         xmalloc: Do not leak if underlying realloc is C99 compatible.
3745         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3746         This avoids a leak on C99-based systems.  See
3747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3748
3749 2011-03-24  Eric Blake  <eblake@redhat.com>
3750
3751         realloc: document portability problem
3752         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3753         passing 0 size to realloc.
3754
3755 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3756
3757         doc: update users.txt
3758         * users.txt: Add cvsps, tmpwatch
3759
3760 2011-03-23  Matt Rice  <ratmice@gmail.com>
3761
3762         doc: update users.txt
3763         * users.txt: Add gdb.
3764
3765 2011-03-23  Jim Meyering  <meyering@redhat.com>
3766
3767         doc: update users.txt
3768         Looking through matches up to the following URL (there are still
3769         several more pages), I found several projects that use gnulib:
3770         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3771         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3772         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3773
3774 2011-03-22  Bruno Haible  <bruno@clisp.org>
3775
3776         unictype/bidi*: Rename functions.
3777         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3778         uc_bidi_class, uc_is_bidi_class): New declarations.
3779         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3780         uc_bidi_category_byname.
3781         (uc_bidi_category_byname): New function.
3782         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3783         u_bidi_category_name.
3784         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3785         (uc_bidi_category_name): New function.
3786         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3787         uc_bidi_category.
3788         (uc_bidi_category): New function.
3789         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3790         uc_is_bidi_category. Invoke uc_bidi_class.
3791         (uc_is_bidi_category): New function.
3792         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3793         instead of uc_bidi_category_byname.
3794         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3795         instead of uc_bidi_category_name.
3796         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3797         uc_bidi_category.
3798         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3799         instead of uc_is_bidi_category.
3800
3801 2011-03-21  Bruno Haible  <bruno@clisp.org>
3802
3803         New module 'unictype/joininggroup-all'.
3804         * modules/unictype/joininggroup-all: New file.
3805
3806         Tests for module 'unictype/joininggroup-of'.
3807         * modules/unictype/joininggroup-of-tests: New file.
3808         * tests/unictype/test-joininggroup_of.c: New file.
3809         * tests/unictype/test-joininggroup_of.h: New file, automatically
3810         generated by gen-uni-tables.
3811
3812         New module 'unictype/joininggroup-of'.
3813         * modules/unictype/joininggroup-of: New file.
3814         * lib/unictype/joininggroup_of.c: New file.
3815         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3816         gen-uni-tables.
3817
3818         Tests for module 'unictype/joininggroup-byname'.
3819         * modules/unictype/joininggroup-byname-tests: New file.
3820         * tests/unictype/test-joininggroup_byname.c: New file.
3821
3822         New module 'unictype/joininggroup-byname'.
3823         * modules/unictype/joininggroup-byname: New file.
3824         * lib/unictype/joininggroup_byname.c: New file.
3825         * lib/unictype/joininggroup_byname.gperf: New file.
3826
3827         Tests for module 'unictype/joininggroup-name'.
3828         * modules/unictype/joininggroup-name-tests: New file.
3829         * tests/unictype/test-joininggroup_name.c: New file.
3830
3831         New module 'unictype/joininggroup-name'.
3832         * modules/unictype/joininggroup-name: New file.
3833         * lib/unictype/joininggroup_name.c: New file.
3834         * lib/unictype/joininggroup_name.h: New file.
3835
3836         New module 'unictype/joiningtype-all'.
3837         * modules/unictype/joiningtype-all: New file.
3838
3839         Tests for module 'unictype/joiningtype-of'.
3840         * modules/unictype/joiningtype-of-tests: New file.
3841         * tests/unictype/test-joiningtype_of.c: New file.
3842         * tests/unictype/test-joiningtype_of.h: New file, automatically
3843         generated by gen-uni-tables.
3844
3845         New module 'unictype/joiningtype-of'.
3846         * modules/unictype/joiningtype-of: New file.
3847         * lib/unictype/joiningtype_of.c: New file.
3848         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3849         gen-uni-tables.
3850
3851         Tests for module 'unictype/joiningtype-byname'.
3852         * modules/unictype/joiningtype-byname-tests: New file.
3853         * tests/unictype/test-joiningtype_byname.c: New file.
3854
3855         New module 'unictype/joiningtype-byname'.
3856         * modules/unictype/joiningtype-byname: New file.
3857         * lib/unictype/joiningtype_byname.c: New file.
3858
3859         Tests for module 'unictype/joiningtype-name'.
3860         * modules/unictype/joiningtype-name-tests: New file.
3861         * tests/unictype/test-joiningtype_name.c: New file.
3862
3863         New module 'unictype/joiningtype-name'.
3864         * modules/unictype/joiningtype-name: New file.
3865         * lib/unictype/joiningtype_name.c: New file.
3866
3867         unictype: Add support for Arabic shaping properties.
3868         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3869         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3870         declarations.
3871         (UC_JOINING_GROUP_*): New enumeration values.
3872         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3873         declarations.
3874         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3875         (unicode_joining_type): New variable.
3876         (UC_JOINING_GROUP_*): New enumeration values.
3877         (unicode_joining_group): New variable.
3878         (fill_arabicshaping, joining_type_as_c_identifier,
3879         output_joining_type_test, output_joining_type,
3880         joining_group_as_c_identifier, output_joining_group_test,
3881         output_joining_group): New functions.
3882         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3883         fill_arabicshaping and output_joining_type_test, output_joining_type,
3884         output_joining_group_test, output_joining_group.
3885         Reported by Simon Josefsson.
3886
3887 2011-03-21  Jim Meyering  <meyering@redhat.com>
3888
3889         strftime: fix a bug in yesterday's change
3890         * lib/strftime.c (add): Accommodate width's initial value of -1.
3891         Otherwise, nstrftime would copy uninitialized data into
3892         the result buffer.
3893
3894 2011-03-21  Jim Meyering  <meyering@redhat.com>
3895
3896         tests: add strftime-tests module
3897         * tests/test-strftime.c: New file.
3898         * modules/strftime-tests: New module.
3899
3900 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3901
3902         strftime: don't assume a byte count fits in 'int'
3903         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3904         found this problem by static analysis, using gcc -Wstrict-overflow
3905         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3906         on an integer overflow having undefined behavior, but it turns out
3907         that the argument is a size, which might not fit in 'int' anyway,
3908
3909 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3910
3911         stdio: don't require ignore_value around fwrite
3912
3913         This patch works around libc bug 11959
3914         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3915         Without this patch, applications must often write
3916         ignore_value (fwrite (...)) even though the ignore_value is
3917         not helpful here.  It's common to write many objects, using
3918         fwrite/printf/etc., and then use ferror to detect output error.
3919
3920         I considered making this patch optional, but decided against it,
3921         because libc is obviously being inconsistent here: there is no
3922         reason libc should insist that user code must inspect fwrite
3923         return's value without also insisting that it inspect printf's,
3924         putchar's, etc.  If user code wants to have a strict style where
3925         all these functions' values are checked (so that ferror need not
3926         be checked), we could add support for that style in a new gnulib
3927         module, but in the meantime it's better to be consistent and to
3928         support common usage.
3929
3930         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3931         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3932         that we are compiling in checking mode, and if not C++, and
3933         if not already wrapping fwrite for some other reason.
3934         (fwrite): #define to rpl_fwrite if the latter is defined.
3935
3936 2011-03-20  Bruno Haible  <bruno@clisp.org>
3937
3938         verror: Fix compilation error introduced on 2011-02-13.
3939         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3940         instead of __attribute__.
3941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3942
3943 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3944             Bruno Haible  <bruno@clisp.org>
3945
3946         socklen: do not depend on sys_socket
3947         While trying to modify Emacs to use gnulib's socklen module,
3948         I discovered a circular dependency: socklen depends on sys_socket
3949         and vice versa.  Emacs can use socklen, but it does not need
3950         sys_socket because it has its own substitute for sys/socket.h.
3951         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3952         gl_TYPE_SOCKLEN_T.
3953         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3954         gl_PREREQ_SYS_H_SOCKET.
3955         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3956         gl_PREREQ_SYS_H_SOCKET.
3957         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3958         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3959         * modules/socklen (Depends-on): Do not depend on sys_socket.
3960         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3961
3962 2011-03-20  Jim Meyering  <meyering@redhat.com>
3963
3964         maint.mk: sort file names *after* new transformation
3965         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3966         prefix would have led to an unwarranted failure in GNU parted.
3967         Sort after that transformation.
3968
3969 2011-03-19  Jim Meyering  <meyering@redhat.com>
3970
3971         maint.mk: fix po-file syntax-check rule
3972         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3973         Patch by Bruno Haible.
3974
3975 2011-03-19  Bruno Haible  <bruno@clisp.org>
3976
3977         socklen: Update comment.
3978         * m4/socklen.m4: Update comment about platforms.
3979
3980 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3981             Bruno Haible  <bruno@clisp.org>
3982
3983         inet_ntop, inet_pton: Simplify.
3984         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3985         documented to provide socklen_t and we already depend on sys_socket.
3986         * modules/inet_pton (Depends-on): Likewise.
3987         * lib/arpa_inet.in.h: Adjust comment.
3988
3989 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3990             Bruno Haible  <bruno@clisp.org>
3991
3992         netdb: Simplify.
3993         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3994         documented to provide socklen_t and we already depend on sys_socket.
3995         * lib/netdb.in.h: Adjust comment.
3996
3997 2011-03-19  Bruno Haible  <bruno@clisp.org>
3998
3999         sys_socket, netdb: Document problem with socklen_t.
4000         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4001         platforms.
4002         * doc/posix-headers/netdb.texi: Likewise.
4003
4004 2011-03-18  Eric Blake  <eblake@redhat.com>
4005
4006         maint.mk: let po check work in VPATH build
4007         * top/maint.mk (po_file): Allow cfg.mk override.
4008         (sc_po_check): Allow VPATH use.
4009         Reported by Jiri Denemark.
4010
4011 2011-03-16  Jim Meyering  <meyering@redhat.com>
4012
4013         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4014         Before, you would have had to create one .x-sc_ file per rule in order
4015         to exempt offending files.  Now, you may instead use a Make variable --
4016         usually defined in cfg.mk -- whose name identifies the affected rule.
4017         * top/maint.mk (_sc_excl): Define.
4018         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4019         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4020
4021 2011-03-13  Bruno Haible  <bruno@clisp.org>
4022
4023         ignore-value tests: Avoid warnings.
4024         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4025         empty for gcc < 3.4.
4026
4027 2011-03-13  Bruno Haible  <bruno@clisp.org>
4028
4029         passfd: Fix link error on Solaris.
4030         * modules/passfd (Description): Correct.
4031         (Depends-on): Add socketlib.
4032         (Link): New section.
4033         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4034
4035 2011-03-13  Bruno Haible  <bruno@clisp.org>
4036
4037         passfd: Fix link error on AIX 5.2.
4038         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4039
4040 2011-03-13  Bruno Haible  <bruno@clisp.org>
4041
4042         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4043         * lib/sys_socket.in.h: Include <stddef.h>.
4044         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4045         CMSG_FIRSTHDR. Remove unused variable.
4046
4047 2011-03-13  Bruno Haible  <bruno@clisp.org>
4048
4049         passfd: Fix compilation error on OpenBSD.
4050         * lib/passfd.c: Include <sys/uio.h>.
4051
4052 2011-03-13  Bruno Haible  <bruno@clisp.org>
4053
4054         passfd test: Fix warnings.
4055         * tests/test-passfd.c: Include <sys/wait.h>.
4056         (main): Fix typo.
4057
4058 2011-03-13  Bruno Haible  <bruno@clisp.org>
4059
4060         passfd module, part 4, tweaks.
4061         * tests/test-passfd.c: Reorder includes.
4062         (main): Fix perror and printf calls.
4063
4064 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4065
4066         passfd module, part 4.
4067         * modules/passfd-tests: New file.
4068         * tests/test-passfd.c: New file.
4069
4070 2011-03-13  Jim Meyering  <meyering@redhat.com>
4071
4072         Makefile: rely on GNU make; derive syntax-check rule names
4073         Rather than requiring that each sc_ rule be listed as a dependent
4074         of "check", use features of GNU make to derive the list.
4075         * Makefile (syntax-check-rules): Define.
4076         (check): Depend on the new variable, not the hard-coded list.
4077
4078 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4079             Bruno Haible  <bruno@clisp.org>
4080
4081         passfd module, part 3.
4082         * lib/passfd.h (recvfd): Add a flags argument.
4083         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4084         (recvfd): Add a flags argument.
4085         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4086         exists.
4087         * modules/passfd (Depends-on): Add cloexec.
4088         Suggested by Eric Blake.
4089
4090 2011-03-13  Bruno Haible  <bruno@clisp.org>
4091
4092         passfd module, part 2, tweaks.
4093         * modules/passfd (Files): Reorder.
4094         (Depends-on): Remove errno.
4095         (Include): Remove <sys/socket.h>, <sys/un.h>.
4096         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4097         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4098         specification header. Include <sys/socket.h> always. Don't include
4099         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4100         (sendfd): Clarify that it sets errno when it fails.
4101         (recvfd): Fix specification.
4102
4103 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4104
4105         passfd module, part 2.
4106         * modules/passfd: New file.
4107         * lib/passfd.h: New file.
4108         * lib/passfd.c: New file.
4109
4110 2011-03-12  Bruno Haible  <bruno@clisp.org>
4111
4112         wcswidth, mbswidth: Avoid integer overflow.
4113         * lib/wcswidth.c: Include <limits.h>.
4114         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4115         * lib/mbswidth.c: Include <limits.h>.
4116         (mbsnwidth): Avoid 'int' overflow.
4117         Reported by Jim Meyering.
4118
4119 2011-03-12  Bruno Haible  <bruno@clisp.org>
4120
4121         futimens, utimensat: Avoid endless recursion on Solaris 10.
4122         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4123         Solaris.
4124         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4125         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4126
4127 2011-03-11  Jim Meyering  <meyering@redhat.com>
4128
4129         maint.mk: relax a regexp to accommodate other formatting styles
4130         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4131         between "ngettext" and the following "(".
4132
4133 2011-03-11  Pádraig Brady <P@draigBrady.com>
4134
4135         maint.mk: suppress a false positive warning
4136         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4137         diagnostics are marked with ngettext.
4138
4139 2011-03-10  Eric Blake  <eblake@redhat.com>
4140
4141         wchar: add explicit dependencies, for Tru64
4142         * modules/mbmemcasecoll (Depends-on): Add wchar.
4143         * modules/mbtowc (Depends-on): Likewise.
4144         * modules/vasnprintf (Depends-on): Likewise.
4145         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4146         * modules/wctomb (Depends-on): Likewise.
4147         Reported by Peter O'Gorman.
4148
4149 2011-03-08  Bruno Haible  <bruno@clisp.org>
4150
4151         passfd module, part 1, tweaks.
4152         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4153         Improve indentation. Improve AC_MSG_CHECKING messages.
4154         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4155         gl_SOCKET_FAMILIES.
4156
4157 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4158
4159         passfd module, part 1.
4160         * m4/afunix.m4: New file.
4161         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4162         sockets.
4163
4164 2011-03-08  Bruno Haible  <bruno@clisp.org>
4165
4166         regex-quote: New API.
4167         * lib/regex-quote.h: Include <stdbool.h>.
4168         (struct regex_quote_spec): New type.
4169         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4170         New declarations.
4171         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4172         'const struct regex_quote_spec *' argument.
4173         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4174         (pcre_special): New constant.
4175         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4176         New functions.
4177         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4178         'const struct regex_quote_spec *' argument.
4179         * modules/regex-quote (Depends-on): Add stdbool.
4180         * tests/test-regex-quote.c (check): Update for new API. Add test for
4181         anchored results.
4182         * NEWS: Mention the API change.
4183         Reported by Reuben Thomas and Eric Blake.
4184
4185 2011-03-06  Bruno Haible  <bruno@clisp.org>
4186
4187         regex-quote: Fix creation of POSIX extended regular expressions.
4188         * lib/regex-quote.c (ere_special): Add grouping and alternation
4189         operators.
4190
4191 2011-03-05  Bruno Haible  <bruno@clisp.org>
4192
4193         doc: Improve doc regarding autopoint vs. gnulib.
4194         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4195         disable autopoint while running autoreconf.
4196         Suggested by Ralf Wildenhues.
4197
4198 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4199
4200         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4201         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4202
4203 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4204
4205         parse-duration: remove xalloc.h dependency
4206         * lib/parse-duration.c (parse_period): handle NULL return from
4207         strdup instead of calling xstrdup().
4208         * modules/parse-duration: remove "xalloc" dependency
4209
4210 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4211
4212         bootstrap: honor m4_base when running aclocal
4213         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4214
4215 2011-03-02  Jim Meyering  <meyering@redhat.com>
4216
4217         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4218         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4219         on request from Matt Booth.
4220
4221 2011-03-01  Eric Blake  <eblake@redhat.com>
4222
4223         test-link: work on Hurd
4224         * tests/test-link.h (test_link): Hurd rejects linking directories
4225         with EISDIR instead of the POSIX-mandated EPERM.
4226
4227 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4228
4229         stdio: simplify by moving files to printf-posix, sigpipe
4230         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4231         since this symbol is needed only if printf is replaced.
4232         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4233         Require gl_ASM_SYMBOL_PREFIX.
4234         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4235         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4236         (Depends-on): Add 'raise'.
4237         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4238         * modules/stdio (Files): Remove lib/stdio-write.c,
4239         m4/asm-underscore.m4.
4240         (Depends-on): Remove 'raise'.
4241
4242         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4243         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4244         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4245         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4246
4247 2011-02-28  Bruno Haible  <bruno@clisp.org>
4248
4249         localcharset: Assume ANSI C behaviour of free().
4250         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4251         calling free().
4252         Suggested by Simon Josefsson <simon@josefsson.org>.
4253
4254 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4255             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4256             Bruno Haible  <bruno@clisp.org>  (tiny change)
4257
4258         On Cygwin, use /proc file system instead of win32 API.
4259         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4260         Win32 file names.
4261         (DllMain): Simplify by removing Cygwin specific code.
4262         (find_shared_library_fullname): Use Linux specific implementation also
4263         for Cygwin.
4264         (get_shared_library_fullname): Update accordingly.
4265         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4266         Win32 file names.
4267         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4268         Cygwin specific code.
4269
4270 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4271             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4272
4273         Fix OpenMP flag detection for various Fortran compilers.
4274         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4275         OpenMP-conditional compilation construct, to force compile
4276         failure with missing OpenMP flag.
4277         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4278
4279 2011-02-25  Eric Blake  <eblake@redhat.com>
4280
4281         strstr: expand test coverage
4282         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4283         compilation.
4284         * tests/test-memmem.c (main): Duplicate tests.
4285         * tests/test-strcasestr.c (main): Likewise.
4286         * tests/test-c-strcasestr.c (main): Likewise.
4287
4288 2011-02-25  Jim Meyering  <meyering@redhat.com>
4289
4290         maint.mk: detect missing-NL-at-EOF, too
4291         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4292         it also detects when a file lacks a newline at EOF.
4293         (require_exactly_one_NL_at_EOF_): Renamed from
4294         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4295         since people may well have .x-sc_... file names tied to the
4296         existing name.  Suggested by Eric Blake.
4297
4298 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4299
4300         dirname: move m4/dos.m4 functionality into lib/dosname.h
4301
4302         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4303         extracts symbols from it, puts them into config.h; but it's much
4304         easier to use the symbols directly.  filename.h already does this,
4305         but it disagrees with dos.m4 in some respects.  This patch
4306         introduces a different include file dosname.h that packages up
4307         dos.m4, and then later we can work on merging filename.h and
4308         dosname.h.  Applications that need only the easy-to-configure
4309         symbols should consider including dosname.h rather than dirname.h.
4310         * NEWS: Mention incompatible changes.
4311         * m4/dos.m4: Remove.
4312         * lib/dosname.h, modules/dosname: New files.
4313         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4314         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4315         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4316         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4317         Include dosname.h, not dirname.h.
4318         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4319         Include dosname.h, for definitions of symbols like ISSLASH
4320         that used to be in config.h.
4321         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4322         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4323         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4324         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4325         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4326         * modules/rmdir (Files): Likewise.
4327         * modules/stat (Files): Likewise.
4328         * modules/unlink (Files): Likewise.
4329         * modules/dirname-lgpl (Depends-on): Add dosname.
4330         * modules/lstat (Depends-on): Likewise.
4331         * modules/openat (Depends-on): Likewise.
4332         * modules/rmdir (Depends-on): Likewise.
4333         * modules/savewd (Depends-on): Likewise.
4334         * modules/stat (Depends-on): Likewise.
4335         * modules/unlink (Depends-on): Likewise.
4336         * modules/openat (Depends-on): Remove dirname-lgpl.
4337         * modules/savewd (Depends-on): Likewise.
4338         * tests/test-dirname.c: Do not use removed symbols like
4339         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4340         the remaining symbols, e.g., ISSLASH ('\\').
4341
4342 2011-02-25  Eric Blake  <eblake@redhat.com>
4343
4344         strstr: revert patches that introduced bug and pessimization
4345         * lib/str-two-way.h: Add another reference.
4346         (two_way_short_needle, two_way_long_needle): Revert changes from
4347         2011-02-24; they pessimize search speed.
4348         (critical_factorization): Partially revert changes from
4349         2010-06-22; they violate the requirement that the left half of the
4350         needle be smaller than the period of the needle.
4351
4352 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4353
4354         filenamecat: remove unnecessary dependency on dirname-lgpl
4355         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4356         is no direct dependency, just an indirect one via filenamecat-lgpl.
4357
4358         remove: remove unnecessary use of m4/dos.m4
4359         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4360         * modules/remove (FILES): Remove m4/dos.m4.
4361
4362         * lib/openat-proc.c: Don't include dirname.h; not needed.
4363
4364         backupfile: remove unnecessary use of m4/dos.m4
4365         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4366         of its symbols are used by the backupfile code.  backupfile.c does
4367         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4368         for the rare case of programs that want all their backup file
4369         names to live within 8+3 limits, and dos.m4 doesn't address that.
4370         * modules/backupfile (Files): Remove m4/dos.m4.
4371
4372 2011-02-24  Jim Meyering  <meyering@redhat.com>
4373
4374         strstr: fix a bug whereby strstr would mistakenly return NULL
4375         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4376         in period calculation.
4377         (two_way_long_needle): Likewise.
4378         The original problem was reported by Mike Stump in
4379         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4380         Ralf Wildenhues provided the short needle and haystack.
4381         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4382         Add a more involved test to trigger the bug in two_way_long_needle.
4383
4384 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4385
4386         gnulib-tool: remove use of bold display in help screen
4387         * gnulib-tool (func_usage): Do not use bold display anymore in the
4388         help screen.  That was just meant to be a temporary emphasis for a
4389         backward-incompatible change.
4390
4391 2011-02-23  Bruno Haible  <bruno@clisp.org>
4392
4393         Fix misindentation of preprocessor directives.
4394         * lib/argp-namefrob.h: Reindent preprocessor directives.
4395         * lib/getopt_int.h (struct _getopt_data): Likewise.
4396         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4397         * lib/vasnprintf.c (decode_long_double): Likewise.
4398         * tests/test-argmatch.c: Insert blank lines, for clarity.
4399         * tests/test-exclude.c: Likewise.
4400
4401 2011-02-22  Bruno Haible  <bruno@clisp.org>
4402
4403         ioctl: Fix for MacOS X in 64-bit mode.
4404         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4405         value.
4406         Suggested by Eric Blake.
4407         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4408
4409 2011-02-22  Jim Meyering  <meyering@redhat.com>
4410
4411         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4412         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4413         in lib/.
4414
4415 2011-02-22  Eric Blake  <eblake@redhat.com>
4416
4417         maint: avoid any CDPATH issue
4418         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4419
4420         maint: adjust cpp indentation for my modules, as well
4421         * Makefile (sc_cpp_indent_check): Add my name.
4422         * lib/fbufmode.c: Filter through cppi.
4423         * lib/fpurge.c: Likewise.
4424         * lib/freadable.c: Likewise.
4425         * lib/freading.c: Likewise.
4426         * lib/fwritable.c: Likewise.
4427         * lib/fwriting.c: Likewise.
4428         * lib/sigaction.c: Likewise.
4429
4430 2011-02-22  Jim Meyering  <meyering@redhat.com>
4431
4432         maint: adjust cpp indentation to reflect nesting depth
4433         I.e., in a block of code that begins with an unnested "#if",
4434         put one space between the "#" in column 1 and following token.
4435         For example,
4436         -#include <sys/vfs.h>
4437         +# include <sys/vfs.h>
4438         Do this only in .c files that are part of a module I maintain.
4439         * lib/linkat.c: Filter through cppi.
4440         * lib/nanosleep.c: Likewise.
4441         * lib/openat.c: Likewise.
4442         * lib/openat-die.c: Likewise.
4443         * lib/dup3.c: Likewise.
4444         * lib/fchownat.c: Likewise.
4445         * lib/flock.c: Likewise.
4446         * lib/fsync.c: Likewise.
4447         * lib/fts.c: Likewise.
4448         * lib/getpass.c: Likewise.
4449         * lib/gettimeofday.c: Likewise.
4450         * lib/userspec.c: Likewise.
4451         * Makefile (sc_cpp_indent_check): New rule, to check this.
4452
4453 2011-02-22  Bruno Haible  <bruno@clisp.org>
4454
4455         New module 'wctomb'.
4456         * lib/stdlib.in.h (wctomb): New declaration.
4457         * lib/wctomb.c: New file.
4458         * lib/wctomb-impl.h: New file.
4459         * m4/wctomb.m4: New file.
4460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4461         REPLACE_WCTOMB.
4462         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4463         REPLACE_WCTOMB.
4464         * modules/wctomb: New file.
4465         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4466         * doc/posix-functions/wctomb.texi: Mention the new module.
4467         * modules/wctob (Depends-on): Add wctomb.
4468
4469 2011-02-22  Bruno Haible  <bruno@clisp.org>
4470
4471         New module 'mbtowc'.
4472         * lib/stdlib.in.h (mbtowc): New declaration.
4473         * lib/mbtowc.c: New file.
4474         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4475         * m4/mbtowc.m4: New file.
4476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4477         REPLACE_MBTOWC.
4478         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4479         REPLACE_MBTOWC.
4480         * modules/mbtowc: New file.
4481         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4482         * doc/posix-functions/mbtowc.texi: Mention the new module.
4483         * modules/btowc (Depends-on): Add mbtowc.
4484
4485 2011-02-22  Bruno Haible  <bruno@clisp.org>
4486
4487         wcrtomb: Add more tests for native Windows platforms.
4488         * tests/test-wcrtomb-w32-1.sh: New file.
4489         * tests/test-wcrtomb-w32-2.sh: New file.
4490         * tests/test-wcrtomb-w32-3.sh: New file.
4491         * tests/test-wcrtomb-w32-4.sh: New file.
4492         * tests/test-wcrtomb-w32-5.sh: New file.
4493         * tests/test-wcrtomb-w32.c: New file.
4494         * modules/wcrtomb-tests (Files): Add them.
4495         (Makefile.am): Arrange to run these tests.
4496         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4497         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4498
4499 2011-02-20  Bruno Haible  <bruno@clisp.org>
4500
4501         wcrtomb: Enhance test.
4502         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4503
4504 2011-02-20  Bruno Haible  <bruno@clisp.org>
4505
4506         mbrtowc: Tiny optimization.
4507         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4508
4509 2011-02-20  Jim Meyering  <meyering@redhat.com>
4510
4511         test-exclude.c: remove unmatched #endif
4512         * tests/test-exclude.c: Remove stray #endif, left over from
4513         the change of a week ago.
4514
4515 2011-02-19  Jim Meyering  <meyering@redhat.com>
4516
4517         git-version-gen: skip "-dirty" check when appropriate
4518         * build-aux/git-version-gen: Don't run any git commands when the
4519         version string comes from .tarball-version.  Prior to this, we
4520         would run git update-index --refresh even from a just-unpacked
4521         tarball directory, and that could affect a .git/ directory in a
4522         parent of the build directory.  Reported by Mike Frysinger.
4523
4524 2011-02-19  Bruno Haible  <bruno@clisp.org>
4525
4526         unictype/property-byname: Reduce the size of the 'data' segment.
4527         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4528
4529 2011-02-19  Bruno Haible  <bruno@clisp.org>
4530
4531         unictype/scripts: Reduce the size of the 'data' segment.
4532         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4533         '%pic'.
4534         * lib/unictype/scripts_byname.gperf: Regenerated.
4535
4536 2011-02-19  Bruno Haible  <bruno@clisp.org>
4537
4538         stdint: Update documentation.
4539         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4540
4541 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4542
4543         stdint: omit redundant check for wchar.h
4544         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4545         always tests whether wchar.h exists, so remove the now-redundant test.
4546
4547 2011-02-18  Bruno Haible  <bruno@clisp.org>
4548
4549         stdint: Cut dependency to module 'wchar'.
4550         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4551         include the necessary prerequisites.
4552         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4553         * modules/stdint (Depends-on): Remove wchar.
4554         (Makefile.am): Substitute HAVE_WCHAR_H.
4555         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4556
4557 2011-02-18  Eric Blake  <eblake@redhat.com>
4558
4559         longlong: skip, rather than fail, on cross-compilation
4560         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4561         when cross-compiling; regression from 2011-02-16.
4562
4563 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4564
4565         * NEWS: Mention 2011-02-08 change to stdlib.
4566
4567 2011-02-17  Bruno Haible  <bruno@clisp.org>
4568
4569         getloadavg: Add comments about platforms.
4570         * m4/getloadavg.m4: Add comment.
4571         * lib/getloadavg.c: Likewise.
4572
4573 2011-02-17  Bruno Haible  <bruno@clisp.org>
4574
4575         getloadavg: Fix link error on Solaris 2.6.
4576         * modules/getloadavg (Link): New section.
4577         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4578         linking test-getloadavg.
4579         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4580         getloadavg.
4581
4582 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4583
4584         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4585         It was 'int', but this doesn't match the IRIX 6.5 manual.
4586         Suggested by Bruno Haible in
4587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4588
4589 2011-02-17  Bruno Haible  <bruno@clisp.org>
4590
4591         havelib: Fix comments.
4592         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4593         change.
4594
4595 2011-02-17  Bruno Haible  <bruno@clisp.org>
4596
4597         havelib: Update config.rpath.
4598         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4599
4600 2011-02-17  Bruno Haible  <bruno@clisp.org>
4601
4602         getloadavg test: Add some plausibility checks.
4603         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4604         is improbable.
4605
4606 2011-02-16  Eric Blake  <eblake@redhat.com>
4607
4608         maintainer-makefile: make syntax-check a no-op from tarballs
4609         * top/maint.mk (no-vc-detected): New rule.
4610         (local-checks-available): Use it to avoid hanging if someone tries
4611         'make syntax-check' from a tarball.  Also append to any non-syntax
4612         checks already defined in cfg.mk.
4613
4614 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4615
4616         longlong: tune, particularly for common case of c99
4617
4618         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4619         or running anything if c99, or if unsigned long long int does not
4620         work.  In either case, we know the answer without further tests.
4621         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4622         it at most once, and use its results for both long long int and
4623         unsigned long long int.  This is more likely to be efficient in
4624         the common case where the program wants to check for both long
4625         long int and unsigned long long int.
4626         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4627         since the answer is already known.
4628
4629 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4630
4631         getloadavg: set errno
4632         * lib/getloadavg.c: Set errno when returning -1.  If no other
4633         error number looks appropriate, set it to ENOSYS if the getloadavg
4634         looks like it can't possibly ever work, ENOTSUP otherwise.
4635         Suggested by Bruno Haible in
4636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4637
4638         getloadavg: trim unused parts and speed up 'configure'
4639         * NEWS: Document this.
4640         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4641         always compiled if getloadavg is absent.
4642         Move test code to ...
4643         * tests/test-getloadavg.c: New file, containing previous
4644         contents of test from lib/getloadavg.c.  It also contains
4645         suggestions by Bruno Haible in
4646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4647         * modules/getloadavg-tests: New file.
4648         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4649         Do tests in the same order as they're needed for getloadavg.c.
4650         Omit setgid-related tests that generate symbols KMEM_GROUP,
4651         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4652         Do only the tests that are needed to see whether the system has
4653         getloadavg, moving the other tests into ...
4654         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4655         NLIST_NAME_UNION; nobody should be using it.  Do not define
4656         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4657         relevant, as the user of this module shouldn't care how getloadavg
4658         is implemented.
4659
4660         getloadavg: omit unused var
4661         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4662
4663 2011-02-15  Jim Meyering  <meyering@redhat.com>
4664
4665         doc: update users.txt
4666         * users.txt: Update iwhd's URL.
4667
4668 2011-02-13  Bruno Haible  <bruno@clisp.org>
4669
4670         Consistent macro naming for macros that use GCC __attribute__.
4671         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4672         _ATTRIBUTE_NONNULL_.
4673         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4674         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4675         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4676         ATTRIBUTE_DEPRECATED.
4677         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4678         ATTRIBUTE_NORETURN.
4679         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4680         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4681         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4682         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4683         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4684         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4685         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4686         ATTRIBUTE_SENTINEL.
4687         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4688         ATTRIBUTE_RETURN_CHECK.
4689         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4690         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4691         ATTRIBUTE_NORETURN.
4692         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4693         Reported by Paul Eggert.
4694
4695 2011-02-13  Bruno Haible  <bruno@clisp.org>
4696
4697         Don't interfere with a program's definition of __attribute__.
4698         * lib/argp.h (__attribute__): Remove definition.
4699         (_GL_ATTRIBUTE_FORMAT): New macro.
4700         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4701         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4702         (_GL_ATTRIBUTE_FORMAT): New macro.
4703         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4704         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4705         GCC 3 or newer.
4706         * lib/error.h (__attribute__): Remove definition.
4707         (_GL_ATTRIBUTE_FORMAT): New macro.
4708         (error, error_at_line): Use it.
4709         * lib/hash.h (__attribute__): Remove definition.
4710         (ATTRIBUTE_WUR): Update definition. Define always.
4711         * lib/openat.h (__attribute__): Remove definition.
4712         (ATTRIBUTE_NORETURN): Update definition. Define always.
4713         * lib/sigpipe-die.h (__attribute__): Remove definition.
4714         (ATTRIBUTE_NORETURN): Update definition. Define always.
4715         * lib/vasnprintf.h (__attribute__): Remove definition.
4716         (_GL_ATTRIBUTE_FORMAT): New macro.
4717         (asnprintf, vasnprintf): Use it.
4718         * lib/xalloc.h (__attribute__): Remove definition.
4719         (ATTRIBUTE_NORETURN): Update definition. Define always.
4720         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4721         * lib/xmemdup0.h (__attribute__): Remove definition.
4722         (ATTRIBUTE_NORETURN): Update definition. Define always.
4723         * lib/xprintf.h (__attribute__): Remove definition.
4724         (_GL_ATTRIBUTE_FORMAT): New macro.
4725         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4726         * lib/xstrtol.h (__attribute__): Remove definition.
4727         (ATTRIBUTE_NORETURN): Update definition. Define always.
4728         * lib/xvasprintf.h (__attribute__): Remove definition.
4729         (_GL_ATTRIBUTE_FORMAT): New macro.
4730         (xasprintf, xvasprintf): Use it.
4731         * tests/test-argmatch.c (__attribute__): Remove definition.
4732         (ATTRIBUTE_NORETURN): Update definition. Define always.
4733         * tests/test-exclude.c (__attribute__): Remove definition.
4734         (ATTRIBUTE_NORETURN): Update definition. Define always.
4735         Reported by Paul Eggert.
4736
4737 2011-02-13  Bruno Haible  <bruno@clisp.org>
4738
4739         mbrtowc: Add more tests for native Windows platforms.
4740         * tests/test-mbrtowc-w32-1.sh: New file.
4741         * tests/test-mbrtowc-w32-2.sh: New file.
4742         * tests/test-mbrtowc-w32-3.sh: New file.
4743         * tests/test-mbrtowc-w32-4.sh: New file.
4744         * tests/test-mbrtowc-w32-5.sh: New file.
4745         * tests/test-mbrtowc-w32.c: New file.
4746         * modules/mbrtowc-tests (Files): Add them.
4747         (Makefile.am): Arrange to run these tests.
4748         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4749         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4750
4751 2011-02-13  Bruno Haible  <bruno@clisp.org>
4752
4753         mbrtowc: Work around native Windows bug.
4754         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4755         guess when no suitable locale for testing was found.
4756         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4757
4758 2011-02-13  Bruno Haible  <bruno@clisp.org>
4759
4760         mbsinit: Work around mingw bug.
4761         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4762         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4763         Windows.
4764         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4765
4766 2011-02-13  Bruno Haible  <bruno@clisp.org>
4767
4768         mbsinit: Don't crash for a NULL argument.
4769         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4770         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4771
4772 2011-02-13  Bruno Haible  <bruno@clisp.org>
4773
4774         Don't interfere with a program's definition of __attribute__.
4775         * lib/stdio.in.h (__attribute__): Remove definition.
4776         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4777         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4778         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4779         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4780         * lib/string.in.h (__attribute__): Remove definition.
4781         Reported by Paul Eggert.
4782
4783 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4784
4785         stdlib: don't get in the way of non-GCC __attribute__
4786         See thread starting at
4787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4788         Revert previous stdlib change, installing the following instead:
4789         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4790         to get in the way of a non-GCC compiler that supports __attribute__.
4791         (_GL_ATTRIBUTE_RETURN): New macro.
4792         (_Exit): Use it instead of __attribute__.
4793
4794 2011-02-12  Bruno Haible  <bruno@clisp.org>
4795
4796         quotearg test: Avoid test failure on mingw.
4797         * tests/test-quotearg.sh: Convert the locale identifier from native
4798         Windows syntax to Unix syntax.
4799
4800 2011-02-12  Bruno Haible  <bruno@clisp.org>
4801
4802         setlocale: Prefer gnulib's override over libintl's override.
4803         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4804         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4805         GNULIB_defined_setlocale is set.
4806
4807 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         stdlib: support non-GCC __attribute__
4810
4811         Fix a serious and tricky problem encountered when attempting to
4812         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4813         5.5, but it crashed due to memory corruption on Solaris 10 with
4814         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4815         bits that are otherwise zero.  This tagging is optional inside
4816         Emacs but is preferred and is used when __attribute__ ((__aligned
4817         (8))) works, as it does with both recent-enough GCC and with Sun C
4818         5.11.  However, Sun C 5.11 is not GCC and does not #define
4819         __GNUC__ and __GNUC_MINOR__.
4820
4821         When I added the getloadavg module to Emacs, it brought in
4822         stdlib.in.h, which contained this fragment:
4823
4824            #ifndef __attribute__
4825            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4826            #  define __attribute__(Spec)   /* empty */
4827            # endif
4828            #endif
4829
4830         When files that include <stdlib.h> were compiled with Sun C 5.11,
4831         the above code disabled __attribute__ ((__aligned (8))), which
4832         caused variables to not be properly aligned, which eventually led
4833         to the pointer corruption mentioned above.  (This was a bit hard
4834         to diagnose, unfortunately.)
4835
4836         Several "#define __attribute__(X) /* empty */" code snippets need
4837         to be eradicated from Gnulib to work with non-GCC compilers that
4838         support __attribute__.  The Autoconf way to do this is to test for
4839         each kind of attribute that we want support for, and selectively
4840         enable that in source code.
4841
4842         Fix this problem just for stdlib.h, by adding a test for the
4843         __noreturn__ attribute, and change stdlib.in.h to use that test
4844         when needed.  This technique can be easily generalized to the
4845         other *.in.h files and attributes, and a similar technique can be
4846         used for *.h and *.c files.  This patch is enough to solve the
4847         problem for Emacs + getloadavg, and I thought I'd publish it for
4848         feedback before undertaking further, similar fixes in other
4849         modules.
4850
4851         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4852         because it's not needed for stdlib.h.  It merely substitutes the
4853         value directly into stdlib.h.  We may well need to #define it, or
4854         similar symbols, for other modules, but it's nice to also have an
4855         option to not #define it for applications like Emacs that do not
4856         need it.
4857
4858         * lib/stdlib.in.h (__attribute__): Do not #define.
4859         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4860         be defined only if the _Exit module is also used.
4861         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4863         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4864         platforms.
4865         * modules/_Exit (Files): Add m4/attribute.m4.
4866         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4867         * m4/attribute.m4: New file.
4868
4869 2011-02-12  Bruno Haible  <bruno@clisp.org>
4870
4871         wcsrtombs: Work around bug on native Windows.
4872         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4873         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4874         instead of len.
4875         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4876
4877 2011-02-12  Bruno Haible  <bruno@clisp.org>
4878
4879         mbsrtowcs: Work around bug on native Windows.
4880         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4881         against mingw bug.
4882         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4883
4884 2011-02-12  Bruno Haible  <bruno@clisp.org>
4885
4886         Avoid setlocale bugs in tests.
4887         * modules/btowc (Dependencies): Add setlocale.
4888         * modules/c-strcase (Dependencies): Likewise.
4889         * modules/mbmemcasecmp (Dependencies): Likewise.
4890         * modules/mbmemcasecoll (Dependencies): Likewise.
4891         * modules/mbrtowc (Dependencies): Likewise.
4892         * modules/mbscasecmp (Dependencies): Likewise.
4893         * modules/mbscasestr (Dependencies): Likewise.
4894         * modules/mbschr (Dependencies): Likewise.
4895         * modules/mbscspn (Dependencies): Likewise.
4896         * modules/mbsinit (Dependencies): Likewise.
4897         * modules/mbsncasecmp (Dependencies): Likewise.
4898         * modules/mbsnrtowcs (Dependencies): Likewise.
4899         * modules/mbspbrk (Dependencies): Likewise.
4900         * modules/mbspcasecmp (Dependencies): Likewise.
4901         * modules/mbsrchr (Dependencies): Likewise.
4902         * modules/mbsrtowcs (Dependencies): Likewise.
4903         * modules/mbsspn (Dependencies): Likewise.
4904         * modules/mbsstr (Dependencies): Likewise.
4905         * modules/nl_langinfo (Dependencies): Likewise.
4906         * modules/quotearg (Dependencies): Likewise.
4907         * modules/unicase/locale-language (Dependencies): Likewise.
4908         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4909         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4910         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4911         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4912         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4913         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4914         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4915         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4916         * modules/vasnprintf-posix (Dependencies): Likewise.
4917         * modules/wcrtomb (Dependencies): Likewise.
4918         * modules/wcsnrtombs (Dependencies): Likewise.
4919         * modules/wcsrtombs (Dependencies): Likewise.
4920
4921 2011-02-12  Bruno Haible  <bruno@clisp.org>
4922
4923         setlocale: Workaround native Windows bug.
4924         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4925         succeeds but sets LC_CTYPE to "C", report a failure.
4926         * tests/test-setlocale2.sh: New file.
4927         * tests/test-setlocale2.c: New file.
4928         * modules/setlocale-tests (Files): Add the new files.
4929         (Makefile.am): Enable test-setlocale2.sh test.
4930         * doc/posix-functions/setlocale.texi: Mention workaround.
4931
4932 2011-02-11  Bruno Haible  <bruno@clisp.org>
4933
4934         Tests for module 'setlocale'.
4935         * modules/setlocale-tests: New file.
4936         * tests/test-setlocale1.sh: New file.
4937         * tests/test-setlocale1.c: New file.
4938
4939         New module 'setlocale'.
4940         * lib/locale.in.h (setlocale): New declaration.
4941         * lib/setlocale.c: New file, based on
4942         gettext/gettext-runtime/intl/setlocale.c.
4943         * m4/setlocale.m4: New file.
4944         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4945         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4946         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4947         REPLACE_SETLOCALE.
4948         * modules/setlocale: New file.
4949         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4950         * doc/posix-functions/setlocale.texi: Mention the new module.
4951
4952 2011-02-11  Bruno Haible  <bruno@clisp.org>
4953
4954         Prepare for locale dependent tests on mingw.
4955         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4956         because it has the wrong locale encoding.
4957         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4958         French_France.1252 instead of "fr".
4959         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4960         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4961         because it has the wrong locale encoding.
4962         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4963         native Windows, try Turkish_Turkey.65001.
4964         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4965         Chinese_China.54936.
4966
4967         Prepare for locale dependent tests on mingw.
4968         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4969         differently.
4970         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4971         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4972         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4973         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4974
4975 2011-02-11  Eric Blake  <eblake@redhat.com>
4976
4977         strptime: avoid compiler warnings
4978         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4979         compiler warnings about dead code.
4980         Reported by Daniel P. Berrange.
4981
4982 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4983
4984         doc: update users.txt
4985         * users.txt: Add rcs.
4986
4987 2011-02-10  John W. Eaton  <jwe@gnu.org>
4988
4989         doc: update users.txt
4990         * users.txt: Add octave.
4991
4992 2011-02-10  Jim Meyering  <meyering@redhat.com>
4993
4994         doc: update users.txt
4995         * users.txt: Add iwhd.
4996
4997 2011-02-09  Bruno Haible  <bruno@clisp.org>
4998
4999         gnulib-tool: Make copyright notice adjustment more robust.
5000         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5001         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5002         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5003         License".
5004         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5005
5006 2011-02-06  Bruno Haible  <bruno@clisp.org>
5007
5008         New module 'towctrans'.
5009         * modules/towctrans: New file.
5010         * lib/wctype.in.h (towctrans): New declaration.
5011         * lib/towctrans.c: New file.
5012         * lib/towctrans-impl.h: New file.
5013         * m4/towctrans.m4: New file.
5014         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5015         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5016         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5017         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5018         * doc/posix-functions/towctrans.texi: Mention the new module.
5019
5020 2011-02-06  Bruno Haible  <bruno@clisp.org>
5021
5022         New module 'wctrans'.
5023         * modules/wctrans: New file.
5024         * lib/wctype.in.h (wctrans): New declaration.
5025         * lib/wctrans.c: New file.
5026         * lib/wctrans-impl.h: New file.
5027         * m4/wctrans.m4: New file.
5028         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5029         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5030         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5031         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5032         * doc/posix-functions/wctrans.texi: Mention the new module.
5033
5034 2011-02-06  Bruno Haible  <bruno@clisp.org>
5035
5036         New module 'iswctype'.
5037         * modules/iswctype: New file.
5038         * lib/wctype.in.h (iswctype): New declaration.
5039         * lib/iswctype.c: New file.
5040         * lib/iswctype-impl.h: New file.
5041         * m4/iswctype.m4: New file.
5042         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5043         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5044         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5045         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5046         * doc/posix-functions/iswctype.texi: Mention the new module and the
5047         HP-UX 11.00 problem.
5048
5049 2011-02-06  Bruno Haible  <bruno@clisp.org>
5050
5051         New module 'wctype'.
5052         * modules/wctype: Change to represent the wctype() substitute.
5053         * lib/wctype.in.h (wctype): New declaration.
5054         * lib/wctype.c: New file.
5055         * lib/wctype-impl.h: New file.
5056         * m4/wctype.m4: New file.
5057         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5058         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5059         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5060         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5061         * doc/posix-functions/wctype.texi: Mention the new module and the
5062         HP-UX 11.00 problem.
5063
5064 2011-02-06  Bruno Haible  <bruno@clisp.org>
5065
5066         wctype-h: Ensure wctype_t and wctrans_t are defined.
5067         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5068         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5069         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5070         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5071         HAVE_WCTRANS_T.
5072         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5073
5074 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         flock: fix license typo
5077
5078         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5079         omitted.
5080
5081 2011-02-08  Bruno Haible  <bruno@clisp.org>
5082
5083         Split large sed scripts, for HP-UX sed.
5084         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5085         to avoid HP-UX limit of 99 commands, in the near future.
5086         * modules/stdlib (Makefile.am): Likewise.
5087         * modules/unistd (Makefile.am): Likewise.
5088         * modules/wchar (Makefile.am): Likewise.
5089         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5090         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5092
5093 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5094             Bruno Haible  <bruno@clisp.org>
5095
5096         stdlib: improve random_r modularization
5097         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5098         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5099         you also need the random_r module to get this material right.
5100         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5101         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5102         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5103
5104 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5105
5106         stdlib: don't depend on stdint
5107         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5108         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5109         be independent of whether stdint.h is needed.
5110         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5111         here, instead of ...
5112         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5113         struct random_data should be using the random_r module, not just
5114         the stdlib module (which wouldn't make sense: what package needs
5115         just struct random_data without also needing random_r?).
5116         * modules/stdlib (Depends-on): Remove stdint.
5117
5118         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5119         See the thread rooted at
5120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5121         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5122         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5123         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5124         __VMS)); previously it was always included (via fcntl--.h).
5125         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5126         hand; this is good enough for load averages.  Also, do not use
5127         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5128         flags directly if available and don't bother otherwise.  (Packages
5129         that need the extra reliability should use the modules that define
5130         these flags on older platforms that lack them.)
5131         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5132         fcntl-safer.
5133
5134 2011-02-08  Jim Meyering  <meyering@redhat.com>
5135
5136         di-set.h, ino-map.h: add multiple-inclusion guard
5137         Technically, the guard is required only for ino-map.h, due to its
5138         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5139         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5140         * lib/ino-map.h: Likewise.
5141
5142 2011-02-06  Bruno Haible  <bruno@clisp.org>
5143
5144         iswblank: Ensure declaration on glibc systems.
5145         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5146         * modules/iswblank (Dependencies): Add 'extensions'.
5147         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5148
5149 2011-02-06  Bruno Haible  <bruno@clisp.org>
5150
5151         New module 'iswblank'.
5152         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5153         * modules/iswblank: New file.
5154         * modules/wctype-h (Files): Remove lib/iswblank.c.
5155         (Makefile.am): Substitute GNULIB_ISWBLANK.
5156         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5157         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5158         (gl_WCTYPE_H_DEFAULTS): New macro.
5159         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5160         * modules/iswblank-tests: New file.
5161         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5162         * tests/test-wctype-h.c (main): Remove iswblank tests.
5163         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5164         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5165         of 'wctype-h'.
5166         * NEWS: Mention the change.
5167         * modules/mbchar (Depends-on): Add iswblank.
5168
5169 2011-02-08  Bruno Haible  <bruno@clisp.org>
5170
5171         di-set tests: Refactor.
5172         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5173         unnecessary includes.
5174         (ASSERT): Remove macro.
5175         (main): Make C90 compliant by avoiding variable declaration after
5176         statement.
5177         * modules/di-set-tests (Files): Add tests/macros.h.
5178
5179 2011-02-08  Bruno Haible  <bruno@clisp.org>
5180
5181         ino-map tests: Refactor.
5182         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5183         unnecessary includes.
5184         (ASSERT): Remove macro.
5185         (main): Make C90 compliant by avoiding variable declaration after
5186         statement.
5187         * modules/ino-map-tests (Files): Add tests/macros.h.
5188
5189 2011-02-08  Jim Meyering  <meyering@redhat.com>
5190
5191         di-set: add "const" to a cast
5192         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5193         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5194
5195 2011-02-06  Bruno Haible  <bruno@clisp.org>
5196
5197         Rename module 'wctype' to 'wctype-h'.
5198         * modules/wctype-h: Renamed from modules/wctype.
5199         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5200         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5201         (Files, Depends-on, Makefile.am): Update.
5202         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5203         (Files, Makefile.am): Update.
5204         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5205         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5206         * doc/posix-headers/wctype.texi: Update.
5207         * doc/posix-functions/iswalnum.texi: Update.
5208         * doc/posix-functions/iswalpha.texi: Update.
5209         * doc/posix-functions/iswblank.texi: Update.
5210         * doc/posix-functions/iswcntrl.texi: Update.
5211         * doc/posix-functions/iswdigit.texi: Update.
5212         * doc/posix-functions/iswgraph.texi: Update.
5213         * doc/posix-functions/iswlower.texi: Update.
5214         * doc/posix-functions/iswprint.texi: Update.
5215         * doc/posix-functions/iswpunct.texi: Update.
5216         * doc/posix-functions/iswspace.texi: Update.
5217         * doc/posix-functions/iswupper.texi: Update.
5218         * doc/posix-functions/iswxdigit.texi: Update.
5219         * doc/posix-functions/towlower.texi: Update.
5220         * doc/posix-functions/towupper.texi: Update.
5221         * NEWS: Mention the change.
5222         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5223         * modules/mbchar (Dependencies): Likewise.
5224         * modules/mbswidth (Dependencies): Likewise.
5225         * modules/quotearg (Dependencies): Likewise.
5226         * modules/regex (Dependencies): Likewise.
5227         * modules/wcscasecmp (Dependencies): Likewise.
5228         * modules/wcsncasecmp (Dependencies): Likewise.
5229         * modules/wcwidth (Dependencies): Likewise.
5230
5231 2011-02-06  Bruno Haible  <bruno@clisp.org>
5232
5233         New module 'wcswidth'.
5234         * modules/wcswidth: New file.
5235         * lib/wchar.in.h (wcswidth): New declaration.
5236         * lib/wcswidth.c: New file.
5237         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5238         * m4/wcswidth.m4: New file.
5239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5241         REPLACE_WCSWIDTH.
5242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5243         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5244         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5245         * doc/posix-functions/wcswidth.texi: Mention the new module.
5246
5247 2011-02-06  Bruno Haible  <bruno@clisp.org>
5248
5249         New module 'wcstok'.
5250         * modules/wcstok: New file.
5251         * lib/wchar.in.h (wcstok): New declaration.
5252         * lib/wcstok.c: New file.
5253         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5254         * m4/wcstok.m4: New file.
5255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5258         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5259         * doc/posix-functions/wcstok.texi: Mention the new module.
5260
5261 2011-02-06  Bruno Haible  <bruno@clisp.org>
5262
5263         New module 'wcsstr'.
5264         * modules/wcsstr: New file.
5265         * lib/wchar.in.h (wcsstr): New declaration.
5266         * lib/wcsstr.c: New file.
5267         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5268         * m4/wcsstr.m4: New file.
5269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5271         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5272         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5273         * doc/posix-functions/wcsstr.texi: Mention the new module.
5274
5275 2011-02-06  Bruno Haible  <bruno@clisp.org>
5276
5277         New module 'wcspbrk'.
5278         * modules/wcspbrk: New file.
5279         * lib/wchar.in.h (wcspbrk): New declaration.
5280         * lib/wcspbrk.c: New file.
5281         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5282         * m4/wcspbrk.m4: New file.
5283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5285         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5286         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5287         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5288
5289 2011-02-06  Bruno Haible  <bruno@clisp.org>
5290
5291         New module 'wcsspn'.
5292         * modules/wcsspn: New file.
5293         * lib/wchar.in.h (wcsspn): New declaration.
5294         * lib/wcsspn.c: New file.
5295         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5296         * m4/wcsspn.m4: New file.
5297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5299         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5300         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5301         * doc/posix-functions/wcsspn.texi: Mention the new module.
5302
5303 2011-02-06  Bruno Haible  <bruno@clisp.org>
5304
5305         New module 'wcscspn'.
5306         * modules/wcscspn: New file.
5307         * lib/wchar.in.h (wcscspn): New declaration.
5308         * lib/wcscspn.c: New file.
5309         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5310         * m4/wcscspn.m4: New file.
5311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5314         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5315         * doc/posix-functions/wcscspn.texi: Mention the new module.
5316
5317 2011-02-06  Bruno Haible  <bruno@clisp.org>
5318
5319         New module 'wcsrchr'.
5320         * modules/wcsrchr: New file.
5321         * lib/wchar.in.h (wcsrchr): New declaration.
5322         * lib/wcsrchr.c: New file.
5323         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5324         * m4/wcsrchr.m4: New file.
5325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5328         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5329         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5330
5331 2011-02-06  Bruno Haible  <bruno@clisp.org>
5332
5333         New module 'wcschr'.
5334         * modules/wcschr: New file.
5335         * lib/wchar.in.h (wcschr): New declaration.
5336         * lib/wcschr.c: New file.
5337         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5338         * m4/wcschr.m4: New file.
5339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5342         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5343         * doc/posix-functions/wcschr.texi: Mention the new module.
5344
5345 2011-02-06  Bruno Haible  <bruno@clisp.org>
5346
5347         New module 'wcsdup'.
5348         * modules/wcsdup: New file.
5349         * lib/wchar.in.h (wcsdup): New declaration.
5350         * lib/wcsdup.c: New file.
5351         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5352         * m4/wcsdup.m4: New file.
5353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5355         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5356         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5357         * doc/posix-functions/wcsdup.texi: Mention the new module.
5358
5359 2011-02-06  Bruno Haible  <bruno@clisp.org>
5360
5361         New module 'wcsxfrm'.
5362         * modules/wcsxfrm: New file.
5363         * lib/wchar.in.h (wcsxfrm): New declaration.
5364         * lib/wcsxfrm.c: New file.
5365         * lib/wcsxfrm-impl.h: New file.
5366         * m4/wcsxfrm.m4: New file.
5367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5370         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5371         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5372
5373 2011-02-06  Bruno Haible  <bruno@clisp.org>
5374
5375         New module 'wcscoll'.
5376         * modules/wcscoll: New file.
5377         * lib/wchar.in.h (wcscoll): New declaration.
5378         * lib/wcscoll.c: New file.
5379         * lib/wcscoll-impl.h: New file.
5380         * m4/wcscoll.m4: New file.
5381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5384         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5385         * doc/posix-functions/wcscoll.texi: Mention the new module.
5386
5387 2011-02-06  Bruno Haible  <bruno@clisp.org>
5388
5389         New module 'wcsncasecmp'.
5390         * modules/wcsncasecmp: New file.
5391         * lib/wchar.in.h (wcsncasecmp): New declaration.
5392         * lib/wcsncasecmp.c: New file.
5393         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5394         * m4/wcsncasecmp.m4: New file.
5395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5398         HAVE_WCSNCASECMP.
5399         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5400         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5401
5402 2011-02-06  Bruno Haible  <bruno@clisp.org>
5403
5404         New module 'wcscasecmp'.
5405         * modules/wcscasecmp: New file.
5406         * lib/wchar.in.h (wcscasecmp): New declaration.
5407         * lib/wcscasecmp.c: New file.
5408         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5409         * m4/wcscasecmp.m4: New file.
5410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5413         HAVE_WCSCASECMP.
5414         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5415         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5416
5417 2011-02-05  Bruno Haible  <bruno@clisp.org>
5418
5419         New module 'wcsncmp'.
5420         * modules/wcsncmp: New file.
5421         * lib/wchar.in.h (wcsncmp): New declaration.
5422         * lib/wcsncmp.c: New file.
5423         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5424         * m4/wcsncmp.m4: New file.
5425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5427         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5428         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5429         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5430
5431 2011-02-05  Bruno Haible  <bruno@clisp.org>
5432
5433         New module 'wcscmp'.
5434         * modules/wcscmp: New file.
5435         * lib/wchar.in.h (wcscmp): New declaration.
5436         * lib/wcscmp.c: New file.
5437         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5438         * m4/wcscmp.m4: New file.
5439         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5440         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5441         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5442         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5443         * doc/posix-functions/wcscmp.texi: Mention the new module.
5444
5445 2011-02-05  Bruno Haible  <bruno@clisp.org>
5446
5447         New module 'wcsncat'.
5448         * modules/wcsncat: New file.
5449         * lib/wchar.in.h (wcsncat): New declaration.
5450         * lib/wcsncat.c: New file.
5451         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5452         * m4/wcsncat.m4: New file.
5453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5455         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5456         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5457         * doc/posix-functions/wcsncat.texi: Mention the new module.
5458
5459 2011-02-05  Bruno Haible  <bruno@clisp.org>
5460
5461         New module 'wcscat'.
5462         * modules/wcscat: New file.
5463         * lib/wchar.in.h (wcscat): New declaration.
5464         * lib/wcscat.c: New file.
5465         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5466         * m4/wcscat.m4: New file.
5467         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5468         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5469         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5470         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5471         * doc/posix-functions/wcscat.texi: Mention the new module.
5472
5473 2011-02-05  Bruno Haible  <bruno@clisp.org>
5474
5475         New module 'wcpncpy'.
5476         * modules/wcpncpy: New file.
5477         * lib/wchar.in.h (wcpncpy): New declaration.
5478         * lib/wcpncpy.c: New file.
5479         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5480         * m4/wcpncpy.m4: New file.
5481         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5482         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5483         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5484         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5485         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5486
5487 2011-02-05  Bruno Haible  <bruno@clisp.org>
5488
5489         New module 'wcsncpy'.
5490         * modules/wcsncpy: New file.
5491         * lib/wchar.in.h (wcsncpy): New declaration.
5492         * lib/wcsncpy.c: New file.
5493         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5494         * m4/wcsncpy.m4: New file.
5495         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5496         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5498         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5499         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5500
5501 2011-02-05  Bruno Haible  <bruno@clisp.org>
5502
5503         New module 'wcpcpy'.
5504         * modules/wcpcpy: New file.
5505         * lib/wchar.in.h (wcpcpy): New declaration.
5506         * lib/wcpcpy.c: New file.
5507         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5508         * m4/wcpcpy.m4: New file.
5509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5511         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5512         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5513         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5514
5515 2011-02-05  Bruno Haible  <bruno@clisp.org>
5516
5517         New module 'wcscpy'.
5518         * modules/wcscpy: New file.
5519         * lib/wchar.in.h (wcscpy): New declaration.
5520         * lib/wcscpy.c: New file.
5521         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5522         * m4/wcscpy.m4: New file.
5523         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5524         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5525         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5526         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5527         * doc/posix-functions/wcscpy.texi: Mention the new module.
5528
5529 2011-02-05  Bruno Haible  <bruno@clisp.org>
5530
5531         New module 'wcsnlen'.
5532         * modules/wcsnlen: New file.
5533         * lib/wchar.in.h (wcsnlen): New declaration.
5534         * lib/wcsnlen.c: New file.
5535         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5536         * m4/wcsnlen.m4: New file.
5537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5540         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5541         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5542
5543 2011-02-05  Bruno Haible  <bruno@clisp.org>
5544
5545         New module 'wcslen'.
5546         * modules/wcslen: New file.
5547         * lib/wchar.in.h (wcslen): New declaration.
5548         * lib/wcslen.c: New file.
5549         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5550         * m4/wcslen.m4: New file.
5551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5554         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5555         * doc/posix-functions/wcslen.texi: Mention the new module.
5556
5557 2011-02-05  Bruno Haible  <bruno@clisp.org>
5558
5559         New module 'wmemset'.
5560         * modules/wmemset: New file.
5561         * lib/wchar.in.h (wmemset): New declaration.
5562         * lib/wmemset.c: New file.
5563         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5564         * m4/wmemset.m4: New file.
5565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5567         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5568         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5569         * doc/posix-functions/wmemset.texi: Mention the new module.
5570
5571 2011-02-05  Bruno Haible  <bruno@clisp.org>
5572
5573         New module 'wmemmove'.
5574         * modules/wmemmove: New file.
5575         * lib/wchar.in.h (wmemmove): New declaration.
5576         * lib/wmemmove.c: New file.
5577         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5578         * m4/wmemmove.m4: New file.
5579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5581         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5582         HAVE_WMEMMOVE.
5583         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5584         * doc/posix-functions/wmemmove.texi: Mention the new module.
5585
5586 2011-02-05  Bruno Haible  <bruno@clisp.org>
5587
5588         New module 'wmemcpy'.
5589         * modules/wmemcpy: New file.
5590         * lib/wchar.in.h (wmemcpy): New declaration.
5591         * lib/wmemcpy.c: New file.
5592         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5593         * m4/wmemcpy.m4: New file.
5594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5596         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5597         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5598         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5599
5600 2011-02-05  Bruno Haible  <bruno@clisp.org>
5601
5602         New module 'wmemcmp'.
5603         * modules/wmemcmp: New file.
5604         * lib/wchar.in.h (wmemcmp): New declaration.
5605         * lib/wmemcmp.c: New file.
5606         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5607         * m4/wmemcmp.m4: New file.
5608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5610         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5611         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5612         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5613
5614 2011-02-07  Jim Meyering  <meyering@redhat.com>
5615
5616         di-set, ino-map: new modules, from coreutils
5617         * lib/di-set.c: New file.
5618         * lib/di-set.h: Likewise.
5619         * lib/ino-map.c: Likewise.
5620         * lib/ino-map.h: Likewise.
5621         * modules/di-set: Likewise.
5622         * modules/di-set-tests: Likewise.
5623         * modules/ino-map: Likewise.
5624         * modules/ino-map-tests: Likewise.
5625         * tests/test-di-set.c: Likewise.
5626         * tests/test-ino-map.c: Likewise.
5627
5628 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5629
5630         getloadavg: merge minor changes from Emacs
5631
5632         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5633         (getloadavg): Use memset, not bzero.
5634
5635         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5636         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5637         clash (bug#86).
5638
5639 2010-11-14  Bruno Haible  <bruno@clisp.org>
5640
5641         Allow multiple gnulib generated replacements to coexist.
5642         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5643         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5644         * lib/langinfo.in.h (nl_item): Likewise.
5645         * lib/math.in.h (_NaN, NAN): Likewise.
5646         * lib/netdb.in.h (struct addrinfo): Likewise.
5647         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5648         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5649         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5650         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5651         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5652         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5653         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5654         pthread_mutexattr_init, pthread_mutexattr_settype,
5655         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5656         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5657         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5658         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5659         * lib/sched.in.h (struct sched_param): Likewise.
5660         * lib/se-selinux.in.h (security_class_t, security_context_t,
5661         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5662         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5663         lsetfilecon, fsetfilecon, security_check_context,
5664         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5665         Likewise.
5666         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5667         Likewise.
5668         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5669         _gl_function_taking_int_returning_void_t, union sigval,
5670         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5671         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5672         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5673         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5674         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5675         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5676         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5677         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5678         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5679         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5680         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5681         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5682         socklen_t, rpl_fd_isset): Likewise.
5683         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5684         * lib/sys_time.in.h (struct timeval): Likewise.
5685         * lib/sys_times.in.h (struct tms): Likewise.
5686         * lib/sys_utsname.in.h (struct utsname):
5687         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5688         * lib/unistd.in.h (getpagesize): Likewise.
5689         * lib/wchar.in.h (mbstate_t): Likewise.
5690         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5691         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5692         towlower, towupper): Likewise.
5693         Reported by Sam Steingold <sds@gnu.org>.
5694
5695 2011-02-05  Eric Blake  <eblake@redhat.com>
5696
5697         unsetenv: work around Haiku issues
5698         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5699         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5700
5701 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5702
5703         libposix: avoid calling error() within libposix
5704         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5705         is defined.
5706
5707 2011-02-05  Eric Blake  <eblake@redhat.com>
5708
5709         strerror_r-posix: port to cygwin
5710         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5711         implementation.
5712         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5713         * tests/test-strerror_r.c (main): Fix test.
5714         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5715         issue.
5716
5717 2011-02-05  Bruno Haible  <bruno@clisp.org>
5718
5719         New module 'wmemchr'.
5720         * modules/wmemchr: New file.
5721         * lib/wchar.in.h (wmemchr): New declaration.
5722         * lib/wmemchr.c: New file.
5723         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5724         * m4/wmemchr.m4: New file.
5725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5727         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5728         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5729         * doc/posix-functions/wmemchr.texi: Mention the new module.
5730
5731 2011-02-04  Eric Blake  <eblake@redhat.com>
5732
5733         fdopendir: detect FreeBSD bug
5734         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5735         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5736
5737 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5738
5739         stdbool: do not define HAVE_STDBOOL_H
5740         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5741         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5742         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5743         imported from the latest Autoconf git.  It was motivated by Emacs,
5744         which uses gnulib but does not need HAVE_STDBOOL_H.
5745
5746 2011-02-04  Bruno Haible  <bruno@clisp.org>
5747
5748         wcsnrtombs: Prepare for new module wwcsnrtombs.
5749         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5750         * lib/wcsnrtombs.c: Include it.
5751         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5752
5753         wcsrtombs: Prepare for new module wwcsrtombs.
5754         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5755         * lib/wcsrtombs.c: Include it.
5756         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5757
5758         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5759         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5760         * lib/mbsnrtowcs.c: Include it.
5761         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5762
5763         mbsrtowcs: Prepare for new module mbsrtowwcs.
5764         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5765         * lib/mbsrtowcs.c: Include it.
5766         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5767
5768 2011-02-04  Bruno Haible  <bruno@clisp.org>
5769
5770         vasnprintf: Reduce use of malloc for small format strings.
5771         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5772         (arguments): Add room for the first 7 arguments.
5773         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5774         (char_directives, u8_directives, u16_directives, u32_directives): Add
5775         room for the first 7 directives.
5776         * lib/printf-parse.c: Include <string.h>.
5777         (PRINTF_PARSE): Change memory handling code so that it uses the first
5778         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5779         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5780         Reported by Pádraig Brady <P@draigbrady.com>.
5781
5782 2011-01-31  Eric Blake  <eblake@redhat.com>
5783
5784         dup2: work around Haiku bug
5785         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5786         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5787         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5788         * tests/test-dup2.c (main): Enhance test.
5789
5790 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5791
5792         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5793         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5794         declared by eglibc 2.11.2.
5795         * lib/stdio.in.h: Likewise.
5796
5797 2011-01-31  Eric Blake  <eblake@redhat.com>
5798
5799         ignore-value: add missing test dependency
5800         * tests/test-ignore-value.c: Revert previous change; stdio.h
5801         provides off_t.
5802         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5803
5804 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5805
5806         mktime: clarify long_int width checking
5807         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5808         the top level, to make it clearer that the assumption about
5809         long_int width is being checked.  See
5810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5811
5812 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5813
5814         ignore-value: Fix self-test.
5815         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5816
5817 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5818
5819         TYPE_MAXIMUM: avoid theoretically undefined behavior
5820         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5821         negative number, which the C Standard says has undefined behavior.
5822         In practice this is not a problem, but might as well do it by the book.
5823         Reported by Rich Felker and Eric Blake; see
5824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5825         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5826         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5828         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5829         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5830         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5831
5832         mktime: #undef mktime before #defining it
5833         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5834
5835         mktime: systematically normalize tm_isdst comparisons
5836         * lib/mktime.c (isdst_differ): New function.
5837         (__mktime_internal): Use it systematically for all isdst comparisons.
5838         This completes the fix for libc BZ #6723, and removes the need for
5839         normalizing tm_isdst.  See
5840         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5841         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5842
5843         mktime: fix some integer overflow issues and sidestep the rest
5844
5845         This was prompted by a bug report by Benjamin Lindner for MinGW
5846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5847         His bug is due to signed integer overflow (0 - INT_MIN), and I
5848         I scanned through mktime.c looking for other integer overflow
5849         problems, fixing all the bugs I found.
5850
5851         Although the C Standard says the resulting code is still not safe
5852         in the presence of integer overflow, in practice it should be good
5853         enough for all real-world two's-complement implementations, except
5854         for debugging environments that deliberately trap on integer
5855         overflow (e.g., gcc -ftrapv).
5856
5857         * lib/mktime.c (WRAPV): New macro.
5858         (SHR): Also check that long_int and time_t shift right in the
5859         usual way, before using the fast-but-unportable method.
5860         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5861         used.  The code already assumed two's complement, so there's
5862         no need to test for alternatives.  All uses removed.
5863         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5864         the C standard.  Problem reported by Rich Felker in
5865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5866         (twos_complement_arithmetic): Also check long_int and time_t.
5867         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5868         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5869         (__mktime_internal): Avoid integer overflow with unary subtraction
5870         in two instances where -1 - X is an adequate replacement for -X,
5871         since the calculations are approximate.
5872
5873 2011-01-29  Eric Blake  <eblake@redhat.com>
5874
5875         mktime: avoid infinite loop
5876         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5877         type; behavior is still undefined but portable to all known targets.
5878         Reported by Rich Felker.
5879
5880 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5881
5882         rename, unlink, same-inode: Relicense.
5883         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5884         * modules/unlink (License): Likewise.
5885         * modules/same-inode (License): Likewise.
5886
5887 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5888
5889         mktime: avoid problems on NetBSD 5 / i386
5890         * lib/mktime.c (long_int): New type.  This works around a problem
5891         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5892         but time_t is 64 bits, and where I expect the existing code is
5893         wrong in some cases.
5894         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5895         (ydhms_diff): Bring back the compile-time check for wide-enough
5896         year and yday.
5897
5898         mktime: fix misspelling in comment
5899         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5900         This merges all recent glibc changes of importance.
5901
5902 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5903
5904         move-if-change: cope with concurrent mv of identical file.
5905         * build-aux/move-if-change (CMPPROG): Accept environment
5906         variable as an override for `cmp'.
5907         (usage): Document CMPPROG.
5908         Adjust comparison to drop stdout.  Cope with failure of mv if
5909         the target file exists and is identical to the source, for
5910         parallel builds.
5911         Report from H.J. Lu against binutils in PR binutils/12283.
5912
5913 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5914
5915         * users.txt: Mention sharutils.
5916
5917 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5918
5919         * users.txt: Mention OATH Toolkit.
5920
5921 2011-01-27  Bruno Haible  <bruno@clisp.org>
5922
5923         Prepare for supporting FreeBSD 10.
5924         * build-aux/config.libpath: Remove handling of freebsd1*.
5925
5926 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5927
5928         Prepare for supporting FreeBSD 10.
5929         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5930         match FreeBSD 10.0.
5931
5932 2011-01-27  Bruno Haible  <bruno@clisp.org>
5933
5934         vma-iter, get-rusage-as: Add OpenBSD support.
5935         * modules/vma-iter (configure.ac): Test for mquery.
5936         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5937         * lib/vma-iter.c: Include <sys/mman.h>.
5938         (vma_iterate): Add an implementation based on mquery().
5939         * lib/resource-ext.h (get_rusage_as): Update comments.
5940         * lib/get-rusage-as.c: Likewise.
5941         * lib/get-rusage-data.c: Likewise.
5942
5943 2011-01-26  Karl Berry  <karl@gnu.org>
5944
5945         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5946         variables to make it easier to override the makeinfo program used.
5947
5948 2011-01-26  Eric Blake  <eblake@redhat.com>
5949
5950         fcntl: work around Haiku F_DUPFD bugs
5951         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5952         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5953         cloexec bit on duplication.
5954         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5955
5956 2011-01-26  Bruno Haible  <bruno@clisp.org>
5957
5958         Enable memory leak tests on AIX.
5959         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5960         * tests/test-fprintf-posix3.c (main): Likewise.
5961
5962 2011-01-26  Bruno Haible  <bruno@clisp.org>
5963
5964         Tests for module 'get-rusage-data'.
5965         * modules/get-rusage-data-tests: New file.
5966         * tests/test-get-rusage-data.c: New file.
5967
5968         New module 'get-rusage-data'.
5969         * lib/resource-ext.h (get_rusage_data): New declaration.
5970         * lib/get-rusage-data.c: New file.
5971         * modules/get-rusage-data: New file.
5972
5973 2011-01-25  Bruno Haible  <bruno@clisp.org>
5974
5975         get-rusage-as: Allow for easier testing.
5976         * lib/resource-ext.h (get_rusage_as): Add comment.
5977         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5978         (main): New function for interactive testing.
5979
5980 2011-01-25  Bruno Haible  <bruno@clisp.org>
5981
5982         vma-iter: Treat Haiku like BeOS.
5983         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5984         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5985
5986 2011-01-25  Eric Blake  <eblake@redhat.com>
5987
5988         c-stack: fix regression on cygwin when libsigsegv is present
5989         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5990
5991 2011-01-24  Bruno Haible  <bruno@clisp.org>
5992
5993         vma-iter: Avoid empty intervals.
5994         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5995         on an empty interval.
5996
5997 2011-01-24  Jim Meyering  <meyering@redhat.com>
5998
5999         u64: remove unnecessary #include
6000         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6001
6002 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6003
6004         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6005         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6006
6007 2011-01-23  Bruno Haible  <bruno@clisp.org>
6008
6009         New module 'vma-iter'.
6010         * lib/vma-iter.h: New file.
6011         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6012         * modules/vma-iter: New file.
6013         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6014         for get_rusage_as_via_iterator.
6015         (vma_iterate_callback): New function.
6016         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6017         * modules/get-rusage-as (Depends-on): Add vma-iter.
6018
6019 2011-01-23  Bruno Haible  <bruno@clisp.org>
6020
6021         uninorm: Tweak includes.
6022         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6023         Reported by Jim Meyering.
6024
6025 2011-01-23  Bruno Haible  <bruno@clisp.org>
6026
6027         get-rusage-as: Improve on NetBSD.
6028         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6029         /proc, like on FreeBSD.
6030
6031 2011-01-23  Jim Meyering  <meyering@redhat.com>
6032
6033         xreadlink.h: remove unnecessary #include
6034         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6035
6036         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6037         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6038
6039 2011-01-23  Bruno Haible  <bruno@clisp.org>
6040
6041         get-rusage-as: Fix bug.
6042         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6043         original limit when aborting the first loop.
6044
6045 2011-01-23  Bruno Haible  <bruno@clisp.org>
6046
6047         wctype: Ensure valid C syntax.
6048         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6049         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6050
6051 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6052
6053         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6055         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6056         as they are needed only for configure's test case.
6057         This removes two unnecessary symbols from config.h.
6058
6059         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6060         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6062         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6063         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6064         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6065         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6066         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6067         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6068         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6069         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6070         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6071         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6073         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6074         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6075         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6076         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6077
6078 2011-01-21  Eric Blake  <eblake@redhat.com>
6079
6080         maintainer-makefile: work with older git for submodule check
6081         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6082         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6083         Reported by Matthias Bolte.
6084
6085         bootstrap: minor portability fixes
6086         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6087         (usage): Omit leading capital and trailing . on help phrases, per
6088         GNU Coding Standards.
6089         (check_versions, top level): Prefix messages with script name.
6090
6091 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6092
6093         bootstrap: support --no-git option
6094         * build-aux/bootstrap: Add --no-git option, to be used when
6095         --gnulib-srcdir points to the exact desired checkout.
6096
6097 2011-01-21  Eric Blake  <eblake@redhat.com>
6098
6099         strerror_r-posix: work with glibc 2.13
6100         * lib/strerror_r.c (strerror_r): Fix return type.
6101
6102 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6103             Bruno Haible  <bruno@clisp.org>
6104
6105         uN_strstr: New unit tests.
6106         * modules/unistr/u8-strstr-tests: New file.
6107         * modules/unistr/u16-strstr-tests: New file.
6108         * modules/unistr/u32-strstr-tests: New file.
6109         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6110         * tests/unistr/test-u8-strstr.c: New file.
6111         * tests/unistr/test-u16-strstr.c: New file.
6112         * tests/unistr/test-u32-strstr.c: New file.
6113
6114 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6115             Bruno Haible  <bruno@clisp.org>
6116
6117         Make uN_strstr functions O(n) worst-case.
6118         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6119         16-bit and 32-bit unit cases, use the unibyte algorithm from
6120         lib/mbsstr.c.
6121         * lib/unistr/u8-strstr.c: Include <string.h>.
6122         (UNIT_IS_UINT8_T): New macro.
6123         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6124         (U_STRLEN, U_STRNLEN): New macros.
6125         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6126         (U_STRLEN, U_STRNLEN): New macros.
6127         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6128         (configure.ac): Update required libunistring version.
6129         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6130         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6131         malloca.
6132         (configure.ac): Update required libunistring version.
6133         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6134         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6135         malloca.
6136         (configure.ac): Update required libunistring version.
6137
6138 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6139             Bruno Haible  <bruno@clisp.org>
6140
6141         Prepare for faster uN_strstr functions.
6142         * lib/str-kmp.h: Support definable UNITs.
6143         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6144         needle_len argument.
6145         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6146         * lib/mbscasestr.c (mbscasestr): Likewise.
6147
6148 2011-01-21  Pádraig Brady <P@draigBrady.com>
6149
6150         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6151         * tests/test-malloca.c (main): Unset the environment variable
6152         to greatly speed up the test.
6153         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6154         * modules/malloca-tests: Depend on unsetenv.
6155
6156 2011-01-21  Pádraig Brady <P@draigBrady.com>
6157
6158         ignore-value: remove stdint dependency
6159         * lib/ignore-value.h: Remove <stdint.h>
6160         * modules/ignore-value: Remove stdint dependency.
6161
6162 2011-01-21  Jim Meyering  <meyering@redhat.com>
6163
6164         maint.mk: adjust variable name to be consistent with other gl_ vars
6165         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6166         to be lower case.
6167
6168 2011-01-20  Jim Meyering  <meyering@redhat.com>
6169
6170         maint.mk: make "check" depend on public-submodule-commit by default
6171         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6172
6173 2011-01-20  Bruno Haible  <bruno@clisp.org>
6174
6175         mbfile, mbiter: Complete change from 2008-12-21.
6176         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6177         * m4/mbiter.m4 (gl_MBITER): Likewise.
6178
6179 2011-01-20  Jim Meyering  <meyering@redhat.com>
6180
6181         init.sh: insert space between each function name and "()"
6182         * tests/init.sh: Make it a little easier to see that a function's
6183         name is "warn_", and not "warn" when looking at the first part of
6184         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6185
6186 2011-01-20  Jim Meyering  <meyering@redhat.com>
6187
6188         mountlist: clean up code formatting
6189         * lib/mountlist.c (read_file_system_list): Split a long line,
6190         correct bracing style, use NULL in place of "(struct statfs *)0",
6191         don't parenthesize return value, add spaces around "=" and after
6192         ";-in-for-stmt".
6193
6194 2011-01-14  Markus Duft <mduft@gentoo.org>
6195
6196         mountlist: add support for Interix
6197         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6198         Apply statvfs to all entries of /dev/fs.
6199         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6200         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6201
6202 2011-01-20  Jim Meyering  <meyering@redhat.com>
6203
6204         maint.mk: improve the public-submodule-commit rule
6205         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6206         to suppress printing of its commands... unless V=1.
6207         Add git submodule's --quiet option to suppress printing of e.g.,
6208         "Entering gnulib" output.
6209         "cd" into $(srcdir) before running git submodule.
6210
6211 2011-01-20  Bruno Haible  <bruno@clisp.org>
6212
6213         include_next: Fix bug introduced on 2011-01-18.
6214         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6215         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6216         ac_cv_header_... variable if the second argument is not 'check'.
6217         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6218         gl_NEXT_HEADERS_INTERNAL.
6219
6220 2011-01-20  Bruno Haible  <bruno@clisp.org>
6221
6222         Allow the user to avoid the GNULIB_TEST_* macros.
6223         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6224         Suggested by Paul Eggert.
6225
6226 2011-01-14  Jim Meyering  <meyering@redhat.com>
6227
6228         bootstrap: avoid failure when there is no .gitmodules file
6229         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6230         has been assigned to, even when its value is the empty string.
6231         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6232         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6233         Reported by John W. Eaton <jwe@gnu.org>.
6234
6235 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6236
6237         assume <ctype.h>, ..., <time.h> exist
6238         For years gnulib has been assuming the existence of the headers
6239         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6240         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6241         them, since they don't appear to be needed.
6242         * README (Portability guidelines): Document this.
6243         * lib/flock.c: Assume <fcntl.h> exists.
6244         * lib/regex_internal.h: Assume <locale.h> exists.
6245         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6247         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6248         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6249         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6250         * m4/regex.m4 (gl_REGEX): Likewise.
6251         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6252         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6253         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6254         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6255         * tests/test-argp.c: Likewise.
6256         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6257
6258         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6259         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6260         AA_APPLE_UNIVERSAL_BUILD.  See
6261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6262         * NEWS: Document this.
6263
6264 2011-01-19  Eric Blake  <eblake@redhat.com>
6265
6266         c-stack: assume stack overflow if SA_SIGINFO unsupported
6267         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6268         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6269         sigaction will work.
6270         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6271         behavior match Linux.
6272         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6273
6274         stdbool-tests: accomodate Haiku
6275         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6276
6277         binary-io: fix O_TEXT on Haiku
6278         * modules/binary-io (Depends-on): Add fcntl-h.
6279         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6280         than blindly undefining O_TEXT.
6281         Reported by Scott McCreary.
6282
6283 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6284
6285         include_next: do not check for standard headers like stddef.h
6286
6287         I found this problem when modifying Emacs to use gnulib.
6288         I noticed that it added HAVE_STDDEF_H to config.h, even though
6289         gnulib always assumes <stddef.h> exists as per README and this
6290         symbol is unnecessary.
6291         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6292         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6293         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6294         faster for headers like stddef.h that are known to exist.
6295         (gl_CHECK_NEXT_HEADERS): Use it.
6296         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6297         rather than gl_CHECK_NEXT_HEADERS.
6298         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6299         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6300
6301 2011-01-18  Eric Blake  <eblake@redhat.com>
6302
6303         ansi-c++-opt: skip C++ dependency style if C++ is unused
6304         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6305         tests when we know C++ compilation is not desired.
6306         Reported by Scott McCreary.
6307
6308 2011-01-18  Bruno Haible  <bruno@clisp.org>
6309
6310         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6311         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6312         (main): Perform test also when getrlimit and setrlimit don't exist or
6313         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6314         limiting the address space size using setrlimit, compare the address
6315         space size before and after the the test.
6316         * tests/test-dprintf-posix2.c: Likewise.
6317         * tests/test-fprintf-posix3.sh: Update skip messages.
6318         * tests/test-dprintf-posix2.sh: Likewise.
6319         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6320         * modules/dprintf-posix-tests (Depends-on): Likewise.
6321         Reported by Bruce Korb <bkorb@gnu.org> and
6322         Gary V. Vaughan <gary@gnu.org>.
6323
6324 2011-01-18  Bruno Haible  <bruno@clisp.org>
6325
6326         get-rusage-as: Improvement for Cygwin.
6327         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6328         areas that are merely reserved.
6329
6330 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6331
6332         strftime: remove dependencies on multibyte modules
6333
6334         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6335         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6336         only if __osf__ is defined, and I suspect OSF doesn't need these
6337         other modules.  If my guess is wrong, we'll need to come up with a
6338         variant of strftime that doesn't need the multibyte modules.
6339
6340         I discovered this problem when attempting modify Emacs to use the
6341         strftime module.  With the previous gnulib, this caused Emacs to
6342         need 31 new files, ranging from lib/config.charset to
6343         m4/wint_t.m4.  This was overkill and I expect would be offputting
6344         to the Emacs maintainers.  After this change, only 6 new files are
6345         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6346         stdbool.m4, and tm_gmtoff.m4.
6347
6348         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6349         Suggested by Bruno Haible in
6350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6351         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6352         and do not check for wchar.h.
6353         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6354         (Depends-on): Remove mbrlen, mbsinit, wchar.
6355
6356 2011-01-18  Bruno Haible  <bruno@clisp.org>
6357
6358         Tests for module 'get-rusage-as'.
6359         * modules/get-rusage-as-tests: New file.
6360         * tests/test-get-rusage-as.c: New file.
6361
6362         New module 'get-rusage-as'.
6363         * modules/get-rusage-as: New file.
6364         * lib/resource-ext.h: New file.
6365         * lib/get-rusage-as.c: New file.
6366
6367 2011-01-17  Eric Blake  <eblake@redhat.com>
6368
6369         sigaction: relax license from LGPLv3+ to LGPLv2+
6370         * modules/sigaction (License): Relax to LGPLv2+.
6371
6372 2011-01-14  Bruno Haible  <bruno@clisp.org>
6373
6374         filemode: Make function declarations usable in C++ mode.
6375         * lib/filemode.h: Enclose function declarations in extern "C" block.
6376         Reported by John W. Eaton <jwe@gnu.org>.
6377
6378 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6379
6380         save-cwd: no longer include "xgetcwd.h"
6381         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6382         This avoids a compilation failure in projects that use save-cwd
6383         without also using the xgetcwd module.
6384
6385 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6386
6387         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6388         This is so that a program like Emacs, which needs only dtoastr,
6389         does not have to bother with distributing and compiling ftoastr
6390         and ldtoastr.
6391         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6392         * modules/dtoastr, modules/ldtoastr: New files.
6393         * modules/ftoastr: Now works just for 'float'.
6394         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6395         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6396         dtoastr.c, ldtoastr.c.
6397
6398 2011-01-11  Jim Meyering  <meyering@redhat.com>
6399
6400         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6401         There is no need to work around the lack of the fchdir function,
6402         since gnulib can now provide a replacement when required.
6403         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6404         * modules/save-cwd (Depends-on): Add fchdir.
6405
6406 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6407
6408         openat, save-cwd: avoid xmalloc
6409
6410         This removes a direct (but undocumented) dependency of openat on
6411         xalloc, along with an indirect dependency via save-cwd.  It also
6412         removes a dependency of save-cwd on xgetcwd, and thereby
6413         indirectly on xalloc.  This change causes the openat substitute
6414         to fall back on save_cwd when memory is tight, and for save_cwd to
6415         fail instead of dying when memory is tight, but that's good enough.
6416         Problem and initial idea for fix reported by Bastien Roucaries in
6417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6418
6419         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6420         xalloc.h (for xmalloc).
6421         (openat_proc_name): Use malloc, not xmalloc.
6422         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6423         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6424
6425         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6426         This avoids heap allocation for file names whose lengths are in
6427         the range 512..1023, with the upper bound increasing to at most
6428         4031 depending on the platform's PATH_MAX.  (We do not want
6429         pathmax.h here as it might supply a non-constant PATH_MAX.)
6430         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6431         Perhaps they should be moved to malloca.h?
6432         (OPENAT_BUFFER_SIZE): Use them.
6433
6434 2011-01-10  Bruno Haible  <bruno@clisp.org>
6435
6436         doc: Update users.txt.
6437         * users.txt: Add recutils.
6438
6439 2011-01-09  Karl Berry  <karl@gnu.org>
6440
6441         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6442
6443         * doc/configmake.texi: New file.
6444         * doc/gnulib.texi: Include it.
6445         * modules/configmake: Move documentation from here.
6446
6447 2011-01-09  Bruno Haible  <bruno@clisp.org>
6448
6449         Update to Unicode 6.0.0.
6450         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6451         (get_lbp): Update for Unicode 6.0.0.
6452         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6453         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6454         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6455         U+11001, U+11038..U+11046. Remove U+06DE.
6456         (uc_width): Fix bounds of planes.
6457         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6458         lib/uniwidth/width.c.
6459         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6460         trailing whitespace removed.
6461         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6462         without comments, but with the original copyright notice.
6463         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6464         * lib/unicase/ignorable.h: Likewise.
6465         * lib/unicase/tocasefold.h: Likewise.
6466         * lib/unicase/tolower.h: Likewise.
6467         * lib/unicase/totitle.h: Likewise.
6468         * lib/unicase/toupper.h: Likewise.
6469         * lib/unictype/bidi_of.h: Likewise.
6470         * lib/unictype/blocks.h: Likewise.
6471         * lib/unictype/categ_C.h: Likewise.
6472         * lib/unictype/categ_Cn.h: Likewise.
6473         * lib/unictype/categ_L.h: Likewise.
6474         * lib/unictype/categ_Ll.h: Likewise.
6475         * lib/unictype/categ_Lm.h: Likewise.
6476         * lib/unictype/categ_Lo.h: Likewise.
6477         * lib/unictype/categ_Lu.h: Likewise.
6478         * lib/unictype/categ_M.h: Likewise.
6479         * lib/unictype/categ_Mc.h: Likewise.
6480         * lib/unictype/categ_Me.h: Likewise.
6481         * lib/unictype/categ_Mn.h: Likewise.
6482         * lib/unictype/categ_N.h: Likewise.
6483         * lib/unictype/categ_Nd.h: Likewise.
6484         * lib/unictype/categ_No.h: Likewise.
6485         * lib/unictype/categ_P.h: Likewise.
6486         * lib/unictype/categ_Po.h: Likewise.
6487         * lib/unictype/categ_S.h: Likewise.
6488         * lib/unictype/categ_Sc.h: Likewise.
6489         * lib/unictype/categ_Sk.h: Likewise.
6490         * lib/unictype/categ_Sm.h: Likewise.
6491         * lib/unictype/categ_So.h: Likewise.
6492         * lib/unictype/categ_of.h: Likewise.
6493         * lib/unictype/combining.h: Likewise.
6494         * lib/unictype/ctype_alnum.h: Likewise.
6495         * lib/unictype/ctype_alpha.h: Likewise.
6496         * lib/unictype/ctype_graph.h: Likewise.
6497         * lib/unictype/ctype_lower.h: Likewise.
6498         * lib/unictype/ctype_print.h: Likewise.
6499         * lib/unictype/ctype_punct.h: Likewise.
6500         * lib/unictype/ctype_upper.h: Likewise.
6501         * lib/unictype/decdigit.h: Likewise.
6502         * lib/unictype/digit.h: Likewise.
6503         * lib/unictype/numeric.h: Likewise.
6504         * lib/unictype/pr_alphabetic.h: Likewise.
6505         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6506         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6507         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6508         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6509         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6510         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6511         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6512         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6513         * lib/unictype/pr_case_ignorable.h: Likewise.
6514         * lib/unictype/pr_cased.h: Likewise.
6515         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6516         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6517         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6518         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6519         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6520         * lib/unictype/pr_combining.h: Likewise.
6521         * lib/unictype/pr_composite.h: Likewise.
6522         * lib/unictype/pr_currency_symbol.h: Likewise.
6523         * lib/unictype/pr_decimal_digit.h: Likewise.
6524         * lib/unictype/pr_deprecated.h: Likewise.
6525         * lib/unictype/pr_format_control.h: Likewise.
6526         * lib/unictype/pr_grapheme_base.h: Likewise.
6527         * lib/unictype/pr_grapheme_extend.h: Likewise.
6528         * lib/unictype/pr_grapheme_link.h: Likewise.
6529         * lib/unictype/pr_id_continue.h: Likewise.
6530         * lib/unictype/pr_id_start.h: Likewise.
6531         * lib/unictype/pr_ideographic.h: Likewise.
6532         * lib/unictype/pr_lowercase.h: Likewise.
6533         * lib/unictype/pr_math.h: Likewise.
6534         * lib/unictype/pr_numeric.h: Likewise.
6535         * lib/unictype/pr_other_alphabetic.h: Likewise.
6536         * lib/unictype/pr_other_id_continue.h: Likewise.
6537         * lib/unictype/pr_other_math.h: Likewise.
6538         * lib/unictype/pr_punctuation.h: Likewise.
6539         * lib/unictype/pr_sentence_terminal.h: Likewise.
6540         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6541         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6542         * lib/unictype/pr_unified_ideograph.h: Likewise.
6543         * lib/unictype/pr_uppercase.h: Likewise.
6544         * lib/unictype/pr_xid_continue.h: Likewise.
6545         * lib/unictype/pr_xid_start.h: Likewise.
6546         * lib/unictype/scripts.h: Likewise.
6547         * lib/unictype/scripts_byname.gperf: Likewise.
6548         * lib/unictype/sy_java_ident.h: Likewise.
6549         * lib/unigbrk/gbrkprop.h: Likewise.
6550         * lib/unilbrk/lbrkprop1.h: Likewise.
6551         * lib/unilbrk/lbrkprop2.h: Likewise.
6552         * lib/uninorm/decomposition-table2.h: Likewise.
6553         * lib/uniwbrk/wbrkprop.h: Likewise.
6554         * tests/unicase/test-cased.c: Likewise.
6555         * tests/unicase/test-ignorable.c: Likewise.
6556         * tests/unicase/test-uc_tolower.c: Likewise.
6557         * tests/unicase/test-uc_totitle.c: Likewise.
6558         * tests/unicase/test-uc_toupper.c: Likewise.
6559         * tests/unictype/test-categ_C.c: Likewise.
6560         * tests/unictype/test-categ_Cn.c: Likewise.
6561         * tests/unictype/test-categ_L.c: Likewise.
6562         * tests/unictype/test-categ_Ll.c: Likewise.
6563         * tests/unictype/test-categ_Lm.c: Likewise.
6564         * tests/unictype/test-categ_Lo.c: Likewise.
6565         * tests/unictype/test-categ_Lu.c: Likewise.
6566         * tests/unictype/test-categ_M.c: Likewise.
6567         * tests/unictype/test-categ_Mc.c: Likewise.
6568         * tests/unictype/test-categ_Me.c: Likewise.
6569         * tests/unictype/test-categ_Mn.c: Likewise.
6570         * tests/unictype/test-categ_N.c: Likewise.
6571         * tests/unictype/test-categ_Nd.c: Likewise.
6572         * tests/unictype/test-categ_No.c: Likewise.
6573         * tests/unictype/test-categ_P.c: Likewise.
6574         * tests/unictype/test-categ_Po.c: Likewise.
6575         * tests/unictype/test-categ_S.c: Likewise.
6576         * tests/unictype/test-categ_Sc.c: Likewise.
6577         * tests/unictype/test-categ_Sk.c: Likewise.
6578         * tests/unictype/test-categ_Sm.c: Likewise.
6579         * tests/unictype/test-categ_So.c: Likewise.
6580         * tests/unictype/test-ctype_alnum.c: Likewise.
6581         * tests/unictype/test-ctype_alpha.c: Likewise.
6582         * tests/unictype/test-ctype_graph.c: Likewise.
6583         * tests/unictype/test-ctype_lower.c: Likewise.
6584         * tests/unictype/test-ctype_print.c: Likewise.
6585         * tests/unictype/test-ctype_punct.c: Likewise.
6586         * tests/unictype/test-ctype_upper.c: Likewise.
6587         * tests/unictype/test-decdigit.h: Likewise.
6588         * tests/unictype/test-digit.h: Likewise.
6589         * tests/unictype/test-numeric.h: Likewise.
6590         * tests/unictype/test-pr_alphabetic.c: Likewise.
6591         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6592         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6593         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6594         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6595         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6596         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6597         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6598         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6599         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6600         * tests/unictype/test-pr_cased.c: Likewise.
6601         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6602         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6603         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6604         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6605         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6606         * tests/unictype/test-pr_combining.c: Likewise.
6607         * tests/unictype/test-pr_composite.c: Likewise.
6608         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6609         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6610         * tests/unictype/test-pr_deprecated.c: Likewise.
6611         * tests/unictype/test-pr_format_control.c: Likewise.
6612         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6613         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6614         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6615         * tests/unictype/test-pr_id_continue.c: Likewise.
6616         * tests/unictype/test-pr_id_start.c: Likewise.
6617         * tests/unictype/test-pr_ideographic.c: Likewise.
6618         * tests/unictype/test-pr_lowercase.c: Likewise.
6619         * tests/unictype/test-pr_math.c: Likewise.
6620         * tests/unictype/test-pr_numeric.c: Likewise.
6621         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6622         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6623         * tests/unictype/test-pr_other_math.c: Likewise.
6624         * tests/unictype/test-pr_punctuation.c: Likewise.
6625         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6626         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6627         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6628         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6629         * tests/unictype/test-pr_uppercase.c: Likewise.
6630         * tests/unictype/test-pr_xid_continue.c: Likewise.
6631         * tests/unictype/test-pr_xid_start.c: Likewise.
6632         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6633         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6634         changes.
6635         * lib/unictype/categ_Cc.h: Likewise.
6636         * lib/unictype/categ_Cf.h: Likewise.
6637         * lib/unictype/categ_Co.h: Likewise.
6638         * lib/unictype/categ_Cs.h: Likewise.
6639         * lib/unictype/categ_Lt.h: Likewise.
6640         * lib/unictype/categ_Nl.h: Likewise.
6641         * lib/unictype/categ_Pc.h: Likewise.
6642         * lib/unictype/categ_Pd.h: Likewise.
6643         * lib/unictype/categ_Pe.h: Likewise.
6644         * lib/unictype/categ_Pf.h: Likewise.
6645         * lib/unictype/categ_Pi.h: Likewise.
6646         * lib/unictype/categ_Ps.h: Likewise.
6647         * lib/unictype/categ_Z.h: Likewise.
6648         * lib/unictype/categ_Zl.h: Likewise.
6649         * lib/unictype/categ_Zp.h: Likewise.
6650         * lib/unictype/categ_Zs.h: Likewise.
6651         * lib/unictype/ctype_blank.h: Likewise.
6652         * lib/unictype/ctype_cntrl.h: Likewise.
6653         * lib/unictype/ctype_digit.h: Likewise.
6654         * lib/unictype/ctype_space.h: Likewise.
6655         * lib/unictype/ctype_xdigit.h: Likewise.
6656         * lib/unictype/mirror.h: Likewise.
6657         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6658         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6659         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6660         * lib/unictype/pr_bidi_control.h: Likewise.
6661         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6662         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6663         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6664         * lib/unictype/pr_bidi_pdf.h: Likewise.
6665         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6666         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6667         * lib/unictype/pr_dash.h: Likewise.
6668         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6669         * lib/unictype/pr_diacritic.h: Likewise.
6670         * lib/unictype/pr_extender.h: Likewise.
6671         * lib/unictype/pr_hex_digit.h: Likewise.
6672         * lib/unictype/pr_hyphen.h: Likewise.
6673         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6674         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6675         * lib/unictype/pr_ignorable_control.h: Likewise.
6676         * lib/unictype/pr_iso_control.h: Likewise.
6677         * lib/unictype/pr_join_control.h: Likewise.
6678         * lib/unictype/pr_left_of_pair.h: Likewise.
6679         * lib/unictype/pr_line_separator.h: Likewise.
6680         * lib/unictype/pr_logical_order_exception.h: Likewise.
6681         * lib/unictype/pr_non_break.h: Likewise.
6682         * lib/unictype/pr_not_a_character.h: Likewise.
6683         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6684         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6685         * lib/unictype/pr_other_id_start.h: Likewise.
6686         * lib/unictype/pr_other_lowercase.h: Likewise.
6687         * lib/unictype/pr_other_uppercase.h: Likewise.
6688         * lib/unictype/pr_paired_punctuation.h: Likewise.
6689         * lib/unictype/pr_paragraph_separator.h: Likewise.
6690         * lib/unictype/pr_pattern_syntax.h: Likewise.
6691         * lib/unictype/pr_pattern_white_space.h: Likewise.
6692         * lib/unictype/pr_private_use.h: Likewise.
6693         * lib/unictype/pr_quotation_mark.h: Likewise.
6694         * lib/unictype/pr_radical.h: Likewise.
6695         * lib/unictype/pr_soft_dotted.h: Likewise.
6696         * lib/unictype/pr_space.h: Likewise.
6697         * lib/unictype/pr_titlecase.h: Likewise.
6698         * lib/unictype/pr_variation_selector.h: Likewise.
6699         * lib/unictype/pr_white_space.h: Likewise.
6700         * lib/unictype/pr_zero_width.h: Likewise.
6701         * lib/unictype/sy_c_ident.h: Likewise.
6702         * lib/unictype/sy_c_whitespace.h: Likewise.
6703         * lib/unictype/sy_java_whitespace.h: Likewise.
6704         * lib/uninorm/composition-table.gperf: Likewise.
6705         * lib/uninorm/decomposition-table1.h: Likewise.
6706         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6707         LB8.
6708         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6709         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6710         * modules/unictype/*: Bump version number of expected libunistring
6711         version.
6712
6713 2011-01-09  Bruno Haible  <bruno@clisp.org>
6714
6715         Update to Unicode 5.2.0.
6716         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6717         trailing whitespace removed.
6718
6719 2011-01-09  Bruno Haible  <bruno@clisp.org>
6720
6721         New Unicode character properties, from Unicode 5.2.0.
6722         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6723         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6724         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6725         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6726         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6727         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6728         uc_is_property_cased, uc_is_property_case_ignorable,
6729         uc_is_property_changes_when_lowercased,
6730         uc_is_property_changes_when_uppercased,
6731         uc_is_property_changes_when_titlecased,
6732         uc_is_property_changes_when_casefolded,
6733         uc_is_property_changes_when_casemapped): New declarations.
6734         * lib/unictype/pr_byname.gperf: Add the new properties.
6735         * modules/unictype/property-byname (Depends-on): Depend on the new
6736         properties modules.
6737         * modules/unictype/property-all (Depends-on): Likewise.
6738         * MODULES.html.sh (Unicode string functions): Add
6739         unictype/property-case-ignorable, unictype/property-cased,
6740         unictype/property-changes-when-casefolded,
6741         unictype/property-changes-when-casemapped,
6742         unictype/property-changes-when-lowercased,
6743         unictype/property-changes-when-titlecased,
6744         unictype/property-changes-when-uppercased.
6745
6746         New module 'unictype/property-changes-when-casemapped'.
6747         * modules/unictype/property-changes-when-casemapped: New file.
6748         * lib/unictype/pr_changes_when_casemapped.c: New file.
6749         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6750         generated by gen-uni-tables.
6751         * modules/unictype/property-changes-when-casemapped-tests: New file.
6752         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6753         automatically generated by gen-uni-tables.
6754
6755         New module 'unictype/property-changes-when-casefolded'.
6756         * modules/unictype/property-changes-when-casefolded: New file.
6757         * lib/unictype/pr_changes_when_casefolded.c: New file.
6758         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6759         generated by gen-uni-tables.
6760         * modules/unictype/property-changes-when-casefolded-tests: New file.
6761         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6762         automatically generated by gen-uni-tables.
6763
6764         New module 'unictype/property-changes-when-titlecased'.
6765         * modules/unictype/property-changes-when-titlecased: New file.
6766         * lib/unictype/pr_changes_when_titlecased.c: New file.
6767         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6768         generated by gen-uni-tables.
6769         * modules/unictype/property-changes-when-titlecased-tests: New file.
6770         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6771         automatically generated by gen-uni-tables.
6772
6773         New module 'unictype/property-changes-when-uppercased'.
6774         * modules/unictype/property-changes-when-uppercased: New file.
6775         * lib/unictype/pr_changes_when_uppercased.c: New file.
6776         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6777         generated by gen-uni-tables.
6778         * modules/unictype/property-changes-when-uppercased-tests: New file.
6779         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6780         automatically generated by gen-uni-tables.
6781
6782         New module 'unictype/property-changes-when-lowercased'.
6783         * modules/unictype/property-changes-when-lowercased: New file.
6784         * lib/unictype/pr_changes_when_lowercased.c: New file.
6785         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6786         generated by gen-uni-tables.
6787         * modules/unictype/property-changes-when-lowercased-tests: New file.
6788         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6789         automatically generated by gen-uni-tables.
6790
6791         New module 'unictype/property-case-ignorable'.
6792         * modules/unictype/property-case-ignorable: New file.
6793         * lib/unictype/pr_case_ignorable.c: New file.
6794         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6795         by gen-uni-tables.
6796         * modules/unictype/property-case-ignorable-tests: New file.
6797         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6798         generated by gen-uni-tables.
6799
6800         New module 'unictype/property-cased'.
6801         * modules/unictype/property-cased: New file.
6802         * lib/unictype/pr_cased.c: New file.
6803         * lib/unictype/pr_cased.h: New file, automatically generated by
6804         gen-uni-tables.
6805         * modules/unictype/property-cased-tests: New file.
6806         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6807         gen-uni-tables.
6808
6809 2011-01-09  Bruno Haible  <bruno@clisp.org>
6810
6811         Update to Unicode 5.2.0.
6812         * lib/gen-uni-tables.c (output_predicate, output_category,
6813         output_combclass, output_bidi_category, output_decimal_digit_test,
6814         output_decimal_digit, output_digit_test, output_digit,
6815         output_numeric_test, output_numeric, output_mirror, output_scripts,
6816         output_scripts_byname, output_blocks, output_ident_category): Fix
6817         comment header.
6818         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6819         get_wbp.
6820         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6821         items.
6822         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6823         Changes_When_Lowercased, Changes_When_Uppercased,
6824         Changes_When_Titlecased, Changes_When_Casefolded,
6825         Changes_When_Casemapped.
6826         (is_property_alphabetic, is_property_default_ignorable_code_point):
6827         Update for Unicode 5.2.0.
6828         (is_property_cased, is_property_case_ignorable,
6829         is_property_changes_when_lowercased,
6830         is_property_changes_when_uppercased,
6831         is_property_changes_when_titlecased,
6832         is_property_changes_when_casefolded,
6833         is_property_changes_when_casemapped): New functions.
6834         (output_properties): Output also the properties cased, case_ignorable,
6835         changes_when_lowercased, changes_when_uppercased,
6836         changes_when_titlecased, changes_when_casefolded,
6837         changes_when_casemapped.
6838         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6839         Unicode TR#11 revision 17 -> 19.
6840         (LBP_CP): New enumeration value.
6841         (LBP_*): Adjust values accordingly.
6842         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6843         TR#14 revision 22 -> 24.
6844         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6845         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6846         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6847         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6848         is_WBP_MIDLETTER.
6849         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6850         the code1 and code2 of each composition rule.
6851         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6852         * lib/unicase/ignorable.h: Likewise.
6853         * lib/unicase/tocasefold.h: Likewise.
6854         * lib/unicase/tolower.h: Likewise.
6855         * lib/unicase/totitle.h: Likewise.
6856         * lib/unicase/toupper.h: Likewise.
6857         * lib/unictype/bidi_of.h: Likewise.
6858         * lib/unictype/blocks.h: Likewise.
6859         * lib/unictype/categ_C.h: Likewise.
6860         * lib/unictype/categ_Cf.h: Likewise.
6861         * lib/unictype/categ_Cn.h: Likewise.
6862         * lib/unictype/categ_L.h: Likewise.
6863         * lib/unictype/categ_Ll.h: Likewise.
6864         * lib/unictype/categ_Lm.h: Likewise.
6865         * lib/unictype/categ_Lo.h: Likewise.
6866         * lib/unictype/categ_Lu.h: Likewise.
6867         * lib/unictype/categ_M.h: Likewise.
6868         * lib/unictype/categ_Mc.h: Likewise.
6869         * lib/unictype/categ_Mn.h: Likewise.
6870         * lib/unictype/categ_N.h: Likewise.
6871         * lib/unictype/categ_Nd.h: Likewise.
6872         * lib/unictype/categ_Nl.h: Likewise.
6873         * lib/unictype/categ_No.h: Likewise.
6874         * lib/unictype/categ_P.h: Likewise.
6875         * lib/unictype/categ_Pd.h: Likewise.
6876         * lib/unictype/categ_Po.h: Likewise.
6877         * lib/unictype/categ_S.h: Likewise.
6878         * lib/unictype/categ_Sc.h: Likewise.
6879         * lib/unictype/categ_So.h: Likewise.
6880         * lib/unictype/categ_of.h: Likewise.
6881         * lib/unictype/combining.h: Likewise.
6882         * lib/unictype/ctype_alnum.h: Likewise.
6883         * lib/unictype/ctype_alpha.h: Likewise.
6884         * lib/unictype/ctype_graph.h: Likewise.
6885         * lib/unictype/ctype_lower.h: Likewise.
6886         * lib/unictype/ctype_print.h: Likewise.
6887         * lib/unictype/ctype_punct.h: Likewise.
6888         * lib/unictype/ctype_upper.h: Likewise.
6889         * lib/unictype/decdigit.h: Likewise.
6890         * lib/unictype/digit.h: Likewise.
6891         * lib/unictype/numeric.h: Likewise.
6892         * lib/unictype/pr_alphabetic.h: Likewise.
6893         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6894         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6895         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6896         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6897         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6898         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6899         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6900         * lib/unictype/pr_combining.h: Likewise.
6901         * lib/unictype/pr_composite.h: Likewise.
6902         * lib/unictype/pr_currency_symbol.h: Likewise.
6903         * lib/unictype/pr_dash.h: Likewise.
6904         * lib/unictype/pr_decimal_digit.h: Likewise.
6905         * lib/unictype/pr_deprecated.h: Likewise.
6906         * lib/unictype/pr_diacritic.h: Likewise.
6907         * lib/unictype/pr_extender.h: Likewise.
6908         * lib/unictype/pr_grapheme_base.h: Likewise.
6909         * lib/unictype/pr_grapheme_extend.h: Likewise.
6910         * lib/unictype/pr_grapheme_link.h: Likewise.
6911         * lib/unictype/pr_id_continue.h: Likewise.
6912         * lib/unictype/pr_id_start.h: Likewise.
6913         * lib/unictype/pr_ideographic.h: Likewise.
6914         * lib/unictype/pr_ignorable_control.h: Likewise.
6915         * lib/unictype/pr_logical_order_exception.h: Likewise.
6916         * lib/unictype/pr_lowercase.h: Likewise.
6917         * lib/unictype/pr_numeric.h: Likewise.
6918         * lib/unictype/pr_other_alphabetic.h: Likewise.
6919         * lib/unictype/pr_punctuation.h: Likewise.
6920         * lib/unictype/pr_sentence_terminal.h: Likewise.
6921         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6922         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6923         * lib/unictype/pr_unified_ideograph.h: Likewise.
6924         * lib/unictype/pr_uppercase.h: Likewise.
6925         * lib/unictype/pr_xid_continue.h: Likewise.
6926         * lib/unictype/pr_xid_start.h: Likewise.
6927         * lib/unictype/pr_zero_width.h: Likewise.
6928         * lib/unictype/scripts.h: Likewise.
6929         * lib/unictype/scripts_byname.gperf: Likewise.
6930         * lib/unictype/sy_java_ident.h: Likewise.
6931         * lib/unigbrk/gbrkprop.h: Likewise.
6932         * lib/unilbrk/lbrkprop1.h: Likewise.
6933         * lib/unilbrk/lbrkprop2.h: Likewise.
6934         * lib/unilbrk/lbrktables.h: Likewise.
6935         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6936         LBP_CP. Implement rule LB30.
6937         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6938         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6939         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6940         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6941         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6942         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6943         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6944         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6945         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6946         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6947         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6948         bits instead of 16 bits in the code1 and code2 of each composition
6949         rule.
6950         (uc_composition): Update for Unicode 5.2.0.
6951         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6952         * lib/uninorm/decomposition-table2.h: Likewise.
6953         * lib/uniwbrk/wbrkprop.h: Likewise.
6954         * tests/unicase/test-cased.c: Likewise.
6955         * tests/unicase/test-ignorable.c: Likewise.
6956         * tests/unicase/test-uc_tolower.c: Likewise.
6957         * tests/unicase/test-uc_totitle.c: Likewise.
6958         * tests/unicase/test-uc_toupper.c: Likewise.
6959         * tests/unictype/test-categ_C.c: Likewise.
6960         * tests/unictype/test-categ_Cf.c: Likewise.
6961         * tests/unictype/test-categ_Cn.c: Likewise.
6962         * tests/unictype/test-categ_L.c: Likewise.
6963         * tests/unictype/test-categ_Ll.c: Likewise.
6964         * tests/unictype/test-categ_Lm.c: Likewise.
6965         * tests/unictype/test-categ_Lo.c: Likewise.
6966         * tests/unictype/test-categ_Lu.c: Likewise.
6967         * tests/unictype/test-categ_M.c: Likewise.
6968         * tests/unictype/test-categ_Mc.c: Likewise.
6969         * tests/unictype/test-categ_Mn.c: Likewise.
6970         * tests/unictype/test-categ_N.c: Likewise.
6971         * tests/unictype/test-categ_Nd.c: Likewise.
6972         * tests/unictype/test-categ_Nl.c: Likewise.
6973         * tests/unictype/test-categ_No.c: Likewise.
6974         * tests/unictype/test-categ_P.c: Likewise.
6975         * tests/unictype/test-categ_Pd.c: Likewise.
6976         * tests/unictype/test-categ_Po.c: Likewise.
6977         * tests/unictype/test-categ_S.c: Likewise.
6978         * tests/unictype/test-categ_Sc.c: Likewise.
6979         * tests/unictype/test-categ_So.c: Likewise.
6980         * tests/unictype/test-ctype_alnum.c: Likewise.
6981         * tests/unictype/test-ctype_alpha.c: Likewise.
6982         * tests/unictype/test-ctype_graph.c: Likewise.
6983         * tests/unictype/test-ctype_lower.c: Likewise.
6984         * tests/unictype/test-ctype_print.c: Likewise.
6985         * tests/unictype/test-ctype_punct.c: Likewise.
6986         * tests/unictype/test-ctype_upper.c: Likewise.
6987         * tests/unictype/test-decdigit.h: Likewise.
6988         * tests/unictype/test-digit.h: Likewise.
6989         * tests/unictype/test-numeric.h: Likewise.
6990         * tests/unictype/test-pr_alphabetic.c: Likewise.
6991         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6992         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6993         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6994         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6995         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6996         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6997         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6998         * tests/unictype/test-pr_combining.c: Likewise.
6999         * tests/unictype/test-pr_composite.c: Likewise.
7000         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7001         * tests/unictype/test-pr_dash.c: Likewise.
7002         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7003         * tests/unictype/test-pr_deprecated.c: Likewise.
7004         * tests/unictype/test-pr_diacritic.c: Likewise.
7005         * tests/unictype/test-pr_extender.c: Likewise.
7006         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7007         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7008         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7009         * tests/unictype/test-pr_id_continue.c: Likewise.
7010         * tests/unictype/test-pr_id_start.c: Likewise.
7011         * tests/unictype/test-pr_ideographic.c: Likewise.
7012         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7013         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7014         * tests/unictype/test-pr_lowercase.c: Likewise.
7015         * tests/unictype/test-pr_numeric.c: Likewise.
7016         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7017         * tests/unictype/test-pr_punctuation.c: Likewise.
7018         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7019         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7020         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7021         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7022         * tests/unictype/test-pr_uppercase.c: Likewise.
7023         * tests/unictype/test-pr_xid_continue.c: Likewise.
7024         * tests/unictype/test-pr_xid_start.c: Likewise.
7025         * tests/unictype/test-pr_zero_width.c: Likewise.
7026         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7027         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7028         changed behaviour: line breaking is now disallowed between a letter
7029         or '=' and '('.
7030         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7031         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7032         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7033         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7034         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7035         lib/uniwidth/width.c.
7036         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7037         without comments, but with the original copyright notice.
7038         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7039         changes.
7040         * lib/unictype/categ_Cc.h: Likewise.
7041         * lib/unictype/categ_Co.h: Likewise.
7042         * lib/unictype/categ_Cs.h: Likewise.
7043         * lib/unictype/categ_Lt.h: Likewise.
7044         * lib/unictype/categ_Me.h: Likewise.
7045         * lib/unictype/categ_Pc.h: Likewise.
7046         * lib/unictype/categ_Pe.h: Likewise.
7047         * lib/unictype/categ_Pf.h: Likewise.
7048         * lib/unictype/categ_Pi.h: Likewise.
7049         * lib/unictype/categ_Ps.h: Likewise.
7050         * lib/unictype/categ_Sk.h: Likewise.
7051         * lib/unictype/categ_Sm.h: Likewise.
7052         * lib/unictype/categ_Z.h: Likewise.
7053         * lib/unictype/categ_Zl.h: Likewise.
7054         * lib/unictype/categ_Zp.h: Likewise.
7055         * lib/unictype/categ_Zs.h: Likewise.
7056         * lib/unictype/ctype_blank.h: Likewise.
7057         * lib/unictype/ctype_cntrl.h: Likewise.
7058         * lib/unictype/ctype_digit.h: Likewise.
7059         * lib/unictype/ctype_space.h: Likewise.
7060         * lib/unictype/ctype_xdigit.h: Likewise.
7061         * lib/unictype/mirror.h: Likewise.
7062         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7063         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7064         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7065         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7066         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7067         * lib/unictype/pr_bidi_control.h: Likewise.
7068         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7069         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7070         * lib/unictype/pr_bidi_pdf.h: Likewise.
7071         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7072         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7073         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7074         * lib/unictype/pr_format_control.h: Likewise.
7075         * lib/unictype/pr_hex_digit.h: Likewise.
7076         * lib/unictype/pr_hyphen.h: Likewise.
7077         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7078         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7079         * lib/unictype/pr_iso_control.h: Likewise.
7080         * lib/unictype/pr_join_control.h: Likewise.
7081         * lib/unictype/pr_left_of_pair.h: Likewise.
7082         * lib/unictype/pr_line_separator.h: Likewise.
7083         * lib/unictype/pr_math.h: Likewise.
7084         * lib/unictype/pr_non_break.h: Likewise.
7085         * lib/unictype/pr_not_a_character.h: Likewise.
7086         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7087         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7088         * lib/unictype/pr_other_id_continue.h: Likewise.
7089         * lib/unictype/pr_other_id_start.h: Likewise.
7090         * lib/unictype/pr_other_lowercase.h: Likewise.
7091         * lib/unictype/pr_other_math.h: Likewise.
7092         * lib/unictype/pr_other_uppercase.h: Likewise.
7093         * lib/unictype/pr_paired_punctuation.h: Likewise.
7094         * lib/unictype/pr_paragraph_separator.h: Likewise.
7095         * lib/unictype/pr_pattern_syntax.h: Likewise.
7096         * lib/unictype/pr_pattern_white_space.h: Likewise.
7097         * lib/unictype/pr_private_use.h: Likewise.
7098         * lib/unictype/pr_quotation_mark.h: Likewise.
7099         * lib/unictype/pr_radical.h: Likewise.
7100         * lib/unictype/pr_soft_dotted.h: Likewise.
7101         * lib/unictype/pr_space.h: Likewise.
7102         * lib/unictype/pr_titlecase.h: Likewise.
7103         * lib/unictype/pr_variation_selector.h: Likewise.
7104         * lib/unictype/pr_white_space.h: Likewise.
7105         * lib/unictype/sy_c_ident.h: Likewise.
7106         * lib/unictype/sy_c_whitespace.h: Likewise.
7107         * lib/unictype/sy_java_whitespace.h: Likewise.
7108         * modules/uni*/*: Bump version number of expected libunistring version.
7109         Reported by Simon Josefsson.
7110
7111 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7112
7113         useless-if-before-free: fix typo in --help and make the internal,
7114         automatic version date update process work once again.
7115         --help output contained a NUL character instead of the
7116         backslash-zero that was intended.  Also, the "must lie within
7117         the first 8 lines" line is on line 9, and hence not getting
7118         automatically updated.
7119         * build-aux/useless-if-before-free: Fix the former by adding a
7120         backslash, and the latter by condensing the three lines of what-it-does
7121         to a single line, leaving one line of slack for the future.
7122
7123 2011-01-09  Bruno Haible  <bruno@clisp.org>
7124
7125         uniwidth/width: Fix width of U+1D173..U+1D17A.
7126         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7127         symbolic_width, output_width_property_test): New functions.
7128         (main): Invoke output_nonspacing_property, output_width_property_test.
7129         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7130         U+1D173..U+1D17A.
7131         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7132         1.
7133         * modules/uniwidth/*: Bump version number of expected libunistring
7134         version.
7135         * modules/unilbrk/*: Likewise.
7136
7137 2011-01-08  Bruno Haible  <bruno@clisp.org>
7138
7139         uninorm tests: Preserve copyright of Unicode data file.
7140         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7141         Mention modifications.
7142
7143 2011-01-08  Bruno Haible  <bruno@clisp.org>
7144
7145         gen-uni-tables: Prepare for Unicode 5.2.0.
7146         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7147         (debug_output_lbp, output_lbp): Update.
7148
7149 2011-01-08  Bruno Haible  <bruno@clisp.org>
7150
7151         unilbrk: Clarify gen-uni-tables.c code.
7152         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7153         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7154         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7155
7156 2011-01-07  Bruno Haible  <bruno@clisp.org>
7157
7158         strtod: Restore errno when successfully parsing Infinity or NaN.
7159         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7160         restore the original errno.
7161
7162 2011-01-07  Bruno Haible  <bruno@clisp.org>
7163
7164         remove test: Avoid failure on HP-UX 11.
7165         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7166
7167 2011-01-07  Bruno Haible  <bruno@clisp.org>
7168
7169         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7170         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7171         error code.
7172
7173 2011-01-07  Pádraig Brady <P@draigBrady.com>
7174
7175         ignore-value: fixup comments, and add Eric Blake
7176         as an author since he rewrote the macros.
7177         * lib/ignore-value.h (ignore_value):  State that
7178         we now support aggregates.  Also specify exactly
7179         when the GCC warn_unused_result feature was added.
7180
7181 2011-01-06  Eric Blake  <eblake@redhat.com>
7182
7183         ignore-value: support aggregate types
7184         * lib/ignore-value.h (ignore_value): Provide separate gcc
7185         definition.
7186         * modules/ignore-value-tests: New test module.
7187         * tests/test-ignore-value.c: New test.
7188
7189         maint.mk: improve sc_prohibit_strcmp regex
7190         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7191         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7192         definition of STRNEQ.
7193
7194         signal: work around Haiku issue with SIGBUS
7195         * lib/siglist.h: Add comment.
7196         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7197         strsignal's favoring of SIGSEGV.
7198         * tests/test-signal.c (main): Avoid test failure.
7199         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7200         Reported by Scott McCreary.
7201
7202         maint.mk: add pre-release check to ensure submodule commits are public
7203         * top/maint.mk (public-submodule-commit): New rule.
7204         (submodule-checks): New variable.
7205         (alpha beta stable): Depend on the variable.
7206
7207 2011-01-05  Pádraig Brady <P@draigBrady.com>
7208         and Jim Meyering  <meyering@redhat.com>
7209
7210         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7211         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7212         (ATTRIBUTE_DEPRECATED): Define.
7213         (_ignore_case): New function.
7214         (ignore_value): New macro, to replace the old function.
7215         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7216         * modules/ignore-value (Depends-on): Add stdint.
7217
7218 2011-01-04  Eric Blake  <eblake@redhat.com>
7219
7220         doc: regenerate INSTALL
7221         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7222         @firstparagraphindent support, now that autoconf dropped it.
7223         (INSTALL_PRELUDE): Reinstate old macro.
7224         * doc/install.texi: Resync from autoconf.
7225         * doc/INSTALL: Reflect recent autoconf update.
7226         * doc/INSTALL.ISO: Likewise.
7227         * doc/INSTALL.UTF-8: Likewise.
7228         Reported by Karl Berry.
7229
7230 2011-01-04  Bruce Korb  <address@hidden>
7231
7232         git-version-gen: avoid a sub-shell
7233         * build-aux/git-version-gen: Redirect stderr in `...` via
7234         "exec 2>...", rather than via an added sub-shell.
7235
7236 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7237
7238         git-version-gen: use (...) rather than sh -c '...'
7239         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7240         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7241
7242 2011-01-03  Jim Meyering  <meyering@redhat.com>
7243
7244         git-version-gen: convert leading TABs to spaces
7245         * build-aux/git-version-gen: Expand leading TABs.
7246
7247         git-version-gen: handle failed "git rev-list"
7248         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7249         from git and proceeding as if it had succeeded but printed no SHA1
7250         checksums, suppress the diagnostic and handle the failure.
7251         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7252
7253         git-version-gen: include command name in one more diagnostic
7254         * build-aux/git-version-gen: When the required .tarball-version file
7255         was missing or unreadable, you might see the diagnostic from "cat",
7256         but no trace of the name of the invoking script.  Now, you still see
7257         the diagnostic from cat, but also get one from "git-version-gen: ".
7258         Inspired by a patch from Bruce Korb.
7259
7260         update-copyright: adjust test to match changed code
7261         * tests/test-update-copyright.sh: Change test's expected output
7262         to match new actual output.
7263
7264 2011-01-02  Bruno Haible  <bruno@clisp.org>
7265
7266         getlogin_r: Avoid test failure on HP-UX 11.
7267         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7268         ERANGE when the second argument is zero.
7269         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7270         portability problem.
7271
7272 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7273
7274         * build-aux/update-copyright: doc Simon's changes
7275
7276 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7277
7278         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7279         environment variable.
7280
7281 2011-01-02  Bruno Haible  <bruno@clisp.org>
7282
7283         unigbrk: Avoid gcc warnings.
7284         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7285         unused variable.
7286         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7287         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7288         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7289         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7290         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7291         Change type of first argument to 'const char *'.
7292         (main): Remove unused variable.
7293         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7294         type of first argument to 'const char *'.
7295         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7296         Likewise.
7297         (main): Change type of variable 's'.
7298         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7299         to 'int'.
7300
7301 2011-01-02  Bruno Haible  <bruno@clisp.org>
7302
7303         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7304         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7305         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7306         bug.
7307         * lib/pwrite.c: Undo 2010-12-31 patch.
7308         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7309
7310 2011-01-02  Bruno Haible  <bruno@clisp.org>
7311
7312         pread: Fix test whether it works.
7313         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7314
7315 2011-01-02  Bruno Haible  <bruno@clisp.org>
7316
7317         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7318         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7319         ends in "6". Don't require a specific month name. Try also the locale
7320         names found on HP-UX 11 and Solaris 7.
7321
7322 2011-01-02  Bruno Haible  <bruno@clisp.org>
7323
7324         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7325         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7326         C linkage.
7327         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7328
7329 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7330
7331         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7332         for consistency, since the "cluster" term is not used elsewhere.
7333         * lib/unigbrk.in.h: Update name.
7334         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7335         * lib/unigbrk/u16-grapheme-next.c: Update name.
7336         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7337         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7338         * lib/unigbrk/u32-grapheme-next.c: Update name.
7339         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7340         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7341         * lib/unigbrk/u8-grapheme-next.c: Update name.
7342         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7343         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7344         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7345         Suggested by Bruno Haible.
7346
7347 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7348
7349         Remove module 'u8-grapheme-len' as too redundant with
7350         'u8-grapheme-next'.
7351         * modules/unigbrk/u8-grapheme-len: Delete file.
7352         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7353         * lib/unigbrk.in.h: Remove prototype for deleted function.
7354         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7355         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7356
7357         Remove module 'u16-grapheme-len' as too redundant with
7358         'u16-grapheme-next'.
7359         * modules/unigbrk/u16-grapheme-len: Delete file.
7360         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7361         * lib/unigbrk.in.h: Remove prototype for deleted function.
7362         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7363         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7364
7365         Remove module 'u32-grapheme-len' as too redundant with
7366         'u32-grapheme-next'.
7367         * modules/unigbrk/u32-grapheme-len: Delete file.
7368         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7369         * lib/unigbrk.in.h: Remove prototype for deleted function.
7370         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7371         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7372
7373         Suggested by Bruno Haible.
7374
7375 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7376
7377         * unigbrk.in.h: Fix typo: "ben" => "been".
7378         Reported by Bruno Haible.
7379
7380 2011-01-01  Jim Meyering  <meyering@redhat.com>
7381
7382         maint: update almost all copyright ranges to include 2011
7383         Run the new "make update-copyright" rule.
7384
7385 2011-01-01  Jim Meyering  <meyering@redhat.com>
7386
7387         maint: update-copyright: exempt doc/INSTALL*
7388         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7389         since they are generated.  Suggested by Bruno Haible.
7390
7391 2011-01-01  Jim Meyering  <meyering@redhat.com>
7392
7393         maint: refine the update-copyright rule
7394         * Makefile (update-copyright): Also exclude any file that includes
7395         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7396         code that merely generates the comment.
7397
7398 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7399
7400         New module 'u8-grapheme-len'.
7401         * modules/unigbrk/u8-grapheme-len: New file.
7402         * modules/unigbrk/u8-grapheme-len-tests: New file.
7403         * lib/unigbrk.in.h: Add prototype for new function.
7404         * lib/unigbrk/u8-grapheme-len.c: New file.
7405         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7406
7407         New module 'u16-grapheme-len'.
7408         * modules/unigbrk/u16-grapheme-len: New file.
7409         * modules/unigbrk/u16-grapheme-len-tests: New file.
7410         * lib/unigbrk.in.h: Add prototype for new function.
7411         * lib/unigbrk/u16-grapheme-len.c: New file.
7412         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7413
7414         New module 'u32-grapheme-len'.
7415         * modules/unigbrk/u32-grapheme-len: New file.
7416         * modules/unigbrk/u32-grapheme-len-tests: New file.
7417         * lib/unigbrk.in.h: Add prototype for new function.
7418         * lib/unigbrk/u32-grapheme-len.c: New file.
7419         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7420
7421         New module 'u8-grapheme-next'.
7422         * modules/unigbrk/u8-grapheme-next: New file.
7423         * modules/unigbrk/u8-grapheme-next-tests: New file.
7424         * lib/unigbrk.in.h: Add prototype for new function.
7425         * lib/unigbrk/u8-grapheme-next.c: New file.
7426         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7427
7428         New module 'u16-grapheme-next'.
7429         * modules/unigbrk/u16-grapheme-next: New file.
7430         * modules/unigbrk/u16-grapheme-next-tests: New file.
7431         * lib/unigbrk.in.h: Add prototype for new function.
7432         * lib/unigbrk/u16-grapheme-next.c: New file.
7433         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7434
7435         New module 'u32-grapheme-next'.
7436         * modules/unigbrk/u32-grapheme-next: New file.
7437         * modules/unigbrk/u32-grapheme-next-tests: New file.
7438         * lib/unigbrk.in.h: Add prototype for new function.
7439         * lib/unigbrk/u32-grapheme-next.c: New file.
7440         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7441
7442         New module 'u8-grapheme-prev'.
7443         * modules/unigbrk/u8-grapheme-prev: New file.
7444         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7445         * lib/unigbrk.in.h: Add prototype for new function.
7446         * lib/unigbrk/u8-grapheme-prev.c: New file.
7447         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7448
7449         New module 'u16-grapheme-prev'.
7450         * modules/unigbrk/u16-grapheme-prev: New file.
7451         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7452         * lib/unigbrk.in.h: Add prototype for new function.
7453         * lib/unigbrk/u16-grapheme-prev.c: New file.
7454         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7455
7456         New module 'u32-grapheme-prev'.
7457         * modules/unigbrk/u32-grapheme-prev: New file.
7458         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7459         * lib/unigbrk.in.h: Add prototype for new function.
7460         * lib/unigbrk/u32-grapheme-prev.c: New file.
7461         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7462
7463         New module 'u8-grapheme-breaks'.
7464         * modules/unigbrk/u8-grapheme-breaks: New file.
7465         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7466         * lib/unigbrk.in.h: Add prototype for new function.
7467         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7468         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7469
7470         New module 'u16-grapheme-breaks'.
7471         * modules/unigbrk/u16-grapheme-breaks: New file.
7472         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7473         * lib/unigbrk.in.h: Add prototype for new function.
7474         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7475         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7476
7477         New module 'u32-grapheme-breaks'.
7478         * modules/unigbrk/u32-grapheme-breaks: New file.
7479         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7480         * lib/unigbrk.in.h: Add prototype for new function.
7481         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7482         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7483
7484         New module 'ulc-grapheme-breaks'.
7485         * modules/unigbrk/ulc-grapheme-breaks: New file.
7486         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7487         * m4/locale-ar.m4: New file.
7488         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7489         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7490         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7491
7492 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7493
7494         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7495         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7496         modified how this file was generated before I initially submitted
7497         the module, but failed to regenerate it.  This meant that several
7498         of the level2 entries were wrong.
7499         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7500         Remove the division-by-2 that is folded into the table now that
7501         gbrkprop.h has been regenerated properly.  Now -1 entries are
7502         handled correctly.
7503
7504         New module 'unigbrk/uc-gbrk-prop-tests'.
7505         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7506         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7507         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7508         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7509
7510 2011-01-01  Bruno Haible  <bruno@clisp.org>
7511
7512         Avoid use of hexadecimal escapes.
7513         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7514         instead of hexadecimal escapes.
7515
7516 2011-01-01  Jim Meyering  <meyering@redhat.com>
7517
7518         maint: new rule to update copyright year ranges
7519         * Makefile (update-copyright): New rule.
7520
7521         maint: indent with TABs in Makefile
7522         * Makefile: Expand leading sequences of spaces to TABs
7523
7524         version-etc: update the copyright year it reports
7525         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7526
7527 2010-12-31  Bruno Haible  <bruno@clisp.org>
7528
7529         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7530         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7531         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7532         zero.
7533
7534 2010-12-31  Bruno Haible  <bruno@clisp.org>
7535
7536         pwrite: Work around HP-UX 11.11 bug.
7537         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7538         works and set REPLACE_PWRITE if not.
7539         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7540         function.
7541         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7542
7543 2010-12-31  Bruno Haible  <bruno@clisp.org>
7544
7545         pread: Work around HP-UX 11 bugs.
7546         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7547         and set REPLACE_PREAD if not.
7548         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7549
7550 2010-12-31  Eric Blake  <eblake@redhat.com>
7551
7552         nl_langinfo: fix YESEXPR on Irix 6.5
7553         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7554         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7555         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7556         it.
7557
7558 2010-12-31  Bruno Haible  <bruno@clisp.org>
7559
7560         iconv: Document HP-UX 11 bug.
7561         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7562
7563 2010-12-31  Bruno Haible  <bruno@clisp.org>
7564
7565         ldexpl: Fix link error on HP-UX 11.
7566         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7567         LDEXPL_LIBM, using $ISNANL_LIBM.
7568
7569 2010-12-31  Eric Blake  <eblake@redhat.com>
7570
7571         ftello: avoid compilation failure with SunStudio c89
7572         * lib/ftello.c (ftello): Use lseek, not llseek.
7573
7574         tests: avoid failing coreutils tests on cygwin
7575         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7576         (create_exe_shims_): Return 0 when skipping.
7577
7578 2010-12-31  Bruno Haible  <bruno@clisp.org>
7579
7580         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7581         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7582
7583 2010-12-31  Bruno Haible  <bruno@clisp.org>
7584
7585         waitpid: Fix link error in C++ mode.
7586         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7587
7588 2010-12-31  Bruno Haible  <bruno@clisp.org>
7589
7590         isnan: Use GCC built-ins when possible.
7591         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7592         __builtin_isnan.
7593         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7594         (isnan): Define using GCC built-ins for GCC >= 4.0.
7595
7596 2010-12-31  Bruno Haible  <bruno@clisp.org>
7597
7598         isnand: Fix mistake.
7599         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7600         __builtin_isnand.
7601
7602 2010-12-31  Bruno Haible  <bruno@clisp.org>
7603
7604         open: Avoid C++ error on HP-UX 11.
7605         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7606
7607 2010-12-31  Bruno Haible  <bruno@clisp.org>
7608
7609         time_r: Add missing declarations on HP-UX 11.
7610         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7611         instead of HAVE_LOCALTIME_R.
7612         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7613         HAVE_LOCALTIME_R always.
7614         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7615         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7616         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7617         HAVE_LOCALTIME_R.
7618         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7619         * doc/posix-functions/localtime_r.texi: Likewise.
7620
7621 2010-12-29  Eric Blake  <eblake@redhat.com>
7622
7623         mountlist: tweak previous commit
7624         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7625         Reported by Paul Eggert.
7626
7627         mountlist: fix local drive detection on cygwin
7628         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7629         that works for cygwin.
7630
7631 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7632
7633         ftoastr, snprintf: ftoastr + snprintf module
7634         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7635         since the snprintf module now should be good enough here.
7636         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7637         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7638         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7639         GNULIB_SNPRINTF only for the test directory, and the latter
7640         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7641         seems to suffice by itself.
7642
7643 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7644
7645         alloca: one step towards thread-safety
7646         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7647         need for a static variable.  All callers changed.  This does not
7648         make the alloca replacement thread-safe, but it's one step.
7649
7650         tests: minor indenting change
7651         * tests/init.sh: Sync from coreutils housekeeping patch
7652         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7653         to keep lines within 80 columns.
7654
7655 2010-12-28  Jim Meyering  <meyering@redhat.com>
7656
7657         regex: don't infloop on persistent failing calloc
7658         * lib/regexec.c (build_trtable): Return failure indication upon
7659         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7660         In glibc, this was fixed for version 2.13:
7661         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7662
7663 2010-12-28  Bruno Haible  <bruno@clisp.org>
7664             Paul Eggert <eggert@cs.ucla.edu>
7665
7666         linkat: Make implementation robust against system behaviour variations.
7667         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7668         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7669         way, and to -2 if it needs a generic runtime test.
7670         * lib/linkat.c (solaris_optimized_link_immediate,
7671         solaris_optimized_link_follow): New functions.
7672         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7673         (check_same_link): Use it.
7674
7675 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7676
7677         New module 'unigbrk/base'.
7678         * modules/unigbrk/base: New file.
7679         * lib/unigbrk.in.h: New file.
7680
7681         New module 'unigbrk/uc-gbrk-prop'.
7682         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7683         * modules/unigbrk/uc-gbrk-prop: New file.
7684         * lib/unigbrk/gbrkprop.h: New file.
7685         * lib/unigbrk/uc-gbrk-prop.c: New file.
7686
7687         New module 'unigbrk/uc-is-grapheme-break'.
7688         * modules/unigbrk/uc-is-grapheme-break: New file.
7689         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7690         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7691         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7692         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7693         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7694
7695         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7696
7697 2010-12-27  Bruno Haible  <bruno@clisp.org>
7698
7699         linkat test: Avoid failure on Solaris 11 2010-11.
7700         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7701
7702 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7703
7704         utimens: work around glibc rounding bug on more platforms
7705         * lib/utimens.c (fdutimens): Work around rounding bug even if
7706         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7707         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7708
7709 2010-12-27  Bruno Haible  <bruno@clisp.org>
7710
7711         select tests: Improve comments.
7712         * tests/test-select.c (do_select): Add comments.
7713
7714 2010-12-27  Bruno Haible  <bruno@clisp.org>
7715
7716         select tests: Safer way of handling timeout.
7717         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7718         at every invocation.
7719
7720 2010-12-27  Bruno Haible  <bruno@clisp.org>
7721
7722         select tests: Use 'bool' where appropriate.
7723         * tests/test-select.c (connect_to_socket): Change argument type to
7724         'bool'.
7725
7726 2010-12-27  Bruno Haible  <bruno@clisp.org>
7727
7728         select tests: Use existing modules.
7729         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7730         (configure.ac): Don't test for unistd.h.
7731         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7732         declared in <unistd.h>.
7733
7734 2010-12-27  Bruno Haible  <bruno@clisp.org>
7735
7736         mbrtowc: Work around a Solaris 7 bug.
7737         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7738         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7739         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7740         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7741         MBRTOWC_NULL_ARG1_BUG.
7742         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7743         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7744         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7745         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7746
7747 2010-12-27  Jim Meyering  <meyering@redhat.com>
7748
7749         read-file.c: tweak syntax
7750         * lib/read-file.c (fread_file): Remove space after "*" in function
7751         definitions.
7752
7753 2010-12-27  Bruno Haible  <bruno@clisp.org>
7754
7755         times test: Avoid gcc warnings on OSF/1.
7756         * tests/test-times.c (main): Cast printf arguments from clock_t to
7757         'long int'.
7758
7759 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7760
7761         utimens: work around glibc rounding bug on older Linux kernels
7762         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7763         on Linux with a glibc whose utimes might not work, then work
7764         around a longstanding glibc bug involving rounding rather than
7765         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7766         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7767
7768 2010-12-26  Bruno Haible  <bruno@clisp.org>
7769
7770         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7771         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7772         _GL_CXXALIAS_SYS.
7773         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7774
7775 2010-12-26  Bruno Haible  <bruno@clisp.org>
7776
7777         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7778         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7779         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7780         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7781         looking for the declaration.
7782         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7783         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7784         problem.
7785         * doc/posix-functions/inet_pton.texi: Likewise.
7786
7787 2010-12-26  Bruno Haible  <bruno@clisp.org>
7788
7789         arpa_inet: Use the common idioms with C++ support.
7790         * lib/arpa_inet.in.h: Include c++defs.h.
7791         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7792         support.
7793         * modules/arpa_inet (Depends-on): Add c++defs.
7794         (Makefile.am): Substitute the contents of c++defs.h.
7795         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7796         * modules/arpa_inet-c++-tests: New file.
7797         * tests/test-arpa_inet-c++.cc: New file.
7798
7799 2010-12-25  Bruno Haible  <bruno@clisp.org>
7800
7801         Fix more C++ link errors on Solaris 8.
7802         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7803         $(LIB_EACCESS).
7804         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7805         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7806         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7807         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7808         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7809
7810 2010-12-25  Bruno Haible  <bruno@clisp.org>
7811
7812         printf-posix: Fix link error when a non-GCC compiler is used.
7813         * lib/stdio.in.h (printf): When not using GCC, override printf
7814         correctly.
7815         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7816
7817 2010-12-25  Bruno Haible  <bruno@clisp.org>
7818
7819         strerror_r-posix: Update doc.
7820         * doc/posix-functions/strerror_r.texi: Update doc about the return
7821         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7822
7823 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7824
7825         utimens: simplify the logic of the previous change
7826         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7827         This should not affect whether the test succeeds or fails.
7828
7829         utimens: configure better on hosts with NFS clock skew
7830         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7831         uses the clock of the local host.  It might use the clock of the
7832         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7833         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7834
7835 2010-12-25  Bruno Haible  <bruno@clisp.org>
7836
7837         ptsname test: Avoid failure on Solaris.
7838         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7839         open a pseudo-terminal; don't use BSD-style ptys.
7840         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7841
7842 2010-12-25  Bruno Haible  <bruno@clisp.org>
7843
7844         ptsname: Avoid ERANGE failure on some systems.
7845         * lib/ptsname.c (buffer): Increase size.
7846
7847 2010-12-25  Bruno Haible  <bruno@clisp.org>
7848
7849         rename, renameat: Avoid test failures at NFS mounted locations.
7850         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7851         so that subsequent mkdir calls succeed.
7852
7853 2010-12-25  Bruno Haible  <bruno@clisp.org>
7854
7855         iswblank: Fix C++ link error on Solaris 8.
7856         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7857         _GL_FUNCDECL_SYS.
7858
7859 2010-12-25  Bruno Haible  <bruno@clisp.org>
7860
7861         unistd: Fix C++ link error on Solaris 8.
7862         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7863
7864 2010-12-25  Bruno Haible  <bruno@clisp.org>
7865
7866         readlink doc: Mention an old glibc bug.
7867         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7868
7869 2010-12-25  Bruno Haible  <bruno@clisp.org>
7870
7871         fcntl-h: Fix for use of C++ on glibc systems.
7872         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7873         also on glibc systems in C++ mode.
7874         Reported by Gary V. Vaughan <gary@gnu.org>.
7875
7876 2010-12-25  Bruno Haible  <bruno@clisp.org>
7877
7878         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7879         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7880
7881 2010-12-25  Bruno Haible  <bruno@clisp.org>
7882
7883         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7884         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7885         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7886         test whether truncl works according to ISO C 99 with IEC 60559.
7887         * m4/truncl-ieee.m4: New file.
7888         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7889         m4/signbit.m4.
7890         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7891
7892 2010-12-25  Bruno Haible  <bruno@clisp.org>
7893
7894         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7895         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7896         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7897         test whether ceill works according to ISO C 99 with IEC 60559.
7898         * m4/ceill-ieee.m4: New file.
7899         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7900         m4/signbit.m4.
7901         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7902
7903 2010-12-25  Bruno Haible  <bruno@clisp.org>
7904
7905         Ensure all prerequisites of <wchar.h> are included.
7906         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7907         before <wchar.h>.
7908         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7909         gl_MBRLEN_NUL_RETVAL): Likewise.
7910         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7911         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7912         AC_FUNC_MBRTOWC): Likewise.
7913         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7914         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7915         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7916         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7917         Likewise.
7918         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7919         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7920         (gl_WCHAR_H): Improve comments.
7921         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7922
7923 2010-12-25  Bruno Haible  <bruno@clisp.org>
7924
7925         strtok_r: Fix C syntax error in autoconf macro.
7926         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7927         characters in test program.
7928
7929 2010-12-24  Bruno Haible  <bruno@clisp.org>
7930
7931         ceil, trunc, round: Fix gcc warnings.
7932         * lib/ceil.c (MIN): Undefine before redefining.
7933         * lib/trunc.c (MIN): Likewise.
7934         * lib/round.c (MIN): Likewise.
7935         Include <math.h> first.
7936
7937 2010-12-24  Bruno Haible  <bruno@clisp.org>
7938
7939         select tests: Avoid failures on OSF/1 5.1.
7940         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7941         failure of closing the last socket; it may fail with ECONNRESET.
7942
7943 2010-12-24  Eric Blake  <eblake@redhat.com>
7944
7945         stdint: avoid HP-UX 10.20 preprocessor bug
7946         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7947         than #if.
7948         * tests/test-floor2.c (main): Likewise.
7949         Reported by Peter O'Gorman.
7950
7951         pipe: make obsoletion transition easier
7952         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7953         * modules/pipe (Files): Include revived file.
7954         (Include): Drop reference, to mirror getdate's behavior.
7955
7956 2010-12-24  Bruno Haible  <bruno@clisp.org>
7957
7958         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7959         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7960         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7961         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7962
7963 2010-12-24  Bruno Haible  <bruno@clisp.org>
7964
7965         gethostname: Ensure declaration on NonStop Kernel.
7966         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7967         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7968
7969 2010-12-24  Bruno Haible  <bruno@clisp.org>
7970
7971         sys_select: Ensure all necessary types on NonStop Kernel.
7972         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7973         include <sys/time.h>.
7974         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7975         NonStop Kernel.
7976         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7977
7978 2010-12-24  Bruno Haible  <bruno@clisp.org>
7979
7980         sys_select: Remove unneeded include.
7981         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7982         have <sys/select.h>.
7983
7984 2010-12-24  Bruno Haible  <bruno@clisp.org>
7985
7986         gethostname: Provide a fallback for HOST_NAME_MAX.
7987         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7988         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7989         instead.
7990         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7991
7992 2010-12-24  Bruno Haible  <bruno@clisp.org>
7993
7994         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7995         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7996         (SA_RESTART): Likewise.
7997         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7998
7999 2010-12-24  Bruno Haible  <bruno@clisp.org>
8000
8001         signal: Define NSIG.
8002         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8003         * tests/test-signal.c (nsig): New variable.
8004         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8005
8006 2010-12-24  Bruno Haible  <bruno@clisp.org>
8007
8008         rename, renameat: Avoid test failures on OSF/1 5.1.
8009         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8010         alternative error codes.
8011         * tests/test-renameat.c (main): Likewise.
8012
8013 2010-12-24  Bruno Haible  <bruno@clisp.org>
8014
8015         *printf: Detect large precisions bug on Solaris 10/SPARC.
8016         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8017         by Paul Eggert.
8018         * tests/test-snprintf-posix.h (test_function): Add this test code here
8019         too.
8020         * tests/test-sprintf-posix.h (test_function): Likewise.
8021         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8022         * tests/test-vasprintf-posix.c (test_function): Likewise.
8023         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8024         around by gnulib.
8025         * doc/posix-functions/printf.texi: Likewise.
8026         * doc/posix-functions/snprintf.texi: Likewise.
8027         * doc/posix-functions/sprintf.texi: Likewise.
8028         * doc/posix-functions/vfprintf.texi: Likewise.
8029         * doc/posix-functions/vprintf.texi: Likewise.
8030         * doc/posix-functions/vsnprintf.texi: Likewise.
8031         * doc/posix-functions/vsprintf.texi: Likewise.
8032         * doc/posix-functions/dprintf.texi: Undo last commit.
8033         * doc/posix-functions/vdprintf.texi: Likewise.
8034
8035 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8036
8037         tests: port test-fdutimensat.c to Solaris 8
8038         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8039         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8040         On Solaris 8, it fails with errno == ENOSYS, because there is no
8041         futimens (so it can't use the fd), and there is no lutimens (so it
8042         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8043
8044         vsnprintf: make more consistent with snprintf; doc fixes
8045
8046         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8047         the byte count return problem was promoted from the snprintf-posix
8048         to the snprintf module.
8049         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8050         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8051         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8052         * tests/test-snprintf.c (main): Check the byte count returned.
8053         * tests/test-vsnprintf.c (main): Likewise.
8054
8055 2010-12-23  Eric Blake  <eblake@redhat.com>
8056
8057         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8058         * modules/sigpipe (License): Relax license.
8059
8060 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8061
8062         doc: document Solaris printf bug with large float precisions
8063         * doc/posix-functions/dprintf.texi (dprintf):
8064         * doc/posix-functions/fprintf.texi (fprintf):
8065         * doc/posix-functions/printf.texi (printf):
8066         * doc/posix-functions/snprintf.texi (snprintf):
8067         * doc/posix-functions/sprintf.texi (sprintf):
8068         * doc/posix-functions/vdprintf.texi (vdprintf):
8069         * doc/posix-functions/vfprintf.texi (vfprintf):
8070         * doc/posix-functions/vprintf.texi (vprintf):
8071         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8072         * doc/posix-functions/vsprintf.texi (vsprintf):
8073         Mention that these functions mishandle large floating point
8074         precisions on Solaris 10.  The same bug is also present in Solaris
8075         8, and I assume earlier.  This causes "cd gnulib-tests; make
8076         check" to fail on Solaris 8 (and I assume, later) when building
8077         the latest coreutils, in test-vasprintf-posix's call to
8078         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8079         the wide flavors (e.g., wprintf) so this patch just updates the
8080         documentation for the narrow ones.
8081
8082         test-posixtm.c: add two tests
8083         * tests/test-posixtm.c: Add two tests, to highlight the
8084         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8085         around this bug; this is merely to document it.
8086
8087 2010-12-22  Bruno Haible  <bruno@clisp.org>
8088
8089         getlogin_r: Work around portability problem on OSF/1.
8090         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8091         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8092         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8093         test for a truncated result.
8094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8095         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8096         * modules/getlogin_r (Depends-on): Add memchr.
8097         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8098
8099 2010-12-22  Bruno Haible  <bruno@clisp.org>
8100
8101         ptsname: Avoid test failure on OSF/1 5.1.
8102         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8103         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8104         (same_slave): New function.
8105         (main): Use it to compare ptsname's result with the expected file name.
8106
8107 2010-12-22  Bruno Haible  <bruno@clisp.org>
8108
8109         Port extended stdio modules to HP NonStop Kernel.
8110         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8111         macros.
8112         * lib/fbufmode.c: Update comments.
8113         * lib/fflush.c: Likewise.
8114         * lib/fpurge.c: Likewise.
8115         * lib/freadable.c: Likewise.
8116         * lib/freadahead.c: Likewise.
8117         * lib/freading.c: Likewise.
8118         * lib/freadptr.c: Likewise.
8119         * lib/freadseek.c: Likewise.
8120         * lib/fseeko.c: Likewise.
8121         * lib/fseterr.c: Likewise.
8122         * lib/fwritable.c: Likewise.
8123         * lib/fwriting.c: Likewise.
8124         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8125
8126 2010-12-22  Bruno Haible  <bruno@clisp.org>
8127
8128         ttyname_r: Work around bug on OSF/1 5.1.
8129         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8130         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8131         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8132         present.
8133         * lib/ttyname_r.c (ttyname_r): Update comments.
8134
8135 2010-12-22  Bruno Haible  <bruno@clisp.org>
8136
8137         round: Implement result sign according to IEEE 754.
8138         * lib/round.c (MIN, MINUS_ZERO): New macros.
8139         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8140         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8141         * tests/test-round-ieee.c (main): Likewise.
8142         * tests/test-roundl-ieee.c (main): Likewise.
8143
8144         trunc: Implement result sign according to IEEE 754.
8145         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8146         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8147         * tests/test-trunc2.c: Include minus-zero.h.
8148         (MINUS_ZERO): New macro.
8149         (trunc_reference): Keep in sync with lib/trunc.c.
8150         * tests/test-truncf2.c: Include minus-zero.h.
8151         (MINUS_ZERO): New macro.
8152         (truncf_reference): Keep in sync with lib/trunc.c.
8153         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8154         * tests/test-trunc-ieee.c (main): Likewise.
8155         * tests/test-truncl-ieee.c (main): Likewise.
8156
8157         ceil: Implement result sign according to IEEE 754.
8158         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8159         (FUNC): Return -0.0 for -1 < x < 0.
8160         * tests/test-ceil2.c: Include minus-zero.h.
8161         (MINUS_ZERO): New macro.
8162         (ceil_reference): Keep in sync with lib/ceil.c.
8163         * tests/test-ceilf2.c: Include minus-zero.h.
8164         (MINUS_ZERO): New macro.
8165         (ceilf_reference): Keep in sync with lib/ceil.c.
8166         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8167         * tests/test-ceil-ieee.c (main): Likewise.
8168         * tests/test-ceill-ieee.c (main): Likewise.
8169
8170         floor: Implement result sign according to IEEE 754.
8171         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8172         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8173         * tests/test-floorf2.c (floorf_reference): Likewise.
8174         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8175         * tests/test-floor-ieee.c (main): Likewise.
8176         * tests/test-floorl-ieee.c (main): Likewise.
8177
8178 2010-12-22  Bruno Haible  <bruno@clisp.org>
8179
8180         getaddrinfo: Update doc.
8181         * doc/posix-functions/gai_strerror.texi: Return type is also different
8182         on AIX and HP-UX.
8183
8184 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8185
8186         getaddrinfo, inet_ntop: Update doc for Solaris.
8187         * doc/posix-functions/gai_strerror.texi: Return type is also an
8188         issue on Solaris 9 and earlier.
8189         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8190         on Solaris 10 and earlier.
8191
8192 2010-12-21  Bruno Haible  <bruno@clisp.org>
8193
8194         New module 'roundl-ieee'.
8195         * modules/roundl-ieee: New file.
8196         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8197         test whether roundl works according to ISO C 99 with IEC 60559.
8198         * m4/roundl-ieee.m4: New file.
8199         * modules/roundl-ieee-tests: New file.
8200         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8201         * tests/test-roundl.c (main): Remove signbit tests.
8202         * modules/roundl-tests (Depends-on): Remove signbit.
8203         * doc/posix-functions/roundl.texi: Mention the new module.
8204
8205 2010-12-21  Bruno Haible  <bruno@clisp.org>
8206
8207         New module 'truncl-ieee'.
8208         * modules/truncl-ieee: New file.
8209         * modules/truncl-ieee-tests: New file.
8210         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8211         * tests/test-truncl.c (main): Remove signbit tests.
8212         * modules/truncl-tests (Depends-on): Remove signbit.
8213         * doc/posix-functions/truncl.texi: Mention the new module.
8214
8215 2010-12-21  Bruno Haible  <bruno@clisp.org>
8216
8217         New module 'ceill-ieee'.
8218         * modules/ceill-ieee: New file.
8219         * modules/ceill-ieee-tests: New file.
8220         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8221         * tests/test-ceill.c (main): Remove signbit tests.
8222         * modules/ceill-tests (Depends-on): Remove signbit.
8223         * doc/posix-functions/ceill.texi: Mention the new module.
8224
8225 2010-12-21  Bruno Haible  <bruno@clisp.org>
8226
8227         New module 'floorl-ieee'.
8228         * modules/floorl-ieee: New file.
8229         * modules/floorl-ieee-tests: New file.
8230         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8231         * tests/test-floorl.c (main): Remove signbit tests.
8232         * modules/floorl-tests (Depends-on): Remove signbit.
8233         * doc/posix-functions/floorl.texi: Mention the new module.
8234
8235 2010-12-21  Bruno Haible  <bruno@clisp.org>
8236
8237         New module 'round-ieee'.
8238         * modules/round-ieee: New file.
8239         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8240         whether round works according to ISO C 99 with IEC 60559.
8241         * m4/round-ieee.m4: New file.
8242         * modules/round-ieee-tests: New file.
8243         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8244         * tests/test-round1.c (main): Remove signbit tests.
8245         * modules/round-tests (Depends-on): Remove 'signbit'.
8246         * doc/posix-functions/round.texi: Mention the new module.
8247
8248 2010-12-21  Bruno Haible  <bruno@clisp.org>
8249
8250         New module 'trunc-ieee'.
8251         * modules/trunc-ieee: New file.
8252         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8253         whether trunc works according to ISO C 99 with IEC 60559.
8254         * m4/trunc-ieee.m4: New file.
8255         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8257         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8258         * modules/trunc-ieee-tests: New file.
8259         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8260         * tests/test-trunc1.c (main): Remove signbit tests.
8261         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8262         * doc/posix-functions/trunc.texi: Mention the new module.
8263
8264 2010-12-21  Bruno Haible  <bruno@clisp.org>
8265
8266         New module 'ceil-ieee'.
8267         * modules/ceil-ieee: New file.
8268         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8269         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8270         ISO C 99 with IEC 60559.
8271         * m4/ceil-ieee.m4: New file.
8272         * modules/ceil (Files): Add lib/ceil.c.
8273         (Depends-on): Add 'float'.
8274         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8275         * lib/math.in.h (ceil): New declaration.
8276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8277         REPLACE_CEIL.
8278         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8279         * modules/ceil-ieee-tests: New file.
8280         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8281         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8282         * doc/posix-functions/ceil.texi: Mention the new module.
8283
8284 2010-12-21  Bruno Haible  <bruno@clisp.org>
8285
8286         New module 'floor-ieee'.
8287         * modules/floor-ieee: New file.
8288         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8289         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8290         ISO C 99 with IEC 60559.
8291         * m4/floor-ieee.m4: New file.
8292         * modules/floor (Files): Add lib/floor.c.
8293         (Depends-on): Add 'float'.
8294         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8295         * lib/math.in.h (floor): New declaration.
8296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8297         REPLACE_FLOOR.
8298         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8299         * modules/floor-ieee-tests: New file.
8300         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8301         * tests/test-math-c++.cc: Check the signature of 'floor'.
8302         * doc/posix-functions/floor.texi: Mention the new module.
8303
8304 2010-12-21  Bruno Haible  <bruno@clisp.org>
8305
8306         New module 'roundf-ieee'.
8307         * modules/roundf-ieee: New file.
8308         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8309         test whether roundf works according to ISO C 99 with IEC 60559.
8310         * m4/roundf-ieee.m4: New file.
8311         * modules/roundf-ieee-tests: New file.
8312         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8313         * tests/test-roundf1.c (main): Remove signbit tests.
8314         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8315         * doc/posix-functions/roundf.texi: Mention the new module.
8316
8317 2010-12-21  Bruno Haible  <bruno@clisp.org>
8318
8319         New module 'truncf-ieee'.
8320         * modules/truncf-ieee: New file.
8321         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8322         test whether truncf works according to ISO C 99 with IEC 60559.
8323         * m4/truncf-ieee.m4: New file.
8324         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8326         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8327         * modules/truncf-ieee-tests: New file.
8328         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8329         * tests/test-truncf1.c (main): Remove signbit tests.
8330         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8331         * doc/posix-functions/truncf.texi: Mention the new module.
8332
8333 2010-12-21  Bruno Haible  <bruno@clisp.org>
8334
8335         New module 'ceilf-ieee'.
8336         * modules/ceilf-ieee: New file.
8337         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8338         test whether ceilf works according to ISO C 99 with IEC 60559.
8339         * m4/ceilf-ieee.m4: New file.
8340         * modules/ceilf-ieee-tests: New file.
8341         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8342         * tests/test-ceilf1.c (main): Remove signbit tests.
8343         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8344         * doc/posix-functions/ceilf.texi: Mention the new module.
8345
8346 2010-12-21  Bruno Haible  <bruno@clisp.org>
8347
8348         New module 'floorf-ieee'.
8349         * modules/floorf-ieee: New file.
8350         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8351         test whether floorf works according to ISO C 99 with IEC 60559.
8352         * m4/floorf-ieee.m4: New file.
8353         * modules/floorf-ieee-tests: New file.
8354         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8355         * tests/test-floorf1.c (main): Remove signbit tests.
8356         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8357         * doc/posix-functions/floorf.texi: Mention the new module.
8358
8359 2010-12-21  Bruno Haible  <bruno@clisp.org>
8360
8361         Support for minus zero in autoconf macros.
8362         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8363         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8364         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8365         * tests/minus-zero.h: Update comments.
8366
8367 2010-12-21  Bruno Haible  <bruno@clisp.org>
8368
8369         Tests for module 'ceil'.
8370         * modules/ceil-tests: New file.
8371         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8372         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8373
8374 2010-12-21  Bruno Haible  <bruno@clisp.org>
8375
8376         Tests for module 'floor'.
8377         * modules/floor-tests: New file.
8378         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8379         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8380
8381 2010-12-21  Bruno Haible  <bruno@clisp.org>
8382
8383         math: Fix indentation.
8384         * lib/math.in.h (floorf): Fix indentation.
8385
8386 2010-12-21  Bruno Haible  <bruno@clisp.org>
8387
8388         Fix cross-compilation guesses on Solaris.
8389         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8390         not match "solaris2.10".
8391         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8392         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8393         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8394
8395 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8396
8397         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8398         This fixes a problem observed with the latest coreutils snapshot
8399         that caused a test to fail on Solaris 8.  src/csplit.c's call
8400         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8401         earlier, instead of returning the number of bytes that would have
8402         been generated; this causes csplit to incorrectly report memory
8403         exhaustion.
8404         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8405         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8406         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8407         comments to match.
8408         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8409         Fix typo in matching older versions of Solaris: "solaris2.10"
8410         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8411         only for guessing while cross-compiling.
8412         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8413
8414 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8415
8416         ftoastr: fix comment again
8417         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8418         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8419         Also, simplify example a bit by using flags = 0.
8420
8421 2010-12-20  Bruno Haible  <bruno@clisp.org>
8422
8423         round*, trunc*: Update documentation regarding glibc.
8424         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8425         * doc/posix-functions/round.texi: Likewise.
8426         * doc/posix-functions/roundl.texi: Likewise.
8427         * doc/posix-functions/truncf.texi: Likewise.
8428         * doc/posix-functions/trunc.texi: Likewise.
8429         * doc/posix-functions/truncl.texi: Likewise.
8430
8431 2010-12-20  Bruno Haible  <bruno@clisp.org>
8432
8433         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8434         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8435         * doc/posix-functions/round.texi: Likewise.
8436         * doc/posix-functions/roundl.texi: Likewise.
8437
8438 2010-12-20  Bruno Haible  <bruno@clisp.org>
8439
8440         ttyname_r: Add missing declaration on HP-UX 11.
8441         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8442         HAVE_TTYNAME_R.
8443         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8444         declared. Set HAVE_TTYNAME_R always.
8445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8446         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8447         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8448         HAVE_TTYNAME_R.
8449         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8450
8451 2010-12-20  Bruno Haible  <bruno@clisp.org>
8452
8453         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8454         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8455         * doc/posix-functions/getlogin_r.texi: Likewise.
8456         * tests/test-getlogin.c: Include <errno.h>.
8457         (main): Avoid test failure on HP-UX 11.11.
8458         * tests/test-getlogin_r.c (main): Likewise.
8459
8460 2010-12-20  Bruno Haible  <bruno@clisp.org>
8461
8462         getlogin_r: Add missing declaration on HP-UX 11.
8463         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8464         declared also when it exists as a function.
8465         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8466
8467 2010-12-20  Bruno Haible  <bruno@clisp.org>
8468
8469         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8470         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8471         through wcrtomb.
8472
8473 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8474
8475         ftoastr: fix comment
8476         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8478
8479 2010-12-19  Bruno Haible  <bruno@clisp.org>
8480
8481         isnan: Ensure it is a macro.
8482         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8483         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8484         Solaris.
8485
8486 2010-12-19  Bruno Haible  <bruno@clisp.org>
8487
8488         ldexpl test: Fix link error on OSF/1 5.1.
8489         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8490
8491 2010-12-19  Bruno Haible  <bruno@clisp.org>
8492
8493         wctype: Make it work in C++ mode on OSF/1 5.1.
8494         * lib/wctype.in.h (iswblank): Declare but not define here.
8495         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8496         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8497         * modules/wctype (Files): Add lib/iswblank.c.
8498
8499 2010-12-19  Bruno Haible  <bruno@clisp.org>
8500
8501         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8502         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8503         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8504
8505 2010-12-19  Bruno Haible  <bruno@clisp.org>
8506
8507         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8508         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8509         _POSIX_PII_SOCKET.
8510         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8511         * doc/posix-functions/recvfrom.texi: Likewise.
8512         * doc/posix-functions/send.texi: Likewise.
8513         * doc/posix-functions/sendto.texi: Likewise.
8514
8515 2010-12-19  Bruno Haible  <bruno@clisp.org>
8516
8517         tcgetsid: Add missing declaration on OSF/1 5.1.
8518         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8519         HAVE_TCGETSID.
8520         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8521         Don't set HAVE_TCGETSID.
8522         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8523         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8524         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8525         HAVE_TCGETSID.
8526         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8527
8528 2010-12-19  Bruno Haible  <bruno@clisp.org>
8529
8530         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8531         * lib/stdio.in.h: During the include_next statement, let recursive
8532         includes of this file include only the system header file.
8533
8534 2010-12-19  Bruno Haible  <bruno@clisp.org>
8535
8536         iconv_open: Fix regression from 2010-12-04.
8537         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8538         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8539
8540 2010-12-19  Bruno Haible  <bruno@clisp.org>
8541
8542         stdbool test: Avoid a gcc warning.
8543         * tests/test-stdbool.c (main): Fail if e1 is false.
8544         Reported by Jim Meyering.
8545
8546 2010-12-19  Jim Meyering  <meyering@redhat.com>
8547
8548         setenv: restore to working order
8549         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8550         mistakenly removed.
8551         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8552         HAVE_SETENV.
8553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8554         HAVE_SETENV.
8555
8556 2010-12-19  Bruno Haible  <bruno@clisp.org>
8557
8558         Document some different function declarations on OSF/1 5.1.
8559         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8560         * doc/posix-functions/inet_ntop.texi: Likewise.
8561         * doc/posix-functions/gethostname.texi: Likewise.
8562         * lib/unistd.in.h (gethostname): Update comment.
8563
8564 2010-12-19  Bruno Haible  <bruno@clisp.org>
8565
8566         doc: Mention vasprintf-posix module.
8567         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8568         the 'vasprintf-posix' module.
8569         * doc/glibc-functions/vasprintf.texi: Likewise.
8570
8571 2010-12-19  Bruno Haible  <bruno@clisp.org>
8572
8573         unsetenv: Add missing declaration on OSF/1 5.1.
8574         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8575         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8576         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8578         not HAVE_UNSETENV.
8579         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8580         HAVE_UNSETENV.
8581         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8582
8583 2010-12-19  Bruno Haible  <bruno@clisp.org>
8584
8585         setenv: Add missing declaration on OSF/1 5.1.
8586         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8587         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8588         declared. Don't set HAVE_SETENV.
8589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8590         not HAVE_SETENV.
8591         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8592         HAVE_SETENV.
8593         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8594
8595 2010-12-19  Bruno Haible  <bruno@clisp.org>
8596
8597         nl_langinfo tests: Avoid gcc warning.
8598         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8599
8600 2010-12-19  Bruno Haible  <bruno@clisp.org>
8601
8602         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8603         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8604         _GL_CXXALIAS_SYS.
8605
8606 2010-12-19  Bruno Haible  <bruno@clisp.org>
8607
8608         stdbool: Relax test.
8609         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8610         address to 'bool' work in static initializer, for compilers other than
8611         GCC.
8612
8613 2010-12-19  Bruno Haible  <bruno@clisp.org>
8614
8615         ftello: Add missing declaration on OSF/1 5.1.
8616         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8617         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8619         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8620         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8621
8622 2010-12-19  Bruno Haible  <bruno@clisp.org>
8623
8624         fseeko: Add missing declaration on OSF/1 5.1.
8625         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8626         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8628         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8629         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8630
8631 2010-12-19  Bruno Haible  <bruno@clisp.org>
8632
8633         fchdir: Add missing declaration on OSF/1 5.1.
8634         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8637         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8638         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8639
8640 2010-12-19  Bruno Haible  <bruno@clisp.org>
8641
8642         relocatable-prog-wrapper: Separate from relocatable-prog.
8643         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8644         uninstall-relocwrapper rule here.
8645         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8646         Reported by Ian Beckwith <ianb@erislabs.net>.
8647
8648 2010-12-19  Bruno Haible  <bruno@clisp.org>
8649
8650         unistr/u8-mbsnlen: Add missing dependency.
8651         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8652         Reported by Ian Beckwith <ianb@erislabs.net>.
8653
8654 2010-12-19  Bruno Haible  <bruno@clisp.org>
8655
8656         iconv: Make it possible again to use this module without 'iconv-h'.
8657         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8658         if it is not defined.
8659         Reported by Ian Beckwith <ianb@erislabs.net>.
8660
8661 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8662
8663         acl: port to Solaris 8 when copying from tmpfs to ufs
8664         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8665         error number.  Problem observed on Solaris 8 with latest
8666         coreutils, with "mv A B", where A is on a tmpfs file system and B
8667         is on a ufs file system.  This caused coreutils' mv/part-symlink
8668         test to fail.
8669
8670         tests: set fail=0 at start
8671         * tests/init.sh (setup_): Move fail=0 initialization here ...
8672         (mktempd_): ... from here, so that tests can rely on fail being
8673         set to 0 initially.  This fixes a problem in coreutils; see:
8674         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8675
8676 2010-12-18  Bruno Haible  <bruno@clisp.org>
8677
8678         memmem-simple: Stylistic changes.
8679         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8680         Fix preprocessor directive indentation.
8681
8682 2010-12-15  Pádraig Brady <P@draigBrady.com>
8683
8684         memmem, memmem-simple: reorganize and expand empty needle check
8685         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8686         functional checks to memmem-simple so that one has a fully functional
8687         memmem by using just this module.
8688         Restrict the performance only check to the memmem module.
8689         Also expand the empty needle check to ensure the correct
8690         pointer is returned, not just a non NULL pointer.
8691         * doc/glibc-functions/memmem.texi: Rearrange the portability
8692         documentation to correlate with the rearranged checks.
8693         Clarify exactly how the memmem and memmem-simple modules
8694         relate to each other.
8695
8696 2010-12-15  Pádraig Brady <P@draigBrady.com>
8697             Bruno Haible  <bruno@clisp.org>
8698
8699         Improve cross-compilation guesses for uClibc.
8700         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8701         that uClibc does not have the glibc bug.
8702         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8703         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8704
8705 2010-12-14  Eric Blake  <eblake@redhat.com>
8706
8707         configmake: provide fallbacks for oldest supported autotools
8708         * m4/configmake.m4: New file.
8709         * modules/configmake (Files): Ship it.
8710         (configure.ac): Use it to guarantee fallbacks.
8711
8712 2010-12-13  Pádraig Brady <P@draigBrady.com>
8713
8714         read-file: Improve handling of large files
8715         * lib/read-file.c (fread_file): Minimize realloc()s
8716         for regular files, and better manage sizes around SIZE_MAX.
8717
8718 2010-12-13  Eric Blake  <eblake@redhat.com>
8719
8720         cloexec, fcntl: relax license
8721         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8722         consent from all contributors.
8723         * modules/fcntl (License): Likewise.
8724
8725 2010-12-10  Bruno Haible  <bruno@clisp.org>
8726
8727         Tests for module 'pipe-posix'.
8728         * modules/pipe-posix-tests: New file.
8729         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8730
8731 2010-12-10  Bruno Haible  <bruno@clisp.org>
8732
8733         pipe-posix: Make it work in C++ mode.
8734         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8735         (pipe): Use common idiom, not a macro definition.
8736         * lib/pipe.c: New file.
8737         * m4/pipe.m4: New file.
8738         * modules/pipe-posix (Description): Enhance.
8739         (Files): Add lib/pipe.c, m4/pipe.m4.
8740         (configure.ac): Invoke gl_FUNC_PIPE.
8741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8742         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8743         * tests/test-unistd-c++.cc: Check the signature of pipe.
8744
8745 2010-12-10  Bruno Haible  <bruno@clisp.org>
8746
8747         Rename module 'pipe' to 'spawn-pipe'.
8748         * modules/spawn-pipe: New file, renamed from modules/pipe.
8749         (Files, configure.ac, Makefile.am): Update.
8750         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8751         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8752         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8753         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8754         "spawn-pipe.h" instead of "pipe.h".
8755         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8756         to gl_SPAWN_PIPE.
8757         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8758         (Files, Makefile.am): Update.
8759         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8760         Update.
8761         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8762         Include "spawn-pipe.h" instead of "pipe.h".
8763         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8764         * lib/javacomp.c: Likewise.
8765         * lib/javaversion.c: Likewise.
8766         * lib/pipe-filter-gi.c: Likewise.
8767         * lib/pipe-filter-ii.c: Likewise.
8768         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8769         * modules/javacomp (Depends-on): Likewise.
8770         * modules/javaversion (Depends-on): Likewise.
8771         * modules/pipe-filter-gi (Depends-on): Likewise.
8772         * modules/pipe-filter-ii (Depends-on): Likewise.
8773         * MODULES.html.sh (Executing programs): Update.
8774         * NEWS: Mention the change.
8775
8776 2010-12-10  Eric Blake  <eblake@redhat.com>
8777
8778         pipe-posix: new module
8779         * modules/pipe-posix: New file.
8780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8781         (gl_UNISTD_H): Check for declaration.
8782         * modules/unistd (Makefile.am): Substitute it.
8783         * lib/unistd.in.h (pipe): Provide it for mingw.
8784         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8785         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8786
8787 2010-12-07  Bruno Haible  <bruno@clisp.org>
8788
8789         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8790         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8791         u8_strcmp_gnu.
8792         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8793
8794 2010-12-06  Bruno Haible  <bruno@clisp.org>
8795
8796         Update internal documentation.
8797         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8798
8799 2010-12-04  Bruno Haible  <bruno@clisp.org>
8800
8801         Put more information about failed tests into the test return codes.
8802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8803         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8804         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8806         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8808         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8809         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8810         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8812         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8813         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8814         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8815         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8816         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8817         returns a bit mask.
8818         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8819         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8820         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8821         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8822         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8823         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8824         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8825         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8826         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8827         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8828         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8829         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8830         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8831         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8832         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8833         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8834         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8835         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8836         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8837         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8838         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8839         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8840         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8841         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8842         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8843         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8844         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8845         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8846         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8847         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8848         gl_PRINTF_PRECISION): Likewise.
8849         * m4/regex.m4 (gl_REGEX): Likewise.
8850         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8851         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8852         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8853         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8854         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8856         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8857         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8858         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8859         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8860         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8861         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8862         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8863         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8864         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8865         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8866         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8867         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8869         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8870         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8871         enumerated value.
8872         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8873
8874 2010-12-04  Bruno Haible  <bruno@clisp.org>
8875
8876         Update for Solaris 11 2010-11.
8877         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8878         Express, released in November 2010.
8879
8880 2010-12-04  Bruno Haible  <bruno@clisp.org>
8881
8882         nproc: Relax license.
8883         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8884         and Paul Eggert.
8885         Requested by Ludovic Courtès <ludo@gnu.org>.
8886
8887 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8888
8889         utimecmp: fine-grained src to nearby coarse-grained dest
8890
8891         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8892         and the source is on a file system with higher-resolution time
8893         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8894         not work, and the time stamps are close together, the algorithm to
8895         determine the exact resolution from the read-back mtime was buggy:
8896         it had a "!=" where it should have had an "==".  This bug has been
8897         in the code ever since it was introduced to gnulib.
8898         Problem reported by Dan Jacobson in
8899         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8900
8901 2010-11-30  Bruno Haible  <bruno@clisp.org>
8902
8903         strerror_r-posix: Fix autoconf test.
8904         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8905
8906 2010-11-28  Bruno Haible  <bruno@clisp.org>
8907             Paul Eggert  <eggert@cs.ucla.edu>
8908
8909         Tests for module 'getdomainname'.
8910         * modules/getdomainname-tests: New file.
8911         * tests/test-getdomainname.c: New file, based on
8912         tests/test-gethostname.c.
8913
8914 2010-11-28  Bruno Haible  <bruno@clisp.org>
8915             Paul Eggert  <eggert@cs.ucla.edu>
8916
8917         getdomainname: Use the system function when possible.
8918         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8919         (getdomainname): Replace if needed. Provide the declaration if it is
8920         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8921         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8922         (getdomainname): When the system has getdomainname, call the system
8923         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8924         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8925         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8926         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8927         the function if its second argument is of type 'int' or if it is found
8928         in libnsl.
8929         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8930         <sys/systeminfo.h> and sysinfo().
8931         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8933         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8934         HAVE_GETDOMAINNAME.
8935         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8936         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8937         * doc/glibc-functions/getdomainname.texi: Document the problems with
8938         the getdomainname declaration.
8939
8940 2010-11-28  Bruno Haible  <bruno@clisp.org>
8941
8942         sys_socket: Ensure ss_family field on AIX.
8943         * lib/sys_socket.in.h (ss_family): New macro definition.
8944         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8945         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8946         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8947         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8948         * modules/sys_socket (Makefile.am): Substitute
8949         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8950         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8951
8952 2010-11-27  Bruno Haible  <bruno@clisp.org>
8953
8954         readline: Improve configure output.
8955         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8956         "checking for readline..." result understandable.
8957
8958 2010-11-27  Bruno Haible  <bruno@clisp.org>
8959
8960         *printf-posix: Detect a bug on Solaris 10/x86.
8961         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8962         for floating-point output.
8963         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8964         directive.
8965         * tests/test-snprintf-posix.h (test_function): Likewise.
8966         * tests/test-sprintf-posix.h (test_function): Likewise.
8967         * tests/test-vasprintf-posix.c (test_function): Likewise.
8968         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8969         * doc/posix-functions/printf.texi: Likewise.
8970         * doc/posix-functions/snprintf.texi: Likewise.
8971         * doc/posix-functions/sprintf.texi: Likewise.
8972         * doc/posix-functions/vfprintf.texi: Likewise.
8973         * doc/posix-functions/vprintf.texi: Likewise.
8974         * doc/posix-functions/vsnprintf.texi: Likewise.
8975         * doc/posix-functions/vsprintf.texi: Likewise.
8976         * doc/glibc-functions/obstack_printf.texi: Likewise.
8977         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8978
8979 2010-11-27  Bruno Haible  <bruno@clisp.org>
8980
8981         Fix link error when module libunistring-optional is in use.
8982         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8983         * modules/striconveha-tests (Makefile.am): Likewise.
8984
8985 2010-11-27  Bruno Haible  <bruno@clisp.org>
8986
8987         regex: Mention link dependencies.
8988         * modules/regex (Link): New section.
8989         * modules/rpmatch (Link): Likewise.
8990         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8991
8992 2010-11-27  Bruno Haible  <bruno@clisp.org>
8993
8994         ftoastr: Fix compilation error on Solaris.
8995         * lib/ftoastr.c: Include <config.h>.
8996
8997 2010-11-27  Bruno Haible  <bruno@clisp.org>
8998
8999         getloadavg: Update documentation.
9000         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9001
9002 2010-11-27  Bruno Haible  <bruno@clisp.org>
9003
9004         sys_socket: Fix test whether the functions are declared.
9005         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9006         not <sys/select.h>.
9007
9008 2010-11-27  Bruno Haible  <bruno@clisp.org>
9009
9010         getpass: Make sure to get system declaration on some platforms.
9011         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9012         gl_USE_SYSTEM_EXTENSIONS.
9013         * modules/getpass (Depends-on): Add extensions.
9014
9015 2010-11-26  Bruno Haible  <bruno@clisp.org>
9016
9017         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9018         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9019         'iconv' module is present.
9020         (ICONV_CONST): New macro.
9021         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9022         ICONV_CONST.
9023         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9024         set ICONV_CONST.
9025         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9026         here.
9027         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9028         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9029         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9030         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9031         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9032         present.
9033
9034 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9035
9036         ftoastr: comment fix
9037         * lib/ftoastr.c: "little" -> "little or no" in comment
9038
9039 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9040
9041         stdint: port to GCC 4.3 + OSX + Octave
9042         On this platform, stdint.h is buggy and defines int64_t to long
9043         long int.  The replacement defined it to long int, causing
9044         problems with C++ style name mangling.  Instead, trust the system
9045         definition if INT64_MAX is defined, and likewise for the unsigned
9046         variant.   Problem reported by Jarno Rajahalme in
9047         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9048         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9049         and don't mess with int64_t and INT64_MAX in this case.
9050         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9051
9052 2010-11-24  Bruno Haible  <bruno@clisp.org>
9053
9054         doc: Corrections regarding MacOS X 10.4 and 10.5.
9055         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9056         MacOS X.
9057         Reported by Simon Josefsson.
9058
9059 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9060
9061         Uninstall ".bin" files installed by relocwrapper.
9062         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9063         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9064         unless it is already there.
9065
9066 2010-11-21  Bruno Haible  <bruno@clisp.org>
9067
9068         Update for NetBSD 5.0.
9069         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9070         NetBSD; the test fails on NetBSD 5.0.
9071         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9072         about NetBSD.
9073
9074 2010-11-21  Bruno Haible  <bruno@clisp.org>
9075
9076         Update for HP-UX 11.23 and HP-UX 11.31.
9077         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9078         HP-UX.
9079
9080 2010-11-21  Bruno Haible  <bruno@clisp.org>
9081
9082         Update for MacOS X 10.5.
9083         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9084         MacOS X; the test fails on MacOS X 10.5.8.
9085         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9086         about MacOS X.
9087
9088 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9089
9090         bootstrap: add bootstrap_sync option.
9091         See discussion at
9092         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9093         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9094         * build-aux/bootstrap: Accept --bootstrap-sync to update
9095         bootstrap if it is not identical to the local gnulib's
9096         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9097         enable this by default.  Accept --no-bootstrap-sync to disable
9098         it.
9099
9100 2010-11-20  Bruno Haible  <bruno@clisp.org>
9101
9102         Ensure that <features.h> is included before __GLIBC__ is tested.
9103         * lib/printf-parse.h: Include <features.h>.
9104         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9105         Reported by Mike Frysinger <vapier@gentoo.org>.
9106
9107         Ensure that <features.h> is included before __GLIBC__ is tested.
9108         * lib/wchar.in.h: Include <features.h>.
9109         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9110         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9111         Reported by Mike Frysinger <vapier@gentoo.org>.
9112
9113         Ensure that <features.h> is included before __GLIBC__ is tested.
9114         * lib/arpa_inet.in.h: Include <features.h>.
9115         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9116         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9117         Reported by Mike Frysinger <vapier@gentoo.org>.
9118
9119         Ensure that <features.h> is included before __GLIBC__ is tested.
9120         * build-aux/link-warning.h: Include <features.h>.
9121         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9122         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9123         Reported by Mike Frysinger <vapier@gentoo.org>.
9124
9125         Ensure that <features.h> is included before __GLIBC__ is tested.
9126         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9127         Reported by Mike Frysinger <vapier@gentoo.org>.
9128
9129 2010-11-20  Bruno Haible  <bruno@clisp.org>
9130
9131         memmem: Fix autoconf test.
9132         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9133
9134 2010-11-20  Bruno Haible  <bruno@clisp.org>
9135
9136         Port to uClibc.
9137         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9138         * lib/fcntl.in.h: Likewise.
9139         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9140         * lib/mbrtowc.c (mbrtowc): Likewise.
9141         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9142         * lib/strerror_r.c: Likewise.
9143         * lib/unistr/u8-strnlen.c: Likewise.
9144         * lib/vasnprintf.c (decimal_point_char): Likewise.
9145         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9146         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9147         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9148         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9149         * tests/test-sigaction.c (handler, main): Likewise.
9150         * lib/freading.h: Treat uClibc like a non-glibc platform.
9151         * lib/freading.c: Likewise.
9152         * lib/gettext.h: Likewise.
9153         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9154         Likewise.
9155         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9156         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9157         * lib/propername.c (proper_name_utf8): Likewise.
9158         * lib/spawn.in.h: Likewise.
9159         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9160         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9161         mem_cd_iconveh_internal): Likewise.
9162         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9163         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9164         strstr, strcasestr): Likewise.
9165         * lib/unicodeio.c (unicode_to_mb): Likewise.
9166         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9167         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9168         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9169         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9170         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9171         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9172         * lib/unistr/u8-stpncpy.c: Likewise.
9173         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9174         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9175         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9176         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9177         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9178         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9179         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9182         Likewise.
9183         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9184         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9185         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9188         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9189         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9190         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9191         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9192         * tests/test-striconveha.c (main): Likewise.
9193         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9194         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9195         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9196         * doc/posix-functions/getline.texi: Likewise.
9197         Reported by Mike Frysinger <vapier@gentoo.org>.
9198
9199 2010-11-20  Bruno Haible  <bruno@clisp.org>
9200
9201         nproc: Fix condition.
9202         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9203         HAVE_PTHREAD_AFFINITY_NP.
9204
9205 2010-11-20  Bruno Haible  <bruno@clisp.org>
9206
9207         Fix a comment.
9208         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9209
9210 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9211
9212         ftoastr: don't assume snprintf
9213         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9214         Implement a subset of snprintf here, by using sprintf safely.
9215         * modules/ftoastr (Depends-on): Remove snprintf.
9216
9217 2010-11-19  Jim Meyering  <meyering@redhat.com>
9218
9219         test-rename.h: fix compilation failure
9220         * tests/test-rename.h (test_rename): Add omitted "}".
9221
9222 2010-11-17  Jim Meyering  <meyering@redhat.com>
9223
9224         maint.mk: add a URL discussing the no-@acronym policy
9225         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9226
9227 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9228
9229         ftoastr: depend on snprintf, improve comments
9230         * lib/ftoastr.c: Also mention Loitsch's draft.
9231         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9232         needed in the current implementation, but it might simplify
9233         speeding up the code later.
9234         * modules/ftoastr: Depend on snprintf; this improves portability.
9235         Suggested by Bruno Haible in the same email.
9236
9237         ftoastr: port to hosts lacking strtof and strtold
9238         Problem reported by Bruno Haible in
9239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9240         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9241         environment and strtold (and presumably strtof) are not available.
9242         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9243         (configure.ac): Require gl_C99_STRTOLD.
9244
9245 2010-11-18  Bruno Haible  <bruno@clisp.org>
9246
9247         c-strtold: Avoid link error on AIX 7.
9248         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9249         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9250         (gl_C_STRTOLD): Test whether strtold_l exists.
9251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9252
9253 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9254
9255         intprops: new macro INT_BITS_STRLEN_BOUND
9256         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9257         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9258         not exposed.  Also, it uses a slightly tighter bound than before;
9259         though this makes no practical difference, we might as well be as
9260         tight as we easily can.
9261
9262         ftoastr: new module, for lossless conversion of floats to short strings
9263         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9264         * modules/ftoastr: New files.
9265
9266 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9267
9268         bootstrap: port to Solaris sed
9269         * build-aux/bootstrap (get_version): Port to Solaris sed.
9270         See Ralf Wildenhues's note in
9271         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9272
9273 2010-11-14  Jim Meyering  <meyering@redhat.com>
9274
9275         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9276         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9277         and move definition closer to sole use.
9278
9279 2010-11-13  Jim Meyering  <meyering@redhat.com>
9280
9281         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9282         Now we require at least autoconf-2.59, which means the work-around
9283         is no longer needed.
9284         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9285         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9286         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9287         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9288         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9289
9290 2010-11-13  Bruno Haible  <bruno@clisp.org>
9291
9292         rename, renameat: Avoid test failures at NFS mounted locations.
9293         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9294         functions.
9295         (test_rename): Use assert_nonexistent.
9296         * tests/test-rename.c: Include <dirent.h>.
9297         * tests/test-renameat.c: Likewise.
9298         Reported by Gary V. Vaughan <gary@gnu.org>.
9299
9300         rename, renameat: Document Linux bug with NFS
9301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9302         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9303         * doc/posix-functions/renameat.texi: Likewise.
9304         Suggested by Eric Blake.
9305
9306 2010-11-13  Bruno Haible  <bruno@clisp.org>
9307
9308         rename test: Add comments.
9309         * tests/test-rename.h (test_rename): Add structure and comments.
9310
9311 2010-11-13  Eric Blake  <eblake@redhat.com>
9312
9313         maintainer-makefile: cover a few more files
9314         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9315         scripts generated within C files, for libvirt.
9316
9317 2010-11-13  Bruno Haible  <bruno@clisp.org>
9318
9319         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9320         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9321         character, return the number of bytes that belong together, not always
9322         1.
9323         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9324         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9325         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9326         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9327         number of bytes of an invalid character.
9328         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9329         (main): Invoke it.
9330         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9331         results.
9332         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9333         malformed byte sequences.
9334         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9335         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9336         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9337         Reported by Ben Pfaff and Paolo Bonzini.
9338
9339 2010-11-13  Bruno Haible  <bruno@clisp.org>
9340
9341         openat: Work around glibc bug with fchownat() and empty file names.
9342         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9343         (gl_FUNC_FCHOWNAT): Invoke it.
9344         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9345         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9346         Reported by Gary V. Vaughan <gary@gnu.org>.
9347
9348 2010-11-13  Bruno Haible  <bruno@clisp.org>
9349
9350         openat: Ensure autoconf macro ordering.
9351         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9352         gl_USE_SYSTEM_EXTENSIONS.
9353         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9354
9355 2010-11-13  Bruno Haible  <bruno@clisp.org>
9356
9357         Update comments.
9358         * lib/unistr/u8-check.c: Update file name in comments.
9359         * lib/unistr/u8-mblen.c: Likewise.
9360         * lib/unistr/u8-prev.c: Likewise.
9361         * lib/unistr/u8-strmblen.c: Likewise.
9362         * lib/unistr/u8-strmbtouc.c: Likewise.
9363
9364 2010-11-13  Jim Meyering  <meyering@redhat.com>
9365
9366         tests: avoid test failure on Solaris 10 due to lack of PATH export
9367         * tests/test-update-copyright.sh: Don't forget to export PATH.
9368
9369         init.sh: ensure that IFS is defined, just in case...
9370         * tests/init.sh (setup_): Ensure that IFS is defined,
9371         so that saving and restoring it works as expected.  This
9372         appears to be useful at least for an old version of dash
9373         from a long time ago (RH 6).  See here for details:
9374         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9375
9376         maint.mk: tighten "test a == b" check
9377         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9378         test to files that contain something like #!/bin/sh.
9379         Without this, coreutils would get two false positives in
9380         the comments of C source files.
9381
9382 2010-11-12  Eric Blake  <eblake@redhat.com>
9383
9384         bootstrap: fix typo in previous attempt
9385         * build-aux/bootstrap (buildreq): Correct the grouping.
9386         Reported by Paul Eggert.
9387
9388         maintainer-makefile: prohibit test x == x
9389         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9390         Based on a report by Matthias Bolte.
9391
9392         bootstrap: allow FreeBSD gzip
9393         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9394         which has no '.' and goes to stderr.
9395         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9396         Reported by Matthias Bolte.
9397
9398         maintainer-makefile: check for i18n setup
9399         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9400         will likely work.
9401
9402 2010-11-12  Bruno Haible  <bruno@clisp.org>
9403
9404         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9405         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9406         * lib/nanosleep.c (nanosleep): Likewise.
9407
9408 2010-11-11  Bruno Haible  <bruno@clisp.org>
9409
9410         fcntl-h: Fix for use of C++ on glibc systems.
9411         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9412         also on glibc systems in C++ mode.
9413         Reported by Gary V. Vaughan <gary@gnu.org>.
9414
9415 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9416
9417         mknod: avoid false failure with dash
9418         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9419
9420 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9421
9422         unlink: Fix "is it should" typo in diagnostic.
9423         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9424         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9425
9426 2010-11-11  Bruno Haible  <bruno@clisp.org>
9427
9428         Tests for module 'strerror_r-posix'.
9429         * modules/strerror_r-posix-tests: New file.
9430         * tests/test-strerror_r.c: New file.
9431         * tests/test-string-c++.cc: Check the signature of strerror_r.
9432
9433         New module 'strerror_r-posix'.
9434         * lib/string.in.h (strerror_r): New declaration.
9435         * lib/strerror_r.c: New file.
9436         * m4/strerror_r.m4: New file.
9437         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9438         of strerror_r.
9439         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9440         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9441         * modules/strerror_r-posix: New file.
9442         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9443         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9444         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9445         portability problems.
9446
9447 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9448
9449         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9450         line is also considered for output. Quoted function name in shell
9451         command, so temporary files for functions like MyClass::operator()
9452         are removed correctly without errors.
9453
9454 2010-11-09  Bruno Haible  <bruno@clisp.org>
9455
9456         * doc/posix-functions/strerror.texi: List more failing platforms.
9457
9458         * doc/posix-functions/strerror.texi: Add a comment.
9459
9460 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9461
9462         fdopendir: fix bug on MacOS X when low on file descriptors
9463
9464         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9465         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9466         All callers changed.
9467         (fdopendir): Invoke save_cwd at the top level, not after using
9468         multiple dup() calls to use up file descriptors.  Then retry
9469         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9470         less than the maximum number of open file descriptors, because
9471         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9472         on Mac OS X 10.6.4 for tar 1.24
9473         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9474         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9475         and for tar 1.25
9476         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9477
9478 2010-11-07  Bruno Haible  <bruno@clisp.org>
9479
9480         vasnprintf: Support I flag on glibc systems.
9481         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9482         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9483         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9484         snprintf function.
9485         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9486         glibc systems.
9487         * tests/test-vasnprintf-posix3.c: New file.
9488         * modules/vasnprintf-posix-tests (Files): Add it.
9489         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9490
9491 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9492
9493         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9494         * MODULES.html.sh: For compiler warnings, use name
9495         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9496
9497 2010-11-05  Eric Blake  <eblake@redhat.com>
9498
9499         ceil, floor: avoid spurious failure with icc
9500         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9501         [denormals-as-zero] when optimizing without -mieee-fp option.
9502         * tests/test-floorf2.c (floorf_reference): Likewise.
9503         * tests/test-ceilf1.c (dummy): New function.
9504         (main): Use it to outsmart icc's optimization.
9505         * tests/test-floorf1.c (dummy, main): Likewise.
9506
9507         tests: require working signbit
9508         * modules/ceilf-tests (Depends-on): Add signbit.
9509         * modules/ceill-tests (Depends-on): Likewise.
9510         * modules/floorf-tests (Depends-on): Likewise.
9511         * modules/floorl-tests (Depends-on): Likewise.
9512         * modules/round-tests (Depends-on): Likewise.
9513         * modules/roundf-tests (Depends-on): Likewise.
9514         * modules/roundl-tests (Depends-on): Likewise.
9515         * modules/trunc-tests (Depends-on): Likewise.
9516         * modules/truncf-tests (Depends-on): Likewise.
9517         * modules/truncl-tests (Depends-on): Likewise.
9518
9519         strtod: work around icc bug
9520         * lib/strtod.c (minus_zero): Define to working value.
9521         (strtod): Use it to avoid icc bug.
9522
9523         copysign: enhance tests
9524         * modules/copysign-tests (Files): Add minus-zero.h.
9525         * tests/test-copysign.c (main): Also test zeros.
9526
9527 2010-11-04  Eric Blake  <eblake@redhat.com>
9528
9529         ceil, floor, round, trunc: enhance tests of -0
9530         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9531         * tests/test-ceill.c (main): Likewise.
9532         * tests/test-floorf1.c (main): Likewise.
9533         * tests/test-floorl.c (main): Likewise.
9534         * tests/test-round1.c (main): Likewise.
9535         * tests/test-roundf1.c (main): Likewise.
9536         * tests/test-roundl.c (main): Likewise.
9537         * tests/test-trunc1.c (main): Likewise.
9538         * tests/test-truncf1.c (main): Likewise.
9539         * tests/test-truncl.c (main): Likewise.
9540
9541 2010-11-04  Eric Blake  <eblake@redhat.com>
9542
9543         frexp, tests: work around ICC bug with -zero
9544         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9545         works with more compilers.
9546         * tests/minus-zero.h: New file.
9547         * modules/ceilf-tests (Files): Include it.
9548         * modules/ceill-tests (Files): Likewise.
9549         * modules/floorf-tests (Files): Likewise.
9550         * modules/floorl-tests (Files): Likewise.
9551         * modules/frexp-nolibm-tests (Files): Likewise.
9552         * modules/frexp-tests (Files): Likewise.
9553         * modules/frexpl-nolibm-tests (Files): Likewise.
9554         * modules/frexpl-tests (Files): Likewise.
9555         * modules/isnan-tests (Files): Likewise.
9556         * modules/isnand-nolibm-tests (Files): Likewise.
9557         * modules/isnand-tests (Files): Likewise.
9558         * modules/isnanf-nolibm-tests (Files): Likewise.
9559         * modules/isnanf-tests (Files): Likewise.
9560         * modules/isnanl-nolibm-tests (Files): Likewise.
9561         * modules/isnanl-tests (Files): Likewise.
9562         * modules/round-tests (Files): Likewise.
9563         * modules/roundf-tests (Files): Likewise.
9564         * modules/roundl-tests (Files): Likewise.
9565         * modules/ldexpl-tests (Files): Likewise.
9566         * modules/signbit-tests (Files): Likewise.
9567         * modules/snprintf-posix-tests (Files): Likewise.
9568         * modules/sprintf-posix-tests (Files): Likewise.
9569         * modules/strtod-tests (Files): Likewise.
9570         * modules/trunc-tests (Files): Likewise.
9571         * modules/truncf-tests (Files): Likewise.
9572         * modules/truncl-tests (Files): Likewise.
9573         * modules/vsnprintf-posix-tests (Files): Likewise.
9574         * modules/vsprintf-posix-tests (Files): Likewise.
9575         * modules/vasnprintf-posix-tests (Files): Likewise.
9576         * modules/vasprintf-posix-tests (Files): Likewise.
9577         * tests/test-ceilf1.c (main): Use it.
9578         * tests/test-ceill.c (main): Likewise.
9579         * tests/test-floorf1.c (main): Likewise.
9580         * tests/test-floorl.c (main): Likewise.
9581         * tests/test-frexp.c (main): Likewise.
9582         * tests/test-frexpl.c (main): Likewise.
9583         * tests/test-isnan.c (main): Likewise.
9584         * tests/test-isnand.h (main): Likewise.
9585         * tests/test-isnanf.h (main): Likewise.
9586         * tests/test-isnanl.h (main): Likewise.
9587         * tests/test-ldexpl.c (main): Likewise.
9588         * tests/test-round.c (main): Likewise.
9589         * tests/test-roundf.c (main): Likewise.
9590         * tests/test-roundl.c (main): Likewise.
9591         * tests/test-signbit.c (test_signbitf, test_signbitd)
9592         (test_signbitl): Likewise.
9593         * tests/test-snprintf-posix.h (test_function): Likewise.
9594         * tests/test-sprintf-posix.h (test_function): Likewise.
9595         * tests/test-strtod.c (main): Likewise.
9596         * tests/test-trunc1.c (main): Likewise.
9597         * tests/test-truncf1.c (main): Likewise.
9598         * tests/test-truncl.c (main): Likewise.
9599
9600         isnanl: work around icc bug
9601         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9602
9603 2010-11-03  Eric Blake  <eblake@redhat.com>
9604
9605         tests: fix compiler warnings
9606         * tests/test-getopt.h (test_getopt): Fix condition.
9607         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9608         * tests/test-pipe2.c (main): Likewise.
9609         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9610
9611         utimens: fix broken m4 test
9612         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9613
9614 2010-10-28  Bruno Haible  <bruno@clisp.org>
9615
9616         posix_spawn*, getdtablesize: Relax license.
9617         * modules/posix_spawn (License): Change to LGPLv2+.
9618         * modules/posix_spawnp (License): Likewise.
9619         * modules/posix_spawn-internal (License): Likewise.
9620         * modules/posix_spawnattr_init (License): Likewise.
9621         * modules/posix_spawnattr_getflags (License): Likewise.
9622         * modules/posix_spawnattr_setflags (License): Likewise.
9623         * modules/posix_spawnattr_getpgroup (License): Likewise.
9624         * modules/posix_spawnattr_setpgroup (License): Likewise.
9625         * modules/posix_spawnattr_getschedparam (License): Likewise.
9626         * modules/posix_spawnattr_setschedparam (License): Likewise.
9627         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9628         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9629         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9630         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9631         * modules/posix_spawnattr_getsigmask (License): Likewise.
9632         * modules/posix_spawnattr_setsigmask (License): Likewise.
9633         * modules/posix_spawnattr_destroy (License): Likewise.
9634         * modules/posix_spawn_file_actions_init (License): Likewise.
9635         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9636         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9637         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9638         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9639         * modules/getdtablesize (License): Likewise.
9640         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9641
9642 2010-10-26  Bruno Haible  <bruno@clisp.org>
9643
9644         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9645         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9646         Cygwin and mingw.
9647         Suggested by Eric Blake.
9648
9649 2010-10-26  Bruno Haible  <bruno@clisp.org>
9650
9651         stdio: Work around compilation error due to renameat() on Solaris 10.
9652         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9653         * lib/renameat.c: Don't include <unistd.h> here.
9654         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9655         Reported by Paul Eggert and Eric Blake.
9656
9657 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9658
9659         renameat: port to Solaris 10, which declares renameat in unistd.h
9660
9661         * lib/renameat.c: Include unistd.h before stdio.h, because
9662         Solaris 10 declares renameat in unistd.h.  Problem encountered
9663         when building GNU tar 1.24 on Solaris 10.
9664
9665 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9666
9667         fdopendir: fix C89 compilation
9668         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9669         compilers.
9670
9671 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9672
9673         inttostr: simplify by removing unnecessary redundancy
9674         * lib/anytostr.c: Don't include verify.h.
9675         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9676         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9677         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9678         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9679         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9680         Likewise.
9681         * modules/inttostr (Depends-on): Remove 'verify'.
9682
9683 2010-10-23  Bruno Haible  <bruno@clisp.org>
9684
9685         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9686         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9687         Reported by Eric Blake.
9688
9689 2010-10-23  Bruno Haible  <bruno@clisp.org>
9690
9691         Tests: Fix LOCALE_JA on MirBSD 10.
9692         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9693         to an UTF-8 locale.
9694         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9695         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9696         Reported by Eric Blake.
9697
9698 2010-10-21  Bruno Haible  <bruno@clisp.org>
9699
9700         nl_langinfo test: Avoid test failure on NetBSD 5.
9701         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9702         Reported by Eric Blake.
9703
9704 2010-10-21  Eric Blake  <eblake@redhat.com>
9705
9706         c-stack: work around libsigsegv 2.8 bug
9707         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9708         overflow on at least PowerPC64.
9709
9710 2010-10-17  Bruno Haible  <bruno@clisp.org>
9711
9712         userspec: Drop redundant file.
9713         * modules/userspec (Files): Remove lib/inttostr.h.
9714
9715 2010-10-17  Bruno Haible  <bruno@clisp.org>
9716
9717         nl_langinfo tests: Silence some warnings.
9718         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9719         Reported by Jim Meyering.
9720
9721 2010-10-17  Bruno Haible  <bruno@clisp.org>
9722
9723         Make use of GCC's attribute __alloc_size__.
9724         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9725         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9726         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9727         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9728         __alloc_size__.
9729         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9730         Suggested by Jim Meyering.
9731
9732 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9733
9734         bootstrap: anchor .gitignore entries.
9735         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9736         with...
9737         (insert_vc_ignore): ... this new function, which prepends `/' to
9738         all .gitignore entries before passing them to
9739         insert_sorted_if_absent.
9740
9741 2010-10-16  Bruno Haible  <bruno@clisp.org>
9742
9743         nextafter: Fix configure check.
9744         * modules/nextafter (configure.ac): Correct expected prototype.
9745
9746 2010-10-16  Bruno Haible  <bruno@clisp.org>
9747
9748         termios: Update documentation.
9749         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9750
9751 2010-10-16  Bruno Haible  <bruno@clisp.org>
9752
9753         tests: Make them compile with TinyCC.
9754         * tests/test-strstr.c (main): Remove parentheses around array
9755         initializer.
9756
9757 2010-10-15  Eric Blake  <eblake@redhat.com>
9758
9759         ignore-value: make header idempotent
9760         * lib/ignore-value.h: Add double-inclusion guards.
9761         Reported by Stefan Berger.
9762
9763 2010-10-15  Jim Meyering  <meyering@redhat.com>
9764
9765         GNUmakefile: handle "stable" target, not "major"
9766         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9767         lists in maint.mk and announce-gen.  Without this, "make stable"
9768         would fail to ensure that $(VERSION) is up to date.
9769
9770 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9771
9772         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9773         & co.
9774
9775 2010-10-14  Bruno Haible  <bruno@clisp.org>
9776
9777         vasnprintf: Don't set errno to 0.
9778         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9779         block that sets it to 0.
9780         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9781
9782 2010-10-14  Bruno Haible  <bruno@clisp.org>
9783
9784         socketlib: Fix.
9785         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9786         gl_PREREQ_SYS_H_WINSOCK2.
9787         Reported by Ian Beckwith <ianb@erislabs.net>.
9788
9789 2010-10-13  Jim Meyering  <meyering@redhat.com>
9790
9791         test-select-stdin.c: avoid warn_unused_result warnings
9792         * tests/test-select-stdin.c: Include "macros.h".
9793         ASSERT that read and fflush succeed.
9794
9795 2010-10-13  Jim Meyering  <meyering@redhat.com>
9796
9797         git-version-gen: do require git-VC'd files in cwd
9798         * build-aux/git-version-gen: Reject a git version string
9799         if there are no commits associated with the current directory.
9800         This avoids an unlikely false-positive (unrelated dir whose parent
9801         repository also contains a tag matching v*), as pointed out
9802         by Giuseppe Scrivano in
9803         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9804
9805 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9806
9807         argv-iter: omit nonconforming declaration
9808         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9809         enum arg_iter_err declaration, which doesn't conform to C99.
9810         Solaris 10 cc warns about this.
9811
9812 2010-10-13  Eric Blake  <eblake@redhat.com>
9813
9814         termios: fix compilation on mingw
9815         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9816         (gl_TERMIOS_H): Adjust it on mingw.
9817         * modules/termios (Makefile.am): Substitute new key.
9818         * lib/termios.in.h (includes): Make include_next conditional.
9819         * doc/posix-headers/termios.texi (termios.h): Update
9820         documentation.
9821         Reported by Daniel P. Berrange.
9822
9823 2010-10-13  Jim Meyering  <meyering@redhat.com>
9824
9825         git-version-gen: don't require that .git/ be in the current dir
9826         * build-aux/git-version-gen: Adjust this script so that it works
9827         when run from any working directory beneath the top-level .git/-
9828         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9829         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9830
9831         test-select: avoid warn_unused_result warnings
9832         * tests/test-select.c: Include "macros.h".
9833         ASSERT that each call to read, write, and pipe succeeds.
9834         While not technically required, also check each "close".
9835         * modules/select-tests (Files): Add tests/macros.h.
9836
9837         test-symlinkat: remove declaration of unused local
9838         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9839
9840         test-inttostr: avoid shadowing warnings
9841         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9842         and use malloc rather than the stack for the same reason as
9843         mentioned in the comment justifying the other allocation.
9844
9845 2010-10-11  Bruno Haible  <bruno@clisp.org>
9846
9847         stdlib: Allow multiple gnulib generated replacements to coexist.
9848         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9849         Reported by Sam Steingold <sds@gnu.org>.
9850
9851 2010-10-11  Jim Meyering  <meyering@redhat.com>
9852
9853         fix a documentation typo
9854         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9855
9856 2010-10-11  Eric Blake  <eblake@redhat.com>
9857
9858         futimens: work around Solaris 11 bug
9859         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9860         * tests/test-futimens.h (test_futimens): Enhance, rather than
9861         weaken test.
9862         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9863
9864 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9865
9866         Indentation.
9867         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9868         higher-level operators more to the left.
9869
9870 2010-10-11  Jim Meyering  <meyering@redhat.com>
9871
9872         test-futimens: avoid unwarranted test failure on Solaris 5.11
9873         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9874         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9875         because it tries to dereference the NULL name argument.
9876
9877 2010-10-11  Bruno Haible  <bruno@clisp.org>
9878
9879         Indentation.
9880         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9881         indentation.
9882
9883 2010-10-11  Jim Meyering  <meyering@redhat.com>
9884
9885         spawn.in.h: make indentation consistent with parentheses
9886         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9887         Make indentation consistent with parentheses.
9888
9889 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9890
9891         Fix mismatched parens in previous commit
9892         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9893         parens.
9894
9895 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9896
9897         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9898
9899         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9900         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9901         * lib/malloca.c: Include "verify.h".
9902         (verify1): Remove, replacing with a verify call.
9903         * lib/relocwrapper.c (verify1): Likewise.
9904         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9905         Likewise.
9906         * modules/malloca (Depends-on): Add 'verify'.
9907         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9908         * modules/vasnprintf (Depends-on): Add 'verify'.
9909         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9910         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9911         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9912         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9913         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9914         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9915         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9916
9917         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9918
9919         Formerly the style was sometimes 2*X - 1, because the C standard
9920         was wrongly thought to disallow ?: in integral constant expressions.
9921         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9922         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9923         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9924         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9925         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9926         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9927         verify that time_t cannot be floating.
9928
9929 2010-10-08  Eric Blake  <eblake@redhat.com>
9930
9931         time: enforce recent POSIX ruling that time_t is integral
9932         * lib/time.in.h (__time_t_must_be_integral): Detect any
9933         problematic systems, allowing the rest of gnulib to assume POSIX.
9934
9935 2010-10-08  Jim Meyering  <meyering@redhat.com>
9936
9937         fdopendir: fix a bug on systems lacking openat and /proc support
9938         OpenBSD 4.7 is one such system.  The most noticeable effect was
9939         failure of any application making nontrivial use of fts: rm, du,
9940         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9941           ./rm: traversal failed: `a': Bad file descriptor
9942         Debugging that, you see that even though FD 6 was closed just
9943         prior to the opendir call in fd_clone_opendir, its resulting
9944         dir->dd_fd was 8, rather than the expected value of 6:
9945
9946         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9947         93                close (fd);
9948         (gdb) n
9949         94                dir = fd_clone_opendir (dupfd);
9950         (gdb) n
9951         95                saved_errno = errno;
9952         (gdb) p dir->dd_fd
9953         $11 = 8
9954
9955         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9956         The problem is that on OpenBSD, fd_clone_opendir has to resort
9957         to using the old-style save/restore CWD mechanism, due to its
9958         lack of openat/proc support, and *that* would steal the FD (6)
9959         that opendir was supposed to use.
9960
9961         The fix is to squirrel away the desired FD so that save_cwd uses a
9962         different one, and then free the dest FD right before calling opendir.
9963         That guarantees opendir will use the required file descriptor.
9964
9965         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9966
9967 2010-10-08  Bruno Haible  <bruno@clisp.org>
9968
9969         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9970         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9971
9972 2010-10-08  Bruno Haible  <bruno@clisp.org>
9973
9974         nanosleep: Make replacement POSIX compliant.
9975         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9976         is out of range.
9977         Reported by Jim Meyering.
9978
9979 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9980
9981         bootstrap: add hook for altering gnulib.mk, for Bison
9982         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9983         the Bison bootstrapping process can rewrite file names and variables
9984         in this file before later parts of 'bootstrap' use the file.
9985         Bison wants to include lib/gnulib.mk from the top-level makefile,
9986         so it needs the file names in this file to be relative to the top
9987         level, not relative to lib; plus it needs variable names to be
9988         rewritten.
9989         (slurp): Use the new function.
9990
9991         bootstrap: reformat for readability
9992         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9993
9994 2010-10-08  Eric Blake  <eblake@redhat.com>
9995
9996         docs: update cygwin progress
9997         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9998         1.7.7.
9999         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10000         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10001         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10002         * doc/posix-functions/carg.texi (carg): Likewise.
10003         * doc/posix-functions/cargf.texi (cargf): Likewise.
10004         * doc/posix-functions/casin.texi (casin): Likewise.
10005         * doc/posix-functions/casinf.texi (casinf): Likewise.
10006         * doc/posix-functions/casinh.texi (casinh): Likewise.
10007         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10008         * doc/posix-functions/catan.texi (catan): Likewise.
10009         * doc/posix-functions/catanf.texi (catanf): Likewise.
10010         * doc/posix-functions/catanh.texi (catanh): Likewise.
10011         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10012         * doc/posix-functions/ccos.texi (ccos): Likewise.
10013         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10014         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10015         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10016         * doc/posix-functions/cexp.texi (cexp): Likewise.
10017         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10018         * doc/posix-functions/cimag.texi (cimag): Likewise.
10019         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10020         * doc/posix-functions/clog.texi (clog): Likewise.
10021         * doc/posix-functions/clogf.texi (clogf): Likewise.
10022         * doc/posix-functions/conj.texi (conj): Likewise.
10023         * doc/posix-functions/conjf.texi (conjf): Likewise.
10024         * doc/posix-functions/cpow.texi (cpow): Likewise.
10025         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10026         * doc/posix-functions/cproj.texi (cproj): Likewise.
10027         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10028         * doc/posix-functions/creal.texi (creal): Likewise.
10029         * doc/posix-functions/crealf.texi (crealf): Likewise.
10030         * doc/posix-functions/csin.texi (csin): Likewise.
10031         * doc/posix-functions/csinf.texi (csinf): Likewise.
10032         * doc/posix-functions/csinh.texi (csinh): Likewise.
10033         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10034         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10035         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10036         * doc/posix-functions/ctan.texi (ctan): Likewise.
10037         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10038         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10039         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10040         * doc/posix-headers/complex.texi (complex.h): Likewise.
10041
10042 2010-10-07  Jim Meyering  <meyering@redhat.com>
10043
10044         parse-datetime: avoid compilation failure on OpenBSD 4.7
10045         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10046         This works around a compilation failure on OpenBSD 4.7:
10047         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10048
10049 2010-10-07  Eric Blake  <eblake@redhat.com>
10050
10051         docs: update cygwin progress
10052         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10053         1.7.6.
10054         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10055         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10056         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10057         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10058         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10059         Likewise.
10060         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10061         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10062         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10063         Likewise.
10064         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10065         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10066         Likewise.
10067         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10068         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10069         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10070         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10071         Likewise.
10072         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10073         Likewise.
10074         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10075
10076         docs: update parse-datetime history
10077         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10078         documentation of this function's history and alternatives.
10079
10080         cygwin: use more robust version check
10081         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10082         exclude an eventual cygwin 1.9.1.
10083         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10085         (gl_FUNC_STRCASESTR): Likewise.
10086         Reported by Bruno Haible.
10087
10088 2010-10-06  Bruno Haible  <bruno@clisp.org>
10089
10090         string, sys_select: Avoid #including large headers unless necessary.
10091         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10092         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10093         OSF/1, BeOS, Haiku.
10094         Reported by Jim Meyering.
10095
10096 2010-10-05  Eric Blake  <eblake@redhat.com>
10097
10098         memmem, strstr, strcasestr: fix bug with long periodic needle
10099         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10100         periodic needle having false positive.
10101         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10102         and cygwin 1.7.7.
10103         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10105         (gl_FUNC_STRCASESTR): Likewise.
10106         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10107         * tests/test-memmem.c (main): Expose the bug.
10108         * tests/test-strcasestr.c (main): Likewise.
10109         * tests/test-strstr.c (main): Likewise.
10110         * tests/test-c-strcasestr.c (main): Likewise.
10111         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10112         * doc/posix-functions/strstr.texi (strstr): Likewise.
10113         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10114         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10115
10116 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10117
10118         parse-datetime: do some more renaming
10119         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10120         parse_datetime, not get_date.  Mention the renaming.
10121         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10122         in comments.
10123         * m4/bison.m4: Likewise.
10124
10125 2010-10-05  Eric Blake  <eblake@redhat.com>
10126
10127         parse-datetime: better name than get_date
10128         * NEWS: Reword the deprecation notice.
10129         * modules/get_date: Rename to modules/parse-datetime.
10130         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10131         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10132         * lib/get_date.y: Rename to lib/parse-datetime.y.
10133         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10134         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10135         * doc/getdate.texi: Provide fallback wrapper.
10136         * lib/getdate.h: Move guts, and wrap...
10137         * lib/parse-datetime.h: ...new file.
10138         * lib/parse-datetime.y (get_date): Rename...
10139         (parse_datetime): ...to this.
10140         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10141         (gl_PARSE_DATETIME): ...to this.
10142         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10143         documentation.
10144         * modules/getdate (Files): Provide fallback docs and header.
10145         (Notice, Depends-on): Update references.
10146         * tests/test-parse-datetime.c: Likewise.
10147         * DEPENDENCIES: Likewise.
10148         * MODULES.html.sh (Date and time <time.h>): Likewise.
10149         * doc/parse-datetime.texi (Date input formats)
10150         (Authors of parse_datetime): Likewise.
10151         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10152         (Include): Likewise.
10153         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10154         * gnulib-tool: Likewise.
10155         * m4/bison.m4 (gl_BISON): Likewise.
10156         Suggested by Bruno Haible.
10157
10158 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10159
10160         more ports to Solaris tr, which needs [] around ranges
10161         * gnulib-tool: Solaris tr needs [] around ranges.
10162         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10163         * tests/test-pipe-filter-gi1.c (main): Likewise.
10164         * tests/test-pipe-filter-ii1.c (main): Likewise.
10165
10166 2010-10-05  Eric Blake  <eblake@redhat.com>
10167
10168         bootstrap: fix Solaris regression
10169         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10170         around ranges.
10171         Reported by Pádraig Brady.
10172
10173         bootstrap: work with pkg-config
10174         * build-aux/bootstrap (check_versions): Also transliterate - in
10175         prerequisite name.
10176         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10177         prerequisites that were already found, to avoid confusion.
10178         Reported by Justin Clift.
10179
10180         faccessat: remove unused wrappers
10181         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10182         presence of these wrappers dragged in -lgen on Solaris.
10183         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10184
10185 2010-10-05  Jim Meyering  <meyering@redhat.com>
10186
10187         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10188         * Makefile (sc_pragma_columns): New syntax-check rule.
10189
10190 2010-10-04  Bruno Haible  <bruno@clisp.org>
10191
10192         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10193         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10194         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10195         Reported by Bruce Korb and Eric Blake.
10196
10197 2010-10-04  Bruno Haible  <bruno@clisp.org>
10198
10199         threadlib: Make option --with-libpth-prefix work.
10200         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10201         use $LIBPTH, not just -lpth.
10202
10203 2010-10-04  Bruno Haible  <bruno@clisp.org>
10204
10205         Avoid line length limitation from HP NonStop system header files.
10206         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10207         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10208         * lib/ctype.in.h: Likewise.
10209         * lib/dirent.in.h: Likewise.
10210         * lib/errno.in.h: Likewise.
10211         * lib/fcntl.in.h: Likewise.
10212         * lib/float.in.h: Likewise.
10213         * lib/getopt.in.h: Likewise.
10214         * lib/iconv.in.h: Likewise.
10215         * lib/inttypes.in.h: Likewise.
10216         * lib/langinfo.in.h: Likewise.
10217         * lib/locale.in.h: Likewise.
10218         * lib/math.in.h: Likewise.
10219         * lib/netdb.in.h: Likewise.
10220         * lib/netinet_in.in.h: Likewise.
10221         * lib/poll.in.h: Likewise.
10222         * lib/pthread.in.h: Likewise.
10223         * lib/pty.in.h: Likewise.
10224         * lib/sched.in.h: Likewise.
10225         * lib/se-selinux.in.h: Likewise.
10226         * lib/search.in.h: Likewise.
10227         * lib/signal.in.h: Likewise.
10228         * lib/spawn.in.h: Likewise.
10229         * lib/stdarg.in.h: Likewise.
10230         * lib/stddef.in.h: Likewise.
10231         * lib/stdint.in.h: Likewise.
10232         * lib/stdio.in.h: Likewise.
10233         * lib/stdlib.in.h: Likewise.
10234         * lib/string.in.h: Likewise.
10235         * lib/strings.in.h: Likewise.
10236         * lib/sys_file.in.h: Likewise.
10237         * lib/sys_ioctl.in.h: Likewise.
10238         * lib/sys_select.in.h: Likewise.
10239         * lib/sys_socket.in.h: Likewise.
10240         * lib/sys_stat.in.h: Likewise.
10241         * lib/sys_time.in.h: Likewise.
10242         * lib/sys_times.in.h: Likewise.
10243         * lib/sys_utsname.in.h: Likewise.
10244         * lib/sys_wait.in.h: Likewise.
10245         * lib/sysexits.in.h: Likewise.
10246         * lib/termios.in.h: Likewise.
10247         * lib/time.in.h: Likewise.
10248         * lib/unistd.in.h: Likewise.
10249         * lib/wchar.in.h: Likewise.
10250         * lib/wctype.in.h: Likewise.
10251         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10252         * modules/ctype (Makefile.am): Likewise.
10253         * modules/dirent (Makefile.am): Likewise.
10254         * modules/errno (Makefile.am): Likewise.
10255         * modules/fcntl-h (Makefile.am): Likewise.
10256         * modules/float (Makefile.am): Likewise.
10257         * modules/getopt-posix (Makefile.am): Likewise.
10258         * modules/iconv-h (Makefile.am): Likewise.
10259         * modules/inttypes (Makefile.am): Likewise.
10260         * modules/langinfo (Makefile.am): Likewise.
10261         * modules/locale (Makefile.am): Likewise.
10262         * modules/math (Makefile.am): Likewise.
10263         * modules/netdb (Makefile.am): Likewise.
10264         * modules/netinet_in (Makefile.am): Likewise.
10265         * modules/poll-h (Makefile.am): Likewise.
10266         * modules/pthread (Makefile.am): Likewise.
10267         * modules/pty (Makefile.am): Likewise.
10268         * modules/sched (Makefile.am): Likewise.
10269         * modules/search (Makefile.am): Likewise.
10270         * modules/selinux-h (Makefile.am): Likewise.
10271         * modules/signal (Makefile.am): Likewise.
10272         * modules/spawn (Makefile.am): Likewise.
10273         * modules/stdarg (Makefile.am): Likewise.
10274         * modules/stddef (Makefile.am): Likewise.
10275         * modules/stdint (Makefile.am): Likewise.
10276         * modules/stdio (Makefile.am): Likewise.
10277         * modules/stdlib (Makefile.am): Likewise.
10278         * modules/string (Makefile.am): Likewise.
10279         * modules/strings (Makefile.am): Likewise.
10280         * modules/sys_file (Makefile.am): Likewise.
10281         * modules/sys_ioctl (Makefile.am): Likewise.
10282         * modules/sys_select (Makefile.am): Likewise.
10283         * modules/sys_socket (Makefile.am): Likewise.
10284         * modules/sys_stat (Makefile.am): Likewise.
10285         * modules/sys_time (Makefile.am): Likewise.
10286         * modules/sys_times (Makefile.am): Likewise.
10287         * modules/sys_utsname (Makefile.am): Likewise.
10288         * modules/sys_wait (Makefile.am): Likewise.
10289         * modules/sysexits (Makefile.am): Likewise.
10290         * modules/termios (Makefile.am): Likewise.
10291         * modules/time (Makefile.am): Likewise.
10292         * modules/unistd (Makefile.am): Likewise.
10293         * modules/wchar (Makefile.am): Likewise.
10294         * modules/wctype (Makefile.am): Likewise.
10295
10296 2010-10-04  Bruno Haible  <bruno@clisp.org>
10297
10298         read-file tests: Avoid a test failure on NonStop Kernel.
10299         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10300         a regular file.
10301         Reported by Joachim Schmitz <schmitz@hp.com>.
10302
10303 2010-10-03  Bruno Haible  <bruno@clisp.org>
10304
10305         gnulib-tool: Fixes for --create-testdir with --libtool.
10306         * gnulib-tool (func_get_automake_snippet): Don't augment
10307         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10308         an executable.
10309         (func_create_testdir): Handle module 'alloca' like func_import.
10310         Reported by Bruce Korb <bruce.korb@gmail.com>.
10311
10312 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10313
10314         Avoid some lines longer than 80 characters.
10315         * lib/stdint.in.h: Break long comment lines.
10316         * lib/math.in.h: Likewise.
10317         (_GL_NUM_UINT_WORDS): New macro, for readability.
10318         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10319         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10320         * lib/stdlib.in.h: Likewise.
10321         * lib/spawn.in.h: Likewise.
10322         * lib/sys_socket.in.h: Update an URL.
10323         * lib/sys_stat.in.h: Break long line.
10324
10325 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10326
10327         Improve pmccabe2html.
10328         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10329         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10330         when the sources change. Remove the line in the HTML about "Used
10331         ranges" (which implied that there might be other unused ranges),
10332         rename "Resume" to "Summary" (easier to understand for more users).
10333         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10334         styles, and some unnecessary blank lines.
10335
10336 2010-10-03  Bruno Haible  <bruno@clisp.org>
10337             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10338
10339         acl: Add support for ACLs on NonStop Kernel.
10340         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10341         Check whether the function aclsort() exists.
10342         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10343         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10344         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10345         (acl_nontrivial [HAVE_ACLSORT]: New function.
10346         (file_has_acl): Implement for NonStop Kernel.
10347         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10348         (qset_acl): Implement for NonStop Kernel.
10349         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10350         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10351         (main): Implement for NonStop Kernel.
10352         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10353         Kernel. Handle this flavor.
10354         * tests/test-set-mode-acl.sh: Likewise.
10355         * tests/test-copy-acl.sh: Likewise.
10356         * tests/test-copy-file.sh: Likewise.
10357
10358 2010-10-03  Bruno Haible  <bruno@clisp.org>
10359
10360         Info about ACLs on NonStop Kernel.
10361         * doc/acl-resources.txt: Add info about NonStop Kernel.
10362         References by Joachim Schmitz <schmitz@hp.com>.
10363
10364 2010-10-02  Bruno Haible  <bruno@clisp.org>
10365
10366         Define missing EDQUOT on NonStop Kernel.
10367         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10368         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10369         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10370         missing.
10371         * doc/posix-headers/errno.texi: Mention the NSK bug.
10372         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10373         Reported by Joachim Schmitz <schmitz@hp.com>.
10374
10375 2010-10-02  Bruno Haible  <bruno@clisp.org>
10376
10377         Update doc for POSIX:2008.
10378         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10379         Update URL of POSIX specification.
10380
10381 2010-10-02  Bruno Haible  <bruno@clisp.org>
10382
10383         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10384         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10385         from gnulib, not from Automake.
10386
10387 2010-10-02  Bruno Haible  <bruno@clisp.org>
10388
10389         New module 'system-posix'.
10390         * modules/system-posix: New file.
10391         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10392         module is present.
10393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10394         GNULIB_SYSTEM_POSIX.
10395         * modules/stdlib (Depends-on): Remove sys_wait.
10396         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10397         * doc/posix-functions/system.texi: Mention the new module.
10398         * doc/posix-headers/stdlib.texi: Likewise.
10399         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10400         define test_sys_wait_macros to a no-op.
10401         Reported by Sam Steingold <sds@gnu.org>.
10402
10403 2010-09-30  Bruno Haible  <bruno@clisp.org>
10404
10405         More renaming from 'getdate' to 'get_date'.
10406         * doc/get_date.texi: Renamed from doc/getdate.texi.
10407         * modules/get_date (Files): Update.
10408         * MODULES.html.sh (Date and time <time.h>): Update.
10409         * DEPENDENCIES: Update.
10410         * gnulib-tool: Update comment.
10411         * m4/bison.m4 (gl_BISON): Likewise.
10412         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10413
10414 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10415
10416         bootstrap: support ACLOCAL_FLAGS during aclocal
10417         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10418         can add additional -I dir for third-party .m4 files.
10419
10420 2010-09-30  Eric Blake  <eblake@redhat.com>
10421
10422         bootstrap: use glibtoolize on MacOS
10423         * build-aux/bootstrap (check_versions): Convert libtool into
10424         libtoolize.
10425         (tool search): Move libtool check earlier, and look for
10426         glibtoolize for MacOS.
10427         (gnulib_tool_options): Auto-add --libtool when appropriate.
10428         Reported by Justin Clift.
10429
10430         poll: fix typo that broke test on MacOS
10431         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10432         Reported by Justin Clift.
10433
10434         getdate: rename to get_date
10435         Note: getdate.h is not renamed, to minimize client impact.
10436         * modules/getdate: Mark obsolete.  Move old contents...
10437         * modules/get_date: ...to new module name.
10438         * modules/getdate-tests: Move...
10439         * modules/get_date-tests: ...here.
10440         * m4/getdate.m4: Move...
10441         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10442         * lib/getdate.y: Move...
10443         * lib/get_date.y: ...here.
10444         * tests/test-getdate.c: Move...
10445         * tests/test-get_date.c: ...here.
10446         * doc/posix-functions/getdate.texi (getdate): Update name.
10447         * NEWS: Mention the change.
10448
10449 2010-09-29  Bruno Haible  <bruno@clisp.org>
10450
10451         Separate the module 'waitpid' from the module 'sys_wait'.
10452         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10453         present.
10454         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10455         gl_MODULE_INDICATOR_FOR_TESTS.
10456         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10457         * modules/sys_wait (Depends-on): Remove waitpid.
10458         (Makefile.am): Substitute GNULIB_WAITPID.
10459         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10460         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10461         signature only if the 'waitpid' module is present.
10462         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10463         * NEWS: Mention the change.
10464         * modules/grantpt (Depends-on): Add waitpid.
10465         * modules/wait-process (Depends-on): Likewise.
10466
10467 2010-09-29  Bruno Haible  <bruno@clisp.org>
10468
10469         More tests for module 'sys_wait'.
10470         * modules/sys_wait-c++-tests: New file.
10471         * tests/test-sys_wait-c++.cc: New file.
10472         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10473         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10474
10475 2010-09-29  Bruno Haible  <bruno@clisp.org>
10476
10477         New module 'waitpid'.
10478         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10479         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10480         Don't include <process.h>.
10481         (waitpid): Declare only, using modern idiom.
10482         * m4/waitpid.m4: New file.
10483         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10484         * modules/waitpid: New file.
10485         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10486         (Makefile.am): Update.
10487         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10488
10489 2010-09-28  Bruno Haible  <bruno@clisp.org>
10490
10491         poll: Assume ANSI C.
10492         * lib/poll.c (poll): Use an ANSI C declaration.
10493
10494 2010-09-28  Bruno Haible  <bruno@clisp.org>
10495
10496         poll-h: Create poll.h on all platforms.
10497         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10498         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10499         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10500         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10501         (gl_REPLACE_POLL_H): Don't set POLL_H.
10502         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10503         * modules/poll-h (Depends-on): Add include_next.
10504         (Makefile.am): Create poll.h unconditionally. Substitute also
10505         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10506
10507 2010-09-28  Bruno Haible  <bruno@clisp.org>
10508
10509         Tests for module 'poll-h'.
10510         * modules/poll-h-c++-tests: New file.
10511         * tests/test-poll-h-c++.cc: New file.
10512
10513         Tests for module 'poll-h'.
10514         * modules/poll-h-tests: New file.
10515         * tests/test-poll-h.c: New file.
10516
10517 2010-09-28  Bruno Haible  <bruno@clisp.org>
10518
10519         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10520         * modules/poll-h (Depends-on): Add 'extensions'.
10521
10522 2010-09-28  Bruno Haible  <bruno@clisp.org>
10523
10524         New module 'poll-h'.
10525         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10526         (poll): Use modern idiom.
10527         * modules/poll-h: New file.
10528         * modules/poll (Files): Remove lib/poll.in.h.
10529         (Depends-on): Add poll-h.
10530         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10531         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10532         * m4/poll_h.m4: New file.
10533         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10534         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10535         and invoke gl_REPLACE_POLL_H.
10536         * lib/poll.c: Use common idiom.
10537         * tests/test-poll.c: Likewise.
10538         * doc/posix-headers/poll.texi: Mention the poll-h module.
10539         Suggested by Eric Blake.
10540
10541 2010-09-26  Bruno Haible  <bruno@clisp.org>
10542
10543         sys_wait: Implement WSTOPSIG.
10544         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10545         Reported by Simon Josefsson.
10546
10547 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10548
10549         stdlib, sys_wait: Avoid compilation error on mingw.
10550         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10551
10552 2010-09-26  Bruno Haible  <bruno@clisp.org>
10553
10554         stdlib tests: Avoid code duplication.
10555         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10556         * modules/sys_wait-tests (Files): Likewise.
10557         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10558         * tests/test-stdlib.c: Include test-sys_wait.h.
10559         (main): Invoke test_sys_wait_macros.
10560         * tests/test-sys_wait.c: Include test-sys_wait.h.
10561         (main): Invoke test_sys_wait_macros.
10562
10563 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10564
10565         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10566         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10567         sure Windows sockets are working before calling getaddrinfo.
10568         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10569         * doc/gnulib.texi (Windows sockets): Fix typo.
10570
10571 2010-09-25  Bruno Haible  <bruno@clisp.org>
10572
10573         Tests for module 'regex-quote'.
10574         * modules/regex-quote-tests: New file.
10575         * tests/test-regex-quote.c: New file.
10576
10577         New module 'regex-quote'.
10578         * lib/regex-quote.h: New file.
10579         * lib/regex-quote.c: New file.
10580         * modules/regex-quote: New file.
10581         Suggested by Reuben Thomas <rrt@sc3d.org>.
10582
10583 2010-09-24  Bruno Haible  <bruno@clisp.org>
10584
10585         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10586         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10587
10588 2010-09-23  Bruno Haible  <bruno@clisp.org>
10589
10590         setenv: Relax license.
10591         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10592         Blake.
10593         Requested by Eric Blake.
10594
10595 2010-09-22  Bruno Haible  <bruno@clisp.org>
10596
10597         termios: Relax license.
10598         * modules/termios (License): Change to LGPLv2+.
10599         Requested by Eric Blake.
10600
10601 2010-09-22  Bruno Haible  <bruno@clisp.org>
10602
10603         threadlib: Allow the package to change the default to 'no'.
10604         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10605         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10606         Reported by Paul Eggert.
10607
10608 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10609             Bruno Haible  <bruno@clisp.org>
10610
10611         Fix endless loop in mbmemcasecoll.
10612         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10613         byte.
10614         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10615
10616 2010-09-22  Bruno Haible  <bruno@clisp.org>
10617
10618         Tests for module 'memcoll'.
10619         * modules/memcoll-tests: New file.
10620         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10621
10622         memcoll, xmemcoll: Clarify size vs. length.
10623         * modules/memcoll.c (memcoll0): Clarify specification.
10624         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10625         passed to collate_error.
10626
10627 2010-09-22  Bruno Haible  <bruno@clisp.org>
10628
10629         Tests for module 'memcasecmp'.
10630         * modules/memcasecmp-tests: New file.
10631         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10632
10633 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10634
10635         * lib/pthread.in.h: Add split double-inclusion guard, and include
10636         system <pthread.h> if there is one.  Use @@-style as in other
10637         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10638         pthread.h doesn't.
10639         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10640         (pthread_mutexattr_settype, pthread_mutex_trylock):
10641         New static inline functions, if there's no system <pthread.h>.
10642         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10643         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10644         Approximate with mutexes if the system lacks spinlocks, as in
10645         MacOS.
10646         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10647         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10648         @@-style.  Check for spinlocks separately.
10649         (gl_PTHREAD_DEFAULTS): New macro.
10650         * modules/pthread: Redo to use a more typical style for in.h files.
10651
10652 2010-09-21  Eric Blake  <eblake@redhat.com>
10653
10654         net_if: enhance tests
10655         * tests/test-net_if.c (main): Move signature checks earlier.
10656         Print failures to stderr.
10657         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10658         Document the bug that we do not yet fix.
10659
10660 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10661
10662         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10663         about gnulib, not GSS.
10664
10665 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10666
10667         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10668         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10669         for Emacs.
10670         * build-aux/pmccabe2html: Make Makefile.am example code more
10671         cut-and-paste friendly.
10672
10673 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10674
10675         * tests/test-net_if.c: New file.
10676         * modules/net_if-tests: New file.
10677
10678 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10679
10680         pthread: add pthread_spin_destroy
10681         * lib/pthread.in.h (pthread_spin_destroy): New function.
10682
10683 2010-09-19  Bruno Haible  <bruno@clisp.org>
10684
10685         gnulib-tool: Fix --help output.
10686         * gnulib-tool (func_usage): Fix help message.
10687         Reported by Reuben Thomas <rrt@sc3d.org>.
10688
10689 2010-09-18  Jim Meyering  <meyering@redhat.com>
10690
10691         maint.mk: avoid unexpanded \n in two diagnostics
10692         * top/maint.mk (sc_prohibit_always_true_header_tests):
10693         Don't use a literal \n in a halt=... assignment.  It would not be
10694         expanded, and the two \n bytes would appear in the diagnostic output
10695         rather than the desired newline.  Use halt=$$(printf ... instead.
10696         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10697
10698 2010-09-18  Bruno Haible  <bruno@clisp.org>
10699
10700         netinet_in: Doc tweak.
10701         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10702         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10703
10704 2010-09-18  Jim Meyering  <meyering@redhat.com>
10705
10706         init.sh: correct an outdated comment
10707         * tests/init.sh (create_exe_shims_):  s/function/alias/
10708
10709         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10710         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10711         a file named "*.exe" is removed between the glob expansion and the
10712         processing of that oddly named file.
10713
10714 2010-09-17  Eric Blake  <eblake@redhat.com>
10715
10716         mirbsd: add some more support
10717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10718         in BSD family.
10719         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10720         devices as OpenBSD.
10721         * m4/host-os.m4 (mirbsd): Add MirBSD.
10722
10723         tests: fix unportable assumption on sys/wait.h
10724         * tests/test-sys_wait.c (main): Relax test.
10725         * tests/test-stdlib.c (main): Likewise.
10726
10727         init.sh: accomodate directory with no .exes
10728         * tests/init.sh: Accomodate directory containing only scripts.
10729
10730         tests: avoid compiler warning
10731         * tests/test-stdlib.c (main): Use the variable.
10732
10733         fdutimens, fdutimensat: update signature, again
10734         * lib/utimens.h (gl_futimens): Delete, and move signature...
10735         (fdutimens): ...here.
10736         (fdutimensat): Rearrange signature.
10737         (lutimensat): Rename variable for clarity.
10738         * lib/fdutimensat.c (fdutimensat): Update signature.
10739         * lib/utimens.c (fdutimens): Likewise.
10740         (gl_futimens): Delete.
10741         (utimens, lutimens): Update callers.
10742         * lib/futimens.c (futimens): Likewise.
10743         * tests/test-fdutimensat.c: Likewise.
10744         * tests/test-utimens.c: Likewise.
10745         * tests/test-futimens.h: Update comment.
10746         * NEWS: Mention this.
10747         Suggested by Paul Eggert.
10748
10749 2010-09-17  Bruno Haible  <bruno@clisp.org>
10750
10751         Take over the maintenance of some older macros from Autoconf.
10752         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10753         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10754         GNU Autoconf.
10755         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10756         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10757
10758 2010-09-17  Eric Blake  <eblake@redhat.com>
10759
10760         fdutimensat: drop atflag validation
10761         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10762         with valid fd, to close a race scenario where futimens is
10763         unsupported and FILE was replaced by a symlink.
10764         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10765         accordingly.
10766         Suggested by Paul Eggert.
10767
10768 2010-09-16  Bruno Haible  <bruno@clisp.org>
10769
10770         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10771         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10772
10773 2010-09-16  Bruno Haible  <bruno@clisp.org>
10774
10775         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10776         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10777         login_tty exists.
10778         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10779
10780 2010-09-16  Bruno Haible  <bruno@clisp.org>
10781
10782         login_tty: Make the replacement code work on BSD systems.
10783         * lib/login_tty.c: Include <sys/ioctl.h>.
10784         (login_tty): Use ioctl TIOCSCTTY when available.
10785         * modules/login_tty (Depends-on): Add sys_ioctl.
10786         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10787
10788 2010-09-16  Bruno Haible  <bruno@clisp.org>
10789
10790         login_tty: Stricter unit test.
10791         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10792         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10793         and tcgetsid() after login_tty.
10794         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10795
10796 2010-09-16  Bruno Haible  <bruno@clisp.org>
10797
10798         New module 'tcgetsid'.
10799         * lib/tcgetsid.c: New file.
10800         * m4/tcgetsid.m4: New file.
10801         * modules/tcgetsid: New file.
10802         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10803         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10804         GNULIB_TCGETSID, HAVE_TCGETSID.
10805         * lib/termios.in.h: Include <sys/types.h>.
10806         (tcgetsid): New declaration.
10807         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10808         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10809         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10810         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10811
10812 2010-09-16  Bruno Haible  <bruno@clisp.org>
10813
10814         Tests for module 'termios'.
10815         * modules/termios-c++-tests: New file.
10816         * modules/termios-tests: New file.
10817         * tests/test-termios-c++.cc: New file.
10818         * tests/test-termios.c: New file.
10819
10820         New module 'termios'.
10821         * modules/termios: New file.
10822         * lib/termios.in.h: New file.
10823         * m4/termios_h.m4: New file.
10824         * doc/posix-headers/termios.texi: Mention the new module.
10825
10826 2010-09-16  Eric Blake  <eblake@redhat.com>
10827
10828         fdutimensat: add an atflag parameter
10829         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10830         * lib/utimens.h (fdutimensat): Update prototype.
10831         * tests/test-fdutimensat.c: Adjust test to match.
10832         * NEWS: Document the change.
10833         Suggested by Paul Eggert.
10834
10835 2010-09-16  Bruno Haible  <bruno@clisp.org>
10836
10837         Fix typos in comments.
10838         * lib/striconveh.h: Fix typo in comment.
10839         * lib/login_tty.c (login_tty): Likewise.
10840
10841 2010-09-15  Bruno Haible  <bruno@clisp.org>
10842
10843         stdlib: clarify MirBSD WEXITSTATUS bug
10844         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10845         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10846
10847 2010-09-15  Eric Blake  <eblake@redhat.com>
10848
10849         stdlib: work around MirBSD WEXITSTATUS bug
10850         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10851         * modules/stdlib (Depends-on): Add sys_wait.
10852         * tests/test-sys_wait.c (main): Enhance test.
10853         * tests/test-stdlib.c (main): Likewise.
10854         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10855
10856         docs: mention MacOS issue with WEXITSTATUS(constant)
10857         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10858         issue.
10859         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10860
10861         strnlen: add tests
10862         * modules/strnlen-tests: New file.
10863         * tests/test-strnlen.c: Likewise.
10864
10865 2010-09-14  Bruno Haible  <bruno@clisp.org>
10866
10867         unistr/base: Avoid link errors when module 'libunistring' is also used.
10868         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10869         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10870         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10871         Declare also when HAVE_LIBUNISTRING is set.
10872         Reported by Pádraig Brady <P@draigbrady.com>.
10873
10874 2010-09-14  Eric Blake  <eblake@redhat.com>
10875
10876         test-rawmemchr: make more robust
10877         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10878         (Depends-on, configure.ac): Add needed prerequisites to use it.
10879         * modules/memchr-tests (Files, Depends-on, configure.ac):
10880         Likewise, to avoid implicit reliance on memchr module prereqs.
10881         * tests/test-memchr.c (main): Ensure proper masking.
10882         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10883         reads.
10884
10885         memchr: detect glibc Alpha bug
10886         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10887         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10888         Alpha.
10889         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10890         * tests/test-memchr.c (main): Enhance test.
10891         Reported by Nelson H. F. Beebe.
10892
10893 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10894
10895         fts, getcwd, glob: audit for dirfd returning -1
10896         * lib/fts.c (opendir): Remove #define; no longer used.
10897         (opendirat): New arg PDIR_FD.  All callers changed.
10898         (fts_build, _opendir2): Use new opendirat to avoid the need for
10899         dirfd, or for checking whether dirfd returns a negative value.
10900         Don't use opendir; always use openat followed by fdopendir.
10901         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10902         it.
10903         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10904         returns -1 here.
10905         * modules/fts (Depends-on): Remove dirfd.
10906         * modules/getcwd (Depends-on): Likewise.
10907
10908 2010-09-13  Eric Blake  <eblake@redhat.com>
10909
10910         float: fix broken MirBSD header
10911         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10912         * doc/posix-headers/float.texi (float.h): Document it.
10913
10914 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10915
10916         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10917         * lib/fts.c (opendirat): New arg extra_flags.
10918         (__opendir2): Use it to avoid following symlinks when opening
10919         a directory, if symlinks are not supposed to be followed.  See
10920         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10921
10922         fdopendir: preserve argument fd before returning
10923         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10924         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10925         (fdopendir): Use them, arranging for FD to be open to the same
10926         directory that it was when it started.  (It might be temporarily
10927         closed while fdopendir is running, so this not thread- or
10928         signal-safe.)  Be careful to do the right thing even when file
10929         descriptors are scarce and dup fails with errno == EMFILE.  See
10930         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10931
10932 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10933
10934         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10935         * NEWS: Document change.
10936         * m4/regex.m4: Disable test for regoff_t size.
10937
10938 2010-09-13  Jim Meyering  <meyering@redhat.com>
10939
10940         fts: don't operate on an invalid file descriptor after failed dup
10941         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10942         negative file descriptor.
10943
10944 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10945
10946         savedir: add streamsavedir, deprecate fdsavedir
10947         * NEWS: Mention deprecation of fdsavedir.
10948         * lib/savedir.c (streamsavedir): New extern function, whose name
10949         ends in "savedir" to be consistent with the others.  This differs
10950         from savedirstream in that it doesn't close its argument.  The
10951         next version of GNU tar will use this instead of fdsavedir, to
10952         avoid some race conditions and conserve file descriptors.
10953         (savedirstream): Reimplement as a wrapper around streamsavedir.
10954         (fdsavedir): Add a comment deprecating this function.  As far as
10955         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10956         * lib/savedir.h (streamsavedir): New decl.
10957         (fdsavedir): Add a comment deprecating this.
10958
10959 2010-09-10  Bruno Haible  <bruno@clisp.org>
10960
10961         langinfo: Fix last commit.
10962         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10963         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10965
10966 2010-09-10  Bruno Haible  <bruno@clisp.org>
10967
10968         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10969         * lib/progreloc.c (O_EXEC): Define fallback.
10970
10971 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10972
10973         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10974         * NEWS: Document recent changes to fcntl-h.
10975         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10976         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10977         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10978         Similarly for O_SEARCH; this last was already true, but not documented.
10979         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10980         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10981         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10982         Likewise.
10983         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10984         is zero, not whether it is defined.
10985         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10986         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10987         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10988
10989 2010-09-10  Bruno Haible  <bruno@clisp.org>
10990
10991         langinfo, nl_langinfo: Fix for IRIX 5.3.
10992         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10993         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10994         HAVE_LANGINFO_YESEXPR.
10995         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10996         HAVE_LANGINFO_YESEXPR.
10997         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10998         HAVE_LANGINFO_T_FMT_AMPM is 0.
10999         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11000         HAVE_LANGINFO_YESEXPR is 0.
11001         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11002         NOEXPR.
11003         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11004         * doc/posix-functions/nl_langinfo.texi: Likewise.
11005         Reported by Eric Blake.
11006
11007 2010-09-10  Bruno Haible  <bruno@clisp.org>
11008
11009         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11010         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11011         on FreeBSD 8.0 and OpenBSD 4.6.
11012         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11013         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11014         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11015         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11016         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11017         ac_includes_default.
11018         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11019
11020 2010-09-09  Eric Blake  <eblake@redhat.com>
11021
11022         strsignal: work around NetBSD bug
11023         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11024         * lib/string.in.h (includes): Likewise.
11025         * doc/posix-functions/strsignal.texi (strsignal): Document the
11026         bug.
11027         Reported by Nelson H. F. Beebe.
11028
11029         gnulib-tool: work with NetBSD /bin/sh
11030         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11031         (func_get_description, func_get_comment, func_get_status)
11032         (func_get_notice, func_get_applicability, func_get_filelist)
11033         (func_get_dependencies, func_get_autoconf_early_snippet)
11034         (func_get_autoconf_snippet, func_get_automake_snippet)
11035         (func_get_include_directive, func_get_link_directive)
11036         (func_get_license, func_get_maintainer, func_import): Avoid
11037         shell syntax errors from parsing syntax extensions.
11038
11039 2010-09-09  Bruno Haible  <bruno@clisp.org>
11040
11041         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11042         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11043         a reliable way to determine whether the 'alias' command works.
11044
11045 2010-09-08  Jim Meyering  <meyering@redhat.com>
11046
11047         init.sh: penalize a set-x-impaired shell; don't disqualify it
11048         * tests/init.sh: Too many shells corrupt application stderr when
11049         you set -x, so we can't afford to disqualify them, since at least
11050         on Irix-6.5, that would disqualify all bourne shells.
11051         Instead, use a two-pass approach.
11052         On the first pass, try to find a shell that meets the stricter
11053         condition that set -x does not corrupt stderr.
11054         If no shell meets the stricter condition, retest each candidate
11055         shell, but without that extra condition.  Finally, when
11056         VERBOSE=yes is requested and set -x might cause trouble, simply
11057         issue a warning and refrain from enabling debug output.
11058
11059 2010-09-08  Eric Blake  <eblake@redhat.com>
11060
11061         unsetenv: fix OpenBSD bug
11062         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11063         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11064         documentation.
11065         Reported by Jim Meyering.
11066
11067         strtod: work around IRIX 6.5 bug
11068         * lib/strtod.c (strtod): Reparse number on shorter string if
11069         exponent parse was invalid.
11070         * tests/test-strtod.c (main): Add check for "0x1p 2".
11071         Reported by Tom G. Christensen.
11072
11073         getopt: optimize previous patch
11074         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11075         empty variable.  Speed up awk script.
11076         Reported by Paolo Bonzini.
11077
11078 2010-09-08  Jim Meyering  <meyering@redhat.com>
11079
11080         test.sh: disqualify shells for which set -x corrupts stderr
11081         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11082         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11083         appear in stderr output.  For example, this command:
11084             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11085         prints "P=1" on those two systems:
11086
11087 2010-09-08  Bruno Haible  <bruno@clisp.org>
11088
11089         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11090         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11091         commands, because some shells ignore redirections when there is an
11092         error in the command lookup.
11093         Reported by Eric Blake.
11094
11095 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11096
11097         * lib/regex.h: Fix a mention of `regex_compile' (should be
11098         `re_compile_pattern').
11099         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11100         (re_set_registers): Correct name of parameter in comment.
11101
11102         * doc/regex.texi: Add documentation for missing syntax flags.
11103         Remove commented-out documentation of defunct syntax option
11104         RE_NO_EMPTY_ALTS.
11105         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11106         Add documentation of re_set_registers.
11107         Document trick to re-use a pattern buffer by setting fastmap manually.
11108         Update documentation of struct re_pattern_buffer per public members.
11109         Uncomment documentation of equivalence class operators and
11110         collating symbol operators, since they are now implemented,
11111         Explain leftmost-longest matching in relation to alternatives.
11112         Tidy documentation of substring matching.
11113         Remove POSIX documentation, which is done better in
11114         glibc, and refer the reader there. Keep BSD API documentation, as
11115         that is not readily available elsewhere.
11116
11117 2010-09-07  Eric Blake  <eblake@redhat.com>
11118
11119         getopt: handle POSIXLY_CORRECT set but not exported
11120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11121         export state of POSIXLY_CORRECT, due to bash set -o posix.
11122         Reported by Dustin J. Mitchell.
11123
11124 2010-09-05  Bruno Haible  <bruno@clisp.org>
11125
11126         gnulib-tool: Highlight the changed options.
11127         * gnulib-tool (func_usage): Display the --import, --add-import,
11128         --remove-import explanations in bold font.
11129
11130 2010-09-06  Karl Berry  <karl@gnu.org>
11131
11132         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11133
11134 2010-09-05  Bruno Haible  <bruno@clisp.org>
11135
11136         uniwidth/width: Update comment.
11137         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11138         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11139
11140 2010-09-05  Bruno Haible  <bruno@clisp.org>
11141
11142         isinf, isnan: Relax license.
11143         * modules/isinf (License): Change from GPL to LGPL, with consent from
11144         Ben Pfaff.
11145         * modules/isnan (License): Likewise.
11146         Requested by Ludovic Courtès.
11147
11148 2010-09-04  Bruno Haible  <bruno@clisp.org>
11149
11150         gnulib-tool: Help migration from --import to --add-import or --update.
11151         * gnulib-tool: Emit a verbose error message when --import is used
11152         without any module name.
11153
11154 2010-09-04  Bruno Haible  <bruno@clisp.org>
11155
11156         Update doc about gnulib-tool.
11157         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11158         'gnulib-tool --update' in more detail.
11159         Reported by Eric Blake.
11160
11161 2010-09-04  Bruno Haible  <bruno@clisp.org>
11162
11163         gnulib-tool: Change --import. New options --add/remove-import.
11164         * gnulib-tool: New options --add-import, --remove-import.
11165         (func_usage): Document them.
11166         (have_associative): Define always.
11167         (func_import): In import mode, don't merge the specified settings with
11168         the cached settings. Implement remove-import mode.
11169         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11170         Explain when to use them versus --import.
11171         (Simple update): Use --add-import instead of --import.
11172         * NEWS: Mention the change.
11173
11174 2010-09-04  Bruno Haible  <bruno@clisp.org>
11175
11176         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11177         separate gnulib.mk.
11178
11179 2010-09-04  Bruno Haible  <bruno@clisp.org>
11180
11181         gnulib-tool: Don't talk about CVS any more.
11182         * gnulib-tool (func_usage, func_import): Write "version control"
11183         instead of CVS.
11184
11185 2010-09-04  Jim Meyering  <meyering@redhat.com>
11186
11187         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11188         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11189         false positives (whose names may be ill-chosen) when searching
11190         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11191         would cause a false-positive.
11192
11193         avoid coreutils "make distcheck" failure
11194         Coreutils tests with an absolute build directory name that contains
11195         a space.  Not quoting this directory name caused a failure.
11196         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11197         * tests/test-vc-list-files-cvs.sh: Likewise.
11198
11199 2010-09-04  Bruno Haible  <bruno@clisp.org>
11200
11201         gnulib-tool: Avoid error when run in a package without Makefile.am.
11202         * gnulib-tool: When collecting the m4dirs in a package that does not
11203         have a Makefile.am, eliminate those directories that contain no
11204         gnulib-cache.m4. Fix expression that counts these directories.
11205
11206 2010-09-04  Bruno Haible  <bruno@clisp.org>
11207
11208         update-copyright test: Improve output when perl is missing or too old.
11209         * tests/test-update-copyright.sh: Move test of Perl version down after
11210         the test whether Perl exists. Provide an explanation relating Perl's
11211         error message to Automake's SKIP: message.
11212
11213 2010-09-04  Bruno Haible  <bruno@clisp.org>
11214
11215         Don't augment PATH in TESTS_ENVIRONMENT.
11216         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11217         set abs_aux_dir instead of augmenting PATH.
11218         * modules/vc-list-files-tests (Makefile.am): Likewise.
11219         * tests/test-update-copyright.sh: Augment PATH here.
11220         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11221         path_prepend_.
11222         * tests/test-vc-list-files-git.sh: Likewise.
11223
11224 2010-09-04  Jim Meyering  <meyering@redhat.com>
11225
11226         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11227         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11228
11229 2010-09-04  Bruno Haible  <bruno@clisp.org>
11230
11231         strdup: Fix compilation error in C++ mode.
11232         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11233         the macro.
11234
11235 2010-09-04  Bruno Haible  <bruno@clisp.org>
11236
11237         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11238         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11239         macro into a function.
11240         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11241
11242 2010-09-04  Bruno Haible  <bruno@clisp.org>
11243
11244         Set PATH_SEPARATOR the same way autoconf does.
11245         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11246         the value of PATH_SEPARATOR the same way autoconf-generated configure
11247         scripts do.
11248         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11249         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11250
11251 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11252
11253         Set PATH_SEPARATOR the same way autoconf does.
11254         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11255         the same way autoconf-generated configure scripts do.
11256         * posix-modules: Likewise.
11257
11258 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11259
11260         hash: fix safe_hasher const typo
11261         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11262         const; otherwise, there is a type error later.
11263
11264 2010-09-02  Jim Meyering  <meyering@redhat.com>
11265
11266         test-update-copyright.sh: require perl 5.8.0
11267         * tests/test-update-copyright.sh: Require 5.8.0,
11268         which Tom G. Christensen has confirmed is adequate,
11269         while 5.6.1 is not.
11270
11271 2010-09-02  Eric Blake  <eblake@redhat.com>
11272
11273         tests: init.sh improvements for re-exec'ing with zsh
11274         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11275         -vx through shell re-exec.
11276         Reported by Tom G. Christensen.
11277
11278         wctype: fix typo in previous commit
11279         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11280         Reported by Ludovic Courtès.
11281
11282 2010-09-02  Jim Meyering  <meyering@redhat.com>
11283
11284         test-update-copyright.sh: skip test if Perl is too old
11285         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11286         Reported by Tom G. Christensen.
11287
11288 2010-09-02  Bruno Haible  <bruno@clisp.org>
11289
11290         wctype: Avoid compilation error on IRIX 6.5.30.
11291         * lib/wctype.in.h (iswblank): Declare with a replacement if
11292         REPLACE_ISWBLANK is set.
11293         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11294         declared. Set REPLACE_ISWBLANK.
11295         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11296         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11297         * doc/posix-headers/wctype.texi: Likewise.
11298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11299
11300 2010-09-01  Bruno Haible  <bruno@clisp.org>
11301
11302         New module 'socketlib'.
11303         * modules/socketlib: New file.
11304         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11305         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11306         * modules/sockets (Depends-on): Add socketlib.
11307         Suggested by Sam Steingold <sds@gnu.org>.
11308
11309 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11310
11311         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11312
11313         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11314         when one needs search access to a directory but not read access.
11315         On systems where it is available, it works in some cases where
11316         O_RDONLY does not, namely on directories that are searchable but
11317         not readable, and which need only to be searchable.  If O_SEARCH
11318         is not available, fall back to the traditional method of using
11319         O_RDONLY.
11320
11321         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11322         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11323         when opening a directory that needs only to be searchable.
11324         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11325         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11326         * lib/openat-proc.c (openat_proc_name): Likewise.
11327         * lib/openat.c (openat_needs_fchdir): Likewise.
11328         * lib/save-cwd.c (save_cwd): Likewise.
11329         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11330
11331 2010-08-28  Bruno Haible  <bruno@clisp.org>
11332
11333         New module 'host-cpu-c-abi'.
11334         * modules/host-cpu-c-abi: New file.
11335         * m4/host-cpu-c-abi.m4: New file, based on part of
11336         clisp/src/m4/general.m4.
11337         Requested by Sam Steingold <sds@gnu.org>.
11338
11339 2010-08-31  Eric Blake  <eblake@redhat.com>
11340         and Jim Meyering  <meyering@redhat.com>
11341
11342         hash: factor, and guard against misbehaving hasher function
11343         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11344         of table->hasher's return value.  Also protect against a hash value
11345         so large that adding it to table->bucket results in a NULL pointer.
11346         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11347         Use it in place of open-coded check-and-abort.
11348
11349 2010-08-30  Bruno Haible  <bruno@clisp.org>
11350
11351         hash: silence spurious clang warning
11352         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11353         Reported by Eric Blake.
11354
11355 2010-08-30  Eric Blake  <eblake@redhat.com>
11356
11357         strstr, memmem, strcasestr: avoid leaked shell message
11358         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11359         FreeBSD.
11360         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11361         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11362
11363         tests: silence clang warning
11364         * tests/test-malloca.c (do_allocation): Avoid dead store.
11365
11366 2010-08-29  Bruno Haible  <bruno@clisp.org>
11367
11368         gettext: Fix recent mistake.
11369         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11370
11371 2010-08-29  Bruno Haible  <bruno@clisp.org>
11372
11373         selinux-h: Offer a --without-selinux option.
11374         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11375         --without-selinux was specified, skip all tests and define
11376         HAVE_SELINUX_SELINUX_H to 0.
11377         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11378         set LIB_SELINUX to empty.
11379         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11380         gl_LIBSELINUX. If --without-selinux was specified, replace
11381         selinux/context.h.
11382         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11383
11384 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11385             Bruno Haible  <bruno@clisp.org>
11386
11387         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11388         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11389         of HAVE_REALLOC.
11390         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11391         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11392         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11393         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11394
11395 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11396             Bruno Haible  <bruno@clisp.org>
11397
11398         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11399         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11400         HAVE_CALLOC.
11401         * lib/xmalloc.c: Update accordingly.
11402         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11403         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11404         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11405
11406 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11407             Bruno Haible  <bruno@clisp.org>
11408
11409         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11410         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11411         HAVE_MALLOC.
11412         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11413         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11414         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11415
11416 2010-08-29  Bruno Haible  <bruno@clisp.org>
11417
11418         Update modules list.
11419         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11420         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11421         (String handling <string.h>): Add astrxfrm.
11422         (File system functions): Add readlinkat.
11423
11424 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11425
11426         Tests for module 'realloc-gnu'.
11427         * modules/realloc-gnu-tests: New file.
11428         * tests/test-realloc-gnu.c: New file.
11429
11430         Tests for module 'calloc-gnu'.
11431         * modules/calloc-gnu-tests: New file.
11432         * tests/test-calloc-gnu.c: New file.
11433
11434         Tests for module 'malloc-gnu'.
11435         * modules/malloc-gnu-tests: New file.
11436         * tests/test-malloc-gnu.c: New file.
11437
11438 2010-08-28  Bruno Haible  <bruno@clisp.org>
11439
11440         Rename module 'realloc' -> 'realloc-gnu'.
11441         * modules/realloc-gnu: New file, copied from modules/realloc.
11442         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11443         obsolete.
11444         * modules/mgetgroups (Depends-on): Update.
11445         * doc/posix-functions/realloc.texi: Update.
11446         * NEWS: Mention the change.
11447
11448         Rename module 'calloc' -> 'calloc-gnu'.
11449         * modules/calloc-gnu: New file, copied from modules/calloc.
11450         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11451         obsolete.
11452         * doc/posix-functions/calloc.texi: Update.
11453         * NEWS: Mention the change.
11454
11455         Rename module 'malloc' -> 'malloc-gnu'.
11456         * modules/malloc-gnu: New file, copied from modules/malloc.
11457         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11458         obsolete.
11459         * modules/argp (Depends-on): Update.
11460         * modules/regex (Depends-on): Update.
11461         * doc/posix-functions/malloc.texi: Update.
11462         * NEWS: Mention the change.
11463
11464 2010-08-28  Eric Blake  <eblake@redhat.com>
11465
11466         pread, pwrite: add missing dependency
11467         * modules/pread (Depends-on): Add extensions.
11468         * modules/pwrite (Depends-on): Likewise.
11469
11470 2010-08-28  Bruno Haible  <bruno@clisp.org>
11471
11472         unistr/u*-strchr: Fix tests dependencies.
11473         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11474         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11475         Reported by Ian Beckwith <ianb@erislabs.net>.
11476
11477 2010-08-28  Bruno Haible  <bruno@clisp.org>
11478
11479         read-file: Don't occupy too much unused memory.
11480         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11481
11482 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11483             Eric Blake  <eblake@redhat.com>
11484             Bruno Haible  <bruno@clisp.org>
11485
11486         read-file: Avoid memory reallocations with regular files.
11487         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11488         (fread_file): With regular files, use the remaining length as the
11489         initial buffer size.  Check against overflow.
11490         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11491         sys_stat.
11492
11493 2010-08-28  Bruno Haible  <bruno@clisp.org>
11494
11495         ftello: Relax license.
11496         * modules/ftello (License): Relax to LGPLv2+.
11497         Reported by Eric Blake.
11498
11499 2010-08-28  Bruno Haible  <bruno@clisp.org>
11500
11501         Avoid relocwrapper link errors due to gnulib replacement functions.
11502         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11503         function.
11504         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11505
11506 2010-08-28  Bruno Haible  <bruno@clisp.org>
11507
11508         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11509         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11510         defined.
11511         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11512         Suggested by Eric Blake.
11513
11514 2010-08-28  Bruno Haible  <bruno@clisp.org>
11515
11516         sys_socket, netdb: Ensure socklen_t gets defined.
11517         * modules/sys_socket (Depends-on): Add socklen.
11518         * modules/netdb (Depends-on): Likewise.
11519         * modules/getaddrinfo (Depends-on): Remove socklen.
11520         * modules/getsockopt (Depends-on): Likewise.
11521         * modules/setsockopt (Depends-on): Likewise.
11522         * tests/test-sys_socket.c: Check that socklen_t is defined.
11523         * tests/test-netdb.c: Likewise.
11524         * m4/socklen.m4: Update comments.
11525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11526
11527 2010-08-27  Eric Blake  <eblake@redhat.com>
11528
11529         login_tty: add missing dependency
11530         * modules/login_tty (Depends-on): Add pty.
11531
11532 2010-08-26  Eric Blake  <eblake@redhat.com>
11533
11534         lib-symbol-versions: fix m4 quoting
11535         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11536         format for AC_LINK_IFELSE.
11537
11538         glob: fix compile test
11539         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11540
11541         btowc: fix missing file
11542         * modules/btowc (Files): Also ship locale-fr.m4.
11543
11544         lseek: fix link test
11545         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11546         AC_LINK_IFELSE.
11547
11548         include_next: silence autoconf 2.68 warning
11549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11550         AC_COMPILE_IFELSE as special.
11551         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11552         autoconf < 2.68.
11553
11554         acl: fix compilation test
11555         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11556         AC_COMPILE_IFELSE.
11557
11558 2010-08-26  Bruno Haible  <bruno@clisp.org>
11559
11560         Modernize AC_TRY_RUN invocations.
11561         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11562         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11563         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11564         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11565         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11566         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11567         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11568         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11569         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11570         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11571         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11572         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11573         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11574         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11575         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11576         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11577         gl_MBRLEN_NUL_RETVAL): Likewise.
11578         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11579         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11580         Likewise.
11581         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11582         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11583         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11584         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11585         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11586         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11587         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11588         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11589         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11590         Likewise.
11591         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11592         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11593         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11594         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11595         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11596         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11597         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11598         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11599         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11601
11602 2010-08-26  Bruno Haible  <bruno@clisp.org>
11603
11604         Modernize AC_TRY_LINK invocations.
11605         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11606         AC_TRY_LINK.
11607         * m4/argp.m4 (gl_ARGP): Likewise.
11608         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11609         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11610         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11611         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11612         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11613         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11614         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11615         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11616         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11617         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11618         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11619         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11620         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11621         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11622         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11623         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11624         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11625         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11626         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11627         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11628         Likewise.
11629         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11630         Likewise.
11631         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11632         Likewise.
11633         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11634         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11635         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11636         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11637         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11638         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11639         * m4/servent.m4 (gl_SERVENT): Likewise.
11640         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11641         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11642         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11643         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11644         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11645         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11646         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11647         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11648         * modules/tsearch-tests (configure.ac): Likewise.
11649
11650 2010-08-26  Bruno Haible  <bruno@clisp.org>
11651
11652         Modernize AC_TRY_COMPILE invocations.
11653         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11654         AC_TRY_COMPILE.
11655         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11656         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11657         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11658         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11659         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11660         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11661         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11662         * m4/lock.m4 (gl_LOCK): Likewise.
11663         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11664         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11665         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11666         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11667         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11668         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11669         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11670         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11671         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11672         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11673         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11674         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11675         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11676         extraneous semicolon.
11677
11678 2010-08-26  Jim Meyering  <meyering@redhat.com>
11679
11680         stat-time: relax license LGPL
11681         * modules/stat-time (License): Change from GPL to LGPL,
11682         with consent from all contributors, for use in libguile.
11683         Requested by Ludovic Courtès.
11684
11685 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11686
11687         poll: return immediately on POLLHUP.
11688         * lib/poll.c (poll): Always set timeout before wait_timeout is
11689         computed.
11690
11691 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11692
11693         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11694         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11695         rmdir ("dir/.//"), unlinkat.
11696
11697 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11698
11699         stdbool: avoid spurious failure with modern xlc
11700         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11701
11702 2010-08-24  Bruno Haible  <bruno@clisp.org>
11703
11704         getloadavg: simplify code
11705         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11706         gl_have_func. Update comments.
11707
11708 2010-08-24  Eric Blake  <eblake@redhat.com>
11709
11710         getloadavg: don't define SVR4 on cygwin
11711         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11712         only define SVR4 when -lkvm is required.
11713         Reported by Yaakov Selkowitz.
11714
11715 2010-08-24  Bruno Haible  <bruno@clisp.org>
11716
11717         priv-set: fix comment
11718         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11719
11720 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11721
11722         priv-set: fix comments
11723         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11724         to match code, as suggested by David Bartley in:
11725         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11726
11727 2010-08-23  Eric Blake  <eblake@redhat.com>
11728
11729         stdbool: avoid rejecting clang
11730         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11731         * tests/test-stdbool.c: Enable more tests if using the system
11732         <stdbool.h> instead of the gnulib replacement.
11733         (main): Move xlc bug test to a runtime test for all compilers.
11734         Reported by Anders Kaseorg.
11735
11736         argz: fix shell quoting issue
11737         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11738         Reported by Charles Wilson.
11739
11740 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11741             Erik Faye-Lund <kusmabite@gmail.com>
11742
11743         poll, select: handle ERROR_BROKEN_PIPE.
11744         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11745         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11746         * lib/select.c (win32_compute_revents): Do not mark a pipe
11747         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11748
11749 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11750
11751         fts: allow compilation with C++
11752         * lib/fts_.h: Specify extern "C" linkage with C++.
11753
11754 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11755
11756         Fix gnulib-tool sed script de-commentation for AIX sed.
11757         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11758         sed.
11759
11760 2010-08-17  Eric Blake  <eblake@redhat.com>
11761
11762         test-stddef: test for (some) offsetof bugs
11763         * tests/test-stddef.c: Enhance test to ensure correct type of
11764         offsetof.
11765         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11766         that we are not fixing at this time.
11767
11768 2010-08-15  Bruno Haible  <bruno@clisp.org>
11769
11770         stpncpy: Allow stpncpy to be defined as a macro.
11771         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11772         if it's already correctly declared.
11773         * lib/string.in.h (stpncpy): Undefine before redefining.
11774         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11775
11776 2010-08-14  Bruno Haible  <bruno@clisp.org>
11777
11778         Rename module 'memxfrm' to 'amemxfrm'.
11779         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11780         (amemxfrm): Renamed from memxfrm.
11781         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11782         (amemxfrm): Renamed from memxfrm.
11783         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11784         * NEWS: Mention the change.
11785         * MODULES.html.sh (String handling <string.h>): Update.
11786         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11787         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11788         * lib/unicase/u16-casexfrm.c: Likewise.
11789         * lib/unicase/u32-casexfrm.c: Likewise.
11790         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11791         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11792         * lib/uninorm/u16-normxfrm.c: Likewise.
11793         * lib/uninorm/u32-normxfrm.c: Likewise.
11794         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11795         memxfrm.
11796         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11797         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11798         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11799         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11800         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11801         Suggested by Paul Eggert.
11802
11803 2010-08-14  Bruno Haible  <bruno@clisp.org>
11804
11805         Tests for module 'astrxfrm'.
11806         * modules/astrxfrm-tests: New file.
11807         * tests/test-astrxfrm.c: New file.
11808
11809         New module 'astrxfrm'.
11810         * lib/astrxfrm.h: New file.
11811         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11812         * modules/astrxfrm: New file.
11813
11814 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11815
11816         regex: Tweak doc.
11817         * doc/regex.texi (Overview): Don't mention regex.c.
11818         (GNU Regular Expression Compiling): Likewise.
11819         (Match-end-of-line Operator): Mention 'not_eol'.
11820
11821 2010-08-14  Brian Gough  <bjg@gnu.org>
11822             Bruno Haible  <bruno@clisp.org>
11823
11824         git-merge-changelog: add doc relating to use with bzr and hg.
11825         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11826
11827 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11828
11829         pthread: fix pthread.h creation for srcdir != builddir
11830         * modules/pthread (Makefile.am): Fix the rule to work also in a
11831         non-srcdir build.
11832
11833 2010-08-13  Karl Berry  <karl@gnu.org>
11834
11835         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11836         * doc/posix-*/*: force line break before @url of POSIX
11837         specifications.
11838         Suggested by Werner Lemberg.
11839
11840 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11841
11842         strtod: fix const diagnostic
11843         * lib/strtod.c (strtod): Don't assign const char * to char *,
11844         as this elicits a warning from GCC when warnings are enabled.
11845
11846 2010-08-10  Pádraig Brady <P@draigbrady.com>
11847         and Eric Blake  <eblake@redhat.com>
11848
11849         copy-acl: ignore ENOTSUP on HP-UX
11850         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11851         so that it is available for HP-UX.
11852         * lib/copy-acl.c (qcopy_acl): Use it.
11853         Reported by Patrick M. Callahan.
11854
11855 2010-08-10  Eric Blake  <eblake@redhat.com>
11856
11857         open, chown: relax license
11858         * modules/open (License): Change to LGPLv2+, with consent by all
11859         authors, for use in augeas.
11860         * modules/chown (License): Likewise.
11861         * modules/lchown (Likewise): Likewise.
11862         Requested by Adam Stokes.
11863
11864 2010-08-09  Karl Berry  <karl@gnu.org>
11865
11866         * build-aux/ar-lib: new file, import from Automake.
11867         * config/srclist.txt: autocheck for updates.
11868
11869 2010-08-09  Eric Blake  <eblake@redhat.com>
11870
11871         readlinkat: adjust client modules
11872         * modules/areadlinkat (Depends-on): Use readlinkat, not
11873         symlinkat.
11874         * modules/areadlinkat-with-size (Depends-on): Likewise.
11875
11876         mknod: be more vocal about danger of running tests as root
11877         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11878         root, since that is just asking for problems.
11879         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11880
11881         readlinkat: split into its own module
11882         * modules/symlinkat: Split readlinkat...
11883         * modules/readlinkat: ...into separate module.
11884         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11885         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11886         * lib/symlinkat.c (readlinkat): Move...
11887         * lib/readlinkat.c: ...into new file.
11888         * modules/symlinkat-tests: Split readlinkat test...
11889         * modules/readlinkat-tests: ...into separate module.
11890         * tests/test-symlinkat.c: Split...
11891         * tests/test-readlinkat.c: ...into new file.
11892         * NEWS: Document the split.
11893         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11894         * lib/unistd.in.h (readlinkat): Likewise.
11895         Suggested by Bruno Haible.
11896
11897 2010-08-08  Bruno Haible  <bruno@clisp.org>
11898
11899         memxfrm: Speed up.
11900         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11901         that usually only one call to strxfrm is necessary for each string
11902         part.
11903         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11904
11905 2010-08-07  Karl Berry  <karl@gnu.org>
11906
11907         * doc/posix-headers/limits.texi,
11908         * doc/posix-functions/malloc.texi,
11909         * doc/posix-functions/strsignal.texi: missing @item.
11910         * doc/ld-version-script.texi: spurious leading i.
11911         * doc/regex.texi (Interval Operators): no commas inside @var.
11912
11913 2010-08-01  Bruno Haible  <bruno@clisp.org>
11914
11915         Integrate the regex documentation.
11916         * doc/gnulib.texi: Define 'cn' index.
11917         (Regular expressions): New a chapter that includes regex.texi and
11918         regexprops-generic.texi.
11919         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11920         syntax.
11921
11922         Whitespace cleanup.
11923         * doc/regex.texi: Remove trailing spaces.
11924
11925         Add regex documentation.
11926         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11927         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11928         Written by Kathy A. Hargreaves and Karl Berry.
11929
11930 2010-08-01  Bruno Haible  <bruno@clisp.org>
11931
11932         link: Update documentation.
11933         * doc/posix-functions/link.texi: Update regarding Solaris.
11934
11935 2010-07-31  Bruno Haible  <bruno@clisp.org>
11936
11937         Update modules list.
11938         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11939         (String handling <string.h>): Add memcmp2, memxfrm.
11940         (Container data structures): Add xlist, xsublist, xoset.
11941         (Core language properties): Add alignof, unused-parameter.
11942         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11943         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11944         (Unibyte characters <ctype.h>): New section.
11945         (String handling <string.h>): New section.
11946         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11947         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11948         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11949         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11950         tan, tanh, tanl, y0, y1, yn.
11951         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11952         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11953         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11954         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11955         unlockpt, vdprintf, vdprintf-posix.
11956         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11957         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11958         xconcat-filename.
11959         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11960         getdtablesize, pipe2, pipe2-safer.
11961         (Security): New section.
11962         (Networking functions): Add accept4.
11963         (Signal handling): Add sigpipe.
11964         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11965         mbmemcasecoll.
11966         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11967         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11968         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11969         pipe-filter-ii.
11970         (Misc): Add argp-version-etc, login_tty, parse-duration.
11971
11972 2010-07-31  Bruno Haible  <bruno@clisp.org>
11973
11974         Improve doc in MODULES.html.
11975         * modules/linkat (Description): Add the word "function".
11976         * modules/mkfifo (Description): Likewise.
11977         * modules/mknod (Description): Likewise.
11978         * modules/remove (Description): Likewise.
11979         * modules/renameat (Description): Likewise.
11980         * modules/stat (Description): Likewise.
11981         * modules/symlink (Description): Likewise.
11982         * modules/unlink (Description): Likewise.
11983
11984 2010-07-31  Bruno Haible  <bruno@clisp.org>
11985
11986         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11987         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11988         option --enable/disable-c++ instead of --enable/disable-cxx.
11989         * NEWS: Mention the change.
11990
11991 2010-07-31  Bruno Haible  <bruno@clisp.org>
11992
11993         readlink, areadlink: Relax test a bit.
11994         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11995         alternative to ENOTDIR.
11996         * tests/test-areadlink.h (test_areadlink): Likewise.
11997         Reported by Rainer Tammer.
11998
11999 2010-07-31  Bruno Haible  <bruno@clisp.org>
12000
12001         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12002         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12003         character, perform the search using U_STRCHR.
12004         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12005         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12006         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12007         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12008         Suggested by Paolo Bonzini.
12009
12010 2010-07-31  Bruno Haible  <bruno@clisp.org>
12011
12012         unistr/u*-strstr: Fix dependencies.
12013         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12014         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12015         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12016
12017 2010-07-31  Bruno Haible  <bruno@clisp.org>
12018
12019         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12020         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12021         the beginning of the loop.
12022         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12023         cases in 'switch' statement.
12024
12025         unistr/u8-strchr: Fix several bugs.
12026         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12027         the string. When not found, return NULL, not a pointer near the end.
12028
12029         More tests for unistr/u8-strchr.
12030         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12031         that the function does not read past the first occurrence of the byte
12032         being searched.
12033         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12034         * tests/unistr/test-u16-strchr.c (main): New function.
12035         * tests/unistr/test-u32-strchr.c (main): New function.
12036
12037 2010-07-31  Bruno Haible  <bruno@clisp.org>
12038
12039         posix-modules: Ignore backup files of documentation files.
12040         * posix-modules: grep only through files named *.texi.
12041
12042 2010-07-31  Bruno Haible  <bruno@clisp.org>
12043
12044         symlinkat: Fix documentation.
12045         * doc/posix-functions/readlinkat.texi: Fix module name.
12046
12047 2010-07-31  Bruno Haible  <bruno@clisp.org>
12048
12049         fchownat: Replace also when chown has the trailing slash bug.
12050         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12051         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12052         introduced on 2010-04-10.
12053         Reported by Rainer Tammer.
12054
12055 2010-07-31  Bruno Haible  <bruno@clisp.org>
12056
12057         linkat: Work around AIX 7.1 bug.
12058         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12059         whether linkat handles trailing slash correctly. If not, replace linkat
12060         and define LINKAT_TRAILING_SLASH_BUG.
12061         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12062         check whether (fd1,file1) points to a directory if file1 or file2 ends
12063         in a slash. Code taken from lib/link.c.
12064         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12065         Reported by Rainer Tammer.
12066
12067 2010-07-31  Bruno Haible  <bruno@clisp.org>
12068
12069         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12070         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12071         This disables an xlc optimization that was causing wrong test results.
12072         Reported by Rainer Tammer.
12073
12074 2010-07-31  Bruno Haible  <bruno@clisp.org>
12075
12076         iconv: Work around AIX 6.1..7.1 bug.
12077         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12078         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12079         cross-compiling, guess no on all versions of AIX.
12080         Reported by Rainer Tammer.
12081
12082 2010-07-31  Bruno Haible  <bruno@clisp.org>
12083
12084         readlink: Relax test a bit.
12085         * tests/test-readlink.h (test_readlink): Allow different errno value
12086         when readlink is called with a file name that ends in / and refers to
12087         a file.
12088         Suggested by Eric Blake.
12089         Reported by Rainer Tammer.
12090
12091 2010-07-31  Bruno Haible  <bruno@clisp.org>
12092
12093         copysign: Does not require -lm on glibc systems.
12094         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12095         gl_COMMON_DOUBLE_MATHFUNC.
12096         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12097
12098 2010-07-31  Bruno Haible  <bruno@clisp.org>
12099
12100         duplocale: Work around AIX 7.1 bug.
12101         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12102         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12103         * lib/duplocale.c (rpl_duplocale): Update comment.
12104         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12105         Reported by Rainer Tammer.
12106
12107 2010-07-30  Bruno Haible  <bruno@clisp.org>
12108
12109         dirfd: Avoid link error on AIX 7.1.
12110         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12111         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12112         exist, set REPLACE_DIRFD.
12113         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12114         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12115         * doc/posix-functions/dirfd.texi: Update.
12116         Reported by Rainer Tammer.
12117
12118 2010-07-30  Eric Blake  <eblake@redhat.com>
12119
12120         strtod: next round of AIX fixes
12121         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12122         exponent.
12123         * tests/test-strtod.c (main): Enhance tests.
12124         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12125         Reported by Rainer Tammer.
12126
12127         futimens: fix configure check
12128         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12129         Reported by Bruno Haible.
12130
12131 2010-07-30  Bruno Haible  <bruno@clisp.org>
12132
12133         getline: Update regarding AIX.
12134         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12135         Reported by Rainer Tammer.
12136
12137 2010-07-30  Bruno Haible  <bruno@clisp.org>
12138
12139         wcwidth: Drop replacement on AIX 7.
12140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12141         AIX 7.
12142         Reported by Rainer Tammer.
12143
12144 2010-07-30  Bruno Haible  <bruno@clisp.org>
12145
12146         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12147         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12148         a 'char *'.
12149         Reported by Rainer Tammer.
12150
12151 2010-07-30  Bruno Haible  <bruno@clisp.org>
12152
12153         unlink: Update regarding AIX.
12154         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12155         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12156         Reported by Rainer Tammer.
12157
12158 2010-07-30  Bruno Haible  <bruno@clisp.org>
12159
12160         symlink: Update regarding AIX.
12161         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12162         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12163         Reported by Rainer Tammer.
12164
12165 2010-07-30  Bruno Haible  <bruno@clisp.org>
12166
12167         strndup: Update regarding AIX.
12168         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12169         AIX 7.
12170         Reported by Rainer Tammer.
12171
12172 2010-07-30  Bruno Haible  <bruno@clisp.org>
12173
12174         stat: Update regarding AIX.
12175         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12176         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12177         Reported by Rainer Tammer.
12178
12179 2010-07-30  Bruno Haible  <bruno@clisp.org>
12180
12181         truncl: Fix autoconf test.
12182         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12183         whether truncl works.
12184         Reported by Rainer Tammer.
12185
12186 2010-07-30  Bruno Haible  <bruno@clisp.org>
12187
12188         round: Update regarding AIX.
12189         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12190         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12191         Reported by Rainer Tammer.
12192
12193 2010-07-30  Bruno Haible  <bruno@clisp.org>
12194
12195         rename: Update regarding AIX.
12196         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12197         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12198         Reported by Rainer Tammer.
12199
12200 2010-07-30  Bruno Haible  <bruno@clisp.org>
12201
12202         printf.m4: Update regarding AIX.
12203         * m4/printf.m4: Update comments regarding AIX.
12204         Reported by Rainer Tammer.
12205
12206 2010-07-30  Bruno Haible  <bruno@clisp.org>
12207
12208         iconv: Update regarding AIX.
12209         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12210         AIX 7.
12211         Reported by Rainer Tammer.
12212
12213 2010-07-30  Bruno Haible  <bruno@clisp.org>
12214
12215         getopt: Update regarding AIX.
12216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12217         no on AIX.
12218         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12219         Reported by Rainer Tammer.
12220
12221 2010-07-30  Bruno Haible  <bruno@clisp.org>
12222
12223         ldexpl; Update regarding AIX.
12224         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12225         on AIX 7.
12226         Reported by Rainer Tammer.
12227
12228 2010-07-30  Bruno Haible  <bruno@clisp.org>
12229
12230         frexpl: Update regarding AIX.
12231         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12232         on AIX 7.
12233         Reported by Rainer Tammer.
12234
12235 2010-07-30  Bruno Haible  <bruno@clisp.org>
12236
12237         open, fopen: Update regarding AIX.
12238         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12239         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12240         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12241         * doc/posix-functions/fopen.texi: Likewise.
12242         Reported by Rainer Tammer.
12243
12244 2010-07-30  Bruno Haible  <bruno@clisp.org>
12245
12246         chown: Update doc regarding AIX.
12247         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12248         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12249         Reported by Rainer Tammer.
12250
12251 2010-07-30  Eric Blake  <eblake@redhat.com>
12252
12253         strtod: fix bug in replacement function on AIX
12254         * lib/strtod.c (strtod): Special case broken "0x" parse in
12255         underlying strtod.
12256         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12257         * doc/posix-functions/strtod.texi (strtod): Likewise.
12258         Reported by Rainer Tammer.
12259
12260 2010-07-30  Bruno Haible  <bruno@clisp.org>
12261
12262         mbrlen: Fix cross-compilation guess for AIX.
12263         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12264         guess. Leftover from 2008-12-22.
12265
12266 2010-07-30  Bruno Haible  <bruno@clisp.org>
12267
12268         mbrtowc: Fix cross-compilation guess for AIX.
12269         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12270         guess. Leftover from 2008-12-21.
12271
12272 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12273
12274         init.sh: work around trap limitation of some shells
12275         * tests/init.sh (setup_): Move exit trap outside of shell function.
12276
12277 2010-07-29  Eric Blake  <eblake@redhat.com>
12278
12279         strtod: aid debugging
12280         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12281         understanding why strtod is rejected.
12282
12283 2010-07-28  Bruno Haible  <bruno@clisp.org>
12284
12285         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12286         * lib/unistr/u8-chr.c: Include <string.h>.
12287         * tests/unistr/test-u8-chr.c: Likewise.
12288         * tests/unistr/test-u16-chr.c: Likewise.
12289         * tests/unistr/test-u32-chr.c: Likewise.
12290         * tests/unistr/test-u8-strchr.c: Likewise.
12291         * tests/unistr/test-u16-strchr.c: Likewise.
12292         * tests/unistr/test-u32-strchr.c: Likewise.
12293         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12294         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12295         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12296         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12297
12298 2010-07-28  Bruno Haible  <bruno@clisp.org>
12299
12300         Use spaces for indentation, not tabs.
12301         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12302
12303 2010-07-27  Bruno Haible  <bruno@clisp.org>
12304
12305         mbspcasecmp: Fix function specification.
12306         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12307         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12308         Reported by Eric Blake <eblake@redhat.com>.
12309
12310 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12311
12312         timespec: use cast and not conditional, as truncation isn't possible
12313         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12314         instead of a conditional.  Comment about the situation in more detail.
12315         This undoes most of the 2009-10-29 patch.
12316
12317 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12318
12319         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12320         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12321         * lib/unistr/u8-strchr.c: Likewise.
12322         * modules/unistr/u8-chr: Depend on memchr.
12323
12324         unistr/u*-strchr: add tests
12325         * modules/unistr/u8-strchr-tests: New file.
12326         * modules/unistr/u16-strchr-tests: New file.
12327         * modules/unistr/u32-strchr-tests: New file.
12328         * tests/unistr/test-strchr.h: New file.
12329         * tests/unistr/test-u8-strchr.c: New file.
12330         * tests/unistr/test-u16-strchr.c: New file.
12331         * tests/unistr/test-u32-strchr.c: New file.
12332
12333         unistr/u*-chr: test multibyte sequences more
12334         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12335         test vector.
12336         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12337         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12338         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12339
12340         unistr/u*-chr: test multibyte sequences
12341         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12342
12343         unistr/u*-chr: prepare for multibyte tests
12344         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12345         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12346         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12347         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12348         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12349         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12350
12351 2010-07-18  Bruno Haible  <bruno@clisp.org>
12352
12353         unistr/u8-strchr: Optimize non-ASCII argument case.
12354         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12355         because the first byte often matches anyway.
12356         Reported by Pádraig Brady <P@draigbrady.com>.
12357
12358 2010-07-15  Karl Berry  <karl@gnu.org>
12359
12360         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12361
12362 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12363
12364         getcwd: on Solaris, work better if ancestors are inaccessible
12365         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12366         buffer and size, try again with a large buffer.  This works better
12367         on Solaris, since its getcwd succeeds even if the path to the root
12368         is inaccessible, and this is helpful in common cases such as .zfs
12369         hidden directories.  Problem reported by J Chapman Flack in
12370         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12371         Use system getcwd if it's declared, not merely if it's partly
12372         working; use the partly-working test only to avoid needless effort
12373         if the system getcwd fails.
12374         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12375         comment that was already obsolete and is now even more obsolete.
12376         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12377         now might call strdup.
12378
12379 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12380
12381         pthread: Add enough so that coreutils/src/sort.c compiles.
12382         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12383         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12384         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12385         Include <sys/types.h>, in case it defines pthread_t.
12386         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12387         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12388         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12389         (pthread_rwlockattr_t, pthread_spinlock_t):
12390         New typedefs, if HAVE_PTHREAD_T is not defined.
12391         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12392         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12393         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12394         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12395         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12396         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12397         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12398         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12399         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12400         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12401         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12402         New macros.
12403         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12404         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12405         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12406         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12407         (pthread_spin_unlock): New dummy functions.
12408         (pthread_create): Return EAGAIN; don't set errno.
12409         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12410         require AC_C_INLINE.
12411         * modules/pthread (Depends-on): Add sched, time.
12412         (pthread.h): Use AM_V_GEN.
12413
12414 2010-07-13  Bruno Haible  <bruno@clisp.org>
12415
12416         striconveh: Don't malloc memory if the result buffer is sufficient.
12417         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12418         buffer if its size is sufficient.
12419         Reported by Ludovic Courtès <ludo@gnu.org>.
12420
12421 2010-07-13  Bruno Haible  <bruno@clisp.org>
12422
12423         strtod: Add safety check.
12424         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12425
12426 2010-07-12  Bruno Haible  <bruno@clisp.org>
12427
12428         Unify tests that set gl_cv_func_ldexpl_no_libm.
12429         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12430         gl_FUNC_LDEXPL.
12431         (gl_FUNC_LDEXPL): Invoke it.
12432         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12433
12434 2010-07-12  Bruno Haible  <bruno@clisp.org>
12435
12436         Unify tests that set gl_cv_func_ldexp_no_libm.
12437         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12438         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12439         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12440         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12441         * modules/strtod (Files): Add m4/ldexp.m4.
12442
12443 2010-07-12  Bruno Haible  <bruno@clisp.org>
12444
12445         Unify tests that set gl_cv_func_frexpl_no_libm.
12446         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12447         gl_FUNC_FREXPL_NO_LIBM.
12448         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12449         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12450
12451 2010-07-12  Bruno Haible  <bruno@clisp.org>
12452
12453         Unify tests that set gl_cv_func_frexp_no_libm.
12454         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12455         gl_FUNC_FREXP_NO_LIBM.
12456         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12457         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12458
12459 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12460
12461         memcoll: clarify sizes versus lengths, document better, and tweak perf
12462         * lib/memcoll.c (strcoll_loop, memcoll0):
12463         Improve quality of descriptive comments.  Name variables
12464         consistently as to whether they are lengths (which do not include
12465         terminating null) versus sizes (which do).
12466         * lib/xmemcoll.c (xmemcoll0): Likewise.
12467         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12468         returned when s1size == 0; this is easier to compile and saves
12469         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12470
12471 2010-07-12  Bruno Haible  <bruno@clisp.org>
12472
12473         Tests for module '_Exit'.
12474         * modules/_Exit-tests: New file.
12475         * tests/test-_Exit.sh: New file.
12476         * tests/test-_Exit.c: New file.
12477
12478         New module '_Exit'.
12479         * lib/stdlib.in.h (__attribute__): New macro.
12480         (_Exit): New declaration.
12481         * lib/_Exit.c: New file.
12482         * m4/_Exit.m4: New file.
12483         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12484         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12485         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12486         * modules/_Exit: New file.
12487         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12488         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12489
12490 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12491
12492         strtod: make it more-accurate typically, and don't require libm
12493         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12494         Include limits.h.  Don't include string.h.
12495         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12496         (locale_isspace): New function, so that no casts are needed to
12497         check whether *s is a space.
12498         (ldexp): Provide an unused dummy if not available.
12499         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12500         (strtod): Use them.  This implementation prefers to use the
12501         underlying strtod if available, falling back on our own code
12502         only to fix known bugs.  This is more likely to produce an
12503         accurate result.  Also, it avoids the use of libm functions.
12504         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12505         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12506         was absent, but it caused a test failure with coreutils.
12507         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12508         with libm.
12509         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12510         * modules/strtod-tests (Makefile.am): Likewise.
12511
12512 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12513             Bruno Haible  <bruno@clisp.org>
12514
12515         unistr/u8-strchr: Optimize ASCII argument case.
12516         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12517
12518 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12519
12520         (x)memcoll: minor tweaks
12521         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12522         is after the type that it qualifies.
12523         (memcoll0): Likewise.
12524         * lib/memcoll.h (memcoll0): Likewise.
12525         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12526         * lib/xmemcoll.h (xmemcoll0): Likewise.
12527         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12528         differs from memcoll in that the NUL byte is part of the argument.
12529         Omit the abort-checks, as performance is a real issue here.  Plus,
12530         the checks were wrong anyway (an off-by-one error).  Omit local
12531         variable 'diff', as it's a bit clearer that way.
12532         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12533         no longer needed.
12534
12535 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12536
12537         (x)memcoll: speedup when input is known to be NUL delimited
12538         * lib/memcoll.c: Include stdlib.
12539         (memcoll0): New function.
12540         (strcoll_loop): New function, refactored for use in both memcoll
12541         and memcoll0.
12542         * lib/memcoll.h (memcoll0): Add prototype.
12543         * lib/xmemcoll.c (xmemcoll0): New function.
12544         (collate_error): New function, refactored for use in both xmemcoll
12545         and xmemcoll0.
12546         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12547         * m4/memcoll.m4: add inline invocation.
12548
12549 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12550
12551         * build-aux/bootstrap: Remove any local translations
12552         from the translation project synchronization directory,
12553         so that local only translations are not distributed.
12554
12555 2010-07-04  Bruno Haible  <bruno@clisp.org>
12556
12557         fsusage: Clarify which code applies to which platforms.
12558         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12559         platform.
12560         * lib/fsusage.c (get_fs_usage): Likewise.
12561
12562 2010-07-04  Bruno Haible  <bruno@clisp.org>
12563
12564         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12565         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12566         Reported by Martin Lambers <marlam@marlam.de>.
12567
12568 2010-07-04  Jim Meyering  <meyering@redhat.com>
12569
12570         hash: once again explicitly disallow insertion of NULL
12571         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12572         inserting a NULL pointer cannot work with these functions.
12573         Add a comment with details.
12574         This reverts part of the 2010-07-01 commit, 5bef1a35
12575         "hash: extend module to deal with non-pointer keys".
12576
12577 2010-07-01  Bruno Haible  <bruno@clisp.org>
12578
12579         stdbool: Update doc.
12580         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12581         Info from Christian Weisgerber <naddy@mips.inka.de>.
12582
12583 2010-07-01  Jim Meyering  <meyering@redhat.com>
12584
12585         hash: extend module to deal with non-pointer keys
12586         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12587         but that allows insertion of non-pointer entries.
12588         Do not disallow an ENTRY value of NULL.
12589         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12590         * lib/hash.h (hash_insert0): Declare.
12591
12592 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12593
12594         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12595         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12596         not present (i.e. with autoconf 2.59 and when using gettextize, not
12597         gnulib), require AC_GNU_SOURCE instead.
12598
12599 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12600
12601         idpriv-drop: Fix tests.
12602         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12603         not to the test-idpriv-droptemp program.
12604
12605 2010-06-29  Bruno Haible  <bruno@clisp.org>
12606
12607         string: Fix syntax error with g++ 2.96.
12608         * lib/string.in.h (__pure__): Remove definition.
12609         (_GL_ATTRIBUTE_PURE): New macro.
12610         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12611         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12612         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12613
12614 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12615
12616         unitypes: Fix bug introduced on 2010-05-18.
12617         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12618
12619 2010-06-22  Eric Blake  <eblake@redhat.com>
12620
12621         memmem: slight optimization
12622         * lib/str-two-way.h (critical_factorization): Update comments.
12623         Reduce work during factorization phase.
12624         Reported by Carlos Bueno <carlos@bueno.org>.
12625
12626 2010-06-21  Bruno Haible  <bruno@clisp.org>
12627
12628         Fix HAVE_CALLOC_POSIX misnomer.
12629         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12630         !HAVE_CALLOC_POSIX.
12631         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12632         HAVE_CALLOC_POSIX.
12633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12634         instead of HAVE_CALLOC_POSIX.
12635         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12636         HAVE_CALLOC_POSIX.
12637
12638         Use modern idiom for calloc() replacement.
12639         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12640         AC_FUNC_CALLOC.
12641         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12642         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12643         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12644         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12645         (gl_REPLACE_CALLOC): New macro.
12646
12647 2010-06-21  Bruno Haible  <bruno@clisp.org>
12648
12649         Fix HAVE_REALLOC_POSIX misnomer.
12650         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12651         !HAVE_REALLOC_POSIX.
12652         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12653         HAVE_REALLOC_POSIX.
12654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12655         instead of HAVE_REALLOC_POSIX.
12656         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12657         HAVE_REALLOC_POSIX.
12658
12659         Use modern idiom for realloc() replacement.
12660         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12661         AC_FUNC_REALLOC.
12662         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12663         Autoconf's AC_FUNC_REALLOC.
12664         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12665         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12666         (gl_REPLACE_REALLOC): New macro.
12667         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12668
12669 2010-06-21  Bruno Haible  <bruno@clisp.org>
12670
12671         Fix HAVE_MALLOC_POSIX misnomer.
12672         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12673         !HAVE_MALLOC_POSIX.
12674         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12675         HAVE_MALLOC_POSIX.
12676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12677         instead of HAVE_MALLOC_POSIX.
12678         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12679         HAVE_MALLOC_POSIX.
12680
12681         Use modern idiom for malloc() replacement.
12682         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12683         AC_FUNC_MALLOC.
12684         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12685         Autoconf's AC_FUNC_MALLOC.
12686         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12687         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12688         (gl_REPLACE_MALLOC): New macro.
12689         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12690
12691 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12692
12693         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12694         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12695         This macro takes 3 arguments, not 4.
12696
12697 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12698
12699         ipv6: fix detection under mingw
12700         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12701         in6_addr.
12702
12703 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12704
12705         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12706         that strtod() works when cross-compiling to a glibc version known
12707         to work.
12708
12709 2010-06-15  Bruno Haible  <bruno@clisp.org>
12710
12711         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12712
12713 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12714
12715         select: Correct timeout.
12716         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12717
12718 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12719
12720         git-version-gen: init shell var to avoid env var influence
12721         * build-aux/git-version-gen (v): Init shell var to empty.
12722
12723 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12724
12725         priv-set: Don't assume that priv.h exists merely because getppriv does.
12726         See Jan Andersen's bug report about AIX 5L in
12727         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12728         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12729         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12730         * lib/priv-set.h: Likewise.
12731         * tests/test-priv-set.c: Likewise.
12732
12733 2010-06-13  Bruno Haible  <bruno@clisp.org>
12734
12735         relocatable: Make it easier to test whether to install wrappers.
12736         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12737         RELOCATABLE_VIA_WRAPPER.
12738
12739 2010-06-13  Bruno Haible  <bruno@clisp.org>
12740
12741         gnulib-tool: Display specified modules and dependencies differently.
12742         * gnulib-tool (func_show_module_list): New function.
12743         (func_import, func_create_testdir): Invoke it.
12744         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12745
12746 2010-06-13  Bruno Haible  <bruno@clisp.org>
12747
12748         gnulib-tool: Align code of func_import and func_create_testdir.
12749         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12750         specified_modules.
12751
12752 2010-06-12  Jim Meyering  <meyering@redhat.com>
12753
12754         test-inttostr: avoid spurious failure on Solaris 9
12755         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12756         to accept "%ju".  Reported by Bruno Haible.
12757
12758 2010-06-11  Jim Meyering  <meyering@redhat.com>
12759
12760         test-sys_socket: mark variables as used more readably
12761         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12762         as "used" explicitly via (void) statement casts.  This is more
12763         readable than using them in an artificial return expression.
12764         Suggestion from Bruno Haible.
12765
12766 2010-06-11  Bruno Haible  <bruno@clisp.org>
12767
12768         Avoid some more warnings from "gcc -Wwrite-strings".
12769         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12770         to 'const char *'.
12771         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12772         * tests/test-c-strcasestr.c (main): Likewise.
12773         * tests/test-mbscasestr1.c (main): Likewise.
12774         * tests/test-mbscasestr2.c (main): Likewise.
12775         * tests/test-memmem.c (main): Likewise.
12776         * tests/test-strstr.c (main): Likewise.
12777         * tests/test-strcasestr.c (main): Likewise.
12778
12779 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12780
12781         init.sh: change framework_failure_ to fail with status 99, not 1
12782         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12783         automake's parallel-tests rule that this is an unexpected failure,
12784         even if the test is listed in XFAIL_TESTS.
12785
12786 2010-06-11  Jim Meyering  <meyering@redhat.com>
12787
12788         test-inttostr: avoid warnings about 4-6KB literal strings
12789         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12790         Include "macros.h", for its definition of ASSERT.
12791         (CK): s/assert/ASSERT/
12792         * modules/inttostr-tests (Files): Add macros.h.
12793
12794         init.sh: don't use $ME_ or skip_ before they are defined
12795         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12796         their first uses.  Also hoist their companions: warn_, fail_,
12797         framework_failure_, $stderr_fileno.  Prompted by a patch from
12798         Stefano Lattarini.
12799
12800         test-sys_socket: avoid set-but-not-used warnings from gcc
12801         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12802         avoid warning about set-but-not-used variables.
12803
12804         test-xvasprintf: avoid 'const' discard warnings
12805         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12806         "const" when assigning from literal strings.
12807         (test_xasprintf): Add "void" in function argument list to placate
12808         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12809
12810         tests: avoid compilation warnings in argmatch and exclude tests...
12811         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12812         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12813         Since it always exits, declare with the "noreturn" attribute.
12814         * tests/test-argmatch.c: Likewise.
12815
12816         tests: avoid 'const' discard warnings in mbsstr tests
12817         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12818         * tests/test-mbsstr2.c (main): Likewise.
12819
12820         test-verify: avoid warning from gcc's -Wmissing-declarations
12821         * tests/test-verify.c (function): Declare to be static.
12822
12823         test-inttostr.c: include <string.h> for use of strcmp
12824         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12825
12826         test-linkat: avoid failed assertion on "other" architectures
12827         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12828         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12829         sparc: https://bugs.launchpad.net/bugs/591968
12830
12831 2010-06-11  Jim Meyering  <meyering@redhat.com>
12832
12833         printf.m4: avoid autoconf's "Expanded Before Required" warning
12834         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12835         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12836         autoconf warning.
12837
12838 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12839
12840         Replacement header templates are now named with ".in", not "_".
12841         * doc/gnulib-intro.texi: Correct.
12842
12843 2010-06-10  Jim Meyering  <meyering@redhat.com>
12844
12845         inttostr-tests: depend on snprintf, not snprintf-posix
12846         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12847         snprintf-posix, to avoid this aclocal failure:
12848           missing file gnulib-tests/vasnprintf.c
12849           configure.ac:45: error: expected source file, required through \
12850           AC_LIBSOURCES, not found
12851
12852 2010-06-10  Jim Meyering  <meyering@redhat.com>
12853
12854         inttostr: add a new function, inttostr, and tests
12855         The namesake function was not available.  The existence of the
12856         template file, inttostr.c makes its addition nontrivial.
12857         * lib/anytostr.c: Rename from inttostr.c.
12858         (anytostr): Rename from inttostr.
12859         * lib/inttostr.c: New file.
12860         * modules/inttostr (Files): Add anytostr.c.
12861         (Makefile.am): Set lib_SOURCES instead of ...
12862         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12863         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12864         * lib/offtostr.c: Likewise.
12865         * lib/uinttostr.c: Likewise.
12866         * lib/umaxtostr.c: Likewise.
12867         * modules/inttostr-tests: New file.
12868         * tests/test-inttostr.c: New file.  Test these functions.
12869
12870 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12871             Bruno Haible  <bruno@clisp.org>
12872
12873         Add "Extending Gnulib" chapter to manual.
12874         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12875         chapter.
12876         (Extending Gnulib): New chapter.
12877         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12878         chapter.
12879
12880 2010-06-09  Bruno Haible  <bruno@clisp.org>
12881
12882         Avoid relocwrapper link errors due to gnulib replacement functions.
12883         * lib/areadlink.c: Use the system's malloc, realloc functions.
12884         (areadlink): Set errno to ENOMEM explicitly.
12885         * modules/areadlink (Depends-on): Remove malloc-posix.
12886         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12887
12888 2010-06-09  Bruno Haible  <bruno@clisp.org>
12889
12890         Avoid relocwrapper link errors due to gnulib replacement functions.
12891         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12892         * lib/malloca.c: Likewise.
12893         * lib/relocatable.c: Likewise.
12894         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12895         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12896         * lib/setenv.c: Use the system's malloc, realloc functions.
12897         * lib/strerror.c: Use the system's sprintf function.
12898         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12899
12900 2010-06-04  Bruno Haible  <bruno@clisp.org>
12901
12902         Prefer documented low-level autoconf macro names.
12903         * m4/lib-link.m4: Use m4_translit instead of translit.
12904         * m4/environ.m4: Likewise.
12905         * m4/mathfunc.m4: Likewise.
12906         * m4/onceonly.m4: Likewise.
12907         * m4/stdint.m4: Likewise.
12908         Suggested by Eric Blake.
12909
12910 2010-06-04  Martin Lambers  <marlam@marlam.de>
12911             Bruno Haible  <bruno@clisp.org>
12912
12913         havelib: Allow library names with '+' characters.
12914         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12915         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12916
12917 2010-06-09  Bruno Haible  <bruno@clisp.org>
12918
12919         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12920         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12921         realloc failed.
12922
12923 2010-06-08  Peter Simons  <simons@cryp.to>
12924
12925         maint.mk: make the news-check rule more configurable
12926         * top/maint.mk (news-check-lines-spec): New variable.
12927         (news-check): Use "sed -n 1,10p" in place of "head".
12928
12929 2010-06-07  Jim Meyering  <meyering@redhat.com>
12930
12931         do-release-commit-and-tag: fix typo in --help
12932         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12933
12934         regex: avoid new dead-code warning with gcc-4.6.0
12935         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12936         if-block containing a while-loop.  It's been unused for at least
12937         5 years.
12938
12939 2010-06-05  Bruno Haible  <bruno@clisp.org>
12940
12941         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12942         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12943
12944 2010-06-04  Bruno Haible  <bruno@clisp.org>
12945
12946         Update to GNU gettext 0.18.1.
12947         * modules/gettext (configure.ac): Require gettext infrastructure from
12948         version 0.18.1.
12949
12950 2010-06-03  Bruno Haible  <bruno@clisp.org>
12951
12952         Don't use AC_LIBOBJ with file names in subdirectories.
12953         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12954         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12955         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12956         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12957         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12958         gl_LIBUNISTRING_LIBSOURCE.
12959         (Makefile.am): Augment lib_SOURCES here, conditionally.
12960         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12961
12962 2010-06-03  Bruno Haible  <bruno@clisp.org>
12963
12964         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12965         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12966         expansion does not end with a newline.
12967         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12968         unnecessary newline.
12969
12970 2010-06-03  Bruno Haible  <bruno@clisp.org>
12971
12972         Reduce dependencies.
12973         * tests/test-quotearg.h: New file, extracted from
12974         tests/test-quotearg.c.
12975         * tests/test-quotearg-simple.c: New file, extracted from
12976         tests/test-quotearg.c.
12977         * tests/test-quotearg.c: Don't include <ctype.h>.
12978         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12979         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12980         use_quote_double_quotes, use_quotearg_colon): Moved to
12981         tests/test-quotearg.h.
12982         (results_g, flag_results, custom_quotes, custom_results): Moved
12983         to tests/test-quotearg-simple.c.
12984         (main): Moved the part that does not depend on gettext to
12985         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12986         performed.
12987         * modules/quotearg-simple: New file.
12988         * modules/quotearg-simple-tests: New file.
12989         * modules/quotearg (Depends-on): Add quotearg-simple.
12990         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12991         (Files): Add tests/test-quotearg.h.
12992         Reported by Paolo Bonzini.
12993
12994 2010-06-03  Bruno Haible  <bruno@clisp.org>
12995
12996         Reduce dependencies.
12997         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12998
12999 2010-06-03  Bruno Haible  <bruno@clisp.org>
13000
13001         time: Undefine more broken macros.
13002         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13003         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13004         Reported by Eric Blake.
13005
13006 2010-06-03  Bruno Haible  <bruno@clisp.org>
13007
13008         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13009         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13010         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13011         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13012         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13013         Reported by Ludovic Courtès <ludo@gnu.org>.
13014
13015 2010-06-02  Eric Blake  <eblake@redhat.com>
13016
13017         time: work with mingw + pthreads-win32 library
13018         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13019         if timespec is defined only in pthread.h.
13020         * modules/time (Makefile.am): Substitute it.
13021         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13022         <pthread.h>, when needed.
13023         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13024         from the library.
13025
13026 2010-05-31  Bruno Haible  <bruno@clisp.org>
13027
13028         Avoid expanding two macros in the wrong order.
13029         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13030         gl_LIBUNISTRING if it is defined.
13031         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13032         autoconf >= 2.64.
13033         Reported by Ludovic Courtès <ludo@gnu.org>.
13034
13035 2010-05-27  Jim Meyering  <meyering@redhat.com>
13036
13037         maint.mk: also prohibit "#undef" of always-defined symbols
13038         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13039         Allow more than one space before the symbol name.
13040         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13041         the regexp uses alternation.
13042
13043 2010-05-26  Eric Blake  <eblake@redhat.com>
13044
13045         maint.mk: avoid echo -e
13046         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13047         Convert all uses of echo -* to printf.
13048         Reported by Matthias Bolte.
13049
13050 2010-05-25  Bruno Haible  <bruno@clisp.org>
13051
13052         Update to GNU gettext 0.18, part 2.
13053         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13054         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13055
13056 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13057
13058         Add missing include in test-pwrite.c.
13059         * tests/test-pwrite.c: Include string.h, for strcmp.
13060
13061 2010-05-24  Bruno Haible  <bruno@clisp.org>
13062
13063         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13064
13065 2010-05-24  Bruno Haible  <bruno@clisp.org>
13066
13067         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13068         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13069         iconveh_error argument.
13070         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13071         U_STRCONV_TO_LOCALE.
13072         * lib/unistr/u16-strcoll.c: Likewise.
13073         * lib/unistr/u32-strcoll.c: Likewise.
13074         * modules/unistr/u8-strcoll (Depends-on): Add
13075         uniconv/u8-strconv-to-enc, localcharset. Remove
13076         uniconv/u8-strconv-to-locale.
13077         (configure.ac): Bump version number.
13078         * modules/unistr/u16-strcoll (Depends-on): Add
13079         uniconv/u16-strconv-to-enc, localcharset. Remove
13080         uniconv/u16-strconv-to-locale.
13081         (configure.ac): Bump version number.
13082         * modules/unistr/u32-strcoll (Depends-on): Add
13083         uniconv/u32-strconv-to-enc, localcharset. Remove
13084         uniconv/u32-strconv-to-locale.
13085         (configure.ac): Bump version number.
13086
13087 2010-05-24  Bruno Haible  <bruno@clisp.org>
13088
13089         Avoid a test failure on NetBSD 5.0.
13090         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13091         an iconv() bug.
13092
13093 2010-05-24  Bruno Haible  <bruno@clisp.org>
13094
13095         Adjust #include directive style.
13096         * modules/regex (Includes): Recommend to write <regex.h>.
13097
13098 2010-05-24  Bruno Haible  <bruno@clisp.org>
13099
13100         regex: Don't require alloca.
13101         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13102         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13103         only inside if (0).
13104
13105 2010-05-23  Jim Meyering  <meyering@redhat.com>
13106
13107         test-renameat.c: include <sys/stat.h>
13108         * tests/test-renameat.c: Include <sys/stat.h>; required for
13109         definition of S_IS* macros.
13110
13111 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13112
13113         Update maintainer documentation for 'relocatable-prog' module.
13114         * doc/relocatable-maint.texi: Update.
13115         Comments by Bruno Haible.
13116
13117 2010-05-23  Bruno Haible  <bruno@clisp.org>
13118
13119         git-merge-changelog: Enable --split-merged-entry by default.
13120         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13121         (usage): Don't mention this option any more.
13122         Reported by Ralf Wildenhues.
13123
13124 2010-05-23  Jim Meyering  <meyering@redhat.com>
13125
13126         test-pwrite: do not leave behind a test file named "out"
13127         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13128         The trivial-looking use of init.sh is really necessary.
13129         It ensures that the temporary file, "out", is created in
13130         a temporary directory, and removed upon termination.
13131         * tests/test-pwrite.sh: Re-add file.
13132         * modules/pwrite-tests: Reference it.
13133
13134 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13135
13136         Fix output redirection buglet in init.sh.
13137         * tests/init.sh: Fix redirection of stderr.
13138
13139 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13140
13141         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13142
13143 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13144
13145         * modules/valgrind-tests: New file.
13146         * m4/valgrind-tests.m4: New file.
13147         * doc/valgrind-tests.texi: New file.
13148         * doc/gnulib.texi (Running self-tests under valgrind): New
13149         section.
13150
13151 2010-05-19  Bruno Haible  <bruno@clisp.org>
13152
13153         Clean up dead code in recent commit.
13154         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13155         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13156         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13157         Suggested by Paolo Bonzini.
13158
13159 2010-05-19  Bruno Haible  <bruno@clisp.org>
13160
13161         Avoid valgrind error reports from libunistring.
13162         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13163         * modules/libunistring (Files): Add it.
13164         * modules/libunistring-optional (Files): Likewise.
13165
13166 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13167             Bruno Haible  <bruno@clisp.org>
13168
13169         New module 'libunistring-optional'.
13170         * modules/libunistring-optional: New file.
13171         * m4/libunistring-base.m4: New file.
13172         * m4/libunistring-optional.m4: New file.
13173         * lib/unicase.in.h: Renamed from lib/unicase.h.
13174         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13175         * lib/unictype.in.h: Renamed from lib/unictype.h.
13176         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13177         * lib/uniname.in.h: Renamed from lib/uniname.h.
13178         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13179         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13180         * lib/unistr.in.h: Renamed from lib/unistr.h.
13181         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13182         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13183         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13184         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13185         gl_LIBUNISTRING. If the library was found, determine the installed
13186         version and set LIBUNISTRING_VERSION.
13187         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13188         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13189         handle a configuration option --with-included-libunistring.
13190         * modules/libunistring (Files): Add m4/absolute-header.m4.
13191         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13192         Add m4/libunistring-base.m4.
13193         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13194         (Makefile.am): Build unicase.h from unicase.in.h.
13195         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13196         Add m4/libunistring-base.m4.
13197         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13198         (Makefile.am): Build uniconv.h from uniconv.in.h.
13199         * modules/unictype/base (Files): Use unictype.in.h instead of
13200         unictype.h. Add m4/libunistring-base.m4.
13201         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13202         (Makefile.am): Build unictype.h from unictype.in.h.
13203         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13204         Add m4/libunistring-base.m4.
13205         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13206         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13207         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13208         Add m4/libunistring-base.m4.
13209         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13210         (Makefile.am): Build uniname.h from uniname.in.h.
13211         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13212         Add m4/libunistring-base.m4.
13213         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13214         (Makefile.am): Build uninorm.h from uninorm.in.h.
13215         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13216         unistdio.h. Add m4/libunistring-base.m4.
13217         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13218         (Makefile.am): Build unistdio.h from unistdio.in.h.
13219         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13220         Add m4/libunistring-base.m4.
13221         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13222         (Makefile.am): Build unistr.h from unistr.in.h.
13223         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13224         Add m4/libunistring-base.m4.
13225         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13226         (Makefile.am): Build unitypes.h from unitypes.in.h.
13227         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13228         Add m4/libunistring-base.m4.
13229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13230         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13231         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13232         uniwidth.h. Add m4/libunistring-base.m4.
13233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13234         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13235         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13236         instead of augmenting lib_SOURCES.
13237         * modules/unicase/empty-suffix-context: Likewise.
13238         * modules/unicase/locale-language: Likewise.
13239         * modules/unicase/tolower: Likewise.
13240         * modules/unicase/totitle: Likewise.
13241         * modules/unicase/toupper: Likewise.
13242         * modules/unicase/u8-casecmp: Likewise.
13243         * modules/unicase/u8-casecoll: Likewise.
13244         * modules/unicase/u8-casefold: Likewise.
13245         * modules/unicase/u8-casexfrm: Likewise.
13246         * modules/unicase/u8-ct-casefold: Likewise.
13247         * modules/unicase/u8-ct-tolower: Likewise.
13248         * modules/unicase/u8-ct-totitle: Likewise.
13249         * modules/unicase/u8-ct-toupper: Likewise.
13250         * modules/unicase/u8-is-cased: Likewise.
13251         * modules/unicase/u8-is-casefolded: Likewise.
13252         * modules/unicase/u8-is-lowercase: Likewise.
13253         * modules/unicase/u8-is-titlecase: Likewise.
13254         * modules/unicase/u8-is-uppercase: Likewise.
13255         * modules/unicase/u8-prefix-context: Likewise.
13256         * modules/unicase/u8-suffix-context: Likewise.
13257         * modules/unicase/u8-tolower: Likewise.
13258         * modules/unicase/u8-totitle: Likewise.
13259         * modules/unicase/u8-toupper: Likewise.
13260         * modules/unicase/u16-casecmp: Likewise.
13261         * modules/unicase/u16-casecoll: Likewise.
13262         * modules/unicase/u16-casefold: Likewise.
13263         * modules/unicase/u16-casexfrm: Likewise.
13264         * modules/unicase/u16-ct-casefold: Likewise.
13265         * modules/unicase/u16-ct-tolower: Likewise.
13266         * modules/unicase/u16-ct-totitle: Likewise.
13267         * modules/unicase/u16-ct-toupper: Likewise.
13268         * modules/unicase/u16-is-cased: Likewise.
13269         * modules/unicase/u16-is-casefolded: Likewise.
13270         * modules/unicase/u16-is-lowercase: Likewise.
13271         * modules/unicase/u16-is-titlecase: Likewise.
13272         * modules/unicase/u16-is-uppercase: Likewise.
13273         * modules/unicase/u16-prefix-context: Likewise.
13274         * modules/unicase/u16-suffix-context: Likewise.
13275         * modules/unicase/u16-tolower: Likewise.
13276         * modules/unicase/u16-totitle: Likewise.
13277         * modules/unicase/u16-toupper: Likewise.
13278         * modules/unicase/u32-casecmp: Likewise.
13279         * modules/unicase/u32-casecoll: Likewise.
13280         * modules/unicase/u32-casefold: Likewise.
13281         * modules/unicase/u32-casexfrm: Likewise.
13282         * modules/unicase/u32-ct-casefold: Likewise.
13283         * modules/unicase/u32-ct-tolower: Likewise.
13284         * modules/unicase/u32-ct-totitle: Likewise.
13285         * modules/unicase/u32-ct-toupper: Likewise.
13286         * modules/unicase/u32-is-cased: Likewise.
13287         * modules/unicase/u32-is-casefolded: Likewise.
13288         * modules/unicase/u32-is-lowercase: Likewise.
13289         * modules/unicase/u32-is-titlecase: Likewise.
13290         * modules/unicase/u32-is-uppercase: Likewise.
13291         * modules/unicase/u32-prefix-context: Likewise.
13292         * modules/unicase/u32-suffix-context: Likewise.
13293         * modules/unicase/u32-tolower: Likewise.
13294         * modules/unicase/u32-totitle: Likewise.
13295         * modules/unicase/u32-toupper: Likewise.
13296         * modules/unicase/ulc-casecmp: Likewise.
13297         * modules/unicase/ulc-casecoll: Likewise.
13298         * modules/unicase/ulc-casexfrm: Likewise.
13299         * modules/uniconv/u8-conv-from-enc: Likewise.
13300         * modules/uniconv/u8-conv-to-enc: Likewise.
13301         * modules/uniconv/u8-strconv-from-enc: Likewise.
13302         * modules/uniconv/u8-strconv-from-locale: Likewise.
13303         * modules/uniconv/u8-strconv-to-enc: Likewise.
13304         * modules/uniconv/u8-strconv-to-locale: Likewise.
13305         * modules/uniconv/u16-conv-from-enc: Likewise.
13306         * modules/uniconv/u16-conv-to-enc: Likewise.
13307         * modules/uniconv/u16-strconv-from-enc: Likewise.
13308         * modules/uniconv/u16-strconv-from-locale: Likewise.
13309         * modules/uniconv/u16-strconv-to-enc: Likewise.
13310         * modules/uniconv/u16-strconv-to-locale: Likewise.
13311         * modules/uniconv/u32-conv-from-enc: Likewise.
13312         * modules/uniconv/u32-conv-to-enc: Likewise.
13313         * modules/uniconv/u32-strconv-from-enc: Likewise.
13314         * modules/uniconv/u32-strconv-from-locale: Likewise.
13315         * modules/uniconv/u32-strconv-to-enc: Likewise.
13316         * modules/uniconv/u32-strconv-to-locale: Likewise.
13317         * modules/unictype/bidicategory-byname: Likewise.
13318         * modules/unictype/bidicategory-name: Likewise.
13319         * modules/unictype/bidicategory-of: Likewise.
13320         * modules/unictype/bidicategory-test: Likewise.
13321         * modules/unictype/block-list: Likewise.
13322         * modules/unictype/block-test: Likewise.
13323         * modules/unictype/category-C: Likewise.
13324         * modules/unictype/category-Cc: Likewise.
13325         * modules/unictype/category-Cf: Likewise.
13326         * modules/unictype/category-Cn: Likewise.
13327         * modules/unictype/category-Co: Likewise.
13328         * modules/unictype/category-Cs: Likewise.
13329         * modules/unictype/category-L: Likewise.
13330         * modules/unictype/category-Ll: Likewise.
13331         * modules/unictype/category-Lm: Likewise.
13332         * modules/unictype/category-Lo: Likewise.
13333         * modules/unictype/category-Lt: Likewise.
13334         * modules/unictype/category-Lu: Likewise.
13335         * modules/unictype/category-M: Likewise.
13336         * modules/unictype/category-Mc: Likewise.
13337         * modules/unictype/category-Me: Likewise.
13338         * modules/unictype/category-Mn: Likewise.
13339         * modules/unictype/category-N: Likewise.
13340         * modules/unictype/category-Nd: Likewise.
13341         * modules/unictype/category-Nl: Likewise.
13342         * modules/unictype/category-No: Likewise.
13343         * modules/unictype/category-P: Likewise.
13344         * modules/unictype/category-Pc: Likewise.
13345         * modules/unictype/category-Pd: Likewise.
13346         * modules/unictype/category-Pe: Likewise.
13347         * modules/unictype/category-Pf: Likewise.
13348         * modules/unictype/category-Pi: Likewise.
13349         * modules/unictype/category-Po: Likewise.
13350         * modules/unictype/category-Ps: Likewise.
13351         * modules/unictype/category-S: Likewise.
13352         * modules/unictype/category-Sc: Likewise.
13353         * modules/unictype/category-Sk: Likewise.
13354         * modules/unictype/category-Sm: Likewise.
13355         * modules/unictype/category-So: Likewise.
13356         * modules/unictype/category-Z: Likewise.
13357         * modules/unictype/category-Zl: Likewise.
13358         * modules/unictype/category-Zp: Likewise.
13359         * modules/unictype/category-Zs: Likewise.
13360         * modules/unictype/category-and: Likewise.
13361         * modules/unictype/category-and-not: Likewise.
13362         * modules/unictype/category-byname: Likewise.
13363         * modules/unictype/category-name: Likewise.
13364         * modules/unictype/category-none: Likewise.
13365         * modules/unictype/category-of: Likewise.
13366         * modules/unictype/category-or: Likewise.
13367         * modules/unictype/category-test: Likewise.
13368         * modules/unictype/combining-class: Likewise.
13369         * modules/unictype/ctype-alnum: Likewise.
13370         * modules/unictype/ctype-alpha: Likewise.
13371         * modules/unictype/ctype-blank: Likewise.
13372         * modules/unictype/ctype-cntrl: Likewise.
13373         * modules/unictype/ctype-digit: Likewise.
13374         * modules/unictype/ctype-graph: Likewise.
13375         * modules/unictype/ctype-lower: Likewise.
13376         * modules/unictype/ctype-print: Likewise.
13377         * modules/unictype/ctype-punct: Likewise.
13378         * modules/unictype/ctype-space: Likewise.
13379         * modules/unictype/ctype-upper: Likewise.
13380         * modules/unictype/ctype-xdigit: Likewise.
13381         * modules/unictype/decimal-digit: Likewise.
13382         * modules/unictype/digit: Likewise.
13383         * modules/unictype/mirror: Likewise.
13384         * modules/unictype/numeric: Likewise.
13385         * modules/unictype/property-alphabetic: Likewise.
13386         * modules/unictype/property-ascii-hex-digit: Likewise.
13387         * modules/unictype/property-bidi-arabic-digit: Likewise.
13388         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13389         * modules/unictype/property-bidi-block-separator: Likewise.
13390         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13391         * modules/unictype/property-bidi-common-separator: Likewise.
13392         * modules/unictype/property-bidi-control: Likewise.
13393         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13394         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13395         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13396         * modules/unictype/property-bidi-european-digit: Likewise.
13397         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13398         * modules/unictype/property-bidi-left-to-right: Likewise.
13399         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13400         * modules/unictype/property-bidi-other-neutral: Likewise.
13401         * modules/unictype/property-bidi-pdf: Likewise.
13402         * modules/unictype/property-bidi-segment-separator: Likewise.
13403         * modules/unictype/property-bidi-whitespace: Likewise.
13404         * modules/unictype/property-byname: Likewise.
13405         * modules/unictype/property-combining: Likewise.
13406         * modules/unictype/property-composite: Likewise.
13407         * modules/unictype/property-currency-symbol: Likewise.
13408         * modules/unictype/property-dash: Likewise.
13409         * modules/unictype/property-decimal-digit: Likewise.
13410         * modules/unictype/property-default-ignorable-code-point: Likewise.
13411         * modules/unictype/property-deprecated: Likewise.
13412         * modules/unictype/property-diacritic: Likewise.
13413         * modules/unictype/property-extender: Likewise.
13414         * modules/unictype/property-format-control: Likewise.
13415         * modules/unictype/property-grapheme-base: Likewise.
13416         * modules/unictype/property-grapheme-extend: Likewise.
13417         * modules/unictype/property-grapheme-link: Likewise.
13418         * modules/unictype/property-hex-digit: Likewise.
13419         * modules/unictype/property-hyphen: Likewise.
13420         * modules/unictype/property-id-continue: Likewise.
13421         * modules/unictype/property-id-start: Likewise.
13422         * modules/unictype/property-ideographic: Likewise.
13423         * modules/unictype/property-ids-binary-operator: Likewise.
13424         * modules/unictype/property-ids-trinary-operator: Likewise.
13425         * modules/unictype/property-ignorable-control: Likewise.
13426         * modules/unictype/property-iso-control: Likewise.
13427         * modules/unictype/property-join-control: Likewise.
13428         * modules/unictype/property-left-of-pair: Likewise.
13429         * modules/unictype/property-line-separator: Likewise.
13430         * modules/unictype/property-logical-order-exception: Likewise.
13431         * modules/unictype/property-lowercase: Likewise.
13432         * modules/unictype/property-math: Likewise.
13433         * modules/unictype/property-non-break: Likewise.
13434         * modules/unictype/property-not-a-character: Likewise.
13435         * modules/unictype/property-numeric: Likewise.
13436         * modules/unictype/property-other-alphabetic: Likewise.
13437         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13438         * modules/unictype/property-other-grapheme-extend: Likewise.
13439         * modules/unictype/property-other-id-continue: Likewise.
13440         * modules/unictype/property-other-id-start: Likewise.
13441         * modules/unictype/property-other-lowercase: Likewise.
13442         * modules/unictype/property-other-math: Likewise.
13443         * modules/unictype/property-other-uppercase: Likewise.
13444         * modules/unictype/property-paired-punctuation: Likewise.
13445         * modules/unictype/property-paragraph-separator: Likewise.
13446         * modules/unictype/property-pattern-syntax: Likewise.
13447         * modules/unictype/property-pattern-white-space: Likewise.
13448         * modules/unictype/property-private-use: Likewise.
13449         * modules/unictype/property-punctuation: Likewise.
13450         * modules/unictype/property-quotation-mark: Likewise.
13451         * modules/unictype/property-radical: Likewise.
13452         * modules/unictype/property-sentence-terminal: Likewise.
13453         * modules/unictype/property-soft-dotted: Likewise.
13454         * modules/unictype/property-space: Likewise.
13455         * modules/unictype/property-terminal-punctuation: Likewise.
13456         * modules/unictype/property-test: Likewise.
13457         * modules/unictype/property-titlecase: Likewise.
13458         * modules/unictype/property-unassigned-code-value: Likewise.
13459         * modules/unictype/property-unified-ideograph: Likewise.
13460         * modules/unictype/property-uppercase: Likewise.
13461         * modules/unictype/property-variation-selector: Likewise.
13462         * modules/unictype/property-white-space: Likewise.
13463         * modules/unictype/property-xid-continue: Likewise.
13464         * modules/unictype/property-xid-start: Likewise.
13465         * modules/unictype/property-zero-width: Likewise.
13466         * modules/unictype/scripts: Likewise.
13467         * modules/unictype/syntax-c-ident: Likewise.
13468         * modules/unictype/syntax-c-whitespace: Likewise.
13469         * modules/unictype/syntax-java-ident: Likewise.
13470         * modules/unictype/syntax-java-whitespace: Likewise.
13471         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13472         * modules/unilbrk/u8-width-linebreaks: Likewise.
13473         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13474         * modules/unilbrk/u16-width-linebreaks: Likewise.
13475         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13476         * modules/unilbrk/u32-width-linebreaks: Likewise.
13477         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13478         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13479         * modules/uniname/uniname: Likewise.
13480         * modules/uninorm/canonical-decomposition: Likewise.
13481         * modules/uninorm/composition: Likewise.
13482         * modules/uninorm/decomposing-form: Likewise.
13483         * modules/uninorm/decomposition: Likewise.
13484         * modules/uninorm/filter: Likewise.
13485         * modules/uninorm/nfc: Likewise.
13486         * modules/uninorm/nfd: Likewise.
13487         * modules/uninorm/nfkc: Likewise.
13488         * modules/uninorm/nfkd: Likewise.
13489         * modules/uninorm/u8-normalize: Likewise.
13490         * modules/uninorm/u8-normcmp: Likewise.
13491         * modules/uninorm/u8-normcoll: Likewise.
13492         * modules/uninorm/u8-normxfrm: Likewise.
13493         * modules/uninorm/u16-normalize: Likewise.
13494         * modules/uninorm/u16-normcmp: Likewise.
13495         * modules/uninorm/u16-normcoll: Likewise.
13496         * modules/uninorm/u16-normxfrm: Likewise.
13497         * modules/uninorm/u32-normalize: Likewise.
13498         * modules/uninorm/u32-normcmp: Likewise.
13499         * modules/uninorm/u32-normcoll: Likewise.
13500         * modules/uninorm/u32-normxfrm: Likewise.
13501         * modules/unistdio/u8-asnprintf: Likewise.
13502         * modules/unistdio/u8-asprintf: Likewise.
13503         * modules/unistdio/u8-snprintf: Likewise.
13504         * modules/unistdio/u8-sprintf: Likewise.
13505         * modules/unistdio/u8-u8-asnprintf: Likewise.
13506         * modules/unistdio/u8-u8-asprintf: Likewise.
13507         * modules/unistdio/u8-u8-snprintf: Likewise.
13508         * modules/unistdio/u8-u8-sprintf: Likewise.
13509         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13510         * modules/unistdio/u8-u8-vasprintf: Likewise.
13511         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13512         * modules/unistdio/u8-u8-vsprintf: Likewise.
13513         * modules/unistdio/u8-vasnprintf: Likewise.
13514         * modules/unistdio/u8-vasprintf: Likewise.
13515         * modules/unistdio/u8-vsnprintf: Likewise.
13516         * modules/unistdio/u8-vsprintf: Likewise.
13517         * modules/unistdio/u16-asnprintf: Likewise.
13518         * modules/unistdio/u16-asprintf: Likewise.
13519         * modules/unistdio/u16-snprintf: Likewise.
13520         * modules/unistdio/u16-sprintf: Likewise.
13521         * modules/unistdio/u16-u16-asnprintf: Likewise.
13522         * modules/unistdio/u16-u16-asprintf: Likewise.
13523         * modules/unistdio/u16-u16-snprintf: Likewise.
13524         * modules/unistdio/u16-u16-sprintf: Likewise.
13525         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13526         * modules/unistdio/u16-u16-vasprintf: Likewise.
13527         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13528         * modules/unistdio/u16-u16-vsprintf: Likewise.
13529         * modules/unistdio/u16-vasnprintf: Likewise.
13530         * modules/unistdio/u16-vasprintf: Likewise.
13531         * modules/unistdio/u16-vsnprintf: Likewise.
13532         * modules/unistdio/u16-vsprintf: Likewise.
13533         * modules/unistdio/u32-asnprintf: Likewise.
13534         * modules/unistdio/u32-asprintf: Likewise.
13535         * modules/unistdio/u32-snprintf: Likewise.
13536         * modules/unistdio/u32-sprintf: Likewise.
13537         * modules/unistdio/u32-u32-asnprintf: Likewise.
13538         * modules/unistdio/u32-u32-asprintf: Likewise.
13539         * modules/unistdio/u32-u32-snprintf: Likewise.
13540         * modules/unistdio/u32-u32-sprintf: Likewise.
13541         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13542         * modules/unistdio/u32-u32-vasprintf: Likewise.
13543         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13544         * modules/unistdio/u32-u32-vsprintf: Likewise.
13545         * modules/unistdio/u32-vasnprintf: Likewise.
13546         * modules/unistdio/u32-vasprintf: Likewise.
13547         * modules/unistdio/u32-vsnprintf: Likewise.
13548         * modules/unistdio/u32-vsprintf: Likewise.
13549         * modules/unistdio/ulc-asnprintf: Likewise.
13550         * modules/unistdio/ulc-asprintf: Likewise.
13551         * modules/unistdio/ulc-fprintf: Likewise.
13552         * modules/unistdio/ulc-snprintf: Likewise.
13553         * modules/unistdio/ulc-sprintf: Likewise.
13554         * modules/unistdio/ulc-vasnprintf: Likewise.
13555         * modules/unistdio/ulc-vasprintf: Likewise.
13556         * modules/unistdio/ulc-vfprintf: Likewise.
13557         * modules/unistdio/ulc-vsnprintf: Likewise.
13558         * modules/unistdio/ulc-vsprintf: Likewise.
13559         * modules/unistr/u8-check: Likewise.
13560         * modules/unistr/u8-chr: Likewise.
13561         * modules/unistr/u8-cmp: Likewise.
13562         * modules/unistr/u8-cmp2: Likewise.
13563         * modules/unistr/u8-cpy: Likewise.
13564         * modules/unistr/u8-cpy-alloc: Likewise.
13565         * modules/unistr/u8-endswith: Likewise.
13566         * modules/unistr/u8-mblen: Likewise.
13567         * modules/unistr/u8-mbsnlen: Likewise.
13568         * modules/unistr/u8-mbtouc: Likewise.
13569         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13570         * modules/unistr/u8-mbtoucr: Likewise.
13571         * modules/unistr/u8-move: Likewise.
13572         * modules/unistr/u8-next: Likewise.
13573         * modules/unistr/u8-prev: Likewise.
13574         * modules/unistr/u8-set: Likewise.
13575         * modules/unistr/u8-startswith: Likewise.
13576         * modules/unistr/u8-stpcpy: Likewise.
13577         * modules/unistr/u8-stpncpy: Likewise.
13578         * modules/unistr/u8-strcat: Likewise.
13579         * modules/unistr/u8-strchr: Likewise.
13580         * modules/unistr/u8-strcmp: Likewise.
13581         * modules/unistr/u8-strcoll: Likewise.
13582         * modules/unistr/u8-strcpy: Likewise.
13583         * modules/unistr/u8-strcspn: Likewise.
13584         * modules/unistr/u8-strdup: Likewise.
13585         * modules/unistr/u8-strlen: Likewise.
13586         * modules/unistr/u8-strmblen: Likewise.
13587         * modules/unistr/u8-strmbtouc: Likewise.
13588         * modules/unistr/u8-strncat: Likewise.
13589         * modules/unistr/u8-strncmp: Likewise.
13590         * modules/unistr/u8-strncpy: Likewise.
13591         * modules/unistr/u8-strnlen: Likewise.
13592         * modules/unistr/u8-strpbrk: Likewise.
13593         * modules/unistr/u8-strrchr: Likewise.
13594         * modules/unistr/u8-strspn: Likewise.
13595         * modules/unistr/u8-strstr: Likewise.
13596         * modules/unistr/u8-strtok: Likewise.
13597         * modules/unistr/u8-to-u16: Likewise.
13598         * modules/unistr/u8-to-u32: Likewise.
13599         * modules/unistr/u8-uctomb: Likewise.
13600         * modules/unistr/u16-check: Likewise.
13601         * modules/unistr/u16-chr: Likewise.
13602         * modules/unistr/u16-cmp: Likewise.
13603         * modules/unistr/u16-cmp2: Likewise.
13604         * modules/unistr/u16-cpy: Likewise.
13605         * modules/unistr/u16-cpy-alloc: Likewise.
13606         * modules/unistr/u16-endswith: Likewise.
13607         * modules/unistr/u16-mblen: Likewise.
13608         * modules/unistr/u16-mbsnlen: Likewise.
13609         * modules/unistr/u16-mbtouc: Likewise.
13610         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13611         * modules/unistr/u16-mbtoucr: Likewise.
13612         * modules/unistr/u16-move: Likewise.
13613         * modules/unistr/u16-next: Likewise.
13614         * modules/unistr/u16-prev: Likewise.
13615         * modules/unistr/u16-set: Likewise.
13616         * modules/unistr/u16-startswith: Likewise.
13617         * modules/unistr/u16-stpcpy: Likewise.
13618         * modules/unistr/u16-stpncpy: Likewise.
13619         * modules/unistr/u16-strcat: Likewise.
13620         * modules/unistr/u16-strchr: Likewise.
13621         * modules/unistr/u16-strcmp: Likewise.
13622         * modules/unistr/u16-strcoll: Likewise.
13623         * modules/unistr/u16-strcpy: Likewise.
13624         * modules/unistr/u16-strcspn: Likewise.
13625         * modules/unistr/u16-strdup: Likewise.
13626         * modules/unistr/u16-strlen: Likewise.
13627         * modules/unistr/u16-strmblen: Likewise.
13628         * modules/unistr/u16-strmbtouc: Likewise.
13629         * modules/unistr/u16-strncat: Likewise.
13630         * modules/unistr/u16-strncmp: Likewise.
13631         * modules/unistr/u16-strncpy: Likewise.
13632         * modules/unistr/u16-strnlen: Likewise.
13633         * modules/unistr/u16-strpbrk: Likewise.
13634         * modules/unistr/u16-strrchr: Likewise.
13635         * modules/unistr/u16-strspn: Likewise.
13636         * modules/unistr/u16-strstr: Likewise.
13637         * modules/unistr/u16-strtok: Likewise.
13638         * modules/unistr/u16-to-u32: Likewise.
13639         * modules/unistr/u16-to-u8: Likewise.
13640         * modules/unistr/u16-uctomb: Likewise.
13641         * modules/unistr/u32-check: Likewise.
13642         * modules/unistr/u32-chr: Likewise.
13643         * modules/unistr/u32-cmp: Likewise.
13644         * modules/unistr/u32-cmp2: Likewise.
13645         * modules/unistr/u32-cpy: Likewise.
13646         * modules/unistr/u32-cpy-alloc: Likewise.
13647         * modules/unistr/u32-endswith: Likewise.
13648         * modules/unistr/u32-mblen: Likewise.
13649         * modules/unistr/u32-mbsnlen: Likewise.
13650         * modules/unistr/u32-mbtouc: Likewise.
13651         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13652         * modules/unistr/u32-mbtoucr: Likewise.
13653         * modules/unistr/u32-move: Likewise.
13654         * modules/unistr/u32-next: Likewise.
13655         * modules/unistr/u32-prev: Likewise.
13656         * modules/unistr/u32-set: Likewise.
13657         * modules/unistr/u32-startswith: Likewise.
13658         * modules/unistr/u32-stpcpy: Likewise.
13659         * modules/unistr/u32-stpncpy: Likewise.
13660         * modules/unistr/u32-strcat: Likewise.
13661         * modules/unistr/u32-strchr: Likewise.
13662         * modules/unistr/u32-strcmp: Likewise.
13663         * modules/unistr/u32-strcoll: Likewise.
13664         * modules/unistr/u32-strcpy: Likewise.
13665         * modules/unistr/u32-strcspn: Likewise.
13666         * modules/unistr/u32-strdup: Likewise.
13667         * modules/unistr/u32-strlen: Likewise.
13668         * modules/unistr/u32-strmblen: Likewise.
13669         * modules/unistr/u32-strmbtouc: Likewise.
13670         * modules/unistr/u32-strncat: Likewise.
13671         * modules/unistr/u32-strncmp: Likewise.
13672         * modules/unistr/u32-strncpy: Likewise.
13673         * modules/unistr/u32-strnlen: Likewise.
13674         * modules/unistr/u32-strpbrk: Likewise.
13675         * modules/unistr/u32-strrchr: Likewise.
13676         * modules/unistr/u32-strspn: Likewise.
13677         * modules/unistr/u32-strstr: Likewise.
13678         * modules/unistr/u32-strtok: Likewise.
13679         * modules/unistr/u32-to-u16: Likewise.
13680         * modules/unistr/u32-to-u8: Likewise.
13681         * modules/unistr/u32-uctomb: Likewise.
13682         * modules/uniwbrk/u8-wordbreaks: Likewise.
13683         * modules/uniwbrk/u16-wordbreaks: Likewise.
13684         * modules/uniwbrk/u32-wordbreaks: Likewise.
13685         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13686         * modules/uniwbrk/wordbreak-property: Likewise.
13687         * modules/uniwidth/u8-strwidth: Likewise.
13688         * modules/uniwidth/u8-width: Likewise.
13689         * modules/uniwidth/u16-strwidth: Likewise.
13690         * modules/uniwidth/u16-width: Likewise.
13691         * modules/uniwidth/u32-strwidth: Likewise.
13692         * modules/uniwidth/u32-width: Likewise.
13693         * modules/uniwidth/width: Likewise.
13694         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13695         with $(LIBUNISTRING).
13696         * modules/unicase/ignorable-tests: Likewise.
13697         * modules/unicase/locale-language-tests: Likewise.
13698         * modules/unicase/tolower-tests: Likewise.
13699         * modules/unicase/totitle-tests: Likewise.
13700         * modules/unicase/toupper-tests: Likewise.
13701         * modules/unicase/u8-casecmp-tests: Likewise.
13702         * modules/unicase/u8-casecoll-tests: Likewise.
13703         * modules/unicase/u8-casefold-tests: Likewise.
13704         * modules/unicase/u8-is-cased-tests: Likewise.
13705         * modules/unicase/u8-is-casefolded-tests: Likewise.
13706         * modules/unicase/u8-is-lowercase-tests: Likewise.
13707         * modules/unicase/u8-is-titlecase-tests: Likewise.
13708         * modules/unicase/u8-is-uppercase-tests: Likewise.
13709         * modules/unicase/u8-tolower-tests: Likewise.
13710         * modules/unicase/u8-totitle-tests: Likewise.
13711         * modules/unicase/u8-toupper-tests: Likewise.
13712         * modules/unicase/u16-casecmp-tests: Likewise.
13713         * modules/unicase/u16-casecoll-tests: Likewise.
13714         * modules/unicase/u16-casefold-tests: Likewise.
13715         * modules/unicase/u16-is-cased-tests: Likewise.
13716         * modules/unicase/u16-is-casefolded-tests: Likewise.
13717         * modules/unicase/u16-is-lowercase-tests: Likewise.
13718         * modules/unicase/u16-is-titlecase-tests: Likewise.
13719         * modules/unicase/u16-is-uppercase-tests: Likewise.
13720         * modules/unicase/u16-tolower-tests: Likewise.
13721         * modules/unicase/u16-totitle-tests: Likewise.
13722         * modules/unicase/u16-toupper-tests: Likewise.
13723         * modules/unicase/u32-casecmp-tests: Likewise.
13724         * modules/unicase/u32-casecoll-tests: Likewise.
13725         * modules/unicase/u32-casefold-tests: Likewise.
13726         * modules/unicase/u32-is-cased-tests: Likewise.
13727         * modules/unicase/u32-is-casefolded-tests: Likewise.
13728         * modules/unicase/u32-is-lowercase-tests: Likewise.
13729         * modules/unicase/u32-is-titlecase-tests: Likewise.
13730         * modules/unicase/u32-is-uppercase-tests: Likewise.
13731         * modules/unicase/u32-tolower-tests: Likewise.
13732         * modules/unicase/u32-totitle-tests: Likewise.
13733         * modules/unicase/u32-toupper-tests: Likewise.
13734         * modules/unicase/ulc-casecmp-tests: Likewise.
13735         * modules/unicase/ulc-casecoll-tests: Likewise.
13736         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13737         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13738         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13739         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13740         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13741         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13742         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13743         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13744         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13745         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13746         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13747         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13748         * modules/unictype/bidicategory-byname-tests: Likewise.
13749         * modules/unictype/bidicategory-name-tests: Likewise.
13750         * modules/unictype/bidicategory-of-tests: Likewise.
13751         * modules/unictype/bidicategory-test-tests: Likewise.
13752         * modules/unictype/block-list-tests: Likewise.
13753         * modules/unictype/block-of-tests: Likewise.
13754         * modules/unictype/block-test-tests: Likewise.
13755         * modules/unictype/category-C-tests: Likewise.
13756         * modules/unictype/category-Cc-tests: Likewise.
13757         * modules/unictype/category-Cf-tests: Likewise.
13758         * modules/unictype/category-Cn-tests: Likewise.
13759         * modules/unictype/category-Co-tests: Likewise.
13760         * modules/unictype/category-Cs-tests: Likewise.
13761         * modules/unictype/category-L-tests: Likewise.
13762         * modules/unictype/category-Ll-tests: Likewise.
13763         * modules/unictype/category-Lm-tests: Likewise.
13764         * modules/unictype/category-Lo-tests: Likewise.
13765         * modules/unictype/category-Lt-tests: Likewise.
13766         * modules/unictype/category-Lu-tests: Likewise.
13767         * modules/unictype/category-M-tests: Likewise.
13768         * modules/unictype/category-Mc-tests: Likewise.
13769         * modules/unictype/category-Me-tests: Likewise.
13770         * modules/unictype/category-Mn-tests: Likewise.
13771         * modules/unictype/category-N-tests: Likewise.
13772         * modules/unictype/category-Nd-tests: Likewise.
13773         * modules/unictype/category-Nl-tests: Likewise.
13774         * modules/unictype/category-No-tests: Likewise.
13775         * modules/unictype/category-P-tests: Likewise.
13776         * modules/unictype/category-Pc-tests: Likewise.
13777         * modules/unictype/category-Pd-tests: Likewise.
13778         * modules/unictype/category-Pe-tests: Likewise.
13779         * modules/unictype/category-Pf-tests: Likewise.
13780         * modules/unictype/category-Pi-tests: Likewise.
13781         * modules/unictype/category-Po-tests: Likewise.
13782         * modules/unictype/category-Ps-tests: Likewise.
13783         * modules/unictype/category-S-tests: Likewise.
13784         * modules/unictype/category-Sc-tests: Likewise.
13785         * modules/unictype/category-Sk-tests: Likewise.
13786         * modules/unictype/category-Sm-tests: Likewise.
13787         * modules/unictype/category-So-tests: Likewise.
13788         * modules/unictype/category-Z-tests: Likewise.
13789         * modules/unictype/category-Zl-tests: Likewise.
13790         * modules/unictype/category-Zp-tests: Likewise.
13791         * modules/unictype/category-Zs-tests: Likewise.
13792         * modules/unictype/category-and-not-tests: Likewise.
13793         * modules/unictype/category-and-tests: Likewise.
13794         * modules/unictype/category-byname-tests: Likewise.
13795         * modules/unictype/category-name-tests: Likewise.
13796         * modules/unictype/category-none-tests: Likewise.
13797         * modules/unictype/category-of-tests: Likewise.
13798         * modules/unictype/category-or-tests: Likewise.
13799         * modules/unictype/category-test-withtable-tests: Likewise.
13800         * modules/unictype/combining-class-tests: Likewise.
13801         * modules/unictype/ctype-alnum-tests: Likewise.
13802         * modules/unictype/ctype-alpha-tests: Likewise.
13803         * modules/unictype/ctype-blank-tests: Likewise.
13804         * modules/unictype/ctype-cntrl-tests: Likewise.
13805         * modules/unictype/ctype-digit-tests: Likewise.
13806         * modules/unictype/ctype-graph-tests: Likewise.
13807         * modules/unictype/ctype-lower-tests: Likewise.
13808         * modules/unictype/ctype-print-tests: Likewise.
13809         * modules/unictype/ctype-punct-tests: Likewise.
13810         * modules/unictype/ctype-space-tests: Likewise.
13811         * modules/unictype/ctype-upper-tests: Likewise.
13812         * modules/unictype/ctype-xdigit-tests: Likewise.
13813         * modules/unictype/decimal-digit-tests: Likewise.
13814         * modules/unictype/digit-tests: Likewise.
13815         * modules/unictype/mirror-tests: Likewise.
13816         * modules/unictype/numeric-tests: Likewise.
13817         * modules/unictype/property-alphabetic-tests: Likewise.
13818         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13819         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13820         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13821         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13822         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13823         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13824         * modules/unictype/property-bidi-control-tests: Likewise.
13825         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13826         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13827         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13828         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13829         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13830         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13831         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13832         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13833         * modules/unictype/property-bidi-pdf-tests: Likewise.
13834         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13835         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13836         * modules/unictype/property-byname-tests: Likewise.
13837         * modules/unictype/property-combining-tests: Likewise.
13838         * modules/unictype/property-composite-tests: Likewise.
13839         * modules/unictype/property-currency-symbol-tests: Likewise.
13840         * modules/unictype/property-dash-tests: Likewise.
13841         * modules/unictype/property-decimal-digit-tests: Likewise.
13842         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13843         * modules/unictype/property-deprecated-tests: Likewise.
13844         * modules/unictype/property-diacritic-tests: Likewise.
13845         * modules/unictype/property-extender-tests: Likewise.
13846         * modules/unictype/property-format-control-tests: Likewise.
13847         * modules/unictype/property-grapheme-base-tests: Likewise.
13848         * modules/unictype/property-grapheme-extend-tests: Likewise.
13849         * modules/unictype/property-grapheme-link-tests: Likewise.
13850         * modules/unictype/property-hex-digit-tests: Likewise.
13851         * modules/unictype/property-hyphen-tests: Likewise.
13852         * modules/unictype/property-id-continue-tests: Likewise.
13853         * modules/unictype/property-id-start-tests: Likewise.
13854         * modules/unictype/property-ideographic-tests: Likewise.
13855         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13856         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13857         * modules/unictype/property-ignorable-control-tests: Likewise.
13858         * modules/unictype/property-iso-control-tests: Likewise.
13859         * modules/unictype/property-join-control-tests: Likewise.
13860         * modules/unictype/property-left-of-pair-tests: Likewise.
13861         * modules/unictype/property-line-separator-tests: Likewise.
13862         * modules/unictype/property-logical-order-exception-tests: Likewise.
13863         * modules/unictype/property-lowercase-tests: Likewise.
13864         * modules/unictype/property-math-tests: Likewise.
13865         * modules/unictype/property-non-break-tests: Likewise.
13866         * modules/unictype/property-not-a-character-tests: Likewise.
13867         * modules/unictype/property-numeric-tests: Likewise.
13868         * modules/unictype/property-other-alphabetic-tests: Likewise.
13869         * modules/unictype/property-other-default-ignorable-code-point-tests:
13870         Likewise.
13871         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13872         * modules/unictype/property-other-id-continue-tests: Likewise.
13873         * modules/unictype/property-other-id-start-tests: Likewise.
13874         * modules/unictype/property-other-lowercase-tests: Likewise.
13875         * modules/unictype/property-other-math-tests: Likewise.
13876         * modules/unictype/property-other-uppercase-tests: Likewise.
13877         * modules/unictype/property-paired-punctuation-tests: Likewise.
13878         * modules/unictype/property-paragraph-separator-tests: Likewise.
13879         * modules/unictype/property-pattern-syntax-tests: Likewise.
13880         * modules/unictype/property-pattern-white-space-tests: Likewise.
13881         * modules/unictype/property-private-use-tests: Likewise.
13882         * modules/unictype/property-punctuation-tests: Likewise.
13883         * modules/unictype/property-quotation-mark-tests: Likewise.
13884         * modules/unictype/property-radical-tests: Likewise.
13885         * modules/unictype/property-sentence-terminal-tests: Likewise.
13886         * modules/unictype/property-soft-dotted-tests: Likewise.
13887         * modules/unictype/property-space-tests: Likewise.
13888         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13889         * modules/unictype/property-test-tests: Likewise.
13890         * modules/unictype/property-titlecase-tests: Likewise.
13891         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13892         * modules/unictype/property-unified-ideograph-tests: Likewise.
13893         * modules/unictype/property-uppercase-tests: Likewise.
13894         * modules/unictype/property-variation-selector-tests: Likewise.
13895         * modules/unictype/property-white-space-tests: Likewise.
13896         * modules/unictype/property-xid-continue-tests: Likewise.
13897         * modules/unictype/property-xid-start-tests: Likewise.
13898         * modules/unictype/property-zero-width-tests: Likewise.
13899         * modules/unictype/scripts-tests: Likewise.
13900         * modules/unictype/syntax-c-ident-tests: Likewise.
13901         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13902         * modules/unictype/syntax-java-ident-tests: Likewise.
13903         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13904         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13905         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13906         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13907         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13908         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13909         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13910         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13911         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13912         * modules/uniname/uniname-tests: Likewise.
13913         * modules/uninorm/canonical-decomposition-tests: Likewise.
13914         * modules/uninorm/compat-decomposition-tests: Likewise.
13915         * modules/uninorm/composition-tests: Likewise.
13916         * modules/uninorm/decomposing-form-tests: Likewise.
13917         * modules/uninorm/decomposition-tests: Likewise.
13918         * modules/uninorm/filter-tests: Likewise.
13919         * modules/uninorm/nfc-tests: Likewise.
13920         * modules/uninorm/nfd-tests: Likewise.
13921         * modules/uninorm/nfkc-tests: Likewise.
13922         * modules/uninorm/nfkd-tests: Likewise.
13923         * modules/uninorm/u8-normcmp-tests: Likewise.
13924         * modules/uninorm/u8-normcoll-tests: Likewise.
13925         * modules/uninorm/u16-normcmp-tests: Likewise.
13926         * modules/uninorm/u16-normcoll-tests: Likewise.
13927         * modules/uninorm/u32-normcmp-tests: Likewise.
13928         * modules/uninorm/u32-normcoll-tests: Likewise.
13929         * modules/unistdio/u8-asnprintf-tests: Likewise.
13930         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13931         * modules/unistdio/u8-vasprintf-tests: Likewise.
13932         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13933         * modules/unistdio/u8-vsprintf-tests: Likewise.
13934         * modules/unistdio/u16-asnprintf-tests: Likewise.
13935         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13936         * modules/unistdio/u16-vasprintf-tests: Likewise.
13937         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13938         * modules/unistdio/u16-vsprintf-tests: Likewise.
13939         * modules/unistdio/u32-asnprintf-tests: Likewise.
13940         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13941         * modules/unistdio/u32-vasprintf-tests: Likewise.
13942         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13943         * modules/unistdio/u32-vsprintf-tests: Likewise.
13944         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13945         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13946         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13947         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13948         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13949         * modules/unistr/u8-check-tests: Likewise.
13950         * modules/unistr/u8-chr-tests: Likewise.
13951         * modules/unistr/u8-cmp-tests: Likewise.
13952         * modules/unistr/u8-cmp2-tests: Likewise.
13953         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13954         * modules/unistr/u8-cpy-tests: Likewise.
13955         * modules/unistr/u8-mblen-tests: Likewise.
13956         * modules/unistr/u8-mbsnlen-tests: Likewise.
13957         * modules/unistr/u8-mbtouc-tests: Likewise.
13958         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13959         * modules/unistr/u8-mbtoucr-tests: Likewise.
13960         * modules/unistr/u8-move-tests: Likewise.
13961         * modules/unistr/u8-next-tests: Likewise.
13962         * modules/unistr/u8-prev-tests: Likewise.
13963         * modules/unistr/u8-set-tests: Likewise.
13964         * modules/unistr/u8-stpcpy-tests: Likewise.
13965         * modules/unistr/u8-stpncpy-tests: Likewise.
13966         * modules/unistr/u8-strcat-tests: Likewise.
13967         * modules/unistr/u8-strcmp-tests: Likewise.
13968         * modules/unistr/u8-strcoll-tests: Likewise.
13969         * modules/unistr/u8-strcpy-tests: Likewise.
13970         * modules/unistr/u8-strdup-tests: Likewise.
13971         * modules/unistr/u8-strlen-tests: Likewise.
13972         * modules/unistr/u8-strmblen-tests: Likewise.
13973         * modules/unistr/u8-strmbtouc-tests: Likewise.
13974         * modules/unistr/u8-strncat-tests: Likewise.
13975         * modules/unistr/u8-strncmp-tests: Likewise.
13976         * modules/unistr/u8-strncpy-tests: Likewise.
13977         * modules/unistr/u8-strnlen-tests: Likewise.
13978         * modules/unistr/u8-to-u16-tests: Likewise.
13979         * modules/unistr/u8-to-u32-tests: Likewise.
13980         * modules/unistr/u8-uctomb-tests: Likewise.
13981         * modules/unistr/u16-check-tests: Likewise.
13982         * modules/unistr/u16-chr-tests: Likewise.
13983         * modules/unistr/u16-cmp-tests: Likewise.
13984         * modules/unistr/u16-cmp2-tests: Likewise.
13985         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13986         * modules/unistr/u16-cpy-tests: Likewise.
13987         * modules/unistr/u16-mblen-tests: Likewise.
13988         * modules/unistr/u16-mbsnlen-tests: Likewise.
13989         * modules/unistr/u16-mbtouc-tests: Likewise.
13990         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13991         * modules/unistr/u16-mbtoucr-tests: Likewise.
13992         * modules/unistr/u16-move-tests: Likewise.
13993         * modules/unistr/u16-next-tests: Likewise.
13994         * modules/unistr/u16-prev-tests: Likewise.
13995         * modules/unistr/u16-set-tests: Likewise.
13996         * modules/unistr/u16-stpcpy-tests: Likewise.
13997         * modules/unistr/u16-stpncpy-tests: Likewise.
13998         * modules/unistr/u16-strcat-tests: Likewise.
13999         * modules/unistr/u16-strcmp-tests: Likewise.
14000         * modules/unistr/u16-strcoll-tests: Likewise.
14001         * modules/unistr/u16-strcpy-tests: Likewise.
14002         * modules/unistr/u16-strdup-tests: Likewise.
14003         * modules/unistr/u16-strlen-tests: Likewise.
14004         * modules/unistr/u16-strmblen-tests: Likewise.
14005         * modules/unistr/u16-strmbtouc-tests: Likewise.
14006         * modules/unistr/u16-strncat-tests: Likewise.
14007         * modules/unistr/u16-strncmp-tests: Likewise.
14008         * modules/unistr/u16-strncpy-tests: Likewise.
14009         * modules/unistr/u16-strnlen-tests: Likewise.
14010         * modules/unistr/u16-to-u32-tests: Likewise.
14011         * modules/unistr/u16-to-u8-tests: Likewise.
14012         * modules/unistr/u16-uctomb-tests: Likewise.
14013         * modules/unistr/u32-check-tests: Likewise.
14014         * modules/unistr/u32-chr-tests: Likewise.
14015         * modules/unistr/u32-cmp-tests: Likewise.
14016         * modules/unistr/u32-cmp2-tests: Likewise.
14017         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14018         * modules/unistr/u32-cpy-tests: Likewise.
14019         * modules/unistr/u32-mblen-tests: Likewise.
14020         * modules/unistr/u32-mbsnlen-tests: Likewise.
14021         * modules/unistr/u32-mbtouc-tests: Likewise.
14022         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14023         * modules/unistr/u32-mbtoucr-tests: Likewise.
14024         * modules/unistr/u32-move-tests: Likewise.
14025         * modules/unistr/u32-next-tests: Likewise.
14026         * modules/unistr/u32-prev-tests: Likewise.
14027         * modules/unistr/u32-set-tests: Likewise.
14028         * modules/unistr/u32-stpcpy-tests: Likewise.
14029         * modules/unistr/u32-stpncpy-tests: Likewise.
14030         * modules/unistr/u32-strcat-tests: Likewise.
14031         * modules/unistr/u32-strcmp-tests: Likewise.
14032         * modules/unistr/u32-strcoll-tests: Likewise.
14033         * modules/unistr/u32-strcpy-tests: Likewise.
14034         * modules/unistr/u32-strdup-tests: Likewise.
14035         * modules/unistr/u32-strlen-tests: Likewise.
14036         * modules/unistr/u32-strmblen-tests: Likewise.
14037         * modules/unistr/u32-strmbtouc-tests: Likewise.
14038         * modules/unistr/u32-strncat-tests: Likewise.
14039         * modules/unistr/u32-strncmp-tests: Likewise.
14040         * modules/unistr/u32-strncpy-tests: Likewise.
14041         * modules/unistr/u32-strnlen-tests: Likewise.
14042         * modules/unistr/u32-to-u16-tests: Likewise.
14043         * modules/unistr/u32-to-u8-tests: Likewise.
14044         * modules/unistr/u32-uctomb-tests: Likewise.
14045         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14046         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14047         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14048         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14049         * modules/uniwidth/u8-strwidth-tests: Likewise.
14050         * modules/uniwidth/u8-width-tests: Likewise.
14051         * modules/uniwidth/u16-strwidth-tests: Likewise.
14052         * modules/uniwidth/u16-width-tests: Likewise.
14053         * modules/uniwidth/u32-strwidth-tests: Likewise.
14054         * modules/uniwidth/u32-width-tests: Likewise.
14055         * modules/uniwidth/width-tests: Likewise.
14056
14057 2010-05-18  Richard Jones  <rjones@redhat.com>
14058
14059         doc: users.txt: list hivex
14060         * users.txt: Add hivex.
14061
14062 2010-05-18  Richard Jones  <rjones@redhat.com>
14063
14064         doc: users.txt: list febootstrap
14065         * users.txt: Add febootstrap.
14066
14067 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14068
14069         bootstrap: fix an error when gnulib is not used as a git submodule
14070         * build-aux/bootstrap (gnulib_path): If its length is zero then
14071         assign "gnulib" to it.
14072         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14073
14074 2010-05-16  Bruno Haible  <bruno@clisp.org>
14075
14076         Avoid autoconf warnings about AM_ICONV.
14077         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14078         2.64.
14079
14080 2010-05-16  Bruno Haible  <bruno@clisp.org>
14081
14082         absolute-header: Make the macro usable in more situations.
14083         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14084         from gl_ABSOLUTE_HEADER.
14085         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14086
14087 2010-05-16  James Youngman  <jay@gnu.org>
14088
14089         doc: update users.txt
14090         * users.txt: Add CSSC.
14091
14092 2010-05-16  Jim Meyering  <meyering@redhat.com>
14093
14094         init.sh: fix an error in the previous change; add more comments
14095         * tests/init.sh: Compare exit code in loop against 9, not 2.
14096         Patch by Bruno Haible.
14097         Make the two tests more similar by adding an empty "then" clause.
14098         Add comments.
14099
14100         init.sh: avoid unnecessary shell re-exec
14101         * tests/init.sh: Improve the re-exec-required check to first test the
14102         current shell.  If it passes the test, do not search for a shell that
14103         does pass, and do not re-exec.  This test is particularly contorted to
14104         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14105         of $(...) evokes a syntax error and causes immediate shell exit with
14106         status 2.  Bruno Haible reported that the re-exec made it impossible
14107         to single-step through any init.sh-using script.
14108
14109 2010-05-16  Bruno Haible  <bruno@clisp.org>
14110
14111         Fix collision between gnulib's and libintl's printf replacements.
14112         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14113         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14114         (printf): When using GNU C, map the __printf__ function to rpl_printf
14115         via __asm__. When not using GNU C, define rpl_printf instead of
14116         __printf__.
14117         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14118         commit.
14119         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14120         commit.
14121         * m4/asm-underscore.m4: New file.
14122         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14123         * modules/stdio (Files): Add m4/asm-underscore.m4.
14124         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14125         Reported by Ben Pfaff.
14126
14127 2010-05-16  Bruno Haible  <bruno@clisp.org>
14128
14129         verify: Avoid skipping the test on openSUSE 11.0.
14130         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14131
14132 2010-05-13  Bruno Haible  <bruno@clisp.org>
14133
14134         Avoid useless warnings from G++.
14135         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14136         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14137         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14138
14139 2010-05-11  Jim Meyering  <meyering@redhat.com>
14140
14141         maint.mk: tweak preceding change
14142         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14143         regexps tighter by anchoring at EOL, and make the new group "shy"
14144         for slightly decreased overhead.
14145
14146 2010-05-11  Eric Blake  <eblake@redhat.com>
14147
14148         maint.mk: gnulib doesn't guarantee NSIG
14149         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14150
14151 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14152
14153         test-pwrite.c: Remove unused variable declaration.
14154         * tests/test-pwrite.c (main): Remove read_buf declaration.
14155
14156         Remove useless test-pwrite.sh file.
14157         * tests/test-pwrite.sh: Delete file.
14158         * modules/pwrite-tests: Remove references.
14159         Reported by Bruno Haible.
14160
14161 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14162
14163         init.sh: fix a typo
14164         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14165
14166 2010-05-10  Jim Meyering  <meyering@redhat.com>
14167
14168         maint.mk: avoid using a temporary file in the always-defined-macros check
14169         * top/maint.mk (.re-defmac): Remove rule.
14170         (gl_trap_): Remove definition.
14171         (sc_prohibit_always-defined_macros): Rewrite not to create and
14172         depend on a temporary file.  Instead, depend on GNU grep's ability
14173         to read a list of regular expressions from stdin when given "-f -".
14174
14175 2010-05-09  Bruno Haible  <bruno@clisp.org>
14176
14177         Update to GNU gettext 0.18, part 1.
14178         * m4/gettext.m4: Update to GNU gettext 0.18.
14179         * m4/intl.m4: Likewise.
14180         * m4/po.m4: Likewise.
14181         * modules/gettext (Files): Add m4/fcntl-o.m4.
14182         (configure.ac): Require gettext infrastructure from version 0.18.
14183
14184 2010-05-09  Jim Meyering  <meyering@redhat.com>
14185
14186         init.sh: enable MALLOC_PERTURB_
14187         * tests/init.sh: Enable glibc's malloc-perturbing option.
14188
14189         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14190         With my recent change in init.sh from the two-line form:
14191             -#   : ${srcdir=.}
14192             -#   . "$srcdir/init.sh"; path_prepend_ .
14193             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14194         I noticed that using the one-line form would cause this test
14195         to fail with a false-positive, or to stop working altogether,
14196         depending on whether help-version changed or all the tests did.
14197         * top/maint.mk (_hv_regex): Remove this definition.
14198         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14199         (_hv_regex_strong): Use a stronger regex to check for conformance.
14200         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14201         Give a separate diagnostic for lack of conforming use.
14202
14203         maint.mk: prohibit definition of symbols defined by gnulib
14204         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14205         definition of symbols defined by gnulib.
14206
14207 2010-05-09  Bruno Haible  <bruno@clisp.org>
14208
14209         acl: Avoid test failure on Cygwin-hosted mingw.
14210         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14211
14212 2010-05-09  Bruno Haible  <bruno@clisp.org>
14213
14214         error: Use system's fcntl function.
14215         * lib/error.c (fcntl): Undefine.
14216
14217 2010-05-09  Jim Meyering  <meyering@redhat.com>
14218
14219         verify: adjust formatting to be more consistent
14220         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14221         argument-list '('s, and after one comma.
14222
14223 2010-05-09  Bruno Haible  <bruno@clisp.org>
14224
14225         error: More reliable output on mingw.
14226         * lib/error.c: Include <windows.h>.
14227         (is_open): New function.
14228         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14229         defined.
14230
14231 2010-05-09  Bruno Haible  <bruno@clisp.org>
14232
14233         vasnprintf: Fix syntax errors in libintl build on mingw.
14234         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14235         pad_ourselves and prec_ourselves after use.
14236
14237 2010-05-08  Bruno Haible  <bruno@clisp.org>
14238
14239         * lib/config.charset: Update comments for Cygwin 1.7.
14240         * lib/localcharset.c: Likewise.
14241
14242 2010-05-07  Jim Meyering  <meyering@redhat.com>
14243
14244         init.sh: improve comments
14245         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14246         . "${srcdir=.}/init.sh"; path_prepend_ .
14247         Add a note about path_prepend_ and the alternative of using
14248         TESTS_ENVIRONMENT.
14249
14250 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14251
14252         exclude: Unescape hashed patterns in wildcard mode.
14253         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14254         to the hash list.
14255         * tests/test-exclude8.sh: New test case.
14256         * modules/exclude-tests: Add new test.
14257
14258 2010-05-05  Eric Blake  <eblake@redhat.com>
14259
14260         verify: automate tests
14261         * modules/verify-tests: New module.
14262         * tests/test-verify.sh: New file.
14263         * tests/test-verify.c: Guard each negative test with a unique id.
14264         Also avoid warning about unused left hand of comma expressions.
14265
14266 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14267
14268         Further improvements to verify.h, suggested by Eric Blake.
14269         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14270         the GL_* versions, to avoid collision with OpenGL.
14271         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14272         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14273         than testing merely whether it's defined.
14274
14275         Modify verify.h to pacify gcc -Wredundant_decls.
14276         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14277         These use the prefix "GL_" since they're likely to be useful elsewhere.
14278         We may need to break them out into a different .h file.
14279         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14280         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14281         of verify_function__.
14282
14283 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14284
14285         Tests for module pwrite.
14286         * modules/pwrite-tests: New file.
14287         * tests/test-pwrite.sh: New file.
14288         * tests/test-pwrite.c: New file.
14289
14290         New module pwrite.
14291         * lib/unistd.in.h (pwrite): New declaration.
14292         * lib/pwrite.c: New file, from glibc with modifications.
14293         * m4/pwrite.m4: New file.
14294         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14295         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14296         REPLACE_PWRITE.
14297         * modules/pwrite: New file.
14298         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14299         REPLACE_PWRITE.
14300         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14301         * doc/posix-functions/pwrite.texi: Mention the new module.
14302
14303 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14304
14305         pread: Update documentation.
14306         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14307
14308 2010-05-04  Eric Blake  <eblake@redhat.com>
14309
14310         docs: update cygwin progress
14311         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14312         this bug.
14313         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14314         Added in cygwin 1.7.2.
14315         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14316         Likewise.
14317         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14318         Likewise.
14319         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14320         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14321         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14322         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14323         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14324         Mention nproc module.
14325         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14326         bug in cygwin 1.7.5 addition.
14327         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14328         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14329         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14330         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14331         1.7.5.
14332         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14333         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14334         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14335         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14336         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14337         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14338         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14339         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14340         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14341         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14342         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14343         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14344         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14345         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14346         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14347         Likewise.
14348         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14349         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14350         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14351         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14352         Likewise.
14353         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14354         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14355         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14356         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14357         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14358         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14359         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14360         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14361         Likewise.
14362         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14363         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14364         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14365         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14366         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14367         Likewise.
14368         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14369         Likewise.
14370         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14371         Likewise.
14372         * doc/glibc-functions/xdrrec_endofrecord.texi
14373         (xdrrec_endofrecord): Likewise.
14374         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14375         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14376         Likewise.
14377         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14378         Likewise.
14379
14380 2010-05-04  Jim Meyering  <meyering@redhat.com>
14381
14382         gendocs.sh: make its "-s FILE" option more useful
14383         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14384         $PACKAGE to reflect the probably-different basename of "FILE".
14385
14386 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14387
14388         bootstrap: don't ignore download_po_files failure
14389         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14390         failure.
14391
14392 2010-05-03  Jim Meyering  <meyering@redhat.com>
14393
14394         maint.mk: allow to pass options to gendocs.sh
14395         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14396         (gendocs_options_): New overridable variable.
14397
14398         gnu-web-doc-update: don't ignore configure or build failure
14399         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14400
14401         announce-gen: backslash-escape '@'s in --help output
14402         * build-aux/announce-gen: Fix syntax errors.
14403
14404         maint.mk, announce-gen: allow project-specific announcement mail headers
14405         * top/maint.mk (translation_project_): Define default.
14406         (announcement_Cc_, announcement_mail_headers_): Likewise.
14407         (announcement): Invoke announce-gen with new --mail-headers option.
14408         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14409
14410         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14411         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14412         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14413         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14414         line in the "err2" output file when running "make check" in verbose
14415         mode (i.e., with set -x enabled).
14416
14417 2010-05-03  Bruno Haible  <bruno@clisp.org>
14418
14419         wctob: Fix for weird platforms.
14420         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14421         argument value.
14422
14423 2010-05-03  Jim Meyering  <meyering@redhat.com>
14424
14425         maint.mk: prohibit unwarranted use of <strings.h>
14426         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14427         strings.h in a file that does not also use strcasecmp, strncasecmp,
14428         ffs or ffsll.
14429
14430         maint.mk: remove obsolete comments
14431         * top/maint.mk: Remove stale, commented-out rules.
14432
14433 2010-05-02  Bruno Haible  <bruno@clisp.org>
14434
14435         wcwidth: Declare also when it's aliased.
14436         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14437         macro.
14438
14439 2010-05-02  Bruno Haible  <bruno@clisp.org>
14440
14441         Fix regression from 2010-04-25.
14442         * gnulib-tool (func_modules_transitive_closure): Check the status of
14443         all modules, not only of the tests that are of the form foo-tests where
14444         foo is a module.
14445
14446 2010-05-02  Bruno Haible  <bruno@clisp.org>
14447
14448         wctob: Work around nasty Cygwin 1.7.2 bug.
14449         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14450         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14451
14452 2010-05-01  Bruno Haible  <bruno@clisp.org>
14453
14454         fpurge: Sharper test.
14455         * tests/test-fpurge.c (main): Add one more ftell check.
14456         * modules/fpurge-tests (Depends-on): Add ftell.
14457         Suggested by Eric Blake.
14458
14459 2010-05-01  Bruno Haible  <bruno@clisp.org>
14460
14461         ftello: Another test.
14462         * tests/test-ftello3.c: New file.
14463         * modules/ftello-tests (Files): Add it.
14464         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14465         MOSTLYCLEANFILES.
14466
14467         ftell: Another test.
14468         * tests/test-ftell3.c: New file.
14469         * modules/ftell-tests (Files): Add it.
14470         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14471         MOSTLYCLEANFILES.
14472
14473 2010-05-01  Bruno Haible  <bruno@clisp.org>
14474
14475         ftell, ftello: Work around Solaris bug.
14476         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14477         * lib/ftello.c: Include stdio-impl.h.
14478         (ftello): On Solaris, when _IOWRT is set, compute the result without
14479         looking at _IOREAD.
14480         * modules/ftello (Files): Add lib/stdio-impl.h.
14481         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14482         * doc/posix-functions/ftello.texi: Likewise.
14483         Reported by Eric Blake.
14484
14485 2010-05-01  Bruno Haible  <bruno@clisp.org>
14486
14487         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14488         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14489         the _IOWRT flag is also set.
14490
14491 2010-05-01  Bruno Haible  <bruno@clisp.org>
14492
14493         Fix doc about a HP-UX stdio bug.
14494         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14495         * doc/posix-functions/ftello.texi: Likewise.
14496
14497 2010-05-01  Bruno Haible  <bruno@clisp.org>
14498
14499         lseek test: Fix failure on Solaris.
14500         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14501         output.
14502
14503 2010-04-30  Jim Meyering  <meyering@redhat.com>
14504
14505         bootstrap: don't ignore failure to generate po*/Makevars
14506         * build-aux/bootstrap (with_gettext): Don't ignore failure
14507         to create po/Makevars or runtime-po/Makevars.
14508
14509 2010-04-29  Eric Blake  <eblake@redhat.com>
14510
14511         headers: relax license to LGPLv2+
14512         * modules/fcntl-h (License): Relax license.
14513         * modules/getopt-posix (License): Likewise.
14514         * modules/locale (License): Likewise.
14515         * modules/math (License): Likewise.
14516         * modules/pty (License): Likewise.
14517         * modules/sched (License): Likewise.
14518         * modules/search (License): Likewise.
14519         * modules/spawn (License): Likewise.
14520         * modules/stdarg (License): Likewise.
14521         * modules/sysexits (License): Likewise.
14522
14523 2010-04-29  Jim Meyering  <meyering@redhat.com>
14524
14525         inttypes: relax license to LGPLv2+
14526         * modules/inttypes (License): Relax license.
14527
14528 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14529
14530         * top/maint.mk (indent): Run twice to produce idempotent results.
14531
14532 2010-04-28  Bruno Haible  <bruno@clisp.org>
14533
14534         getdate: Generate getdate.c in the source directory.
14535         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14536         MOSTLYCLEANFILES.
14537         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14538
14539 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14540
14541         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14542         is not declared as a const *; avoid warnings in that case.
14543
14544 2010-04-28  Eric Blake  <eblake@redhat.com>
14545
14546         canonicalize-lgpl: avoid compiler warning
14547         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14548         declaration' / 'extraneous semicolon' warning with some compilers.
14549         Reported by Andreas Gruenbacher.
14550
14551 2010-04-28  Jim Meyering  <meyering@redhat.com>
14552
14553         init.sh: ensure a more reliable exit status when exiting via trap
14554         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14555         Inspired by patches from Dmitry V. Levin.
14556         Also trap on signal 3 (SIGQUIT).
14557
14558 2010-04-27  Bruno Haible  <bruno@clisp.org>
14559
14560         Update doc about utimes().
14561         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14562         'utimens' module.
14563         Reported by Andreas Gruenbacher <agruen@suse.de>.
14564
14565 2010-04-27  Eric Blake  <eblake@redhat.com>
14566
14567         full-read, full-write: relax license
14568         * modules/full-read (License): Drop to LGPLv2+.
14569         * modules/full-write (License): Likewise.
14570         * modules/safe-read (License): Likewise.
14571         * modules/safe-write (License): Likewise.
14572
14573         pthread: mention library for linking
14574         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14575
14576 2010-04-27  Jim Meyering  <meyering@redhat.com>
14577
14578         maint.mk: fix a bug introduced in last change
14579         * top/maint.mk (gl_assured_headers_): Now that all names are on
14580         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14581         is not anchored to end of word, it should be adequate.
14582
14583         maint.mk: avoid side-effect in latest syntax-check
14584         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14585         to run commands via $(shell...), and hence to incur cost only when
14586         the new rule is actually run.
14587
14588         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14589         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14590         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14591         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14592         (gl_assured_headers_, az_, AZ_): Define.
14593         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14594
14595 2010-04-26  Jim Meyering  <jim@meyering.net>
14596             Bruno Haible  <bruno@clisp.org>
14597
14598         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14599         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14600         Prompted by an exchange with Gilles Espinasse.
14601
14602 2010-04-26  Jim Meyering  <meyering@redhat.com>
14603
14604         git-version-gen: aesthetic tweak
14605         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14606         so that the command remains on a single line.
14607
14608 2010-04-26  Eric Blake  <eblake@redhat.com>
14609
14610         git-version-gen: allow use on EBCDIC hosts
14611         * build-aux/git-version-gen (dirty): Use literal rather than tying
14612         ourselves to ascii.
14613         Reported by Steve Goetze.
14614
14615 2010-04-25  Bruno Haible  <bruno@clisp.org>
14616
14617         netdb: Add support for GNULIB_POSIXCHECK.
14618         * lib/netdb.in.h: Include warn-on-use.h.
14619         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14620         functions are used when GNULIB_POSIXCHECK is defined and the
14621         getaddrinfo module is not in use.
14622         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14623         freeaddrinfo, gai_strerror, getnameinfo are declared.
14624         * modules/netdb (Depends-on): Add warn-on-use.
14625         (Makefile.am): Include warn-on-use.h in netdb.h.
14626
14627 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14628
14629         build: avoid "make check" failure without .git/ directory
14630         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14631         there is no .git/ directory.
14632
14633 2010-04-25  Bruno Haible  <bruno@clisp.org>
14634
14635         ptsname: Fix misuse of ttyname_r.
14636         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14637         of errno.
14638
14639 2010-04-25  Bruno Haible  <bruno@clisp.org>
14640
14641         ttyname_r: Make it work on Solaris 10.
14642         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14643         if the system function has the POSIX declaration. Test whether the
14644         function fails if the buffer is less than 128 bytes large.
14645         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14646         system's ttyname_r function. Provide a reasonably large buffer.
14647         * modules/ttyname_r (Depends-on): Add extensions.
14648         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14649
14650 2010-04-25  Bruno Haible  <bruno@clisp.org>
14651
14652         Use the 'extensions' module for some more functions on Solaris.
14653         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14654         module.
14655         * doc/posix-functions/ctime_r.texi: Likewise.
14656         * doc/posix-functions/getgrgid_r.texi: Likewise.
14657         * doc/posix-functions/getgrnam_r.texi: Likewise.
14658         * doc/posix-functions/getpwnam_r.texi: Likewise.
14659         * doc/posix-functions/getpwuid_r.texi: Likewise.
14660         * doc/posix-functions/readdir_r.texi: Likewise.
14661         * doc/posix-functions/sigwait.texi: Likewise.
14662         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14663         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14664
14665 2010-04-25  Bruno Haible  <bruno@clisp.org>
14666
14667         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14668         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14669         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14670         * lib/ttyname_r.c: Include <limits.h>.
14671         (ttyname_r): Define using the system's ttyname_r function, if it exists
14672         and not on Solaris.
14673         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14674         set.
14675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14676         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14677         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14678         Reported by Simon Josefsson.
14679
14680 2010-04-25  Bruno Haible  <bruno@clisp.org>
14681
14682         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14683         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14684         * doc/posix-functions/ctime_r.texi: Likewise.
14685         * doc/posix-functions/getgrgid_r.texi: Likewise.
14686         * doc/posix-functions/getgrnam_r.texi: Likewise.
14687         * doc/posix-functions/getlogin_r.texi: Likewise.
14688         * doc/posix-functions/getpwnam_r.texi: Likewise.
14689         * doc/posix-functions/getpwuid_r.texi: Likewise.
14690         * doc/posix-functions/readdir_r.texi: Likewise.
14691         * doc/posix-functions/sigwait.texi: Likewise.
14692         * doc/posix-functions/ttyname_r.texi: Likewise.
14693         Reported by Simon Josefsson.
14694
14695 2010-04-25  Bruno Haible  <bruno@clisp.org>
14696
14697         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14698         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14699         also to --create-testdir.
14700         (func_acceptable): Don't consider the status of *-tests modules here.
14701         (func_modules_transitive_closure): Consider it here, before including a
14702         test module.
14703         (func_import, func_create_testdir): Set inc_all_direct_tests,
14704         inc_all_indirect_tests.
14705         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14706         --create-testdir and --create-megatestdir.
14707
14708 2010-04-25  Bruno Haible  <bruno@clisp.org>
14709
14710         gnulib-tool: Add --without-*-tests options.
14711         * gnulib-tool (func_usage): Document the --without-*-tests options.
14712         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14713         excl_unportable_tests): New variables.
14714         Fail if they are specified with --import or --update.
14715         (func_acceptable): Respect the excl_*_tests variables.
14716         (func_import): Set the excl_*_tests variables to empty.
14717
14718 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14719             Bruno Haible  <bruno@clisp.org>
14720
14721         Work around a MacOS X 10.4 bug with openpty.
14722         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14723         * tests/test-openpty.c (main): Close the master side explicitly.
14724
14725 2010-04-25  Bruno Haible  <bruno@clisp.org>
14726
14727         strnlen: Fix a C++ test error on MacOS X and Solaris.
14728         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14729         the function is not declared.
14730         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14731         Simon Josefsson.
14732
14733 2010-04-24  Bruno Haible  <bruno@clisp.org>
14734
14735         Avoid a gcc warning.
14736         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14737         of correct type for %08lx directive.
14738         Reported by Eric Blake.
14739
14740 2010-04-24  Bruno Haible  <bruno@clisp.org>
14741
14742         vasnprintf: Correct errno value in case of out-of-memory.
14743         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14744         or sprintf. Use the errno value from SNPRINTF or sprintf.
14745         Reported by Ian Beckwith <ianb@erislabs.net>.
14746
14747 2010-04-24  Bruno Haible  <bruno@clisp.org>
14748
14749         ansi-c++-opt: Find correct compiler when cross-compiling.
14750         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14751         AC_CHECK_PROGS.
14752         Reported by Simon Josefsson.
14753
14754 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14755
14756         vc-list-files: Add support for subversion
14757         * build-aux/vc-list-files: Use "svn list" to generate the list of
14758         files controlled by subversion.
14759
14760 2010-04-23  Jim Meyering  <meyering@redhat.com>
14761
14762         vc-list-files tests: convert to use init.sh
14763         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14764         path_prepend_.
14765         Use Exit, not exit.
14766         Use skip_ rather than open coding it.
14767         Remove trap set-up and compare definitions.
14768         * tests/test-vc-list-files-git.sh: Likewise.
14769         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14770
14771 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14772
14773         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14774         backup files.
14775
14776 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14777
14778         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14779
14780 2010-04-20  Eric Blake  <eblake@redhat.com>
14781
14782         tests: be robust to ignored SIGPIPE
14783         * tests/test-select-in.sh: Consume all output.
14784         * tests/test-lseek.sh: Check correct exit status, while avoiding
14785         EPIPE.
14786
14787 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14788             Bruno Haible  <bruno@clisp.org>
14789
14790         visibility: Don't use -fvisibility if it leads to a warning.
14791         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14792         yes, don't pretend that visibility works if it leads to a warning.
14793         Reported by Mike Gran <spk121@yahoo.com>.
14794
14795 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14796
14797         * build-aux/bootstrap: Use "git -h" for testing for supported options
14798         instead of "git --help".  The short-form option only shows a summary,
14799         and doesn't layout the full man page.  Grep for the full option name
14800         in the summary, too.
14801
14802 2010-04-19  Bruno Haible  <bruno@clisp.org>
14803
14804         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14805         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14806         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14807         mention of RELOCATABLE_STRIP.
14808         Reported by Sylvain Beucler <beuc@beuc.net>.
14809
14810 2010-04-19  Bruno Haible  <bruno@clisp.org>
14811
14812         * lib/diffseq.h: Fix typo in comment.
14813         Reported by Eric Blake.
14814
14815 2010-04-19  Bruno Haible  <bruno@clisp.org>
14816
14817         ioctl: Move autoconf macro to a .m4 file.
14818         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14819         * modules/ioctl (Files): Add it.
14820         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14821         Reported by Ian Beckwith <ianb@erislabs.net>.
14822
14823 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14824             Bruno Haible  <bruno@clisp.org>
14825
14826         diffseq: Accommodate use-case with abstract arrays.
14827         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14828         is not defined.
14829         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14830         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14831
14832 2010-04-18  Bruno Haible  <bruno@clisp.org>
14833
14834         * doc/posix-headers/stdbool.texi: More precise wording.
14835
14836 2010-04-17  Jim Meyering  <meyering@redhat.com>
14837
14838         maint.mk: use gnu-style indentation in an embedded perl script
14839         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14840         Rename variable: s/two/last_two_bytes/
14841
14842 2010-04-16  Eric Blake  <eblake@redhat.com>
14843
14844         test-stdbool: skip test that fails with Solaris CC
14845         * tests/test-stdbool.c (f): Skip test that causes compilation
14846         error under buggy C++ compiler.
14847         * lib/stdbool.in.h: Document the limitation.
14848         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14849
14850         setenv: allow compilation with C++
14851         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14852         register keyword.
14853
14854         stdint: allow test to pass with C++
14855         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14856
14857         getopt: allow compilation with C++
14858         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14859         struct.
14860         * lib/getopt.c (_getopt_internal_r): Use correct type.
14861         Reported by Dagobert Michelson, via Joel E. Denny.
14862
14863 2010-04-16  Bruno Haible  <bruno@clisp.org>
14864
14865         Override netdb.h always.
14866         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14867         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14868         Reported by Ludovic Courtès <ludo@gnu.org>.
14869
14870 2010-04-15  Bruno Haible  <bruno@clisp.org>
14871
14872         openpty: Fix mistake from 2010-03-21.
14873         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14874         Reported by Simon Josefsson.
14875
14876 2010-04-15  Eric Blake  <eblake@redhat.com>
14877
14878         test-forkpty: fix expected signature
14879         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14880         Reported by Simon Josefsson.
14881
14882 2010-04-15  Jim Meyering  <meyering@redhat.com>
14883
14884         maint.mk: texinfo_suffix_re_: correct the default regexp
14885         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14886
14887         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14888         make it configurable via texinfo_suffix_re_.
14889
14890 2010-04-14  Eric Blake  <eblake@redhat.com>
14891
14892         strtok_r: relax license to LGPLv2+
14893         * modules/strtok_r (License): Relax license.
14894         Reported by Matthias Bolte.
14895
14896 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14897
14898         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14899         version 1.4.4 by default instead of requiring the libgcrypt
14900         version used during build.  This makes it possible to use the
14901         application with older but still binary compatible libgcrypt
14902         versions.
14903
14904 2010-04-13  Eric Blake  <eblake@redhat.com>
14905
14906         getopt-gnu: match recent glibc fixes and posix ruling
14907         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14908         '+' handling, when requesting extensions.
14909         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14910         'W;' handling.
14911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14912         * doc/posix-functions/getopt.texi (getopt): Document this.
14913         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14914         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14915         Likewise.
14916
14917         getopt: merge bug fixes from glibc
14918         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14919         diagnostics.  Honor '+:' correctly.  Reject ';'.
14920
14921         getopt-posix: detect MacOS bug
14922         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14923         optind when missing a required argument.
14924         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14925         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14926         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14927         Likewise.
14928
14929         getopt-posix: avoid spurious failure on Solaris
14930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14931         an indicator that setting optind=1 is sufficient for reset.
14932
14933         getopt-posix: avoid spurious failure on FreeBSD
14934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14935         in POSIX mode, since the m4 test uses it.
14936
14937         gnulib-tool: silence warning on BSD sh
14938         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14939
14940 2010-04-13  Jim Meyering  <meyering@redhat.com>
14941
14942         doc: users.txt: GNU patch now uses gnulib
14943         * users.txt: Add patch.
14944
14945 2010-04-12  Jim Meyering  <meyering@redhat.com>
14946
14947         maint.mk: generate more concise timing data for syntax-check rules
14948         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14949         " done" from each line that reports a syntax-check test duration.
14950
14951 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14952
14953         git-version-gen: use "git update-index..." rather than "git status"
14954         * build-aux/git-version-gen: Use git update-index --refresh, not
14955         "git status".  With some versions of git, "git status" would fail
14956         to update the index and result in an unwarranted "-dirty" suffix.
14957
14958 2010-04-11  Jim Meyering  <meyering@redhat.com>
14959
14960         openat: correct formatting (no semantic change)
14961         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14962         Suggested by Bruno Haible.
14963
14964 2010-04-11  Bruno Haible  <bruno@clisp.org>
14965
14966         Stricter declaration checking in testdirs.
14967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14968         If for_tests is true, augment AM_CPPFLAGS to define
14969         GNULIB_STRICT_CHECKING.
14970         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14971         GNULIB_STRICT_CHECKING is defined, verify that the function is
14972         declared.
14973
14974 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14975             Bruno Haible  <bruno@clisp.org>
14976
14977         libunistring: Improve configure output.
14978         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14979         Don't say "consider installing GNU libunistring" when checking again
14980         with libiconv.
14981
14982 2010-04-11  Bruno Haible  <bruno@clisp.org>
14983
14984         libunistring: Correct value of $LTLIBUNISTRING.
14985         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14986         correct the value of $LTLIBUNISTRING.
14987
14988 2010-04-11  Bruno Haible  <bruno@clisp.org>
14989
14990         havelib: Add static libraries to LIBS in the right order.
14991         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14992         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14993
14994 2010-04-11  Bruno Haible  <bruno@clisp.org>
14995
14996         libunistring: Detect libunistring also when it depends on libiconv.
14997         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14998         the second AC_LIB_HAVE_LINKFLAGS invocation.
14999
15000 2010-04-11  James Youngman  <jay@gnu.org>
15001
15002         close-stream: declare local scalars to be "const"
15003         * lib/close-stream.c (close_stream): Make boolean variables const
15004         to document the fact that we set but do not change them.
15005
15006 2010-04-11  Bruno Haible  <bruno@clisp.org>
15007
15008         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15009
15010 2010-04-11  Jim Meyering  <meyering@redhat.com>
15011
15012         maint.mk: don't include dist-check.mk
15013         * top/maint.mk: Remove bogus include directive.
15014
15015         maint.mk: improve empty-line-at-EOF check
15016         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15017         solution, rather than tail+Perl-based one.  The latter would read
15018         a few kilobytes from the end of each file, and did not handle empty
15019         files properly.
15020
15021         maint.mk: print the elapsed time for each syntax-check rule
15022         * top/maint.mk (sc_m_rules_): Save start time in a file.
15023         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15024         (local-check): Interpose the .z rules
15025
15026 2010-04-11  Jim Meyering  <meyering@redhat.com>
15027
15028         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15029         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15030         empty file with one that ends in an empty line.
15031
15032 2010-04-10  Bruno Haible  <bruno@clisp.org>
15033
15034         mkdir: Make it work on mingw64.
15035         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15036         * lib/mkdir.c: Update comment.
15037         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15038
15039 2010-04-10  Bruno Haible  <bruno@clisp.org>
15040
15041         Don't override improved macro from newer autoconf.
15042         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15043         autoconf >= 2.62.
15044         Reported by Joel E. Denny <jdenny@clemson.edu>.
15045
15046 2010-04-10  Jim Meyering  <meyering@redhat.com>
15047
15048         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15049         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15050
15051         maint.mk: correct a diagnostic
15052         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15053         in diagnostic; now use $prohibit.
15054
15055 2010-04-10  Bruno Haible  <address@hidden>
15056
15057         fchownat: Fix a C++ test error on Solaris 8.
15058         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15059         the function does not exist.
15060
15061 2010-04-10  Bruno Haible  <bruno@clisp.org>
15062
15063         vasnprintf: Add more tests.
15064         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15065         (test_function): Test converting an invalid wide string.
15066
15067         vasnprintf: Correct handling of unconvertible wide string arguments.
15068         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15069         VASNPRINTF.
15070         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15071         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15072         smaller than the expected maximum need for the directive. Set errno to
15073         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15074         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15076         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15077         * modules/vasnprintf (Files): Add m4/printf.m4.
15078         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15079
15080 2010-04-10  Bruno Haible  <bruno@clisp.org>
15081
15082         vasnprintf: Fix crash in %ls directive.
15083         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15084         string is passed as argument to %ls, with no precision and no width.
15085         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15086
15087 2010-04-10  Bruno Haible  <bruno@clisp.org>
15088
15089         vasnprintf: Fix multiple test failures on mingw.
15090         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15091         _snprintf, or snwprintf, not _snwprintf.
15092
15093 2010-04-10  Bruno Haible  <bruno@clisp.org>
15094
15095         write: Fix a C++ test error on mingw.
15096         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15097
15098 2010-04-10  Bruno Haible  <bruno@clisp.org>
15099
15100         vasnprintf test: Reduce code duplication.
15101         * tests/test-vasnprintf.c (test_function): New function, extracted from
15102         test_vasnprintf.
15103         (test_vasnprintf, test_asnprintf): Invoke it.
15104
15105 2010-04-10  Bruno Haible  <bruno@clisp.org>
15106
15107         strnlen: Fix warning in C++ mode on MacOS X.
15108         * lib/string.in.h (strnlen): Use the modern idiom.
15109         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15110         defining strnlen as a macro already in <config.h>.
15111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15112         REPLACE_STRNLEN.
15113         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15114         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15115
15116 2010-04-08  James Youngman  <jay@gnu.org>
15117
15118         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15119         the example.
15120
15121 2010-04-09  Jim Meyering  <meyering@redhat.com>
15122
15123         maint.mk: print better diagnostic when there is no $(_hv_file)
15124         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15125         announce that when $(_hv_file) (aka help-version) does not exist.
15126
15127         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15128         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15129         not try to interpret its random input bytes.  Jarno Rajahalme reported
15130         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15131         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15132         (mktempd_): Likewise, just in case.
15133
15134         ftruncate: add two years to projected module removal date: 2012
15135         * m4/ftruncate.m4: Adjust comments.
15136
15137         ftruncate: mark module as obsolete; even MinGW provides it, now
15138         * modules/ftruncate (Status): Obsolete.
15139         (Notice): Say that.
15140         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15141         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15142
15143 2010-04-08  Bruno Haible  <bruno@clisp.org>
15144
15145         Fix side effects from tests-related modules.
15146         * modules/dprintf-posix (Comment): New section.
15147         * modules/fprintf-posix (Comment): Likewise.
15148         * modules/obstack-printf-posix (Comment): Likewise.
15149         * modules/printf-posix (Comment): Likewise.
15150         * modules/snprintf-posix (Comment): Likewise.
15151         * modules/sprintf-posix (Comment): Likewise.
15152         * modules/vasnprintf-posix (Comment): Likewise.
15153         * modules/vasprintf-posix (Comment): Likewise.
15154         * modules/vdprintf-posix (Comment): Likewise.
15155         * modules/vfprintf-posix (Comment): Likewise.
15156         * modules/vprintf-posix (Comment): Likewise.
15157         * modules/vsnprintf-posix (Comment): Likewise.
15158         * modules/vsprintf-posix (Comment): Likewise.
15159         * modules/xprintf-posix (Comment): Likewise.
15160         * modules/xvasprintf-posix (Comment): Likewise.
15161         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15162         * modules/floorf-tests (Depends-on): Likewise.
15163         * modules/round-tests (Depends-on): Likewise.
15164         * modules/roundf-tests (Depends-on): Likewise.
15165         * modules/trunc-tests (Depends-on): Likewise.
15166         * modules/truncf-tests (Depends-on): Likewise.
15167         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15168         'fprintf-posix' module is not present.
15169         * tests/test-floorf2.c (check): Likewise.
15170         * tests/test-trunc2.c (check): Likewise.
15171         * tests/test-truncf2.c (check): Likewise.
15172         * tests/test-round2.c (equal): Likewise.
15173         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15174
15175 2010-04-07  Karl Berry  <karl@gnu.org>
15176
15177         * config/srclist.txt,
15178         * config/srclistvars.sh,
15179         * config/srclist-update: doc fixes.
15180
15181 2010-04-07  Jim Meyering  <meyering@redhat.com>
15182
15183         maint.mk: add a PATH crosschecking syntax-check rule
15184         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15185         Useful if you use a test like the one in help-version (coreutils,
15186         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15187         printed by prog --version.
15188
15189 2010-04-06  Bruno Haible  <bruno@clisp.org>
15190
15191         Fix link error on mingw.
15192         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15193         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15194
15195 2010-04-06  Bruno Haible  <bruno@clisp.org>
15196
15197         Assume rmdir exists.
15198         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15199
15200 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15201
15202         doc: update users.txt
15203         * users.txt: Add gcal.
15204
15205 2010-04-06  Jim Meyering  <meyering@redhat.com>
15206
15207         init.sh: simply unset TMPDIR rather than risking env -i
15208         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15209         although it probably works fine on all Unix-based systems, some
15210         systems (Cygwin?) cannot tolerate a totally cleared environment.
15211         Suggestion from Eric Blake.
15212
15213 2010-04-06  Jim Meyering  <meyering@redhat.com>
15214
15215         init.sh: portability fix: use env's POSIX-specified -i option not -u
15216         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15217         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15218
15219 2010-04-05  Bruno Haible  <bruno@clisp.org>
15220
15221         btowc: Work around Cygwin 1.7.2 bug.
15222         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15223         does not map NUL to 0.
15224         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15225
15226 2010-04-05  Bruno Haible  <bruno@clisp.org>
15227
15228         Make the multithread modules work on Cygwin 1.7.2.
15229         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15230         imported symbols can be declared weak, so that it returns "no" on
15231         Cygwin 1.7.2.
15232
15233 2010-04-05  Bruno Haible  <bruno@clisp.org>
15234
15235         Use the module 'strncat'.
15236         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15237
15238         Tests for module 'strncat'.
15239         * modules/strncat-tests: New file.
15240         * tests/test-strncat.c: New file.
15241
15242         New module 'strncat'.
15243         * lib/string.in.h (strncat): New declaration.
15244         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15245         * m4/strncat.m4: New file, based on m4/memchr.m4.
15246         * modules/strncat: New file.
15247         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15248         is declared.
15249         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15250         REPLACE_STRNCAT.
15251         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15252         REPLACE_STRNCAT.
15253         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15254         module.
15255         * tests/test-string-c++.cc: Check signature of strncat.
15256
15257 2010-04-05  Jim Meyering  <meyering@redhat.com>
15258
15259         xstrtoumax-tests: convert to use init.sh
15260         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15261         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15262         Use Exit, not exit.
15263         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15264
15265         xstrtoimax-tests: convert to use init.sh
15266         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15267         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15268         Use Exit, not exit.
15269         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15270
15271 2010-04-05  Bruno Haible  <bruno@clisp.org>
15272
15273         sys_socket: Avoid #define replacements in C++ mode.
15274         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15275         warning to the function if possible, rather than #defining the symbol
15276         to a dysfunctional alias.
15277
15278 2010-04-05  Bruno Haible  <bruno@clisp.org>
15279
15280         fseeko: Fix C++ test error on mingw.
15281         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15282         gl_FUNC_FSEEKO.
15283         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15284         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15285         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15286         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15287
15288 2010-04-05  Bruno Haible  <bruno@clisp.org>
15289
15290         duplocale: Improve test output.
15291         * tests/test-duplocale.c (main): Print reason for skipped test.
15292
15293 2010-04-05  Bruno Haible  <bruno@clisp.org>
15294
15295         Assume rmdir exists.
15296         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15297         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15298
15299 2010-04-05  Bruno Haible  <bruno@clisp.org>
15300
15301         Fix link error on Solaris 8 with cc.
15302         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15303
15304 2010-04-05  Bruno Haible  <bruno@clisp.org>
15305
15306         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15307         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15308
15309 2010-04-05  Bruno Haible  <bruno@clisp.org>
15310
15311         vasprintf: Update documentation.
15312         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15313
15314 2010-04-05  Bruno Haible  <bruno@clisp.org>
15315
15316         ptsname: Improve test.
15317         * tests/test-ptsname.c (main): Also try the various master names of BSD
15318         systems.
15319
15320 2010-04-05  Bruno Haible  <bruno@clisp.org>
15321
15322         memchr: Avoid a possible C++ test error.
15323         * lib/string.in.h (memchr): Provide declaration if function is missing.
15324         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15325         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15327         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15328
15329 2010-04-05  Bruno Haible  <bruno@clisp.org>
15330
15331         strtok_r: Improve idiom.
15332         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15333         AC_LIBOBJ is used.
15334
15335 2010-04-05  Bruno Haible  <bruno@clisp.org>
15336
15337         strdup: Improve idiom.
15338         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15339         AC_LIBOBJ is used.
15340         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15341         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15342         when AC_LIBOBJ is used.
15343
15344 2010-04-05  Bruno Haible  <bruno@clisp.org>
15345
15346         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15347         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15348         don't set REPLACE_MBSINIT to 1.
15349         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15350         don't set REPLACE_MBRTOWC to 1.
15351         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15352         exist, don't set REPLACE_MBSRTOWCS to 1.
15353         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15354         exist, don't set REPLACE_MBSNRTOWCS to 1.
15355         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15356         don't set REPLACE_WCRTOMB to 1.
15357         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15358         exist, don't set REPLACE_WCSRTOMBS to 1.
15359         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15360         exist, don't set REPLACE_WCSNRTOMBS to 1.
15361
15362 2010-04-05  Bruno Haible  <bruno@clisp.org>
15363
15364         ldexpl: Improve idiom.
15365         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15366         make sure to set HAVE_DECL_LDEXPL to 0.
15367
15368 2010-04-05  Jim Meyering  <meyering@redhat.com>
15369
15370         xstrtol-tests: convert to use init.sh
15371         * modules/xstrtol-tests (Files): Add tests/init.sh.
15372         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15373         Use Exit, not exit.
15374         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15375
15376         atexit-tests: convert to use init.sh
15377         * modules/atexit-tests (Files): Add tests/init.sh.
15378         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15379         Use Exit, not exit.
15380         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15381
15382         init.sh: fix typo
15383         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15384
15385         init.sh: make it easier for a test script to write to the tty, ...
15386         when using automake's parallel-tests mode.
15387         * tests/init.sh (stderr_fileno_): Define overridable variable.
15388         (warn_): New function, to use it.
15389         (fail_, skip_, framework_failure_): Use warn_.
15390
15391 2010-04-04  Bruno Haible  <bruno@clisp.org>
15392
15393         btowc: Avoid warning.
15394         * lib/btowc.c: Include <stdlib.h>.
15395         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15396
15397 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15398             Bruno Haible  <bruno@clisp.org>
15399
15400         wchar: Port to NetBSD 1.5.
15401         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15402         * lib/wctype.in.h (WEOF): Likewise.
15403
15404 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15405             Bruno Haible  <bruno@clisp.org>
15406
15407         Port extended stdio to NetBSD 1.5.
15408         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15409         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15410         older.
15411
15412 2010-04-04  Bruno Haible  <bruno@clisp.org>
15413
15414         string: Remove unused substitution.
15415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15416         HAVE_DECL_STRERROR.
15417         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15418
15419 2010-04-04  Bruno Haible  <bruno@clisp.org>
15420
15421         strtod: Avoid a possible C++ test error.
15422         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15423         set REPLACE_STRTOD.
15424
15425 2010-04-04  Bruno Haible  <bruno@clisp.org>
15426
15427         strerror: Update documentation.
15428         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15429
15430 2010-04-04  Bruno Haible  <bruno@clisp.org>
15431
15432         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15433         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15434         _GL_CXXALIAS_SYS_CAST.
15435
15436 2010-04-04  Bruno Haible  <bruno@clisp.org>
15437
15438         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15439         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15440         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15441         REPLACE_FREXPL to 1.
15442         * doc/posix-functions/frexpl.texi: Update documentation.
15443
15444 2010-04-04  Bruno Haible  <bruno@clisp.org>
15445
15446         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15447         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15448
15449 2010-04-04  Bruno Haible  <bruno@clisp.org>
15450
15451         Implement nanosleep for native Windows.
15452         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15453
15454 2010-04-04  Bruno Haible  <bruno@clisp.org>
15455
15456         math: Fix some C++ test errors on Solaris 8.
15457         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15458
15459 2010-04-04  Bruno Haible  <bruno@clisp.org>
15460
15461         math: Fix some C++ test errors on Cygwin.
15462         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15463         truncl): Provide declaration if the system does not have it.
15464         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15465         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15466         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15467         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15468         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15469         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15470         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15471         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15472         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15473         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15474         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15475         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15476         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15477         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15478         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15479         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15481         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15482         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15483         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15484         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15485         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15486
15487 2010-04-04  Bruno Haible  <bruno@clisp.org>
15488
15489         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15490         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15491         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15492         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15493         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15494         * m4/isinf.m4 (gl_ISINF): Likewise.
15495         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15496
15497 2010-04-04  Bruno Haible  <bruno@clisp.org>
15498
15499         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15500         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15501
15502 2010-04-04  Bruno Haible  <bruno@clisp.org>
15503
15504         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15505         * modules/tmpfile (configure.ac): Update.
15506
15507         tmpfile: Fix C++ test error on mingw.
15508         * lib/stdio.in.h (tmpfile): New declaration.
15509         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15510         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15511         * modules/tmpfile (Depends-on): Add stdio.
15512         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15513         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15514         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15515         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15516         REPLACE_TMPFILE.
15517         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15518
15519 2010-04-04  Bruno Haible  <bruno@clisp.org>
15520
15521         ioctl: Fix C++ test error on mingw.
15522         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15523         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15524         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15525
15526 2010-04-03  Bruno Haible  <bruno@clisp.org>
15527
15528         wcwidth: Fix C++ test error on mingw.
15529         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15531         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15532
15533 2010-04-03  Bruno Haible  <bruno@clisp.org>
15534
15535         nanosleep: Fix C++ test error on mingw.
15536         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15537         * lib/time.in.h (nanosleep): Use modern idiom.
15538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15539         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15540         REPLACE_NANOSLEEP to 1.
15541         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15542         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15543
15544 2010-04-03  Bruno Haible  <bruno@clisp.org>
15545
15546         strptime: Fix C++ test error on mingw.
15547         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15548         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15549         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15550         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15551         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15552         not REPLACE_STRPTIME.
15553         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15554         REPLACE_STRPTIME.
15555
15556 2010-04-03  Bruno Haible  <bruno@clisp.org>
15557
15558         timegm: Fix C++ test error on mingw.
15559         * lib/time.in.h (timegm): Use modern idiom.
15560         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15561         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15562         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15563         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15564
15565 2010-04-03  Bruno Haible  <bruno@clisp.org>
15566
15567         timegm: Assume declaration if function exists.
15568         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15569         if it exists. Don't clobber ac_cv_func_timegm.
15570
15571 2010-04-03  Bruno Haible  <bruno@clisp.org>
15572
15573         time_r: Fix C++ test error on mingw.
15574         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15575         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15576         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15577         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15578         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15579
15580 2010-04-03  Bruno Haible  <bruno@clisp.org>
15581
15582         time_r: Minor updates.
15583         * modules/time_r (Description): Mention the provided functions.
15584         * lib/time_r.c: Don't include <string.h>.
15585         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15586         * doc/posix-functions/localtime_r.texi: Likewise.
15587
15588 2010-04-03  Bruno Haible  <bruno@clisp.org>
15589
15590         time: Fix regression introduced on 2010-03-08.
15591         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15592         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15593
15594 2010-04-03  Jim Meyering  <meyering@redhat.com>
15595
15596         maint.mk: don't silently disable project-specific syntax-check rules
15597         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15598         that they need to convert their project-specific syntax-check rules
15599         to use the new _sc_search_regexp.
15600
15601 2010-04-03  Bruno Haible  <bruno@clisp.org>
15602
15603         fchdir: Fix regression introduced on 2010-03-08.
15604         * lib/unistd.in.h (fchdir): Fix declaration.
15605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15607         REPLACE_FCHDIR.
15608         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15609         REPLACE_FCHDIR.
15610
15611 2010-04-03  Bruno Haible  <bruno@clisp.org>
15612
15613         getpagesize: Fix C++ test error on mingw.
15614         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15615         system does not declare the function.
15616         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15617         declared.
15618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15619         HAVE_DECL_GETPAGESIZE.
15620         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15621
15622 2010-04-03  Bruno Haible  <bruno@clisp.org>
15623
15624         stdio: Make C++ tests work on mingw.
15625         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15626         does not declare the function.
15627
15628 2010-04-03  Bruno Haible  <bruno@clisp.org>
15629
15630         ftello: Fix C++ test error on mingw.
15631         * lib/stdio.in.h (ftello): Use modern idiom.
15632         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15633         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15634         is missing and that it needs to be replaced.
15635         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15637         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15638
15639 2010-04-03  Bruno Haible  <bruno@clisp.org>
15640
15641         fseeko: Fix C++ test error on mingw.
15642         * lib/stdio.in.h (fseeko): Use modern idiom.
15643         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15644         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15645         is missing and that it needs to be replaced.
15646         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15648         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15649
15650 2010-04-03  Bruno Haible  <bruno@clisp.org>
15651
15652         mkstemp: Fix C++ test error on mingw.
15653         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15654         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15655         function is missing and that it needs to be replaced.
15656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15657         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15658
15659 2010-04-03  Bruno Haible  <bruno@clisp.org>
15660
15661         stpncpy: Fix C++ test error on mingw.
15662         * lib/string.in.h (stpncpy): Use modern idiom.
15663         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15664         function is missing and that it needs to be replaced.
15665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15666         REPLACE_STPNCPY.
15667         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15668
15669 2010-04-03  Bruno Haible  <bruno@clisp.org>
15670
15671         sys_stat: Fix C++ test error on mingw.
15672         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15673         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15674
15675 2010-04-03  Bruno Haible  <bruno@clisp.org>
15676
15677         pty: Update doc.
15678         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15679
15680 2010-04-03  Bruno Haible  <bruno@clisp.org>
15681
15682         unistd: Fix C++ test error on mingw.
15683         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15684
15685 2010-04-03  Bruno Haible  <bruno@clisp.org>
15686
15687         Update doc regarding mingw.
15688         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15689         * doc/glibc-functions/login_tty.texi: Likewise.
15690         * doc/glibc-functions/forkpty.texi: Likewise.
15691
15692 2010-04-03  Bruno Haible  <bruno@clisp.org>
15693
15694         stdlib: Avoid compilation failure of c-strtold on mingw.
15695         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15696
15697 2010-04-03  Bruno Haible  <bruno@clisp.org>
15698
15699         locale: Make C++ tests work on Cygwin and mingw.
15700         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15701         cannot provide the function.
15702         Reported by Simon Josefsson.
15703
15704 2010-04-03  Bruno Haible  <bruno@clisp.org>
15705
15706         localename: Port to MacOS X 10.6.
15707         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15708         memory layout of the locales in MacOS X 10.6 as well.
15709         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15710
15711 2010-04-02  Bruno Haible  <bruno@clisp.org>
15712
15713         gnulib-tool: Ensure that long-running tests are executed last.
15714         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15715         running tests after the one for the other tests.
15716
15717 2010-04-02  Bruno Haible  <bruno@clisp.org>
15718
15719         gnulib-tool: Ensure the tests in the main directory are executed first.
15720         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15721         start with the current directory.
15722
15723 2010-04-02  Bruno Haible  <bruno@clisp.org>
15724
15725         Tests for module 'havelib', moved here from GNU gettext.
15726         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15727         modifications.
15728         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15729         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15730         with modifications.
15731         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15732         modifications.
15733         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15734         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15735         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15736         with modifications.
15737         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15738         with modifications.
15739         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15740         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15741         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15742         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15743         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15744         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15745         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15746         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15747         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15748         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15749         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15750         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15751         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15752         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15753         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15754         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15755         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15756         with modifications.
15757         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15758         with modifications.
15759         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15760         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15761         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15762         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15763         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15764         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15765         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15766         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15767         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15768         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15769         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15770         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15771         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15772         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15773         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15774         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15775         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15776         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15777         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15778         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15779         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15780         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15781         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15782         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15783         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15784         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15785         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15786         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15787         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15788         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15789         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15790         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15791         * tests/havelib/rpathx/rpathx.c: New file, from
15792         gettext/autoconf-lib-link.
15793         * tests/havelib/rpathx/Makefile.am: New file, from
15794         gettext/autoconf-lib-link.
15795         * tests/havelib/rpathx/configure.ac: New file, from
15796         gettext/autoconf-lib-link with modifications.
15797         * tests/havelib/rpathy/rpathy.c: New file, from
15798         gettext/autoconf-lib-link.
15799         * tests/havelib/rpathy/Makefile.am: New file, from
15800         gettext/autoconf-lib-link.
15801         * tests/havelib/rpathy/configure.ac: New file, from
15802         gettext/autoconf-lib-link with modifications.
15803         * tests/havelib/rpathz/rpathz.c: New file, from
15804         gettext/autoconf-lib-link.
15805         * tests/havelib/rpathz/Makefile.am: New file, from
15806         gettext/autoconf-lib-link.
15807         * tests/havelib/rpathz/configure.ac: New file, from
15808         gettext/autoconf-lib-link with modifications.
15809         * tests/havelib/rpathlx/usex.c: New file, from
15810         gettext/autoconf-lib-link.
15811         * tests/havelib/rpathlx/Makefile.am: New file, from
15812         gettext/autoconf-lib-link.
15813         * tests/havelib/rpathlx/configure.ac: New file, from
15814         gettext/autoconf-lib-link with modifications.
15815         * tests/havelib/rpathly/usey.c: New file, from
15816         gettext/autoconf-lib-link.
15817         * tests/havelib/rpathly/Makefile.am: New file, from
15818         gettext/autoconf-lib-link.
15819         * tests/havelib/rpathly/configure.ac: New file, from
15820         gettext/autoconf-lib-link with modifications.
15821         * tests/havelib/rpathlz/usez.c: New file, from
15822         gettext/autoconf-lib-link.
15823         * tests/havelib/rpathlz/Makefile.am: New file, from
15824         gettext/autoconf-lib-link.
15825         * tests/havelib/rpathlz/configure.ac: New file, from
15826         gettext/autoconf-lib-link with modifications.
15827         * tests/havelib/rpathlyx/usey.c: New file, from
15828         gettext/autoconf-lib-link.
15829         * tests/havelib/rpathlyx/Makefile.am: New file, from
15830         gettext/autoconf-lib-link.
15831         * tests/havelib/rpathlyx/configure.ac: New file, from
15832         gettext/autoconf-lib-link with modifications.
15833         * tests/havelib/rpathlzyx/usez.c: New file, from
15834         gettext/autoconf-lib-link.
15835         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15836         gettext/autoconf-lib-link.
15837         * tests/havelib/rpathlzyx/configure.ac: New file, from
15838         gettext/autoconf-lib-link with modifications.
15839         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15840         with modifications.
15841
15842 2010-04-02  Bruno Haible  <bruno@clisp.org>
15843
15844         gnulib-tool: Create distributed built sources also for the tests.
15845         * gnulib-tool (func_create_testdir): Also generate distributed built
15846         sources in the tests directory.
15847
15848 2010-04-02  Bruno Haible  <bruno@clisp.org>
15849
15850         gnulib-tool: Obey user's environment variables.
15851         * gnulib-tool (func_create_testdir): When creating built sources,
15852         respect the environment variables for autoconf, automake, etc. given by
15853         the user.
15854
15855 2010-04-02  Bruno Haible  <bruno@clisp.org>
15856
15857         gnulib-tool: Provide the value of --m4-base to modules.
15858         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15859         of gl_m4_base.
15860
15861 2010-04-02  Eric Blake  <eblake@redhat.com>
15862
15863         maint.mk: fix some fallout
15864         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15865         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15866
15867 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15868
15869         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15870         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15871         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15872         (sc_cast_of_x_alloc_return_value): Likewise.
15873         (sc_cast_of_alloca_return_value): Likewise.
15874         (sc_space_tab): Likewise.
15875         (sc_prohibit_atoi_atof): Likewise.
15876         (sc_prohibit_magic_number_exit): Likewise.
15877         (sc_error_exit_success): Likewise.
15878         (sc_file_system): Likewise.
15879         (sc_prohibit_have_config_h): Likewise.
15880         (sc_require_config_h): Likewise.
15881         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15882         (sc_obsolete_symbols): Likewise.
15883         (sc_changelog): Likewise.
15884         (sc_program_name): Likewise.
15885         (sc_the_the): Likewise.
15886         (sc_trailing_blank): Likewise.
15887         (sc_two_space_separator_in_usage): Likewise.
15888         (sc_useless_cpp_parens): Likewise.
15889         (sc_GPL_version): Likewise.
15890         (sc_GFDL_version): Likewise.
15891         (sc_texinfo_acronym): Likewise.
15892         (sc_prohibit_cvs_keyword): Likewise.
15893         (sc_prohibit_stat_st_blocks): Likewise.
15894         (sc_prohibit_S_IS_definition): Likewise.
15895         (sc_redundant_const): Likewise.
15896         (sc_makefile_TAB_only_indentation): Likewise.
15897         (sc_m4_quote_check): Likewise.
15898         (sc_makefile_path_separator_check): Likewise.
15899         (sc_copyright_check): Likewise.
15900         (sc_Wundef_boolean): Likewise.
15901         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15902
15903         maint.mk: match 0 or more whitespace-before-function-call '('
15904         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15905         that have zero or two-and-more spaces between the function name
15906         and the open parenthesis.
15907         (sc_error_message_warn_fatal): Likewise.
15908         (sc_error_message_uppercase): Likewise.
15909         (sc_error_message_period): Likewise.
15910
15911 2010-03-31  Eric Blake  <eblake@redhat.com>
15912
15913         maint.mk: check for [ as well as test
15914         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15915         Based on a libvirt report by Matthias Bolte.
15916
15917         gnumakefile: don't squelch _version output
15918         * top/GNUmakefile (_version): Create one-shot dependency rather
15919         than using $(shell) when version must be regenerated.
15920         (_autoreconf): Run verbosely, by default.
15921
15922         sys_time: avoid compiler warnings
15923         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15924         unconditional, fixing regression from 2010-03-29.
15925         Reported by Simon Josefsson.
15926
15927 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15928
15929         maint.mk: s/_header_without_use/_sc_header_without_use/
15930         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15931         (sc_prohibit_assert_without_use): Use the new name.
15932         (sc_prohibit_close_stream_without_use): Likewise.
15933         (sc_prohibit_getopt_without_use): Likewise.
15934         (sc_prohibit_quotearg_without_use): Likewise.
15935         (sc_prohibit_quote_without_use): Likewise.
15936         (sc_prohibit_long_options_without_use): Likewise.
15937         (sc_prohibit_inttostr_without_use): Likewise.
15938         (sc_prohibit_ignore_value_without_use): Likewise.
15939         (sc_prohibit_error_without_use): Likewise.
15940         (sc_prohibit_xalloc_without_use): Likewise.
15941         (sc_prohibit_hash_without_use): Likewise.
15942         (sc_prohibit_hash_pjw_without_use): Likewise.
15943         (sc_prohibit_safe_read_without_use): Likewise.
15944         (sc_prohibit_argmatch_without_use): Likewise.
15945         (sc_prohibit_canonicalize_without_use): Likewise.
15946         (sc_prohibit_root_dev_ino_without_use): Likewise.
15947         (sc_prohibit_openat_without_use): Likewise.
15948         (sc_prohibit_c_ctype_without_use): Likewise.
15949         (sc_prohibit_signal_without_use): Likewise.
15950         (sc_prohibit_intprops_without_use): Likewise.
15951
15952 2010-03-30  Eric Blake  <eblake@redhat.com>
15953
15954         maint: improve module indicators
15955         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15956         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15957         columns, and avoid extra macro expansion.
15958
15959         fdopendir: work around FreeBSD bug
15960         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15961         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15962         * modules/dirent (Makefile.am): Substitute it.
15963         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15964         declaration.
15965         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15966         fix.
15967         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15968
15969 2010-03-29  Bruno Haible  <bruno@clisp.org>
15970
15971         Emit #pragma system_header after the inclusion guard, not before.
15972         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15973         guard that spans the entire file, not before. This enables an
15974         optimization in GCC's preprocessor.
15975         * lib/ctype.in.h: Likewise.
15976         * lib/dirent.in.h: Likewise.
15977         * lib/errno.in.h: Likewise.
15978         * lib/float.in.h: Likewise.
15979         * lib/getopt.in.h: Likewise.
15980         * lib/iconv.in.h: Likewise.
15981         * lib/langinfo.in.h: Likewise.
15982         * lib/locale.in.h: Likewise.
15983         * lib/math.in.h: Likewise.
15984         * lib/netdb.in.h: Likewise.
15985         * lib/netinet_in.in.h: Likewise.
15986         * lib/pty.in.h: Likewise.
15987         * lib/sched.in.h: Likewise.
15988         * lib/se-selinux.in.h: Likewise.
15989         * lib/search.in.h: Likewise.
15990         * lib/spawn.in.h: Likewise.
15991         * lib/stdarg.in.h: Likewise.
15992         * lib/stdint.in.h: Likewise.
15993         * lib/string.in.h: Likewise.
15994         * lib/strings.in.h: Likewise.
15995         * lib/sys_file.in.h: Likewise.
15996         * lib/sys_ioctl.in.h: Likewise.
15997         * lib/sys_time.in.h: Likewise.
15998         * lib/sys_times.in.h: Likewise.
15999         * lib/sys_utsname.in.h: Likewise.
16000         * lib/sys_wait.in.h: Likewise.
16001         * lib/sysexits.in.h: Likewise.
16002         * lib/wctype.in.h: Likewise.
16003
16004 2010-03-28  James Youngman  <jay@gnu.org>
16005
16006         save-cwd: don't leak a file descriptor when the caller execs.
16007         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16008         saved file descriptor.
16009         * modules/save-cwd (Depends-on): Depend on cloexec.
16010
16011 2010-03-29  Bruno Haible  <bruno@clisp.org>
16012
16013         Remove vestiges of fts-lgpl module.
16014         * lib/fts_.h: Assume GNULIB_FTS is 1.
16015         * lib/fts.c: Likewise.
16016         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16017
16018 2010-03-28  Bruno Haible  <bruno@clisp.org>
16019
16020         Fix definition of tests witness macro.
16021         * gnulib-tool (func_import): Fix definition of witness macro.
16022
16023 2010-03-28  Bruno Haible  <bruno@clisp.org>
16024
16025         Fix ioctl's protoype on glibc systems.
16026         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16027         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16028         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16029         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16030         signature. If not, arrange to replace the ioctl function.
16031         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16032         REPLACE_IOCTL.
16033         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16034         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16035         Reported by Ludovic Courtès <ludo@gnu.org>.
16036
16037 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16038
16039         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16040         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16041         made it so grep -r --include=GLOB* ... did not work.
16042
16043 2010-03-26  Jim Meyering  <meyering@redhat.com>
16044             Eric Blake  <eblake@redhat.com>
16045
16046         maint.mk: prohibit use of test's -o and -a operators
16047         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16048
16049 2010-03-28  Bruno Haible  <bruno@clisp.org>
16050
16051         Remove unused GNULIB_XYZ macro definitions.
16052         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16053         invocation.
16054
16055 2010-03-28  Bruno Haible  <bruno@clisp.org>
16056
16057         Mark privileged tests modules.
16058         * modules/idpriv-drop-tests (Status): New section.
16059         * modules/idpriv-droptemp-tests (Status): New section.
16060
16061 2010-03-28  Bruno Haible  <bruno@clisp.org>
16062
16063         Split C++ tests into separate tests modules.
16064         * modules/dirent-c++-tests: New file, extracted from
16065         modules/dirent-tests.
16066         * modules/dirent-tests: Depend on it.
16067         * modules/fcntl-h-c++-tests: New file, extracted from
16068         modules/fcntl-h-tests.
16069         * modules/fcntl-h-tests: Depend on it.
16070         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16071         * modules/glob-tests: Depend on it.
16072         * modules/iconv-h-c++-tests: New file, extracted from
16073         modules/iconv-h-tests.
16074         * modules/iconv-h-tests: Depend on it.
16075         * modules/langinfo-c++-tests: New file, extracted from
16076         modules/langinfo-tests.
16077         * modules/langinfo-tests: Depend on it.
16078         * modules/locale-c++-tests: New file, extracted from
16079         modules/locale-tests.
16080         * modules/locale-tests: Depend on it.
16081         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16082         * modules/math-tests: Depend on it.
16083         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16084         * modules/pty-tests: Depend on it.
16085         * modules/search-c++-tests: New file, extracted from
16086         modules/search-tests.
16087         * modules/search-tests: Depend on it.
16088         * modules/signal-c++-tests: New file, extracted from
16089         modules/signal-tests.
16090         * modules/signal-tests: Depend on it.
16091         * modules/spawn-c++-tests: New file, extracted from
16092         modules/spawn-tests.
16093         * modules/spawn-tests: Depend on it.
16094         * modules/stdio-c++-tests: New file, extracted from
16095         modules/stdio-tests.
16096         * modules/stdio-tests: Depend on it.
16097         * modules/stdlib-c++-tests: New file, extracted from
16098         modules/stdlib-tests.
16099         * modules/stdlib-tests: Depend on it.
16100         * modules/string-c++-tests: New file, extracted from
16101         modules/string-tests.
16102         * modules/string-tests: Depend on it.
16103         * modules/sys_ioctl-c++-tests: New file, extracted from
16104         modules/sys_ioctl-tests.
16105         * modules/sys_ioctl-tests: Depend on it.
16106         * modules/sys_select-c++-tests: New file, extracted from
16107         modules/sys_select-tests.
16108         * modules/sys_select-tests: Depend on it.
16109         * modules/sys_socket-c++-tests: New file, extracted from
16110         modules/sys_socket-tests.
16111         * modules/sys_socket-tests: Depend on it.
16112         * modules/sys_stat-c++-tests: New file, extracted from
16113         modules/sys_stat-tests.
16114         * modules/sys_stat-tests: Depend on it.
16115         * modules/sys_time-c++-tests: New file, extracted from
16116         modules/sys_time-tests.
16117         * modules/sys_time-tests: Depend on it.
16118         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16119         * modules/time-tests: Depend on it.
16120         * modules/unistd-c++-tests: New file, extracted from
16121         modules/unistd-tests.
16122         * modules/unistd-tests: Depend on it.
16123         * modules/wchar-c++-tests: New file, extracted from
16124         modules/wchar-tests.
16125         * modules/wchar-tests: Depend on it.
16126         * modules/wctype-c++-tests: New file, extracted from
16127         modules/wctype-tests.
16128         * modules/wctype-tests: Depend on it.
16129         Reported by Simon Josefsson.
16130
16131 2010-03-28  Bruno Haible  <bruno@clisp.org>
16132
16133         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16134         * gnulib-tool (func_exists_module): New function, extracted from
16135         func_verify_module.
16136         (func_verify_module): Use it.
16137         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16138         'foo' only if 'foo' exists.
16139         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16140         module.
16141
16142 2010-03-28  Bruno Haible  <bruno@clisp.org>
16143
16144         gnulib-tool: Add support for special categories of tests.
16145         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16146         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16147         (func_usage): Document them.
16148         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16149         inc_unportable_tests, inc_all_tests): New variables.
16150         (func_acceptable): Consider these variables.
16151         (func_modules_transitive_closure): Make it work when the 'Status' field
16152         consists of multiple words.
16153         (func_import): Store and restore the values of inc_cxx_tests,
16154         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16155         inc_all_tests in gnulib-comp.m4.
16156         (func_create_testdir): Set inc_all_tests to true.
16157         * doc/gnulib.texi (Extra tests modules): New section.
16158         Suggested by Jim Meyering.
16159
16160 2010-03-28  Bruno Haible  <bruno@clisp.org>
16161
16162         ansi-c++-opt: Allow turning off the C++ build by default.
16163         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16164         gl_CXX_CHOICE_DEFAULT_NO is defined.
16165         Requested by Eric Blake.
16166
16167 2010-03-28  Bruno Haible  <bruno@clisp.org>
16168
16169         unistd: Avoid #define replacements in C++ mode.
16170         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16171         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16172         setsockopt, shutdown, select): In C++, attach a warning to the function
16173         if possible, rather than #defining the symbol to a dysfunctional alias.
16174         Reported by John W. Eaton <jwe@gnu.org>.
16175
16176 2010-03-28  Bruno Haible  <bruno@clisp.org>
16177
16178         Fix link errors on mingw.
16179         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16180         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16181         $(LIBSOCKET).
16182         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16183         $(LIBSOCKET).
16184
16185 2010-03-28  Bruno Haible  <bruno@clisp.org>
16186             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16187
16188         lib-ignore: Determine different options for different compilers.
16189         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16190         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16191         Add comments.
16192         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16193         * NEWS: Mention the change.
16194
16195 2010-03-27  Bruno Haible  <bruno@clisp.org>
16196
16197         Remove unused GNULIB_XYZ macro definitions.
16198         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16199         * modules/fseek (configure.ac): Likewise.
16200         * modules/ioctl (configure.ac): Likewise.
16201         * modules/open (configure.ac): Likewise.
16202         * modules/stdlib-safer (configure.ac): Likewise.
16203
16204 2010-03-27  Bruno Haible  <bruno@clisp.org>
16205
16206         Add a remark about certain modules.
16207         * modules/malloc (Comment): New section.
16208         * modules/realloc (Comment): Likewise.
16209         * modules/sigpipe (Comment): Likewise.
16210
16211 2010-03-27  Bruno Haible  <bruno@clisp.org>
16212
16213         Resolve conflict between the two kinds of module indicators.
16214         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16215         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16216         * modules/canonicalize (configure.ac): Invoke
16217         gl_MODULE_INDICATOR_FOR_TESTS.
16218         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16219         GNULIB_XYZ.
16220         * tests/test-dirent-c++.cc: Likewise.
16221         * tests/test-dirent-safer.c: Likewise.
16222         * tests/test-dup2.c: Likewise.
16223         * tests/test-fchdir.c: Likewise.
16224         * tests/test-fcntl-h-c++.cc: Likewise.
16225         * tests/test-getopt.c: Likewise.
16226         * tests/test-getopt.h: Likewise.
16227         * tests/test-langinfo-c++.cc: Likewise.
16228         * tests/test-locale-c++.cc: Likewise.
16229         * tests/test-math-c++.cc: Likewise.
16230         * tests/test-pty-c++.cc: Likewise.
16231         * tests/test-search-c++.cc: Likewise.
16232         * tests/test-signal-c++.cc: Likewise.
16233         * tests/test-spawn-c++.cc: Likewise.
16234         * tests/test-stdio-c++.cc: Likewise.
16235         * tests/test-stdlib-c++.cc: Likewise.
16236         * tests/test-string-c++.cc: Likewise.
16237         * tests/test-sys_ioctl-c++.cc: Likewise.
16238         * tests/test-sys_select-c++.cc: Likewise.
16239         * tests/test-sys_socket-c++.cc: Likewise.
16240         * tests/test-sys_stat-c++.cc: Likewise.
16241         * tests/test-sys_time-c++.cc: Likewise.
16242         * tests/test-time-c++.cc: Likewise.
16243         * tests/test-unistd-c++.cc: Likewise.
16244         * tests/test-wchar-c++.cc: Likewise.
16245         * tests/uninorm/test-u8-nfc.c: Likewise.
16246         * tests/uninorm/test-u8-nfd.c: Likewise.
16247         * tests/uninorm/test-u8-nfkc.c: Likewise.
16248         * tests/uninorm/test-u8-nfkd.c: Likewise.
16249         * tests/uninorm/test-u16-nfc.c: Likewise.
16250         * tests/uninorm/test-u16-nfd.c: Likewise.
16251         * tests/uninorm/test-u16-nfkc.c: Likewise.
16252         * tests/uninorm/test-u16-nfkd.c: Likewise.
16253         * tests/uninorm/test-u32-nfc.c: Likewise.
16254         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16255         * tests/uninorm/test-u32-nfd.c: Likewise.
16256         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16257         * tests/uninorm/test-u32-nfkc.c: Likewise.
16258         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16259         * tests/uninorm/test-u32-nfkd.c: Likewise.
16260         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16261         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16262
16263 2010-03-27  Bruno Haible  <bruno@clisp.org>
16264
16265         Distinguish two kinds of module indicators.
16266         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16267         gl_MODULE_INDICATOR.
16268         (gl_MODULE_INDICATOR): New macro.
16269         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16270         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16271         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16272         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16273         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16274         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16275         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16276         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16277         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16278         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16279         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16280         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16282         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16283         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16284         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16285         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16286         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16287         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16288         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16289         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16290         * modules/cloexec (configure.ac): Likewise.
16291         * modules/getopt-gnu (configure.ac): Likewise.
16292         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16293         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16294         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16295         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16296
16297 2010-03-27  Bruno Haible  <bruno@clisp.org>
16298
16299         New module description field 'Comment'.
16300         * gnulib-tool: New option --extract-comment.
16301         (func_usage): Document it.
16302         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16303         (func_get_comment): New function.
16304         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16305
16306 2010-03-27  Bruno Haible  <bruno@clisp.org>
16307
16308         Addendum to 2010-02-07 commit.
16309         * gnulib-tool (func_usage): Document --extract-applicability option.
16310
16311 2010-03-27  Bruno Haible  <bruno@clisp.org>
16312
16313         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16314         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16315         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16316         rather than link errors.
16317
16318 2010-03-27  Bruno Haible  <bruno@clisp.org>
16319
16320         Avoid side effects from tests-related modules on the compilation of lib.
16321         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16322         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16323         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16324         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16325         macro.
16326         (func_import): Define a witness macro. Assign it a value that depends
16327         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16328         tests-related modules.
16329         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16330         Reported by Jim Meyering.
16331
16332 2010-03-27  Bruno Haible  <bruno@clisp.org>
16333
16334         Factorize common .m4 code.
16335         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16336         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16337         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16338         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16339         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16340         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16341         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16342         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16343         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16344         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16345         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16346         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16347         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16348         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16349         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16350         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16351         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16352         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16353         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16354         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16355         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16356         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16357         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16358         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16359         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16360         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16361         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16362         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16363         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16364         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16365         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16366         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16367
16368 2010-03-27  Bruno Haible  <bruno@clisp.org>
16369
16370         Fix a compilation error on Cygwin with g++ >= 4.3.
16371         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16372         if it is undefined or if we alias it to chmod.
16373         (lstat): Don't warn about the use of this function if it is undefined
16374         or if we alias it to stat.
16375         Reported by Simon Josefsson.
16376
16377 2010-03-27  Bruno Haible  <bruno@clisp.org>
16378
16379         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16380         * modules/getlogin (configure.ac): Update.
16381
16382         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16383         * modules/getlogin_r (configure.ac): Update.
16384
16385         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16386         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16387         * modules/inet_ntop (configure.ac): Update.
16388
16389         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16390         * modules/inet_pton (configure.ac): Update.
16391
16392         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16393         * modules/mbslen (configure.ac): Update.
16394
16395         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16396         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16397         * modules/forkpty (configure.ac): Update.
16398         * modules/openpty (configure.ac): Update.
16399
16400 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16401
16402         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16403         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16404
16405 2010-03-25  Eric Blake  <eblake@redhat.com>
16406
16407         maint: use pragma consistently across replacement headers
16408         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16409         * lib/dirent.in.h (system_header): Likewise.
16410         * lib/errno.in.h (system_header): Likewise.
16411         * lib/float.in.h (system_header): Likewise.
16412         * lib/getopt.in.h (system_header): Likewise.
16413         * lib/iconv.in.h (system_header): Likewise.
16414         * lib/inttypes.in.h (system_header): Likewise.
16415         * lib/langinfo.in.h (system_header): Likewise.
16416         * lib/locale.in.h (system_header): Likewise.
16417         * lib/math.in.h (system_header): Likewise.
16418         * lib/netdb.in.h (system_header): Likewise.
16419         * lib/netinet_in.in.h (system_header): Likewise.
16420         * lib/pty.in.h (system_header): Likewise.
16421         * lib/sched.in.h (system_header): Likewise.
16422         * lib/se-selinux.in.h (system_header): Likewise.
16423         * lib/search.in.h (system_header): Likewise.
16424         * lib/spawn.in.h (system_header): Likewise.
16425         * lib/stdarg.in.h (system_header): Likewise.
16426         * lib/stdint.in.h (system_header): Likewise.
16427         * lib/string.in.h (system_header): Likewise.
16428         * lib/strings.in.h (system_header): Likewise.
16429         * lib/sys_file.in.h (system_header): Likewise.
16430         * lib/sys_ioctl.in.h (system_header): Likewise.
16431         * lib/sys_socket.in.h (system_header): Likewise.
16432         * lib/sys_times.in.h (system_header): Likewise.
16433         * lib/sys_utsname.in.h (system_header): Likewise.
16434         * lib/sys_wait.in.h (system_header): Likewise.
16435         * lib/sysexits.in.h (system_header): Likewise.
16436         * lib/unistd.in.h (system_header): Likewise.
16437         * lib/wctype.in.h (system_header): Likewise.
16438
16439         arpa/inet: fix mingw compilation warning
16440         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16441         Reported by Matthew Bolte.
16442
16443 2010-03-25  Bruno Haible  <bruno@clisp.org>
16444
16445         Avoid collision between gnulib wrapper and libintl wrapper.
16446         * lib/printf.c (printf): Don't define if a printf wrapper is already
16447         defined in intl/printf.c.
16448         Reported by Michel Boaventura <michel@michelboaventura.com>.
16449
16450 2010-03-25  Bruno Haible  <bruno@clisp.org>
16451
16452         Use ANSI C.
16453         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16454
16455 2010-03-25  Bruno Haible  <bruno@clisp.org>
16456
16457         Minor formatting changes.
16458         * lib/acosl.c: Insert space before function argument list.
16459         * lib/argz.c: Likewise.
16460         * lib/asinl.c: Likewise.
16461         * lib/expl.c: Likewise.
16462         * lib/gen-uni-tables.c: Likewise.
16463         * lib/gettext.h: Likewise.
16464         * lib/glthread/lock.h: Likewise.
16465         * lib/tanl.c: Likewise.
16466         * lib/uniname/uniname.c: Likewise.
16467         * tests/test-idpriv-drop.c: Likewise.
16468         * tests/test-idpriv-droptemp.c: Likewise.
16469         * tests/test-lock.c: Likewise.
16470         * tests/test-tls.c: Likewise.
16471         * lib/argp-help.c: Insert space before function-like macro argument
16472         list.
16473         * lib/memcmp.c: Likewise.
16474         * tests/test-base64.c: Likewise.
16475         * lib/localename.c: Insert space before sizeof's argument list.
16476         * lib/safe-alloc.h: Likewise.
16477         * lib/file-set.h: Insert space before macro argument list.
16478         * tests/test-argp.c: Likewise.
16479         * lib/argp-namefrob.h: Insert space before function parameter list.
16480         * lib/getaddrinfo.c: Likewise.
16481         * lib/netdb.in.h: Likewise.
16482         * lib/parse-duration.h: Likewise.
16483         * lib/parse-duration.c: Likewise.
16484         * lib/poll.c: Likewise.
16485         * lib/select.c: Likewise.
16486         * lib/trim.h: Likewise.
16487         * tests/test-usleep.c: Likewise.
16488         * lib/ldexpl.c: Insert space before function parameter list and before
16489         function argument list.
16490         * lib/logl.c: Likewise.
16491         * lib/sqrtl.c: Likewise.
16492         * lib/trim.c: Likewise.
16493         * lib/cosl.c: Use GNU style indentation. Insert space before function
16494         argument list.
16495         * lib/sinl.c: Likewise.
16496         * lib/tsearch.c: Insert space after 'for'.
16497         Reported by Jim Meyering.
16498
16499 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16500
16501         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16502         config header before grepping, as it's not present before
16503         autoreconf/configure are run.  Reported by Simon Josefsson.
16504
16505 2010-03-23  Bruno Haible  <bruno@clisp.org>
16506
16507         pt_chown: Make it work with automake < 1.11.
16508         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16509         Reported by Simon Josefsson.
16510
16511 2010-03-23  Bruno Haible  <bruno@clisp.org>
16512
16513         pt_chown: Don't depend on GPLed modules.
16514         * lib/pt_chown.c: Don't include idpriv.h.
16515         (main): Don't drop privileges.
16516         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16517         Reported by Simon Josefsson.
16518
16519 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16520
16521         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16522         suggestions from karl@freefriends.org (Karl Berry).
16523
16524 2010-03-22  Eric Blake  <eblake@redhat.com>
16525
16526         gethostname: further tweaks
16527         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16528         are overriding gethostname.
16529         Suggested by Bruno Haible.
16530
16531 2010-03-21  Bruno Haible  <bruno@clisp.org>
16532
16533         Fix comments.
16534         * lib/forkpty.c (rpl_forkpty): Fix comment.
16535         * lib/openpty.c (rpl_openpty): Likewise.
16536         Reported by Eric Blake.
16537
16538 2010-03-22  Eric Blake  <eblake@redhat.com>
16539
16540         gethostname: fix build on mingw
16541         * lib/unistd.in.h (includes): Work around fact that mingw
16542         <winsock2.h> re-includes <unistd.h>, by avoiding any
16543         redeclarations if we are being included by <winsock2.h>.
16544         Reported by Matthias Bolte.
16545
16546 2010-03-21  Bruno Haible  <bruno@clisp.org>
16547
16548         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16549         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16550         modifications.
16551         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16552         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16553         provide the replacement.
16554         * modules/forkpty (Depends-on): Add openpty, login_tty.
16555         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16556         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16557         * doc/glibc-functions/forkpty.texi: More supported platforms.
16558         * config/srclist.txt: Add forkpty.c (commented).
16559
16560 2010-03-21  Bruno Haible  <bruno@clisp.org>
16561
16562         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16563         (Makefile.am): Verify that PTY_LIB is defined.
16564
16565         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16566
16567 2010-03-21  Bruno Haible  <bruno@clisp.org>
16568
16569         Tests for module 'login_tty'.
16570         * modules/login_tty-tests: New file.
16571         * tests/test-login_tty.c: New file.
16572
16573         New module 'login_tty'.
16574         * lib/login_tty.c: New file.
16575         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16576         * modules/login_tty: New file.
16577         * doc/glibc-functions/login_tty.texi: Mention the new module.
16578
16579 2010-03-21  Bruno Haible  <bruno@clisp.org>
16580
16581         login_tty: Documentation.
16582         * doc/glibc-functions/login_tty.texi: New file.
16583         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16584
16585 2010-03-21  Bruno Haible  <bruno@clisp.org>
16586
16587         pty: Consistent macro naming.
16588         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16589         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16590         * modules/pty (configure.ac): Update.
16591
16592 2010-03-21  Bruno Haible  <bruno@clisp.org>
16593
16594         Tests for openpty: Make stricter.
16595         * tests/test-openpty.c (main): Add test of canonical processing and
16596         erase.
16597         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16598
16599         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16600         * lib/openpty.c (openpty): New replacement function.
16601         * lib/pty.in.h: Include <termios.h>.
16602         (openpty): Update declaration. Add comments.
16603         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16604         is not declared, arrange to provide the replacement. Check for _getpty
16605         and posix_openpt.
16606         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16607         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16608         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16609         * modules/pty-tests (test_pty_c___LDADD): New variable.
16610         * doc/glibc-functions/openpty.texi: More supported platforms.
16611
16612 2010-03-21  Bruno Haible  <bruno@clisp.org>
16613
16614         setenv: Tweaks.
16615         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16616         the test program.
16617         * doc/posix-functions/setenv.texi: Update platforms list.
16618
16619 2010-03-21  Bruno Haible  <bruno@clisp.org>
16620
16621         New module 'unlockpt'.
16622         * lib/unlockpt.c: New file, from glibc with modifications.
16623         * m4/unlockpt.m4: New file.
16624         * modules/unlockpt: New file.
16625         * lib/stdlib.in.h (unlockpt): New declaration.
16626         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16627         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16628         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16629         HAVE_UNLOCKPT.
16630         * doc/posix-functions/unlockpt.texi: Mention the new module.
16631         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16632         * config/srclist.txt: Add unlockpt.c (commented).
16633
16634 2010-03-21  Jim Meyering  <meyering@redhat.com>
16635
16636         maint.mk: prohibit inclusion of "intprops.h" without use
16637         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16638
16639 2010-03-21  Bruno Haible  <bruno@clisp.org>
16640
16641         New module 'grantpt'.
16642         * lib/grantpt.c: New file, from glibc with modifications.
16643         * m4/grantpt.m4: New file.
16644         * modules/grantpt: New file.
16645         * lib/stdlib.in.h (grantpt): New declaration.
16646         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16647         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16648         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16649         HAVE_GRANTPT.
16650         * doc/posix-functions/grantpt.texi: Mention the new module.
16651         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16652         * config/srclist.txt: Add grantpt.c (commented).
16653
16654 2010-03-21  Bruno Haible  <bruno@clisp.org>
16655
16656         New module 'pt_chown'.
16657         * lib/pt_chown.c: New file, from glibc with modifications.
16658         * lib/pty-private.h: New file, from glibc with modifications.
16659         * modules/pt_chown: New file.
16660         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16661
16662 2010-03-21  Bruno Haible  <bruno@clisp.org>
16663
16664         Tests for module 'ptsname'.
16665         * modules/ptsname-tests: New file.
16666         * tests/test-ptsname.c: New file.
16667
16668         New module 'ptsname'.
16669         * lib/ptsname.c: New file, from glibc with modifications.
16670         * m4/ptsname.m4: New file.
16671         * modules/ptsname: New file.
16672         * lib/stdlib.in.h (ptsname): New declaration.
16673         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16674         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16675         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16676         HAVE_PTSNAME.
16677         * doc/posix-functions/ptsname.texi: Mention the new module.
16678         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16679         * config/srclist.txt: Add ptsname.c (commented).
16680
16681 2010-03-21  Bruno Haible  <bruno@clisp.org>
16682
16683         Tests for module 'ttyname_r'.
16684         * modules/ttyname_r-tests: New file.
16685         * tests/test-ttyname_r.c: New file.
16686
16687         New module 'ttyname_r'.
16688         * lib/ttyname_r.c: New file.
16689         * m4/ttyname_r.m4: New file.
16690         * modules/ttyname_r: New file.
16691         * lib/unistd.in.h (ttyname_r): New declaration.
16692         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16693         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16694         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16695         HAVE_TTYNAME_R.
16696         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16697         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16698
16699 2010-03-20  Bruno Haible  <bruno@clisp.org>
16700
16701         signal: Undefine macro definitions in C++ mode.
16702         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16703         sigfillset): Undefine macro definitions from the system header in C++
16704         mode.
16705         Reported by John W. Eaton <jwe@gnu.org>.
16706
16707 2010-03-20  Bruno Haible  <bruno@clisp.org>
16708
16709         Ensure no #include statements inside extern "C" { ... }.
16710         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16711         contain #include statements.
16712         * lib/time.in.h: Likewise.
16713
16714 2010-03-20  Bruno Haible  <bruno@clisp.org>
16715
16716         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16717         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16718         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16719         Reported by John W. Eaton <jwe@gnu.org>.
16720
16721 2010-03-20  Bruno Haible  <bruno@clisp.org>
16722
16723         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16724         Reported by Jim Meyering.
16725
16726 2010-03-20  Bruno Haible  <bruno@clisp.org>
16727
16728         pipe: Set errno upon failure.
16729         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16730         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16731         errno value in error message.
16732
16733 2010-03-20  Bruno Haible  <bruno@clisp.org>
16734             Jim Meyering  <meyering@redhat.com>
16735
16736         lchown: Avoid "unused variable" warning.
16737         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16738
16739 2010-03-20  Bruno Haible  <bruno@clisp.org>
16740
16741         Work around unlink() bug on MacOS X 10.5.6.
16742         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16743         attempting to unlink a parent directory.
16744         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16745         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16746         activate for the replacement function.
16747         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16748
16749 2010-03-20  Bruno Haible  <bruno@clisp.org>
16750
16751         Fix link errors on Solaris 8.
16752         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16753         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16754
16755 2010-03-19  Jim Meyering  <meyering@redhat.com>
16756
16757         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16758         The _LIBC implementation of build_range_exp correctly honors the
16759         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16760         However, the non-_LIBC implementation would ignore that syntax-bit
16761         flag and return REG_ERANGE unconditionally.
16762         This change makes it honor that flag.
16763         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16764         Make two pointer parameters "const".
16765         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16766         (parse_bracket_exp): Update caller.
16767
16768         regex.m4: correct the reversed range endpoint ([b-a]) test
16769         * m4/regex.m4: When requiring that [b-a] evoke failure,
16770         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16771         test pass once again for x86-based systems.
16772
16773 2010-03-19  Bruno Haible  <bruno@clisp.org>
16774
16775         scandir: Fix link error on Solaris 8.
16776         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16777         macros.
16778
16779 2010-03-19  Bruno Haible  <bruno@clisp.org>
16780
16781         getusershell: Fix documentation.
16782         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16783         module.
16784         * doc/glibc-functions/setusershell.texi: Likewise.
16785
16786         getusershell: Provide declaration, missing on Solaris 9.
16787         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16788         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16789         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16790         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16792         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16793         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16794         HAVE_GETUSERSHELL.
16795         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16796
16797 2010-03-19  Bruno Haible  <bruno@clisp.org>
16798
16799         wctype: Provide iswblank function.
16800         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16801         exists and is fine.
16802         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16803         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16804         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16805         * doc/posix-functions/iswblank.texi: Update.
16806
16807 2010-03-19  Bruno Haible  <bruno@clisp.org>
16808
16809         Tests of module 'pty' in C++ mode.
16810         * modules/pty-tests: New file.
16811         * tests/test-pty-c++.cc: New file.
16812         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16813
16814 2010-03-19  Eric Blake  <eblake@redhat.com>
16815
16816         logb: fix documentation
16817         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16818         1.5 declaration bug.
16819
16820         forkpty, openpty: prefer glibc's const-safe prototype
16821         * lib/forkpty.c (rpl_forkpty): New file.
16822         * lib/openpty.c (rpl_openpty): Likewise.
16823         * modules/forkpty (Files): Distribute it.
16824         * modules/openpty (Files): Likewise.
16825         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16826         check...
16827         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16828         replacement for for non-const BSD signature.
16829         * modules/pty (Makefile.am): Substitute witnesses.
16830         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16831         * tests/test-forkpty.c: Update signature check.
16832         * tests/test-openpty.c: Likewise.
16833         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16834         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16835
16836         forkpty, openpty: split functions into new modules
16837         * modules/pty (Makefile.am): Substitute new witnesses.
16838         (Libraries): Move library detection...
16839         * modules/forkpty: ...into new module.
16840         * modules/openpty: Another new module.
16841         * modules/pty-tests: Rename and split...
16842         * modules/forkpty-tests: ...to this...
16843         * modules/openpty-tests: ...and this.
16844         * tests/test-pty.c: Rename and split...
16845         * tests/test-forkpty.c: ...to this...
16846         * tests/test-openpty.c: ...and this.
16847         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16848         (gl_PTY): Split library searching...
16849         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16850         (gl_FORKPTY, gl_OPENPTY): New macros.
16851         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16852         * NEWS: Mention the split.
16853         * MODULES.html.sh (Misc): Document the modules.
16854         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16855         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16856
16857         pty: improve replacement header
16858         * lib/pty.in.h: New file.
16859         * modules/pty (Files): Ship it.
16860         (Makefile.am): Always build replacement.
16861         * m4/pty.m4: Rename...
16862         * m4/pty_h.m4: ...to this.
16863         (gl_PTY): Modernize setting of witness macros; update check of
16864         forkpty to take proper advantage of cache.
16865         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16866
16867         getopt: avoid compiler warning
16868         * lib/getopt.c (attribute_hidden): Remove unused macro.
16869
16870 2010-03-18  Bruno Haible  <bruno@clisp.org>
16871
16872         Fix link errors on Solaris 8.
16873         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16874         * modules/search-tests (test_search_c___LDADD): Likewise.
16875         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16876         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16877         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16878         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16879         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16880         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16881         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16882
16883 2010-03-18  Bruno Haible  <bruno@clisp.org>
16884
16885         Fix bug introduced on 2010-03-14.
16886         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16887         (gl_SPAWN_H): Require it.
16888         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16889         Reported by Simon Josefsson.
16890
16891 2010-03-18  Bruno Haible  <bruno@clisp.org>
16892
16893         Fix typo introduced on 2009-12-31.
16894         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16895         posix_spawn_file_actions_adddup2.
16896
16897 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16898         and Eric Blake  <eblake@redhat.com>
16899
16900         test-vc-list-files-git: make more robust
16901         * tests/test-vc-list-files-git.sh: Unset problematic environment
16902         variables.  Chain commands together.
16903
16904 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16905
16906         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16907         `AC_CHECK_DECL' invocation.
16908
16909 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16910
16911         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16912         appears before executable statements. Suggested by Petr Sumbera
16913         <Petr.Sumbera@Sun.COM>.
16914
16915 2010-03-14  Bruno Haible  <bruno@clisp.org>
16916
16917         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16918         portability problems. Instead use a simpler test.
16919         (main): Check that invalid arguments are rejected only on Linux.
16920
16921 2010-03-14  Bruno Haible  <bruno@clisp.org>
16922
16923         Fix bug introduced on 2009-12-31.
16924         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16925         gl_PREREQ_SYS_H_WINSOCK2 always.
16926         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16927         SYS_SOCKET_H variable.
16928         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16929         Update comments.
16930         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16931         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16932         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16933         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16934         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16935
16936 2010-03-14  Bruno Haible  <bruno@clisp.org>
16937
16938         Fix values returned by sinl, cosl.
16939         * lib/trigl.h: Add specification comments.
16940         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16941         that combines the values from the precomputed table with the values of
16942         the Chebyshev polynomials.
16943
16944 2010-03-14  Bruno Haible  <bruno@clisp.org>
16945
16946         Fix compilation error when modules 'posix_spawn[p]' are not used.
16947         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16949
16950 2010-03-14  Bruno Haible  <bruno@clisp.org>
16951
16952         Fix compilation error on mingw when module 'time_r' is not used.
16953         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16954         is 1.
16955         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16956         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16957         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16958         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16959
16960 2010-03-14  Bruno Haible  <bruno@clisp.org>
16961
16962         Fix compilation error with Sun C.
16963         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16964         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16965         instead of GCC specific ULONG_LONG_MAX.
16966         * lib/xstrtoll.c: Likewise.
16967         * lib/xstrtoull.c: Likewise.
16968
16969 2010-03-13  Bruno Haible  <bruno@clisp.org>
16970
16971         Allow the user to disable C++ code and tests.
16972         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16973         (gl_PROG_ANSI_CXX): Require it.
16974
16975 2010-03-13  Bruno Haible  <bruno@clisp.org>
16976
16977         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16978         cases.
16979
16980 2010-03-13  Bruno Haible  <bruno@clisp.org>
16981
16982         Test that gnulib does not break the standard C++ headers.
16983         * tests/test-locale-c++2.cc: New file.
16984         * modules/locale-tests (Files): Add it.
16985         (Makefile.am): Compile it for test-locale-c++.
16986         * tests/test-math-c++2.cc: New file.
16987         * modules/math-tests (Files): Add it.
16988         (Makefile.am): Compile it for test-math-c++.
16989         * tests/test-signal-c++2.cc: New file.
16990         * modules/signal-tests (Files): Add it.
16991         (Makefile.am): Compile it for test-signal-c++.
16992         * tests/test-stdio-c++2.cc: New file.
16993         * modules/stdio-tests (Files): Add it.
16994         (Makefile.am): Compile it for test-stdio-c++.
16995         * tests/test-stdlib-c++2.cc: New file.
16996         * modules/stdlib-tests (Files): Add it.
16997         (Makefile.am): Compile it for test-stdlib-c++.
16998         * tests/test-string-c++2.cc: New file.
16999         * modules/string-tests (Files): Add it.
17000         (Makefile.am): Compile it for test-string-c++.
17001         * tests/test-time-c++2.cc: New file.
17002         * modules/time-tests (Files): Add it.
17003         (Makefile.am): Compile it for test-time-c++.
17004         Reported by John W. Eaton <jwe@gnu.org>.
17005
17006 2010-03-13  Bruno Haible  <bruno@clisp.org>
17007
17008         * gnulib-tool (func_usage): Clarify which options are available for
17009         --create-testdir and --create-megatestdir.
17010
17011 2010-03-13  Bruno Haible  <bruno@clisp.org>
17012
17013         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17014         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17015         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17016         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17017         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17018         when appropriate.
17019         Reported by Jim Meyering.
17020
17021 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17022
17023         * gnulib-tool (func_import): Explain origin of code.
17024
17025 2010-03-12  Bruno Haible  <bruno@clisp.org>
17026
17027         Fix problem with automake's definition of CXXLINK.
17028         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17029         Reported by Simon Josefsson and Ludovic Courtès.
17030
17031 2010-03-12  Bruno Haible  <bruno@clisp.org>
17032
17033         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17034         stable releases.
17035
17036 2010-03-11  Bruno Haible  <bruno@clisp.org>
17037
17038         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17039         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17040         whether the system provides one variant or multiple variants of the
17041         function.
17042         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17043         C++ compilers.
17044         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17045         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17046         Reported by Jim Meyering.
17047
17048 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17049
17050         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17051
17052 2010-03-08  Bruno Haible  <bruno@clisp.org>
17053
17054         gnulib-tool: Add support for --libtool in --create-testdir.
17055         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17056         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17057
17058 2010-03-08  Eric Blake  <eblake@redhat.com>
17059
17060         gnulib-tool.texi: mention possibility of git submodule
17061         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17062         submodules.
17063         * doc/.gitignore: Ignore another generated file.
17064
17065 2010-03-08  Karl Berry  <karl@gnu.org>
17066
17067         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17068         of committing gnulib files while skipping others.
17069
17070 2010-03-07  Bruno Haible  <bruno@clisp.org>
17071
17072         Tests of module 'wctype' in C++ mode.
17073         * tests/test-wctype-c++.cc: New file.
17074         * modules/wctype-tests (Files): Add it and tests/signature.h.
17075         (Depends-on): Add ansi-c++-opt.
17076         (Makefile.am): Arrange to compile and run test-wctype-c++.
17077
17078         Tests of module 'wchar' in C++ mode.
17079         * tests/test-wchar-c++.cc: New file.
17080         * modules/wchar-tests (Files): Add it and tests/signature.h.
17081         (Depends-on): Add ansi-c++-opt.
17082         (Makefile.am): Arrange to compile and run test-wchar-c++.
17083         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17084         gl_MODULE_INDICATOR.
17085
17086         Tests of module 'unistd' in C++ mode.
17087         * tests/test-unistd-c++.cc: New file.
17088         * modules/unistd-tests (Files): Add it and tests/signature.h.
17089         (Depends-on): Add ansi-c++-opt.
17090         (Makefile.am): Arrange to compile and run test-unistd-c++.
17091         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17092         gl_MODULE_INDICATOR.
17093
17094         Tests of module 'time' in C++ mode.
17095         * tests/test-time-c++.cc: New file.
17096         * modules/time-tests (Files): Add it and tests/signature.h.
17097         (Depends-on): Add ansi-c++-opt.
17098         (Makefile.am): Arrange to compile and run test-time-c++.
17099         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17100
17101         Tests of module 'sys_time' in C++ mode.
17102         * tests/test-sys_time-c++.cc: New file.
17103         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17104         (Depends-on): Add ansi-c++-opt.
17105         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17106         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17107         gl_MODULE_INDICATOR.
17108
17109         Tests of module 'sys_stat' in C++ mode.
17110         * tests/test-sys_stat-c++.cc: New file.
17111         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17112         (Depends-on): Add ansi-c++-opt.
17113         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17114         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17115         gl_MODULE_INDICATOR.
17116
17117         Tests of module 'sys_socket' in C++ mode.
17118         * tests/test-sys_socket-c++.cc: New file.
17119         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17120         (Depends-on): Add ansi-c++-opt.
17121         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17122         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17123         gl_MODULE_INDICATOR.
17124
17125         Tests of module 'sys_select' in C++ mode.
17126         * tests/test-sys_select-c++.cc: New file.
17127         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17128         (Depends-on): Add ansi-c++-opt.
17129         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17130         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17131         gl_MODULE_INDICATOR.
17132
17133         Tests of module 'sys_ioctl' in C++ mode.
17134         * tests/test-sys_ioctl-c++.cc: New file.
17135         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17136         (Depends-on): Add ansi-c++-opt.
17137         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17138         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17139         gl_MODULE_INDICATOR.
17140
17141         Tests of module 'string' in C++ mode.
17142         * tests/test-string-c++.cc: New file.
17143         * modules/string-tests (Files): Add it and tests/signature.h.
17144         (Depends-on): Add ansi-c++-opt.
17145         (Makefile.am): Arrange to compile and run test-string-c++.
17146         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17147         gl_MODULE_INDICATOR.
17148
17149         Tests of module 'stdlib' in C++ mode.
17150         * tests/test-stdlib-c++.cc: New file.
17151         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17152         (Depends-on): Add ansi-c++-opt.
17153         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17154         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17155         gl_MODULE_INDICATOR.
17156
17157         Tests of module 'stdio' in C++ mode.
17158         * tests/test-stdio-c++.cc: New file.
17159         * modules/stdio-tests (Files): Add it and tests/signature.h.
17160         (Depends-on): Add ansi-c++-opt.
17161         (Makefile.am): Arrange to compile and run test-stdio-c++.
17162         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17163         gl_MODULE_INDICATOR.
17164
17165         Tests of module 'spawn' in C++ mode.
17166         * tests/test-spawn-c++.cc: New file.
17167         * modules/spawn-tests (Files): Add it and tests/signature.h.
17168         (Depends-on): Add ansi-c++-opt.
17169         (Makefile.am): Arrange to compile and run test-spawn-c++.
17170         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17171         gl_MODULE_INDICATOR.
17172
17173         Tests of module 'signal' in C++ mode.
17174         * tests/test-signal-c++.cc: New file.
17175         * modules/signal-tests (Files): Add it and tests/signature.h.
17176         (Depends-on): Add ansi-c++-opt.
17177         (Makefile.am): Arrange to compile and run test-signal-c++.
17178         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17179         gl_MODULE_INDICATOR.
17180
17181         Tests of module 'search' in C++ mode.
17182         * tests/test-search-c++.cc: New file.
17183         * modules/search-tests (Files): Add it and tests/signature.h.
17184         (Depends-on): Add ansi-c++-opt.
17185         (Makefile.am): Arrange to compile and run test-search-c++.
17186         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17187         gl_MODULE_INDICATOR.
17188
17189         Tests of module 'math' in C++ mode.
17190         * tests/test-math-c++.cc: New file.
17191         * modules/math-tests (Files): Add it and tests/signature.h.
17192         (Depends-on): Add ansi-c++-opt.
17193         (Makefile.am): Arrange to compile and run test-math-c++.
17194         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17195
17196         Tests of module 'locale' in C++ mode.
17197         * tests/test-locale-c++.cc: New file.
17198         * modules/locale-tests (Files): Add it and tests/signature.h.
17199         (Depends-on): Add ansi-c++-opt.
17200         (Makefile.am): Arrange to compile and run test-locale-c++.
17201         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17202         gl_MODULE_INDICATOR.
17203
17204         Tests of module 'langinfo' in C++ mode.
17205         * tests/test-langinfo-c++.cc: New file.
17206         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17207         (Depends-on): Add ansi-c++-opt.
17208         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17209         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17210         gl_MODULE_INDICATOR.
17211
17212         Tests of module 'iconv-h' in C++ mode.
17213         * tests/test-iconv-h-c++.cc: New file.
17214         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17215         (Depends-on): Add ansi-c++-opt.
17216         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17217
17218         Tests of module 'glob' in C++ mode.
17219         * tests/test-glob-c++.cc: New file.
17220         * modules/glob-tests (Files): Add it.
17221         (Depends-on): Add ansi-c++-opt.
17222         (Makefile.am): Arrange to compile and run test-glob-c++.
17223
17224         Tests of module 'fcntl-h' in C++ mode.
17225         * tests/test-fcntl-h-c++.cc: New file.
17226         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17227         (Depends-on): Add ansi-c++-opt.
17228         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17229         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17230         gl_MODULE_INDICATOR.
17231
17232         Tests of module 'dirent' in C++ mode.
17233         * tests/test-dirent-c++.cc: New file.
17234         * modules/dirent-tests (Files): Add it and tests/signature.h.
17235         (Depends-on): Add ansi-c++-opt.
17236         (Makefile.am): Arrange to compile and run test-dirent-c++.
17237         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17238         gl_MODULE_INDICATOR.
17239
17240         New module 'ansi-c++-opt'.
17241         * modules/ansi-c++-opt: New file.
17242         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17243
17244         Document C++ namespace mode.
17245         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17246
17247         wctype: Avoid #define replacements in C++ mode.
17248         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17249         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17250         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17251         In C++, define a namespaced alias symbol.
17252         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17253         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17254         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17255         rule.
17256
17257         wchar: Avoid #define replacements in C++ mode.
17258         * lib/wchar.in.h: Include c++defs.h.
17259         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17260         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17261         symbol.
17262         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17263         * modules/wchar (Depends-on): Add c++defs.
17264         (Makefile.am): Update wchar.h rule.
17265
17266         unistd: Avoid #define replacements in C++ mode.
17267         * lib/unistd.in.h: Include c++defs.h.
17268         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17269         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17270         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17271         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17272         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17273         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17274         symbol.
17275         (environ): Update.
17276         * modules/unistd (Depends-on): Add c++defs.
17277         (Makefile.am): Update unistd.h rule.
17278
17279         time: Avoid #define replacements in C++ mode.
17280         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17281         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17282         define a namespaced alias symbol.
17283         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17284         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17285         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17286         * modules/time (Depends-on): Add c++defs, warn-on-use.
17287         (Makefile.am): Update time.h rule.
17288         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17289         * modules/nanosleep (configure.ac): Likewise.
17290         * modules/strptime (configure.ac): Likewise.
17291         * modules/timegm (configure.ac): Likewise.
17292
17293         sys_time: Avoid #define replacements in C++ mode.
17294         * lib/sys_time.in.h: Include c++defs.h.
17295         (gettimeofday): In C++, define a namespaced alias symbol.
17296         * modules/sys_time (Depends-on): Add c++defs.
17297         (Makefile.am): Update sys/time.h rule.
17298
17299         sys_stat: Avoid #define replacements in C++ mode.
17300         * lib/sys_stat.in.h: Include c++defs.h.
17301         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17302         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17303         namespaced alias symbol.
17304         In C++, define a namespaced alias symbol.
17305         * modules/sys_stat (Depends-on): Add c++defs.
17306         (Makefile.am): Update sys/stat.h rule.
17307
17308         sys_socket: Avoid #define replacements in C++ mode.
17309         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17310         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17311         definitions also when the system has a <sys/socket.h>.
17312         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17313         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17314         In C++, define a namespaced alias symbol.
17315         * modules/sys_socket (Depends-on): Add c++defs.
17316         (Makefile.am): Update sys/socket.h rule.
17317
17318         sys_select: Avoid #define replacements in C++ mode.
17319         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17320         definitions also when the system has a <sys/select.h>.
17321         (select): In C++, define a namespaced alias symbol.
17322         * modules/sys_select (Depends-on): Add c++defs.
17323         (Makefile.am): Update sys/select.h rule.
17324
17325         sys_ioctl: Avoid #define replacements in C++ mode.
17326         * lib/sys_ioctl.in.h: Include c++defs.h.
17327         (ioctl): In C++, define a namespaced alias symbol.
17328         * modules/sys_ioctl (Depends-on): Add c++defs.
17329         (Makefile.am): Update sys/ioctl.h rule.
17330
17331         string: Avoid #define replacements in C++ mode.
17332         * lib/string.in.h: Include c++defs.h.
17333         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17334         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17335         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17336         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17337         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17338         * modules/string (Depends-on): Add c++defs.
17339         (Makefile.am): Update string.h rule.
17340
17341         stdlib: Avoid #define replacements in C++ mode.
17342         * lib/stdlib.in.h: Include c++defs.h.
17343         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17344         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17345         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17346         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17347         symbol.
17348         * modules/stdlib (Depends-on): Add c++defs.
17349         (Makefile.am): Update stdlib.h rule.
17350
17351         stdio: Avoid #define replacements in C++ mode.
17352         * lib/stdio.in.h: Include c++defs.h.
17353         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17354         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17355         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17356         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17357         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17358         namespaced alias symbol.
17359         * modules/stdio (Depends-on): Add c++defs.
17360         (Makefile.am): Update stdio.h rule.
17361
17362         spawn: Avoid #define replacements in C++ mode.
17363         * lib/spawn.in.h: Include c++defs.h.
17364         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17365         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17366         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17367         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17368         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17369         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17370         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17371         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17372         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17373         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17374         In C++, define a namespaced alias symbol.
17375         * modules/spawn (Depends-on): Add c++defs.
17376         (Makefile.am): Update spawn.h rule.
17377
17378         signal: Avoid #define replacements in C++ mode.
17379         * lib/signal.in.h: Include c++defs.h.
17380         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17381         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17382         namespaced alias symbol.
17383         * modules/signal (Depends-on): Add c++defs.
17384         (Makefile.am): Update signal.h rule.
17385
17386         search: Avoid #define replacements in C++ mode.
17387         * lib/search.in.h: Include c++defs.h.
17388         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17389         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17390         symbol.
17391         * modules/search (Depends-on): Add c++defs.
17392         (Makefile.am): Update search.h rule.
17393
17394         math: Avoid #define replacements in C++ mode.
17395         * lib/math.in.h: Include c++defs.h.
17396         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17397         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17398         trunc, truncl): In C++, define a namespaced alias symbol.
17399         * modules/math (Depends-on): Add c++defs.
17400         (Makefile.am): Update math.h rule.
17401
17402         locale: Avoid #define replacements in C++ mode.
17403         * lib/locale.in.h: Include c++defs.h.
17404         (duplocale): In C++, define a namespaced alias symbol.
17405         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17406         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17407         * modules/locale (Depends-on): Add c++defs.
17408         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17409
17410         langinfo: Avoid #define replacements in C++ mode.
17411         * lib/langinfo.in.h: Include c++defs.h.
17412         (nl_langinfo): In C++, define a namespaced alias symbol.
17413         * modules/langinfo (Depends-on): Add c++defs.
17414         (Makefile.am): Update langinfo.h rule.
17415
17416         iconv-h: Avoid #define replacements in C++ mode.
17417         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17418         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17419         symbol.
17420         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17421         whenever iconv is present.
17422         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17423         (Makefile.am): Update iconv.h rule.
17424
17425         glob: Avoid #define replacements in C++ mode.
17426         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17427         (_gl_glob_errfunc_fn): New type.
17428         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17429         symbol.
17430         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17431         (Makefile.am): Update glob.h rule.
17432
17433         fcntl-h: Avoid #define replacements in C++ mode.
17434         * lib/fcntl.in.h: Include c++defs.h.
17435         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17436         * modules/fcntl-h (Depends-on): Add c++defs.
17437         (Makefile.am): Update fcntl.h rule.
17438
17439         dirent: Avoid #define replacements in C++ mode.
17440         * lib/dirent.in.h: Include c++defs.h.
17441         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17442         namespaced alias symbol.
17443         (dirfd): Update declaration.
17444         * modules/dirent (Depends-on): Add c++defs.
17445         (Makefile.am): Update dirent.h rule.
17446
17447         ctype: Make it usable in C++ code.
17448         * lib/ctype.in.h: Include c++defs.h.
17449         (isblank): Declare as extern "C".
17450         * modules/ctype (Depends-on): Add c++defs.
17451         (Makefile.am): Update ctype.h rule.
17452
17453         New module 'c++defs'.
17454         * modules/c++defs: New file.
17455         * build-aux/c++defs.h: New file.
17456         Reported by John W. Eaton <jwe@gnu.org>.
17457
17458 2010-03-07  Bruno Haible  <bruno@clisp.org>
17459
17460         logb: Provide missing declaration for Cygwin.
17461         * lib/math.in.h (logb): New declaration.
17462         * m4/logb.m4: New file.
17463         * modules/logb (Files): Add m4/logb.m4.
17464         (Depends-on): Add math.
17465         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17466         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17468         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17469         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17470
17471 2010-03-07  Bruno Haible  <bruno@clisp.org>
17472
17473         Fix test-cond link error.
17474         * tests/test-cond.c: Include <stdio.h>.
17475
17476 2010-03-07  Bruno Haible  <bruno@clisp.org>
17477
17478         Fix test-dirent-safer link error.
17479         * modules/dirent-safer-tests (Makefile.am): Define
17480         test_dirent_safer_LDADD.
17481
17482 2010-03-07  Bruno Haible  <bruno@clisp.org>
17483
17484         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17485         among default module list.
17486
17487 2010-03-07  Bruno Haible  <bruno@clisp.org>
17488
17489         Fix link error on platforms with GNU libiconv.
17490         * modules/unistr/u8-strcoll-tests (Makefile): Define
17491         test_u8_strcoll_LDADD.
17492         * modules/unistr/u16-strcoll-tests (Makefile): Define
17493         test_u16_strcoll_LDADD.
17494         * modules/unistr/u32-strcoll-tests (Makefile): Define
17495         test_u32_strcoll_LDADD.
17496
17497 2010-03-07  Bruno Haible  <bruno@clisp.org>
17498
17499         Use POSIX declarations for socket functions.
17500         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17501         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17502         rpl_sendto): Change declaration to match POSIX.
17503         * lib/connect.c (rpl_connect): Likewise.
17504         * lib/accept.c (rpl_accept): Likewise.
17505         * lib/bind.c (rpl_bind): Likewise.
17506         * lib/getpeername.c (rpl_getpeername): Likewise.
17507         * lib/getsockname.c (rpl_getsockname): Likewise.
17508         * lib/recv.c (rpl_recv): Likewise.
17509         * lib/send.c (rpl_send): Likewise.
17510         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17511         * lib/sendto.c (rpl_sendto): Likewise.
17512
17513 2010-03-06  Bruno Haible  <bruno@clisp.org>
17514
17515         Clarify access, euidaccess, faccessat.
17516         * doc/posix-functions/faccessat.texi: Mention security problem under
17517         "Other problems", not "Portability problems".
17518         * doc/posix-functions/access.texi: Likewise. Mention a related security
17519         problem.
17520         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17521         * lib/euidaccess.c: Add comments about platforms.
17522         * lib/unistd.in.h (access, euidaccess): Add warnings.
17523
17524 2010-03-07  Bruno Haible  <bruno@clisp.org>
17525
17526         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17527         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17528         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17529         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17530         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17531         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17532         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17533         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17534         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17535         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17536         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17537         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17538         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17539         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17540         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17541         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17542         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17543         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17544         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17545         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17546         Likewise.
17547         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17548         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17549         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17550         Likewise.
17551         * tests/test-spawn.c (main): Make it work when
17552         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17553
17554 2010-03-07  Bruno Haible  <bruno@clisp.org>
17555
17556         Fix incorrect Makefile.am generation in German locale.
17557         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17558         Execute sed command with character range in C locale.
17559
17560 2010-03-06  Bruno Haible  <bruno@clisp.org>
17561
17562         Tests for module 'iconv-h'.
17563         * modules/iconv-h-tests: New file.
17564         * tests/test-iconv-h.c: New file.
17565
17566         New module 'iconv-h'.
17567         * modules/iconv-h: New file.
17568         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17569         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17570         (configure.ac): Remove gl_ICONV_H.
17571         (Makefile.am): Remove rule for iconv.h.
17572
17573 2010-03-06  Bruno Haible  <bruno@clisp.org>
17574
17575         More consistent naming of *.m4 files.
17576         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17577         * modules/wctype (Files): Update.
17578
17579         More consistent naming of *.m4 files.
17580         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17581         * modules/wchar (Files): Update.
17582
17583 2010-03-06  Jim Meyering  <meyering@redhat.com>
17584
17585         euidaccess: relax license to LGPLv2+
17586         * modules/euidaccess (License): Relax to LGPLv2+.
17587
17588 2010-03-06  Bruno Haible  <bruno@clisp.org>
17589
17590         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17591         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17592         (Makefile.am): Augment lib_SOURCES instead.
17593
17594 2010-03-04  Jim Meyering  <meyering@redhat.com>
17595
17596         utime: remove obsolete module
17597         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17598         unnecessary for years, and has been marked as obsolete for 10 months.
17599         * modules/utime: Remove file.
17600         * lib/utime.c: Remove file.
17601         * m4/utime.m4: Remove file.
17602         * m4/utimes-null.m4: Remove file.
17603         * doc/posix-functions/utime.texi (utime): Remove reference to
17604         the module.  Move the sole "fixed by gnulib" item into the
17605         "problems not fixed by Gnulib" list.
17606         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17607
17608 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17609
17610         * modules/exit (License): Relax license to LGPLv2+.
17611         (Status): Mark as obsolete.
17612         * NEWS: Mention deprecated 'exit' module.
17613         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17614         of now obsolete 'exit'.
17615
17616 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17617
17618         fts-lgpl: remove unused module
17619         * modules/fts-lgpl: Remove.
17620         * MODULES.html.sh (func_all_modules): Adjust.
17621         * check-module (find_included_lib_files): Adjust.
17622         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17623
17624 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17625
17626         copy-acl: enhance Solaris ACL error handling
17627         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17628         * lib/set-mode-acl.c (qset_acl): Likewise.
17629
17630 2010-03-02  Bruno Haible  <bruno@clisp.org>
17631
17632         spawn: Don't override the system defined values on FreeBSD 8.
17633         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17634         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17635         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17636         if HAVE_POSIX_SPAWN is 1.
17637         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17638
17639 2010-03-01  Bruno Haible  <bruno@clisp.org>
17640
17641         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17642         regarding Automake.
17643
17644 2010-02-25  Bruno Haible  <bruno@clisp.org>
17645
17646         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17647         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17648         setting, not afterwards.
17649         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17650
17651 2010-02-24  Eric Blake  <eblake@redhat.com>
17652
17653         bootstrap, git-version-gen: use timestamp
17654         * build-aux/git-version-gen (scriptversion): Force UTC.
17655         * build-aux/bootstrap (scriptversion): New variable.
17656
17657         bootstrap: allow older git
17658         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17659         older than 1.6.4.  Requested by the libvirt project.
17660
17661 2010-02-23  Eric Blake  <eblake@redhat.com>
17662
17663         warn-on-use: work with old autoconf
17664         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17665         AS_VAR semantics of autoconf 2.60.
17666         Reported by Bruno Haible.
17667
17668         bootstrap: improve some comments
17669         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17670         clarification comments.
17671
17672         gettimeofday: provide correct function
17673         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17674         when replacement is declared, otherwise provide gettimeofday.
17675         Reported by Michael Goffioul.
17676
17677 2010-02-23  Jim Meyering  <meyering@redhat.com>
17678
17679         lib-ignore: relax license to "unlimited", not LGPLv2+
17680         * modules/lib-ignore (License): Relax to "unlimited".
17681
17682 2010-02-23  Jim Meyering  <meyering@redhat.com>
17683
17684         lib-ignore: relax license to LGPLv2+
17685         * modules/lib-ignore (License): Relax to LGPLv2+.
17686
17687 2010-02-22  Eric Blake  <eblake@redhat.com>
17688
17689         lseek: avoid bash 3.2 broken pipe bug
17690         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17691         warning from bash 3.2.
17692         Reported by Ben Pfaff, with analysis from Bruno Haible.
17693
17694         bootstrap: support non-FSF copyright holder
17695         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17696         bootstrap.conf override of COPYRIGHT_HOLDER.
17697         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17698
17699         bootstrap: interoperate with gettext 0.14.1
17700         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17701
17702         bootstrap: allow for alternate submodule location
17703         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17704         hardcoding submodule location.
17705         (gnulib_mk): Allow direct use of Makefile.am.
17706
17707         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17708         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17709         rather than reconfiguring where the submodule points.
17710
17711         gettimeofday: restore support for platforms that lack function
17712         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17713         replacement if function is missing.
17714         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17715         * modules/sys_time (Makefile.am): Substitute it.
17716         * lib/sys_time.in.h (gettimeofday): Check it.
17717         Reported by Michael Goffioul.
17718
17719 2010-02-21  Bruno Haible  <bruno@clisp.org>
17720
17721         * lib/stdio.in.h (obstack_printf): Fix typo.
17722
17723 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17724
17725         vc-list-files: use bzr ls's -R option
17726         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17727         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17728
17729 2010-02-21  Jim Meyering  <meyering@redhat.com>
17730
17731         init.sh: fix EXEEXT shims to work also for names like test-prog
17732         * tests/init.sh: Re-exec a better shell, when needed.
17733         If the current shell lacks support for posix $(...), an init.sh-using
17734         test will now try to find a shell that supports that.  If EXEEXT is
17735         nonempty, we also require support for hyphen-in-alias-name and shell
17736         substitutions like ${var#glob}.  Failure to find such a shell results
17737         in a skipped test.
17738
17739 2010-02-21  Bruno Haible  <bruno@clisp.org>
17740
17741         Really work around around "broken pipe" error message from bash 3.2.
17742         * gnulib-tool (func_reset_sigpipe): Remove function.
17743         (echo): In bash 3.2, define to a function that uses printf.
17744         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17745
17746 2010-02-20  Bruno Haible  <bruno@clisp.org>
17747
17748         Restore support for automake 1.9.6 with autoconf 2.61.
17749         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17750         Reported by James Youngman <jay@gnu.org>.
17751
17752 2010-02-20  Bruno Haible  <bruno@clisp.org>
17753
17754         Improve *printf warning condition.
17755         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17756         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17757         and the function is overridden due to SIGPIPE emulation.
17758
17759 2010-02-20  Bruno Haible  <bruno@clisp.org>
17760
17761         * lib/stdio.in.h: Tweak comments.
17762
17763 2010-02-19  Bruno Haible  <bruno@clisp.org>
17764
17765         Make it easier to find modules. New gnulib-tool option '--find'.
17766         * gnulib-tool: New option --find.
17767         (func_usage): Document it.
17768         (func_sanitize_modulelist): New function, extracted from
17769         func_all_modules.
17770         (func_all_modules): Invoke it.
17771         * doc/gnulib-tool.texi (Which modules?): New node.
17772
17773 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17774
17775         * lib/sys_select.in.h: Provide select replacement even if
17776         sys/select.h exists on a system, for Interix.
17777
17778 2010-02-18  Jim Meyering  <meyering@redhat.com>
17779
17780         init.sh: don't use $(...) just yet
17781         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17782         to accommodate e.g., Solaris' /bin/sh.
17783
17784 2010-02-17  Bruno Haible  <bruno@clisp.org>
17785
17786         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17787         Reported by Ludovic Courtès <ludo@gnu.org>.
17788
17789 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17790
17791         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17792         linking with -lintl.
17793
17794 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17795
17796         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17797         if not provided by the system's netdb.h.  Reported by
17798         ludo@gnu.org (Ludovic Courtès).
17799
17800 2010-02-15  Jim Meyering  <meyering@redhat.com>
17801
17802         init.sh: improve portability and efficiency
17803         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17804         "dummy" in a for loop.
17805         Use '!', not '^' to select the complement of a character set used
17806         in a "case" statement.
17807         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17808         Suggestions from Eric Blake.
17809
17810         init.sh: automatically accommodate programs with the .exe suffix
17811         Automatically arrange for an invocation of "prog" to execute the
17812         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17813         may use the simpler "prog", yet still work when built on a system
17814         that requires specifying the added suffix.
17815         Do this by constructing a function named "prog" that invokes
17816         "prog.exe" for each .exe file in selected directories.
17817         * tests/init.sh (find_exe_basenames_): New function.
17818         (create_exe_shim_functions_): New function.
17819         (path_prepend_): Use it.
17820
17821         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17822         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17823         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17824
17825 2010-02-14  Jim Meyering  <meyering@redhat.com>
17826
17827         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17828         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17829         (sc_prohibit_hash_pjw_without_use): New rule.
17830
17831         maint.mk: allow the default upload destination dir to be overridden
17832         * top/maint.mk (upload_dest_dir_): Define with a default that
17833         preserves the status quo.
17834         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17835         Reported by Peter Simons.
17836
17837         maint.mk: prohibit inclusion of "hash.h" without_use
17838         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17839
17840 2010-02-10  Jim Meyering  <meyering@redhat.com>
17841
17842         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17843         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17844
17845 2010-02-09  Eric Blake  <ebb9@byu.net>
17846         and Bruno Haible  <bruno@clisp.org>
17847
17848         obstack-printf-posix: ensure declaration
17849         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17850         extracted from gl_FUNC_OBSTACK_PRINTF.
17851         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17852         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17853         Likewise.
17854         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17855         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17856         0.
17857
17858 2010-02-08  Bruno Haible  <bruno@clisp.org>
17859
17860         gnulib-tool: Fix typo in 2010-02-07 commit.
17861         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17862         Reported by Eric Blake.
17863
17864 2010-02-07  Bruno Haible  <bruno@clisp.org>
17865
17866         gnulib-tool: Fix up caching patches.
17867         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17868         option --no-cache. Use associative arrays when supported by the shell.
17869         (sed_comments): New variable.
17870         (modcache): Renamed from do_cache.
17871         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17872         abbreviate unnecessarily.
17873         (have_associative): New variable.
17874         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17875         way also for ksh and zsh.
17876         (func_init_sed_convert_to_cache_statements): New function, extracted
17877         from func_cache_lookup_module. Add support for associative arrays.
17878         Don't set the c_MODULE_cached variable here. Ignore all lines before
17879         the first field header. Remove only the final newline, not all trailing
17880         newlines. Support empty fields correctly. Limit the use of 'eval' to
17881         assignments.
17882         (func_get_description, func_get_status, func_get_notice,
17883         func_get_applicability, func_get_filelist, func_get_dependencies,
17884         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17885         func_get_automake_snippet, func_get_include_directive,
17886         func_get_link_directive, func_get_license, func_get_maintainer):
17887         Update documentation. List the unoptimized code first. Add support for
17888         associative arrays. Limit the use of 'eval' to assignments.
17889         (func_get_applicability): Undo stylistic pessimisations.
17890         (func_get_automake_snippet, func_get_include_directive): Reduce code
17891         duplication.
17892         (func_modules_transitive_closure, func_modules_add_dummy,
17893         func_modules_notice, func_modules_to_filelist, func_add_file,
17894         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17895         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17896         func_create_testdir, func_create_megatestdir): Update documentation.
17897
17898 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17899
17900         * gnulib-tool (func_cache_lookup_module): Store the module name
17901         belonging to the cache variable; error out if two different
17902         module names map to the same cache variable name.
17903
17904 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17905
17906         gnulib-tool: Make caching optional.
17907         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17908         Update matching short versions of --no-changelog.
17909         (func_usage): Update.
17910         (sed_extract_cache_prog): Renamed from ...
17911         (sed_extract_prog): ... this; revert to old extraction script.
17912         (func_get_description, func_get_status)
17913         (func_get_notice, func_get_applicability, func_get_filelist)
17914         (func_get_dependencies, func_get_autoconf_early_snippet)
17915         (func_get_autoconf_snippet, func_get_automake_snippet)
17916         (func_get_include_directive, func_get_link_directive)
17917         (func_get_license, func_get_maintainer): If $do_cache is false,
17918         use old, non-caching extraction scripts.
17919         Suggestion by Bruno Haible.
17920
17921 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17922
17923         gnulib-tool: cache module metainformation.
17924         * gnulib-tool (sed_extract_prog): Match newline before each
17925         header, and rewrite header to a shell variable suffix.
17926         (func_cache_var, func_cache_lookup_module): New functions,
17927         to turn a module name into a cache variable prefix, and to
17928         look up and cache module metainformation.
17929         (func_get_description, func_get_status)
17930         (func_get_notice, func_get_applicability, func_get_filelist)
17931         (func_get_dependencies, func_get_autoconf_early_snippet)
17932         (func_get_autoconf_snippet, func_get_automake_snippet)
17933         (func_get_include_directive, func_get_link_directive)
17934         (func_get_license, func_get_maintainer): Use
17935         func_cache_lookup_module.
17936
17937 2010-02-07  Bruno Haible  <bruno@clisp.org>
17938
17939         fnctl: Fix missing dependency.
17940         * modules/fcntl (Depends-on): Add getdtablesize.
17941         Reported by John W. Eaton <jwe@gnu.org>.
17942
17943 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17944
17945         Argp: fix recognition of short alias options.
17946
17947         * lib/argp-parse.c (convert_options): Fix improper use of
17948         `|' between character values.
17949         * tests/test-argp.c (group1_option): New alias option
17950         --read (-r).
17951         (group1_parser): Special handling for 'r'.
17952         (test15): New test case.
17953         (test_fun): Add test15.
17954         * tests/test-argp-2.sh: Update expected --help and --usage
17955         outputs.
17956
17957 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17958
17959         * tests/test-argp.c: Fix indentation.
17960
17961 2010-02-04  Eric Blake  <ebb9@byu.net>
17962
17963         gettimeofday: expose type of second argument
17964         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17965         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17966         * tests/test-gettimeofday.c: Use it to silence warning.
17967         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17968         the issue.
17969
17970 2010-02-03  Jim Meyering  <meyering@redhat.com>
17971
17972         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17973         * lib/regcomp.c (TYPE_SIGNED): Define.
17974         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17975
17976         regcomp.c: avoid a new -Wshadow warning
17977         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17978
17979 2010-02-01  Jim Meyering  <meyering@redhat.com>
17980
17981         removing useless parentheses in cpp #define directives
17982         For motivation, see commit c0221df4, "define STREQ(a,b)
17983         consistently, removing useless parentheses"
17984         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17985         * lib/mountlist.c (MNT_IGNORE): Likewise.
17986         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17987
17988 2010-02-01  Eric Blake  <ebb9@byu.net>
17989
17990         sys_time: use link-warning
17991         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17992         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17993         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17994         * modules/sys_time (Depends-on): Add warn-on-use.
17995         (Makefile.am): Always build replacement.
17996         (configure.ac): Update substitutions.
17997         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17998         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17999         bother with SYS_TIME_H.
18000         * modules/gettimeofday (configure.ac): Declare indicator.
18001         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18002         in use.
18003
18004         closein-tests: silence compiler warning
18005         * tests/test-closein.c (main): Ignore fread result.
18006         * modules/closein-tests (Depends-on): Add ignore-value.
18007
18008         tests: silence warning about system return
18009         * tests/test-areadlink-with-size.c (main): Ignore system result.
18010         * tests/test-areadlink.c (main): Likewise.
18011         * tests/test-areadlinkat-with-size.c (main): Likewise.
18012         * tests/test-areadlinkat.c (main): Likewise.
18013         * tests/test-canonicalize-lgpl.c (main): Likewise.
18014         * tests/test-canonicalize.c (main): Likewise.
18015         * tests/test-chown.c (main): Likewise.
18016         * tests/test-fchownat.c (main): Likewise.
18017         * tests/test-fdutimensat.c (main): Likewise.
18018         * tests/test-fstatat.c (main): Likewise.
18019         * tests/test-futimens.c (main): Likewise.
18020         * tests/test-lchown.c (main): Likewise.
18021         * tests/test-link.c (main): Likewise.
18022         * tests/test-linkat.c (main): Likewise.
18023         * tests/test-lstat.c (main): Likewise.
18024         * tests/test-mkdir.c (main): Likewise.
18025         * tests/test-mkdirat.c (main): Likewise.
18026         * tests/test-mkfifo.c (main): Likewise.
18027         * tests/test-mkfifoat.c (main): Likewise.
18028         * tests/test-mknod.c (main): Likewise.
18029         * tests/test-readlink.c (main): Likewise.
18030         * tests/test-remove.c (main): Likewise.
18031         * tests/test-rename.c (main): Likewise.
18032         * tests/test-renameat.c (main): Likewise.
18033         * tests/test-rmdir.c (main): Likewise.
18034         * tests/test-symlink.c (main): Likewise.
18035         * tests/test-symlinkat.c (main): Likewise.
18036         * tests/test-unlink.c (main): Likewise.
18037         * tests/test-unlinkat.c (main): Likewise.
18038         * tests/test-utimens.c (main): Likewise.
18039         * tests/test-utimensat.c (main): Likewise.
18040         * modules/areadlink-tests (Depends-on): Add ignore-value.
18041         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18042         * modules/areadlinkat-tests (Depends-on): Likewise.
18043         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18044         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18045         * modules/canonicalize-tests (Depends-on): Likewise.
18046         * modules/chown-tests (Depends-on): Likewise.
18047         * modules/fdutimensat-tests (Depends-on): Likewise.
18048         * modules/futimens-tests (Depends-on): Likewise.
18049         * modules/lchown-tests (Depends-on): Likewise.
18050         * modules/link-tests (Depends-on): Likewise.
18051         * modules/linkat-tests (Depends-on): Likewise.
18052         * modules/lstat-tests (Depends-on): Likewise.
18053         * modules/mkdir-tests (Depends-on): Likewise.
18054         * modules/mkfifo-tests (Depends-on): Likewise.
18055         * modules/mkfifoat-tests (Depends-on): Likewise.
18056         * modules/mknod-tests (Depends-on): Likewise.
18057         * modules/openat-tests (Depends-on): Likewise.
18058         * modules/readlink-tests (Depends-on): Likewise.
18059         * modules/remove-tests (Depends-on): Likewise.
18060         * modules/rename-tests (Depends-on): Likewise.
18061         * modules/renameat-tests (Depends-on): Likewise.
18062         * modules/rmdir-tests (Depends-on): Likewise.
18063         * modules/symlink-tests (Depends-on): Likewise.
18064         * modules/symlinkat-tests (Depends-on): Likewise.
18065         * modules/unlink-tests (Depends-on): Likewise.
18066         * modules/utimens-tests (Depends-on): Likewise.
18067         * modules/utimensat-tests (Depends-on): Likewise.
18068
18069 2010-01-31  Bruno Haible  <bruno@clisp.org>
18070
18071         Perform the same test for many <math.h> functions.
18072         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18073         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18074         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18075         of gl_MATHFUNC.
18076         * modules/acos (configure.ac): Likewise.
18077         * modules/asin (configure.ac): Likewise.
18078         * modules/atan (configure.ac): Likewise.
18079         * modules/atan2 (configure.ac): Likewise.
18080         * modules/cbrt (configure.ac): Likewise.
18081         * modules/copysign (configure.ac): Likewise.
18082         * modules/cos (configure.ac): Likewise.
18083         * modules/cosh (configure.ac): Likewise.
18084         * modules/erf (configure.ac): Likewise.
18085         * modules/erfc (configure.ac): Likewise.
18086         * modules/exp (configure.ac): Likewise.
18087         * modules/fmod (configure.ac): Likewise.
18088         * modules/hypot (configure.ac): Likewise.
18089         * modules/j0 (configure.ac): Likewise.
18090         * modules/j1 (configure.ac): Likewise.
18091         * modules/jn (configure.ac): Likewise.
18092         * modules/lgamma (configure.ac): Likewise.
18093         * modules/log (configure.ac): Likewise.
18094         * modules/log10 (configure.ac): Likewise.
18095         * modules/log1p (configure.ac): Likewise.
18096         * modules/pow (configure.ac): Likewise.
18097         * modules/remainder (configure.ac): Likewise.
18098         * modules/sin (configure.ac): Likewise.
18099         * modules/sinh (configure.ac): Likewise.
18100         * modules/tan (configure.ac): Likewise.
18101         * modules/tanh (configure.ac): Likewise.
18102         * modules/y0 (configure.ac): Likewise.
18103         * modules/y1 (configure.ac): Likewise.
18104         * modules/yn (configure.ac): Likewise.
18105         Suggested by Paolo Bonzini.
18106
18107 2010-01-31  Bruno Haible  <bruno@clisp.org>
18108
18109         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18110
18111 2010-01-31  Bruno Haible  <bruno@clisp.org>
18112
18113         Work around getdelim() bug on FreeBSD 8.0.
18114         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18115         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18116         not work.
18117         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18118         is 1.
18119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18120         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18121         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18122         a non-zero size.
18123         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18124
18125 2010-01-31  Bruno Haible  <bruno@clisp.org>
18126
18127         Work around getline() bug on FreeBSD 8.0.
18128         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18129         and a non-zero size.
18130         * tests/test-getline.c (main): Likewise.
18131         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18132         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18133
18134 2010-01-28  Eric Blake  <ebb9@byu.net>
18135
18136         regex: fix build failure
18137         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18138         platforms.
18139
18140 2010-01-28  Jim Meyering  <meyering@redhat.com>
18141
18142         regex: do not ignore memory allocation failure
18143         * lib/regex_internal.c (create_cd_newstate): Detect
18144         re_node_set_init_copy failure.   Extracted from glibc commit
18145         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18146
18147         regex: sync more white-space changes from libc
18148         * lib/regex_internal.c: White-space only changes.
18149         * lib/regexec.c: Likewise.
18150
18151         regex: add many uses of __attribute_warn_unused_result__
18152         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18153         * lib/regexec.c: Likewise.
18154         Extracted from a messy glibc commit.
18155
18156         regcomp.c: spelling and merge-artifact from glibc
18157         * lib/regcomp.c: Merge remainder of glibc's
18158         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18159
18160         regcomp.c: sync white-space changes from glibc
18161         * lib/regcomp.c: Merge to accommodate white space
18162         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18163
18164         regcomp.c: do not ignore internal return values
18165         * lib/regcomp.c: Do not ignore internal return values.
18166         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18167         but without its white-space changes and spelling fixes.
18168
18169         regex_internal.h: define __attribute_warn_unused_result__
18170         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18171
18172         maint: add a syntax-check rule to check for vulnerable Makefile.in
18173         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18174
18175 2010-01-27  Jim Meyering  <meyering@redhat.com>
18176
18177         ncftpput-ftp: clean up spaces
18178         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18179         Remove trailing blanks.
18180
18181 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18182
18183         * build-aux/git-version-gen: Fix copyright statement.
18184         * build-aux/gnupload: Likewise.
18185         * tests/test-arcfour.c: Likewise.
18186         * tests/test-arctwo.c: Likewise.
18187         * tests/test-count-one-bits.c: Likewise.
18188         * tests/test-crc.c: Likewise.
18189         * tests/test-des.c: Likewise.
18190         * tests/test-gc-arcfour.c: Likewise.
18191         * tests/test-gc-arctwo.c: Likewise.
18192         * tests/test-gc-des.c: Likewise.
18193         * tests/test-gc-hmac-md5.c: Likewise.
18194         * tests/test-gc-hmac-sha1.c: Likewise.
18195         * tests/test-gc-md2.c: Likewise.
18196         * tests/test-gc-md4.c: Likewise.
18197         * tests/test-gc-md5.c: Likewise.
18198         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18199         * tests/test-gc-rijndael.c: Likewise.
18200         * tests/test-gc-sha1.c: Likewise.
18201         * tests/test-gc.c: Likewise.
18202         * tests/test-gethostname.c: Likewise.
18203         * tests/test-gettimeofday.c: Likewise.
18204         * tests/test-hash.c: Likewise.
18205         * tests/test-hmac-md5.c: Likewise.
18206         * tests/test-hmac-sha1.c: Likewise.
18207         * tests/test-md2.c: Likewise.
18208         * tests/test-md4.c: Likewise.
18209         * tests/test-md5.c: Likewise.
18210         * tests/test-memchr.c: Likewise.
18211         * tests/test-memchr2.c: Likewise.
18212         * tests/test-memcmp.c: Likewise.
18213         * tests/test-memmem.c: Likewise.
18214         * tests/test-memrchr.c: Likewise.
18215         * tests/test-rawmemchr.c: Likewise.
18216         * tests/test-read-file.c: Likewise.
18217         * tests/test-rijndael.c: Likewise.
18218         * tests/test-sockets.c: Likewise.
18219         * tests/test-strchrnul.c: Likewise.
18220         * tests/test-strstr.c: Likewise.
18221         * tests/test-strtod.c: Likewise.
18222         * build-aux/ncftpput-ftp: Likewise.
18223
18224 2010-01-26  Eric Blake  <ebb9@byu.net>
18225
18226         ignore-value: update recommended header name
18227         * modules/ignore-value (Include): Only use <> for headers that
18228         exist in glibc.
18229
18230 2010-01-26  Jim Meyering  <meyering@redhat.com>
18231
18232         test-userspec.c: avoid compiler warnings
18233         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18234         and "initialization discards qualifiers..." warnings.
18235         Put the first "uid" in its own scope, and make char* members "const".
18236
18237 2010-01-25  Bruno Haible  <bruno@clisp.org>
18238
18239         gnulib-tool: Make warning diagnostics consistent.
18240         * gnulib-tool (func_warning): New function.
18241         Use it everywhere where gnulib-tool produces output to stderr and it is
18242         not a fatal error.
18243
18244 2010-01-25  Bruno Haible  <bruno@clisp.org>
18245
18246         Fix test dependencies.
18247         * modules/xstrtol-tests (Depends-on): Add inttypes.
18248         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18249
18250 2010-01-25 Pádraig Brady <P@draigBrady.com>
18251
18252         syntax-check: detect incorrect boolean macro values in config.h
18253         * modules/maintainer-makefile (configure.ac): Parameterize the location
18254         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18255         The logic is from Eric Blake and the location indicated by Jim Meyering.
18256         Note the more natural CONFIG_HEADER name is prohibited by automake
18257         for backwards compatibility reasons.
18258         * top/maint.mk (sc_Wundef_boolean): New rule.
18259
18260 2010-01-25  Jim Meyering  <meyering@redhat.com>
18261
18262         bootstrap: detect MacOS 10.6's shasum, too
18263         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18264         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18265
18266 2010-01-23  Jim Meyering  <meyering@redhat.com>
18267
18268         xstrtoll: new module
18269         * modules/xstrtoll: New file.
18270         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18271         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18272         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18273         ./configure fails if you use this module and lack "long long".
18274         * modules/xstrtoll-tests: New module.
18275         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18276         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18277         new init.sh-based test framework.
18278
18279 2010-01-24  Bruno Haible  <bruno@clisp.org>
18280
18281         Tests for module 'yn'.
18282         * modules/yn-tests: New file.
18283         * tests/test-yn.c: New file.
18284
18285         Tests for module 'y1'.
18286         * modules/y1-tests: New file.
18287         * tests/test-y1.c: New file.
18288
18289         Tests for module 'y0'.
18290         * modules/y0-tests: New file.
18291         * tests/test-y0.c: New file.
18292
18293         Tests for module 'tanh'.
18294         * modules/tanh-tests: New file.
18295         * tests/test-tanh.c: New file.
18296
18297         Tests for module 'tan'.
18298         * modules/tan-tests: New file.
18299         * tests/test-tan.c: New file.
18300
18301         Tests for module 'sqrt'.
18302         * modules/sqrt-tests: New file.
18303         * tests/test-sqrt.c: New file.
18304
18305         Tests for module 'sinh'.
18306         * modules/sinh-tests: New file.
18307         * tests/test-sinh.c: New file.
18308
18309         Tests for module 'sin'.
18310         * modules/sin-tests: New file.
18311         * tests/test-sin.c: New file.
18312
18313         Tests for module 'rint'.
18314         * modules/rint-tests: New file.
18315         * tests/test-rint.c: New file.
18316
18317         Tests for module 'remainder'.
18318         * modules/remainder-tests: New file.
18319         * tests/test-remainder.c: New file.
18320
18321         Tests for module 'pow'.
18322         * modules/pow-tests: New file.
18323         * tests/test-pow.c: New file.
18324
18325         Tests for module 'nextafter'.
18326         * modules/nextafter-tests: New file.
18327         * tests/test-nextafter.c: New file.
18328
18329         Tests for module 'modf'.
18330         * modules/modf-tests: New file.
18331         * tests/test-modf.c: New file.
18332
18333         Tests for module 'logb'.
18334         * modules/logb-tests: New file.
18335         * tests/test-logb.c: New file.
18336
18337         Tests for module 'log1p'.
18338         * modules/log1p-tests: New file.
18339         * tests/test-log1p.c: New file.
18340
18341         Tests for module 'log10'.
18342         * modules/log10-tests: New file.
18343         * tests/test-log10.c: New file.
18344
18345         Tests for module 'log'.
18346         * modules/log-tests: New file.
18347         * tests/test-log.c: New file.
18348
18349         Tests for module 'lgamma'.
18350         * modules/lgamma-tests: New file.
18351         * tests/test-lgamma.c: New file.
18352
18353         Tests for module 'ldexp'.
18354         * modules/ldexp-tests: New file.
18355         * tests/test-ldexp.c: New file.
18356
18357         Tests for module 'jn'.
18358         * modules/jn-tests: New file.
18359         * tests/test-jn.c: New file.
18360
18361         Tests for module 'j1'.
18362         * modules/j1-tests: New file.
18363         * tests/test-j1.c: New file.
18364
18365         Tests for module 'j0'.
18366         * modules/j0-tests: New file.
18367         * tests/test-j0.c: New file.
18368
18369         Tests for module 'hypot'.
18370         * modules/hypot-tests: New file.
18371         * tests/test-hypot.c: New file.
18372
18373         Tests for module 'fmod'.
18374         * modules/fmod-tests: New file.
18375         * tests/test-fmod.c: New file.
18376
18377         Tests for module 'fabs'.
18378         * modules/fabs-tests: New file.
18379         * tests/test-fabs.c: New file.
18380
18381         Tests for module 'exp'.
18382         * modules/exp-tests: New file.
18383         * tests/test-exp.c: New file.
18384
18385         Tests for module 'erfc'.
18386         * modules/erfc-tests: New file.
18387         * tests/test-erfc.c: New file.
18388
18389         Tests for module 'erf'.
18390         * modules/erf-tests: New file.
18391         * tests/test-erf.c: New file.
18392
18393         Tests for module 'cosh'.
18394         * modules/cosh-tests: New file.
18395         * tests/test-cosh.c: New file.
18396
18397         Tests for module 'cos'.
18398         * modules/cos-tests: New file.
18399         * tests/test-cos.c: New file.
18400
18401         Tests for module 'copysign'.
18402         * modules/copysign-tests: New file.
18403         * tests/test-copysign.c: New file.
18404
18405         Tests for module 'cbrt'.
18406         * modules/cbrt-tests: New file.
18407         * tests/test-cbrt.c: New file.
18408
18409         Tests for module 'atan2'.
18410         * modules/atan2-tests: New file.
18411         * tests/test-atan2.c: New file.
18412
18413         Tests for module 'atan'.
18414         * modules/atan-tests: New file.
18415         * tests/test-atan.c: New file.
18416
18417         Tests for module 'asin'.
18418         * modules/asin-tests: New file.
18419         * tests/test-asin.c: New file.
18420
18421         Tests for module 'acos'.
18422         * modules/acos-tests: New file.
18423         * tests/test-acos.c: New file.
18424
18425 2010-01-24  Bruno Haible  <bruno@clisp.org>
18426
18427         Fix tests for common <math.h> functions.
18428         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18429         code snippet that references the function pointer, rather than merely
18430         calling the function. Substitute the FUNC_LIBM variable.
18431         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18432         * modules/acos (configure.ac): Likewise.
18433         * modules/asin (configure.ac): Likewise.
18434         * modules/atan (configure.ac): Likewise.
18435         * modules/atan2 (configure.ac): Likewise.
18436         * modules/cbrt (configure.ac): Likewise.
18437         * modules/copysign (configure.ac): Likewise.
18438         * modules/cos (configure.ac): Likewise.
18439         * modules/cosh (configure.ac): Likewise.
18440         * modules/erf (configure.ac): Likewise.
18441         * modules/erfc (configure.ac): Likewise.
18442         * modules/exp (configure.ac): Likewise.
18443         * modules/fabs (configure.ac): Likewise.
18444         * modules/fmod (configure.ac): Likewise.
18445         * modules/hypot (configure.ac): Likewise.
18446         * modules/j0 (configure.ac): Likewise.
18447         * modules/j1 (configure.ac): Likewise.
18448         * modules/jn (configure.ac): Likewise.
18449         * modules/ldexp (configure.ac): Likewise.
18450         * modules/lgamma (configure.ac): Likewise.
18451         * modules/log (configure.ac): Likewise.
18452         * modules/log10 (configure.ac): Likewise.
18453         * modules/log1p (configure.ac): Likewise.
18454         * modules/logb (configure.ac): Likewise.
18455         * modules/modf (configure.ac): Likewise.
18456         * modules/nextafter (configure.ac): Likewise.
18457         * modules/pow (configure.ac): Likewise.
18458         * modules/remainder (configure.ac): Likewise.
18459         * modules/rint (configure.ac): Likewise.
18460         * modules/sin (configure.ac): Likewise.
18461         * modules/sinh (configure.ac): Likewise.
18462         * modules/tan (configure.ac): Likewise.
18463         * modules/tanh (configure.ac): Likewise.
18464         * modules/y0 (configure.ac): Likewise.
18465         * modules/y1 (configure.ac): Likewise.
18466         * modules/yn (configure.ac): Likewise.
18467
18468 2010-01-24  Bruno Haible  <bruno@clisp.org>
18469
18470         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18471         * tests/test-acosl.c (x): New variable.
18472         (main): Store argument in x and fetch it from x.
18473         * tests/test-asinl.c (x): New variable.
18474         (main): Store argument in x and fetch it from x.
18475         * tests/test-atanl.c (x): New variable.
18476         (main): Store argument in x and fetch it from x.
18477         * tests/test-cosl.c (x): New variable.
18478         (main): Store argument in x and fetch it from x.
18479         * tests/test-expl.c (x): New variable.
18480         (main): Store argument in x and fetch it from x.
18481         * tests/test-logl.c (x): New variable.
18482         (main): Store argument in x and fetch it from x.
18483         * tests/test-sinl.c (x): New variable.
18484         (main): Store argument in x and fetch it from x.
18485         * tests/test-sqrtl.c (x): New variable.
18486         (main): Store argument in x and fetch it from x.
18487         * tests/test-tanl.c (x): New variable.
18488         (main): Store argument in x and fetch it from x.
18489
18490 2010-01-24  Bruno Haible  <bruno@clisp.org>
18491
18492         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18493         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18494         assignments to the initial TESTS_ENVIRONMENT.
18495         * doc/gnulib.texi (Unit test modules): Document it.
18496         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18497         TESTS_ENVIRONMENT.
18498         * modules/btowc-tests (Makefile.am): Likewise.
18499         * modules/c-stack-tests (Makefile.am): Likewise.
18500         * modules/c-strcase-tests (Makefile.am): Likewise.
18501         * modules/copy-file-tests (Makefile.am): Likewise.
18502         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18503         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18504         * modules/mbrtowc-tests (Makefile.am): Likewise.
18505         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18506         * modules/mbscasestr-tests (Makefile.am): Likewise.
18507         * modules/mbschr-tests (Makefile.am): Likewise.
18508         * modules/mbscspn-tests (Makefile.am): Likewise.
18509         * modules/mbsinit-tests (Makefile.am): Likewise.
18510         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18511         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18512         * modules/mbspbrk-tests (Makefile.am): Likewise.
18513         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18514         * modules/mbsrchr-tests (Makefile.am): Likewise.
18515         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18516         * modules/mbsspn-tests (Makefile.am): Likewise.
18517         * modules/mbsstr-tests (Makefile.am): Likewise.
18518         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18519         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18520         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18521         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18522         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18523         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18524         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18525         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18526         * modules/wcrtomb-tests (Makefile.am): Likewise.
18527         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18528         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18529         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18530         assignments from TESTS_ENVIRONMENT.
18531         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18532         augmentation.
18533         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18534         * modules/atexit-tests (Makefile.am): Likewise.
18535         * modules/binary-io-tests (Makefile.am): Likewise.
18536         * modules/closein-tests (Makefile.am): Likewise.
18537         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18538         * modules/exclude-tests (Makefile.am): Likewise.
18539         * modules/fflush-tests (Makefile.am): Likewise.
18540         * modules/fpending-tests (Makefile.am): Likewise.
18541         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18542         * modules/freadahead-tests (Makefile.am): Likewise.
18543         * modules/freadptr-tests (Makefile.am): Likewise.
18544         * modules/freadseek-tests (Makefile.am): Likewise.
18545         * modules/fseek-tests (Makefile.am): Likewise.
18546         * modules/fseeko-tests (Makefile.am): Likewise.
18547         * modules/ftell-tests (Makefile.am): Likewise.
18548         * modules/ftello-tests (Makefile.am): Likewise.
18549         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18550         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18551         * modules/lseek-tests (Makefile.am): Likewise.
18552         * modules/parse-duration-tests (Makefile.am): Likewise.
18553         * modules/perror-tests (Makefile.am): Likewise.
18554         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18555         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18556         * modules/pipe-tests (Makefile.am): Likewise.
18557         * modules/pread-tests (Makefile.am): Likewise.
18558         * modules/printf-posix-tests (Makefile.am): Likewise.
18559         * modules/select-tests (Makefile.am): Likewise.
18560         * modules/sigpipe-tests (Makefile.am): Likewise.
18561         * modules/tsearch-tests (Makefile.am): Likewise.
18562         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18563         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18564         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18565         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18566         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18567         * modules/version-etc-tests (Makefile.am): Likewise.
18568         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18569         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18570         * modules/xalloc-die-tests (Makefile.am): Likewise.
18571         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18572         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18573         * modules/xstrtol-tests (Makefile.am): Likewise.
18574         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18575         * modules/yesno-tests (Makefile.am): Likewise.
18576         Suggested by Jim Meyering.
18577
18578 2010-01-24  Bruno Haible  <bruno@clisp.org>
18579
18580         More documentation.
18581         * doc/gnulib.texi (Writing modules): New chapter.
18582         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18583         the new chapter.
18584
18585 2010-01-24  Jim Meyering  <meyering@redhat.com>
18586
18587         maint.mk: do not prepend "./" after filtering
18588         * top/maint.mk (_prepend_srcdir_prefix): New variable
18589         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18590         "./" when $(srcdir) is ".".
18591
18592         define STREQ(a,b) consistently, removing useless parentheses
18593         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18594         since the only risk is that "a" or "b" contains an unparenthesized
18595         comma, but if either did that, STREQ would have 3 or more arguments.
18596         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18597         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18598         * lib/hash-triple.c (STREQ): Likewise.
18599         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18600         * lib/getugroups.c (STREQ): Likewise.
18601
18602 2010-01-23  Jim Meyering  <meyering@redhat.com>
18603
18604         maint.mk: fix syntax-check in a non-srcdir build directory
18605         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18606         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18607
18608 2010-01-22  Jim Meyering  <meyering@redhat.com>
18609
18610         userspec: add unit tests
18611         * tests/test-userspec.c: New file.
18612         * modules/userspec-tests: Likewise.
18613
18614 2010-01-21  Jim Meyering  <meyering@redhat.com>
18615
18616         maint.mk: handle source file names containing "." robustly
18617         * top/maint.mk (_dot_escaped_srcdir): Define.
18618         (VC_LIST): Use it in LHS of sed substitution.
18619
18620 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18621
18622         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18623         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18624         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18625         from a non-srcdir build.
18626
18627 2010-01-20  Eric Blake  <ebb9@byu.net>
18628
18629         warn-on-use: use instead of link-warning
18630         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18631         * modules/unistd (Depends-on, Makefile.am): Likewise.
18632         * modules/arpa_inet (Depends-on): Replace link-warning with
18633         warn-on-use.
18634         (Makefile.am): Update rules accordingly.
18635         * modules/ctype (Depends-on, Makefile.am): Likewise.
18636         * modules/dirent (Depends-on, Makefile.am): Likewise.
18637         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18638         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18639         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18640         * modules/locale (Depends-on, Makefile.am): Likewise.
18641         * modules/math (Depends-on, Makefile.am): Likewise.
18642         * modules/search (Depends-on, Makefile.am): Likewise.
18643         * modules/signal (Depends-on, Makefile.am): Likewise.
18644         * modules/spawn (Depends-on, Makefile.am): Likewise.
18645         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18646         * modules/string (Depends-on, Makefile.am): Likewise.
18647         * modules/strings (Depends-on, Makefile.am): Likewise.
18648         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18649         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18650         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18651         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18652         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18653         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18654         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18655         * modules/wchar (Depends-on, Makefile.am): Likewise.
18656         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18657         should be poisoned.
18658         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18659         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18660         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18661         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18662         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18663         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18664         * m4/math_h.m4 (gl_MATH_H): Likewise.
18665         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18666         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18667         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18668         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18669         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18670         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18671         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18672         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18673         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18674         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18675         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18677         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18678         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18679         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18680         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18681         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18682         GL_LINK_WARNING.
18683         * lib/ctype.in.h: Likewise.
18684         * lib/dirent.in.h: Likewise.
18685         * lib/fcntl.in.h: Likewise.
18686         * lib/inttypes.in.h: Likewise.
18687         * lib/langinfo.in.h: Likewise.
18688         * lib/locale.in.h: Likewise.
18689         * lib/math.in.h: Likewise.
18690         * lib/search.in.h: Likewise.
18691         * lib/signal.in.h: Likewise.
18692         * lib/spawn.in.h: Likewise.
18693         * lib/stdio.in.h: Likewise.
18694         * lib/stdlib.in.h: Likewise.
18695         * lib/string.in.h: Likewise.
18696         * lib/strings.in.h: Likewise.
18697         * lib/sys_file.in.h: Likewise.
18698         * lib/sys_ioctl.in.h: Likewise.
18699         * lib/sys_select.in.h: Likewise.
18700         * lib/sys_socket.in.h: Likewise.
18701         * lib/sys_stat.in.h: Likewise.
18702         * lib/sys_times.in.h: Likewise.
18703         * lib/sys_utsname.in.h: Likewise.
18704         * lib/unistd.in.h: Likewise.
18705         * lib/wchar.in.h: Likewise.
18706
18707 2010-01-20  Bruno Haible  <bruno@clisp.org>
18708
18709         Avoid duplicate -lm.
18710         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18711         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18712         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18713         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18714         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18715         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18716         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18717         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18718         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18719         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18720         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18721         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18722         Reported by Paolo Bonzini.
18723
18724 2010-01-19  Bruno Haible  <bruno@clisp.org>
18725
18726         langinfo, nl_langinfo: Relicense under LGPLv2+.
18727         * modules/langinfo (License): Change to LGPLv2+.
18728         * modules/nl_langinfo (License): Likewise.
18729         Patch by David Lutterkort <lutter@redhat.com>.
18730
18731 2010-01-19  Bruno Haible  <bruno@clisp.org>
18732
18733         Avoid compilation error with cc on OSF/1 5.1.
18734         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18735         statement, not before.
18736         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18737
18738 2010-01-18  Bruno Haible  <bruno@clisp.org>
18739
18740         Avoid a link error due to the __printf__ symbol.
18741         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18742         and 2.6.x.
18743         (__format__, __printf__): Remove definitions.
18744         * lib/argp-fmtstream.h: Likewise.
18745         * lib/argp.h: Likewise.
18746         * lib/error.h: Likewise.
18747         * lib/vasnprintf.h: Likewise.
18748         * lib/xprintf.h: Likewise.
18749         * lib/xvasprintf.h: Likewise.
18750         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18751
18752 2010-01-18  Bruno Haible  <bruno@clisp.org>
18753
18754         Tests for module 'tanl'.
18755         * modules/tanl-tests: New file.
18756         * tests/test-tanl.c: New file.
18757
18758         Tests for module 'sqrtl'.
18759         * modules/sqrtl-tests: New file.
18760         * tests/test-sqrtl.c: New file.
18761
18762         Tests for module 'sinl'.
18763         * modules/sinl-tests: New file.
18764         * tests/test-sinl.c: New file.
18765
18766         Tests for module 'logl'.
18767         * modules/logl-tests: New file.
18768         * tests/test-logl.c: New file.
18769
18770         Tests for module 'expl'.
18771         * modules/expl-tests: New file.
18772         * tests/test-expl.c: New file.
18773
18774         Tests for module 'cosl'.
18775         * modules/cosl-tests: New file.
18776         * tests/test-cosl.c: New file.
18777
18778         Tests for module 'atanl'.
18779         * modules/atanl-tests: New file.
18780         * tests/test-atanl.c: New file.
18781
18782         Tests for module 'asinl'.
18783         * modules/asinl-tests: New file.
18784         * tests/test-asinl.c: New file.
18785
18786         Tests for module 'acosl'.
18787         * modules/acosl-tests: New file.
18788         * tests/test-acosl.c: New file.
18789
18790         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18791         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18792         tanl): Use the standard gnulib idiom.
18793         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18794         * lib/sinl.c: Likewise.
18795         * lib/tanl.c: Don't include trigl.c.
18796         (kernel_tanl): Make static.
18797         * lib/sincosl.c: Include trigl.h first.
18798         * lib/trigl.c: Likewise.
18799         * m4/acosl.m4: New file.
18800         * m4/asinl.m4: New file.
18801         * m4/atanl.m4: New file.
18802         * m4/cosl.m4: New file.
18803         * m4/expl.m4: New file.
18804         * m4/logl.m4: New file.
18805         * m4/sinl.m4: New file.
18806         * m4/sqrtl.m4: New file.
18807         * m4/tanl.m4: New file.
18808         * m4/mathl.m4: Remove file.
18809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18810         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18811         Don't initialize GNULIB_MATHL.
18812         * modules/acosl: New file.
18813         * modules/asinl: New file.
18814         * modules/atanl: New file.
18815         * modules/cosl: New file.
18816         * modules/expl: New file.
18817         * modules/logl: New file.
18818         * modules/sinl: New file.
18819         * modules/sqrtl: New file.
18820         * modules/tanl: New file.
18821         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18822         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18823         substitute GNULIB_MATHL.
18824         * modules/mathl: Rewritten.
18825         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18826         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18827         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18828         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18829         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18830         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18831         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18832         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18833         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18834
18835 2010-01-18  Bruno Haible  <bruno@clisp.org>
18836
18837         sqrt: Make gl_FUNC_SQRT requirable.
18838         * m4/sqrt.m4: New file.
18839         * modules/sqrt (Files): Add it.
18840         (configure.ac): Invoke gl_FUNC_SQRT.
18841
18842 2010-01-18  Bruno Haible  <bruno@clisp.org>
18843
18844         New modules for common <math.h> functions.
18845         * m4/mathfunc.m4: New file.
18846         * modules/acos: New file.
18847         * modules/asin: New file.
18848         * modules/atan: New file.
18849         * modules/atan2: New file.
18850         * modules/cbrt: New file.
18851         * modules/copysign: New file.
18852         * modules/cos: New file.
18853         * modules/cosh: New file.
18854         * modules/erf: New file.
18855         * modules/erfc: New file.
18856         * modules/exp: New file.
18857         * modules/fabs: New file.
18858         * modules/fmod: New file.
18859         * modules/hypot: New file.
18860         * modules/j0: New file.
18861         * modules/j1: New file.
18862         * modules/jn: New file.
18863         * modules/ldexp: New file.
18864         * modules/lgamma: New file.
18865         * modules/log: New file.
18866         * modules/log10: New file.
18867         * modules/log1p: New file.
18868         * modules/logb: New file.
18869         * modules/modf: New file.
18870         * modules/nextafter: New file.
18871         * modules/pow: New file.
18872         * modules/remainder: New file.
18873         * modules/rint: New file.
18874         * modules/sin: New file.
18875         * modules/sinh: New file.
18876         * modules/sqrt: New file.
18877         * modules/tan: New file.
18878         * modules/tanh: New file.
18879         * modules/y0: New file.
18880         * modules/y1: New file.
18881         * modules/yn: New file.
18882         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18883         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18884         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18885         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18886         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18887         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18888         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18889         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18890         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18891         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18892         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18893         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18894         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18895         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18896         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18897         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18898         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18899         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18900         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18901         * doc/posix-functions/log.texi: Mention the 'log' module.
18902         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18903         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18904         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18905         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18906         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18907         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18908         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18909         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18910         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18911         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18912         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18913         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18914         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18915         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18916         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18917         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18918
18919 2010-01-18  Jim Meyering  <meyering@redhat.com>
18920
18921         ignore-value: relax license to LGPLv2+
18922         * modules/ignore-value (License): Relax to LGPLv2+.
18923
18924         getdate: don't leak when TZ contains two or more '"'s
18925         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18926         double quote in TZ after the first one.
18927
18928         readtokens: do not leak internal token_lengths buffer
18929         * lib/readtokens.c (readtokens): Free the local, lengths,
18930         when the supplied "token_lengths" parameter is NULL.
18931
18932 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18933
18934         Fix a couple of missing LIBTHREAD link failures on AIX.
18935         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18936         $(LIBTHREAD).
18937         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18938
18939         Link test-poll against INET_PTON_LIB.
18940         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18941         for inet_pton on Solaris 10.
18942
18943 2010-01-17  Bruno Haible  <bruno@clisp.org>
18944
18945         unistdio/*-sprintf: Fix typo in module description.
18946         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18947         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18948         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18949         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18950         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18951         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18952         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18953         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18954
18955 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18956
18957         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18958         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18959         variables in shell case patterns, for AIX and HP-UX ksh.
18960
18961         Split large sed scripts, for HP-UX sed.
18962         * modules/stdio: Split sed scripts around 50 sed commands,
18963         to avoid HP-UX limit of 99 commands, in the near future.
18964         * modules/string: Likewise.
18965         * modules/unistd: Likewise.
18966
18967         gnulib-tool: avoid writing in the current directory.
18968         * gnulib-tool (func_emit_lib_Makefile_am)
18969         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18970         not in the current directory, so concurrent gnulib-tool
18971         instances do not interfere.
18972
18973 2010-01-16  Jim Meyering  <meyering@redhat.com>
18974
18975         doc: update users.txt
18976         * users.txt: Add grep.
18977         (diffutils, gzip): Update URLs.
18978
18979 2010-01-12  Bruno Haible  <bruno@clisp.org>
18980
18981         posix_spawn: Avoid test failure on Cygwin.
18982         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18983         characters.
18984         Reported by Simon Josefsson.
18985
18986 2010-01-12  Bruno Haible  <bruno@clisp.org>
18987
18988         * tests/test-cond.c (main): When skipping the test, show the reason.
18989
18990 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18991
18992         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18993
18994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18995
18996         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18997         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18998
18999 2010-01-12  Eric Blake  <ebb9@byu.net>
19000
19001         build: guarantee AS_VAR_IF
19002         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19003         (gl_AS_VAR_IF): Move...
19004         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19005         Reported by Simon Josefsson.
19006
19007 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19008
19009         * lib/stdio.in.h: Fix typo.
19010
19011 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19012
19013         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19014         libgpg-error.
19015
19016 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19017
19018         * tests/test-xalloc-die.sh: Use $EXEEXT.
19019
19020 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19021             Bruno Haible  <bruno@clisp.org>
19022
19023         getlogin, getlogin_r: Avoid test failure.
19024         * tests/test-getlogin.c: Include <stdio.h>.
19025         (main): Skip the test when the function fails because stdin is not a
19026         tty.
19027         * tests/test-getlogin_r.c: Include <stdio.h>.
19028         (main): Skip the test when the function fails because stdin is not a
19029         tty.
19030
19031 2010-01-11  Eric Blake  <ebb9@byu.net>
19032
19033         tests: avoid more large file warnings
19034         * tests/test-fflush.c: Avoid warning about ftell use.
19035         * tests/test-fseek.c: Avoid warning about fseek use.
19036
19037 2010-01-10  Bruno Haible  <bruno@clisp.org>
19038
19039         nproc: Work better on Linux when /proc and /sys are not mounted.
19040         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19041         as lower bound when, on glibc/Linux systems,
19042         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19043         Suggested by Pádraig Brady <P@draigbrady.com>.
19044         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19045
19046         nproc: Refactor.
19047         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19048         extracted from num_processors.
19049         (num_processors): Call it.
19050
19051 2010-01-11  Jim Meyering  <meyering@redhat.com>
19052
19053         utimecmp: avoid new warning from upcoming gcc-4.5.0
19054         * lib/utimecmp.c (BILLION): Define using #define rather than an
19055         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19056
19057 2010-01-11  Eric Blake  <ebb9@byu.net>
19058
19059         math: add portability warnings for classification macros
19060         * modules/math (Depends-on): Add warn-on-use.
19061         (Makefile.am): Provide new substitutions.
19062         * m4/math_h.m4 (gl_MATH_H): Require inline.
19063         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19064         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19065         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19066         implement warnings.
19067
19068         unistd: warn on use of environ without module
19069         * modules/unistd (Depends-on): Add warn-on-use.
19070         (Makefile.am): Provide new substitutions.
19071         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19072         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19073
19074         stdio: warn on suspicious uses
19075         * modules/stdio (Depends-on): Add warn-on-use.
19076         (Makefile.am): Provide new substitutions.
19077         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19078         fseeko.
19079         * lib/stdio.in.h (gets): Always warn on use.
19080         (fseek, ftell): Adjust when warnings are issued, and honor
19081         _GL_NO_LARGE_FILES as a way to silence the warning.
19082         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19083         any warning about large file offsets.
19084         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19085         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19086         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19087         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19088         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19089         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19090         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19091         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19092
19093         warn-on-use: new module
19094         * modules/warn-on-use: New file.
19095         * build-aux/warn-on-use.h: Likewise.
19096         * m4/warn-on-use.m4: Likewise.
19097         * MODULES.html.sh (Support for building): Mention it.
19098
19099 2010-01-10  Bruno Haible  <bruno@clisp.org>
19100
19101         Tests for module 'unistr/u32-strdup'.
19102         * modules/unistr/u32-strdup-tests: New file.
19103         * tests/unistr/test-u32-strdup.c: New file.
19104
19105         Tests for module 'unistr/u16-strdup'.
19106         * modules/unistr/u16-strdup-tests: New file.
19107         * tests/unistr/test-u16-strdup.c: New file.
19108
19109         Tests for module 'unistr/u8-strdup'.
19110         * modules/unistr/u8-strdup-tests: New file.
19111         * tests/unistr/test-u8-strdup.c: New file.
19112         * tests/unistr/test-strdup.h: New file.
19113
19114         Tests for module 'unistr/u32-strncmp'.
19115         * modules/unistr/u32-strncmp-tests: New file.
19116         * tests/unistr/test-u32-strncmp.c: New file.
19117
19118         Tests for module 'unistr/u16-strncmp'.
19119         * modules/unistr/u16-strncmp-tests: New file.
19120         * tests/unistr/test-u16-strncmp.c: New file.
19121
19122         Tests for module 'unistr/u8-strncmp'.
19123         * modules/unistr/u8-strncmp-tests: New file.
19124         * tests/unistr/test-u8-strncmp.c: New file.
19125         * tests/unistr/test-strncmp.h: New file.
19126
19127         Tests for module 'unistr/u32-strcoll'.
19128         * modules/unistr/u32-strcoll-tests: New file.
19129         * tests/unistr/test-u32-strcoll.c: New file.
19130
19131         Tests for module 'unistr/u16-strcoll'.
19132         * modules/unistr/u16-strcoll-tests: New file.
19133         * tests/unistr/test-u16-strcoll.c: New file.
19134
19135         Tests for module 'unistr/u8-strcoll'.
19136         * modules/unistr/u8-strcoll-tests: New file.
19137         * tests/unistr/test-u8-strcoll.c: New file.
19138
19139         Tests for module 'unistr/u32-strcmp'.
19140         * modules/unistr/u32-strcmp-tests: New file.
19141         * tests/unistr/test-u32-strcmp.c: New file.
19142         * tests/unistr/test-u32-strcmp.h: New file.
19143
19144         Tests for module 'unistr/u16-strcmp'.
19145         * modules/unistr/u16-strcmp-tests: New file.
19146         * tests/unistr/test-u16-strcmp.c: New file.
19147         * tests/unistr/test-u16-strcmp.h: New file.
19148
19149         Tests for module 'unistr/u8-strcmp'.
19150         * modules/unistr/u8-strcmp-tests: New file.
19151         * tests/unistr/test-u8-strcmp.c: New file.
19152         * tests/unistr/test-u8-strcmp.h: New file.
19153         * tests/unistr/test-strcmp.h: New file.
19154
19155         Tests for module 'unistr/u32-strncat'.
19156         * modules/unistr/u32-strncat-tests: New file.
19157         * tests/unistr/test-u32-strncat.c: New file.
19158
19159         Tests for module 'unistr/u16-strncat'.
19160         * modules/unistr/u16-strncat-tests: New file.
19161         * tests/unistr/test-u16-strncat.c: New file.
19162
19163         Tests for module 'unistr/u8-strncat'.
19164         * modules/unistr/u8-strncat-tests: New file.
19165         * tests/unistr/test-u8-strncat.c: New file.
19166         * tests/unistr/test-strncat.h: New file.
19167
19168         Tests for module 'unistr/u32-strcat'.
19169         * modules/unistr/u32-strcat-tests: New file.
19170         * tests/unistr/test-u32-strcat.c: New file.
19171
19172         Tests for module 'unistr/u16-strcat'.
19173         * modules/unistr/u16-strcat-tests: New file.
19174         * tests/unistr/test-u16-strcat.c: New file.
19175
19176         Tests for module 'unistr/u8-strcat'.
19177         * modules/unistr/u8-strcat-tests: New file.
19178         * tests/unistr/test-u8-strcat.c: New file.
19179         * tests/unistr/test-strcat.h: New file.
19180
19181         Tests for module 'unistr/u32-stpncpy'.
19182         * modules/unistr/u32-stpncpy-tests: New file.
19183         * tests/unistr/test-u32-stpncpy.c: New file.
19184
19185         Tests for module 'unistr/u16-stpncpy'.
19186         * modules/unistr/u16-stpncpy-tests: New file.
19187         * tests/unistr/test-u16-stpncpy.c: New file.
19188
19189         Tests for module 'unistr/u8-stpncpy'.
19190         * modules/unistr/u8-stpncpy-tests: New file.
19191         * tests/unistr/test-u8-stpncpy.c: New file.
19192         * tests/unistr/test-stpncpy.h: New file.
19193
19194         Tests for module 'unistr/u32-strncpy'.
19195         * modules/unistr/u32-strncpy-tests: New file.
19196         * tests/unistr/test-u32-strncpy.c: New file.
19197
19198         Tests for module 'unistr/u16-strncpy'.
19199         * modules/unistr/u16-strncpy-tests: New file.
19200         * tests/unistr/test-u16-strncpy.c: New file.
19201
19202         Tests for module 'unistr/u8-strncpy'.
19203         * modules/unistr/u8-strncpy-tests: New file.
19204         * tests/unistr/test-u8-strncpy.c: New file.
19205         * tests/unistr/test-strncpy.h: New file.
19206
19207         Tests for module 'unistr/u32-stpcpy'.
19208         * modules/unistr/u32-stpcpy-tests: New file.
19209         * tests/unistr/test-u32-stpcpy.c: New file.
19210
19211         Tests for module 'unistr/u16-stpcpy'.
19212         * modules/unistr/u16-stpcpy-tests: New file.
19213         * tests/unistr/test-u16-stpcpy.c: New file.
19214
19215         Tests for module 'unistr/u8-stpcpy'.
19216         * modules/unistr/u8-stpcpy-tests: New file.
19217         * tests/unistr/test-u8-stpcpy.c: New file.
19218         * tests/unistr/test-stpcpy.h: New file.
19219
19220         Tests for module 'unistr/u32-strcpy'.
19221         * modules/unistr/u32-strcpy-tests: New file.
19222         * tests/unistr/test-u32-strcpy.c: New file.
19223
19224         Tests for module 'unistr/u16-strcpy'.
19225         * modules/unistr/u16-strcpy-tests: New file.
19226         * tests/unistr/test-u16-strcpy.c: New file.
19227
19228         Tests for module 'unistr/u8-strcpy'.
19229         * modules/unistr/u8-strcpy-tests: New file.
19230         * tests/unistr/test-u8-strcpy.c: New file.
19231         * tests/unistr/test-strcpy.h: New file.
19232
19233         Tests for module 'unistr/u32-strnlen'.
19234         * modules/unistr/u32-strnlen-tests: New file.
19235         * tests/unistr/test-u32-strnlen.c: New file.
19236
19237         Tests for module 'unistr/u16-strnlen'.
19238         * modules/unistr/u16-strnlen-tests: New file.
19239         * tests/unistr/test-u16-strnlen.c: New file.
19240
19241         Tests for module 'unistr/u8-strnlen'.
19242         * modules/unistr/u8-strnlen-tests: New file.
19243         * tests/unistr/test-u8-strnlen.c: New file.
19244         * tests/unistr/test-strnlen.h: New file.
19245
19246         Tests for module 'unistr/u32-strlen'.
19247         * modules/unistr/u32-strlen-tests: New file.
19248         * tests/unistr/test-u32-strlen.c: New file.
19249
19250         Tests for module 'unistr/u16-strlen'.
19251         * modules/unistr/u16-strlen-tests: New file.
19252         * tests/unistr/test-u16-strlen.c: New file.
19253
19254         Tests for module 'unistr/u8-strlen'.
19255         * modules/unistr/u8-strlen-tests: New file.
19256         * tests/unistr/test-u8-strlen.c: New file.
19257
19258         Tests for module 'unistr/u32-prev'.
19259         * modules/unistr/u32-prev-tests: New file.
19260         * tests/unistr/test-u32-prev.c: New file.
19261
19262         Tests for module 'unistr/u16-prev'.
19263         * modules/unistr/u16-prev-tests: New file.
19264         * tests/unistr/test-u16-prev.c: New file.
19265
19266         Tests for module 'unistr/u8-prev'.
19267         * modules/unistr/u8-prev-tests: New file.
19268         * tests/unistr/test-u8-prev.c: New file.
19269
19270         Tests for module 'unistr/u32-next'.
19271         * modules/unistr/u32-next-tests: New file.
19272         * tests/unistr/test-u32-next.c: New file.
19273
19274         Tests for module 'unistr/u16-next'.
19275         * modules/unistr/u16-next-tests: New file.
19276         * tests/unistr/test-u16-next.c: New file.
19277
19278         Tests for module 'unistr/u8-next'.
19279         * modules/unistr/u8-next-tests: New file.
19280         * tests/unistr/test-u8-next.c: New file.
19281
19282         Tests for module 'unistr/u32-strmbtouc'.
19283         * modules/unistr/u32-strmbtouc-tests: New file.
19284         * tests/unistr/test-u32-strmbtouc.c: New file.
19285
19286         Tests for module 'unistr/u16-strmbtouc'.
19287         * modules/unistr/u16-strmbtouc-tests: New file.
19288         * tests/unistr/test-u16-strmbtouc.c: New file.
19289
19290         Tests for module 'unistr/u8-strmbtouc'.
19291         * modules/unistr/u8-strmbtouc-tests: New file.
19292         * tests/unistr/test-u8-strmbtouc.c: New file.
19293
19294         Tests for module 'unistr/u32-strmblen'.
19295         * modules/unistr/u32-strmblen-tests: New file.
19296         * tests/unistr/test-u32-strmblen.c: New file.
19297
19298         Tests for module 'unistr/u16-strmblen'.
19299         * modules/unistr/u16-strmblen-tests: New file.
19300         * tests/unistr/test-u16-strmblen.c: New file.
19301
19302         Tests for module 'unistr/u8-strmblen'.
19303         * modules/unistr/u8-strmblen-tests: New file.
19304         * tests/unistr/test-u8-strmblen.c: New file.
19305
19306         Tests for module 'unistr/u32-cpy-alloc'.
19307         * modules/unistr/u32-cpy-alloc-tests: New file.
19308         * tests/unistr/test-u32-cpy-alloc.c: New file.
19309
19310         Tests for module 'unistr/u16-cpy-alloc'.
19311         * modules/unistr/u16-cpy-alloc-tests: New file.
19312         * tests/unistr/test-u16-cpy-alloc.c: New file.
19313
19314         Tests for module 'unistr/u8-cpy-alloc'.
19315         * modules/unistr/u8-cpy-alloc-tests: New file.
19316         * tests/unistr/test-u8-cpy-alloc.c: New file.
19317         * tests/unistr/test-cpy-alloc.h: New file.
19318
19319         Tests for module 'unistr/u32-mbsnlen'.
19320         * modules/unistr/u32-mbsnlen-tests: New file.
19321         * tests/unistr/test-u32-mbsnlen.c: New file.
19322
19323         Tests for module 'unistr/u16-mbsnlen'.
19324         * modules/unistr/u16-mbsnlen-tests: New file.
19325         * tests/unistr/test-u16-mbsnlen.c: New file.
19326
19327         Tests for module 'unistr/u8-mbsnlen'.
19328         * modules/unistr/u8-mbsnlen-tests: New file.
19329         * tests/unistr/test-u8-mbsnlen.c: New file.
19330
19331         Tests for module 'unistr/u32-chr'.
19332         * modules/unistr/u32-chr-tests: New file.
19333         * tests/unistr/test-u32-chr.c: New file.
19334
19335         Tests for module 'unistr/u16-chr'.
19336         * modules/unistr/u16-chr-tests: New file.
19337         * tests/unistr/test-u16-chr.c: New file.
19338
19339         Tests for module 'unistr/u8-chr'.
19340         * modules/unistr/u8-chr-tests: New file.
19341         * tests/unistr/test-u8-chr.c: New file.
19342         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19343
19344         Tests for module 'unistr/u32-cmp2'.
19345         * modules/unistr/u32-cmp2-tests: New file.
19346         * tests/unistr/test-u32-cmp2.c: New file.
19347
19348         Tests for module 'unistr/u16-cmp2'.
19349         * modules/unistr/u16-cmp2-tests: New file.
19350         * tests/unistr/test-u16-cmp2.c: New file.
19351
19352         Tests for module 'unistr/u8-cmp2'.
19353         * modules/unistr/u8-cmp2-tests: New file.
19354         * tests/unistr/test-u8-cmp2.c: New file.
19355         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19356
19357         Tests for module 'unistr/u32-cmp'.
19358         * modules/unistr/u32-cmp-tests: New file.
19359         * tests/unistr/test-u32-cmp.c: New file.
19360
19361         Tests for module 'unistr/u16-cmp'.
19362         * modules/unistr/u16-cmp-tests: New file.
19363         * tests/unistr/test-u16-cmp.c: New file.
19364
19365         Tests for module 'unistr/u8-cmp'.
19366         * modules/unistr/u8-cmp-tests: New file.
19367         * tests/unistr/test-u8-cmp.c: New file.
19368         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19369
19370         Tests for module 'unistr/u32-set'.
19371         * modules/unistr/u32-set-tests: New file.
19372         * tests/unistr/test-u32-set.c: New file.
19373
19374         Tests for module 'unistr/u16-set'.
19375         * modules/unistr/u16-set-tests: New file.
19376         * tests/unistr/test-u16-set.c: New file.
19377
19378         Tests for module 'unistr/u8-set'.
19379         * modules/unistr/u8-set-tests: New file.
19380         * tests/unistr/test-u8-set.c: New file.
19381         * tests/unistr/test-set.h: New file.
19382
19383         Tests for module 'unistr/u32-move'.
19384         * modules/unistr/u32-move-tests: New file.
19385         * tests/unistr/test-u32-move.c: New file.
19386
19387         Tests for module 'unistr/u16-move'.
19388         * modules/unistr/u16-move-tests: New file.
19389         * tests/unistr/test-u16-move.c: New file.
19390
19391         Tests for module 'unistr/u8-move'.
19392         * modules/unistr/u8-move-tests: New file.
19393         * tests/unistr/test-u8-move.c: New file.
19394         * tests/unistr/test-move.h: New file.
19395
19396         Tests for module 'unistr/u32-cpy'.
19397         * modules/unistr/u32-cpy-tests: New file.
19398         * tests/unistr/test-u32-cpy.c: New file.
19399
19400         Tests for module 'unistr/u16-cpy'.
19401         * modules/unistr/u16-cpy-tests: New file.
19402         * tests/unistr/test-u16-cpy.c: New file.
19403
19404         Tests for module 'unistr/u8-cpy'.
19405         * modules/unistr/u8-cpy-tests: New file.
19406         * tests/unistr/test-u8-cpy.c: New file.
19407         * tests/unistr/test-cpy.h: New file.
19408
19409 2010-01-09  Bruno Haible  <bruno@clisp.org>
19410
19411         Tests for module 'unistr/u32-uctomb'.
19412         * modules/unistr/u32-uctomb-tests: New file.
19413         * tests/unistr/test-u32-uctomb.c: New file.
19414
19415         Tests for module 'unistr/u16-uctomb'.
19416         * modules/unistr/u16-uctomb-tests: New file.
19417         * tests/unistr/test-u16-uctomb.c: New file.
19418
19419         Tests for module 'unistr/u8-uctomb'.
19420         * modules/unistr/u8-uctomb-tests: New file.
19421         * tests/unistr/test-u8-uctomb.c: New file.
19422
19423         Tests for module 'unistr/u32-mbtoucr'.
19424         * modules/unistr/u32-mbtoucr-tests: New file.
19425         * tests/unistr/test-u32-mbtoucr.c: New file.
19426
19427         Tests for module 'unistr/u16-mbtoucr'.
19428         * modules/unistr/u16-mbtoucr-tests: New file.
19429         * tests/unistr/test-u16-mbtoucr.c: New file.
19430
19431         Tests for module 'unistr/u8-mbtoucr'.
19432         * modules/unistr/u8-mbtoucr-tests: New file.
19433         * tests/unistr/test-u8-mbtoucr.c: New file.
19434
19435         Tests for module 'unistr/u32-mbtouc'.
19436         * modules/unistr/u32-mbtouc-tests: New file.
19437         * tests/unistr/test-u32-mbtouc.c: New file.
19438
19439         Tests for module 'unistr/u16-mbtouc'.
19440         * modules/unistr/u16-mbtouc-tests: New file.
19441         * tests/unistr/test-u16-mbtouc.c: New file.
19442
19443         Tests for module 'unistr/u8-mbtouc'.
19444         * modules/unistr/u8-mbtouc-tests: New file.
19445         * tests/unistr/test-u8-mbtouc.c: New file.
19446
19447         Tests for module 'unistr/u32-mbtouc-unsafe'.
19448         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19449         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19450         * tests/unistr/test-u32-mbtouc.h: New file.
19451
19452         Tests for module 'unistr/u16-mbtouc-unsafe'.
19453         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19454         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19455         * tests/unistr/test-u16-mbtouc.h: New file.
19456
19457         Tests for module 'unistr/u8-mbtouc-unsafe'.
19458         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19459         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19460         * tests/unistr/test-u8-mbtouc.h: New file.
19461
19462         Tests for module 'unistr/u32-mblen'.
19463         * modules/unistr/u32-mblen-tests: New file.
19464         * tests/unistr/test-u32-mblen.c: New file.
19465
19466         Tests for module 'unistr/u16-mblen'.
19467         * modules/unistr/u16-mblen-tests: New file.
19468         * tests/unistr/test-u16-mblen.c: New file.
19469
19470         Tests for module 'unistr/u8-mblen'.
19471         * modules/unistr/u8-mblen-tests: New file.
19472         * tests/unistr/test-u8-mblen.c: New file.
19473
19474         Tests for module 'unistr/u32-to-u16'.
19475         * modules/unistr/u32-to-u16-tests: New file.
19476         * tests/unistr/test-u32-to-u16.c: New file.
19477
19478         Tests for module 'unistr/u32-to-u8'.
19479         * modules/unistr/u32-to-u8-tests: New file.
19480         * tests/unistr/test-u32-to-u8.c: New file.
19481
19482         Tests for module 'unistr/u16-to-u32'.
19483         * modules/unistr/u16-to-u32-tests: New file.
19484         * tests/unistr/test-u16-to-u32.c: New file.
19485
19486         Tests for module 'unistr/u16-to-u8'.
19487         * modules/unistr/u16-to-u8-tests: New file.
19488         * tests/unistr/test-u16-to-u8.c: New file.
19489
19490         Tests for module 'unistr/u8-to-u32'.
19491         * modules/unistr/u8-to-u32-tests: New file.
19492         * tests/unistr/test-u8-to-u32.c: New file.
19493
19494         Tests for module 'unistr/u8-to-u16'.
19495         * modules/unistr/u8-to-u16-tests: New file.
19496         * tests/unistr/test-u8-to-u16.c: New file.
19497
19498         Tests for module 'unistr/u32-check'.
19499         * modules/unistr/u32-check-tests: New file.
19500         * tests/unistr/test-u32-check.c: New file.
19501
19502         Tests for module 'unistr/u16-check'.
19503         * modules/unistr/u16-check-tests: New file.
19504         * tests/unistr/test-u16-check.c: New file.
19505
19506         Tests for module 'unistr/u8-check'.
19507         * modules/unistr/u8-check-tests: New file.
19508         * tests/unistr/test-u8-check.c: New file.
19509
19510         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19511         (category_equals): New function.
19512         (main): Add more tests.
19513         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19514
19515         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19516
19517 2010-01-10  Bruno Haible  <bruno@clisp.org>
19518
19519         unistr/u*-strcoll: Try harder to distinguish different strings.
19520         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19521         compare s1 and s2 to see if they are different.
19522
19523 2010-01-10  Bruno Haible  <bruno@clisp.org>
19524
19525         unistr/u*-stpncpy: Fix the return value.
19526         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19527         description of the return value consistent with stpncpy in glibc.
19528         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19529         written non-NUL unit.
19530
19531 2010-01-10  Bruno Haible  <bruno@clisp.org>
19532
19533         unistr/u*-next: Add missing dependencies.
19534         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19535         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19536         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19537
19538 2010-01-10  Bruno Haible  <bruno@clisp.org>
19539
19540         unistr/u8-mbsnlen: Fix return value for incomplete character.
19541         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19542         u8_mblen.
19543         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19544         Remove unistr/u8-mblen.
19545         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19546         u16_mblen.
19547         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19548         Remove unistr/u16-mblen.
19549
19550 2010-01-10  Bruno Haible  <bruno@clisp.org>
19551
19552         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19553         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19554         Reported by Brian Gough <bjg@gnu.org> and
19555         Chris Clayton <chris2553@googlemail.com> via
19556         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19557
19558 2010-01-09  Bruno Haible  <bruno@clisp.org>
19559
19560         unistr/u16-to-u32: Reject invalid input.
19561         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19562         u16_mbtouc.
19563         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19564         Remove unistr/u16-mbtouc.
19565
19566         unistr/u16-to-u8: Reject invalid input.
19567         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19568         u16_mbtouc.
19569         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19570         Remove unistr/u16-mbtouc.
19571
19572         unistr/u8-to-u32: Reject invalid input.
19573         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19574         u8_mbtouc.
19575         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19576         Remove unistr/u8-mbtouc.
19577
19578         unistr/u8-to-u16: Reject invalid input.
19579         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19580         u8_mbtouc.
19581         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19582         Remove unistr/u8-mbtouc.
19583
19584 2010-01-09  Bruno Haible  <bruno@clisp.org>
19585
19586         Tests for module 'getlogin'.
19587         * modules/getlogin-tests: New file.
19588         * tests/test-getlogin.c: New file.
19589
19590         New module 'getlogin'.
19591         * lib/unistd.in.h (getlogin): New declaration.
19592         * lib/getlogin.c: New file.
19593         * m4/getlogin.m4: New file.
19594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19595         HAVE_GETLOGIN.
19596         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19597         HAVE_GETLOGIN.
19598         * modules/getlogin: New file.
19599         * doc/posix-functions/getlogin.texi: Mention the new module.
19600         Reported by John W. Eaton <jwe@gnu.org>.
19601
19602 2010-01-09  Bruno Haible  <bruno@clisp.org>
19603
19604         getlogin_r: Support for native Windows.
19605         * lib/getlogin_r.c: Include <windows.h>
19606         (getlogin_r): Implement for native Windows.
19607         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19608         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19609         via John W. Eaton <jwe@gnu.org>.
19610
19611 2010-01-09  Bruno Haible  <bruno@clisp.org>
19612
19613         getlogin_r: Small fixes.
19614         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19615         succeeds.
19616         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19617         before testing whether getlogin_r is declared. No need to set
19618         HAVE_DECL_GETLOGIN_R to 1.
19619         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19620
19621 2010-01-09  Bruno Haible  <bruno@clisp.org>
19622
19623         * lib/unistd.in.h (getlogin_r): Add comment.
19624
19625 2010-01-09  Bruno Haible  <bruno@clisp.org>
19626
19627         Tests for module 'getlogin_r'.
19628         * modules/getlogin_r-tests: New file.
19629         * tests/test-getlogin_r.c: New file.
19630
19631 2010-01-09  Jim Meyering  <meyering@redhat.com>
19632
19633         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19634         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19635         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19636
19637 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19638
19639         * lib/dup2.c (rpl_dup2): Improve comment.
19640
19641 2010-01-08  Eric Blake  <ebb9@byu.net>
19642
19643         maint.mk: allow packages to add makefile @@ exceptions
19644         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19645         (sc_makefile_check): Rename...
19646         (sc_makefile_at_at_check): ...to this, and use hook.
19647
19648         dup2: work around mingw bug
19649         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19650         Reported by Simon Josefsson.
19651
19652 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19653
19654         glob: Fix C++ compilation.
19655         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19656         C++.
19657
19658 2010-01-07  Bruno Haible  <bruno@clisp.org>
19659
19660         Fix indentation of wctype.in.h, broken since 2007-01-06.
19661         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19662
19663 2010-01-07  Bruno Haible  <bruno@clisp.org>
19664
19665         mbslen: Avoid collision with system function.
19666         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19667         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19668         * m4/mbslen.m4: New file.
19669         * modules/mbslen (Files): Add it.
19670         (configure.ac): Invoke gl_MBSLEN.
19671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19672         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19673         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19674         via Ian Beckwith <ianb@erislabs.net>.
19675
19676 2010-01-07  Bruno Haible  <bruno@clisp.org>
19677
19678         dirent: Document the last fix.
19679         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19680
19681 2010-01-07  Bruno Haible  <bruno@clisp.org>
19682
19683         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19684         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19685         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19686         va_list are defined.
19687         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19688         Reported by Eric Blake.
19689
19690 2010-01-07  Bruno Haible  <bruno@clisp.org>
19691
19692         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19693         * modules/xlist (Depends-on): Add 'list',
19694         * modules/xoset (Depends-on): Add 'oset'.
19695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19696
19697 2010-01-07  Bruno Haible  <bruno@clisp.org>
19698
19699         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19700         * doc/posix-functions/strncasecmp.texi: Likewise.
19701
19702 2010-01-07  Bruno Haible  <bruno@clisp.org>
19703
19704         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19705
19706 2010-01-07  John W. Eaton  <jwe@octave.org>
19707
19708         wctype: allow C++ use
19709         * lib/wctype.in.h: Add extern "C" block for C++.
19710
19711 2010-01-06  Eric Blake  <ebb9@byu.net>
19712
19713         maint.mk: detect incorrect GFDL usage
19714         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19715
19716 2010-01-06  Jim Meyering  <meyering@redhat.com>
19717         and Eric Blake  <ebb9@byu.net>
19718
19719         maint.mk: ignore multi-line copyright in NEWS
19720         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19721
19722 2010-01-06  Eric Blake  <ebb9@byu.net>
19723
19724         select: add missing dependency
19725         * modules/select-tests (Depends-on): Move sockets dependency...
19726         * modules/select (Depends-on): ...here.
19727         Reported by Ian Beckwith.
19728
19729         doc: regenerate INSTALL
19730         * doc/INSTALL: Reflect recent autoconf update.
19731         * doc/INSTALL.ISO: Likewise.
19732         * doc/INSTALL.UTF-8: Likewise.
19733
19734         pread: fix compilation on glibc
19735         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19736         Reported by Ralf Wildenhues.
19737
19738         dirent: fix test failure
19739         * lib/dirent.in.h (includes): Guarantee ino_t.
19740         Reported by Ralf Wildenhues.
19741
19742 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19743
19744         linkat, renameat: avoid bad free
19745         * lib/at-func2.c (at_func2): Fix typo.
19746         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19747
19748 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19749
19750         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19751         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19752         to avoid failure of symlink test later.
19753
19754 2010-01-06  Eric Blake  <ebb9@byu.net>
19755
19756         stdio, unistd: guarantee ssize_t
19757         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19758         2008 are exposed when needed.
19759         * lib/stdio.in.h (includes): Likewise.
19760         Reported by Ralf Wildenhues.
19761
19762 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19763
19764         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19765         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19766         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19767
19768 2010-01-06  Jim Meyering  <meyering@redhat.com>
19769
19770         readtokens: this module *does* require xalloc.h
19771         It uses only functions that were omitted by the old syntax-check rule.
19772         * lib/readtokens.c: Include "xalloc.h" once again.
19773         * modules/readtokens (Depends-on): Add xalloc.
19774         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19775
19776 2010-01-05  Eric Blake  <ebb9@byu.net>
19777
19778         maint: support 'make announcement' from a VPATH build
19779         * top/maint.mk (announcement): Look for correct NEWS file.
19780
19781 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19782
19783         utimens (fdutimens): ignore a negative FD, per contract
19784         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19785         when we have a valid file descriptor.  Otherwise, using a brand
19786         new glibc (with just-patched futimens that now fails with EBADF)
19787         would cause this function to fail with ENOSYS.
19788         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19789         See also http://bugzilla.redhat.com/552320.
19790
19791 2010-01-05  Eric Blake  <ebb9@byu.net>
19792
19793         strcase: document what it provides
19794         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19795         gnulib module.
19796         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19797         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19798
19799 2010-01-05  Jim Meyering  <meyering@redhat.com>
19800
19801         maint: remove useless inclusions of "xalloc.h"
19802         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19803         * lib/readtokens.c: Likewise.
19804         * lib/same.c: Likewise.
19805         * modules/getloadavg (Depends-on): Remove xalloc.
19806         * modules/readtokens: Likewise.
19807         * modules/same: Likewise.
19808
19809         maint.mk: include 4 more function names in alloca.h-checking regexp
19810         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19811         regexp.  Before, we would give a false-positive (saying alloca.h
19812         is included unnecessarily) when the only uses involved omitted symbols.
19813
19814         xalloc.h: use consistent formatting
19815         * lib/xalloc.h: Move declarations to start in the first column.
19816
19817 2010-01-05  Eric Blake  <ebb9@byu.net>
19818
19819         mkdir: avoid xalloc
19820         * lib/mkdir.c (includes): Drop unused header.
19821         Reported by John W. Eaton.
19822
19823 2010-01-04  Jim Meyering  <meyering@redhat.com>
19824
19825         nl_langinfo: avoid configure-time syntax error
19826         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19827         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19828         the empty string.  Don't let that provoke a shell syntax error.
19829
19830         regcomp, regexec, fnmatch: avoid array bounds read error
19831         * lib/regcomp.c (build_equiv_class): From glibc:
19832         Use only the low 24 bits of a findidx return value as an index
19833         into the weights array.  Patch by Ulrich Drepper:
19834         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19835         * lib/regexec.c (check_node_accept_bytes): Likewise.
19836         * lib/fnmatch_loop.c (FCT): Likewise.
19837
19838         regcomp: skip collseq lookup when there are no rules
19839         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19840         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19841
19842         regcomp: recognize ill-formed { } expressions
19843         * lib/regcomp.c (parse_dup_op): From glibc:
19844         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19845
19846         regcomp: fix typo in comment
19847         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19848         s/satisfy/satisfies/.
19849
19850         regcomp: sync from glibc: remove dead store
19851         * lib/regcomp.c (duplicate_node_closure): Remove useless
19852         search_duplicated_node call and dead store.
19853
19854         regcomp: sync from glibc; always use nl_langinfo
19855         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19856         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19857         * modules/regex (Depends-on): Add nl_langinfo.
19858
19859 2010-01-04  Eric Blake  <ebb9@byu.net>
19860
19861         fdopendir: fix configure test
19862         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19863
19864 2010-01-01  Bruno Haible  <bruno@clisp.org>
19865
19866         wchar: Remove unused configure check.
19867         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19868
19869 2010-01-01  Eric Blake  <ebb9@byu.net>
19870
19871         headers: make check of system header explicit
19872         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19873         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19874         ourselves.
19875         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19877         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19878         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19879         internals.
19880         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19881         missing.
19882         Suggested by Bruno Haible.
19883
19884 2010-01-01  Jim Meyering  <meyering@redhat.com>
19885
19886         ChangeLog: tweak to eliminate unnecessary copyright line
19887         * ChangeLog: Remove a copyright line that was mistakenly updated
19888         by today's update-copyright run.  Reported by Eric Blake.
19889
19890         test-update-copyright: don't let envvar setting cause test failure
19891         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19892
19893 2010-01-01  Bruno Haible  <bruno@clisp.org>
19894
19895         localename: Avoid gcc warning.
19896         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19897         function if it is not used.
19898
19899 2010-01-01  Jim Meyering  <meyering@redhat.com>
19900
19901         update nearly all FSF copyright year lists to include 2010
19902         Use the same procedure as for 2009, outlined in
19903         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19904
19905         version-etc: set COPYRIGHT_YEAR to 2010
19906         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19907
19908 2009-12-31  Eric Blake  <ebb9@byu.net>
19909
19910         doc: correct availability of cygwin 1.5.x getopt
19911         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19912         variables.
19913         * doc/posix-functions/opterr.texi (opterr): Likewise.
19914         * doc/posix-functions/optind.texi (optind): Likewise.
19915         * doc/posix-functions/optopt.texi (optopt): Likewise.
19916         * doc/posix-functions/tzname.texi (tzname): Likewise.
19917
19918         openat: update maintainer
19919         * modules/openat (Maintainer): Add myself.
19920
19921         utimens: avoid shadowing warning
19922         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19923         buffers into one, to avoid shadowing, as well as avoiding a
19924         redundant stat.
19925         Reported by Jim Meyering.
19926
19927         test-dup2: avoid compiler warning
19928         * tests/test-dup2.c (is_inheritable): Only define if used.
19929
19930 2010-01-01  Bruno Haible  <bruno@clisp.org>
19931
19932         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19933         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19934         defined, use wctomb instead of wcrtomb.
19935
19936 2010-01-01  Bruno Haible  <bruno@clisp.org>
19937
19938         iconv: Reject native Solaris iconv.
19939         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19940         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19941
19942 2009-12-31  Bruno Haible  <bruno@clisp.org>
19943
19944         * tests/test-signal.c (main): Remove test of 'SIG'.
19945
19946 2009-12-31  Bruno Haible  <bruno@clisp.org>
19947
19948         spawn: Fix incomplete fix.
19949         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19950         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19951         warnings for GNULIB_POSIXCHECK again.
19952         Reported by Eric Blake.
19953
19954 2009-12-31  Bruno Haible  <bruno@clisp.org>
19955
19956         Avoid namespace pollution on glibc systems.
19957         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19958         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19959         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19960         glibc systems.
19961
19962 2009-12-31  Bruno Haible  <bruno@clisp.org>
19963
19964         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19965         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19966         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19967         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19968         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19969         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19970         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19971
19972 2009-12-31  Bruno Haible  <bruno@clisp.org>
19973
19974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19975         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19976         afterwards.
19977
19978 2009-12-31  Bruno Haible  <bruno@clisp.org>
19979
19980         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19981         SYS_UTSNAME_H.
19982
19983 2009-12-31  Bruno Haible  <bruno@clisp.org>
19984
19985         spawn: Fix misapplied patch.
19986         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19987         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19988         warnings for GNULIB_POSIXCHECK.
19989
19990 2009-12-31  Bruno Haible  <bruno@clisp.org>
19991
19992         times: Update after sys_times changed.
19993         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19994         * modules/times (Files): Add it.
19995         (configure.ac): Invoke gl_FUNC_TIMES.
19996
19997 2009-12-31  Bruno Haible  <bruno@clisp.org>
19998
19999         Use AC_C_INLINE where necessary.
20000         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20001         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20003         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20004         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20005         * m4/mbiter.m4 (gl_MBITER): Likewise.
20006         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20007         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20008         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20009         * modules/u64 (configure.ac): Likewise.
20010
20011 2009-12-31  Bruno Haible  <bruno@clisp.org>
20012
20013         Use AC_C_INLINE instead of module 'inline' where possible.
20014         * modules/inline (Description): Clarify purpose.
20015         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20016         * modules/count-one-bits (Depends-on): Remove inline.
20017         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20018         * modules/openat (Depends-on): Remove inline.
20019         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20020         instead of depending on module 'inline'.
20021         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20022         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20023         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20024         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20025         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20026         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20027         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20028         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20029         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20030         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20031         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20032         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20033         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20034         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20035         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20036         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20037         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20038         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20039         Likewise.
20040         * modules/unictype/property-ascii-hex-digit (Depends-on,
20041         configure.ac): Likewise.
20042         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20043         configure.ac): Likewise.
20044         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20045         configure.ac): Likewise.
20046         * modules/unictype/property-bidi-block-separator (Depends-on,
20047         configure.ac): Likewise.
20048         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20049         configure.ac): Likewise.
20050         * modules/unictype/property-bidi-common-separator (Depends-on,
20051         configure.ac): Likewise.
20052         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20053         Likewise.
20054         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20055         configure.ac): Likewise.
20056         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20057         configure.ac): Likewise.
20058         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20059         configure.ac): Likewise.
20060         * modules/unictype/property-bidi-european-digit (Depends-on,
20061         configure.ac): Likewise.
20062         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20063         configure.ac): Likewise.
20064         * modules/unictype/property-bidi-left-to-right (Depends-on,
20065         configure.ac): Likewise.
20066         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20067         configure.ac): Likewise.
20068         * modules/unictype/property-bidi-other-neutral (Depends-on,
20069         configure.ac): Likewise.
20070         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20071         Likewise.
20072         * modules/unictype/property-bidi-segment-separator (Depends-on,
20073         configure.ac): Likewise.
20074         * modules/unictype/property-bidi-whitespace (Depends-on,
20075         configure.ac): Likewise.
20076         * modules/unictype/property-combining (Depends-on, configure.ac):
20077         Likewise.
20078         * modules/unictype/property-composite (Depends-on, configure.ac):
20079         Likewise.
20080         * modules/unictype/property-currency-symbol (Depends-on,
20081         configure.ac): Likewise.
20082         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20083         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20084         Likewise.
20085         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20086         configure.ac): Likewise.
20087         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20088         Likewise.
20089         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20090         Likewise.
20091         * modules/unictype/property-extender (Depends-on, configure.ac):
20092         Likewise.
20093         * modules/unictype/property-format-control (Depends-on, configure.ac):
20094         Likewise.
20095         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20096         Likewise.
20097         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20098         Likewise.
20099         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20100         Likewise.
20101         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20102         Likewise.
20103         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20104         Likewise.
20105         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20106         Likewise.
20107         * modules/unictype/property-id-start (Depends-on, configure.ac):
20108         Likewise.
20109         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20110         Likewise.
20111         * modules/unictype/property-ids-binary-operator (Depends-on,
20112         configure.ac): Likewise.
20113         * modules/unictype/property-ids-trinary-operator (Depends-on,
20114         configure.ac): Likewise.
20115         * modules/unictype/property-ignorable-control (Depends-on,
20116         configure.ac): Likewise.
20117         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20118         Likewise.
20119         * modules/unictype/property-join-control (Depends-on, configure.ac):
20120         Likewise.
20121         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20122         Likewise.
20123         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20124         Likewise.
20125         * modules/unictype/property-logical-order-exception (Depends-on,
20126         configure.ac): Likewise.
20127         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20128         Likewise.
20129         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20130         * modules/unictype/property-non-break (Depends-on, configure.ac):
20131         Likewise.
20132         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20133         Likewise.
20134         * modules/unictype/property-numeric (Depends-on, configure.ac):
20135         Likewise.
20136         * modules/unictype/property-other-alphabetic (Depends-on,
20137         configure.ac): Likewise.
20138         * modules/unictype/property-other-default-ignorable-code-point
20139         (Depends-on, configure.ac): Likewise.
20140         * modules/unictype/property-other-grapheme-extend (Depends-on,
20141         configure.ac): Likewise.
20142         * modules/unictype/property-other-id-continue (Depends-on,
20143         configure.ac): Likewise.
20144         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20145         Likewise.
20146         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20147         Likewise.
20148         * modules/unictype/property-other-math (Depends-on, configure.ac):
20149         Likewise.
20150         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20151         Likewise.
20152         * modules/unictype/property-paired-punctuation (Depends-on,
20153         configure.ac): Likewise.
20154         * modules/unictype/property-paragraph-separator (Depends-on,
20155         configure.ac): Likewise.
20156         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20157         Likewise.
20158         * modules/unictype/property-pattern-white-space (Depends-on,
20159         configure.ac): Likewise.
20160         * modules/unictype/property-private-use (Depends-on, configure.ac):
20161         Likewise.
20162         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20163         Likewise.
20164         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20165         Likewise.
20166         * modules/unictype/property-radical (Depends-on, configure.ac):
20167         Likewise.
20168         * modules/unictype/property-sentence-terminal (Depends-on,
20169         configure.ac): Likewise.
20170         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20171         Likewise.
20172         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20173         * modules/unictype/property-terminal-punctuation (Depends-on,
20174         configure.ac): Likewise.
20175         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20176         Likewise.
20177         * modules/unictype/property-unassigned-code-value (Depends-on,
20178         configure.ac): Likewise.
20179         * modules/unictype/property-unified-ideograph (Depends-on,
20180         configure.ac): Likewise.
20181         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20182         Likewise.
20183         * modules/unictype/property-variation-selector (Depends-on,
20184         configure.ac): Likewise.
20185         * modules/unictype/property-white-space (Depends-on, configure.ac):
20186         Likewise.
20187         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20188         Likewise.
20189         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20190         Likewise.
20191         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20192         Likewise.
20193         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20194         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20195         Likewise.
20196
20197 2009-12-31  Bruno Haible  <bruno@clisp.org>
20198
20199         Remove unnecessary AC_C_INLINE invocation.
20200         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20201         since 2009-08-21.
20202
20203 2009-12-31  Jim Meyering  <meyering@redhat.com>
20204
20205         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20206         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20207         With this change, we can all remove the gpg_key_ID = ... definition
20208         from our respective cfg.mk files.
20209
20210         maint.mk: create announcement template in ~/, not in /tmp
20211         * top/maint.mk (emit_upload_commands): Adjust.
20212         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20213         Remove temporary file, .ci-msg.
20214
20215 2009-12-31  Eric Blake  <ebb9@byu.net>
20216
20217         link-warning: always build headers with link warnings
20218         * modules/arpa_inet (Makefile.am): Always build replacement
20219         header.
20220         * modules/ctype (Makefile.am): Likewise.
20221         * modules/dirent (Makefile.am): Likewise.
20222         * modules/inttypes (Makefile.am): Likewise.
20223         * modules/langinfo (Makefile.am): Likewise.
20224         * modules/locale (Makefile.am): Likewise.
20225         * modules/spawn (Makefile.am): Likewise.
20226         * modules/sys_file (Makefile.am): Likewise.
20227         * modules/sys_ioctl (Makefile.am): Likewise.
20228         * modules/sys_select (Makefile.am): Likewise.
20229         * modules/sys_socket (Makefile.am): Likewise.
20230         * modules/sys_times (Makefile.am): Likewise.
20231         * modules/sys_utsname (Makefile.am): Likewise.
20232         * modules/sys_wait (Makefile.am): Likewise.
20233         * modules/wchar (Makefile.am): Likewise.
20234         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20235         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20236         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20237         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20238         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20239         Likewise.
20240         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20241         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20242         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20243         Likewise.
20244         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20245         Likewise.
20246         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20247         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20248         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20250         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20251         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20252         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20253         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20254         (gl_WCHAR_H_DEFAULTS): Likewise.
20255
20256 2009-12-31  Eric Blake  <ebb9@byu.net>
20257
20258         signal, spawn: use link warnings
20259         * lib/signal.in.h (sigset_t): Make unconditional.
20260         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20261         (sigpending, sigprocmask, sigaction): Add link warnings.
20262         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20263         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20264         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20265         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20266         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20267         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20268         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20269         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20270         (posix_spawn_file_actions_destroy)
20271         (posix_spawn_file_actions_addopen)
20272         (posix_spawn_file_actions_addclose)
20273         (posix_spawn_file_actions_adddup2): Likewise.
20274         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20275         * tests/test-signal.c (main): Enhance test.
20276
20277         spawn: improve wrapper support
20278         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20279         (gl_SPAWN_H_DEFAULTS): New defaults.
20280         * modules/spawn (Makefile.am): Substitute them.
20281         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20282         Only declare if missing or broken.
20283
20284         sys_times, sys_utsname: use include_next
20285         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20286         header.
20287         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20288         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20289         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20290         * modules/sys_times (Depends-on): Add include_next.
20291         (Makefile.am): Substitute additional values.
20292         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20293         * lib/sys_times.in.h (includes): Include native header, if
20294         available.
20295         * lib/sys_utsname.in.h (includes): Likewise.
20296         * tests/test-sys_times.c (main): Enhance test.
20297
20298         fdutimensat: revert prior patch
20299         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20300         utimens.h.
20301         Reported by Bruno Haible.
20302
20303 2009-12-30  Eric Blake  <ebb9@byu.net>
20304
20305         sys_wait: drop link-warning dependency
20306         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20307         link-warning efforts.
20308         * lib/sys_wait.in.h: Likewise.
20309
20310         fdutimensat: remove bogus dependency
20311         * modules/fdutimensat (Depends-on): Drop inline.
20312
20313         unistd: fix typo
20314         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20315
20316 2009-12-30  Bruno Haible  <bruno@clisp.org>
20317
20318         Fix compilation error with Solaris cc.
20319         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20320         * lib/unicase/u16-is-invariant.c: Likewise.
20321         * lib/unicase/u32-is-invariant.c: Likewise.
20322         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20323
20324 2009-12-30  Bruno Haible  <bruno@clisp.org>
20325
20326         Fix test crash.
20327         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20328         locales.
20329         Reported by Simon Josefsson <simon@josefsson.org>.
20330
20331 2009-12-30  Bruno Haible  <bruno@clisp.org>
20332
20333         Fix compilation error on most platforms.
20334         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20335         Reported by Simon Josefsson <simon@josefsson.org>
20336         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20337
20338 2009-12-30  Eric Blake  <ebb9@byu.net>
20339
20340         futimens, utimensat: work around ntfs-3g bug
20341         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20342         a ctime bug is present, and expand workaround to cover ntfs-3g.
20343         * lib/utimens.c (fdutimens, lutimens): Likewise.
20344         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20345         (validate_timespec): Adjust return value.
20346         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20347         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20348         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20349
20350 2009-12-29  Eric Blake  <ebb9@byu.net>
20351
20352         link-warning: make usage consistent
20353         * modules/ctype (Depends-on): Add link-warning.
20354         (Makefile.am): Update rules accordingly.
20355         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20356         * modules/locale (Depends-on, Makefile.am): Likewise.
20357         * modules/sys_file (Makefile.am): Likewise.
20358         * modules/getopt-posix (Makefile.am): Delete unused link warning
20359         efforts.
20360         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20361         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20362         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20363         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20364
20365         stdio: remove unused variables
20366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20367         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20368         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20369
20370         tests: test more substitute headers
20371         * modules/ctype-tests: New file.
20372         * modules/dirent-tests: Likewise.
20373         * modules/spawn-tests: Likewise.
20374         * modules/sys_file-tests: Likewise.
20375         * modules/sys_ioctl-tests: Likewise.
20376         * modules/sys_wait-tests: Likewise.
20377         * tests/test-ctype.c: Likewise.
20378         * tests/test-dirent.c: Likewise.
20379         * tests/test-spawn.c: Likewise.
20380         * tests/test-sys_file.c: Likewise.
20381         * tests/test-sys_ioctl.c: Likewise.
20382         * tests/test-sys_wait.c: Likewise.
20383         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20384         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20385         whether or not flock is in use.
20386
20387         tests: remove License section from module
20388         * modules/arpa_inet-tests: Remove unneeded section.
20389         * modules/byteswap-tests: Likewise.
20390         * modules/ceilf-tests: Likewise.
20391         * modules/ceill-tests: Likewise.
20392         * modules/crypto/des-tests: Likewise.
20393         * modules/crypto/gc-arcfour-tests: Likewise.
20394         * modules/crypto/gc-arctwo-tests: Likewise.
20395         * modules/crypto/gc-des-tests: Likewise.
20396         * modules/crypto/gc-hmac-md5-tests: Likewise.
20397         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20398         * modules/crypto/gc-md2-tests: Likewise.
20399         * modules/crypto/gc-md4-tests: Likewise.
20400         * modules/crypto/gc-md5-tests: Likewise.
20401         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20402         * modules/crypto/gc-rijndael-tests: Likewise.
20403         * modules/crypto/gc-sha1-tests: Likewise.
20404         * modules/crypto/gc-tests: Likewise.
20405         * modules/crypto/md2-tests: Likewise.
20406         * modules/crypto/md4-tests: Likewise.
20407         * modules/fcntl-h-tests: Likewise.
20408         * modules/floorf-tests: Likewise.
20409         * modules/floorl-tests: Likewise.
20410         * modules/frexp-nolibm-tests: Likewise.
20411         * modules/frexp-tests: Likewise.
20412         * modules/frexpl-nolibm-tests: Likewise.
20413         * modules/frexpl-tests: Likewise.
20414         * modules/getaddrinfo-tests: Likewise.
20415         * modules/inttypes-tests: Likewise.
20416         * modules/isfinite-tests: Likewise.
20417         * modules/isinf-tests: Likewise.
20418         * modules/ldexpl-tests: Likewise.
20419         * modules/locale-tests: Likewise.
20420         * modules/math-tests: Likewise.
20421         * modules/netdb-tests: Likewise.
20422         * modules/netinet_in-tests: Likewise.
20423         * modules/printf-frexp-tests: Likewise.
20424         * modules/printf-frexpl-tests: Likewise.
20425         * modules/priv-set-tests: Likewise.
20426         * modules/random_r-tests: Likewise.
20427         * modules/round-tests: Likewise.
20428         * modules/roundf-tests: Likewise.
20429         * modules/roundl-tests: Likewise.
20430         * modules/search-tests: Likewise.
20431         * modules/select-tests: Likewise.
20432         * modules/signal-tests: Likewise.
20433         * modules/stdbool-tests: Likewise.
20434         * modules/stddef-tests: Likewise.
20435         * modules/stdint-tests: Likewise.
20436         * modules/stdio-tests: Likewise.
20437         * modules/stdlib-tests: Likewise.
20438         * modules/string-tests: Likewise.
20439         * modules/strings-tests: Likewise.
20440         * modules/sys_select-tests: Likewise.
20441         * modules/sys_socket-tests: Likewise.
20442         * modules/sys_stat-tests: Likewise.
20443         * modules/sys_time-tests: Likewise.
20444         * modules/sys_utsname-tests: Likewise.
20445         * modules/sysexits-tests: Likewise.
20446         * modules/time-tests: Likewise.
20447         * modules/trunc-tests: Likewise.
20448         * modules/truncf-tests: Likewise.
20449         * modules/truncl-tests: Likewise.
20450         * modules/tsearch-tests: Likewise.
20451         * modules/unistd-tests: Likewise.
20452         * modules/wchar-tests: Likewise.
20453         * modules/wctype-tests: Likewise.
20454
20455         tests: fix license on several tests
20456         * tests/test-des.c: Update to GPLv3+.
20457         * tests/test-flock.c: Likewise.
20458         * tests/test-fsync.c: Likewise.
20459         * tests/test-futimens.h: Likewise.
20460         * tests/test-gc-arcfour.c: Likewise.
20461         * tests/test-gc-arctwo.c: Likewise.
20462         * tests/test-gc-des.c: Likewise.
20463         * tests/test-gc-hmac-md5.c: Likewise.
20464         * tests/test-gc-hmac-sha1.c: Likewise.
20465         * tests/test-gc-md2.c: Likewise.
20466         * tests/test-gc-md4.c: Likewise.
20467         * tests/test-gc-md5.c: Likewise.
20468         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20469         * tests/test-gc-rijndael.c: Likewise.
20470         * tests/test-gc-sha1.c: Likewise.
20471         * tests/test-gc.c: Likewise.
20472         * tests/test-getcwd.c: Likewise.
20473         * tests/test-link.c: Likewise.
20474         * tests/test-link.h: Likewise.
20475         * tests/test-lutimens.h: Likewise.
20476         * tests/test-md2.c: Likewise.
20477         * tests/test-md4.c: Likewise.
20478         * tests/test-mkdir.h: Likewise.
20479         * tests/test-rename.c: Likewise.
20480         * tests/test-rename.h: Likewise.
20481         * tests/test-safe-alloc.c: Likewise.
20482         * tests/test-utimens-common.h: Likewise.
20483         * tests/test-utimens.h: Likewise.
20484
20485         maint: sync license texts
20486         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20487         * doc/gpl-3.0.texi: Revert copyright year update.
20488         * doc/lgpl-3.0.texi: Likewise.
20489
20490 2009-12-29  Jim Meyering  <meyering@redhat.com>
20491
20492         update nearly all FSF copyright year lists to include 2009
20493         The files named by the following are exempted:
20494             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20495               test -f "$dst" && { echo "$dst"; continue; }
20496               test -d "$dst" || continue
20497               echo "$dst"/$(basename "$src")
20498             done > exempt
20499             git ls-files tests/unictype >> exempt
20500         In the remaining files, convert to all-interval notation if
20501         - there is already at least one year interval like 2000-2003
20502         - the file is maintained by me
20503         - the file is in lib/uni*/, where that style already prevails
20504         Otherwise, use update-copyright's default.
20505
20506 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20507         and Eric Blake  <ebb9@byu.net>
20508
20509         tests: don't require debug system() to pass
20510         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20511         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20512         * tests/test-unlink.h (test_unlink_func): Likewise.
20513         * tests/test-fstatat.c (main): ...into callers.
20514         * tests/test-lstat.c (main): Likewise.
20515         * tests/test-rmdir.c (main): Likewise.
20516         * tests/test-unlink.c (main): Likewise.
20517         * tests/test-unlinkat.c (main): Likewise.
20518         * tests/test-areadlink-with-size.c (main): Don't require a
20519         debug-only system call to pass, aiding cross-testing to mingw.
20520         * tests/test-areadlink.c (main): Likewise.
20521         * tests/test-areadlinkat-with-size.c (main): Likewise.
20522         * tests/test-areadlinkat.c (main): Likewise.
20523         * tests/test-canonicalize-lgpl.c (main): Likewise.
20524         * tests/test-canonicalize.c (main): Likewise.
20525         * tests/test-chown.c (main): Likewise.
20526         * tests/test-fchownat.c (main): Likewise.
20527         * tests/test-lchown.c (main): Likewise.
20528         * tests/test-fdutimensat.c (main): Likewise.
20529         * tests/test-futimens.c (main): Likewise.
20530         * tests/test-link.c (main): Likewise.
20531         * tests/test-linkat.c (main): Likewise.
20532         * tests/test-mkdir.c (main): Likewise.
20533         * tests/test-mkdirat.c (main): Likewise.
20534         * tests/test-mkfifo.c (main): Likewise.
20535         * tests/test-mkfifoat.c (main): Likewise.
20536         * tests/test-mknod.c (main): Likewise.
20537         * tests/test-readlink.c (main): Likewise.
20538         * tests/test-remove.c (main): Likewise.
20539         * tests/test-rename.c (main): Likewise.
20540         * tests/test-renameat.c (main): Likewise.
20541         * tests/test-symlink.c (main): Likewise.
20542         * tests/test-symlinkat.c (main): Likewise.
20543         * tests/test-utimens.c (main): Likewise.
20544         * tests/test-utimensat.c (main): Likewise.
20545
20546 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20547
20548         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20549         on $(UNUSED_PARAMETER_H) to avoid build failure.
20550
20551 2009-12-28  Jim Meyering  <meyering@redhat.com>
20552
20553         update-copyright: you may specify a max. line length other than 72
20554         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20555
20556         maint: use consistent FSF copyright line syntax
20557         * lib/posixtm.c: Add missing comma in FSF copyright line.
20558         * lib/posixtm.h: Likewise.
20559         * lib/getugroups.c: Add missing ", Inc.".
20560
20561         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20562         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20563         FSF copyright line.  Remove trailing blanks.
20564
20565 2009-12-28  Eric Blake  <ebb9@byu.net>
20566
20567         test-dup2: reduce dependencies
20568         * modules/cloexec (Configure.ac): Set witness.
20569         * modules/dup2-tests (Depends-on): Drop cloexec.
20570         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20571         not present.
20572         Suggested by Bruno Haible.
20573
20574 2009-12-26  Bruno Haible  <bruno@clisp.org>
20575
20576         Remove an unneeded dependency.
20577         * modules/fseterr (Depends-on): Remove dup2.
20578
20579 2009-12-26  Eric Blake  <ebb9@byu.net>
20580
20581         tests: use macros.h in more places
20582         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20583         (ASSERT_STREAM): Provide default of stderr.
20584         * tests/test-dirent-safer.c: Include macros.h, using alternate
20585         stream for assertions.
20586         * tests/test-dup-safer.c: Likewise.
20587         * tests/test-freopen-safer.c: Likewise.
20588         * tests/test-getopt.c: Likewise.
20589         * tests/test-openat-safer.c: Likewise.
20590         * tests/test-pipe.c: Likewise.
20591         * tests/test-popen-safer.c: Likewise.
20592         * modules/dirent-safer-tests (Files): Include macros.h.
20593         * modules/unistd-safer-tests (Files): Likewise.
20594         * modules/freopen-safer-tests (Files): Likewise.
20595         * modules/getopt-posix-tests (Files): Likewise.
20596         * modules/openat-safer-tests (Files): Likewise.
20597         * modules/pipe-tests (Files): Likewise.
20598
20599 2009-12-26  Bruno Haible  <bruno@clisp.org>
20600
20601         javacomp: Portability fix.
20602         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20603         that it also works on Solaris.
20604
20605 2009-12-26  Bruno Haible  <bruno@clisp.org>
20606
20607         localename: Fix storage allocation of gl_locale_name_thread's result.
20608         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20609         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20610         all platforms that have 'uselocale'.
20611         (gl_locale_name_thread_unsafe): New function, extracted from
20612         gl_locale_name_thread.
20613         (gl_locale_name_thread): Call struniq on all platforms that have
20614         'uselocale'.
20615         * tests/test-localename.c (test_locale_name_thread): Check that the
20616         resulting strings are permanently allocated.
20617         * modules/localename-tests (Depends-on): Add strdup.
20618
20619 2009-12-26  Bruno Haible  <bruno@clisp.org>
20620
20621         * tests/test-localename.c (categories): Fill in the strings.
20622
20623 2009-12-26  Jim Meyering  <meyering@redhat.com>
20624
20625         isdir: complete the removal of m4/isdir.m4
20626         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20627
20628         isdir: clean up, since at least grep still uses it
20629         * lib/isdir.c: Include "isdir.h".
20630         (S_ISDIR): Remove now-unneeded definition.
20631         * modules/isdir (Files): Add lib/isdir.h.
20632         * lib/isdir.h: New file, with declaration.
20633         * m4/isdir.m4: Remove file -- unneeded.
20634
20635 2009-12-25  Bruno Haible  <bruno@clisp.org>
20636
20637         selinux-h: Make generated .h files standalone.
20638         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20639         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20640         * lib/se-selinux.in.h: Likewise.
20641         * modules/selinux-h (Depends-on): Add unused-parameter.
20642         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20643         selinux/selinux.h and selinux/context.h.
20644         Suggested by Eric Blake.
20645
20646 2009-12-25  Bruno Haible  <bruno@clisp.org>
20647
20648         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20649         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20650         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20651         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20652         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20653
20654 2009-12-24  Bruno Haible  <bruno@clisp.org>
20655
20656         openat: Fix warning.
20657         * lib/openat-proc.c: Include <unistd.h>.
20658
20659 2009-12-24  Bruno Haible  <bruno@clisp.org>
20660
20661         New module 'unused-parameter'.
20662         * build-aux/unused-parameter.h: New file, extracted from earlier
20663         gnulib-common.m4.
20664         * modules/unused-parameter: New file.
20665         * lib/unistr.h: Include unused-parameter.h.
20666         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20667         _GL_UNUSED.
20668         * modules/unistr/base (Depends-on): Add unused-parameter.
20669
20670 2009-12-24  Bruno Haible  <bruno@clisp.org>
20671
20672         Add missing dependencies to 'extensions' module.
20673         * m4/extensions.m4: Add comment.
20674         * modules/accept4 (Depends-on): Add extensions.
20675         * modules/dup3 (Depends-on): Likewise.
20676         * modules/fcntl (Depends-on): Likewise.
20677         * modules/futimens (Depends-on): Likewise.
20678         * modules/mknod (Depends-on): Likewise.
20679         * modules/pipe2 (Depends-on): Likewise.
20680         * modules/stat-time (Depends-on): Likewise.
20681         * modules/strcasestr-simple (Depends-on): Likewise.
20682         * modules/strsignal (Depends-on): Likewise.
20683         * modules/utimensat (Depends-on): Likewise.
20684         * modules/localcharset (Depends-on): Likewise. Needed because of
20685         gl_FCNTL_O_FLAGS.
20686         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20687         AC_TYPE_MBSTATE_T.
20688         * modules/wcsnrtombs (Depends-on): Likewise.
20689         * modules/wcsrtombs (Depends-on): Likewise.
20690
20691 2009-12-24  Bruno Haible  <bruno@clisp.org>
20692
20693         binary-io: Avoid gcc warning due to SET_BINARY.
20694         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20695         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20696
20697 2009-12-24  Bruno Haible  <bruno@clisp.org>
20698
20699         Avoid future namespace pollution on glibc systems.
20700         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20701         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20702         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20703         glibc systems.
20704
20705 2009-12-24  Bruno Haible  <bruno@clisp.org>
20706
20707         Refactor common macros used in tests.
20708         * tests/macros.h: New file.
20709         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20710         and/or <stdlib.h>, if appropriate.
20711         (ASSERT, SIZEOF): Remove macros.
20712         * tests/test-areadlink-with-size.c: Likewise.
20713         * tests/test-areadlinkat.c: Likewise.
20714         * tests/test-areadlinkat-with-size.c: Likewise.
20715         * tests/test-argmatch.c: Likewise.
20716         * tests/test-argv-iter.c: Likewise.
20717         * tests/test-array-mergesort.c: Likewise.
20718         * tests/test-array_list.c: Likewise.
20719         * tests/test-array_oset.c: Likewise.
20720         * tests/test-avltree_list.c: Likewise.
20721         * tests/test-avltree_oset.c: Likewise.
20722         * tests/test-avltreehash_list.c: Likewise.
20723         * tests/test-base64.c: Likewise.
20724         * tests/test-binary-io.c: Likewise.
20725         * tests/test-bitrotate.c: Likewise.
20726         * tests/test-btowc.c: Likewise.
20727         * tests/test-byteswap.c: Likewise.
20728         * tests/test-c-ctype.c: Likewise.
20729         * tests/test-c-stack.c: Likewise.
20730         * tests/test-c-strcasecmp.c: Likewise.
20731         * tests/test-c-strcasestr.c: Likewise.
20732         * tests/test-c-strncasecmp.c: Likewise.
20733         * tests/test-c-strstr.c: Likewise.
20734         * tests/test-canonicalize-lgpl.c: Likewise.
20735         * tests/test-canonicalize.c: Likewise.
20736         * tests/test-carray_list.c: Likewise.
20737         * tests/test-ceilf1.c: Likewise.
20738         * tests/test-ceilf2.c: Likewise.
20739         * tests/test-ceill.c: Likewise.
20740         * tests/test-chown.c: Likewise.
20741         * tests/test-cloexec.c: Likewise.
20742         * tests/test-copy-acl.c: Likewise.
20743         * tests/test-copy-file.c: Likewise.
20744         * tests/test-count-one-bits.c: Likewise.
20745         * tests/test-dprintf-posix.c: Likewise.
20746         * tests/test-dup2.c: Likewise.
20747         * tests/test-dup3.c: Likewise.
20748         * tests/test-duplocale.c: Likewise.
20749         * tests/test-fbufmode.c: Likewise.
20750         * tests/test-fchdir.c: Likewise.
20751         * tests/test-fchownat.c: Likewise.
20752         * tests/test-fcntl-safer.c: Likewise.
20753         * tests/test-fcntl.c: Likewise.
20754         * tests/test-fdopendir.c: Likewise.
20755         * tests/test-fdutimensat.c: Likewise.
20756         * tests/test-fflush2.c: Likewise.
20757         * tests/test-file-has-acl.c: Likewise.
20758         * tests/test-filevercmp.c: Likewise.
20759         * tests/test-flock.c: Likewise.
20760         * tests/test-floorf1.c: Likewise.
20761         * tests/test-floorf2.c: Likewise.
20762         * tests/test-floorl.c: Likewise.
20763         * tests/test-fnmatch.c: Likewise.
20764         * tests/test-fopen.h: Likewise.
20765         * tests/test-fpending.c: Likewise.
20766         * tests/test-fprintf-posix.c: Likewise.
20767         * tests/test-fpurge.c: Likewise.
20768         * tests/test-freadable.c: Likewise.
20769         * tests/test-freadahead.c: Likewise.
20770         * tests/test-freading.c: Likewise.
20771         * tests/test-freadptr.c: Likewise.
20772         * tests/test-freadptr2.c: Likewise.
20773         * tests/test-freadseek.c: Likewise.
20774         * tests/test-freopen.c: Likewise.
20775         * tests/test-frexp.c: Likewise.
20776         * tests/test-frexpl.c: Likewise.
20777         * tests/test-fseek.c: Likewise.
20778         * tests/test-fseeko.c: Likewise.
20779         * tests/test-fstatat.c: Likewise.
20780         * tests/test-fstrcmp.c: Likewise.
20781         * tests/test-fsync.c: Likewise.
20782         * tests/test-ftell.c: Likewise.
20783         * tests/test-ftello.c: Likewise.
20784         * tests/test-func.c: Likewise.
20785         * tests/test-futimens.c: Likewise.
20786         * tests/test-fwritable.c: Likewise.
20787         * tests/test-fwriting.c: Likewise.
20788         * tests/test-getcwd.c: Likewise.
20789         * tests/test-getdate.c: Likewise.
20790         * tests/test-getdelim.c: Likewise.
20791         * tests/test-getdtablesize.c: Likewise.
20792         * tests/test-getgroups.c: Likewise.
20793         * tests/test-getline.c: Likewise.
20794         * tests/test-getndelim2.c: Likewise.
20795         * tests/test-glob.c: Likewise.
20796         * tests/test-hash.c: Likewise.
20797         * tests/test-i-ring.c: Likewise.
20798         * tests/test-iconv-utf.c: Likewise.
20799         * tests/test-iconv.c: Likewise.
20800         * tests/test-idpriv-drop.c: Likewise.
20801         * tests/test-idpriv-droptemp.c: Likewise.
20802         * tests/test-inet_ntop.c: Likewise.
20803         * tests/test-inet_pton.c: Likewise.
20804         * tests/test-isblank.c: Likewise.
20805         * tests/test-isfinite.c: Likewise.
20806         * tests/test-isinf.c: Likewise.
20807         * tests/test-isnan.c: Likewise.
20808         * tests/test-isnand.h: Likewise.
20809         * tests/test-isnanf.h: Likewise.
20810         * tests/test-isnanl.h: Likewise.
20811         * tests/test-lchown.c: Likewise.
20812         * tests/test-ldexpl.c: Likewise.
20813         * tests/test-link.c: Likewise.
20814         * tests/test-linkat.c: Likewise.
20815         * tests/test-linked_list.c: Likewise.
20816         * tests/test-linkedhash_list.c: Likewise.
20817         * tests/test-localename.c: Likewise.
20818         * tests/test-lseek.c: Likewise.
20819         * tests/test-lstat.c: Likewise.
20820         * tests/test-mbmemcasecmp.c: Likewise.
20821         * tests/test-mbmemcasecoll.c: Likewise.
20822         * tests/test-mbrtowc.c: Likewise.
20823         * tests/test-mbscasecmp.c: Likewise.
20824         * tests/test-mbscasestr1.c: Likewise.
20825         * tests/test-mbscasestr2.c: Likewise.
20826         * tests/test-mbscasestr3.c: Likewise.
20827         * tests/test-mbscasestr4.c: Likewise.
20828         * tests/test-mbschr.c: Likewise.
20829         * tests/test-mbscspn.c: Likewise.
20830         * tests/test-mbsinit.c: Likewise.
20831         * tests/test-mbsncasecmp.c: Likewise.
20832         * tests/test-mbsnrtowcs.c: Likewise.
20833         * tests/test-mbspbrk.c: Likewise.
20834         * tests/test-mbspcasecmp.c: Likewise.
20835         * tests/test-mbsrchr.c: Likewise.
20836         * tests/test-mbsrtowcs.c: Likewise.
20837         * tests/test-mbsspn.c: Likewise.
20838         * tests/test-mbsstr1.c: Likewise.
20839         * tests/test-mbsstr2.c: Likewise.
20840         * tests/test-mbsstr3.c: Likewise.
20841         * tests/test-memchr.c: Likewise.
20842         * tests/test-memchr2.c: Likewise.
20843         * tests/test-memcmp.c: Likewise.
20844         * tests/test-memmem.c: Likewise.
20845         * tests/test-memrchr.c: Likewise.
20846         * tests/test-mkdir.c: Likewise.
20847         * tests/test-mkdirat.c: Likewise.
20848         * tests/test-mkfifo.c: Likewise.
20849         * tests/test-mkfifoat.c: Likewise.
20850         * tests/test-mknod.c: Likewise.
20851         * tests/test-nanosleep.c: Likewise.
20852         * tests/test-nl_langinfo.c: Likewise.
20853         * tests/test-obstack-printf.c: Likewise.
20854         * tests/test-open.c: Likewise.
20855         * tests/test-openat.c: Likewise.
20856         * tests/test-pipe-filter-gi1.c: Likewise.
20857         * tests/test-pipe-filter-gi2-main.c: Likewise.
20858         * tests/test-pipe-filter-ii1.c: Likewise.
20859         * tests/test-pipe-filter-ii2-main.c: Likewise.
20860         * tests/test-pipe2.c: Likewise.
20861         * tests/test-popen.h: Likewise.
20862         * tests/test-posixtm.c: Likewise.
20863         * tests/test-pread.c: Likewise.
20864         * tests/test-printf-frexp.c: Likewise.
20865         * tests/test-printf-frexpl.c: Likewise.
20866         * tests/test-printf-posix.c: Likewise.
20867         * tests/test-priv-set.c: Likewise.
20868         * tests/test-quotearg.c: Likewise.
20869         * tests/test-random_r.c: Likewise.
20870         * tests/test-rawmemchr.c: Likewise.
20871         * tests/test-rbtree_list.c: Likewise.
20872         * tests/test-rbtree_oset.c: Likewise.
20873         * tests/test-rbtreehash_list.c: Likewise.
20874         * tests/test-readlink.c: Likewise.
20875         * tests/test-remove.c: Likewise.
20876         * tests/test-rename.c: Likewise.
20877         * tests/test-renameat.c: Likewise.
20878         * tests/test-rmdir.c: Likewise.
20879         * tests/test-round1.c: Likewise.
20880         * tests/test-roundf1.c: Likewise.
20881         * tests/test-roundl.c: Likewise.
20882         * tests/test-safe-alloc.c: Likewise.
20883         * tests/test-sameacls.c: Likewise.
20884         * tests/test-set-mode-acl.c: Likewise.
20885         * tests/test-setenv.c: Likewise.
20886         * tests/test-sigaction.c: Likewise.
20887         * tests/test-signbit.c: Likewise.
20888         * tests/test-sleep.c: Likewise.
20889         * tests/test-snprintf-posix.c: Likewise.
20890         * tests/test-snprintf.c: Likewise.
20891         * tests/test-sprintf-posix.c: Likewise.
20892         * tests/test-stat-time.c: Likewise.
20893         * tests/test-stat.c: Likewise.
20894         * tests/test-strcasestr.c: Likewise.
20895         * tests/test-strchrnul.c: Likewise.
20896         * tests/test-strerror.c: Likewise.
20897         * tests/test-striconv.c: Likewise.
20898         * tests/test-striconveh.c: Likewise.
20899         * tests/test-striconveha.c: Likewise.
20900         * tests/test-strsignal.c: Likewise.
20901         * tests/test-strstr.c: Likewise.
20902         * tests/test-strtod.c: Likewise.
20903         * tests/test-strverscmp.c: Likewise.
20904         * tests/test-symlink.c: Likewise.
20905         * tests/test-symlinkat.c: Likewise.
20906         * tests/test-trunc1.c: Likewise.
20907         * tests/test-trunc2.c: Likewise.
20908         * tests/test-truncf1.c: Likewise.
20909         * tests/test-truncf2.c: Likewise.
20910         * tests/test-truncl.c: Likewise.
20911         * tests/test-uname.c: Likewise.
20912         * tests/test-unlink.c: Likewise.
20913         * tests/test-unlinkat.c: Likewise.
20914         * tests/test-unsetenv.c: Likewise.
20915         * tests/test-usleep.c: Likewise.
20916         * tests/test-utimens.c: Likewise.
20917         * tests/test-utimensat.c: Likewise.
20918         * tests/test-vasnprintf-posix.c: Likewise.
20919         * tests/test-vasnprintf-posix2.c: Likewise.
20920         * tests/test-vasnprintf.c: Likewise.
20921         * tests/test-vasprintf-posix.c: Likewise.
20922         * tests/test-vasprintf.c: Likewise.
20923         * tests/test-vdprintf-posix.c: Likewise.
20924         * tests/test-vfprintf-posix.c: Likewise.
20925         * tests/test-vprintf-posix.c: Likewise.
20926         * tests/test-vsnprintf-posix.c: Likewise.
20927         * tests/test-vsnprintf.c: Likewise.
20928         * tests/test-vsprintf-posix.c: Likewise.
20929         * tests/test-wcrtomb.c: Likewise.
20930         * tests/test-wcsnrtombs.c: Likewise.
20931         * tests/test-wcsrtombs.c: Likewise.
20932         * tests/test-wctype.c: Likewise.
20933         * tests/test-wcwidth.c: Likewise.
20934         * tests/test-xfprintf-posix.c: Likewise.
20935         * tests/test-xmemdup0.c: Likewise.
20936         * tests/test-xprintf-posix.c: Likewise.
20937         * tests/test-xvasprintf.c: Likewise.
20938         * tests/unicase/test-locale-language.c: Likewise.
20939         * tests/unicase/test-mapping-part1.h: Likewise.
20940         * tests/unicase/test-predicate-part1.h: Likewise.
20941         * tests/unicase/test-u8-casecmp.c: Likewise.
20942         * tests/unicase/test-u8-casecoll.c: Likewise.
20943         * tests/unicase/test-u8-casefold.c: Likewise.
20944         * tests/unicase/test-u8-is-cased.c: Likewise.
20945         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20946         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20947         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20948         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20949         * tests/unicase/test-u8-tolower.c: Likewise.
20950         * tests/unicase/test-u8-totitle.c: Likewise.
20951         * tests/unicase/test-u8-toupper.c: Likewise.
20952         * tests/unicase/test-u16-casecmp.c: Likewise.
20953         * tests/unicase/test-u16-casecoll.c: Likewise.
20954         * tests/unicase/test-u16-casefold.c: Likewise.
20955         * tests/unicase/test-u16-is-cased.c: Likewise.
20956         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20957         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20958         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20959         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20960         * tests/unicase/test-u16-tolower.c: Likewise.
20961         * tests/unicase/test-u16-totitle.c: Likewise.
20962         * tests/unicase/test-u16-toupper.c: Likewise.
20963         * tests/unicase/test-u32-casecmp.c: Likewise.
20964         * tests/unicase/test-u32-casecoll.c: Likewise.
20965         * tests/unicase/test-u32-casefold.c: Likewise.
20966         * tests/unicase/test-u32-is-cased.c: Likewise.
20967         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20968         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20969         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20970         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20971         * tests/unicase/test-u32-tolower.c: Likewise.
20972         * tests/unicase/test-u32-totitle.c: Likewise.
20973         * tests/unicase/test-u32-toupper.c: Likewise.
20974         * tests/unicase/test-ulc-casecmp.c: Likewise.
20975         * tests/unicase/test-ulc-casecoll.c: Likewise.
20976         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20977         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20978         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20979         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20980         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20981         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20982         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20983         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20984         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20985         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20986         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20987         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20988         * tests/unictype/test-bidi_byname.c: Likewise.
20989         * tests/unictype/test-bidi_name.c: Likewise.
20990         * tests/unictype/test-bidi_of.c: Likewise.
20991         * tests/unictype/test-bidi_test.c: Likewise.
20992         * tests/unictype/test-block_list.c: Likewise.
20993         * tests/unictype/test-block_of.c: Likewise.
20994         * tests/unictype/test-block_test.c: Likewise.
20995         * tests/unictype/test-categ_and.c: Likewise.
20996         * tests/unictype/test-categ_and_not.c: Likewise.
20997         * tests/unictype/test-categ_byname.c: Likewise.
20998         * tests/unictype/test-categ_name.c: Likewise.
20999         * tests/unictype/test-categ_none.c: Likewise.
21000         * tests/unictype/test-categ_of.c: Likewise.
21001         * tests/unictype/test-categ_or.c: Likewise.
21002         * tests/unictype/test-categ_test_withtable.c: Likewise.
21003         * tests/unictype/test-combining.c: Likewise.
21004         * tests/unictype/test-decdigit.c: Likewise.
21005         * tests/unictype/test-digit.c: Likewise.
21006         * tests/unictype/test-mirror.c: Likewise.
21007         * tests/unictype/test-numeric.c: Likewise.
21008         * tests/unictype/test-pr_byname.c: Likewise.
21009         * tests/unictype/test-pr_test.c: Likewise.
21010         * tests/unictype/test-predicate-part1.h: Likewise.
21011         * tests/unictype/test-scripts.c: Likewise.
21012         * tests/unictype/test-sy_c_ident.c: Likewise.
21013         * tests/unictype/test-sy_java_ident.c: Likewise.
21014         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21015         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21016         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21017         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21018         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21019         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21020         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21021         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21022         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21023         * tests/uninorm/test-compat-decomposition.c: Likewise.
21024         * tests/uninorm/test-composition.c: Likewise.
21025         * tests/uninorm/test-decomposing-form.c: Likewise.
21026         * tests/uninorm/test-decomposition.c: Likewise.
21027         * tests/uninorm/test-u8-nfc.c: Likewise.
21028         * tests/uninorm/test-u8-nfd.c: Likewise.
21029         * tests/uninorm/test-u8-nfkc.c: Likewise.
21030         * tests/uninorm/test-u8-nfkd.c: Likewise.
21031         * tests/uninorm/test-u8-normcmp.c: Likewise.
21032         * tests/uninorm/test-u8-normcoll.c: Likewise.
21033         * tests/uninorm/test-u16-nfc.c: Likewise.
21034         * tests/uninorm/test-u16-nfd.c: Likewise.
21035         * tests/uninorm/test-u16-nfkc.c: Likewise.
21036         * tests/uninorm/test-u16-nfkd.c: Likewise.
21037         * tests/uninorm/test-u16-normcmp.c: Likewise.
21038         * tests/uninorm/test-u16-normcoll.c: Likewise.
21039         * tests/uninorm/test-u32-nfc.c: Likewise.
21040         * tests/uninorm/test-u32-nfd.c: Likewise.
21041         * tests/uninorm/test-u32-nfkc.c: Likewise.
21042         * tests/uninorm/test-u32-nfkd.c: Likewise.
21043         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21044         * tests/uninorm/test-u32-normcmp.c: Likewise.
21045         * tests/uninorm/test-u32-normcoll.c: Likewise.
21046         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21047         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21048         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21049         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21050         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21051         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21052         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21053         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21054         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21055         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21056         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21057         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21058         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21059         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21060         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21061         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21062         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21063         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21064         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21065         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21066         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21067         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21068         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21069         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21070         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21071         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21072         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21073         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21074         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21075         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21076         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21077         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21078         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21079         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21080         * tests/uniwidth/test-u8-width.c: Likewise.
21081         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21082         * tests/uniwidth/test-u16-width.c: Likewise.
21083         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21084         * tests/uniwidth/test-u32-width.c: Likewise.
21085         * tests/uniwidth/test-uc_width.c: Likewise.
21086         * tests/uniwidth/test-uc_width2.c: Likewise.
21087         * modules/acl-tests (Files): Add tests/macros.h.
21088         * modules/areadlink-tests (Files): Likewise.
21089         * modules/areadlink-with-size-tests (Files): Likewise.
21090         * modules/areadlinkat-tests (Files): Likewise.
21091         * modules/areadlinkat-with-size-tests (Files): Likewise.
21092         * modules/argmatch-tests (Files): Likewise.
21093         * modules/argv-iter-tests (Files): Likewise.
21094         * modules/array-list-tests (Files): Likewise.
21095         * modules/array-mergesort-tests (Files): Likewise.
21096         * modules/array-oset-tests (Files): Likewise.
21097         * modules/avltree-list-tests (Files): Likewise.
21098         * modules/avltree-oset-tests (Files): Likewise.
21099         * modules/avltreehash-list-tests (Files): Likewise.
21100         * modules/base64-tests (Files): Likewise.
21101         * modules/binary-io-tests (Files): Likewise.
21102         * modules/bitrotate-tests (Files): Likewise.
21103         * modules/btowc-tests (Files): Likewise.
21104         * modules/byteswap-tests (Files): Likewise.
21105         * modules/c-ctype-tests (Files): Likewise.
21106         * modules/c-stack-tests (Files): Likewise.
21107         * modules/c-strcase-tests (Files): Likewise.
21108         * modules/c-strcasestr-tests (Files): Likewise.
21109         * modules/c-strstr-tests (Files): Likewise.
21110         * modules/canonicalize-lgpl-tests (Files): Likewise.
21111         * modules/canonicalize-tests (Files): Likewise.
21112         * modules/carray-list-tests (Files): Likewise.
21113         * modules/ceilf-tests (Files): Likewise.
21114         * modules/ceill-tests (Files): Likewise.
21115         * modules/chown-tests (Files): Likewise.
21116         * modules/cloexec-tests (Files): Likewise.
21117         * modules/copy-file-tests (Files): Likewise.
21118         * modules/count-one-bits-tests (Files): Likewise.
21119         * modules/dprintf-posix-tests (Files): Likewise.
21120         * modules/dup2-tests (Files): Likewise.
21121         * modules/dup3-tests (Files): Likewise.
21122         * modules/duplocale-tests (Files): Likewise.
21123         * modules/fbufmode-tests (Files): Likewise.
21124         * modules/fchdir-tests (Files): Likewise.
21125         * modules/fcntl-safer-tests (Files): Likewise.
21126         * modules/fcntl-tests (Files): Likewise.
21127         * modules/fdopendir-tests (Files): Likewise.
21128         * modules/fdutimensat-tests (Files): Likewise.
21129         * modules/fflush-tests (Files): Likewise.
21130         * modules/filevercmp-tests (Files): Likewise.
21131         * modules/flock-tests (Files): Likewise.
21132         * modules/floorf-tests (Files): Likewise.
21133         * modules/floorl-tests (Files): Likewise.
21134         * modules/fnmatch-tests (Files): Likewise.
21135         * modules/fopen-safer-tests (Files): Likewise.
21136         * modules/fopen-tests (Files): Likewise.
21137         * modules/fpending-tests (Files): Likewise.
21138         * modules/fprintf-posix-tests (Files): Likewise.
21139         * modules/fpurge-tests (Files): Likewise.
21140         * modules/freadable-tests (Files): Likewise.
21141         * modules/freadahead-tests (Files): Likewise.
21142         * modules/freading-tests (Files): Likewise.
21143         * modules/freadptr-tests (Files): Likewise.
21144         * modules/freadseek-tests (Files): Likewise.
21145         * modules/freopen-tests (Files): Likewise.
21146         * modules/frexp-nolibm-tests (Files): Likewise.
21147         * modules/frexp-tests (Files): Likewise.
21148         * modules/frexpl-nolibm-tests (Files): Likewise.
21149         * modules/frexpl-tests (Files): Likewise.
21150         * modules/fseek-tests (Files): Likewise.
21151         * modules/fseeko-tests (Files): Likewise.
21152         * modules/fstrcmp-tests (Files): Likewise.
21153         * modules/fsync-tests (Files): Likewise.
21154         * modules/ftell-tests (Files): Likewise.
21155         * modules/ftello-tests (Files): Likewise.
21156         * modules/func-tests (Files): Likewise.
21157         * modules/futimens-tests (Files): Likewise.
21158         * modules/fwritable-tests (Files): Likewise.
21159         * modules/fwriting-tests (Files): Likewise.
21160         * modules/getcwd-tests (Files): Likewise.
21161         * modules/getdate-tests (Files): Likewise.
21162         * modules/getdelim-tests (Files): Likewise.
21163         * modules/getdtablesize-tests (Files): Likewise.
21164         * modules/getgroups-tests (Files): Likewise.
21165         * modules/getline-tests (Files): Likewise.
21166         * modules/getndelim2-tests (Files): Likewise.
21167         * modules/glob-tests (Files): Likewise.
21168         * modules/hash-tests (Files): Likewise.
21169         * modules/i-ring-tests (Files): Likewise.
21170         * modules/iconv-tests (Files): Likewise.
21171         * modules/iconv_open-utf-tests (Files): Likewise.
21172         * modules/idpriv-drop-tests (Files): Likewise.
21173         * modules/idpriv-droptemp-tests (Files): Likewise.
21174         * modules/inet_ntop-tests (Files): Likewise.
21175         * modules/inet_pton-tests (Files): Likewise.
21176         * modules/isblank-tests (Files): Likewise.
21177         * modules/isfinite-tests (Files): Likewise.
21178         * modules/isinf-tests (Files): Likewise.
21179         * modules/isnan-tests (Files): Likewise.
21180         * modules/isnand-nolibm-tests (Files): Likewise.
21181         * modules/isnand-tests (Files): Likewise.
21182         * modules/isnanf-nolibm-tests (Files): Likewise.
21183         * modules/isnanf-tests (Files): Likewise.
21184         * modules/isnanl-nolibm-tests (Files): Likewise.
21185         * modules/isnanl-tests (Files): Likewise.
21186         * modules/lchown-tests (Files): Likewise.
21187         * modules/ldexpl-tests (Files): Likewise.
21188         * modules/link-tests (Files): Likewise.
21189         * modules/linkat-tests (Files): Likewise.
21190         * modules/linked-list-tests (Files): Likewise.
21191         * modules/linkedhash-list-tests (Files): Likewise.
21192         * modules/localename-tests (Files): Likewise.
21193         * modules/lseek-tests (Files): Likewise.
21194         * modules/lstat-tests (Files): Likewise.
21195         * modules/mbmemcasecmp-tests (Files): Likewise.
21196         * modules/mbmemcasecoll-tests (Files): Likewise.
21197         * modules/mbrtowc-tests (Files): Likewise.
21198         * modules/mbscasecmp-tests (Files): Likewise.
21199         * modules/mbscasestr-tests (Files): Likewise.
21200         * modules/mbschr-tests (Files): Likewise.
21201         * modules/mbscspn-tests (Files): Likewise.
21202         * modules/mbsinit-tests (Files): Likewise.
21203         * modules/mbsncasecmp-tests (Files): Likewise.
21204         * modules/mbsnrtowcs-tests (Files): Likewise.
21205         * modules/mbspbrk-tests (Files): Likewise.
21206         * modules/mbspcasecmp-tests (Files): Likewise.
21207         * modules/mbsrchr-tests (Files): Likewise.
21208         * modules/mbsrtowcs-tests (Files): Likewise.
21209         * modules/mbsspn-tests (Files): Likewise.
21210         * modules/mbsstr-tests (Files): Likewise.
21211         * modules/memchr-tests (Files): Likewise.
21212         * modules/memchr2-tests (Files): Likewise.
21213         * modules/memcmp-tests (Files): Likewise.
21214         * modules/memmem-tests (Files): Likewise.
21215         * modules/memrchr-tests (Files): Likewise.
21216         * modules/mkdir-tests (Files): Likewise.
21217         * modules/mkfifo-tests (Files): Likewise.
21218         * modules/mkfifoat-tests (Files): Likewise.
21219         * modules/mknod-tests (Files): Likewise.
21220         * modules/nanosleep-tests (Files): Likewise.
21221         * modules/nl_langinfo-tests (Files): Likewise.
21222         * modules/obstack-printf-tests (Files): Likewise.
21223         * modules/open-tests (Files): Likewise.
21224         * modules/openat-tests (Files): Likewise.
21225         * modules/pipe-filter-gi-tests (Files): Likewise.
21226         * modules/pipe-filter-ii-tests (Files): Likewise.
21227         * modules/pipe2-tests (Files): Likewise.
21228         * modules/popen-safer-tests (Files): Likewise.
21229         * modules/popen-tests (Files): Likewise.
21230         * modules/posixtm-tests (Files): Likewise.
21231         * modules/pread-tests (Files): Likewise.
21232         * modules/printf-frexp-tests (Files): Likewise.
21233         * modules/printf-frexpl-tests (Files): Likewise.
21234         * modules/printf-posix-tests (Files): Likewise.
21235         * modules/priv-set-tests (Files): Likewise.
21236         * modules/quotearg-tests (Files): Likewise.
21237         * modules/random_r-tests (Files): Likewise.
21238         * modules/rawmemchr-tests (Files): Likewise.
21239         * modules/rbtree-list-tests (Files): Likewise.
21240         * modules/rbtree-oset-tests (Files): Likewise.
21241         * modules/rbtreehash-list-tests (Files): Likewise.
21242         * modules/readlink-tests (Files): Likewise.
21243         * modules/remove-tests (Files): Likewise.
21244         * modules/rename-tests (Files): Likewise.
21245         * modules/renameat-tests (Files): Likewise.
21246         * modules/rmdir-tests (Files): Likewise.
21247         * modules/round-tests (Files): Likewise.
21248         * modules/roundf-tests (Files): Likewise.
21249         * modules/roundl-tests (Files): Likewise.
21250         * modules/safe-alloc-tests (Files): Likewise.
21251         * modules/setenv-tests (Files): Likewise.
21252         * modules/sigaction-tests (Files): Likewise.
21253         * modules/signbit-tests (Files): Likewise.
21254         * modules/sleep-tests (Files): Likewise.
21255         * modules/snprintf-posix-tests (Files): Likewise.
21256         * modules/snprintf-tests (Files): Likewise.
21257         * modules/sprintf-posix-tests (Files): Likewise.
21258         * modules/stat-tests (Files): Likewise.
21259         * modules/stat-time-tests (Files): Likewise.
21260         * modules/strcasestr-tests (Files): Likewise.
21261         * modules/strchrnul-tests (Files): Likewise.
21262         * modules/strerror-tests (Files): Likewise.
21263         * modules/striconv-tests (Files): Likewise.
21264         * modules/striconveh-tests (Files): Likewise.
21265         * modules/striconveha-tests (Files): Likewise.
21266         * modules/strsignal-tests (Files): Likewise.
21267         * modules/strstr-tests (Files): Likewise.
21268         * modules/strtod-tests (Files): Likewise.
21269         * modules/strverscmp-tests (Files): Likewise.
21270         * modules/symlink-tests (Files): Likewise.
21271         * modules/symlinkat-tests (Files): Likewise.
21272         * modules/trunc-tests (Files): Likewise.
21273         * modules/truncf-tests (Files): Likewise.
21274         * modules/truncl-tests (Files): Likewise.
21275         * modules/uname-tests (Files): Likewise.
21276         * modules/unicase/cased-tests (Files): Likewise.
21277         * modules/unicase/ignorable-tests (Files): Likewise.
21278         * modules/unicase/locale-language-tests (Files): Likewise.
21279         * modules/unicase/tolower-tests (Files): Likewise.
21280         * modules/unicase/totitle-tests (Files): Likewise.
21281         * modules/unicase/toupper-tests (Files): Likewise.
21282         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21283         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21284         * modules/unicase/u8-casefold-tests (Files): Likewise.
21285         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21286         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21287         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21288         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21289         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21290         * modules/unicase/u8-tolower-tests (Files): Likewise.
21291         * modules/unicase/u8-totitle-tests (Files): Likewise.
21292         * modules/unicase/u8-toupper-tests (Files): Likewise.
21293         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21294         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21295         * modules/unicase/u16-casefold-tests (Files): Likewise.
21296         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21297         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21298         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21299         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21300         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21301         * modules/unicase/u16-tolower-tests (Files): Likewise.
21302         * modules/unicase/u16-totitle-tests (Files): Likewise.
21303         * modules/unicase/u16-toupper-tests (Files): Likewise.
21304         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21305         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21306         * modules/unicase/u32-casefold-tests (Files): Likewise.
21307         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21308         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21309         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21310         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21311         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21312         * modules/unicase/u32-tolower-tests (Files): Likewise.
21313         * modules/unicase/u32-totitle-tests (Files): Likewise.
21314         * modules/unicase/u32-toupper-tests (Files): Likewise.
21315         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21316         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21317         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21318         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21319         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21320         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21321         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21322         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21323         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21324         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21325         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21326         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21327         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21328         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21329         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21330         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21331         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21332         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21333         * modules/unictype/block-list-tests (Files): Likewise.
21334         * modules/unictype/block-of-tests (Files): Likewise.
21335         * modules/unictype/block-test-tests (Files): Likewise.
21336         * modules/unictype/category-C-tests (Files): Likewise.
21337         * modules/unictype/category-Cc-tests (Files): Likewise.
21338         * modules/unictype/category-Cf-tests (Files): Likewise.
21339         * modules/unictype/category-Cn-tests (Files): Likewise.
21340         * modules/unictype/category-Co-tests (Files): Likewise.
21341         * modules/unictype/category-Cs-tests (Files): Likewise.
21342         * modules/unictype/category-L-tests (Files): Likewise.
21343         * modules/unictype/category-Ll-tests (Files): Likewise.
21344         * modules/unictype/category-Lm-tests (Files): Likewise.
21345         * modules/unictype/category-Lo-tests (Files): Likewise.
21346         * modules/unictype/category-Lt-tests (Files): Likewise.
21347         * modules/unictype/category-Lu-tests (Files): Likewise.
21348         * modules/unictype/category-M-tests (Files): Likewise.
21349         * modules/unictype/category-Mc-tests (Files): Likewise.
21350         * modules/unictype/category-Me-tests (Files): Likewise.
21351         * modules/unictype/category-Mn-tests (Files): Likewise.
21352         * modules/unictype/category-N-tests (Files): Likewise.
21353         * modules/unictype/category-Nd-tests (Files): Likewise.
21354         * modules/unictype/category-Nl-tests (Files): Likewise.
21355         * modules/unictype/category-No-tests (Files): Likewise.
21356         * modules/unictype/category-P-tests (Files): Likewise.
21357         * modules/unictype/category-Pc-tests (Files): Likewise.
21358         * modules/unictype/category-Pd-tests (Files): Likewise.
21359         * modules/unictype/category-Pe-tests (Files): Likewise.
21360         * modules/unictype/category-Pf-tests (Files): Likewise.
21361         * modules/unictype/category-Pi-tests (Files): Likewise.
21362         * modules/unictype/category-Po-tests (Files): Likewise.
21363         * modules/unictype/category-Ps-tests (Files): Likewise.
21364         * modules/unictype/category-S-tests (Files): Likewise.
21365         * modules/unictype/category-Sc-tests (Files): Likewise.
21366         * modules/unictype/category-Sk-tests (Files): Likewise.
21367         * modules/unictype/category-Sm-tests (Files): Likewise.
21368         * modules/unictype/category-So-tests (Files): Likewise.
21369         * modules/unictype/category-Z-tests (Files): Likewise.
21370         * modules/unictype/category-Zl-tests (Files): Likewise.
21371         * modules/unictype/category-Zp-tests (Files): Likewise.
21372         * modules/unictype/category-Zs-tests (Files): Likewise.
21373         * modules/unictype/category-and-not-tests (Files): Likewise.
21374         * modules/unictype/category-and-tests (Files): Likewise.
21375         * modules/unictype/category-byname-tests (Files): Likewise.
21376         * modules/unictype/category-name-tests (Files): Likewise.
21377         * modules/unictype/category-none-tests (Files): Likewise.
21378         * modules/unictype/category-of-tests (Files): Likewise.
21379         * modules/unictype/category-or-tests (Files): Likewise.
21380         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21381         * modules/unictype/combining-class-tests (Files): Likewise.
21382         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21383         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21384         * modules/unictype/ctype-blank-tests (Files): Likewise.
21385         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21386         * modules/unictype/ctype-digit-tests (Files): Likewise.
21387         * modules/unictype/ctype-graph-tests (Files): Likewise.
21388         * modules/unictype/ctype-lower-tests (Files): Likewise.
21389         * modules/unictype/ctype-print-tests (Files): Likewise.
21390         * modules/unictype/ctype-punct-tests (Files): Likewise.
21391         * modules/unictype/ctype-space-tests (Files): Likewise.
21392         * modules/unictype/ctype-upper-tests (Files): Likewise.
21393         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21394         * modules/unictype/decimal-digit-tests (Files): Likewise.
21395         * modules/unictype/digit-tests (Files): Likewise.
21396         * modules/unictype/mirror-tests (Files): Likewise.
21397         * modules/unictype/numeric-tests (Files): Likewise.
21398         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21399         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21400         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21401         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21402         Likewise.
21403         * modules/unictype/property-bidi-block-separator-tests (Files):
21404         Likewise.
21405         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21406         Likewise.
21407         * modules/unictype/property-bidi-common-separator-tests (Files):
21408         Likewise.
21409         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21410         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21411         Likewise.
21412         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21413         Likewise.
21414         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21415         Likewise.
21416         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21417         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21418         Likewise.
21419         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21420         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21421         Likewise.
21422         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21423         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21424         * modules/unictype/property-bidi-segment-separator-tests (Files):
21425         Likewise.
21426         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21427         * modules/unictype/property-byname-tests (Files): Likewise.
21428         * modules/unictype/property-combining-tests (Files): Likewise.
21429         * modules/unictype/property-composite-tests (Files): Likewise.
21430         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21431         * modules/unictype/property-dash-tests (Files): Likewise.
21432         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21433         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21434         Likewise.
21435         * modules/unictype/property-deprecated-tests (Files): Likewise.
21436         * modules/unictype/property-diacritic-tests (Files): Likewise.
21437         * modules/unictype/property-extender-tests (Files): Likewise.
21438         * modules/unictype/property-format-control-tests (Files): Likewise.
21439         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21440         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21441         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21442         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21443         * modules/unictype/property-hyphen-tests (Files): Likewise.
21444         * modules/unictype/property-id-continue-tests (Files): Likewise.
21445         * modules/unictype/property-id-start-tests (Files): Likewise.
21446         * modules/unictype/property-ideographic-tests (Files): Likewise.
21447         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21448         * modules/unictype/property-ids-trinary-operator-tests (Files):
21449         Likewise.
21450         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21451         * modules/unictype/property-iso-control-tests (Files): Likewise.
21452         * modules/unictype/property-join-control-tests (Files): Likewise.
21453         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21454         * modules/unictype/property-line-separator-tests (Files): Likewise.
21455         * modules/unictype/property-logical-order-exception-tests (Files):
21456         Likewise.
21457         * modules/unictype/property-lowercase-tests (Files): Likewise.
21458         * modules/unictype/property-math-tests (Files): Likewise.
21459         * modules/unictype/property-non-break-tests (Files): Likewise.
21460         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21461         * modules/unictype/property-numeric-tests (Files): Likewise.
21462         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21463         * modules/unictype/property-other-default-ignorable-code-point-tests
21464         (Files): Likewise.
21465         * modules/unictype/property-other-grapheme-extend-tests (Files):
21466         Likewise.
21467         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21468         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21469         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21470         * modules/unictype/property-other-math-tests (Files): Likewise.
21471         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21472         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21473         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21474         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21475         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21476         * modules/unictype/property-private-use-tests (Files): Likewise.
21477         * modules/unictype/property-punctuation-tests (Files): Likewise.
21478         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21479         * modules/unictype/property-radical-tests (Files): Likewise.
21480         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21481         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21482         * modules/unictype/property-space-tests (Files): Likewise.
21483         * modules/unictype/property-terminal-punctuation-tests (Files):
21484         Likewise.
21485         * modules/unictype/property-test-tests (Files): Likewise.
21486         * modules/unictype/property-titlecase-tests (Files): Likewise.
21487         * modules/unictype/property-unassigned-code-value-tests (Files):
21488         Likewise.
21489         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21490         * modules/unictype/property-uppercase-tests (Files): Likewise.
21491         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21492         * modules/unictype/property-white-space-tests (Files): Likewise.
21493         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21494         * modules/unictype/property-xid-start-tests (Files): Likewise.
21495         * modules/unictype/property-zero-width-tests (Files): Likewise.
21496         * modules/unictype/scripts-tests (Files): Likewise.
21497         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21498         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21499         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21500         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21501         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21502         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21503         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21504         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21505         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21506         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21507         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21508         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21509         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21510         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21511         * modules/uninorm/composition-tests (Files): Likewise.
21512         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21513         * modules/uninorm/decomposition-tests (Files): Likewise.
21514         * modules/uninorm/filter-tests (Files): Likewise.
21515         * modules/uninorm/nfc-tests (Files): Likewise.
21516         * modules/uninorm/nfd-tests (Files): Likewise.
21517         * modules/uninorm/nfkc-tests (Files): Likewise.
21518         * modules/uninorm/nfkd-tests (Files): Likewise.
21519         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21520         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21521         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21522         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21523         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21524         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21525         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21526         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21527         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21528         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21529         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21530         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21531         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21532         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21533         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21534         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21535         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21536         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21537         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21538         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21539         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21540         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21541         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21542         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21543         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21544         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21545         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21546         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21547         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21548         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21549         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21550         * modules/uniwidth/u8-width-tests (Files): Likewise.
21551         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21552         * modules/uniwidth/u16-width-tests (Files): Likewise.
21553         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21554         * modules/uniwidth/u32-width-tests (Files): Likewise.
21555         * modules/uniwidth/width-tests (Files): Likewise.
21556         * modules/unlink-tests (Files): Likewise.
21557         * modules/unsetenv-tests (Files): Likewise.
21558         * modules/usleep-tests (Files): Likewise.
21559         * modules/utimens-tests (Files): Likewise.
21560         * modules/utimensat-tests (Files): Likewise.
21561         * modules/vasnprintf-posix-tests (Files): Likewise.
21562         * modules/vasnprintf-tests (Files): Likewise.
21563         * modules/vasprintf-posix-tests (Files): Likewise.
21564         * modules/vasprintf-tests (Files): Likewise.
21565         * modules/vdprintf-posix-tests (Files): Likewise.
21566         * modules/vfprintf-posix-tests (Files): Likewise.
21567         * modules/vprintf-posix-tests (Files): Likewise.
21568         * modules/vsnprintf-posix-tests (Files): Likewise.
21569         * modules/vsnprintf-tests (Files): Likewise.
21570         * modules/vsprintf-posix-tests (Files): Likewise.
21571         * modules/wcrtomb-tests (Files): Likewise.
21572         * modules/wcsnrtombs-tests (Files): Likewise.
21573         * modules/wcsrtombs-tests (Files): Likewise.
21574         * modules/wctype-tests (Files): Likewise.
21575         * modules/wcwidth-tests (Files): Likewise.
21576         * modules/xmemdup0-tests (Files): Likewise.
21577         * modules/xprintf-posix-tests (Files): Likewise.
21578         * modules/xvasprintf-tests (Files): Likewise.
21579
21580 2009-12-24  Eric Blake  <ebb9@byu.net>
21581
21582         test-nanosleep: fix typo
21583         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21584         patch.
21585         Reported by Bruno Haible.
21586
21587 2009-12-24  Bruno Haible  <bruno@clisp.org>
21588
21589         Reduce namespace pollution on glibc systems.
21590         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21591         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21592         systems.
21593         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21594         <getopt.h> on glibc systems.
21595         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21596         systems.
21597         * lib/fcntl.c: Include <unistd.h> here instead.
21598
21599 2009-12-24  Bruno Haible  <bruno@clisp.org>
21600
21601         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21602
21603 2009-12-24  Eric Blake  <ebb9@byu.net>
21604
21605         tests: add signature checks
21606         * tests/signature.h (SIGNATURE_CHECK): New file.
21607         * modules/atexit-tests (Files): Use it.
21608         * modules/btowc-tests (Files): Likewise.
21609         * modules/canonicalize-lgpl-tests (Files): Likewise.
21610         * modules/ceilf-tests (Files): Likewise.
21611         * modules/ceill-tests (Files): Likewise.
21612         * modules/chown-tests (Files): Likewise.
21613         * modules/dprintf-posix-tests (Files): Likewise.
21614         * modules/dup2-tests (Files): Likewise.
21615         * modules/dup3-tests (Files): Likewise.
21616         * modules/duplocale-tests (Files): Likewise.
21617         * modules/fchdir-tests (Files): Likewise.
21618         * modules/fcntl-tests (Files): Likewise.
21619         * modules/fdopendir-tests (Files): Likewise.
21620         * modules/fflush-tests (Files): Likewise.
21621         * modules/flock-tests (Files): Likewise.
21622         * modules/floorf-tests (Files): Likewise.
21623         * modules/floorl-tests (Files): Likewise.
21624         * modules/fnmatch-tests (Files): Likewise.
21625         * modules/fopen-tests (Files): Likewise.
21626         * modules/fprintf-posix-tests (Files): Likewise.
21627         * modules/freopen-tests (Files): Likewise.
21628         * modules/frexp-nolibm-tests (Files): Likewise.
21629         * modules/frexp-tests (Files): Likewise.
21630         * modules/frexpl-nolibm-tests (Files): Likewise.
21631         * modules/frexpl-tests (Files): Likewise.
21632         * modules/fseek-tests (Files): Likewise.
21633         * modules/fseeko-tests (Files): Likewise.
21634         * modules/fsync-tests (Files): Likewise.
21635         * modules/ftell-tests (Files): Likewise.
21636         * modules/ftello-tests (Files): Likewise.
21637         * modules/futimens-tests (Files): Likewise.
21638         * modules/getaddrinfo-tests (Files): Likewise.
21639         * modules/getcwd-tests (Files): Likewise.
21640         * modules/getdelim-tests (Files): Likewise.
21641         * modules/getdtablesize-tests (Files): Likewise.
21642         * modules/getgroups-tests (Files): Likewise.
21643         * modules/gethostname-tests (Files): Likewise.
21644         * modules/getline-tests (Files): Likewise.
21645         * modules/getopt-posix-tests (Files): Likewise.
21646         * modules/gettimeofday-tests (Files): Likewise.
21647         * modules/glob-tests (Files): Likewise.
21648         * modules/iconv-tests (Files): Likewise.
21649         * modules/inet_ntop-tests (Files): Likewise.
21650         * modules/inet_pton-tests (Files): Likewise.
21651         * modules/isblank-tests (Files): Likewise.
21652         * modules/lchown-tests (Files): Likewise.
21653         * modules/ldexpl-tests (Files): Likewise.
21654         * modules/link-tests (Files): Likewise.
21655         * modules/linkat-tests (Files): Likewise.
21656         * modules/lseek-tests (Files): Likewise.
21657         * modules/lstat-tests (Files): Likewise.
21658         * modules/mbrtowc-tests (Files): Likewise.
21659         * modules/mbsinit-tests (Files): Likewise.
21660         * modules/mbsnrtowcs-tests (Files): Likewise.
21661         * modules/mbsrtowcs-tests (Files): Likewise.
21662         * modules/memchr-tests (Files): Likewise.
21663         * modules/memcmp-tests (Files): Likewise.
21664         * modules/memmem-tests (Files): Likewise.
21665         * modules/memrchr-tests (Files): Likewise.
21666         * modules/mkdir-tests (Files): Likewise.
21667         * modules/mkfifo-tests (Files): Likewise.
21668         * modules/mkfifoat-tests (Files): Likewise.
21669         * modules/mknod-tests (Files): Likewise.
21670         * modules/nanosleep-tests (Files): Likewise.
21671         * modules/nl_langinfo-tests (Files): Likewise.
21672         * modules/obstack-printf-tests (Files): Likewise.
21673         * modules/open-tests (Files): Likewise.
21674         * modules/openat-tests (Files): Likewise.
21675         * modules/perror-tests (Files): Likewise.
21676         * modules/pipe2-tests (Files): Likewise.
21677         * modules/poll-tests (Files): Likewise.
21678         * modules/popen-tests (Files): Likewise.
21679         * modules/posix_spawn-tests (Files): Likewise.
21680         * modules/posix_spawnp-tests (Files): Likewise.
21681         * modules/pread-tests (Files): Likewise.
21682         * modules/printf-posix-tests (Files): Likewise.
21683         * modules/pty-tests (Files): Likewise.
21684         * modules/random_r-tests (Files): Likewise.
21685         * modules/rawmemchr-tests (Files): Likewise.
21686         * modules/readlink-tests (Files): Likewise.
21687         * modules/remove-tests (Files): Likewise.
21688         * modules/rename-tests (Files): Likewise.
21689         * modules/renameat-tests (Files): Likewise.
21690         * modules/rmdir-tests (Files): Likewise.
21691         * modules/round-tests (Files): Likewise.
21692         * modules/roundf-tests (Files): Likewise.
21693         * modules/roundl-tests (Files): Likewise.
21694         * modules/select-tests (Files): Likewise.
21695         * modules/setenv-tests (Files): Likewise.
21696         * modules/sigaction-tests (Files): Likewise.
21697         * modules/sleep-tests (Files): Likewise.
21698         * modules/snprintf-posix-tests (Files): Likewise.
21699         * modules/snprintf-tests (Files): Likewise.
21700         * modules/sprintf-posix-tests (Files): Likewise.
21701         * modules/stat-tests (Files): Likewise.
21702         * modules/strcasestr-tests (Files): Likewise.
21703         * modules/strchrnul-tests (Files): Likewise.
21704         * modules/strerror-tests (Files): Likewise.
21705         * modules/strsignal-tests (Files): Likewise.
21706         * modules/strstr-tests (Files): Likewise.
21707         * modules/strtod-tests (Files): Likewise.
21708         * modules/strverscmp-tests (Files): Likewise.
21709         * modules/symlink-tests (Files): Likewise.
21710         * modules/symlinkat-tests (Files): Likewise.
21711         * modules/times-tests (Files): Likewise.
21712         * modules/trunc-tests (Files): Likewise.
21713         * modules/truncf-tests (Files): Likewise.
21714         * modules/truncl-tests (Files): Likewise.
21715         * modules/tsearch-tests (Files): Likewise.
21716         * modules/uname-tests (Files): Likewise.
21717         * modules/unlink-tests (Files): Likewise.
21718         * modules/unsetenv-tests (Files): Likewise.
21719         * modules/usleep-tests (Files): Likewise.
21720         * modules/utimensat-tests (Files): Likewise.
21721         * modules/vasprintf-tests (Files): Likewise.
21722         * modules/vdprintf-posix-tests (Files): Likewise.
21723         * modules/vfprintf-posix-tests (Files): Likewise.
21724         * modules/vprintf-posix-tests (Files): Likewise.
21725         * modules/vsnprintf-posix-tests (Files): Likewise.
21726         * modules/vsnprintf-tests (Files): Likewise.
21727         * modules/vsprintf-posix-tests (Files): Likewise.
21728         * modules/wcrtomb-tests (Files): Likewise.
21729         * modules/wcsnrtombs-tests (Files): Likewise.
21730         * modules/wcsrtombs-tests (Files): Likewise.
21731         * modules/wcwidth-tests (Files): Likewise.
21732         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21733         * tests/test-isinf.c (isinf): Likewise.
21734         * tests/test-isnan.c (isnan): Likewise.
21735         * tests/test-signbit.c (signbit): Likewise.
21736         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21737         declaration, either as macro or with correct signature.
21738         (select): Ensure function under test is declared with correct
21739         signature in correct header.
21740         * tests/test-atexit.c (atexit): Likewise.
21741         * tests/test-btowc.c (btowc): Likewise.
21742         * tests/test-canonicalize-lgpl.c (realpath)
21743         (canonicalize_file_name): Likewise.
21744         * tests/test-ceilf1.c (ceilf): Likewise.
21745         * tests/test-ceill.c (ceill): Likewise.
21746         * tests/test-chown.c (chown): Likewise.
21747         * tests/test-dprintf-posix.c (dprintf): Likewise.
21748         * tests/test-dup2.c (dup2): Likewise.
21749         * tests/test-dup3.c (dup3): Likewise.
21750         * tests/test-duplocale.c (duplocale): Likewise.
21751         * tests/test-fchdir.c (fchdir): Likewise.
21752         * tests/test-fchownat.c (fchownat): Likewise.
21753         * tests/test-fcntl.c (fcntl): Likewise.
21754         * tests/test-fdopendir.c (fdopendir): Likewise.
21755         * tests/test-fflush.c (fflush): Likewise.
21756         * tests/test-flock.c (flock): Likewise.
21757         * tests/test-floorf1.c (floorf): Likewise.
21758         * tests/test-floorl.c (floorl): Likewise.
21759         * tests/test-fnmatch.c (fnmatch): Likewise.
21760         * tests/test-fopen.c (fopen): Likewise.
21761         * tests/test-fprintf-posix.c (fprintf): Likewise.
21762         * tests/test-freopen.c (freopen): Likewise.
21763         * tests/test-frexp.c (frexp): Likewise.
21764         * tests/test-frexpl.c (frexpl): Likewise.
21765         * tests/test-fseek.c (fseek): Likewise.
21766         * tests/test-fseeko.c (fseeko): Likewise.
21767         * tests/test-fstatat.c (fstatat): Likewise.
21768         * tests/test-fsync.c (fsync): Likewise.
21769         * tests/test-ftell.c (ftell): Likewise.
21770         * tests/test-ftello.c (ftello): Likewise.
21771         * tests/test-futimens.c (futimens): Likewise.
21772         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21773         (gai_strerror): Likewise.
21774         * tests/test-getcwd.c (getcwd): Likewise.
21775         * tests/test-getdelim.c (getdelim): Likewise.
21776         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21777         * tests/test-getgroups.c (getgroups): Likewise.
21778         * tests/test-gethostname.c (gethostname): Likewise.
21779         * tests/test-getline.c (getline): Likewise.
21780         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21781         Likewise.
21782         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21783         * tests/test-glob.c (glob, globfree): Likewise.
21784         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21785         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21786         * tests/test-inet_pton.c (inet_pton): Likewise.
21787         * tests/test-isblank.c (isblank): Likewise.
21788         * tests/test-lchown.c (lchown): Likewise.
21789         * tests/test-ldexpl.c (ldexpl): Likewise.
21790         * tests/test-link.c (link): Likewise.
21791         * tests/test-linkat.c (linkat): Likewise.
21792         * tests/test-lseek.c (lseek): Likewise.
21793         * tests/test-lstat.c (lstat): Likewise.
21794         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21795         * tests/test-mbsinit.c (mbsinit): Likewise.
21796         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21797         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21798         * tests/test-memchr.c (memchr): Likewise.
21799         * tests/test-memcmp.c (memcmp): Likewise.
21800         * tests/test-memmem.c (memmem): Likewise.
21801         * tests/test-memrchr.c (memrchr): Likewise.
21802         * tests/test-mkdir.c (mkdir): Likewise.
21803         * tests/test-mkdirat.c (mkdirat): Likewise.
21804         * tests/test-mkfifo.c (mkfifo): Likewise.
21805         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21806         * tests/test-mknod.c (mknod): Likewise.
21807         * tests/test-nanosleep.c (nanosleep): Likewise.
21808         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21809         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21810         Likewise.
21811         * tests/test-open.c (open): Likewise.
21812         * tests/test-openat.c (openat): Likewise.
21813         * tests/test-perror.c (perror): Likewise.
21814         * tests/test-pipe2.c (pipe2): Likewise.
21815         * tests/test-poll.c (poll): Likewise.
21816         * tests/test-popen.c (popen, pclose): Likewise.
21817         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21818         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21819         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21820         (posix_spawn_file_actions_destroy)
21821         (posix_spawn_file_actions_addclose)
21822         (posix_spawn_file_actions_addopen)
21823         (posix_spawn_file_actions_adddup2): Likewise.
21824         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21825         * tests/test-pread.c (pread): Likewise.
21826         * tests/test-printf-posix.c (printf): Likewise.
21827         * tests/test-pty.c (openpty, forkpty): Likewise.
21828         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21829         (random_r): Likewise.
21830         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21831         * tests/test-readlink.c (readlink): Likewise.
21832         * tests/test-remove.c (remove): Likewise.
21833         * tests/test-rename.c (rename): Likewise.
21834         * tests/test-renameat.c (renameat): Likewise.
21835         * tests/test-rmdir.c (rmdir): Likewise.
21836         * tests/test-round1.c (round): Likewise.
21837         * tests/test-roundf1.c (roundf): Likewise.
21838         * tests/test-roundl.c (roundl): Likewise.
21839         * tests/test-setenv.c (setenv): Likewise.
21840         * tests/test-sigaction.c (sigaction): Likewise.
21841         * tests/test-sleep.c (sleep): Likewise.
21842         * tests/test-snprintf.c (snprintf): Likewise.
21843         * tests/test-sprintf-posix.c (sprintf): Likewise.
21844         * tests/test-stat.c (stat): Likewise.
21845         * tests/test-stpncpy.c (stpncpy): Likewise.
21846         * tests/test-strcasestr.c (strcasestr): Likewise.
21847         * tests/test-strchrnul.c (strchrnul): Likewise.
21848         * tests/test-strerror.c (strerror): Likewise.
21849         * tests/test-strsignal.c (strsignal): Likewise.
21850         * tests/test-strstr.c (strstr): Likewise.
21851         * tests/test-strtod.c (strtod): Likewise.
21852         * tests/test-strverscmp.c (strverscmp): Likewise.
21853         * tests/test-symlink.c (symlink): Likewise.
21854         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21855         * tests/test-times.c (times): Likewise.
21856         * tests/test-trunc1.c (trunc): Likewise.
21857         * tests/test-truncf1.c (truncf): Likewise.
21858         * tests/test-truncl.c (truncl): Likewise.
21859         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21860         Likewise.
21861         * tests/test-uname.c (uname): Likewise.
21862         * tests/test-unlink.c (unlink): Likewise.
21863         * tests/test-unlinkat.c (unlinkat): Likewise.
21864         * tests/test-unsetenv.c (unsetenv): Likewise.
21865         * tests/test-usleep.c (usleep): Likewise.
21866         * tests/test-utimensat.c (utimensat): Likewise.
21867         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21868         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21869         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21870         * tests/test-vprintf-posix.c (vprintf): Likewise.
21871         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21872         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21873         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21874         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21875         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21876         * tests/test-wcwidth.c (wcwidth): Likewise.
21877
21878         build: pull in conditional headers during GNULIB_POSIXCHECK
21879         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21880         definitions from any conditionally-included headers.
21881         * lib/stdlib.in.h (includes): Likewise.
21882         * lib/unistd.in.h (includes): Likewise.
21883
21884 2009-12-24  Bruno Haible  <bruno@clisp.org>
21885
21886         * tests/test-argv-iter.c: Include header file being tested immediately
21887         after config.h.
21888         * tests/test-base64.c: Likewise.
21889         * tests/test-flock.c: Likewise.
21890         * tests/test-fsync.c: Likewise.
21891         * tests/test-getdate.c: Likewise.
21892         * tests/test-getndelim2.c: Likewise.
21893         * tests/test-isfinite.c: Likewise.
21894         * tests/test-isinf.c: Likewise.
21895         * tests/test-strerror.c: Likewise.
21896         * tests/test-strsignal.c: Likewise.
21897
21898 2009-12-23  Eric Blake  <ebb9@byu.net>
21899
21900         unistd: work around cygwin bug
21901         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21902         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21903         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21904
21905 2009-12-23  Bruno Haible  <bruno@clisp.org>
21906
21907         localename: More tests.
21908         * tests/test-localename.c (SIZEOF): New macro.
21909         (categories): New variable.
21910         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21911         test_locale_name_default): Add test w.r.t. thread locale.
21912         (test_locale_name_thread): New function.
21913         (main): Invoke it.
21914
21915         localename: Make aware of thread locale.
21916         * lib/localename.h (gl_locale_name_thread): New declaration.
21917         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21918         behaviour with respect to thread locale.
21919         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21920         <langinfo.h>, glthread/lock.h.
21921         (SIZE_BITS): New macro.
21922         (string_hash): New function.
21923         (struct hash_node): New type.
21924         (HASH_TABLE_SIZE): New macro.
21925         (struniq_hash_table, struniq_lock): New variables.
21926         (struniq): New function.
21927         (gl_locale_name_thread): New function.
21928         (gl_locale_name): Invoke it.
21929         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21930         * modules/localename (Depends-on): Add lock.
21931         Reported by Mike Gran <spk121@yahoo.com>.
21932
21933 2009-12-23  Eric Blake  <ebb9@byu.net>
21934
21935         va-args: new module
21936         * modules/va-args: New file.
21937         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21938         * MODULES.html.sh (Core language properties): Mention it.
21939
21940         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21941         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21942         named alias for __attribute__((__unused__)).
21943         * lib/chown.c: Update client.
21944         * lib/fchmodat.c: Likewise.
21945         * lib/fts.c: Likewise.
21946         * lib/getdate.y: Likewise.
21947         * lib/getgroups.c: Likewise.
21948         * lib/getopt.c: Likewise.
21949         * lib/getugroups.c: Likewise.
21950         * lib/mkdir.c: Likewise.
21951         * lib/mkfifo.c: Likewise.
21952         * lib/mkfifoat.c: Likewise.
21953         * lib/mknod.c: Likewise.
21954         * lib/mknodat.c: Likewise.
21955         * lib/readlink.c: Likewise.
21956         * lib/se-context.in.h: Likewise.
21957         * lib/se-selinux.in.h: Likewise.
21958         * lib/sockets.c: Likewise.
21959         * lib/symlink.c: Likewise.
21960         * lib/symlinkat.c: Likewise.
21961         * lib/unicodeio.c: Likewise.
21962         * lib/unistr.h: Likewise.
21963         * tests/test-areadlink.c: Likewise.
21964         * tests/test-areadlinkat.c: Likewise.
21965         * tests/test-filenamecat.c: Likewise.
21966         * tests/test-fseeko.c: Likewise.
21967         * tests/test-ftello.c: Likewise.
21968         * tests/test-getdate.c: Likewise.
21969         * tests/test-getgroups.c: Likewise.
21970         * tests/test-gethostname.c: Likewise.
21971         * tests/test-quotearg.c: Likewise.
21972         * tests/test-version-etc.c: Likewise.
21973         * tests/test-xalloc-die.c: Likewise.
21974         * tests/test-xfprintf-posix.c: Likewise.
21975         * tests/test-xprintf-posix.c: Likewise.
21976         * tests/test-xvasprintf.c: Likewise.
21977
21978         tests: avoid compiler warnings
21979         * tests/test-fcntl.c (main): Delete unused parameters.
21980         * tests/test-freopen-safer.c (main): Likewise.
21981         * tests/test-xalloc-die.c (main): Mark unused parameters.
21982         * tests/test-fseeko.c (main): Likewise.
21983         * tests/test-ftello.c (main): Likewise.
21984         * tests/test-nanosleep.c (main): Avoid declaration warning.
21985         * tests/test-sleep.c (main): Likewise.
21986         * tests/test-unsetenv.c (main): Silence warning about string
21987         literal.
21988         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21989
21990 2009-12-23  Bruno Haible  <bruno@clisp.org>
21991
21992         * tests/test-localename.c (test_locale_name): New function, extracted
21993         from main. Also test mixed situations.
21994         (test_locale_name_posix, test_locale_name_environ,
21995         test_locale_name_default): New functions.
21996         (main): Invoke them all.
21997         * modules/localename-tests (configure.ac): Test for newlocale.
21998
21999 2009-12-23  Bruno Haible  <bruno@clisp.org>
22000
22001         unistd: Ensure getcwd gets declared before being overridden.
22002         * lib/unistd.in.h: Conditionally include <io.h>.
22003
22004 2009-12-22  Bruno Haible  <bruno@clisp.org>
22005
22006         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22007         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22008         (gl_WCHAR_H): Invoke it.
22009         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22010         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22011         Reported by Karl Berry <karl@freefriends.org>.
22012
22013 2009-12-22  Eric Blake  <ebb9@byu.net>
22014
22015         math, unistd: avoid redundant includes
22016         * lib/math.in.h (isnan): No need to re-include <math.h>.
22017         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22018
22019         getsubopt: work around cygwin bug
22020         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22021         avoid conflicting with system getsubopt.
22022         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22023         bug.
22024
22025         getopt: synchronize from glibc
22026         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22027         parameter order.  Adjust all callers.
22028         (_getopt_internal_r, main): Adjust quoting in error messages.
22029         Drop considerations for outdated POSIX 1003.2 error message.
22030         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22031         callers.
22032         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22033
22034         test-getopt: test stderr behavior
22035         * modules/getopt-posix-tests (Depends-on): Add dup2.
22036         * tests/test-getopt.c (ASSERT): Avoid stderr.
22037         (main): Move stderr to a temporary file.
22038         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22039         Instead, add parameter to inform caller if output occurred.
22040         (test_getopt): Adjust all existing tests to expect silence, and
22041         add new tests of leading ":".
22042         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22043         glibc shortcomings with leading "-:" or "+:" in optstring.
22044         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22045         Likewise.
22046         * doc/posix-functions/getopt.texi (getopt): Likewise.
22047
22048         test-getopt: enhance test
22049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22050         supports optind=0.
22051         * tests/test-getopt.c (OPTIND_MIN): Move...
22052         * tests/test-getopt.h (OPTIND_MIN): ...here.
22053         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22054         Require that optind=0 works, since modern BSD supports it in
22055         addition to optreset, and since coreutils expects it.
22056         (test_getopt_long_only): New test.
22057         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22058         glibc shortcomings with 'W;', and enforcement of optind=0.
22059         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22060         Likewise.
22061
22062 2009-12-21  Bruno Haible  <bruno@clisp.org>
22063
22064         localename: Improvements for MacOS X and Cygwin.
22065         * lib/localename.h (gl_locale_name_environ): New declaration.
22066         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22067         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22068         (gl_locale_name_posix): Invoke it.
22069         (gl_locale_name_default): Add comments. Use Windows native API also on
22070         Cygwin.
22071
22072 2009-12-21  Bruno Haible  <bruno@clisp.org>
22073
22074         Update list of Win32 locale ids.
22075         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22076         (LANG_SAMI): Renamed from LANG_SAAMI.
22077         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22078         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22079         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22080         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22081         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22082         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22083         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22084         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22085         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22086         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22087         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22088         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22089         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22090         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22091         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22092         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22093         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22094         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22095         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22096         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22097         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22098         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22099         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22100         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22101         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22102         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22103         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22104         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22105         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22106         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22107         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22108         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22109         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22110         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22111         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22112         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22113         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22114         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22115         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22116         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22117         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22118         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22119         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22120         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22121         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22122         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22123         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22124         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22125         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22126         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22127         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22128         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22129         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22130         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22131         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22132         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22133         Add more languages and countries for Sami, Sorbian. Add more countries
22134         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22135         for Pashto. Change country for Syriac, Tswana.
22136
22137 2009-12-21  Eric Blake  <ebb9@byu.net>
22138
22139         test-utimens: avoid spurious failure
22140         * tests/test-chown.h (nap): Factor...
22141         * tests/nap.h: ...into new file.
22142         * tests/test-lchown.h (nap): Avoid duplication.
22143         * tests/test-utimens-common.h (nap): Use shared implementation,
22144         necessary on file systems with 1-second resolution.
22145         * modules/chown-tests (Files): Include new file.
22146         * modules/fdutimensat-tests (Files): Likewise.
22147         * modules/futimens-tests (Files): Likewise.
22148         * modules/lchown-tests (Files): Likewise.
22149         * modules/openat-tests (Files): Likewise.
22150         * modules/utimens-tests (Files): Likewise.
22151         * modules/utimensat-tests (Files): Likewise.
22152
22153 2009-12-19  Eric Blake  <ebb9@byu.net>
22154
22155         futimens, utimensat: work around Linux bug
22156         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22157         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22158         * lib/utimensat.c (rpl_utimensat): Work around it.
22159         * lib/futimens.c (rpl_futimens): Adjust comment.
22160
22161         utimens: work around Linux ctime bug
22162         * lib/utimens.c (detect_ctime_bug): New helper function.
22163         (update_timespec): Differentiate between workaround needed for
22164         this bug vs. what is needed for systems that lack utimensat.
22165         (fdutimens, lutimens): Work around bug.
22166
22167         utimens: check for ctime update
22168         * tests/test-utimens-common.h (check_ctime): Define.
22169         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22170         * tests/test-futimens.h (test_futimens): Likewise.
22171         * tests/test-lutimens.h (test_lutimens): Likewise.
22172         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22173         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22174
22175 2009-12-19  Bruno Haible  <bruno@clisp.org>
22176
22177         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22178         * tests/test-dprintf-posix2.sh: New file.
22179         * tests/test-dprintf-posix2.c: New file.
22180         * modules/dprintf-posix-tests (Files): Add them.
22181         (configure.ac): Check for getrlimit and setrlimit.
22182         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22183
22184 2009-12-19  Bruno Haible  <bruno@clisp.org>
22185
22186         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22187         * tests/test-fprintf-posix3.sh: New file.
22188         * tests/test-fprintf-posix3.c: New file.
22189         * modules/fprintf-posix-tests (Files): Add them.
22190         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22191
22192 2009-12-19  Eric Blake  <ebb9@byu.net>
22193
22194         dirfd: fix prototype
22195         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22196         * lib/dirfd.c (dirfd): Likewise.
22197
22198         canonicalize: reduce memory usage
22199         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22200         allocation to size.
22201         Reported by Solar Designer <solar@openwall.com>.
22202
22203 2009-12-19  Bruno Haible  <bruno@clisp.org>
22204
22205         New module attribute 'Applicability'.
22206         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22207         * gnulib-tool: New option --extract-applicability.
22208         (func_usage): Document it.
22209         (sed_extract_prog): Recognize it.
22210         (func_get_applicability): New function.
22211         (func_import): Generalize handling of 'link-warning' module.
22212         * modules/link-warning (Applicability): New section.
22213         * modules/arg-nonnull (Applicability): New section.
22214         Repoted by Simon Josefsson <simon@josefsson.org>.
22215
22216 2009-12-19  Bruno Haible  <bruno@clisp.org>
22217
22218         fflush: tweak
22219         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22220         * lib/fseeko.c (rpl_fseeko): Likewise.
22221
22222 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22223
22224         * lib/gl_list.h: Fix typo in comment.
22225
22226 2009-12-16  Eric Blake  <ebb9@byu.net>
22227
22228         fcntl: use to simplify other modules
22229         * modules/cloexec (Depends-on): Add fcntl.
22230         * modules/fchdir (Depends-on): Likewise.
22231         * modules/fd-safer-flag (Depends-on): Likewise.
22232         * modules/unistd-safer (Depends-on): Likewise.
22233         * modules/dup3 (configure.ac): Set module indicator.
22234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22235         missing.
22236         * lib/fchdir.c (_gl_register_dup): Fix comment.
22237         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22238         * lib/dup-safer.c (dup_safer): Likewise.
22239         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22240         * lib/dup3.c (dup3): Likewise.
22241         * tests/test-fchdir.c (main): Enhance test.
22242         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22243
22244         fcntl: port portions of fcntl to mingw
22245         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22246         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22247         replacement for mingw.
22248         * modules/fcntl (Description): Update.
22249         (Depends-on): Add dup2.
22250         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22251         * modules/fcntl-h (Makefile.am): Substitute it.
22252         * lib/fcntl.in.h (fcntl): Update declaration.
22253         (F_DUPFD, F_GETFD): New macros, when needed.
22254         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22255         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22256         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22257         we now guarantee.
22258
22259         fcntl: work around cygwin bug in F_DUPFD
22260         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22261         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22262         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22263         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22264         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22265
22266         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22267         * modules/fcntl (Files): List new files.
22268         (configure.ac): Run a test.
22269         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22270         * lib/fcntl.c (rpl_fcntl): Likewise.
22271         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22272         (gl_FCNTL_H): Always replace fcntl.h.
22273         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22274         * lib/fcntl.in.h (fcntl): Declare replacement.
22275         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22276         needed, plus a witness.
22277         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22278         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22279         * tests/test-fcntl.c: New file.
22280         * modules/fcntl-tests: Likewise.
22281
22282         binary-io: avoid potential compilation warning
22283         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22284         directives.
22285
22286         fflush: avoid compilation error on NetBSD
22287         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22288         between off_t and fpos_t, since the latter is sometimes a struct.
22289         * lib/fseeko.c (rpl_fseeko): Likewise.
22290         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22291
22292 2009-12-15  Eric Blake  <ebb9@byu.net>
22293
22294         fcntl-h, stdio, sys_ioctl: fix declarations
22295         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22296         function must not take arguments.
22297         * lib/sys_ioctl.in.h (ioctl): Likewise.
22298         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22299         (open): Add a link warning.
22300
22301 2009-12-15  Jim Meyering  <meyering@redhat.com>
22302
22303         areadlink, areadlink-with-size: relax license to LGPLv2+
22304         * modules/areadlink (License): Relax to LGPLv2+.
22305         * modules/areadlink-with-size (License): Likewise.
22306
22307 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22308             Bruno Haible  <bruno@clisp.org>
22309
22310         *printf: Fix memory leak.
22311         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22312         * lib/vfprintf.c (vfprintf): Likewise.
22313         * lib/dprintf.c (dprintf): Likewise.
22314         * lib/vdprintf.c (vdprintf): Likewise.
22315
22316 2009-12-14  Eric Blake  <ebb9@byu.net>
22317
22318         accept4: adjust module dependencies
22319         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22320
22321         utimens: one more try at avoiding compiler warning
22322         * lib/utimens.c (lutimens): Lower scope of result.
22323
22324 2009-12-13  Bruno Haible  <bruno@clisp.org>
22325
22326         Move the malloc checking from module 'list' to new module 'xlist'.
22327         * modules/xlist: New file.
22328         * lib/gl_xlist.h: New file.
22329         * lib/gl_xlist.c: New file.
22330         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22331         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22332         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22333         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22334         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22335         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22336         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22337         gl_sortedlist_nx_add): New declarations.
22338         (struct gl_list_implementation): Rename and change methods accordingly.
22339         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22340         (gl_list_nx_create): Renamed from gl_list_create.
22341         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22342         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22343         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22344         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22345         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22346         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22347         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22348         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22349         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22350         gl_list_create_empty.
22351         (gl_list_nx_create): Renamed from gl_list_create.
22352         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22353         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22354         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22355         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22356         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22357         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22358         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22359         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22360         * lib/gl_array_list.c: Don't include xalloc.h.
22361         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22362         NULL upon out-of-memory.
22363         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22364         out-of-memory.
22365         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22366         Change return type to 'int'.
22367         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22368         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22369         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22370         upon out-of-memory.
22371         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22372         upon out-of-memory.
22373         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22374         upon out-of-memory.
22375         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22376         upon out-of-memory.
22377         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22378         out-of-memory.
22379         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22380         Update.
22381         (gl_array_list_implementation): Update.
22382         * lib/gl_carray_list.c: Don't include xalloc.h.
22383         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22384         Return NULL upon out-of-memory.
22385         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22386         out-of-memory.
22387         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22388         Change return type to 'int'.
22389         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22390         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22391         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22392         upon out-of-memory.
22393         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22394         upon out-of-memory.
22395         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22396         out-of-memory.
22397         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22398         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22399         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22400         Update.
22401         (gl_carray_list_implementation): Update.
22402         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22403         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22404         gl_linked_create_empty. Return NULL upon out-of-memory.
22405         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22406         out-of-memory.
22407         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22408         Change return type to 'int'. Return -1 upon out-of-memory.
22409         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22410         out-of-memory.
22411         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22412         upon out-of-memory.
22413         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22414         upon out-of-memory.
22415         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22416         NULL upon out-of-memory.
22417         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22418         upon out-of-memory.
22419         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22420         out-of-memory.
22421         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22422         Update.
22423         * lib/gl_linked_list.c: Don't include xalloc.h.
22424         (gl_linked_list_implementation): Update.
22425         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22426         (add_to_bucket): Change return type to 'int'.
22427         (gl_linkedhash_list_implementation): Update.
22428         * lib/gl_anytree_list1.h (free_subtree): New function.
22429         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22430         gl_tree_create_empty. Return NULL upon out-of-memory.
22431         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22432         Change return type to 'int'. Return -1 upon out-of-memory.
22433         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22434         out-of-memory.
22435         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22436         (gl_tree_remove_node): New function, moved here from
22437         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22438         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22439         Update.
22440         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22441         malloc, not xmalloc. Return NULL upon out-of-memory.
22442         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22443         out-of-memory.
22444         (gl_tree_remove_node_from_tree): New function, extracted from
22445         gl_tree_remove_node.
22446         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22447         upon out-of-memory.
22448         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22449         out-of-memory.
22450         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22451         upon out-of-memory.
22452         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22453         upon out-of-memory.
22454         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22455         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22456         not xmalloc. Return NULL upon out-of-memory.
22457         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22458         out-of-memory.
22459         (gl_tree_remove_node_from_tree): New function, extracted from
22460         gl_tree_remove_node.
22461         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22462         upon out-of-memory.
22463         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22464         out-of-memory.
22465         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22466         upon out-of-memory.
22467         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22468         upon out-of-memory.
22469         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22470         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22471         gl_anytree_list1.h before gl_anyavltree_list2.h.
22472         (gl_avltree_list_implementation): Update.
22473         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22474         gl_anytree_list1.h before gl_anyavltree_list2.h.
22475         (gl_rbtree_list_implementation): Update.
22476         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22477         Change return type to 'int'. Return -1 upon out-of-memory. Use
22478         __builtin_expect.
22479         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22480         (gl_avltreehash_list_implementation): Update.
22481         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22482         (gl_rbtreehash_list_implementation): Update.
22483         * modules/array-list (Depends-on): Remove xalloc.
22484         * modules/carray-list (Depends-on): Likewise.
22485         * modules/linked-list (Depends-on): Likewise.
22486         * modules/linkedhash-list (Depends-on): Likewise.
22487         * modules/avltree-list (Depends-on): Likewise.
22488         * modules/rbtree-list (Depends-on): Likewise.
22489         * modules/avltreehash-list (Depends-on): Likewise.
22490         * modules/rbtreehash-list (Depends-on): Likewise.
22491
22492         * modules/xsublist: New file.
22493         * lib/gl_xsublist.h: New file.
22494         * lib/gl_xsublist.c: New file.
22495         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22496         (gl_sublist_nx_create): New declaration.
22497         * lib/gl_sublist.c: Don't include xalloc.h.
22498         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22499         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22500         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22501         Change return type to 'int'. Return -1 upon out-of-memory.
22502         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22503         upon out-of-memory.
22504         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22505         NULL upon out-of-memory.
22506         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22507         upon out-of-memory.
22508         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22509         NULL upon out-of-memory.
22510         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22511         NULL upon out-of-memory.
22512         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22513         upon out-of-memory.
22514         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22515         (gl_sublist_list_implementation): Update.
22516         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22517         upon out-of-memory.
22518         * modules/sublist (Depends-on): Remove xalloc.
22519
22520         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22521         * tests/test-carray_list.c: Likewise.
22522         * tests/test-linked_list.c: Likewise.
22523         * tests/test-linkedhash_list.c: Likewise.
22524         * tests/test-avltree_list.c: Likewise.
22525         * tests/test-rbtree_list.c: Likewise.
22526         * tests/test-avltreehash_list.c: Likewise.
22527         * tests/test-rbtreehash_list.c: Likewise.
22528         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22529         * modules/carray-list-tests (Makefile.am): Likewise.
22530         * modules/linked-list-tests (Makefile.am): Likewise.
22531         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22532         * modules/avltree-list-tests (Makefile.am): Likewise.
22533         * modules/rbtree-list-tests (Makefile.am): Likewise.
22534         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22535         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22536
22537         * NEWS: Mention the changes.
22538
22539         * lib/clean-temp.c: Include gl_xlist.h.
22540         * modules/clean-temp (Depends-on): Add xlist.
22541
22542         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22543         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22544
22545         * tests/test-array_oset.c: Include gl_xlist.h.
22546         * modules/array-oset-tests (Depends-on): Add xlist.
22547
22548         Reported by José E. Marchesi <jemarch@gnu.org>.
22549
22550 2009-12-13  Bruno Haible  <bruno@clisp.org>
22551
22552         Move the malloc checking from module 'oset' to new module 'xoset'.
22553         * modules/xoset: New file.
22554         * lib/gl_xoset.h: New file.
22555         * lib/gl_xoset.c: New file.
22556         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22557         declarations.
22558         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22559         (struct gl_oset_implementation): Rename and change methods accordingly.
22560         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22561         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22562         'int'. Mark as __warn_unused_result__.
22563         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22564         gl_oset_create_empty.
22565         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22566         'int'.
22567         * lib/gl_array_oset.c: Don't include xalloc.h.
22568         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22569         malloc, not xmalloc.
22570         (grow): Change return type to 'int'. Don't call xalloc_die.
22571         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22572         to 'int'.
22573         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22574         'int'.
22575         (gl_array_oset_implementation): Update.
22576         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22577         gl_tree_create_empty.
22578         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22579         'int'.
22580         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22581         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22582         xmalloc.
22583         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22584         not xmalloc.
22585         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22586         xmalloc.
22587         (gl_avltree_oset_implementation): Update.
22588         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22589         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22590         xmalloc.
22591         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22592         not xmalloc.
22593         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22594         xmalloc.
22595         (gl_rbtree_oset_implementation): Update.
22596         * modules/array-oset (Depends-on): Remove xalloc.
22597         * modules/avltree-oset (Depends-on): Likewise.
22598         * modules/rbtree-oset (Depends-on): Likewise.
22599         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22600         * tests/test-avltree_oset.c: Likewise.
22601         * tests/test-rbtree_oset.c: Likewise.
22602         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22603         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22604         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22605         * NEWS: Mention the change.
22606
22607 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22608
22609         maint.mk: allow a project to override release-prep commands
22610         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22611         commands into a new rule.
22612         (release-prep): New rule.
22613         (release-prep-hook): New overridable variable.
22614
22615 2009-12-13  Bruno Haible  <bruno@clisp.org>
22616
22617         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22618
22619 2009-12-13  Jim Meyering  <meyering@redhat.com>
22620
22621         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22622         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22623
22624 2009-12-12  Bruno Haible  <bruno@clisp.org>
22625
22626         duplocale: Tweak.
22627         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22628
22629 2009-12-12  Karl Berry  <karl@gnu.org>
22630
22631         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22632
22633 2009-12-12  Bruno Haible  <bruno@clisp.org>
22634
22635         * m4/po.m4: Undo incorrect untabification.
22636
22637 2009-12-12  Bruno Haible  <bruno@clisp.org>
22638
22639         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22640         * modules/c-strtod (Depends-on): Add locale.
22641         * modules/c-strtold (Depends-on): Likewise.
22642
22643 2009-12-12  Bruno Haible  <bruno@clisp.org>
22644
22645         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22646
22647 2009-12-11  Eric Blake  <ebb9@byu.net>
22648
22649         setenv: relax requirement in light of POSIX ruling
22650         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22651         not NULL.
22652         * tests/test-setenv.c (main): Relax test.
22653         * tests/test-unsetenv.c (main): Likewise.
22654         * doc/posix-functions/setenv.texi (setenv): Document this.
22655         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22656
22657 2009-12-11  Bruno Haible  <bruno@clisp.org>
22658
22659         New module 'fd-safer-flag'.
22660         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22661         * lib/dup-safer.c (dup_safer_flag): Remove function.
22662         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22663         * lib/fd-safer.c (fd_safer_flag): Remove function.
22664         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22665         * modules/cloexec (configure.ac): Drop indicator macro.
22666         * modules/fd-safer-flag: New file.
22667         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22668         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22669         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22670
22671 2009-12-11  Bruno Haible  <bruno@clisp.org>
22672
22673         Tests for module 'nl_langinfo'.
22674         * modules/nl_langinfo-tests: New file.
22675         * tests/test-nl_langinfo.sh: New file.
22676         * tests/test-nl_langinfo.c: New file.
22677
22678         New module 'nl_langinfo'.
22679         * lib/nl_langinfo.c: New file.
22680         * m4/nl_langinfo.m4: New file.
22681         * modules/nl_langinfo: New file.
22682         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22683
22684 2009-12-11  Bruno Haible  <bruno@clisp.org>
22685
22686         Tests for module 'langinfo'.
22687         * modules/langinfo-tests: New file.
22688         * tests/test-langinfo.c: New file.
22689
22690         New module 'langinfo'.
22691         * lib/langinfo.in.h: New file.
22692         * m4/langinfo_h.m4: New file.
22693         * modules/langinfo: New file.
22694         * doc/posix-headers/langinfo.texi: Mention the new module.
22695
22696 2009-12-11  Bruno Haible  <bruno@clisp.org>
22697
22698         * lib/config.charset: Untabify.
22699
22700 2009-12-11  Bruno Haible  <bruno@clisp.org>
22701
22702         * modules/unistd-safer (configure.ac): Drop indicator macro.
22703
22704 2009-12-11  Bruno Haible  <bruno@clisp.org>
22705
22706         Move pipe2-safer code to its own file.
22707         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22708         * lib/pipe-safer.c (pipe2_safer): Remove function.
22709         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22710         (Makefile.am): Add it to lib_SOURCES.
22711
22712 2009-12-10  Bruno Haible  <bruno@clisp.org>
22713
22714         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22715
22716 2009-12-10  Bruno Haible  <bruno@clisp.org>
22717
22718         Declare which arguments expect non-NULL values, for GCC and clang.
22719         * build-aux/arg-nonnull.h: New file.
22720         * modules/arg-nonnull: New file.
22721         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22722         (inet_ntop, inet_pton): Use it.
22723         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22724         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22725         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22726         (open, openat): Use it.
22727         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22728         (fnmatch): Use it.
22729         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22730         (getopt, getopt_long, getopt_long_only): Use it.
22731         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22732         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22733         Use it.
22734         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22735         (iconv_open): Use it.
22736         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22737         (strtoimax, strtoumax): Use it.
22738         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22739         (duplocale): Use it.
22740         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22741         (frexp, frexpl): Use it.
22742         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22743         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22744         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22745         (tsearch, tfind, tdelete, twalk): Use it.
22746         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22747         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22748         sigpending): Use it.
22749         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22750         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22751         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22752         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22753         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22754         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22755         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22756         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22757         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22758         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22759         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22760         Use it.
22761         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22762         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22763         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22764         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22765         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22766         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22767         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22768         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22769         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22770         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22771         strtoull, unsetenv): Use it.
22772         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22773         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22774         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22775         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22776         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22777         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22778         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22779         (strcasecmp, strncasecmp): Use it.
22780         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22781         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22782         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22783         rpl_setsockopt): Use it.
22784         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22785         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22786         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22787         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22788         (gettimeofday): Use it.
22789         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22790         (times): Use it.
22791         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22792         (uname): Use it.
22793         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22794         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22795         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22796         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22797         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22798         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22799         unlinkat, write): Use it.
22800         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22801         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22802         * lib/argv-iter.h: Include arg-nonnull.h.
22803         (_ATTRIBUTE_NONNULL_): Remove macro.
22804         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22805         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22806         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22807         optimization.
22808         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22809         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22810         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22811         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22812         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22813         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22814         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22815         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22816         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22817         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22818         * modules/dirent (Depends-on): Add arg-nonnull.
22819         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22820         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22821         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22822         * modules/fnmatch (Depends-on): Add arg-nonnull.
22823         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22824         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22825         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22826         * modules/glob (Depends-on): Add arg-nonnull.
22827         (Makefile.am): Insert arg-nonnull.h into glob.h.
22828         * modules/iconv_open (Depends-on): Add arg-nonnull.
22829         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22830         * modules/inttypes (Depends-on): Add arg-nonnull.
22831         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22832         * modules/locale (Depends-on): Add arg-nonnull.
22833         (Makefile.am): Insert arg-nonnull.h into locale.h.
22834         * modules/math (Depends-on): Add arg-nonnull.
22835         (Makefile.am): Insert arg-nonnull.h into math.h.
22836         * modules/netdb (Depends-on): Add arg-nonnull.
22837         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22838         * modules/search (Depends-on): Add arg-nonnull.
22839         (Makefile.am): Insert arg-nonnull.h into search.h.
22840         * modules/signal (Depends-on): Add arg-nonnull.
22841         (Makefile.am): Insert arg-nonnull.h into signal.h.
22842         * modules/spawn (Depends-on): Add arg-nonnull.
22843         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22844         * modules/stdio (Depends-on): Add arg-nonnull.
22845         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22846         * modules/stdlib (Depends-on): Add arg-nonnull.
22847         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22848         * modules/string (Depends-on): Add arg-nonnull.
22849         (Makefile.am): Insert arg-nonnull.h into string.h.
22850         * modules/strings (Depends-on): Add arg-nonnull.
22851         (Makefile.am): Insert arg-nonnull.h into strings.h.
22852         * modules/sys_socket (Depends-on): Add arg-nonnull.
22853         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22854         * modules/sys_stat (Depends-on): Add arg-nonnull.
22855         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22856         * modules/sys_time (Depends-on): Add arg-nonnull.
22857         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22858         * modules/sys_times (Depends-on): Add arg-nonnull.
22859         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22860         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22861         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22862         * modules/time (Depends-on): Add arg-nonnull.
22863         (Makefile.am): Insert arg-nonnull.h into time.h.
22864         * modules/unistd (Depends-on): Add arg-nonnull.
22865         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22866         * modules/wchar (Depends-on): Add arg-nonnull.
22867         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22868         * modules/argv-iter (Depends-on): Add arg-nonnull.
22869         * tests/test-canonicalize.c (null_ptr): New function.
22870         (main): Use it.
22871         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22872         (main): Use it.
22873         * tests/test-memmem.c (null_ptr): New function.
22874         (main): Use it.
22875         Reported by Jim Meyering.
22876
22877 2009-12-10  Bruno Haible  <bruno@clisp.org>
22878
22879         Use spaces for indentation, not tabs.
22880         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22881         * m4/*.m4: Untabify.
22882         * build-aux/*.h: Untabify.
22883         * tests/**/*.[hc]: Untabify.
22884         * README: New section "Indent with spaces, not TABs", based on
22885         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22886         * NEWS: Mention the change.
22887
22888 2009-12-10  Bruno Haible  <bruno@clisp.org>
22889
22890         pty test: Fix link error.
22891         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22892         test_pty_LDADD.
22893
22894 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22895
22896         * modules/pty: New file.
22897         * modules/pty-tests: New file.
22898         * m4/pty.m4: New file.
22899         * tests/test-pty.c: New file.
22900         * doc/glibc-headers/pty.texi: Modified.
22901         * doc/glibc-functions/forkpty.texi: Modified.
22902         * doc/glibc-functions/openpty.texi: Modified.
22903
22904 2009-12-10  Bruno Haible  <bruno@clisp.org>
22905
22906         Avoid syntax error in C++ mode.
22907         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22908
22909 2009-12-10  Bruno Haible  <bruno@clisp.org>
22910
22911         Use sed with option -e.
22912         * gnulib-tool (func_version, func_emit_copyright_notice,
22913         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22914         option -e to sed.
22915         * modules/link-warning (Makefile.am): Likewise.
22916
22917 2009-12-10  Jim Meyering  <meyering@redhat.com>
22918
22919         mgetgroups: do not write bytes beyond end of malloc'd buffer
22920         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22921         username, we call getgroups with a one-element-shorter buffer,
22922         but still told it the length was original, max_n_groups.
22923
22924 2009-12-09  Eric Blake  <ebb9@byu.net>
22925
22926         cloexec: relax license
22927         * modules/cloexec (Maintainer): Add myself.
22928         (License): Use LGPL, not GPL.
22929
22930         link-warning: optimize generation
22931         * modules/link-warning (Makefile.am): Reduce process usage.
22932
22933 2009-12-09  Bruno Haible  <bruno@clisp.org>
22934
22935         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22936         workaround was added on 2009-11-17.
22937
22938 2009-12-09  Jim Meyering  <meyering@redhat.com>
22939             Bruno Haible  <bruno@clisp.org>
22940
22941         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22942         * modules/link-warning (Makefile.am): Make the comment-removing sed
22943         command more robust in the face of bootstrap-prepended comment lines.
22944
22945 2009-12-09  Bruno Haible  <bruno@clisp.org>
22946
22947         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22948         most one group.
22949
22950 2009-12-09  Simon Josefsson <simon@josefsson.org>
22951             Bruno Haible  <bruno@clisp.org>
22952
22953         * build-aux/link-warning.h: Add copyright notice.
22954         * modules/link-warning (Makefile.am): Generate link-warning.h from
22955         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22956         * NEWS: Mention change in link-warning module.
22957         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22958         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22959         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22960         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22961         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22962         * modules/math (Makefile.am): Add dependency to math.h.
22963         * modules/search (Makefile.am): Add dependency to search.h.
22964         * modules/signal (Makefile.am): Add dependency to signal.h.
22965         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22966         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22967         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22968         * modules/string (Makefile.am): Add dependency to string.h.
22969         * modules/strings (Makefile.am): Add dependency to strings.h.
22970         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22971         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22972         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22973         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22974         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22975         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22976         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22977         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22978         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22979
22980 2009-12-09  Bruno Haible  <bruno@clisp.org>
22981
22982         fchdir: Optimize away rpl_fstat when possible.
22983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22984         REPLACE_OPEN_DIRECTORY.
22985         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22986
22987 2009-12-09  Bruno Haible  <bruno@clisp.org>
22988
22989         * lib/fchdir.c: Update comment.
22990
22991 2009-12-09  Bruno Haible  <bruno@clisp.org>
22992
22993         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22994
22995 2009-12-08  Eric Blake  <ebb9@byu.net>
22996
22997         fchdir: avoid memory leak on re-registration.
22998         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22999
23000 2009-12-08  Jim Meyering  <meyering@redhat.com>
23001
23002         init.sh: avoid Solaris 10 /bin/sh portability problem
23003         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23004         sourced script:
23005           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23006           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23007           bar
23008         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23009         and two tests used that idiom.
23010         * tests/init.sh: Update suggested usage comments.
23011         (path_prepend_): New function, to be used in place
23012         of the --src-path=DIR option.
23013         (setup_): Move PATH-prepending code into path_prepend_.
23014         * tests/test-pread.sh: Adapt to new usage.
23015         * tests/test-xalloc-die.sh: Likewise.
23016
23017 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23018
23019         * doc/gnulib.texi (Glibc pty.h): Add.
23020         * doc/glibc-functions/forkpty.texi: Add.
23021         * doc/glibc-functions/openpty.texi: Add.
23022         Suggested by Bruno Haible.
23023
23024 2009-12-08  Eric Blake  <ebb9@byu.net>
23025
23026         fchdir: fix logic bugs
23027         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23028         * tests/test-fchdir.c (main): Enhance test.
23029         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23030         is in use.
23031
23032         dup2: fix logic bugs
23033         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23034         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23035         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23036         exists.
23037         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23038
23039 2009-12-07  Eric Blake  <ebb9@byu.net>
23040
23041         unlink: fix m4 detection
23042         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23043
23044         unistd-safer: add unit test
23045         * modules/unistd-safer-tests: New file.
23046         * tests/test-dup-safer.c: Likewise.
23047         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23048         * tests/test-dup2.c (setmode): Likewise.
23049         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23050
23051         cloexec: preserve text vs. binary across dup_cloexec
23052         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23053         mode.
23054         * modules/dup2-tests (Depends-on): Add binary-io.
23055         * modules/cloexec-tests (Depends-on): Likewise.
23056         * tests/test-dup2.c (setmode, is_mode): New helpers.
23057         (main): Add tests that translation mode is preserved.
23058         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23059         Reported by Bruno Haible.
23060
23061         mgetgroups: reduce duplicate listings
23062         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23063         resulting array.
23064         * tests/test-chown.h (test_chown): Simplify client.
23065         * tests/test-lchown.h (test_lchown): Likewise.
23066
23067 2009-12-06  Bruno Haible  <bruno@clisp.org>
23068
23069         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23070         value.
23071
23072 2009-12-06  Bruno Haible  <bruno@clisp.org>
23073
23074         * lib/progname.c: Include stdio.h, stdlib.h.
23075         (set_program_name): Reject a NULL argument.
23076
23077 2009-12-05  Eric Blake  <ebb9@byu.net>
23078
23079         pipe2-safer: new module
23080         * modules/pipe2-safer: New file.
23081         * lib/unistd-safer.h (pipe2_safer): New prototype.
23082         * lib/unistd--.h (pipe2): New wrapper.
23083         * lib/pipe-safer.c (pipe2_safer): New function.
23084         * modules/pipe (Depends-on): Add pipe2-safer.
23085         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23086
23087         stdlib-safer: preserve cloexec flag for mkostemp[s]
23088         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23089         fd_safer_flag.
23090
23091         unistd-safer: allow preservation of cloexec status via flag
23092         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23093         prototypes.
23094         * lib/dup-safer.c (dup_safer_flag): New function.
23095         * lib/fd-safer.c (fd_safer_flag): Likewise.
23096         * modules/cloexec (configure.ac): Set witness.
23097
23098         test-dup2: enhance test
23099         * modules/dup2-tests (Depends-on): Add cloexec.
23100         * tests/test-dup2.c (main): Enhance test.
23101
23102         cloexec: add dup_cloexec
23103         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23104         header and comments.
23105         * lib/cloexec.c (set_cloexec_flag): Add comments.
23106         (dup_cloexec): New function, with mingw implementation borrowed
23107         from...
23108         * lib/w32spawn.h (dup_noinherit): ...here.
23109         * modules/execute (Depends-on): Add cloexec.
23110         * modules/pipe (Depends-on): Likewise.
23111         * modules/cloexec (Depends-on): Add dup2.
23112         * modules/cloexec-tests (Files): New file.
23113         * tests/test-cloexec.c: Likewise.
23114
23115         test-xalloc-die: fix test for mingw
23116         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23117         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23118         directory and .exe suffix off argv[0] output.
23119
23120         test-fseeko: fix test for mingw
23121         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23122         than undefining fseek, so test will pass on mingw.
23123
23124 2009-12-05  Bruno Haible  <bruno@clisp.org>
23125
23126         * lib/progname.h (set_program_name): Clarify specification.
23127         * lib/progname.c (set_program_name): Likewise.
23128         Reported by Jim Meyering.
23129
23130 2009-12-05  Jim Meyering  <meyering@redhat.com>
23131
23132         maint.mk: backslash-escape parens in default regexp
23133         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23134         backslash-escape the literal parentheses.
23135
23136         maint.mk: news-date-check: use grep -E
23137         * top/maint.mk (today): Define a Make variable, not a...
23138         (news-date-check): ...shell variable.
23139         (news-date-regexp): Use the Make variable.
23140         Use grep's -E option.  Change the failing diagnostic to mention
23141         the variable, $(news-date-regexp).
23142
23143 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23144
23145         maintainer-makefile: allow customization of NEWS entry format
23146         * top/maint.mk (news-date-regexp): New overridable variable.
23147         (news-date-check): Use it.
23148
23149 2009-12-04  Eric Blake  <ebb9@byu.net>
23150
23151         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23152         * lib/mgetgroups.h (xgetgroups): New prototype.
23153         * lib/mgetgroups.c (xgetgroups): New wrapper.
23154         (mgetgroups): Handle ENOSYS.
23155         * modules/mgetgroups (Depends-on): Add realloc.
23156         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23157
23158         mgetgroups: avoid argument promotion issues with -1
23159         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23160         for invalid gid_t.
23161         * tests/test-chown.h (getegid, test_chown): Likewise.
23162         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23163
23164 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23165
23166         exclude: Fix header file problems.
23167         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23168
23169 2009-12-01  Jim Meyering  <meyering@redhat.com>
23170
23171         fts: fts_open: do not let an empty string cause immediate failure
23172         This is required in support of GNU rm, for which the command
23173         "rm A '' B" must process and remove both A and B, in spite of
23174         the empty string argument.
23175         * lib/fts.c (fts_open): Do not let the presence of an empty string
23176         cause fts_open to fail immediately.  Most fts-using tools must be
23177         able to process all arguments, in order, and can be expected to
23178         diagnose such arguments themselves.
23179
23180 2009-11-30  Eric Blake  <ebb9@byu.net>
23181
23182         utimens: fix compilation error
23183         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23184         Declare variable at right scope.
23185
23186 2009-11-29  Jim Meyering  <meyering@redhat.com>
23187
23188         bootstrap: handle perl-5.11's changed --version output
23189         * build-aux/bootstrap (get_version): Handle perl separately,
23190         since perl-5.11's --version output is different.
23191
23192 2009-11-28  Jim Meyering  <meyering@redhat.com>
23193
23194         userspec: depend on the inttostr module, too
23195         * modules/userspec (Depends-on): Add inttostr.
23196
23197         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23198         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23199         number of MAXUID when it evaluates to (uid_t) -1.
23200         Likewise for group ID.  Reported by Matt McCutchen in
23201         <http://savannah.gnu.org/bugs/?28113>
23202
23203         userspec: reformat to use spaces, not TABs
23204         * lib/userspec.c: Expand TABs to spaces.
23205         Add Emacs' "indent-tabs-mode: nil" hint.
23206
23207 2009-11-27  Eric Blake  <ebb9@byu.net>
23208
23209         getopt-gnu: flush out another BSD bug
23210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23211         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23212         flush out BSD bug.
23213         * tests/test-getopt.h (test_getopt): End lists with NULL.
23214         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23215         (test_getopt_long_posix): Enhance test.
23216         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23217         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23218         getopt-gnu.
23219         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23220         Likewise.
23221
23222 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23223
23224         * modules/idpriv-droptemp-tests (Notice): Fix text.
23225
23226 2009-11-27  Jim Meyering  <meyering@redhat.com>
23227
23228         test-xalloc-die: avoid spurious failure due to libtool argv difference
23229         In a libtool-enabled project, this test would fail due to a difference
23230         in the emitted program name, e.g.,
23231         -test-xalloc-die: memory exhausted
23232         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23233         Use program to avoid that.
23234         * modules/xalloc-die-tests (Depends-on): Add progname.
23235         * tests/test-xalloc-die.c: Include progname.h".
23236         (program_name): Remove decl.
23237         (main): Call set_program_name.
23238         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23239
23240 2009-11-26  Richard Jones  <rjones@redhat.com>
23241
23242         w32sock: leave win32 error in place.
23243         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23244
23245 2009-11-26  Eric Blake  <ebb9@byu.net>
23246
23247         init.sh: suggest to use skip_ and fail_ functions in comments
23248         * tests/init.sh: Add a sentence.
23249
23250 2009-11-25  Bruno Haible  <bruno@clisp.org>
23251
23252         init.sh: add documentation in comments
23253         * tests/init.sh: Add some developer and user documentation.
23254
23255 2009-11-26  Jim Meyering  <meyering@redhat.com>
23256
23257         init.sh: accommodate even those who specify bogus srcdir manually
23258         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23259         configure-time tests to be sanitized, so that there is no need to
23260         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23261         (with no double quotes) suffices.  However, since tests may be
23262         invoked manually, and since you may explicitly set srcdir to the
23263         name of a directory containing spaces, do quote its uses here.
23264         * tests/test-pread.sh: Likewise.
23265         Suggested by Bruno Haible.
23266
23267         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23268         * tests/test-pread.sh: Write no data into the pipe, because
23269         test-pread actually reads none.  This avoids a diagnostic,
23270         "bash: echo: write error: Broken pipe", that arises in the unusual
23271         event something is ignoring SIGPIPE, and might be interpreted
23272         as some sort of failure.  Reported by Bruno Haible.
23273
23274 2009-11-25  Jim Meyering  <meyering@redhat.com>
23275
23276         test-pread: cover failure with ESPIPE and EINVAL
23277         * tests/test-pread.c (main): Test for failure, too.
23278         * tests/test-pread.sh: Invoke with stdin on a pipe.
23279         Suggested by Eric Blake.
23280
23281         pread: improvement and fix
23282         * modules/pread (Depends-on): Depend on lseek, for portability to
23283         e.g., mingw.  Suggested by Eric Blake.
23284         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23285
23286         unistd.in.h: correct declaration of pread
23287         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23288         Reported by Richard W.M. Jones.
23289
23290         test-pread.sh: distribute the test script
23291         * modules/pread-tests (Files): Include test-pread.sh.
23292
23293         test-pread.sh: clean up
23294         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23295         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23296         That is unnecessary, since it's always ".".
23297         Suggestion from Eric Blake.
23298
23299         test-pread.sh: make executable
23300         * tests/test-pread.sh: Set executable bit.
23301         Reported by Eric Blake.
23302
23303         correct typo in test-pread.sh
23304         * tests/test-pread.sh: Add #! line.
23305
23306         test pread
23307         * tests/test-pread.c: New file.
23308         * tests/test-pread.sh: Likewise.
23309         * modules/pread-tests: Likewise.
23310
23311         pread: new module
23312         * modules/pread: New file.
23313         * lib/unistd.in.h (pread): Define/declare.
23314         * lib/pread.c (pread): New file.
23315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23316         * modules/unistd (Makefile.am): Substitute witnesses.
23317         * doc/posix-functions/pread.texi (pread): Update.
23318         * MODULES.html.sh: Add pread.
23319
23320 2009-11-25  Jim Meyering  <meyering@redhat.com>
23321
23322         tests/init.sh: new file to be used via most *.sh tests
23323         * tests/init.sh: New file.
23324
23325 2009-11-25  Eric Blake  <ebb9@byu.net>
23326
23327         utimens: work around older Linux failure with symlinks
23328         * lib/utimens.c (lutimensat_works_really): New variable.
23329         (fdutimens, lutimens): Use it to manage kernels that support
23330         nanosecond times on files, but not on symlinks.
23331         Reported by OndÅ™ej Vašík.
23332
23333         utimes: fix configure grammar
23334         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23335
23336 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23337
23338         regex: Fix fastmap for multibyte character ranges.
23339         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23340         characters when a multibyte character range is included.
23341
23342 2009-11-22  Andy Wingo  <wingo@pobox.com>
23343
23344         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23345         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23346
23347 2009-11-24  Bruno Haible  <bruno@clisp.org>
23348
23349         doc: Most *_l functions exist in MacOS X 10.5.
23350         * doc/posix-functions/duplocale.texi: Update platforms list.
23351         * doc/posix-functions/freelocale.texi: Likewise.
23352         * doc/posix-functions/newlocale.texi: Likewise.
23353         * doc/posix-functions/uselocale.texi: Likewise.
23354         * doc/posix-functions/isalnum_l.texi: Likewise.
23355         * doc/posix-functions/isalpha_l.texi: Likewise.
23356         * doc/posix-functions/isblank_l.texi: Likewise.
23357         * doc/posix-functions/iscntrl_l.texi: Likewise.
23358         * doc/posix-functions/isdigit_l.texi: Likewise.
23359         * doc/posix-functions/isgraph_l.texi: Likewise.
23360         * doc/posix-functions/islower_l.texi: Likewise.
23361         * doc/posix-functions/isprint_l.texi: Likewise.
23362         * doc/posix-functions/ispunct_l.texi: Likewise.
23363         * doc/posix-functions/isspace_l.texi: Likewise.
23364         * doc/posix-functions/isupper_l.texi: Likewise.
23365         * doc/posix-functions/iswalnum_l.texi: Likewise.
23366         * doc/posix-functions/iswalpha_l.texi: Likewise.
23367         * doc/posix-functions/iswblank_l.texi: Likewise.
23368         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23369         * doc/posix-functions/iswctype_l.texi: Likewise.
23370         * doc/posix-functions/iswdigit_l.texi: Likewise.
23371         * doc/posix-functions/iswgraph_l.texi: Likewise.
23372         * doc/posix-functions/iswlower_l.texi: Likewise.
23373         * doc/posix-functions/iswprint_l.texi: Likewise.
23374         * doc/posix-functions/iswpunct_l.texi: Likewise.
23375         * doc/posix-functions/iswspace_l.texi: Likewise.
23376         * doc/posix-functions/iswupper_l.texi: Likewise.
23377         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23378         * doc/posix-functions/isxdigit_l.texi: Likewise.
23379         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23380         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23381         * doc/posix-functions/strcoll_l.texi: Likewise.
23382         * doc/posix-functions/strfmon_l.texi: Likewise.
23383         * doc/posix-functions/strftime_l.texi: Likewise.
23384         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23385         * doc/posix-functions/strxfrm_l.texi: Likewise.
23386         * doc/posix-functions/tolower_l.texi: Likewise.
23387         * doc/posix-functions/toupper_l.texi: Likewise.
23388         * doc/posix-functions/towctrans_l.texi: Likewise.
23389         * doc/posix-functions/towlower_l.texi: Likewise.
23390         * doc/posix-functions/towupper_l.texi: Likewise.
23391         * doc/posix-functions/wcscoll_l.texi: Likewise.
23392         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23393         * doc/posix-functions/wctrans_l.texi: Likewise.
23394         * doc/posix-functions/wctype_l.texi: Likewise.
23395         * doc/glibc-functions/strptime_l.texi: Likewise.
23396         * doc/glibc-functions/strtod_l.texi: Likewise.
23397         * doc/glibc-functions/strtof_l.texi: Likewise.
23398         * doc/glibc-functions/strtol_l.texi: Likewise.
23399         * doc/glibc-functions/strtold_l.texi: Likewise.
23400         * doc/glibc-functions/strtoll_l.texi: Likewise.
23401         * doc/glibc-functions/strtoul_l.texi: Likewise.
23402         * doc/glibc-functions/strtoull_l.texi: Likewise.
23403         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23404         * doc/glibc-functions/wcstod_l.texi: Likewise.
23405         * doc/glibc-functions/wcstof_l.texi: Likewise.
23406         * doc/glibc-functions/wcstol_l.texi: Likewise.
23407         * doc/glibc-functions/wcstold_l.texi: Likewise.
23408         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23409         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23410         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23411
23412 2009-11-24  Bruno Haible  <bruno@clisp.org>
23413
23414         duplocale: Fix logic bug.
23415         * lib/duplocale.c: Don't include <langinfo.h>.
23416         (_NL_LOCALE_NAME): Remove macro.
23417         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23418         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23419
23420 2009-11-23  Jim Meyering  <meyering@redhat.com>
23421
23422         test-update-copyright: don't hard-code /usr/bin/perl
23423         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23424         perl to print the current year.  Gilles Espinasse reported that
23425         the replaced use of perl was hard-coded as /usr/bin/perl.
23426
23427 2009-11-23  Bruno Haible  <bruno@clisp.org>
23428
23429         duplocale: Add support for glibc 2.3.x.
23430         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23431
23432 2009-11-22  Bruno Haible  <bruno@clisp.org>
23433
23434         vasnprintf: Tiny optimization.
23435         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23436         MacOS X.
23437
23438 2009-11-22  Bruno Haible  <bruno@clisp.org>
23439
23440         Tests for module 'duplocale'.
23441         * modules/duplocale-tests: New file.
23442         * tests/test-duplocale.c: New file.
23443
23444         New module 'duplocale'.
23445         * m4/duplocale.m4: New file.
23446         * lib/locale.in.h (duplocale): New declaration.
23447         * lib/duplocale.c: New file.
23448         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23449         gl_LOCALE_H_DEFAULTS): New macros.
23450         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23451         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23452         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23453         REPLACE_DUPLOCALE.
23454         * modules/duplocale: New file.
23455         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23456
23457 2009-11-22  Bruno Haible  <bruno@clisp.org>
23458
23459         * modules/locale-tests (configure.ac): Test for newlocale function.
23460         * tests/test-locale.c: When the system has extended locale functions,
23461         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23462
23463         locale: Make locale_t available when possible.
23464         * lib/locale.in.h: Include <xlocale.h> when it exists.
23465         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23466         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23467         * modules/locale (Depends-on): Add extensions.
23468         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23469         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23470
23471 2009-11-22  Bruno Haible  <bruno@clisp.org>
23472
23473         Add comments.
23474         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23475         invocation.
23476         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23477         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23478         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23479
23480 2009-11-22  Bruno Haible  <bruno@clisp.org>
23481
23482         error: account for the possibility of freopen (stdout).
23483         * lib/error.c: Include <unistd.h>.
23484         (flush_stdout): New function, extracted from error and error_at_line.
23485         Determine stdout's fd dynamically.
23486         (error, error_at_line): Invoke flush_stdout.
23487         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23488         * modules/error (Depends-on): Add unistd.
23489
23490 2009-11-22  Bruno Haible  <bruno@clisp.org>
23491
23492         diffseq: Add comment.
23493         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23494
23495 2009-11-22  Jim Meyering  <meyering@redhat.com>
23496
23497         c-stack: avoid defining an unused static function
23498         * lib/c-stack.c (find_stack_direction): Do not define this function
23499         when it will not be used.
23500
23501         diffseq: avoid spurious gcc warnings
23502         * lib/diffseq.h (IF_LINT2): Define.
23503         (compareseq): Use it to initialize two members of "part".
23504         This avoids two used-uninitialized warnings.
23505
23506 2009-11-21  Jim Meyering  <meyering@redhat.com>
23507
23508         c-stack: avoid "ignoring return value of `write'" warning
23509         * lib/c-stack.c: Include "ignore-value.h".
23510         (die): Explicitly ignore each write return value.
23511         * modules/c-stack (Depends-on): Add ignore-value.
23512
23513 2009-11-21  Bruno Haible  <bruno@clisp.org>
23514
23515         diffseq: reduce scope of variable 'best'.
23516         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23517         variable, earlier used for two different purposes.
23518
23519 2009-11-21  Jim Meyering  <meyering@redhat.com>
23520
23521         diffseq: remove useless assignment to "best"
23522         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23523         assignment.  At that point "best" is already guaranteed to be zero.
23524
23525 2009-11-20  Eric Blake  <ebb9@byu.net>
23526
23527         build: mention ftp redirector in release announcements
23528         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23529         values that used to come from cfg.mk; mention FTP redirect URL.
23530         * build-aux/announce-gen: Mention the mirror list.
23531         Suggested by Karl Berry.
23532
23533         nanosleep: improve port to mingw
23534         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23536         LIB_NANOSLEEP, but only when needed.
23537         * modules/select (Link): Document LIBSOCKET.
23538         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23539         enough.
23540
23541         nanosleep: work around cygwin bug
23542         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23543         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23544         bug.
23545         (getnow): Delete, not needed.
23546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23547         LIB_CLOCK_GETTIME.
23548         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23549         clock-time, gettime.
23550         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23551         bug.
23552         * modules/nanosleep-tests: New test.
23553         * tests/test-nanosleep.c: New file.
23554
23555         sleep: work around cygwin bug
23556         * lib/sleep.c (rpl_sleep): Work around the bug.
23557         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23558         (gl_PREREQ_SLEEP): Delete unused macro.
23559         * modules/sleep (Depends-on): Add verify.
23560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23561         * modules/unistd (Makefile.am): Substitute witness.
23562         * lib/unistd.in.h (sleep): Update prototype.
23563         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23564         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23565         * modules/sleep-tests (Depends-on): Check for alarm.
23566
23567 2009-11-20  Jim Meyering  <meyering@redhat.com>
23568
23569         maint.mk: improve sc_prohibit_magic_number_exit
23570         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23571         so it does not match uses like System.exit(1).
23572         Add comments showing how to correct all offenders.
23573
23574 2009-11-19  Eric Blake  <ebb9@byu.net>
23575
23576         xalloc-die-tests: add missing library
23577         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23578
23579         test-xvasprintf: silence compiler warnings
23580         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23581         empty string from gcc.
23582
23583 2009-11-19  Jim Meyering  <meyering@redhat.com>
23584
23585         xfreopen: new module, from coreutils
23586         * modules/xfreopen: New module.
23587         * lib/xfreopen.c: New file.
23588         * lib/xfreopen.h: New file.
23589         * MODULES.html.sh (File stream based Input/Output"): Add it.
23590
23591 2009-11-19  Eric Blake  <ebb9@byu.net>
23592
23593         manywarnings: depend on warnings
23594         * modules/manywarnings (Depends-on): Add warnings.
23595
23596         build: avoid compiler warnings
23597         * lib/select.c (rpl_select): Delete unused variable.
23598         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23599
23600 2009-11-18  Eric Blake  <ebb9@byu.net>
23601
23602         tests: avoid false negative with --with-packager
23603         * tests/test-version-etc.sh: Discard packager information.
23604         * tests/test-argp-version-etc-1.sh: Likewise.
23605         Reported by Mike Frysinger.
23606
23607         utimens: fix regression on Solaris
23608         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23609         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23610         can only change fd timestamps via futimesat.  Instead, use an
23611         additional witness macro to avoid BSD bug.
23612         Reported by Jim Meyering.
23613
23614 2009-11-17  Eric Blake  <ebb9@byu.net>
23615
23616         usleep: use it to simplify tests
23617         * modules/stat-time-tests (Depends-on): Add usleep.
23618         (configure.ac): Drop usleep check.
23619         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23620         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23621         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23622         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23623         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23624         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23625         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23626         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23627         Likewise.
23628         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23629         * tests/test-lchown.h (nap): Likewise.
23630         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23631         * tests/test-stat-time.c (nap): Likewise.
23632         * tests/test-utimens-common.h (nap): Update comments.
23633
23634         usleep: new module
23635         * modules/usleep: New file.
23636         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23637         * lib/usleep.c (usleep): Likewise.
23638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23639         * modules/unistd (Makefile.am): Substitute witnesses.
23640         * lib/unistd.in.h (usleep): Add declaration.
23641         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23642         * MODULES.html.sh (Date and time): Likewise.
23643         * modules/usleep-tests (Depends-on): New test.
23644         * tests/test-usleep.c: New file.
23645
23646         chown: work around OpenBSD bug
23647         * lib/chown.c (rpl_chown): Work around the bug.
23648         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23649         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23650         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23651         * modules/chown (Depends-on): Add stdbool.
23652         * modules/lchown (Depends-on): Likewise.
23653         * doc/posix-functions/chown.texi (chown): Document the bug.
23654         * doc/posix-functions/lchown.texi (lchown): Likewise.
23655         * tests/test-lchown.h (test_chown): Relax test.
23656
23657         mkstemp: avoid conflict with C++ keyword template
23658         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23659         * lib/mkostemp.c (mkostemp): Likewise.
23660         * lib/mkostemps.c (mkostemps): Likewise.
23661         * lib/mkstemp.c (mkstemp): Likewise.
23662         * lib/mkstemps.c (mkstemps): Likewise.
23663
23664         xalloc-die-tests: optimize
23665         * tests/test-xalloc-die.sh: Reduce number of processes.
23666
23667 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23668
23669         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23670         patch from ludo@gnu.org (Ludovic Courtès).
23671
23672 2009-11-17  Jim Meyering  <meyering@redhat.com>
23673
23674         version-etc: use proper license string
23675         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23676         * modules/version-etc-fsf: Likewise.
23677
23678 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23679
23680         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23681         printed to stdout.  Deal with EOL differences.
23682
23683 2009-11-17  Eric Blake  <ebb9@byu.net>
23684
23685         unsetenv: work around Solaris bug
23686         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23687         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23688         Reported by Jim Meyering.
23689
23690         vasnprintf: avoid compiler warnings
23691         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23692         variables.
23693         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23694
23695 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23696
23697         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23698         settings since xalloc-die is no longer the self test,
23699         xalloc-die.sh is.
23700
23701 2009-11-17  Jim Meyering  <meyering@redhat.com>
23702
23703         test-xalloc-die.sh: make the code agree with the commit log
23704         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23705         at the end, just in case you happen to have a test-xalloc-die
23706         program in some other PATH directory.
23707
23708         test-xalloc-die.sh: fix a portability bug
23709         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23710         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23711         Otherwise, argv[0] (as often seen in diagnostics) would be too
23712         system-dependent, sometimes with, and sometimes without the leading "./".
23713
23714         version-etc-fsf: relax license to LGPLv3+
23715         * modules/version-etc-fsf (License): Relax license.
23716
23717 2009-11-16  Eric Blake  <ebb9@byu.net>
23718
23719         xalloc-die-tests: avoid printing null pointer
23720         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23721         shell script.
23722         * tests/test-xalloc-die.c (program_name): Declare.
23723         * tests/test-xalloc-die.sh (tmpfiles): New file.
23724
23725         setenv, unsetenv: work around various bugs
23726         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23727         (setenv) [HAVE_SETENV]: Work around bugs.
23728         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23729         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23730         for bugs.
23731         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23732         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23734         * modules/stdlib (Makefile.am): Update substitutions.
23735         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23736         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23737         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23738         * modules/setenv-tests: New test.
23739         * modules/unsetenv-tests: Likewise.
23740         * tests/test-setenv.c: New file.
23741         * tests/test-unsetenv.c: Likewise.
23742
23743 2009-11-16  Jim Meyering  <meyering@redhat.com>
23744
23745         version-etc: relax license to LGPLv3+
23746         * modules/version-etc (License): Relax license.
23747
23748         better AC_REQUIRE expanded-before-required-warning avoidance
23749         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23750         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23751         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23752         which is no longer needed.
23753
23754 2009-11-16  Eric Blake  <ebb9@byu.net>
23755
23756         test-freading: clean up temporary file
23757         * tests/test-freading.c (main): Remove file on success, and use
23758         ASSERT more liberally.
23759         Reported by Jim Meyering.
23760
23761 2009-11-16  Jim Meyering  <meyering@redhat.com>
23762
23763         avoid new AC_REQUIRE expanded-before-required warnings
23764         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23765         merely using it.
23766         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23767         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23768
23769 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23770
23771         * tests/test-xalloc-die.c: New file.
23772         * modules/xalloc-die-tests: New file.
23773         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23774         XFAIL_TESTS so it can be appended by modules.
23775
23776 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23777
23778         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23779         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23780
23781 2009-11-14  Eric Blake  <ebb9@byu.net>
23782
23783         fnmatch: avoid compiler warning
23784         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23785         to silence compiler warning about mismatch signedness in ?:.
23786         Reported by Robert Millan.
23787
23788         intprops: add double-inclusion guard
23789         * lib/intprops.h: Allow idempotent includes.
23790         Suggested by Bruce Korb.
23791
23792         openat: detect Solaris fchownat bug
23793         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23794         penalizing glibc chownat when only lchownat is broken.
23795         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23796         trailing slash bugs.
23797         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23798         * modules/openat-tests (Files): Include more files.
23799         (Depends-on): Add mgetgroups, sleep, stat-time.
23800         (configure.ac): Add additional checks.
23801         (Makefile.am): Build new test.
23802         * tests/test-fchownat.c: New file.
23803
23804         lchown: detect Solaris and FreeBSD bug
23805         * lib/lchown.c (rpl_lchown): Work around bug.
23806         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23808         * modules/unistd (Makefile.am): Populate it.
23809         * lib/unistd.in.h (lchown): Update declaration.
23810         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23811         * modules/lchown-tests: New file.
23812         * tests/test-lchown.h (test_lchown): Likewise.
23813         * tests/test-lchown.c (main): Likewise.
23814
23815         chown: detect Solaris and FreeBSD bug
23816         * lib/chown.c (rpl_chown): Work around bug.
23817         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23818         (gl_PREREQ_CHOWN): Delete.
23819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23820         * modules/unistd (Makefile.am): Populate it.
23821         * lib/unistd.in.h (chown): Update declaration.
23822         * lib/lchown.c (chown): Update client.
23823         * modules/lchown (Depends-on): Add lstat.
23824         * doc/posix-functions/chown.texi (chown): Document the bug.
23825         * doc/posix-functions/getgroups.texi (getgroups): Document
23826         getgroups pitfall.
23827         * modules/chown-tests: New file.
23828         * tests/test-chown.h (test_chown): Likewise.
23829         * tests/test-chown.c (main): Likewise.
23830
23831 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23832
23833         gnulib-tool: correctly detect absence of m4 directories
23834         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23835
23836 2009-11-14  Jim Meyering  <meyering@redhat.com>
23837
23838         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23839         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23840
23841 2009-11-14  John W. Eaton  <jwe@gnu.org>
23842
23843         strftime.h: wrap funtion declaration in extern "C" block
23844         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23845
23846 2009-11-13  Eric Blake  <ebb9@byu.net>
23847
23848         getgroups: avoid compiler warning
23849         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23850
23851         getgroups: work around FreeBSD bug
23852         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23853         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23854         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23855         * tests/test-getgroups.c (main): Fix buffer overrun.
23856
23857         getgroups: avoid compilation failure
23858         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23859         * modules/getgroups (Depends-on): Add stdint.
23860
23861 2009-11-13  Jim Meyering  <meyering@redhat.com>
23862
23863         test-getgroups: avoid compilation failure
23864         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23865
23866 2009-11-13  Eric Blake  <ebb9@byu.net>
23867
23868         mgetgroups: new module, taken from coreutils
23869         * modules/mgetgroups: New file.
23870         * lib/mgetgroups.h: Likewise.
23871         * lib/mgetgroups.c (mgetgroups): Likewise.
23872         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23873         * MODULES.html.sh (Users and groups): Mention it.
23874
23875         getgroups: don't expose GETGROUPS_T to user
23876         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23877         an element at a time if GETGROUPS_T is wrong size.
23878         * lib/getugroups.h (getugroups): Change signature.
23879         * lib/unistd.in.h (getgroups): Likewise.
23880         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23881         signature needs fixing.
23882         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23883         AC_TYPE_GETGROUPS.
23884         * modules/group-member (Depends-on): Add getgroups.
23885         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23886         (group_member): Rely on getgroups replacement.
23887         * lib/getugroups.c (getugroups): Use gid_t.
23888         * tests/test-getgroups.c (main): Likewise.
23889         * NEWS: Mention the signature change.
23890         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23891         problem with signature.
23892         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23893         GETGROUPS_T is still useful for setgroups.
23894
23895         getgroups, getugroups: provide stubs for mingw
23896         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23897         * lib/getugroups.c (getugroups): Likewise.
23898         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23899         function.  Modernize replacement scheme.
23900         (gl_PREREQ_GETGROUPS): Delete.
23901         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23902         * modules/getgroups (configure.ac): Declare witness.
23903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23904         * modules/unistd (Depends-on): Substitute witness.
23905         * lib/unistd.in.h (getgroups): Declare replacement.
23906
23907         getgroups: avoid calling exit
23908         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23909         drop xalloc.
23910         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23911         dependencies.
23912         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23913         exiting, in the rare case of malloc failure.
23914
23915         getgroups: fix logic error
23916         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23917         has more than 20 groups.
23918         * modules/getgroups-tests: New test.
23919         * tests/test-getgroups.c: New file.
23920
23921 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23922
23923         * tests/test-base64.c: Improve.
23924
23925 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23926
23927         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23928         Blake <ebb9@byu.net>.
23929
23930 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23931
23932         * tests/test-xvasprintf.c: Add %s%s related checks.
23933
23934 2009-11-12  Eric Blake  <ebb9@byu.net>
23935
23936         version-etc: match standards.texi style
23937         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23938         and use <> only for URLs.
23939
23940 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23941
23942         fts: do not fail on a submount during traversal
23943         * lib/fts.c (fts_build): Read the stat info again after opening
23944         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23945         Original report at http://bugzilla.redhat.com/501848.
23946
23947 2009-11-12  Jim Meyering  <meyering@redhat.com>
23948
23949         bootstrap: sync from coreutils
23950         * build-aux/bootstrap (bootstrap_epilogue): New function.
23951         Use git_modules_config in one more place.  This make bootstrap's
23952         --gnulib-srcdir option more useful for testing.
23953
23954         bootstrap: generalize autoheader check
23955         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23956         AC_CONFIG_HEADERS.
23957
23958 2009-11-11  Eric Blake  <ebb9@byu.net>
23959
23960         mkfifoat: use new modules for Solaris and BSD bugs
23961         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23962         * lib/mkfifoat.c (mknodat): Split...
23963         * lib/mknodat.c (mknodat): ...into new file.
23964         * modules/mkfifoat (Files): Ship new file.
23965         (Depends-on): Add mkfifo, mknod.
23966         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23967         (Depends-on): Add symlink.
23968         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23969         redundant with test_mkfifo.h.
23970         (do_mkfifoat, do_mknodat): New helpers.
23971
23972         mknod: new module
23973         * modules/mknod: New file.
23974         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23975         * lib/mknod.c (mknod): Likewise.
23976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23977         defaults.
23978         * modules/sys_stat (Makefile.am): Substitute them.
23979         * lib/sys_stat.in.h (mknod): Declare replacement.
23980         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23981         Document it.
23982         * doc/posix-functions/mknod.texi (mknod): Likewise.
23983         * modules/mknod-tests: New test.
23984         * tests/test-mknod.c: Likewise.
23985
23986         mkfifo: new module
23987         * modules/mkfifo: New file.
23988         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23989         * lib/mkfifo.c (mkfifo): Likewise.
23990         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23991         defaults.
23992         * modules/sys_stat (Makefile.am): Substitute them.
23993         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23994         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23995         Document it.
23996         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23997         * modules/mkfifo-tests: New test.
23998         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23999         from test-mkfifoat.c.
24000         * tests/test-mkfifo.c: New file.
24001
24002         readlink: detect FreeBSD bug
24003         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24004         slash on symlink.
24005         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24006         * tests/test-readlink.h (test_readlink): Enhance test.
24007
24008         symlink: detect FreeBSD bug
24009         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24010         slash on symlink.
24011         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24012         * tests/test-symlink.h (test_symlink): Enhance test.
24013
24014 2009-11-10  Eric Blake  <ebb9@byu.net>
24015
24016         link: detect FreeBSD bug
24017         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24018         symlink.
24019         * doc/posix-functions/link.texi (link): Document the bug.
24020         * tests/test-link.h (test_link): Enhance test.
24021         * tests/test-linkat.c (main): Update caller.
24022
24023         unlink, remove: detect FreeBSD bug
24024         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24025         slash on symlink.
24026         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24027         * doc/posix-functions/remove.texi (remove): Likewise.
24028         * tests/test-unlink.h (test_unlink): Enhance test.
24029         * tests/test-remove.c (main): Likewise.
24030
24031 2009-11-09  Eric Blake  <ebb9@byu.net>
24032
24033         rename: detect FreeBSD bug
24034         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24035         slash on symlink.
24036         * modules/renameat-tests (Depends-on): Add filenamecat.
24037         * tests/test-rename.h (test_rename): Allow one more errno.
24038         * tests/test-renameat.c (main): Likewise.
24039         * doc/posix-functions/rename.texi (rename): Document the bug.
24040
24041         open: detect FreeBSD bug
24042         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24043         symlink.
24044         * doc/posix-functions/open.texi (open): Document the bug.
24045         * doc/posix-functions/utimes.texi (utimes): Likewise.
24046         * tests/test-open.h (test_open): Add parameters, and test symlink
24047         handling.
24048         * tests/test-open.c (main): Adjust caller.
24049         * tests/test-fcntl-safer.c (main): Likewise.
24050         * modules/open-tests (Depends-on): Add stdbool, symlink.
24051         * modules/fcntl-safer-tests (Depends-on): Likewise.
24052         * tests/test-openat.c (main): Add test-open tests.
24053
24054         stat: detect FreeBSD bug
24055         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24056         symlink.
24057         * doc/posix-functions/stat.texi (stat): Document the bug.
24058         * tests/test-stat.h (test_stat_func): Add argument.
24059         * tests/test-stat.c (main): Adjust caller.
24060         * tests/test-fstatat.c (main): Likewise.
24061         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24062         Reported by Jim Meyering.
24063
24064 2009-11-09  James Youngman  <jay@gnu.org>
24065
24066         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24067         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24068
24069 2009-11-08  Jim Meyering  <meyering@redhat.com>
24070
24071         utimens: remove invalid futimesat call
24072         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24073         It used the file descriptor of the target file as the DIR_FD
24074         parameter and NULL as the file name.  That caused failure with
24075         errno == EFAULT on FreeBSD-8.0-rc2
24076
24077 2009-11-07  Eric Blake  <ebb9@byu.net>
24078
24079         fflush, freadseek: use fseeko, not fseek
24080         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24081         (clear_ungetc_buffer): Avoid potential problems on large files.
24082         * lib/freadseek.c (freadseek): Likewise.
24083         * modules/freadseek (Depends-on): Add fseeko.
24084         * modules/fseek (configure.ac): Set a witness.
24085         * tests/test-fflush.c (main): Use fseeko.
24086         * tests/test-fpurge.c (fseek): Disable link warning.
24087         * tests/test-freadable.c (fseek): Likewise.
24088         * tests/test-freading.c (fseek): Likewise.
24089         * tests/test-fseeko.c (fseek): Likewise.
24090         * tests/test-ftell.c (fseek): Likewise.
24091         * tests/test-ftello.c (fseek): Likewise.
24092         * tests/test-fwritable.c (fseek): Likewise.
24093         * tests/test-fwriting.c (fseek): Likewise.
24094
24095 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24096
24097         * modules/memchr (Depends-on): Drop getpagesize dependency.
24098
24099 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24100
24101         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24102         Reported by Ludovic Courtès.
24103         * build-aux/pmccabe2html: Improve example usage.
24104         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24105
24106 2009-11-06  Jim Meyering  <meyering@redhat.com>
24107
24108         do-release-commit-and-tag: New module.
24109         Automate the release-commit and tag process.
24110         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24111         * modules/do-release-commit-and-tag: New file.
24112         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24113
24114 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24115
24116         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24117         because test-select.c uses inet_pton.
24118
24119 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24120
24121         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24122         GETADDRINFO_LIB.  Bump serial number.
24123         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24124         Suggested by Eric Blake <ebb9@byu.net>.
24125
24126 2009-11-05  Eric Blake  <ebb9@byu.net>
24127
24128         strtod: detect darwin bug
24129         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24130         Reported by Leo Davis.
24131
24132         freopen-safer: new module
24133         * modules/freopen-safer: New module.
24134         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24135         * lib/freopen-safer.c (freopen_safer): New file.
24136         * lib/stdio-safer.h (freopen_safer): New declaration.
24137         * lib/stdio--.h (freopen): New override.
24138         * MODULES.html.sh (File stream based Input/Output): Mention it.
24139         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24140         freopen-safer module.
24141         * doc/posix-functions/stderr.texi (stderr): Likewise.
24142         * doc/posix-functions/stdin.texi (stdin): Likewise.
24143         * doc/posix-functions/stdout.texi (stdout): Likewise.
24144         * modules/freopen-safer-tests: New test.
24145         * tests/test-reopen-safer.c: New file.
24146
24147 2009-11-05  Jim Meyering  <meyering@redhat.com>
24148
24149         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24150         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24151
24152 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24153
24154         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24155
24156 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24157
24158         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24159
24160 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24161
24162         Fix link error.
24163         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24164         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24165
24166 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24167
24168         * tests/test-func.c: Also test value of __func__.
24169
24170 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24171
24172         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24173         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24174
24175 2009-11-05  Bruno Haible  <bruno@clisp.org>
24176
24177         Fix link error.
24178         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24179         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24180         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24181
24182 2009-11-05  Bruno Haible  <bruno@clisp.org>
24183
24184         Tests for module 'inet_pton'.
24185         * modules/inet_pton-tests: New file.
24186         * tests/test-inet_pton.c: New file.
24187
24188 2009-11-05  Bruno Haible  <bruno@clisp.org>
24189
24190         Tests for module 'inet_ntop'.
24191         * modules/inet_ntop-tests: New file.
24192         * tests/test-inet_ntop.c: New file.
24193
24194 2009-11-04  Eric Blake  <ebb9@byu.net>
24195
24196         stdlib-safer: wrap all mkstemp variants
24197         * modules/mkostemp (configure.ac): Set witness.
24198         * modules/mkostemps (configure.ac): Likewise.
24199         * modules/mkstemps (configure.ac): Likewise.
24200         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24201         (mkstemps_safer): Wrap more functions.
24202         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24203         wrapping.
24204         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24205         (mkstemps_safer): Implement the wrappers.
24206
24207         mkstemps, mkostemps: new modules
24208         * modules/mkostemps: New module.
24209         * modules/mkstemps: Likewise.
24210         * lib/mkostemps.c (mkostemps): New file.
24211         * lib/mkstemps.c (mkstemps): Likewise.
24212         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24213         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24215         * modules/stdlib (Makefile.am): Substitute them.
24216         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24217         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24218         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24219         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24220         * MODULES.html.sh (File system functions): Mention them.
24221
24222         tempname: resync from glibc
24223         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24224         same values for __GT_FILE as glibc.  Abort even when assertions
24225         are disabled.
24226         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24227         match its value otherwise.  Allow idempotent inclusion.
24228         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24229         * lib/mkostemp.c (mkostemp): Likewise.
24230         * lib/mkstemp.c (mkstemp): Likewise.
24231         * lib/tmpfile.c (tmpfile): Likewise.
24232         * NEWS: Document this.
24233
24234         utimens: fix use of futimens on older Linux
24235         * lib/utimens.c (fdutimens): Use updated, rather than original,
24236         timespec to avoid bug in older Linux kernel.
24237         Reported by Simon Josefsson.
24238
24239 2009-11-04  Bruno Haible  <bruno@clisp.org>
24240
24241         Make num_processors more flexible and consistent.
24242         * lib/nproc.h (enum nproc_query): New type.
24243         (num_processors): Add a 'query' argument.
24244         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24245         (num_processors): Add a 'query' argument. Test the value of the
24246         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24247         mingw, count the number of CPUs available for the current process.
24248         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24249         Check for sched_getaffinity and sched_getaffinity_np.
24250         * modules/nproc (Depends-on): Add c-ctype, extensions.
24251         * NEWS: Mention the change.
24252
24253 2009-11-03  Bruno Haible  <bruno@clisp.org>
24254
24255         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24256
24257 2009-11-03  Jim Meyering  <meyering@redhat.com>
24258
24259         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24260         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24261         if it is defined.
24262
24263 2009-11-02  Eric Blake  <ebb9@byu.net>
24264
24265         mktime, timegm: share common declaration
24266         * lib/mktime-internal.h: New file.
24267         * lib/mktime.c: Use it rather than open-coding a declaration.
24268         * lib/timegm.c: Likewise.
24269         * modules/mktime (Files): Ship it.
24270         * modules/timegm (Files): Likewise.
24271         Suggested by Bruno Haible.
24272
24273         test-update-copyright: update test to match script changes
24274         * tests/test-update-copyright.sh: Avoid hard-coding perl
24275         location.  Don't update *.bak created by earlier runs.
24276
24277 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24278             Simon Josefsson  <simon@josefsson.org>
24279             Bruno Haible  <bruno@clisp.org>
24280
24281         Fix link error on Solaris 8.
24282         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24283         also in libnsl. Define also INET_PTON_LIB.
24284         * modules/inet_pton (Link): New section.
24285
24286 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24287             Bruno Haible  <bruno@clisp.org>
24288
24289         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24290         * modules/inet_ntop (Link): New section.
24291         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24292
24293 2009-11-02  Eric Blake  <ebb9@byu.net>
24294
24295         maint: avoid compiler warnings in m4 macros
24296         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24297         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24298
24299 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24300
24301         * m4/pmccabe2html.m4: Remove file.
24302         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24303         function.  Change maintainer.
24304         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24305         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24306         Courtès).
24307
24308 2009-10-31  Eric Blake  <ebb9@byu.net>
24309
24310         fseeko: fix m4 regression
24311         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24312         regression from 2009-10-27.
24313         Reported by Ralf Wildenhues.
24314
24315 2009-10-31  Jim Meyering  <meyering@redhat.com>
24316
24317         inttostr: aesthetics and improved (compile-time) safety
24318         Define inttype_is_signed rather than inttype_is_unsigned,
24319         since the sole use is via "#if inttype_is_signed".
24320         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24321         inttype_is_unsigned.
24322         * lib/offtostr.c (inttype_is_signed): Likewise.
24323         * lib/uinttostr.c (inttype_is_signed): Likewise.
24324         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24325         * lib/inttostr.c (inttostr): Use verify to cross-check the
24326         inttype_is_signed value and the signedness of the actual type.
24327         * modules/inttostr (Depends-on): Add verify.
24328
24329 2009-10-30  Eric Blake  <ebb9@byu.net>
24330
24331         build: avoid compiler warnings
24332         * lib/fchmodat.c (lchmod): Mark unused variables.
24333         * lib/getopt.c (_getopt_initialize): Likewise.
24334         * lib/mktime.c (__mktime_internal): Provide prototype.
24335         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24336         older gcc that do not understand #pragma GCC diagnostic.
24337         * lib/uinttostr.c (inttype_is_unsigned): Define.
24338         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24339
24340 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24341
24342         stat: fix compilation on AIX
24343         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24344         only see struct stat64.
24345
24346 2009-10-30  Eric Blake  <ebb9@byu.net>
24347
24348         exclude: make more robust
24349         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24350         rather than masking a coding bug.
24351         Suggested by Bruno Haible.
24352
24353 2009-10-30  Jim Meyering  <meyering@redhat.com>
24354
24355         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24356         Rather than putting #!/usr/bin/perl on the first line,
24357         start with a variant of what's recommended by "man perlrun" that
24358         invokes the first "perl" program from your shell's search path.
24359         * build-aux/gitlog-to-changelog: Replace #!... as above.
24360         Add a "Local Variables" perl mode setting.
24361         Prompted by a patch from Ludovic Courtès.
24362         Improved by Eric Blake.
24363         * build-aux/useless-if-before-free: Likewise.
24364         * build-aux/announce-gen: Likewise.
24365         * build-aux/update-copyright: Likewise.
24366
24367 2009-10-29  Eric Blake  <ebb9@byu.net>
24368
24369         filenamecat-lgpl: adjust clients
24370         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24371         filenamecat.
24372         * modules/renameat (Depends-on): Likewise.
24373
24374         filenamecat: split into filenamecat-lgpl
24375         * modules/filenamecat-lgpl: New module.
24376         * modules/filenamecat (Files): Move library-safe files into
24377         filenamecat-lgpl.
24378         (Depends-on): Add filenamecat-lgpl.
24379         (configure.ac): Declare witness.
24380         * lib/filenamecat.h (file_name_concat): Only declare when using
24381         GPL module.
24382         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24383         Move...
24384         * lib/filenamecat-lgpl.c: ...into new file.
24385         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24386         (gl_FILE_NAME_CONCAT): Use it.
24387         * MODULES.html.sh (File system functions): Mention new module.
24388
24389         argp: avoid memory leak
24390         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24391         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24392         base_name, since the latter malloc()s and can call exit().
24393         Leak introduced 2006-07-03.
24394
24395         dirname-lgpl: adjust clients that don't need full dirname
24396         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24397         * modules/filenamecat (Depends-on): Likewise.
24398         * modules/linkat (Depends-on): Likewise.
24399         * modules/mkancesdirs (Depends-on): Likewise.
24400         * modules/mkdir (Depends-on): Likewise.
24401         * modules/openat (Depends-on): Likewise.
24402         * modules/savewd (Depends-on): Likewise.
24403         * modules/rename (Depends-on): Likewise.
24404         (License): Relax license.
24405         * modules/mkdir-tests (Depends-on): Drop progname.
24406         (Makefile.am): Delete unneeded LDADD.
24407         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24408
24409         dirname: split into dirname-lgpl
24410         * modules/dirname-lgpl: New module.
24411         * modules/dirname (Files): Move library-safe files into
24412         dirname-lgpl.
24413         (Depends-on): Add dirname-lgpl.
24414         (configure.ac): Declare witness.
24415         * modules/double-slash-root (License): Relax license.
24416         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24417         module.
24418         * lib/dirname.c (dir_len, mdir_name): Move...
24419         * lib/dirname-lgpl.c: ...into new file.
24420         * lib/basename.c (last_component, base_len): Move...
24421         * lib/basename-lgpl.c: ...into new file.
24422         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24423         (gl_DIRNAME): Use it.
24424         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24425         Mention new module.
24426         * modules/dirname-tests (Depends-on): Add progname.
24427         * tests/test-dirname.c (program_name): Delete.
24428
24429         mkdir: make safe for libraries
24430         * modules/mkdir (Depends-on): Drop xalloc.
24431         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24432         exit.
24433
24434         tests: avoid some compiler warnings
24435         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24436         literals.
24437         * tests/test-memchr.c (main): Avoid type mismatch.
24438         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24439         * tests/test-base64.c (main): Likewise.
24440         * tests/test-getdelim.c (main): Likewise.
24441         * tests/test-gethostname.c (main): Likewise.
24442         * tests/test-getline.c (main): Likewise.
24443         * tests/test-netinet_in.c (main): Likewise.
24444         * tests/test-select.c (open_server_socket, main): Likewise.
24445         * tests/test-select-stdin.c (main): Likewise.
24446         * tests/test-sockets.c (main): Likewise.
24447         * tests/test-strsignal.c (main): Likewise.
24448         * tests/test-sys_select.c (main): Likewise.
24449         * tests/test-sys_socket.c (main): Likewise.
24450         * tests/test-u64.c (main): Likewise.
24451         * tests/test-xfprintf-posix.c (main): Likewise.
24452         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24453
24454         sockets: avoid compiler warning
24455         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24456
24457         maint: detect usage(1) and other suspicious exits
24458         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24459
24460 2009-10-29  Jim Meyering  <meyering@redhat.com>
24461
24462         timespec: long-to-int truncation could make timespec_cmp malfunction
24463         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24464         a multiple of 2^32 nanoseconds as no difference.
24465
24466 2009-10-28  Jim Meyering  <meyering@redhat.com>
24467
24468         fprintftime: wrap macro code argument in "do {...} while(0)"
24469         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24470         cpy macro must be a statement that can be followed by a semicolon.
24471         Now that the else clause contains a comment and is hence longer
24472         than one line, I require curly braces.  That in turn requires
24473         that we wrap this code block in the standard do...while(0).
24474
24475         fprintftime: remove stray semicolon from previous change
24476         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24477
24478         fprintftime: avoid a warning about ignored fwrite return value
24479         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24480         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24481         that is unsafe.
24482         * modules/fprintftime (Depends-on): Add ignore-value.
24483
24484         exclude: avoid an unwarranted warning
24485         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24486
24487 2009-10-27  Eric Blake  <ebb9@byu.net>
24488
24489         fseek: avoid compilation failure when fflush is replaced
24490         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24491         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24492         module is in use.
24493         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24494         module is not in use; since REPLACE_FSEEK worked otherwise.
24495         (GNULIB_FTELLO): Likewise for ftell.
24496         Reported by Ian Beckwith and others.
24497
24498 2009-10-27  Bruno Haible  <bruno@clisp.org>
24499
24500         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24501         Reported by Jim Meyering.
24502
24503 2009-10-27  Jim Meyering  <jim@meyering.net>
24504             Bruno Haible  <bruno@clisp.org>
24505
24506         Avoid warning despite dropping the return value of fwrite.
24507         * lib/unicodeio.c: Include ignore-value.h.
24508         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24509         * modules/unicodeio (Depends-on): Add ignore-value.
24510
24511 2009-10-26  Eric Blake  <ebb9@byu.net>
24512
24513         areadlinkat: fix fallback path
24514         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24515         pointer and zero.
24516
24517 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24518
24519         Use a better IO block size for modern systems
24520         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24521         * lib/md2.c: Likewise.
24522         * lib/md4.c: Likewise.
24523         * lib/md5.c: Likewise.
24524         * lib/sha1.c: Likewise.
24525         * lib/sha256.c: Likewise.
24526         * lib/sha512.c: Likewise.
24527
24528 2009-10-22  Eric Blake  <ebb9@byu.net>
24529
24530         tests: avoid several compiler warnings
24531         * tests/test-getcwd.c (main): Avoid buffer underflow.
24532         * tests/test-getdate.c (main): String literals are not safe with
24533         putenv, so use setenv.  Declare unused argument.
24534         * modules/getdate-tests (Depends-on): Add setenv.
24535         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24536         problems with string literals in char *.
24537         * tests/test-hash.c (main): Avoid shadowing declaration.
24538         (insert_new): Treat string literals as char const *.
24539         * tests/test-getopt.h (test_getopt): Likewise.
24540         (getopt_loop): Alter types to minimize casting elsewhere.
24541         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24542         (test_getopt_long_posix): Likewise.
24543         (do_getopt_long): Add wrapper to minimize casting.
24544         * tests/test-atexit.c (clear_temp_file): Use void.
24545         * tests/test-areadlink-with-size.c (main): Declare unused
24546         arguments.
24547         * tests/test-areadlink.c (main): Likewise.
24548         * tests/test-areadlinkat-with-size.c (main): Likewise.
24549         * tests/test-areadlinkat.c (main): Likewise.
24550         * tests/test-canonicalize-lgpl.c (main): Likewise.
24551         * tests/test-canonicalize.c (main): Likewise.
24552         * tests/test-dirent-safer.c (main): Likewise.
24553         * tests/test-dirname.c (main): Likewise.
24554         * tests/test-dup2.c (main): Likewise.
24555         * tests/test-fchdir.c (main): Likewise.
24556         * tests/test-fcntl-h.c (main): Likewise.
24557         * tests/test-fcntl-safer.c (main): Likewise.
24558         * tests/test-fdopendir.c (main): Likewise.
24559         * tests/test-fdutimensat.c (main): Likewise.
24560         * tests/test-fflush.c (main): Likewise.
24561         * tests/test-filenamecat.c (main): Likewise.
24562         * tests/test-filevercmp.c (main): Likewise.
24563         * tests/test-fopen-safer.c (main): Likewise.
24564         * tests/test-fopen.c (main): Likewise.
24565         * tests/test-fpending.c (main): Likewise.
24566         * tests/test-fpurge.c (main): Likewise.
24567         * tests/test-freading.c (main): Likewise.
24568         * tests/test-fstatat.c (main): Likewise.
24569         * tests/test-fsync.c (main): Likewise.
24570         * tests/test-futimens.c (main): Likewise.
24571         * tests/test-getndelim2.c (main): Likewise.
24572         * tests/test-gettimeofday.c (main): Likewise.
24573         * tests/test-getopt.c (main): Likewise.
24574         * tests/test-i-ring.c (main): Likewise.
24575         * tests/test-inttypes.c (main): Likewise.
24576         * tests/test-link.c (main): Likewise.
24577         * tests/test-lstat.c (main): Likewise.
24578         * tests/test-math.c (main): Likewise.
24579         * tests/test-md5.c (main): Likewise.
24580         * tests/test-memchr2.c (main): Likewise.
24581         * tests/test-memrchr.c (main): Likewise.
24582         * tests/test-mkdir.c (main): Likewise.
24583         * tests/test-mkdirat.c (main): Likewise.
24584         * tests/test-mkfifoat.c (main): Likewise.
24585         * tests/test-open.c (main): Likewise.
24586         * tests/test-openat-safer.c (main): Likewise.
24587         * tests/test-openat.c (main): Likewise.
24588         * tests/test-quotearg.c (main): Likewise.
24589         * tests/test-rawmemchr.c (main): Likewise.
24590         * tests/test-readlink.c (main): Likewise.
24591         * tests/test-remove.c (main): Likewise.
24592         * tests/test-rename.c (main): Likewise.
24593         * tests/test-renameat.c (main): Likewise.
24594         * tests/test-rmdir.c (main): Likewise.
24595         * tests/test-sha1.c (main): Likewise.
24596         * tests/test-signal.c (main): Likewise.
24597         * tests/test-sigaction.c (main): Likewise.
24598         * tests/test-stat.c (main): Likewise.
24599         * tests/test-stat-time.c (main): Likewise.
24600         * tests/test-stddef.c (main): Likewise.
24601         * tests/test-stdint.c (main): Likewise.
24602         * tests/test-stdio.c (main): Likewise.
24603         * tests/test-stdlib.c (main): Likewise.
24604         * tests/test-strchrnul.c (main): Likewise.
24605         * tests/test-strerror.c (main): Likewise.
24606         * tests/test-string.c (main): Likewise.
24607         * tests/test-strtod.c (main): Likewise.
24608         * tests/test-strverscmp.c (main): Likewise.
24609         * tests/test-symlink.c (main): Likewise.
24610         * tests/test-symlinkat.c (main): Likewise.
24611         * tests/test-sys_stat.c (main): Likewise.
24612         * tests/test-sys_time.c (main): Likewise.
24613         * tests/test-time.c (main): Likewise.
24614         * tests/test-unistd.c (main): Likewise.
24615         * tests/test-unlink.c (main): Likewise.
24616         * tests/test-unlinkat.c (main): Likewise.
24617         * tests/test-utimens.c (main): Likewise.
24618         * tests/test-utimensat.c (main): Likewise.
24619         * tests/test-version-etc.c (main): Likewise.
24620         * tests/test-wchar.c (main): Likewise.
24621         * tests/test-wctype.c (main): Likewise.
24622         * tests/test-xprintf-posix.c (main): Likewise.
24623         * tests/test-posixtm.c (main): Likewise.
24624         (STREQ): Delete unused macro.
24625         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24626         shadowed variables.
24627         * tests/test-memchr.c (main): Likewise.
24628
24629 2009-10-21  Eric Blake  <ebb9@byu.net>
24630
24631         areadlinkat: avoid failure on older glibc
24632         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24633         rather than mis-comparing 0 against FUNC_RESULT of char*.
24634
24635 2009-10-21  Bruno Haible  <bruno@clisp.org>
24636
24637         * modules/stpncpy (License): Relicense under LGPLv2+.
24638         Reported by David Lutterkort <lutter@redhat.com>.
24639
24640 2009-10-20  Eric Blake  <ebb9@byu.net>
24641
24642         utimensat: work around Solaris 9 bug
24643         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24644         has trailing slash bugs.
24645         * tests/test-lutimens.h (test_lutimens): Enhance test.
24646         * tests/test-utimens.h (test_utimens): Likewise.
24647         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24648         * doc/posix-functions/utimes.texi (utimes): Likewise.
24649         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24650         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24651         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24652         * doc/posix-functions/futimens.texi (futimens): Likewise.
24653
24654         fdutimensat: new module
24655         * modules/fdutimensat: New file.
24656         * lib/fdutimensat.c (fdutimensat): Likewise.
24657         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24658         * MODULES.html.sh (File system functions): Mention module.
24659         * modules/fdutimensat-tests: New test.
24660         * tests/test-fdutimensat.c: Likewise.
24661
24662         doc: regenerate INSTALL
24663         * doc/INSTALL: Reflect recent autoconf update.
24664         * doc/INSTALL.ISO: Likewise.
24665         * doc/INSTALL.UTF-8: Likewise.
24666
24667 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24668
24669         acl: warn if ACL support is not detected
24670         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24671
24672 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24673
24674         * lib/nproc.h: Add extern "C" block for C++.
24675
24676 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24677             Bruno Haible  <bruno@clisp.org>
24678
24679         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24680         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24681         * doc/posix-functions/isalpha.texi: Likewise.
24682         * doc/posix-functions/isblank.texi: Likewise.
24683         * doc/posix-functions/iscntrl.texi: Likewise.
24684         * doc/posix-functions/isdigit.texi: Likewise.
24685         * doc/posix-functions/isgraph.texi: Likewise.
24686         * doc/posix-functions/islower.texi: Likewise.
24687         * doc/posix-functions/isprint.texi: Likewise.
24688         * doc/posix-functions/ispunct.texi: Likewise.
24689         * doc/posix-functions/isspace.texi: Likewise.
24690         * doc/posix-functions/isupper.texi: Likewise.
24691         * doc/posix-functions/isxdigit.texi: Likewise.
24692
24693 2009-10-18  Bruno Haible  <bruno@clisp.org>
24694
24695         Tests for module 'isblank'.
24696         * modules/isblank-tests: New file.
24697         * tests/test-isblank.c: New file.
24698
24699         New module 'isblank'.
24700         * lib/isblank.c: New file.
24701         * m4/isblank.m4: New file.
24702         * modules/isblank: New file.
24703         * doc/posix-functions/isblank.texi: Mention the new module.
24704
24705 2009-10-18  Bruno Haible  <bruno@clisp.org>
24706
24707         New module 'ctype'.
24708         * lib/ctype.in.h: New file.
24709         * m4/ctype.m4: New file.
24710         * modules/ctype: New file.
24711         * doc/posix-headers/ctype.texi: Mention the new module.
24712
24713 2009-10-18  Jim Meyering  <meyering@redhat.com>
24714
24715         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24716         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24717         right after its initialization, rather than farther down.
24718         Keeping these in close proximity makes it easier to ensure
24719         that each such variable is initialized.  E.g.,
24720
24721             LIB_CLOCK_GETTIME=
24722             AC_SUBST([LIB_CLOCK_GETTIME])
24723
24724         This change also increments these serial numbers.
24725         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24726         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24728
24729 2009-10-18  Bruno Haible  <bruno@clisp.org>
24730
24731         Don't let environment variables perturb build.
24732         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24733         (gl_PREREQ_GETHRXTIME): ... not here.
24734
24735 2009-10-18  Bruno Haible  <bruno@clisp.org>
24736
24737         Avoid symlink attack in localcharset module.
24738         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24739         (O_NOFOLLOW): Define fallback.
24740         (get_charset_aliases): Don't open the file if it is a symbolic link.
24741         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24742         gl_FCNTL_H.
24743         (gl_FCNTL_H): Require it.
24744         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24745         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24746         Reported by Fergal Glynn <fglynn@veracode.com>.
24747
24748 2009-10-18  Bruno Haible  <bruno@clisp.org>
24749
24750         Implement nproc for mingw.
24751         * lib/nproc.c: Include <windows.h>
24752         (num_processors): On native Windows platforms, try GetSystemInfo.
24753
24754 2009-10-18  Bruno Haible  <bruno@clisp.org>
24755
24756         Implement nproc for IRIX.
24757         * lib/nproc.c: Include <sys/sysmp.h>.
24758         (num_processors): On IRIX systems, try sysmp.
24759         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24760
24761 2009-10-18  Bruno Haible  <bruno@clisp.org>
24762
24763         Implement nproc for HP-UX.
24764         * lib/nproc.c: Include <sys/pstat.h>
24765         (num_processors): On HP-UX systems, try pstat_getdynamic.
24766         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24767         pstat_getdynamic.
24768
24769 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24770             Bruno Haible  <bruno@clisp.org>
24771
24772         Implement nproc for NetBSD, OpenBSD.
24773         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24774         (ARRAY_SIZE): New macro.
24775         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24776         * m4/nproc.m4: New file.
24777         * modules/nproc (Files): Add m4/nproc.m4.
24778         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24779         (Makefile.am): Instead, augment lib_SOURCES.
24780
24781 2009-10-18  Bruno Haible  <bruno@clisp.org>
24782
24783         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24784         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24785         sys/param.h.
24786
24787 2009-10-16  Eric Blake  <ebb9@byu.net>
24788
24789         utimensat: new module
24790         * modules/utimensat: New file.
24791         * lib/utimensat.c (utimensat): Likewise.
24792         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24793         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24794         so we can work around Linux bugs.
24795         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24796         * modules/sys_stat (Makefile.am): Substitute them.
24797         * lib/sys_stat.in.h (utimensat): Declare it.
24798         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24799         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24800         * modules/utimensat-tests: New test.
24801         * tests/test-utimensat.c: Likewise.
24802
24803         utimens: let lutimens work on non-symlinks
24804         * lib/utimens.c (lutimens): Fall back to utimens rather than
24805         failing with ENOSYS, when file is not a symlink.
24806         (utimens): Reduce redirection.
24807         * tests/test-lutimens.h (test_lutimens): Update test to cover
24808         non-symlinks.
24809         * tests/test-utimens.h (test_utimens): Update test to cover
24810         symlinks.
24811         * tests/test-utimens.c (main): Update caller.
24812
24813         utimens: cache whether utimensat syscall works
24814         * lib/utimens.c (utimensat_works_really): New cache variable.
24815         (fdutimens, lutimens): Use it to avoid failing syscall.
24816
24817         test-stat-time, test-utimens: improve portability
24818         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24819         ext4 on alpha, and for cygwin.
24820         * tests/test-utimens-common.h: New file.
24821         (nap): Factor delays into single function.
24822         * tests/test-lutimens.h (test_lutimens): Use new header.
24823         * tests/test-futimens.h (test_futimens): Likewise.
24824         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24825         timestamps to occur from same machine, as was done previously for
24826         test_utimens.
24827         * modules/utimens-tests (Files): Ship new file.
24828         * modules/futimens-tests (Files): Likewise.
24829         Reported in part by Jim Meyering.
24830
24831         sys_stat: sort replacement declarations
24832         * lib/sys_stat.in.h: Sort declarations.
24833         * lib/futimens.c (futimens): Fix typo.
24834
24835 2009-10-15  Jim Meyering  <meyering@redhat.com>
24836
24837         don't let environment settings perturb build
24838         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24839         could cause a configure-time and/or build-time malfunction.
24840         Typically, a configure-time function-in-library test is performed
24841         via code like this:
24842
24843           LIB_VAR=
24844           AC_SUBST([LIB_VAR])
24845           prefix_saved_LIBS=$LIBS
24846             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24847                        [test "$ac_cv_search_FUNC" = "none required" ||
24848                         LIB_VAR=$ac_cv_search_FUNC])
24849           LIBS=$prefix_saved_LIBS
24850
24851         However, in each of the files affected by this change, the LIB_VAR=
24852         initialization was omitted.  Thus, when set in the environment, its
24853         value would propagate into generated Makefiles when FUNC is not found
24854         in LIB_NAME.
24855         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24856         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24858
24859 2009-10-14  Eric Blake  <ebb9@byu.net>
24860
24861         fchdir: avoid infinite recursion in mingw
24862         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24863         recursing.
24864
24865         test-stat-time: port to mingw
24866         * tests/test-stat-time.c (force_unlink): Return a value.
24867         (test_ctime) [W32]: Fix compilation error.
24868         (nap): Don't call usleep with too large an argument.  Use
24869         force_unlink.
24870         * doc/pastposix-functions/usleep.texi (usleep): Document the
24871         portability issue.
24872
24873 2009-10-13  Jim Meyering  <meyering@redhat.com>
24874
24875         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24876         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24877         * modules/pipe-filter-ii: Likewise.
24878         * modules/sys_socket-tests: Likewise.
24879         * modules/tsearch-tests: Likewise.
24880         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24881         (check): Depend on it.
24882
24883 2009-10-12  Eric Blake  <ebb9@byu.net>
24884
24885         utimens-tests: port to NFS file systems
24886         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24887         comparisons to avoid spurious failures from timestamp drift
24888         between NFS machines.
24889
24890 2009-10-12  Eric Blake  <ebb9@byu.net>
24891
24892         stat-time-tests: minor cleanups
24893         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24894         * tests/test-stat-time.c (nap): Separate assignment from call.
24895         Suggested by Paolo Bonzini and Bruno Haible.
24896
24897         sys_stat: guarantee struct timespec
24898         * lib/sys_stat.in.h (includes): Always include <time.h>
24899         * modules/sys_stat (Depends-on): Add time.
24900         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24901         mode_t permission values.
24902         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24903         get at subsecond timestamps.
24904
24905 2009-10-10  Eric Blake  <ebb9@byu.net>
24906
24907         futimens: new module
24908         * modules/futimens: New file.
24909         * lib/futimens.c (futimens): Likewise.
24910         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24911         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24912         we can work around Linux bugs.
24913         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24914         * modules/sys_stat (Makefile.am): Substitute them.
24915         * lib/sys_stat.in.h (futimens): Declare it.
24916         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24917         * doc/posix-functions/futimens.texi (futimens): Likewise.
24918         * modules/futimens-tests: New test.
24919         * tests/test-futimens.c: Likewise.
24920
24921         utimens: introduce fdutimens
24922         * lib/utimens.h (fdutimens): New prototype.
24923         * lib/utimens.c (gl_futimens): Move guts...
24924         (fdutimens): ...to new interface.
24925         * tests/test-utimens.c (do_fdutimens): Use it.
24926
24927         utimens: add UTIME_NOW and UTIME_OMIT support
24928         * lib/utimens.c (validate_timespec, update_timespec): New helper
24929         functions.
24930         (gl_futimens, lutimens): Use them.
24931         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24932         stdbool, sys_stat.
24933         (Link): Mention resulting library dependency.
24934         * modules/utimecmp (Link): Likewise.
24935         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24936         (Makefile.am): Pick up library dependency.
24937         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24938         definition.
24939         * tests/test-sys_stat.c: Test the definitions.
24940         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24941         * NEWS: Document library dependency.
24942
24943         utimecmp: support symlink timestamps
24944         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24945         hashing when possible.  Use pathconf when available.
24946         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24947         * modules/utimecmp (Depends-on): Add lstat.
24948
24949         utimens: add lutimens interface
24950         * lib/utimens.c (lutimens): New function.
24951         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24952         * lib/utimens.h (lutimens): Declare new interface.
24953         * tests/test-utimens.c (main): Enhance test.
24954         * tests/test-lutimens.h (test_lutimens): New file.
24955         * modules/utimens-tests (Files): Distribute it.
24956         (Depends-on): Add symlink.
24957         (configure.ac): Check for usleep.
24958
24959         utimens: validate futimens usage
24960         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24961         fewer syscalls on failure later on.  Avoid compiler warning on
24962         mingw.
24963         * modules/utimens (Depends-on): Add dup2.
24964
24965         utimens: add test
24966         * modules/utimens-tests: New test.
24967         * tests/test-utimens.h: New file.
24968         * tests/test-futimens.h: Likewise.
24969         * tests/test-utimens.c: Likewise.
24970
24971         doc: mention timestamp portability issues
24972         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24973         instead.
24974         * doc/posix-functions/utime.texi (utime): Likewise.
24975         * doc/posix-functions/utimes.texi (utimes): Likewise.
24976         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24977         instead.
24978         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24979         module.
24980         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24981         Mention weakness with symlink timestamps.
24982         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24983         to utimensat/futimens instead.
24984         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24985
24986         test-dup2: enhance test
24987         * tests/test-dup2.c (main): Also check AT_FDCWD.
24988
24989         test-stat-time: avoid more spurious failures
24990         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24991         xfs; and avoid race if the two timestamps cross quantization edge.
24992
24993         relocatable: prefer 'file system' over 'filesystem'
24994         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24995         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24996         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24997         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24998         * lib/relocatable.c (compute_curr_prefix): Likewise.
24999
25000 2009-10-10  Jim Meyering  <meyering@redhat.com>
25001
25002         stat-time-tests: check for the usleep function
25003         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25004
25005 2009-10-10  Bruno Haible  <bruno@clisp.org>
25006
25007         * modules/xnanosleep: Put the Link section after the Include section.
25008
25009 2009-10-09  Eric Blake  <ebb9@byu.net>
25010
25011         dup2: work around FreeBSD 6.1 bug
25012         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25013         * doc/posix-functions/dup2.texi (dup2): Document it.
25014         Reported by Nelson H. F. Beebe and Jim Meyering.
25015
25016         test-stat-time: port to buggy NFS clients
25017         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25018         (test_ctime): Also skip test if mtime and ctime are skewed.
25019
25020         maint: prefer 'file system' over 'filesystem'
25021         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25022         * doc/posix-functions/lstat.texi (lstat): Likewise.
25023         * lib/file-has-acl.c (file_has_acl): Likewise.
25024         * lib/fwriteerror.c [TEST]: Likewise.
25025         * tests/test-areadlink.h (test_areadlink): Likewise.
25026         * tests/test-areadlinkat-with-size.c (main): Likewise.
25027         * tests/test-areadlinkat.c (main): Likewise.
25028         * tests/test-canonicalize-lgpl.c (main): Likewise.
25029         * tests/test-canonicalize.c (main): Likewise.
25030         * tests/test-fstatat.c (main): Likewise.
25031         * tests/test-linkat.c (main): Likewise.
25032         * tests/test-lstat.h (test_lstat_func): Likewise.
25033         * tests/test-mkdir.h (test_mkdir): Likewise.
25034         * tests/test-readlink.h (test_readlink): Likewise.
25035         * tests/test-remove.c (main): Likewise.
25036         * tests/test-rename.h (test_rename): Likewise.
25037         * tests/test-renameat.c (main): Likewise.
25038         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25039         * tests/test-symlink.h (test_symlink): Likewise.
25040         * tests/test-symlinkat.c (main): Likewise.
25041         * tests/test-unlink.h (test_unlink_func): Likewise.
25042         * tests/test-unlinkat.c (main): Likewise.
25043
25044         maint: make realtime library usage explicit
25045         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25046         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25047         * modules/settime (Link): Likewise.
25048         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25049
25050         test-stat-time: speed up execution
25051         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25052         warning on mingw.
25053         (nap): New helper function.
25054         (prepare_test): Use it to reduce sleep time.
25055         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25056         execution.
25057         * modules/stat-time-tests (configure.ac): Check for usleep.
25058
25059 2009-10-09  Jim Meyering  <meyering@redhat.com>
25060
25061         selinux-h: always use getfilecon wrappers
25062         * lib/getfilecon.c: New file.
25063         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25064         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25065         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25066         (fgetfilecon): Provide a stub.
25067         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25068         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25069         file unconditionally.
25070         When <selinux/selinux.h> is found, arrange to use wrappers.
25071         * modules/selinux-h (Files): Add getfilecon.c.
25072         (Makefile.am): Substitute include-next-related bits
25073         into the now-always-generated selinux/selinux.h file.
25074         * doc/glibc-functions/lgetfilecon.texi: New file.
25075         * doc/glibc-functions/fgetfilecon.texi: New file.
25076         * doc/glibc-functions/getfilecon.texi: New file.
25077         * doc/glibc-functions/getfilecon-desc.texi: New file.
25078         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25079         which to pull in the new files.
25080         * MODULES.html.sh (Misc): Add selinux-h.
25081
25082 2009-10-08  Jim Meyering  <meyering@redhat.com>
25083
25084         unistd: fix comment typo
25085         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25086
25087 2009-10-08  Eric Blake  <ebb9@byu.net>
25088
25089         areadlink: use SIZE_MAX consistently
25090         * modules/areadlink (Depends-on): Add stdint.
25091         * modules/areadlink-with-size (Depends-on): Likewise.
25092         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25093         gives NULL; drop sys/types, since unistd gives size_t; and add
25094         stdint for SIZE_MAX.
25095         (SIZE_MAX): Rely on headers.
25096         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25097         and add stdint.
25098         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25099         (SIZE_MAX): Likewise.
25100         (INITIAL_BUF_SIZE): Turn into enum.
25101         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25102
25103 2009-10-08  Jim Meyering  <meyering@redhat.com>
25104
25105         areadlinkat: avoid compilation failure
25106         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25107         Fix typo in comment.
25108
25109 2009-10-07  Eric Blake  <ebb9@byu.net>
25110
25111         areadlinkat-with-size: new module
25112         * modules/areadlinkat-with-size: New module.
25113         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25114         * lib/areadlink.h (areadlinkat): Declare it.
25115         * MODULES.html.sh (File system functions): Mention it.
25116         * modules/areadlinkat-with-size-tests: New test.
25117         * tests/test-areadlinkat-with-size.c: New file.
25118
25119         xreadlinkat: new module
25120         * modules/xreadlinkat: New module.
25121         * lib/xreadlinkat.c (xreadlinkat): New file.
25122         * lib/xreadlink.h (xreadlinkat): Declare it.
25123         * MODULES.html.sh (File system functions): Mention it.
25124
25125         areadlinkat: new module
25126         * lib/at-func.c (FUNC_FAIL): New define.
25127         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25128         * modules/areadlinkat: New module.
25129         * lib/linkat.c (areadlinkat): Move...
25130         * lib/areadlinkat.c (areadlinkat): ...to new file.
25131         * lib/areadlink.h (areadlinkat): Declare it.
25132         * modules/linkat (Depends-on): Add areadlinkat.
25133         * MODULES.html.sh (File system functions): Mention it.
25134         * modules/areadlinkat-tests: New test.
25135         * tests/test-areadlinkat.c: New file.
25136
25137         areadlink, areadlink-with-size: add tests
25138         * modules/areadlink-tests: New test.
25139         * modules/areadlink-with-size-tests: Likewise.
25140         * tests/test-areadlink.h: New file.
25141         * tests/test-areadlink.c: Likewise.
25142         * tests/test-areadlink-with-size.c: Likewise.
25143
25144         maint: minor cleanups
25145         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25146         _UNUSED_PARAMETER_ instead.
25147         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25148         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25149         * modules/linkat-tests (Files): Distribute test-link.h.
25150
25151         openat, utimens: whitespace cleanup
25152         * lib/openat.c: Prefer space throughout, rather than mix of 8
25153         spaces vs. tabs.
25154         * lib/at-func.c: Likewise.
25155         * lib/utimens.c: Likewise.
25156
25157         openat: avoid using wrong fd
25158         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25159         working directory chooses same fd.
25160         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25161
25162         mkdir, mkdirat: fix cygwin 1.5.x bug
25163         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25164         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25165         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25166         bug.
25167         (gl_PREREQ_MKDIR): Delete unused macro.
25168         * modules/mkdir (Files): Track file rename.
25169         (configure.ac): Update macro name.
25170         * modules/openat (Depends-on): Add mkdir.
25171         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25172
25173         mkdir, mkdirat: add tests
25174         * modules/mkdir-tests: New test.
25175         * tests/test-mkdir.h: New file.
25176         * tests/test-mkdir.c: Likewise.
25177         * tests/test-mkdirat.c: Likewise.
25178         * modules/openat-tests (Files): Add new files.
25179         (Makefile.am): Run new test.
25180
25181 2009-10-06  Eric Blake  <ebb9@byu.net>
25182
25183         doc: tweak *at function documentation
25184         * doc/posix-functions/faccessat.texi (faccessat): Mention
25185         known issue with replacement.
25186         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25187         * doc/posix-functions/linkat.texi (linkat): Likewise.
25188         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25189         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25190         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25191         * doc/posix-functions/renameat.texi (renameat): Likewise.
25192         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25193
25194         openat: fix GNU/Hurd bug in unlinkat
25195         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25196         broken.
25197         * doc/posix-functions/unlink.texi (unlink): Document this.
25198         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25199
25200         fdopendir: fix GNU/Hurd bug
25201         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25202         allowing non-directory fds.
25203         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25204         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25205         * modules/dirent (Makefile.am): Substitute it.
25206         * lib/dirent.in.h (fdopendir): Declare replacement.
25207         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25208         * tests/test-fdopendir.c (main): Test something other than
25209         /dev/null, since on Hurd that behaves like a directory.
25210
25211         test-symlink: port to GNU/Hurd
25212         * tests/test-symlink.h (test_symlink): Relax expected errno.
25213
25214         doc: tweak more cygwin information
25215         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25216         now compatible with glibc.
25217         * doc/posix-functions/getopt.texi (getopt): Likewise.
25218
25219         getopt-gnu: add another test
25220         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25221         guarantee behavior relied on by m4.
25222         * tests/test-getopt.c (main): Use it.
25223         * modules/getopt-posix-tests (Depends-on): Add setenv.
25224         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25225
25226         getopt: fix compilation on darwin
25227         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25228         include.
25229         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25230         Reported by Ludovic Courtès.
25231
25232 2009-10-06  Bruno Haible  <bruno@clisp.org>
25233
25234         * modules/size_max (Description): Discourage its use.
25235         Reported by Simon Josefsson.
25236
25237 2009-10-06  Jim Meyering  <meyering@redhat.com>
25238
25239         linkat: avoid compilation failure
25240         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25241
25242 2009-10-05  Eric Blake  <ebb9@byu.net>
25243
25244         linkat: support Linux 2.6.17
25245         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25246         linkat on Linux, but allow cache variable override.
25247         * lib/linkat.c (rpl_linkat): Define override.
25248         * modules/linkat (Depends-on): Add symlinkat.
25249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25250         * modules/unistd (Makefile.am): Substitute it.
25251         * lib/unistd.in.h (linkat): Declare replacement.
25252         Reported by Pádraig Brady.
25253
25254         quotearg: port test to systems with C.UTF-8 locale
25255         * tests/test-quotearg.c (struct result_strings): Add another
25256         member, differentiating between C.ASCII and C.UTF-8 handling.
25257         (compare_strings): Add parameter.
25258         (main): Adjust all callers.
25259
25260         getopt: avoid clash with FreeBSD _getopt_internal
25261         * lib/getopt.in.h (_getopt_internal): Override the name.
25262         * lib/getopt_int.h (includes): Pick up any overrides.
25263         Reported by Reuben Thomas.
25264
25265         hash: allow C89 compilation
25266         * lib/hash.c (check_tuning): Move declaration before statement.
25267         Reported by Reuben Thomas.
25268
25269 2009-10-05  Karl Berry  <karl@gnu.org>
25270
25271         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25272
25273 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25274             Bruno Haible  <bruno@clisp.org>
25275
25276         * lib/uname.c (uname): Use a table-driven algorithm to compute
25277         Windows NT versions.
25278
25279 2009-10-04  Bruno Haible  <bruno@clisp.org>
25280
25281         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25282         program_invocation_short_name.
25283         * modules/progname (configure.ac): Test for presence of
25284         program_invocation_short_name.
25285         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25286
25287 2009-10-04  Bruno Haible  <bruno@clisp.org>
25288
25289         * lib/progname.c (set_program_name): Fix comment.
25290         Reported by Jim Meyering.
25291
25292 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25293             Bruno Haible  <bruno@clisp.org>
25294
25295         * lib/uname.c: Include <string.h>.
25296         (uname): Do only one call to GetVersionEx in the common case.
25297
25298 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25299             Bruno Haible  <bruno@clisp.org>
25300
25301         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25302         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25303         (uname): Add support for Windows CE and various non-x86 CPU types.
25304
25305 2009-10-03  Bruno Haible  <bruno@clisp.org>
25306
25307         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25308         invocation to tests/configure.ac.
25309         Reported by Ian Beckwith <ianb@erislabs.net>.
25310
25311 2009-10-02  Eric Blake  <ebb9@byu.net>
25312
25313         fchdir: avoid compiler warning
25314         * lib/fchdir.c (canonicalize_file_name)
25315         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25316
25317         test-open: support mingw errno values
25318         * tests/test-open.h (test_open): Relax test.
25319         * tests/test-fopen.h (test_fopen): Likewise.
25320         * tests/test-openat-safer.c (main): Likewise.
25321
25322         open: fix opening directory on mingw
25323         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25324
25325         test-open: on GNU/Hurd, /dev/null is a directory
25326         * tests/test-fopen.h (main): Rename...
25327         (test_fopen): ...to this.  Use a guaranteed non-directory when
25328         confirming open behavior on trailing slash.
25329         * tests/test-openat-safer.c (main): Likewise.
25330         * tests/test-open.h (main): Likewise....
25331         (test_open): ...to this.
25332         * tests/test-fopen.c (main): Adjust caller.
25333         * tests/test-fopen-safer.c (main): Likewise.
25334         * tests/test-open.c (main): Likewise.
25335         * tests/test-fcntl-safer.c (main): Likewise.
25336         Reported by Samuel Thibault.
25337
25338         rename, fchdir: don't ignore chdir failure
25339         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25340         * lib/rename.c (rpl_rename) [W32]: Likewise.
25341         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25342         an empty destination directory if source cannot be renamed,
25343         although there is still possibility for failure.
25344         * doc/posix-functions/rename.texi (rename): Document the race.
25345         Reported by Jim Meyering.
25346
25347         maint: cleanup whitespace in recent commits
25348         * lib/rename.c (rpl_rename): Remove tabs.
25349         * tests/test-link.h (test_link): Likewise.
25350         * lib/fchdir.c (get_name): Likewise.
25351         Reported by Jim Meyering.
25352
25353 2009-10-02  Ben Pfaff  <blp@gnu.org>
25354
25355         relocatable-prog-wrapper: Add missing dependency on
25356         double-slash-root.
25357         * modules/relocatable-prog-wrapper: Add dependency.
25358         Reported by Ian Beckwith <ianb@erislabs.net>.
25359
25360 2009-10-02  Eric Blake  <ebb9@byu.net>
25361
25362         renameat: fix Solaris bugs
25363         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25364         needed fixing.
25365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25366         * modules/stdio (Makefile.am): Substitute it.
25367         * lib/stdio.in.h (renameat): Declare replacement.
25368         * lib/renameat.c (rpl_renameat): Implement fix.
25369
25370         renameat: new module
25371         * modules/renameat: New file.
25372         * lib/renameat.c (renameat): Likewise.
25373         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25375         * modules/stdio (Makefile.am): Substitute them.
25376         * lib/stdio.in.h (renameat): Declare it.
25377         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25378         * doc/posix-functions/renameat.texi (renameat): Likewise.
25379         * modules/renameat-tests: New test.
25380         * tests/test-renameat.c: Likewise.
25381
25382         rename: fix mingw bugs
25383         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25384         directory overwrite bugs.
25385
25386         rename: fix another cygwin 1.5 bug
25387         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25388         checks.
25389         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25390         unnecessary cygwin workarounds.  Also work around bug with moving
25391         full directory onto an empty one.
25392         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25393
25394         rename-dest-slash: merge into rename module
25395         * modules/rename-dest-slash (Status): Mark obsolete.
25396         (Depends-on): Add rename.
25397         (Files): Let rename do it all.
25398         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25399         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25400         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25401         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25402         * lib/rename.c (rpl_rename): Update comments.
25403
25404         rename: fix cygwin 1.5.x bugs
25405         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25406         * lib/rename.c (rpl_rename): Work around them.
25407         * modules/rename (Depends-on): Add same-inode.
25408
25409         rename: fix Solaris 10 bug
25410         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25411         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25412         was the only bug.
25413
25414         rename: fix Solaris 9 bug
25415         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25416         on non-directory.  Avoid calling exit.
25417         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25418         strdup.
25419         * modules/rename-tests (Depends-on): Drop lstat.
25420         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25421         (gl_PREREQ_RENAME): Delete unused macro.
25422
25423         rename-dest-slash: fix NetBSD bug
25424         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25425         links.
25426         * modules/rename-dest-slash (Depends-on): Add same-inode.
25427
25428         rename-tests: new test, exposes several platform bugs
25429         * modules/rename-tests: New file.
25430         * tests/test-rename.h: Likewise.
25431         * tests/test-rename.c: Likewise.
25432         * doc/posix-functions/rename.texi (rename): Improve documentation,
25433         including bugs that will eventually be fixed in gnulib.
25434
25435 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25436
25437         * lib/uname.c: Include <stdlib.h>
25438         (uname): Assume version info is available.
25439
25440 2009-10-02  Jim Meyering  <meyering@redhat.com>
25441
25442         gnu-web-doc-update: correct --help output
25443         * build-aux/gnu-web-doc-update: Make --help output relevant.
25444
25445         gnu-web-doc-update: add standard options
25446         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25447
25448         gnu-web-doc-update: New module.
25449         Use this script to automatically update the on-line web documentation
25450         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25451         * modules/gnu-web-doc-update: New file, from coreutils.
25452         * build-aux/gnu-web-doc-update: New script.
25453
25454 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25455
25456         link: LoadLibrary is not needed.
25457         * lib/link.c: Use GetModuleHandle.
25458
25459 2009-10-01  Eric Blake  <ebb9@byu.net>
25460
25461         getopt: bump serial number
25462         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25463         change.
25464
25465         tests: tighten link, rmdir, and remove tests
25466         * tests/test-link.h (includes): No need to use <config.h> here.
25467         Clean up if directory hard link was created, otherwise test for
25468         trailing '.'.
25469         * tests/test-linkat.c (main): Simplify.
25470         * tests/test-remove.c (main): Enhance test for trailing '.'.
25471         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25472
25473 2009-10-01  Jim Meyering  <meyering@redhat.com>
25474
25475         maint.mk: requiring "make major" was annoying, for a "minor" release.
25476         What is intended is "stable", to contrast with alpha and beta,
25477         so require "make stable", not "make major".
25478         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25479         (get_tool_versions): Likewise.
25480         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25481
25482 2009-09-30  Ben Pfaff  <blp@gnu.org>
25483
25484         Fix broken build of replacement for Windows tmpfile().
25485         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25486         flags argument added along with the 'mkostemp' module.
25487
25488 2009-09-28  Bruno Haible  <bruno@clisp.org>
25489
25490         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25491         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25492         to 'remove_elt'.
25493         (gl_list_remove): Update.
25494         * lib/gl_list.c (gl_list_remove): Update.
25495         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25496         to 'remove_elt'.
25497         (gl_oset_remove): Update.
25498         * lib/gl_list.c (gl_oset_remove): Update.
25499         Reported by Eric Blake.
25500
25501 2009-09-28  Eric Blake  <ebb9@byu.net>
25502
25503         doc: mention yet more cygwin 1.7 status
25504         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25505         cygwin.
25506         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25507         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25508
25509         argp: fix test failure
25510         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25511         that are not upper-case.  Pass correct range to tolower.
25512
25513 2009-09-27  Jim Meyering  <meyering@redhat.com>
25514
25515         test-yesno: work around sparc-dash here-document infelicity
25516         Without this change, the literal \177 byte in a here document
25517         would make dash 0.5.5.1-3 access uninitialized memory.
25518         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25519         Instead, use a marker, "@", and filter through tr to create the desired
25520         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25521
25522 2009-09-27  Bruno Haible  <bruno@clisp.org>
25523
25524         Disable untested support for new flavours of ACLs on AIX.
25525         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25526         progress.
25527         * lib/set-mode-acl.c (qset_acl): Likewise.
25528
25529 2008-12-07  Bruno Haible  <bruno@clisp.org>
25530
25531         Add support for new flavours of ACLs on AIX. (Untested.)
25532         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25533         (file_has_acl): Add support for newer AIX.
25534         * lib/set-mode-acl.c (qset_acl): Likewise.
25535         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25536         Rainer Tammer <tammer@tammer.net>.
25537
25538 2009-09-26  Eric Blake  <ebb9@byu.net>
25539
25540         argp: fix compilation of getopt
25541         * lib/getopt.in.h (includes): Use different guard than glibc.
25542         Reported by Sergey Poznyakoff.
25543
25544         doc: mention more cygwin 1.7 status
25545         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25546         bug.
25547         * doc/posix-functions/execl.texi (execl): Likewise.
25548         * doc/posix-functions/execle.texi (execle): Likewise.
25549         * doc/posix-functions/execlp.texi (execlp): Likewise.
25550         * doc/posix-functions/execv.texi (execv): Likewise.
25551         * doc/posix-functions/execve.texi (execve): Likewise.
25552         * doc/posix-functions/execvp.texi (execvp): Likewise.
25553         * doc/glibc-functions/canonicalize_file_name.texi
25554         (canonicalize_file_name): Cygwin 1.7 now provides this.
25555         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25556         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25557         on AT_SYMLINK_NOFOLLOW.
25558
25559 2009-09-24  Eric Blake  <ebb9@byu.net>
25560
25561         test-linkat: make test more robust
25562         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25563
25564         getopt: fix inclusion guards for cygwin
25565         * modules/getopt-posix (Depends-on): Add include-next.
25566         (Makefile.am): Substitute more items in replacement header.
25567         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25568         <getopt.h>.
25569         * lib/getopt.in.h (includes): Use split inclusion guard, and
25570         prefer <getopt.h> over include <unistd.h> when one is present.
25571         (option): Also override name of 'struct option'.
25572
25573         same-inode: revert prior change; it is not yet ready
25574         * NEWS: Undo mention of this change.
25575         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25576         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25577         * lib/cycle-check.c (cycle_check): Likewise.
25578         * lib/same.c (same_name): Likewise.
25579         * lib/at-func2.c (at_func2): Likewise.
25580
25581 2009-09-23  Eric Blake  <ebb9@byu.net>
25582
25583         linkat: new module
25584         * modules/linkat: New file.
25585         * lib/at-func2.c (at_func2): Likewise.
25586         * lib/linkat.c (linkat): Likewise.
25587         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25588         * lib/openat-priv.h (at_func2): Add declaration.
25589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25590         * modules/unistd (Makefile.am): Substitute them.
25591         * lib/unistd.in.h (linkat): Declare it.
25592         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25593         * doc/posix-functions/linkat.texi (linkat): Likewise.
25594         * doc/posix-functions/link.texi (link): Tweak wording.
25595         * tests/test-link.c (main): Move guts...
25596         * tests/test-link.h (test_link): ...into new file.
25597         * modules/linkat-tests: New test.
25598         * tests/test-linkat.c: Likewise.
25599         * modules/link-tests (Files): Ship new file.
25600         (Depends-on): Add stdbool.
25601
25602         dirname: add library-safe mdir_name
25603         * lib/dirname.h (mdir_name): New prototype.
25604         * lib/dirname.c (dir_name): Move guts...
25605         (mdir_name): ...to new function that avoids xalloc_die.
25606
25607         fchdir: another mingw fix
25608         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25609         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25610         on mingw (where it has not yet been ported), and make it optional
25611         elsewhere.
25612         (_gl_register_fd): Use it.
25613
25614         same-inode: make SAME_INODE tri-state, to port to mingw
25615         * NEWS: Mention this change.
25616         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25617         st_ino always being 0.
25618         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25619         * lib/cycle-check.c (cycle_check): Likewise.
25620         * lib/same.c (same_name): Likewise.
25621
25622         lstat: avoid mingw compilation error
25623         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25624         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25625         lstat ourselves.
25626         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25627         was adequate.
25628         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25629         the checks for lstat.
25630         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25631
25632         link: fix test failure on Solaris 9
25633         * lib/link.c (rpl_link): Don't assume link will catch bogus
25634         trailing slash on source.
25635
25636         test-symlinkat: enhance test
25637         * tests/test-readlink.c (main): Move guts...
25638         * tests/test-readlink.h (test_readlink): ...into new file.
25639         * tests/test-symlink.c (main): Move guts...
25640         * tests/test-symlink.h (test_symlink): ...into new file.
25641         * tests/test-symlinkat.c (main): Use new files for further
25642         coverage.
25643         (do_symlink, do_readlink): New helper functions.
25644         * modules/symlink-tests (Files): Ship new file.
25645         (Depends-on): Add stdbool.
25646         * modules/readlink-tests (Files): Ship new file.
25647         (Depends-on): Add stdbool.
25648         * modules/symlinkat-tests (Files): Use new files.
25649
25650 2009-09-23  Eric Blake  <ebb9@byu.net>
25651
25652         readlink: document portability issue with symlink length
25653         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25654         systems have bogus st_size on symlinks, and mention the
25655         areadlink-with-size module.
25656         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25657         * doc/posix-functions/readlink.texi (readlink): Mention the
25658         areadlink module, and ERANGE failure.
25659         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25660         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25661
25662         readlink: fix Solaris 9 bug with trailing slash
25663         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25664         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25665         * doc/posix-functions/readlink.texi (readlink): Document this.
25666         * modules/readlink-tests: New test.
25667         * tests/test-readlink.c: Likewise.
25668
25669         readlink: fix cygwin 1.5.x bug with return type
25670         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25671         * lib/unistd.in.h (readlink): Use ssize_t.
25672         * lib/readlink.c (readlink): Likewise.
25673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25674         * modules/unistd (Makefile.am): Substitute it.
25675         * lib/unistd.in.h (readlink): Declare replacement.
25676         * doc/posix-functions/readlink.texi (readlink): Document this.
25677
25678         symlink: use throughout gnulib
25679         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25680         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25681         symlink is not used.
25682         * modules/symlinkat (Depends-on): Add symlink.
25683         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25684         * modules/canonicalize-tests (Depends-on): Likewise.
25685         * modules/lstat-tests (Depends-on): Likewise.
25686         * modules/openat-tests (Depends-on): Likewise.
25687         * modules/remove-tests (Depends-on): Likewise.
25688         * modules/rmdir-tests (Depends-on): Likewise.
25689         * modules/unlink-tests (Depends-on): Likewise.
25690         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25691         * tests/test-canonicalize.c (symlink): Likewise.
25692         * tests/test-fstatat.c (symlink): Likewise.
25693         * tests/test-lstat.c (symlink): Likewise.
25694         * tests/test-remove.c (symlink): Likewise.
25695         * tests/test-rmdir.c (symlink): Likewise.
25696         * tests/test-unlink.c (symlink): Likewise.
25697         * tests/test-unlinkat.c (symlink): Likewise.
25698
25699         symlink: new module, for Solaris 9 bug
25700         * modules/symlink: New file.
25701         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25702         * lib/symlink.c: Likewise.
25703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25704         * modules/unistd (Makefile.am): Substitute them.
25705         * lib/unistd.in.h (symlink): Declare replacement.
25706         * MODULES.html.sh (File system functions): Mention it.
25707         * doc/posix-functions/symlink.texi (symlink): Likewise.
25708         * modules/symlink-tests: New test.
25709         * tests/test-symlink.c: Likewise.
25710
25711 2009-09-23  Bruno Haible  <bruno@clisp.org>
25712
25713         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25714         when needed.
25715         Test case: gnulib-tool --import --with-tests atexit inttypes.
25716         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25717
25718 2009-09-23  Bruno Haible  <bruno@clisp.org>
25719
25720         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25721         subcommand, not in a subshell.
25722
25723 2009-09-22  Eric Blake  <ebb9@byu.net>
25724
25725         unistd: sort replacement declarations
25726         * lib/unistd.in.h: Sort declarations.
25727
25728         open, openat: minor optimization
25729         * lib/open.c (open): If open succeeded, len is non-zero.
25730         * lib/openat.c (rpl_openat): Likewise.
25731
25732         link-follow: ensure correct result
25733         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25734         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25735         distinguish between possible failures.
25736
25737 2009-09-21  Eric Blake  <ebb9@byu.net>
25738
25739         fts: avoid compiler warning
25740         * lib/fts.c (dirent_inode_sort_may_be_useful)
25741         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25742
25743 2009-09-19  Bruno Haible  <bruno@clisp.org>
25744
25745         * lib/progreloc.c (canonicalize_file_name): New declaration.
25746
25747 2009-09-19  Eric Blake  <ebb9@byu.net>
25748
25749         link: fix quoting
25750         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25751
25752         openat: fix openat bugs on Solaris 9
25753         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25754         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25755         * modules/openat (Depends-on): Add open.
25756         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25757         * modules/fcntl-h (Makefile.am): Substitute it.
25758         * lib/fcntl.in.h (openat): Declare replacement.
25759         * doc/posix-functions/openat.texi (openat): Document this.
25760
25761         openat: move fstatat and unlinkat into correct files
25762         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25763         compiled.
25764         * lib/openat.c (fstatat, unlinkat): Move...
25765         * lib/fstatat.c (fstatat): ...into correct files.
25766         * lib/unlinkat.c (unlinkat): Likewise.
25767
25768         openat: fix unlinkat bugs on Solaris 9
25769         * lib/unlinkat.c (unlinkat): New file.
25770         * modules/openat (Depends-on): Add unlink.
25771         (Files): Distribute it.
25772         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25773         trailing slash behavior is broken.
25774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25775         * modules/unistd (Makefile.am): Substitute it.
25776         * lib/unistd.in.h (unlinkat): Declare replacement.
25777         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25778
25779         openat: fix fstatat bugs on Solaris 9
25780         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25781         stat.
25782         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25783
25784         test-unlinkat: enhance test, to expose Solaris 9 bug
25785         * tests/test-unlink.c (main): Factor guts...
25786         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25787         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25788         * tests/test-rmdir.c (main): Adjust caller.
25789         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25790         (unlinker): New helper function.
25791         (rmdirat): Enhance check.
25792         * modules/rmdir-tests (Depends-on): Add stdbool.
25793         * modules/unlink-tests (Depends-on): Likewise.
25794         (Files): Add test-unlink.h.
25795         * modules/openat-tests (Files): Likewise.
25796         (Depends-on): Add unlinkdir.
25797
25798         test-fstatat: new test, to expose Solaris 9 bugs
25799         * tests/test-stat.c (main): Factor guts...
25800         * tests/test-stat.h (test_stat_func): ...into new file.
25801         * tests/test-lstat.c (main): Factor guts...
25802         * tests/test-lstat.h (test_lstat_func): ...into new file.
25803         * tests/test-fstatat.c: New file.
25804         * modules/stat-tests (Files): Add test-stat.h.
25805         * modules/lstat-tests (Files): Add test-lstat.h.
25806         (Depends-on): Add stdbool.
25807         * modules/openat-tests (Depends-on): Add pathmax.
25808         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25809         (Makefile.am): Run new test.
25810
25811         remove: new module, for mingw and Solaris 9 bugs
25812         * modules/remove: New file.
25813         * lib/remove.c: Likewise.
25814         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25816         * modules/stdio (Makefile.am): Use them.
25817         * lib/stdio.in.h (remove): Declare replacement.
25818         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25819         * doc/posix-functions/remove.texi (remove): Likewise.
25820         * modules/remove-tests: New test.
25821         * tests/test-remove.c: Likewise.
25822
25823         unlink: new module, for Solaris 9 bug
25824         * modules/unlink: New file.
25825         * lib/unlink.c: Likewise.
25826         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25828         * modules/unistd (Makefile.am): Use them.
25829         * lib/unistd.in.h (stat): Declare replacement.
25830         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25831         * doc/posix-functions/unlink.texi (unlink): Likewise.
25832         * modules/unlink-tests: New test.
25833         * tests/test-unlink.c: Likewise.
25834
25835         lstat: fix Solaris 9 bug
25836         * lib/lstat.c (lstat): Also check for trailing slash on
25837         non-symlink, non-directories.  Use stat module to simplify logic.
25838         * doc/posix-functions/lstat.texi (lstat): Document it.
25839         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25840         (configure.ac): Check for symlink.
25841         * tests/test-lstat.c (main): Add more tests.
25842
25843         stat: add as dependency to other modules
25844         * modules/chown (Depends-on): Add stat.
25845         * modules/euidaccess (Depends-on): Likewise.
25846         * modules/fchdir (Depends-on): Likewise.
25847         * modules/isdir (Depends-on): Likewise.
25848         * modules/link (Depends-on): Likewise.
25849         * modules/lstat (Depends-on): Likewise.
25850         * modules/mkdir-p (Depends-on): Likewise.
25851         * modules/modechange (Depends-on): Likewise.
25852         * modules/open (Depends-on): Likewise.
25853         * modules/readlink (Depends-on): Likewise.
25854         * modules/same (Depends-on): Likewise.
25855
25856         stat: fix Solaris 9 bug
25857         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25858         slash.
25859         * lib/stat.c (rpl_stat): Work around it.
25860         * doc/posix-functions/stat.texi (stat): Update documentation.
25861
25862         stat: new module, for mingw bug
25863         * modules/stat: New file.
25864         * lib/stat.c: Likewise.
25865         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25866         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25867         * modules/sys_stat (Makefile.am): Use them.
25868         * lib/sys_stat.in.h (stat): Declare replacement.
25869         * lib/openat.c (fstatat): Deal with lstat and stat being function
25870         macros.
25871         * modules/openat (Depends-on): Add inline.
25872         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25873         * doc/posix-functions/stat.texi (stat): Likewise.
25874         * modules/stat-tests: New test.
25875         * tests/test-stat.c: Likewise.
25876
25877 2009-09-19  Jim Meyering  <meyering@redhat.com>
25878
25879         syntax-check: detect unnecessary inclusion of canonicalize.h
25880         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25881
25882 2009-09-19  Eric Blake  <ebb9@byu.net>
25883
25884         canonicalize-lgpl: adjust clients to use correct header
25885         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25886         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25887         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25888         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25889         * lib/progreloc.c (includes): Likewise.
25890
25891 2009-09-19  Jim Meyering  <meyering@redhat.com>
25892
25893         test-posixtm.c: correct a comment
25894         * tests/test-posixtm.c: Correct first-line comment.
25895         Spotted by Eric Blake.
25896
25897 2009-09-16  Jim Meyering  <meyering@redhat.com>
25898
25899         posixtm-tests: make T const-correct; add a test case
25900         * tests/test-posixtm.c (T): Declare const.
25901         Add a test for -(2^31+1).
25902         Remove useless can-succeed-only-in-2002 test.
25903
25904         posixtm-tests: adjust the sole failing test
25905         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25906         expected output matches what mktime now produces.  Cross-checked via
25907         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25908
25909         posixtm: move #ifdef'd tests into a new module
25910         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25911         * tests/test-posixtm.c: ... this new file.
25912         * modules/posixtm-tests: New module.
25913
25914 2009-09-19  Eric Blake  <ebb9@byu.net>
25915
25916         openat: simplify use of at-func.c
25917         * lib/at-func.c (includes): Include prerequisites here, to
25918         simplify requirements on client files.
25919         * lib/openat-priv.h: Add double-inclusion guard.
25920         * lib/faccessat.c (includes): Simplify.
25921         * lib/fchmodat.c (includes): Likewise.
25922         * lib/fchownat.c (includes): Likewise.
25923         * lib/mkdirat.c (includes): Likewise.
25924         * lib/mkfifoat.c (includes): Likewise.
25925         * lib/symlinkat.c (includes): Likewise.
25926
25927         openat: allow return of fd 0
25928         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25929         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25930         unistd-safer.
25931         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25932         <fcntl.h>; this module does not leak fds.
25933         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25934         must be allowed to return 0, leaving openat_safer to add the
25935         safety.
25936         (openat_permissive): Avoid writing to just-opened fd 2 if
25937         restoring the current directory fails.
25938         * lib/openat-die.c (openat_restore_fail): Add comment.
25939         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25940         (save_cwd): Guarantee safe fd, but without use of open_safer.
25941         * tests/test-openat.c: New test.
25942         * modules/openat-tests (Files, Makefile.am): Distribute and build
25943         new file.
25944
25945         relocatable-prog-wrapper: fix build
25946         * modules/relocatable-prog-wrapper (Files): Update name of
25947         canonicalize m4 file, broken on 2009-09-17.
25948         Reported by emad hajjar <aleppos@hotmail.com>.
25949
25950 2009-09-19  Bruno Haible  <bruno@clisp.org>
25951
25952         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25953         * lib/safe-alloc.c: Likewise.
25954         Reported by Ian Beckwith <ianb@erislabs.net>.
25955
25956 2009-09-18  Bruno Haible  <bruno@clisp.org>
25957
25958         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25959         Reported by <erobles@sensacd.com.mx>.
25960
25961 2009-09-17  Eric Blake  <ebb9@byu.net>
25962
25963         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25964         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25965         slashes when checking if last component is missing.
25966         * tests/test-canonicalize.c (main): Test this.
25967
25968         canonicalize, canonicalize-lgpl: honor // if distinct from /
25969         * modules/canonicalize (Files): Add double-slash-root.m4.
25970         * modules/canonicalize-lgpl (Files): Likewise.
25971         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25972         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25973         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25974         fallback definition.
25975         (canonicalize_filename_mode): Use it to protect //.
25976         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25977         (__realpath): Likewise.
25978         * tests/test-canonicalize.c (main): Test this.
25979         * tests/test-canonicalize-lgpl.c (main): Likewise.
25980         * modules/canonicalize-tests (Depends-on): Add same-inode.
25981         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25982
25983         canonicalize-lgpl: fix glibc bug with trailing slash
25984         * m4/canonicalize-lgpl.m4: Move contents...
25985         * m4/canonicalize.m4: ...here.
25986         (gl_CANONICALIZE_LGPL): Factor realpath check...
25987         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25988         glibc 2.3.5 bug, fixed 2005-04-27.
25989         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25990         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25991         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25992         * modules/canonicalize-lgpl (Files): Manage file rename.
25993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25994         * modules/stdlib (Makefile.am): Substitute witness.
25995         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25996         is needed.
25997         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25998         replacement is required.
25999         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26000         * doc/glibc-functions/canonicalize_file_name.texi
26001         (canonicalize_file_name): Document this.
26002         * doc/posix-functions/realpath.texi (realpath): Likewise.
26003
26004         canonicalize-lgpl: reject non-directory with trailing slash
26005         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26006         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26007         catches failures in glibc 2.3.5.
26008         * tests/test-canonicalize.c (main): Likewise.
26009
26010         canonicalize-lgpl: use native realpath if it works
26011         * lib/canonicalize-lgpl.c (realpath): Guard with
26012         FUNC_REALPATH_WORKS.
26013         * lib/stdlib.in.h (realpath): Make declaration optional based on
26014         HAVE_REALPATH.
26015         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26016         native realpath works.
26017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26018         * modules/stdlib (Makefile.am): Substitute witness.
26019
26020         canonicalize, canonicalize-lgpl: use <stdlib.h>
26021         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26022         (Include): Mention <stdlib.h>.
26023         (configure.ac): Mention functions we provide.
26024         * modules/canonicalize (configure.ac): Likewise.
26025         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26026         realpath if canonicalize_file_name is missing.
26027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26028         * modules/stdlib (Makefile.am): Substitute witnesses.
26029         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26030         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26031         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26032         * NEWS: Document this.
26033         * doc/glibc-functions/canonicalize_file_name.texi
26034         (canonicalize_file_name): Likewise.
26035         * doc/posix-functions/realpath.texi (realpath): Likewise.
26036         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26037
26038         test-canonicalize: consolidate into single C program
26039         * tests/test-canonicalize.sh: Delete; move setup into...
26040         * tests/test-canonicalize.c (main): ...the program, making it
26041         easier to run in debugger.  Add some tests.
26042         * modules/canonicalize-tests (Files): Remove unused file.
26043         (Depends-on): Add progname.
26044         (configure.ac, Makefile.am): Simplify.
26045
26046         test-canonicalize-lgpl: consolidate into single C program
26047         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26048         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26049         easier to run in debugger.  Add some tests.
26050         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26051         (configure.ac, Makefile.am): Simplify.
26052
26053         canonicalize: avoid resolvepath
26054         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26055         unnecessary checks.
26056         * lib/canonicalize.c (includes): Simplify.
26057         (canonicalize_file_name): Drop resolvepath implementation.
26058         * modules/canonicalize (Depends-on): Drop filenamecat.
26059
26060         canonicalize: don't lose errno
26061         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26062         over calls to free.
26063
26064         canonicalize: simplify errno handling
26065         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26066         assignment.
26067
26068         canonicalize, canonicalize-lgpl: update module dependencies
26069         * modules/canonicalize (Depends-on): Add extensions, lstat,
26070         pathmax, stdlib.
26071         (Files): Drop pathmax.h.
26072         (configure.ac): Adjust macro name.
26073         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26074         lstat, stdlib, sys_stat.
26075         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26076         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26077         extensions.
26078         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26079         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26080         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26081         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26082         declaration, if available.
26083         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26084         we can rely on the readlink module.
26085         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26086         (includes): Use <unistd.h> unconditionally.
26087
26088 2009-09-17  Eric Blake  <ebb9@byu.net>
26089
26090         maint: make Include sections of modules consistent
26091         * modules/alloca: Use only header name; no need to list #include.
26092         * modules/alloca-opt: Likewise.
26093         * modules/arpa_inet: Likewise.
26094         * modules/canon-host: Likewise.
26095         * modules/configmake: Likewise.
26096         * modules/dirent: Likewise.
26097         * modules/eealloc: Likewise.
26098         * modules/environ: Likewise.
26099         * modules/fchdir: Likewise.
26100         * modules/fcntl: Likewise.
26101         * modules/fcntl-h: Likewise.
26102         * modules/gethrxtime: Likewise.
26103         * modules/gettime: Likewise.
26104         * modules/ignore-value: Likewise.
26105         * modules/inet_ntop: Likewise.
26106         * modules/inet_pton: Likewise.
26107         * modules/inttypes: Likewise.
26108         * modules/isnand-nolibm: Likewise.
26109         * modules/isnanf-nolibm: Likewise.
26110         * modules/mbchar: Likewise.
26111         * modules/mbfile: Likewise.
26112         * modules/mbiter: Likewise.
26113         * modules/mbuiter: Likewise.
26114         * modules/netdb: Likewise.
26115         * modules/netinet_in: Likewise.
26116         * modules/nproc: Likewise.
26117         * modules/pagealign_alloc: Likewise.
26118         * modules/poll: Likewise.
26119         * modules/printf-frexp: Likewise.
26120         * modules/pthread: Likewise.
26121         * modules/putenv: Likewise.
26122         * modules/random_r: Likewise.
26123         * modules/relocatable-prog: Likewise.
26124         * modules/search: Likewise.
26125         * modules/select: Likewise.
26126         * modules/selinux-h: Likewise.
26127         * modules/settime: Likewise.
26128         * modules/signal: Likewise.
26129         * modules/size_max: Likewise.
26130         * modules/socklen: Likewise.
26131         * modules/ssize_t: Likewise.
26132         * modules/stdarg: Likewise.
26133         * modules/stdbool: Likewise.
26134         * modules/stddef: Likewise.
26135         * modules/stdint: Likewise.
26136         * modules/stdio: Likewise.
26137         * modules/stdlib: Likewise.
26138         * modules/string: Likewise.
26139         * modules/strings: Likewise.
26140         * modules/sys_file: Likewise.
26141         * modules/sys_ioctl: Likewise.
26142         * modules/sys_select: Likewise.
26143         * modules/sys_socket: Likewise.
26144         * modules/sys_stat: Likewise.
26145         * modules/sys_time: Likewise.
26146         * modules/sys_times: Likewise.
26147         * modules/sys_utsname: Likewise.
26148         * modules/sys_wait: Likewise.
26149         * modules/sysexits: Likewise.
26150         * modules/time: Likewise.
26151         * modules/times: Likewise.
26152         * modules/tmpfile: Likewise.
26153         * modules/trim: Likewise.
26154         * modules/unistd: Likewise.
26155         * modules/wchar: Likewise.
26156         * modules/wctype: Likewise.
26157
26158 2009-09-17  Bruno Haible  <bruno@clisp.org>
26159
26160         Make getdate.y compile on QNX and NetBSD 5 / i386.
26161         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26162         TIME_T_FITS_IN_LONG_INT.
26163         * lib/getdate.y (long_time_t): New type.
26164         (relative_time): Change type of 'seconds' field to long_time_t.
26165         (get_date): Update types of local variables. Check against overflow
26166         during conversion from long_time_t to time_t.
26167         Reported by Matt Kraai <kraai@ftbfs.org>
26168         and Hasso Tepper <hasso@netbsd.org>.
26169
26170 2009-09-17  Bruno Haible  <bruno@clisp.org>
26171
26172         * modules/COPYING: Update copyright years.
26173         * modules/README: Likeiwse.
26174         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26175         Reported by Ian Beckwith <ianb@erislabs.net>.
26176
26177 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26178
26179         * users.txt: Update references for gnuit package.
26180
26181 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26182
26183         * m4/getdelim.m4: Fix typo in copyright line.
26184
26185 2009-09-17  Bruno Haible  <bruno@clisp.org>
26186
26187         * lib/atoll.c: Use the standard header with GPL copyright.
26188         * lib/argz.in.h: Likewise.
26189         * lib/glob.c: Likewise.
26190         * lib/glob-libc.h: Likewise.
26191         * lib/random_r.c: Likewise.
26192         * lib/siglist.h: Likewise.
26193         * lib/strsignal.c: Likewise.
26194         Reported by Ian Beckwith <ianb@erislabs.net>.
26195
26196 2009-09-17  Eric Blake  <ebb9@byu.net>
26197
26198         rmdir: ensure correct dependency order
26199         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26200
26201 2009-09-17  Bruno Haible  <bruno@clisp.org>
26202
26203         Disable assertion that fails on NetBSD 5 / i386.
26204         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26205         Reported by Sam Steingold <sds@gnu.org>
26206         and Hasso Tepper <hasso@netbsd.org>.
26207
26208 2009-09-16  Eric Blake  <ebb9@byu.net>
26209
26210         unlinkdir: port to mingw
26211         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26212         on which no one can unlink a directory.
26213
26214         stdlib: sort witness names
26215         * modules/stdlib (Makefile.am): Sort replacements.
26216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26217         * lib/stdlib.in.h: Likewise.
26218
26219         parse-duration-tests: avoid link failure
26220         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26221         LIBINTL.
26222         Reported by Tom G. Christensen.
26223
26224         openat-tests: ensure unlinkat behaves like rmdir
26225         * tests/test-rmdir.c (main): Factor guts...
26226         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26227         * modules/rmdir-tests (Files): Ship new file.
26228         * modules/openat-tests: New test.
26229         * tests/test-unlinkat.c: Likewise.
26230
26231         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26232         * modules/rmdir-errno (Status, Notice): Now obsolete.
26233
26234         rmdir: work around cygwin 1.5.x and mingw bugs
26235         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26236         * lib/rmdir.c (rmdir): Work around it.
26237         * modules/rmdir (Status, Notice): No longer obsolete.
26238         (Files): Add dos.m4.
26239         (Depends-on): Add unistd.
26240         (configure.ac): Set witnesses.
26241         (License): Relax to LGPLv2+.
26242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26243         * modules/unistd (Makefile.am): Substitute witnesses.
26244         * lib/unistd.in.h (rmdir): Declare replacement.
26245         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26246         * modules/rmdir-tests: New tests.
26247         * tests/test-rmdir.c: Likewise.
26248
26249 2009-09-15  Eric Blake  <ebb9@byu.net>
26250
26251         fchdir: improve use of replacement functions
26252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26253         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26254         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26255         REPLACE_CLOSEDIR.
26256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26257         * modules/sys_stat (Makefile.am): Substitute correct witness.
26258         * modules/dirent (Makefile.am): Likewise.
26259         * modules/unistd (Makefile.am): Likewise.
26260         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26261         * lib/unistd.in.h (dup): Likewise.
26262         * lib/sys_stat.in.h (fstat): Likewise.
26263
26264         maint: ignore gnulib-tool temp files
26265         * .gitignore: Ignore files created during gnulib-tool --test.
26266
26267 2009-09-13  Jim Meyering  <meyering@redhat.com>
26268
26269         posixtm: don't reject a time that specify "60" as the number of seconds
26270         * lib/posixtm.c (posixtime): The code to reject invalid dates
26271         would also reject a time specified with the .60 suffix.
26272         But POSIX allows that, in order to accommodate leap seconds.
26273         So don't reject it.
26274         (main): Adjust tests accordingly.
26275         * modules/posixtm (Depends-on): Add stpcpy.
26276
26277 2009-09-11  Jim Meyering  <meyering@redhat.com>
26278
26279         announce-gen: include [$release_type] in emitted Subject:
26280         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26281         e.g., [stable] in the emitted Subject: line.
26282
26283 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26284
26285         Remove obsolete macros from several modules.
26286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26287         obsolete Autoconf macros with their modern counterparts.
26288         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26289         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26290         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26291         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26292         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26293         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26295         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26296         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26297         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26298         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26299         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26300         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26301         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26302         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26303         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26304         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26305         * m4/time_r.m4 (gl_TIME_R): Likewise.
26306         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26307         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26308         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26309
26310         Fix copyright header in build-aux scripts.
26311         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26312         recommendation.
26313         * build-aux/ncftpput-ftp: Likewise.
26314         * build-aux/update-copyright: Likewise.
26315
26316 2009-09-09  Eric Blake  <ebb9@byu.net>
26317
26318         test-link: allow Linux choice of errno
26319         * tests/test-link.c (main): Relax test for alternate error.
26320
26321         strndup: fix improper m4 caching
26322         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26323         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26324         (gl_PREREQ_STRNDUP): Delete.
26325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26326         * modules/string (Makefile.am): Substitute it.
26327         * lib/string.in.h (strndup): Modernize prototype.
26328
26329         getcwd: port to mingw
26330         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26331         different from the POSIX assumptions made throughout the getcwd
26332         module; fortunately, the mingw getcwd does not need replacement.
26333         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26334         * modules/getcwd-tests: New test.
26335         * tests/test-getcwd.c: Likewise.
26336
26337         link: fix platform bugs
26338         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26339         * lib/link.c (link): Work around them.  Fix related mingw bug.
26340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26341         * modules/unistd (Makefile.am): Substitute it.
26342         * lib/unistd.in.h (link): Declare replacement.
26343         * doc/posix-functions/link.texi (link): Document this.
26344         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26345
26346         test-link: consolidate into single C program, test more cases
26347         * tests/test-link.sh: Delete.
26348         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26349         at least Cygwin and Solaris.
26350         * modules/link-tests (Files): Remove unused file.
26351         (Depends-on): Add errno, sys_stat.
26352         (Makefile.am): Simplify.
26353
26354 2009-09-08  Bruno Haible  <bruno@clisp.org>
26355
26356         Work around towlower, towupper bug on mingw.
26357         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26358         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26359         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26360         * doc/posix-functions/towupper.texi: Likewise.
26361         Reported by Eric Blake.
26362
26363 2009-09-08  Jim Meyering  <meyering@redhat.com>
26364
26365         build: don't try to run autoheader if we don't use it
26366         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26367         is not used in configure.ac.
26368
26369 2009-09-08  Eric Blake  <ebb9@byu.net>
26370
26371         euidaccess: fix compilation error
26372         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26373
26374         rawmemchr: relax license
26375         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26376         okay.
26377         Reported by Jim Meyering.
26378
26379         mkfifoat: new module
26380         * modules/mkfifoat: New file.
26381         * lib/mkfifoat.c: Likewise.
26382         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26384         * modules/sys_stat (Makefile.am): Use them.
26385         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26386         * MODULES.html.sh (File system functions): Mention module.
26387         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26388         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26389         * modules/mkfifoat-tests: New test.
26390         * tests/test-mkfifoat.c: Likewise.
26391
26392         strchrnul: relax license
26393         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26394         okay.
26395         Reported by Jim Meyering.
26396
26397 2009-09-08  Eric Blake  <ebb9@byu.net>
26398
26399         fstatat: fix compilation on Solaris
26400         * lib/fstatat.c (includes): Add fcntl.h.
26401         Reported by Pádraig Brady.
26402
26403 2009-09-07  Eric Blake  <ebb9@byu.net>
26404
26405         rename: modernize replacement
26406         * modules/rename (Depends-on): Add stdio.
26407         (configure.ac): Declare witness.
26408         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26409         stdio take care of replacement.
26410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26411         * modules/stdio (Makefile.am): Substitute them.
26412         * lib/stdio.in.h (rename): Declare replacement.
26413         * lib/rename.c (includes): Allow cross-compilation to non-windows
26414         machines.
26415         * doc/posix-functions/rename.texi (rename): Improve
26416         documentation.
26417
26418         stdio: sort witness names
26419         * modules/stdio (Makefile.am): Sort replacements.
26420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26421         * lib/stdio.in.h: Likewise.
26422
26423         getcwd: minor cleanups
26424         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26425         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26426
26427         openat: provide more convenience names
26428         * modules/faccessat (configure.ac): Add C witness.
26429         * lib/unistd.in.h (readlinkat): Fix typo.
26430         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26431         convenience wrappers.
26432         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26433         wrappers in syntax checks.
26434
26435 2009-09-06  Eric Blake  <ebb9@byu.net>
26436
26437         doc: fix comments in recent patches
26438         * lib/faccessat.c: Mention correct function.
26439         * lib/fchmodat.c: Likewise.
26440         * lib/fchownat.c: Likewise.
26441         * lib/symlinkat.c: Likewise.
26442         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26443         constants.
26444
26445         faccessat, symlinkat: continue cleanup of previous patch
26446         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26447         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26448         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26450         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26451         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26452         set.
26453
26454 2009-09-06  Bruno Haible  <bruno@clisp.org>
26455
26456         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26457         (fstatat): Declare if GNULIB_FSTATAT is set.
26458         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26459         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26460         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26461         * modules/fcntl-h (Files): Remove m4/openat.m4.
26462         * modules/sys_stat (Files): Remove m4/openat.m4.
26463         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26464         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26465         * modules/unistd (Files): Remove m4/openat.m4.
26466         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26467         GNULIB_OPENAT.
26468         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26469         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26470         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26471         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26472         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26473         gl_OPENAT_DEFAULTS.
26474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26475         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26476         Don't require gl_OPENAT_DEFAULTS.
26477         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26478         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26479         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26480         (gl_OPENAT_DEFAULTS): Remove macro.
26481
26482 2009-09-06  Bruno Haible  <bruno@clisp.org>
26483
26484         * modules/openat (configure.ac): Remove unneeded witness.
26485
26486 2009-09-06  Bruno Haible  <bruno@clisp.org>
26487
26488         Set errno to ENOSYS when a function is entirely unsupported.
26489         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26490         EOPNOTSUPP.
26491         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26492         * modules/chown (Depends-on): Remove errno.
26493
26494 2009-09-06  Bruno Haible  <bruno@clisp.org>
26495
26496         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26497
26498 2009-09-06  Bruno Haible  <bruno@clisp.org>
26499
26500         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26501
26502 2009-09-06  Ben Pfaff  <blp@gnu.org>
26503             Bruno Haible  <bruno@clisp.org>
26504
26505         Work around a glibc bug in strtok_r.
26506         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26507         Undefine if UNDEFINE_STRTOK_R is set.
26508         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26510         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26511         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26512         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26513         UNDEFINE_STRTOK_R.
26514         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26515
26516 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26517
26518         exclude: minor fix
26519         * lib/exclude.c: Include wctype.h
26520
26521 2009-09-06  Akim Demaille  <demaille@gostai.com>
26522
26523         bootstrap: improve error message
26524         * build-aux/bootstrap (find_tool): Upon failure, report the list
26525         of candidates.
26526         Honor the initial value of the envvar.
26527
26528 2009-09-05  Eric Blake  <ebb9@byu.net>
26529
26530         symlinkat: new module
26531         * modules/symlinkat: New file.
26532         * lib/symlinkat.c: Likewise.
26533         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26535         * modules/unistd (Makefile.am): Use them.
26536         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26537         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26538         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26539         * MODULES.html.sh (File system functions): Mention module.
26540         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26541         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26542         * modules/symlinkat-tests: New test.
26543         * tests/test-symlinkat.c: Likewise.
26544
26545         test-openat-safer: add more checks
26546         * tests/test-openat-safer.c (main): Check more code paths.
26547
26548 2009-09-05  Jim Meyering  <meyering@redhat.com>
26549
26550         syntax-check: detect unnecessary inclusion of openat.h
26551         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26552
26553 2009-09-05  Bruno Haible  <bruno@clisp.org>
26554
26555         Support towlower, towupper.
26556         * doc/posix-functions/towlower.texi: Mention module wctype.
26557         * doc/posix-functions/towupper.texi: Likewise.
26558         * lib/wctype.in.h (towlower, towupper): New functions.
26559         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26560         (ASSERT): New macro.
26561         (e): New variable.
26562         (main): Test also towlower, towupper. Test WEOF argument.
26563         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26564
26565 2009-09-05  Bruno Haible  <bruno@clisp.org>
26566
26567         Fix conversion behaviour when the input is invalid.
26568         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26569         mark occurring in first pass of indirect conversion.
26570         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26571         input.
26572         Found by clang's static analyzer.
26573
26574 2009-09-05  Bruno Haible  <bruno@clisp.org>
26575
26576         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26577         where direct conversion is possible.
26578
26579 2009-09-04  Eric Blake  <ebb9@byu.net>
26580
26581         openat: fail with ENOENT on empty name
26582         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26583         buffer.
26584
26585         link-follow: fix logic bug in prior patch
26586         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26587         reversed sense of yes and no in prior patch.  Avoid confusing
26588         compilation failure with desired semantics.
26589
26590         link-follow: accomodate mingw and cross-compilation
26591         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26592         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26593         cross-compilation results to -1, to make linkat easier to
26594         implement when cross-compiling.  Trivially support mingw.
26595         * modules/link-follow (configure.ac): Call new name.
26596         * NEWS: Mention this.
26597
26598 2009-09-03  Eric Blake  <ebb9@byu.net>
26599
26600         faccessat: compile replacement
26601         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26602         needed.
26603
26604         fts: fix compilation error
26605         * lib/fts.c (includes): Re-add "openat.h", for
26606         openat_needs_fchdir.
26607
26608         faccessat: new module
26609         * modules/faccessat: New file.
26610         * lib/faccessat.c: Likewise.
26611         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26613         * modules/unistd (Makefile.am): Use it.
26614         * lib/unistd.in.h (faccessat): Declare it.
26615         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26616         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26617         * MODULES.html.sh (File system functions): Mention it.
26618         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26619         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26620
26621         euidaccess: prefer POSIX over non-standard implementation
26622         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26623         * lib/euidaccess.c (euidaccess): Use it if available.
26624
26625         openat: make template easier to use
26626         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26627         AT_FUNC_F2 to be undefined.
26628         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26629         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26630         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26631         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26632         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26633         Likewise.
26634         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26635         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26636         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26637         Likewise.
26638
26639         openat: declare in POSIX headers
26640         * NEWS: Mention this.
26641         * modules/openat (configure.ac): Declare witnesses.
26642         (Depends-on): Add fcntl-h, sys_stat, unistd.
26643         (Include): Mention correct headers.
26644         * modules/fcntl-h (Depends-on): Add link-warning.
26645         (Files): Add openat.m4.
26646         (Makefile.am): Substitute witnesses.
26647         * modules/sys_stat (Files, Makefile.am): Likewise.
26648         * modules/unistd (Files, Makefile.am): Likewise.
26649         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26650         (gl_OPENAT_DEFAULTS): New macro.
26651         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26653         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26654         (SYS_STAT_H): Remove unused variable.
26655         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26656         * lib/fcntl--.h (includes): Remove unneeded header.
26657         * lib/openat-safer.c (includes): Likewise.
26658         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26659         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26660         appropriate headers.
26661         (__OPENAT_PREFIX): Delete.
26662         * lib/fcntl.in.h (openat): Provide declaration.
26663         (AT_FDCWD): Fix Solaris bug.
26664         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26665         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26666         * lib/fchmodat.c (includes):  Adjust to find declaration.
26667         * lib/fchownat.c (includes): Likewise.
26668         * lib/mkdirat.c (includes): Likewise.
26669         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26670         still visible.
26671
26672 2009-09-02  Eric Blake  <ebb9@byu.net>
26673
26674         errno: use consistently
26675         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26676         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26677         * lib/canonicalize.c (ELOOP): Likewise.
26678         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26679         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26680         * lib/lchown.c (EOPNOTSUPP): Likewise.
26681         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26682         * lib/savewd.c (ESTALE): Likewise.
26683         * lib/settime.c (ENOSYS): Likewise.
26684         * lib/utimens.c (ENOSYS): Likewise.
26685         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26686         * lib/chdir-safer.c (ELOOP): Likewise.
26687         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26688         * modules/c-stack (Depends-on): Add errno.
26689         * modules/canonicalize (Depends-on): Likewise.
26690         * modules/chdir-safer (Depends-on): Likewise.
26691         * modules/fdopendir (Depends-on): Likewise.
26692         * modules/inet_ntop (Depends-on): Likewise.
26693         * modules/inet_pton (Depends-on): Likewise.
26694         * modules/lchown (Depends-on): Likewise.
26695         * modules/openat (Depends-on): Likewise.
26696         * modules/savewd (Depends-on): Likewise.
26697         * modules/settime (Depends-on): Likewise.
26698         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26699
26700         fts: avoid leaking fds
26701         * modules/fts (Depends-on): Add cloexec.
26702         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26703         flag.
26704
26705         fts: make directory fds more robust
26706         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26707         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26708
26709         backupfile, chdir-long, fts, savedir: make safer
26710         * lib/backupfile.c (includes): Use "dirent--.h", since
26711         numbered_backup can write to stderr during readdir.
26712         * lib/savedir.c (includes): Likewise.
26713         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26714         emulation can write to stderr on failure.
26715         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26716         * lib/getcwd.c: Document why opendir_safer is unused.
26717         * lib/glob.c: Likewise.
26718         * lib/scandir.c: Likewise.
26719         * lib/openat-proc.c: Likewise, for open_safer.
26720         * modules/backupfile (Depends-on): Add dirent-safer.
26721         * modules/savedir (Depends-on): Likewise.
26722         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26723         * modules/chdir-long (Depends-on): Add openat-safer.
26724
26725         openat-safer: new module
26726         * modules/openat-safer: New file.
26727         * lib/openat-safer.c: Likewise.
26728         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26729         * lib/fcntl-safer.h (openat_safer): Declare.
26730         * lib/fcntl--.h (openat): Override.
26731         * MODULES.html.sh (File descriptor based I/O): Mention it.
26732         * lib/openat.h: Add double-inclusion guards.
26733         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26734         "fcntl--.h", so we can implement openat.
26735         * modules/openat-safer-tests: New test.
26736         * tests/test-openat-safer.c: New file.
26737
26738         dirent-safer: new module
26739         * modules/dirent-safer: New file.
26740         * lib/dirent--.h: Likewise.
26741         * lib/dirent-safer.h: Likewise.
26742         * lib/opendir-safer.c: Likewise.
26743         * m4/dirent-safer.m4: Likewise.
26744         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26745         * modules/dirent-safer-tests: New test.
26746         * tests/test-dirent-safer.c: New file.
26747         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26748
26749         fdopendir: optimize on mingw
26750         * lib/unistd.in.h (_gl_directory_name): New prototype.
26751         * lib/fchdir.c (_gl_directory_name): Implement it.
26752         (fchdir): Use it to simplify implementation.
26753         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26754         fchdir, when available, to avoid calling [f]chdir().
26755
26756         fdopendir: split into its own module
26757         * lib/openat.c (fdopendir): Move...
26758         * lib/fdopendir.c: ...into new file.
26759         * modules/fdopendir: New module.
26760         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26761         * modules/openat (Depends-on): Add fdopendir.
26762         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26763         fdopendir here.
26764         * modules/savedir (Depends-on): Only need fdopendir, not full
26765         openat.
26766         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26767         * lib/openat.h (fdopendir): Drop prototype.
26768         * lib/dirent.in.h (fdopendir): Provide prototype.
26769         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26770         * modules/dirent (Makefile.am): Substitute them.
26771         * MODULES.html.sh (File system functions): Mention it.
26772         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26773         * modules/fdopendir-tests: New file.
26774         * tests/test-fdopendir.c: Likewise.
26775
26776         fchdir: use more consistent macro convention
26777         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26778         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26779         REPLACE_FCHDIR, rather than relying on config.h macros.
26780         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26781         inside a single make-time REPLACE_FCHDIR block, rather than using
26782         the config.h FCHDIR_REPLACEMENT.
26783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26784         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26785         Manage fstat replacement.
26786         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26787         REPLACE_FCHDIR.
26788         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26789         (Makefile.am): Substitute REPLACE_FCHDIR.
26790         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26791         FCHDIR_REPLACEMENT.
26792         * lib/dup-safer.c (dup_safer): Likewise.
26793         * lib/dup2.c (rpl_dup2): Likewise.
26794         * lib/dup3.c (rpl_dup3): Likewise.
26795         * lib/open.c (rpl_open): Likewise.
26796
26797         fchdir: simplify error handling, and support dup3
26798         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26799         stdbool, malloc-posix, realloc-posix.
26800         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26801         (ensure_dirs_slot): Return false on allocation failure.
26802         (rpl_dup2): Delete.
26803         (_gl_register_dup): New function.
26804         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26805         (_gl_register_fd): Close fd on allocation failure.
26806         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26807         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26808         prototype.
26809         (rpl_dup2_fchdir): Delete prototype.
26810         * lib/open.c (open): Update caller.
26811         * lib/dup2.c (dup2): Track fchdir metadata.
26812         * lib/dup3.c (dup3): Likewise.
26813         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26815
26816 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26817
26818         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26819         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26820         don't pass arguments to AC_OUTPUT.
26821
26822 2009-09-02  Bruno Haible  <bruno@clisp.org>
26823
26824         * modules/mkdtemp (License): Relicense under LGPLv2+.
26825         Reported by Paolo Bonzini.
26826
26827 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26828
26829         Replace uses of obsolete autoconf macros in Jim's modules.
26830         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26831         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26832         can evoke a warning from autoconf when run with -Wobsolete
26833         enabled.  They were declared obsolete for good reasons (see
26834         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26835         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26836         should not continue using the deprecated macros.
26837         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26838         obsolete Autoconf macros with modern counterparts.
26839         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26840         * m4/dos.m4 (gl_AC_DOS): Likewise.
26841         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26842         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26843         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26844         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26845         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26847         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26848         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26849         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26850         Likewise.
26851         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26852         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26853         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26854         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26855         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26856         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26857
26858 2009-09-01  Eric Blake  <ebb9@byu.net>
26859
26860         fchdir: fix off-by-one bug in previous patch
26861         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26862         (_gl_unregister_fd): Delete useless if.
26863
26864 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26865
26866         maint.mk: sort the list of syntax-check rules
26867         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26868         easier to get a sense of progress when the rules are run sequentially
26869         and take a long time.
26870
26871 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26872
26873         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26874         * modules/netinet_in: Likewise.
26875         * modules/sys_file: Likewise.
26876         * modules/sys_ioctl: Likewise.
26877         * modules/sys_select: Likewise.
26878         * modules/sys_socket: Likewise.
26879         * modules/sys_stat: Likewise.
26880         * modules/sys_time: Likewise.
26881         * modules/sys_times: Likewise.
26882         * modules/sys_utsname: Likewise.
26883         * modules/sys_wait: Likewise.
26884
26885 2009-09-01  Jim Meyering  <meyering@redhat.com>
26886
26887         fts: help ensure that return values are not ignored
26888         * lib/fts_.h (__GNUC_PREREQ): Define.
26889         (__attribute_warn_unused_result__): Define.
26890         (fts_children, fts_close, fts_open, fts_read): Declare with
26891         __attribute_warn_unused_result__.
26892
26893         fts: fts_close now fails also when closing a dir file descriptor fails
26894         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26895         and propagate to caller, along with errno.
26896
26897         announce-gen: correct formatting in --help output
26898         * build-aux/announce-gen (usage): Move the one-line description in
26899         --help output "up", to where it belongs, just after Usage:.
26900
26901 2009-08-31  Eric Blake  <ebb9@byu.net>
26902
26903         fchdir: port to mingw
26904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26905         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26906         opened, then use a substitute.
26907         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26908         replacement.
26909         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26910         (_gl_register_fd): No need to check stat if open already filters
26911         all directories.
26912         (fchdir): Fix error condition to match POSIX.
26913         * modules/fchdir (Depends-on): Add sys_stat.
26914         * doc/posix-functions/open.texi (open): Document the limitation.
26915         * modules/fchdir-tests: New file.
26916         * tests/test-fchdir.c: Likewise.
26917
26918         canonicalize: allow cross-testing from cygwin to mingw
26919         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26920         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26921         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26922         Likewise.
26923         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26924         target does not support symlinks.
26925         * tests/test-canonicalize-lgpl.sh: Likewise.
26926
26927         chown: avoid compilation warning on mingw
26928         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26929         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26930         mingw.
26931         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26932         * modules/chown (Depends-on): Add errno.
26933
26934 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26935
26936         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26937         command.
26938
26939 2009-08-31  Jim Meyering  <meyering@redhat.com>
26940
26941         canonicalize: remove useless initialization
26942         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26943         initialization of local, "end".
26944
26945 2009-08-30  Bruno Haible  <bruno@clisp.org>
26946
26947         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26948         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26949         ENOSYS.
26950
26951 2009-08-30  Bruno Haible  <bruno@clisp.org>
26952
26953         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26954         /usr/xpg4/bin/tr when it exists.
26955         * tests/test-pipe-filter-gi1.sh: Likewise.
26956
26957 2009-08-30  Bruno Haible  <bruno@clisp.org>
26958
26959         Work around deficient /usr/bin/id program on Solaris.
26960         * tests/test-file-has-acl.sh (ID): New variable.
26961         * tests/test-set-mode-acl.sh (ID): Likewise.
26962         * tests/test-copy-acl.sh (ID): Likewise.
26963         * tests/test-copy-file.sh (ID): Likewise.
26964
26965 2009-08-30  Bruno Haible  <bruno@clisp.org>
26966
26967         New module 'xstriconveh'.
26968         * lib/xstriconveh.h: New file.
26969         * lib/xstriconveh.c: New file.
26970         * modules/xstriconveh: New file.
26971
26972 2009-08-30  Bruno Haible  <bruno@clisp.org>
26973
26974         Make it easier to use mem_cd_iconveh.
26975         * lib/striconveh.h (iconveh_t): New type.
26976         (iconveh_open, iconveh_close): New declarations.
26977         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26978         with a single 'const iconveh_t *' argument.
26979         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26980         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26981         with a single 'const iconveh_t *' argument.
26982         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26983         * tests/test-striconveh.c (main): Update.
26984         * NEWS: Mention the change.
26985
26986 2009-08-30  Bruno Haible  <bruno@clisp.org>
26987
26988         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26989         problem.
26990
26991 2009-08-30  Bruno Haible  <bruno@clisp.org>
26992
26993         Work around iconv_open problem on Solaris.
26994         * lib/iconv_open-solaris.gperf: New file.
26995         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26996         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26997         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26998         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26999         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27000         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27001
27002 2009-08-29  Jim Meyering  <meyering@redhat.com>
27003
27004         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27005         * top/maint.mk (cvs-check): Remove target; it was just an alias
27006         to the better-named vc-diff-check.
27007         (maintainer-distcheck): Remove rule.  It was used only from
27008         the (alpha/beta/major) target, and all of its commands but one
27009         were coreutils-specific.
27010         (vc-dist): Remove rule.
27011         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27012         Run vc-diff-check, not vc-dist.
27013         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27014
27015 2009-08-27  Bruno Haible  <bruno@clisp.org>
27016
27017         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27018         of 0.
27019
27020 2009-08-27  Bruno Haible  <bruno@clisp.org>
27021
27022         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27023         compilers.
27024         * doc/func.texi: Document the SunPRO C bug.
27025
27026 2009-08-27  Bruno Haible  <bruno@clisp.org>
27027
27028         Fix link error on Solaris.
27029         * tests/test-parse-duration.c (xstrdup): Remove function.
27030
27031 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27032
27033         ignore-value: handle pointer types, too
27034         * lib/ignore-value.h (__attribute__): Remove definition.
27035         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27036         of a more concise and more-often effective "(void) i" statement.
27037         (ignore_ptr): New function to suppress warnings from functions that
27038         return pointers, and to make it explicit that one function doesn't
27039         handle all cases.
27040
27041 2009-08-25  Bruno Haible  <bruno@clisp.org>
27042
27043         dup2: work around a Linux bug.
27044         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27045         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27046         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27047         Reported by Simon Josefsson.
27048
27049 2009-08-25  Jim Meyering  <meyering@redhat.com>
27050
27051         libguestfs uses gnulib
27052         * users.txt: Add libguestfs.
27053
27054 2009-08-24  Eric Blake  <ebb9@byu.net>
27055
27056         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27057         * lib/pipe2.c (includes): Add binary-io.h.
27058         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27059
27060 2009-08-24  Bruno Haible  <bruno@clisp.org>
27061
27062         Tolerate declared but missing accept4 syscall.
27063         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27064         available.
27065         * lib/sys_socket.in.h (accept4): If the function is already present,
27066         override it.
27067         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27068         * modules/accept4 (Makefile.am): Compile accept4.c always.
27069         Reported by Paolo Bonzini and Eric Blake.
27070
27071 2009-08-23  Bruno Haible  <bruno@clisp.org>
27072
27073         New module 'accept4'.
27074         * lib/sys_socket.in.h (accept4): New declaration.
27075         * lib/accept4.c: New file.
27076         * m4/accept4.m4: New file.
27077         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27078         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27079         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27080         HAVE_ACCEPT4.
27081         * modules/accept4: New file.
27082         * doc/glibc-functions/accept4.texi: Mention the new module.
27083
27084 2009-08-24  Jim Meyering  <meyering@redhat.com>
27085
27086         progname: also set global program_invocation_name, when possible
27087         Before this change, a libtool-enabled program that calls glibc's
27088         error function would report the program name as
27089         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27090         * modules/progname (configure.ac): Check for a declaration of
27091         program_invocation_name.
27092         * lib/progname.c:  Include <errno.h>.
27093         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27094         Set program_invocation_name.
27095
27096 2009-08-23  Bruno Haible  <bruno@clisp.org>
27097
27098         * lib/dup3.c: Include <string.h>.
27099
27100 2009-08-23  Bruno Haible  <bruno@clisp.org>
27101
27102         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27103         * lib/pipe2.c (pipe2): Likewise.
27104         Suggested by Eric Blake.
27105
27106 2009-08-23  Bruno Haible  <bruno@clisp.org>
27107
27108         Tolerate declared but missing dup3 syscall.
27109         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27110         * lib/unistd.in.h (dup3): If the function is already present,
27111         override it.
27112         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27113         * modules/dup3 (Makefile.am): Compile dup3.c always.
27114         Reported by Paolo Bonzini.
27115
27116 2009-08-23  Bruno Haible  <bruno@clisp.org>
27117
27118         Tolerate declared but missing pipe2 syscall.
27119         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27120         available.
27121         * lib/unistd.in.h (pipe2): If the function is already present,
27122         override it.
27123         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27124         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27125         Reported by Paolo Bonzini.
27126
27127 2009-08-23  Bruno Haible  <bruno@clisp.org>
27128
27129         * lib/pipe2.c (pipe2): Move #ifs inside function.
27130
27131 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27132
27133         quotearg: document limitations of quote_these_too
27134         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27135         those limitations are created.
27136         * lib/quotearg.h (set_char_quoting): Document that digits and
27137         letters that are special after backslash are not permitted.
27138         (quotearg_char): Cross-reference set_char_quoting documentation.
27139
27140 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27141
27142         quotearg: implement custom_quoting_style
27143         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27144         right_quote fields.
27145         (set_custom_quoting): New public function.
27146         (quotearg_buffer_restyled): Add left_quote and right_quote
27147         arguments, handle them very much like locale quoting, and update
27148         all uses.
27149         (quotearg_n_custom): New public function.
27150         (quotearg_n_custom_mem): New public function.
27151         (quotearg_custom): New public function.
27152         (quotearg_custom_mem): New public function.
27153         * lib/quotearg.h: Prototype and document new public functions.
27154         (enum quoting_style): For escape_quoting_style and
27155         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27156         ignored even though they're otherwise like c_quoting_style.
27157         Add custom_quoting_style member and document with comparison to
27158         clocale_quoting_style.
27159         * tests/test-quotearg.c (custom_quotes): New array.
27160         (custom_results): New array.
27161         (main): Extend to test custom quoting.
27162
27163 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27164
27165         quotearg: fix right quote escaping when it's in quote_these_too
27166         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27167         quote, be sure to prepend only one backslash.
27168         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27169         (main): Test it.
27170
27171 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27172
27173         quotearg-tests: test escaping of embedded locale quotes
27174         * tests/test-quotearg.c (struct result_strings): Add member for
27175         new input.
27176         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27177         (inputs): Add new input.
27178         (results_g): Add expected results.
27179         (flag_results): Likewise.
27180         (locale_results): Likewise.
27181         (compare_strings): Check those.
27182
27183 2009-08-23  Bruno Haible  <bruno@clisp.org>
27184
27185         Tests for module 'dup3'.
27186         * modules/dup3-tests: New file.
27187         * tests/test-dup3.c: New file.
27188
27189         New module 'dup3'.
27190         * lib/unistd.in.h (dup3): New declaration.
27191         * lib/dup3.c: New file.
27192         * m4/dup3.m4: New file.
27193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27194         HAVE_DUP3.
27195         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27196         * modules/dup3: New file.
27197         * doc/glibc-functions/dup3.texi: Mention the new module.
27198
27199 2009-08-23  Bruno Haible  <bruno@clisp.org>
27200
27201         Tweak the dup2 test.
27202         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27203         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27204         the test file is still empty. Fix argument order of lseek.
27205
27206 2009-08-23  Bruno Haible  <bruno@clisp.org>
27207
27208         Avoid test link errors when the modules getopt-gnu, gettext are used.
27209         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27210         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27211
27212 2009-08-23  Bruno Haible  <bruno@clisp.org>
27213
27214         Fix getdtablesize() on mingw.
27215         * lib/getdtablesize.c (getdtablesize): Implement differently.
27216         * lib/unistd.in.h (getdtablesize): Improve comment.
27217
27218 2009-08-23  Bruno Haible  <bruno@clisp.org>
27219
27220         New module 'mkostemp'.
27221         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27222         * lib/stdlib.in.h (mksotemp): New declaration.
27223         * lib/mkostemp.c: New file, from glibc with modifications.
27224         * lib/tempname.h (GT_FILE): Remove outdated comment.
27225         (gen_tempname): Add flags argument.
27226         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27227         (__GT_FILE): Map to 1.
27228         (small_open, large_open): Remove macros.
27229         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27230         * lib/mkstemp.c (mkstemp): Update.
27231         * lib/mkdtemp.c (mkdtemp): Likewise.
27232         * m4/mkostemp.m4: New file.
27233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27234         HAVE_MKOSTEMP.
27235         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27236         HAVE_MKOSTEMP.
27237         * modules/mkostemp: New file, based on modules/mkstemp.
27238         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27239         * NEWS: Mention the change.
27240
27241 2009-08-23  Bruno Haible  <bruno@clisp.org>
27242
27243         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27244         Reported by Eric Blake.
27245
27246 2009-08-23  Bruno Haible  <bruno@clisp.org>
27247
27248         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27249         Reported by Eric Blake.
27250
27251 2009-08-23  Bruno Haible  <bruno@clisp.org>
27252
27253         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27254         * modules/pipe2 (Depends-on): Likewise.
27255
27256 2009-08-23  Eric Blake  <ebb9@byu.net>
27257
27258         fcntl-h: add O_TTY_INIT support
27259         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27260         * tests/test-fcntl-h.c (o): Test it.
27261         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27262
27263         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27264         * modules/fcntl: Move <fcntl.h> header replacement...
27265         * modules/fcntl-h: ...to new name, so as not to collide with
27266         like-named function.
27267         * tests/test-fcntl.c: Rename...
27268         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27269         * modules/fcntl-tests: Rename...
27270         * modules/fcntl-h-tests: ...to this.  Update test file name.
27271         * modules/chdir-long (Depends-on): Update clients.
27272         * modules/chdir-safer (Depends-on): Likewise.
27273         * modules/fcntl-safer (Depends-on): Likewise.
27274         * modules/fts (Depends-on): Likewise.
27275         * modules/mkancesdirs (Depends-on): Likewise.
27276         * modules/mkdir-p (Depends-on): Likewise.
27277         * modules/open (Depends-on): Likewise.
27278         * modules/savewd (Depends-on): Likewise.
27279         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27280         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27281
27282 2009-08-22  Bruno Haible  <bruno@clisp.org>
27283
27284         * modules/binary-io (License): Relicense under LGPL.
27285         * modules/pipe2 (License): Likewise.
27286
27287 2009-08-22  Bruno Haible  <bruno@clisp.org>
27288
27289         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27290         return value.
27291         * lib/pipe-filter-gi.c (filter_init): Likewise.
27292         Reported by Eric Blake.
27293
27294 2009-08-22  Bruno Haible  <bruno@clisp.org>
27295
27296         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27297         * modules/pipe (Depends-on): Add pipe2.
27298
27299 2009-08-22  Bruno Haible  <bruno@clisp.org>
27300
27301         Tests for module 'pipe2'.
27302         * modules/pipe2-tests: New file.
27303         * tests/test-pipe2.c: New file.
27304
27305         New module 'pipe2'.
27306         * lib/unistd.in.h (pipe2): New declaration.
27307         * lib/pipe2.c: New file.
27308         * m4/pipe2.m4: New file.
27309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27310         HAVE_PIPE2.
27311         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27312         * modules/pipe2: New file.
27313         * doc/glibc-functions/pipe2.texi: Mention the new module.
27314
27315 2009-08-22  Bruno Haible  <bruno@clisp.org>
27316
27317         Reference some new glibc functions.
27318         * doc/glibc-functions/accept4.texi: New file.
27319         * doc/glibc-functions/dup3.texi: New file.
27320         * doc/glibc-functions/mkostemp.texi: New file.
27321         * doc/glibc-functions/pipe2.texi: New file.
27322         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27323         (Glibc sys/socket.h): Refer to accept4.
27324         (Glibc unistd.h): Refer to dup3, pipe2.
27325         Reported by Eric Blake.
27326
27327 2009-08-22  Jim Meyering  <meyering@redhat.com>
27328             Bruno Haible  <bruno@clisp.org>
27329
27330         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27331         This makes it so packages using automake-1.11's silent-rules option
27332         can print e.g., a single "GEN    configmake.h" line, rather than
27333         the 30+ statements that perform the job.  If you want to see the
27334         actual commands, you can still run "make V=1".
27335         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27336         so that make output is abbreviated when those variables are defined
27337         appropriately.
27338         * modules/argz: Likewise.
27339         * modules/arpa_inet: Likewise.
27340         * modules/byteswap: Likewise.
27341         * modules/configmake: Likewise.
27342         * modules/dirent: Likewise.
27343         * modules/errno: Likewise.
27344         * modules/fcntl: Likewise.
27345         * modules/float: Likewise.
27346         * modules/fnmatch: Likewise.
27347         * modules/getopt-posix: Likewise.
27348         * modules/glob: Likewise.
27349         * modules/iconv_open: Likewise.
27350         * modules/inttypes: Likewise.
27351         * modules/localcharset: Likewise.
27352         * modules/locale: Likewise.
27353         * modules/math: Likewise.
27354         * modules/netdb: Likewise.
27355         * modules/netinet_in: Likewise.
27356         * modules/poll: Likewise.
27357         * modules/posix_spawnp-tests: Likewise.
27358         * modules/sched: Likewise.
27359         * modules/search: Likewise.
27360         * modules/selinux-h: Likewise.
27361         * modules/signal: Likewise.
27362         * modules/spawn: Likewise.
27363         * modules/stdarg: Likewise.
27364         * modules/stdbool: Likewise.
27365         * modules/stddef: Likewise.
27366         * modules/stdint: Likewise.
27367         * modules/stdio: Likewise.
27368         * modules/stdlib: Likewise.
27369         * modules/string: Likewise.
27370         * modules/strings: Likewise.
27371         * modules/sys_file: Likewise.
27372         * modules/sys_ioctl: Likewise.
27373         * modules/sys_select: Likewise.
27374         * modules/sys_socket: Likewise.
27375         * modules/sys_stat: Likewise.
27376         * modules/sys_time: Likewise.
27377         * modules/sys_times: Likewise.
27378         * modules/sys_utsname: Likewise.
27379         * modules/sys_wait: Likewise.
27380         * modules/sysexits: Likewise.
27381         * modules/time: Likewise.
27382         * modules/unistd: Likewise.
27383         * modules/wchar: Likewise.
27384         * modules/wctype: Likewise.
27385
27386 2009-08-22  Jim Meyering  <meyering@redhat.com>
27387
27388         announce-gen: detect write failure
27389         * build-aux/announce-gen: Add Coda at end.
27390         Remove equivalent-but-more-verbose block at top.
27391
27392 2009-08-19  Akim Demaille  <demaille@gostai.com>
27393
27394         bootstrap: --help to stdout.
27395         * bootstrap (usage): Don't send --help to stderr.
27396         Use a here doc instead of a long string.
27397
27398 2009-08-21  Eric Blake  <ebb9@byu.net>
27399
27400         test-popen-safer: split from test-popen
27401         * tests/test-popen.c (main): Move...
27402         * tests/test-popen.h: ...into new file.
27403         * tests/test-popen-safer2.c: New file.
27404         * modules/popen-tests (Files): Add test-popen.h.
27405         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27406         Suggested by Bruno Haible.
27407
27408         test-fcntl-safer: split from test-open
27409         * tests/test-open.c (main): Move...
27410         * tests/test-open.h: ...into new file.
27411         * tests/test-fcntl-safer.c: New file.
27412         * modules/open-tests (Files): Add test-open.h.
27413         * modules/fcntl-safer-tests: New file.
27414         Suggested by Bruno Haible.
27415
27416         test-fopen-safer: split from test-fopen
27417         * tests/test-fopen.c (main): Move...
27418         * tests/test-fopen.h: ...into new file.
27419         * tests/test-fopen-safer.c: New file.
27420         * modules/fopen-tests (Files): Add test-fopen.h.
27421         * modules/fopen-safer-tests: New file.
27422         Suggested by Bruno Haible.
27423
27424 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27425
27426         popen-safer: test O_CLOEXEC at run-time.
27427         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27428
27429 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27430
27431         fcntl: move more flags to the header
27432         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27433         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27434         * lib/fcntl.in.h: Do both things here.
27435
27436 2009-08-21  Jim Meyering  <meyering@redhat.com>
27437
27438         consistently remove $@-t before redirecting to it
27439         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27440         * modules/alloca-opt: Likewise.
27441         * modules/byteswap: Likewise.
27442         * modules/fnmatch: Likewise.
27443         * modules/getopt-posix: Likewise.
27444         * modules/glob: Likewise.
27445         * modules/poll: Likewise.
27446         * modules/posix_spawnp-tests: Likewise.
27447         * modules/sys_socket: Likewise.
27448         * modules/sysexits: Likewise.
27449
27450 2009-08-21  Eric Blake  <ebb9@byu.net>
27451
27452         popen: simplify access to original popen
27453         * lib/popen.c (rpl_popen): No need to worry about popen being a
27454         macro.
27455         Reported by Bruno Haible.
27456
27457 2009-08-20  Eric Blake  <ebb9@byu.net>
27458
27459         build: avoid some compiler warnings
27460         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27461         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27462         type.
27463         (new_exclude_segment, excluded_file_pattern_p)
27464         (excluded_file_name_p): Reduce scope.
27465         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27466         old-style declaration.
27467
27468 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27469
27470         * tests/test-exclude1.sh: Handle Windows EOL.
27471         * tests/test-exclude2.sh: Likewise.
27472         * tests/test-exclude3.sh: Likewise.
27473         * tests/test-exclude4.sh: Likewise.
27474         * tests/test-exclude5.sh: Likewise.
27475         * tests/test-exclude6.sh: Likewise.
27476         * tests/test-exclude7.sh: Likewise.
27477
27478 2009-08-19  Akim Demaille  <demaille@gostai.com>
27479
27480         bootstrap: find sha1sum when named gsha1sum.
27481         * bootstrap (find_tool): New.
27482         ($SHA1SUM): New.
27483         Use it.
27484
27485 2009-08-20  Jim Meyering  <meyering@redhat.com>
27486
27487         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27488         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27489         expression that converts "." in a file name to "\." in the resulting
27490         regexp.  Start with a dummy statement, so that prior shell variable
27491         definitions are expanded portably.  Reported by Simon Josefsson.
27492
27493 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27494
27495         Fix polling for writeability of a screen buffer.
27496         * lib/poll.c: Distinguish input and screen buffers for the
27497         Win32 implementation.
27498         * lib/select.c: Likewise.
27499
27500 2009-08-19  Eric Blake  <ebb9@byu.net>
27501
27502         popen-safer: prevent popen from clobbering std descriptors
27503         * modules/popen-safer: New file.
27504         * lib/popen-safer.c: Likewise.
27505         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27506         * lib/stdio--.h (popen): Provide override.
27507         * lib/stdio-safer.h (popen_safer): Provide declaration.
27508         * tests/test-popen.c (includes): Partially test this.
27509         * modules/popen-safer-tests: New file, for more tests.
27510         * tests/test-popen-safer.c: Likewise.
27511         * MODULES.html.sh (file stream based Input/Output): Mention it.
27512
27513         tests: test some of the *-safer modules
27514         * modules/fopen-safer (Depends-on): Add fopen.
27515         * modules/fcntl-safer (Depends-on): Add fcntl.
27516         * modules/stdlib-safer (Depends-on): Add stdlib.
27517         (configure.ac): Set indicator.
27518         * modules/unistd-safer (configure.ac): Likewise.
27519         * modules/tmpfile-safer (configure.ac): Likewise.
27520         (Depends-on): Add tmpfile.
27521         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27522         active.
27523         * tests/test-fopen.c (includes): Test safer versions when they are
27524         in use.
27525         * tests/test-open.c (includes): Likewise.
27526
27527         popen: fix cygwin 1.5 bug when stdin closed
27528         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27529         * modules/popen: New file.
27530         * modules/popen-tests: Likewise.
27531         * tests/test-popen.c: Likewise.
27532         * m4/popen.m4: Likewise.
27533         * lib/popen.c: Likewise.
27534         * lib/stdio.in.h (popen): New declaration.
27535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27536         * modules/stdio (Makefile.am): Likewise.
27537         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27538
27539 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27540
27541         maint.mk: give full control over update-copyright exclusions
27542         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27543         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27544         (update-copyright): Don't force inclusion of top-level
27545         ChangeLog.  Don't force exclusion of all COPYING files, but make
27546         them the default exclusion instead.
27547
27548 2009-08-16  Bruno Haible  <bruno@clisp.org>
27549
27550         Fix test failures on Solaris 10.
27551         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27552         tests when Solaris iconv() is used.
27553         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27554         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27555         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27556         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27557         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27558
27559 2009-08-16  Bruno Haible  <bruno@clisp.org>
27560
27561         Fix test failures on Solaris 10.
27562         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27563         'tr' program and pass it as first argument.
27564         * tests/test-pipe-filter-gi1.sh: Likewise.
27565         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27566         program as first argument.
27567         * tests/test-pipe-filter-gi1.c (main): Likewise.
27568
27569 2009-08-16  Eric Blake  <ebb9@byu.net>
27570
27571         fpurge: fix previous commits
27572         * modules/fpurge (Makefile.am): Make replacement conditional,
27573         partially reverting 2007-04-29 change; missed in previous
27574         attempt.
27575         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27576         is missing.
27577
27578 2009-08-16  Bruno Haible  <bruno@clisp.org>
27579
27580         Clarify fpurge's effect on the file position.
27581         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27582         * tests/test-fpurge.c (main): Make a second pass for checking the file
27583         position.
27584
27585 2009-08-16  Bruno Haible  <bruno@clisp.org>
27586
27587         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27588         declaration of fpurge is missing.
27589         * tests/test-fpurge.c (main): Check that the file has not more contents
27590         than expected. Close the file before removing it.
27591
27592 2009-08-15  Eric Blake  <ebb9@byu.net>
27593
27594         fpurge: don't wrap working cygwin implementation
27595         * lib/fpurge.c (fpurge): Fix comment typo.
27596         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27597         1.7 to avoid replacement.
27598         * tests/test-fpurge.c (main): Enhance test.
27599
27600 2009-08-15  Eric Blake  <ebb9@byu.net>
27601         and Jim Meyering  <meyering@redhat.com>
27602
27603         test-update-copyright: skip if perl is insufficient
27604         * tests/test-update-copyright.sh: Failure to run maintainer tool
27605         should not cause testsuite failure on cygwin 1.5.
27606
27607 2009-08-14  Eric Blake  <ebb9@byu.net>
27608
27609         doc: mention more functions added in cygwin 1.7.0
27610         * doc/posix-headers/limits.texi (limits.h): Update for recent
27611         cygwin additions.
27612         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27613         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27614         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27615         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27616         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27617
27618 2009-08-14  Eric Blake  <ebb9@byu.net>
27619
27620         maint.mk: simplify update-copyright rule
27621         * top/maint.mk (update-copyright-local): Delete, and document how
27622         to do it in cfg.mk instead.
27623         (update-copyright-exclude-regexp): Delete, and document how to do
27624         it in .x-update-copyright instead.
27625         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27626         exclude ChangeLog.
27627
27628 2009-08-14  Bruno Haible  <bruno@clisp.org>
27629
27630         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27631
27632 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27633
27634         maint.mk: support update-copyright-env
27635         * top/maint.mk (update-copyright-env): Define place-holder.
27636         (update-copyright): Expand $(update-copyright-env) before
27637         invoking update-copyright.
27638
27639 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27640
27641         update-copyright: implement forced reformatting
27642         * build-aux/update-copyright: Implement and document
27643         UPDATE_COPYRIGHT_FORCE.
27644         * tests/test-update-copyright.sh: Test it.
27645
27646 2009-08-14  Eric Blake  <ebb9@byu.net>
27647         and Bruno Haible  <bruno@clisp.org>
27648
27649         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27650         * tests/test-locale.c: Revert previous patch related to NULL.
27651         * tests/test-stdio.c: Likewise.
27652         * tests/test-stdlib.c: Likewise.
27653         * tests/test-string.c: Likewise.
27654         * tests/test-unistd.c: Likewise.
27655         * modules/time-tests (Depends-on): Add verify.
27656         * modules/wchar-tests (Depends-on): Likewise.
27657         * tests/test-time.c: Test for NULL compliance.
27658         * tests/test-wchar.c: Likewise.
27659         * modules/locale (Depends-on): Add stddef.
27660         * modules/stdio (Depends-on): Likewise.
27661         * modules/stdlib (Depends-on): Likewise.
27662         * modules/string (Depends-on): Likewise.
27663         * modules/time (Depends-on): Likewise.
27664         * modules/unistd (Depends-on): Likewise.
27665         * modules/wchar (Depends-on): Likewise.
27666         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27667         * lib/stdlib.in.h (includes): Likewise.
27668         * lib/string.in.h (includes): Likewise.
27669         * lib/time.in.h (includes): Likewise.
27670         * lib/unistd.in.h (includes): Likewise.
27671         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27672         replaced.
27673         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27674         * m4/stddef_h.m4: New file.
27675         * modules/stddef: Likewise.
27676         * lib/stddef.in.h: Likewise.
27677         * modules/stddef-tests: Likewise.
27678         * tests/test-stddef.c: Likewise.
27679         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27680         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27681         * doc/posix-headers/locale.texi (locale.h): Likewise.
27682         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27683         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27684         * doc/posix-headers/string.texi (string.h): Likewise.
27685         * doc/posix-headers/time.texi (time.h): Likewise.
27686         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27687         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27688
27689 2009-08-14  Eric Blake  <ebb9@byu.net>
27690
27691         doc: improve git diff of texinfo files
27692         * .gitattributes: Add rule for *.texi files, with hint on how to
27693         use it.
27694         Copied from m4, and based on a report by Bruno Haible.
27695
27696 2009-08-14  Bruno Haible  <bruno@clisp.org>
27697
27698         Disable multithread support by default on Cygwin 1.5.x for real.
27699         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27700
27701 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27702
27703         update-copyright: much ado about intervals
27704         * build-aux/update-copyright: Implement and document
27705         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27706         of copyright year intervals.
27707         Also, document UPDATE_COPYRIGHT_YEAR.
27708         * tests/test-update-copyright.sh: Test it.
27709
27710         update-copyright: convert 2-digit to 4-digit years
27711         * build-aux/update-copyright: Implement and document.
27712         * tests/test-update-copyright.sh: Update.
27713
27714 2009-08-14  Jim Meyering  <meyering@redhat.com>
27715
27716         test-exclude: avoid coreutils "make check" failure
27717         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27718         just as in test-argmatch.c.
27719
27720 2009-08-13  Eric Blake  <ebb9@byu.net>
27721
27722         test-dup2: fix bad assumption
27723         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27724         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27725
27726         test-version-etc: fix CRLF portability issue
27727         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27728         recognize \r.
27729         * tests/test-argp-version-etc-1.sh: Likewise.
27730
27731         getopt: update client modules
27732         * modules/argp (Depends-on): Use getopt-gnu.
27733         * modules/git-merge-changelog (Depends-on): Likewise.
27734         * modules/long-options (Depends-on): Likewise.
27735         * modules/xstrtol (Depends-on): Likewise.
27736
27737 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27738
27739         * tests/test-version-etc.sh: Don't fail on different
27740         project/version.  Don't fail on CRLF differences.  Rewrite to use
27741         multiple -e instead of multiple sed forks, suggested by Eric Blake
27742         <ebb9@byu.net>.
27743         * tests/test-argp-version-etc-1.sh: Likewise.
27744
27745 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27746
27747         * tests/test-version-etc.sh: Don't fail on different
27748         project/version.
27749
27750 2009-08-12  Bruno Haible  <bruno@clisp.org>
27751
27752         Tests for modules 'getopt-posix', 'getopt-gnu'.
27753         * modules/getopt-posix-tests: New file.
27754         * tests/test-getopt.c: New file.
27755         * tests/test-getopt.h: New file.
27756         * tests/test-getopt_long.h: New file.
27757
27758         New modules 'getopt-posix', 'getopt-gnu'.
27759         * modules/getopt-gnu: New file, renamed from modules/getopt.
27760         * modules/getopt-posix: New file.
27761         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27762         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27763         (gl_GETOPT): Remove macro.
27764         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27765         Disable the test against BSD systems that declare optreset. Test
27766         against mingw bug. Test against lack of support of optional arguments
27767         on many platforms.
27768         * doc/glibc-headers/getopt.texi: Update module name and list of
27769         relevant platforms.
27770         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27771         'getopt-gnu' and more portability problems.
27772         * NEWS: Mention the changes.
27773
27774 2009-08-12  Bruno Haible  <bruno@clisp.org>
27775
27776         Ensure that optarg etc. get declared by <unistd.h>.
27777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27778         AC_USE_SYSTEM_EXTENSIONS.
27779         * modules/getopt (Depends-on): Add 'extensions'.
27780
27781 2009-08-12  Bruno Haible  <bruno@clisp.org>
27782
27783         Avoid test link errors.
27784         * modules/pipe-filter-ii-tests (Makefile.am): Define
27785         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27786         * modules/pipe-filter-gi-tests (Makefile.am): Define
27787         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27789
27790 2009-08-12  Bruno Haible  <bruno@clisp.org>
27791
27792         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27793         gl_GETOPT_SUBSTITUTE before.
27794         (gl_GETOPT): Use it.
27795         * m4/argp.m4 (gl_ARGP): Update.
27796         Reported by Sergey Poznyakoff.
27797
27798         * m4/getopt.m4: Reorder macros.
27799         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27800         (gl_GETOPT_SUBSTITUTE): Remove macro.
27801
27802 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27803
27804         Minor improvement in gitlog-to-changelog
27805
27806         * build-aux/gitlog-to-changelog: New option `--format' makes
27807         output format string configurable.
27808
27809 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27810
27811         Optimize exclude: use hash tables for non-wildcard patterns.
27812
27813         * lib/exclude.c: Include hash.h and mbuiter.h
27814         (struct exclude_pattern, exclude_segment): New data types.
27815         (struct exclude): Rewrite.
27816         (fnmatch_pattern_has_wildcards): New function.
27817         (new_exclude_segment, free_exclude_segment): New functions.
27818         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27819         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27820         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27821         * modules/exclude: Depend on hash and mbuiter.
27822
27823         * modules/exclude-tests: New file.
27824         * tests/test-exclude.c: New file.
27825         * tests/test-exclude1.sh: New file.
27826         * tests/test-exclude2.sh: New file.
27827         * tests/test-exclude3.sh: New file.
27828         * tests/test-exclude4.sh: New file.
27829         * tests/test-exclude5.sh: New file.
27830         * tests/test-exclude6.sh: New file.
27831         * tests/test-exclude7.sh: New file.
27832
27833 2009-08-12  Bruno Haible  <bruno@clisp.org>
27834
27835         Ensure that getopt() gets declared by <unistd.h>.
27836         * lib/unistd.in.h: Conditionally include getopt.h.
27837         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27838         Set GNULIB_UNISTD_H_GETOPT.
27839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27840         GNULIB_UNISTD_H_GETOPT.
27841         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27842
27843 2009-08-12  Bruno Haible  <bruno@clisp.org>
27844
27845         Clarify logic.
27846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27847         gl_replace_getopt instead of GETOPT_H.
27848
27849 2009-08-12  Bruno Haible  <bruno@clisp.org>
27850
27851         * m4/getopt.m4: Add comments.
27852
27853 2009-08-12  Bruno Haible  <bruno@clisp.org>
27854
27855         Disable multithread support by default on Cygwin 1.5.x.
27856         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27857         set gl_use_threads=no if not specified otherwise.
27858
27859 2009-08-11  Bruno Haible  <bruno@clisp.org>
27860
27861         Avoid compilation error on NetBSD 5.0.
27862         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27863         * tests/test-stdio.c: Likewise.
27864         * tests/test-stdlib.c: Likewise.
27865         * tests/test-string.c: Likewise.
27866         * tests/test-unistd.c: Likewise.
27867         Reported by Greg Troxel <gdt@ir.bbn.com>
27868         at <https://savannah.gnu.org/support/?106973>.
27869
27870 2009-08-11  Bruno Haible  <bruno@clisp.org>
27871
27872         * modules/dup2-tests (Depends-on): Remove close.
27873
27874         Undo 2009-07-19 commit.
27875         * modules/acl-tests (Depends-on): Remove close.
27876         * modules/binary-io-tests (Depends-on): Likewise.
27877         * modules/closein-tests (Depends-on): Likewise.
27878         * modules/flock-tests (Depends-on): Likewise.
27879         * modules/fsync-tests (Depends-on): Likewise.
27880         * modules/lseek-tests (Depends-on): Likewise.
27881         * modules/pipe-tests (Depends-on): Likewise.
27882         * modules/posix_spawn-tests (Depends-on): Likewise.
27883         * modules/posix_spawnp-tests (Depends-on): Likewise.
27884         * modules/stat-time-tests (Depends-on): Likewise.
27885         * modules/yesno-tests (Depends-on): Likewise.
27886
27887 2009-08-10  Bruno Haible  <bruno@clisp.org>
27888
27889         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27890
27891 2009-08-10  Bruno Haible  <bruno@clisp.org>
27892
27893         Fix a gcc warning.
27894         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27895
27896 2009-08-10  Bruno Haible  <bruno@clisp.org>
27897
27898         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27899         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27900         not only the first time.
27901         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27902         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27903         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27904         is 1, not only the the first time.
27905
27906 2009-08-10  Bruno Haible  <bruno@clisp.org>
27907
27908         Make it possible to use module 'gethostname' without module 'close'.
27909         * lib/unistd.in.h (close): Evoke a link error only if
27910         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27912         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27913         * modules/unistd (Makefile.am): Substitute
27914         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27915         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27916         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27917         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27918         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27919         * modules/sys_ioctl (Makefile.am): Substitute
27920         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27921         * modules/socket (configure.ac): On native Windows, set
27922         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27923         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27924         Reported by Sam Steingold <sds@gnu.org>.
27925
27926 2009-08-10  Bruno Haible  <bruno@clisp.org>
27927
27928         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27929         * modules/ioctl (configure.ac): Likewise.
27930
27931 2009-08-10  Bruno Haible  <bruno@clisp.org>
27932
27933         Avoid collision between gnulib wrapper and libintl wrapper.
27934         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27935         already defined in intl/printf.c.
27936         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27937         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27938
27939 2009-08-09  Bruno Haible  <bruno@clisp.org>
27940
27941         Make <sys/select.h> really self-contained, also on Solaris 10.
27942         * lib/sys_select.in.h: Include <string.h>.
27943         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27944         Solaris 10 problem.
27945         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27946         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27947         Reported by Jim Meyering.
27948
27949 2009-08-09  Bruno Haible  <bruno@clisp.org>
27950
27951         Avoid warnings from 'aclocal' that are due to a use of macro name
27952         AM_XGETTEXT_OPTION that is not defined in automake.
27953         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27954         automake.
27955         * modules/error (configure.ac): Likewise.
27956         * modules/propername (configure.ac): Likewise.
27957         * modules/vasprintf (configure.ac): Likewise.
27958         * modules/verror (configure.ac): Likewise.
27959         * modules/xprintf (configure.ac): Likewise.
27960         * modules/xvasprintf (configure.ac): Likewise.
27961
27962 2009-08-08  Bruno Haible  <bruno@clisp.org>
27963
27964         Avoid compilation error in C++ mode.
27965         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27966         Reported by Sam Steingold <sds@gnu.org>.
27967
27968 2009-08-08  Bruno Haible  <bruno@clisp.org>
27969
27970         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27971         for the various Unix platforms.
27972         * doc/posix-headers/limits.texi: Update platforms list regarding
27973         HOST_NAME_MAX.
27974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27975
27976 2009-08-07  Jim Meyering  <meyering@redhat.com>
27977
27978         selinux-at: fix typo in a comment
27979         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27980         Spotted by Paolo Bonzini.
27981
27982         selinux-at: remove redundant m4 code, add documentation
27983         * modules/selinux-at (configure.ac): Remove redundant code.
27984         LIB_SELINUX is already set via the dependent module, selinux-h.
27985         (Include): Add quotes around selinux-at.h.
27986         * lib/selinux-at.h: Add documentation.
27987         Reported by Bruno Haible in
27988         http://marc.info/?l=gnulib-bug&m=124958988300749
27989
27990 2009-08-07  Bruno Haible  <bruno@clisp.org>
27991
27992         Avoid link error on MacOS X 10.3 and 10.4.
27993         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27994         on non-ELF systems.
27995         * lib/argp-pv.c (argp_program_version): Likewise.
27996         Reported by Simon Josefsson.
27997
27998 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27999
28000         * tests/test-version-etc.sh: Use $EXEEXT.
28001
28002 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28003
28004         update-copyright: update documentation to point to maint.mk
28005         * build-aux/update-copyright: Here.
28006
28007 2009-08-06  Jim Meyering  <meyering@redhat.com>
28008
28009         maint.mk: support update-copyright-local
28010         * top/maint.mk (update-copyright-local): Define place-holder.
28011         (update-copyright): Depend on $(update-copyright-local).
28012
28013 2009-08-06  Jim Meyering  <meyering@redhat.com>
28014
28015         selinux-at: new module
28016         Initially written for coreutils, this module will soon be
28017         used by findutils, too.
28018         * MODULES.html.sh [Misc]: Add selinux-at.
28019         * lib/selinux-at.h: New file, from coreutils.
28020         * lib/selinux-at.c: Likewise.
28021         * modules/selinux-at: Likewise.
28022         (License): Change from LGPL to GPL, since it depends
28023         on the GPL'd openat module.
28024
28025         doc: update README
28026         * README: Remove references to cogito.
28027         Remove cvs-repo-updating instructions from 2007.
28028         Don't imply that CVS is better if you have limited disk space.
28029
28030 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28031
28032         update-copyright: support C-style comments
28033         * build-aux/update-copyright: Implement and document.
28034         * tests/test-update-copyright.sh: Test.
28035
28036 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28037
28038         update-copyright: support omitted "(C)"
28039         * build-aux/update-copyright: Implement and document.  Also,
28040         allow variable whitespace before "(C)".
28041         * tests/test-update-copyright.sh: Test.
28042
28043 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28044
28045         update-copyright: don't trip on non-FSF copyright statements
28046         * build-aux/update-copyright: Fix so that the first correctly
28047         formatted FSF copyright statement is recognized no matter what
28048         appears before it.  Update documentation.
28049         * tests/test-update-copyright.sh: Test that.
28050
28051 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28052
28053         update-copyright: clean up code a little
28054         * build-aux/update-copyright: Append "_re" to the name of any
28055         variable holding a regular expression.
28056         Replace "old" and "new" with "stmt" in variable names.
28057         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28058         handled correctly.
28059         Format code more consistently.
28060
28061 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28062
28063         update-copyright-tests: improve portability
28064         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28065         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28066
28067 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28068
28069         update-copyright: support @copyright{} and &copy;
28070         * build-aux/update-copyright: Implement and document.
28071         * tests/test-update-copyright.sh: Test.
28072
28073 2009-08-04  Jim Meyering  <meyering@redhat.com>
28074
28075         update-copyright-tests: correctly test EOL=\r\n handling
28076         * tests/test-update-copyright.sh: Put \r at the end of some lines
28077         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28078
28079         maint.mk: make update-copyright exclusion list more configurable
28080         * top/maint.mk (update-copyright): Default to excluding COPYING,
28081         but allow an override, in case someone does want to update that file.
28082
28083         maint.mk: don't update copyright date in COPYING
28084         * top/maint.mk (update-copyright): Exclude COPYING.
28085
28086         maint.mk: add a copyright-updating rule
28087         * top/maint.mk (update-copyright): New rule.
28088         Derived from coreutils/Makefile.am.
28089
28090         update-copyright: rename some variables
28091         * build-aux/update-copyright: Rename a few variables for clarity.
28092         Tweak syntax.  List Joel E. Denny as coauthor.
28093
28094 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28095
28096         update-copyright: fix bug for 2-digit last year and add tests
28097         * build-aux/update-copyright: Fix bug.
28098         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28099         specified.
28100         * modules/update-copyright-tests: New
28101         * tests/test-update-copyright.sh: New.
28102
28103 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28104
28105         update-copyright: handle leading tabs in line prefix
28106         * build-aux/update-copyright: Count leading tabs as 8 spaces
28107         when computing margin.  This helps with the formatting of
28108         ChangeLogs, for example.
28109         Fix documentation a little.
28110
28111 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28112
28113         update-copyright: support EOL=\r\n
28114         * build-aux/update-copyright: Implement that.
28115
28116 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28117
28118         update-copyright: automatically format copyright statements
28119         * build-aux/update-copyright: Implement that.
28120         Also, be a little more predictable and safer by always failing
28121         when the full copyright format is not perfectly recognized as an
28122         unbroken whole.  Discussed at
28123         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28124         Rewrite documentation.
28125
28126 2009-08-03  Bruno Haible  <bruno@clisp.org>
28127
28128         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28129
28130 2009-08-02  Bruno Haible  <bruno@clisp.org>
28131
28132         Tests for module 'uname'.
28133         * modules/uname-tests: New file.
28134         * tests/test-uname.c: New file.
28135
28136         New module 'uname'.
28137         * lib/uname.c: New file.
28138         * m4/uname.m4: New file.
28139         * modules/uname: New file.
28140         * doc/posix-functions/uname.texi: Mention the new module.
28141
28142 2009-08-02  Bruno Haible  <bruno@clisp.org>
28143
28144         Tests for module 'sys_utsname'.
28145         * modules/sys_utsname-tests: New file.
28146         * tests/test-sys_utsname.c: New file.
28147
28148         New module 'sys_utsname'.
28149         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28150         * m4/sys_utsname_h.m4: New file.
28151         * modules/sys_utsname: New file.
28152         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28153
28154 2009-08-02  Bruno Haible  <bruno@clisp.org>
28155
28156         Implicitly initialize the sockets library.
28157         * lib/gethostname.c: Include sockets.h.
28158         (rpl_gethostname): Invoke gl_sockets_startup.
28159         * lib/socket.c: Include sockets.h.
28160         (rpl_socket): Invoke gl_sockets_startup.
28161         * modules/gethostname (Depends-on): Add sockets.
28162         * modules/socket (Depends-on): Likewise.
28163         * tests/test-poll.c: Don't include sockets.h.
28164         (main): Don't invoke gl_sockets_startup.
28165         * tests/test-select.c: Don't include sockets.h.
28166         (main): Don't invoke gl_sockets_startup.
28167
28168 2009-08-02  Bruno Haible  <bruno@clisp.org>
28169
28170         Allow multiple calls to gl_sockets_startup.
28171         * lib/sockets.c (initialized_sockets_version): New variable.
28172         (gl_sockets_startup): Do nothing if already called for this or a higher
28173         version.
28174         (gl_sockets_cleanup): Reset initialized_sockets_version.
28175
28176 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28177
28178         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28179         different project/version.
28180
28181 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28182             Bruno Haible  <bruno@clisp.org>
28183
28184         Tests for module 'pipe-filter-gi'.
28185         * modules/pipe-filter-gi-tests: New file.
28186         * tests/test-pipe-filter-gi1.sh: New file.
28187         * tests/test-pipe-filter-gi1.c: New file.
28188         * tests/test-pipe-filter-gi2.sh: New file.
28189         * tests/test-pipe-filter-gi2-main.c: New file.
28190         * tests/test-pipe-filter-gi2-child.c: New file.
28191
28192         New module 'pipe-filter-gi'.
28193         * lib/pipe-filter-gi.c: New file.
28194         * modules/pipe-filter-gi: New file.
28195
28196 2009-08-02  Bruno Haible  <bruno@clisp.org>
28197             Paolo Bonzini  <bonzini@gnu.org>
28198
28199         Tests for module 'pipe-filter-ii'.
28200         * modules/pipe-filter-ii-tests: New file.
28201         * tests/test-pipe-filter-ii1.sh: New file.
28202         * tests/test-pipe-filter-ii1.c: New file.
28203         * tests/test-pipe-filter-ii2.sh: New file.
28204         * tests/test-pipe-filter-ii2-main.c: New file.
28205         * tests/test-pipe-filter-ii2-child.c: New file.
28206
28207         New module 'pipe-filter-ii'.
28208         * lib/pipe-filter.h: New file.
28209         * lib/pipe-filter-ii.c: New file.
28210         * lib/pipe-filter-aux.h: New file.
28211         * modules/pipe-filter-ii: New file.
28212
28213 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28214
28215         * lib/gc-libgcrypt.c: Change copyright to FSF.
28216         * lib/gc-gnulib.c: Likewise.
28217
28218 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28219
28220         * lib/gethostname.c: Include limits.h.
28221
28222 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28223             Bruno Haible  <bruno@clisp.org>
28224
28225         Ensure HOST_NAME_MAX as part of the gethostname module.
28226         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28227         define also HOST_NAME_MAX.
28228         * tests/test-gethostname.c: Include <limits.h>.
28229         (main): Check also HOST_NAME_MAX.
28230         * doc/posix-headers/limits.texi: Document the mingw problem.
28231
28232 2009-08-02  Bruno Haible  <bruno@clisp.org>
28233
28234         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28235         Add comments.
28236
28237 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28238
28239         * lib/gethostname.c: Add Windows wrapper.
28240         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28241         * modules/gethostname: Depend on sys_socket & errno, for also
28242         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28243         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28244
28245 2009-07-31  Jim Meyering  <meyering@redhat.com>
28246
28247         getloadavg: fix symbol name in comment
28248         * lib/getloadavg.c: Correct a typo I introduced when adding
28249         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28250         Matt Kraai spotted the problem.
28251
28252 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28253
28254         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28255         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28256         code also if ! defined N_NAME_POINTER.
28257         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28258         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28259         but the n_name member is a 12-byte array.
28260
28261 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28262
28263         update-copyright: generalize comment handling
28264         * build-aux/update-copyright: Handle copyright statements
28265         within more comment styles.
28266         Document usage.
28267         Report any file with an external copyright holder or parse failure.
28268
28269 2009-07-29  Jim Meyering  <meyering@redhat.com>
28270
28271         mktime: correct setting of REPLACE_MKTIME
28272         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28273
28274         update-copyright: new module
28275         * modules/update-copyright: New file.
28276         * build-aux/update-copyright: New file.
28277         * MODULES.html.sh (maint+release support): Add update-copyright.
28278
28279 2009-07-27  Bruno Haible  <bruno@clisp.org>
28280
28281         Fix compilation error when <ctime> is used and mktime is replaced.
28282         * lib/time.in.h (mktime): New declaration.
28283         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28284         REPLACE_MKTIME instead of defining mktime in config.h.
28285         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28286         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28287         Reported by Ross McFarland <rwmcfa1@neces.com>.
28288
28289 2009-07-27  Bruno Haible  <bruno@clisp.org>
28290
28291         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28292         Reported by Matt Kraai <mkraai@beckman.com>.
28293
28294 2009-07-25  Jim Meyering  <meyering@redhat.com>
28295
28296         maint.mk: avoid warnings about missing files
28297         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28298         diagnostic when .prev-version does not exist.
28299         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28300         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28301         nonexistent cfg.mk.
28302         Suggestions from Simon Josefsson.
28303
28304 2009-07-25  Bruno Haible  <bruno@clisp.org>
28305
28306         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28307         defined as macros. Needed on QNX 6.4.1.
28308         Reported by Matt Kraai <mkraai@beckman.com>.
28309
28310 2009-07-23  Jim Meyering  <meyering@redhat.com>
28311
28312         maint.mk: invoke "make dist" with a working value of XZ_OPT
28313         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28314
28315 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28316
28317         Make fseeko.c compile on QNX.
28318         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28319
28320 2009-07-22  Peter Simons  <simons@cryp.to>
28321
28322         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28323         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28324         * lib/md4.h: Likewise.
28325         * lib/md5.h: Likewise.
28326         * lib/sha1.h: Likewise.
28327         * lib/sha256.h: Likewise.
28328         * lib/sha512.h: Likewise.
28329
28330         tests-sha1: don't assign literal string to 'char *' variable
28331         * tests/test-sha1.c (main): Declare locals with "const" to match
28332         attributes of the right hand side.
28333
28334 2009-07-21  Eric Blake  <ebb9@byu.net>
28335
28336         dup2: fix more mingw problems
28337         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28338         fd to itself.
28339         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28340         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28341         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28342         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28343         care of mingw bugs.
28344
28345 2009-07-21  Jim Meyering  <meyering@redhat.com>
28346
28347         vc-list-files: avoid failure when /bin/sh is dash
28348         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28349         On some Debian based systems, /bin/sh is a symlink to dash, and running
28350         this command would omit the "/" following each 'tests' prefix:
28351           dash -x build-aux/vc-list-files -C . tests
28352         That is because bash and dash work differently:
28353           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28354           bash ok
28355           dash odd
28356
28357 2009-07-21  Eric Blake  <ebb9@byu.net>
28358
28359         dup2-tests: test previous patch
28360         * modules/dup2-tests: New file.
28361         * tests/test-dup2.c: Likewise.
28362         * tests/test-open.c (main): Avoid unspecified behavior.
28363         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28364         test.
28365
28366         dup2: work around mingw and cygwin 1.5 bug
28367         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28369         * modules/unistd (Makefile.am): Substitute it.
28370         * lib/unistd.in.h (dup2): Declare the replacement.
28371         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28372         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28373         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28374         * modules/execute (Depends-on): Add dup2.
28375         * modules/fseterr (Depends-on): Likewise.
28376         * modules/pipe (Depends-on): Likewise.
28377         * modules/posix_spawn-internal (Depends-on): Likewise.
28378
28379 2009-07-21  Bruno Haible  <bruno@clisp.org>
28380
28381         * modules/.gitattributes: New file.
28382
28383 2009-07-20  Bruno Haible  <bruno@clisp.org>
28384
28385         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28386         (main): Use it.
28387
28388 2009-07-20  Eric Blake  <ebb9@byu.net>
28389
28390         test-pipe: make a bit more robust.
28391         * tests/test-pipe.c (myerr): Allow error messages regardless of
28392         what we do to stderr.
28393         (test_pipe): Rearrange to avoid deadlock.
28394         (child_main): Try a larger read, to ensure we avoided deadlock.
28395         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28396         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28397         if misused.
28398
28399 2009-07-19  Jim Meyering  <meyering@redhat.com>
28400
28401         fts: avoid false-positive cycle-detection
28402         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28403         for each new command line argument.
28404
28405 2009-07-19  Bruno Haible  <bruno@clisp.org>
28406
28407         Fix build error on mingw with the modules sys_select and unistd.
28408         * modules/acl-tests (Depends-on): Add close.
28409         * modules/binary-io-tests (Depends-on): Likewise.
28410         * modules/closein-tests (Depends-on): Likewise.
28411         * modules/flock-tests (Depends-on): Likewise.
28412         * modules/fsync-tests (Depends-on): Likewise.
28413         * modules/lseek-tests (Depends-on): Likewise.
28414         * modules/pipe-tests (Depends-on): Likewise.
28415         * modules/posix_spawn-tests (Depends-on): Likewise.
28416         * modules/posix_spawnp-tests (Depends-on): Likewise.
28417         * modules/stat-time-tests (Depends-on): Likewise.
28418         * modules/yesno-tests (Depends-on): Likewise.
28419
28420 2009-07-19  Bruno Haible  <bruno@clisp.org>
28421
28422         Unify conditionals.
28423         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28424         macros, not at the compiler macros.
28425         * lib/pipe.c: Likewise.
28426         * lib/execute.c: Likewise.
28427         * lib/spawni.c: Likewise.
28428
28429 2009-07-19  Bruno Haible  <bruno@clisp.org>
28430
28431         Fix handling of closed stdin/stdout/stderr on mingw.
28432         * lib/w32spawn.h: Include unistd.h.
28433         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28434         file descriptor with O_NOINHERIT flag.
28435         (fd_safer_noinherit): New function, based on fd-safer.c.
28436         (dup_safer_noinherit): New function, based on dup-safer.c.
28437         (undup_safer_noinherit): New function.
28438         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28439         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28440         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28441         instead of fd_safer.
28442         * tests/test-pipe.c: Include <windows.h>.
28443         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28444         result.
28445
28446         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28447         from main.
28448         (test_pipe): Pass an extra argument for disambiguation.
28449         (main): Invoke parent_main or child_main.
28450
28451         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28452         consistently.
28453
28454 2009-07-18  Eric Blake  <ebb9@byu.net>
28455
28456         test-pipe: fix mingw build
28457         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28458
28459 2009-07-18  Bruno Haible  <bruno@clisp.org>
28460
28461         * modules/pipe-tests (Makefile.am): Fix typo.
28462
28463 2009-07-18  Eric Blake  <ebb9@byu.net>
28464
28465         error: fix mingw build
28466         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28467         Reported by Bruno Haible.
28468
28469         error: avoid undefined use of stdout
28470         * lib/error.c (error, error_at_line): Check that fd 1 is open
28471         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28472         is handling faults and the close_stdout module wants to report the
28473         detection of closed stdout as an error.
28474
28475 2009-07-17  Eric Blake  <ebb9@byu.net>
28476
28477         pipe: be robust in face of closed fds
28478         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28479         should cause child to misbehave.
28480         * modules/pipe-tests: New module.
28481         * tests/test-pipe.c: New file.
28482         * tests/test-pipe.sh: New file.
28483         Reported by Akim Demaille.
28484
28485 2009-07-14  Bruno Haible  <bruno@clisp.org>
28486
28487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28488         Reported by anonymous kc.
28489
28490 2009-07-07  Jim Meyering  <meyering@redhat.com>
28491
28492         maint.mk: don't look for translatable strings in *.m4 or *.mk
28493         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28494         when searching for translatable strings.
28495
28496 2009-07-05  Jim Meyering  <meyering@redhat.com>
28497
28498         remove superfluous parentheses in STREQ definition
28499         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28500         * lib/getugroups.c (STREQ): Likewise.
28501         * lib/fnmatch.c (STREQ): Likewise.
28502         Spotted by Bruno Haible.
28503
28504 2009-07-04  Jim Meyering  <meyering@redhat.com>
28505
28506         argv-iter: new module
28507         * MODULES.html.sh: Add argv-iter.
28508         * lib/argv-iter.c, lib/argv-iter.h: New files.
28509         * modules/argv-iter: New file.
28510         * modules/argv-iter-tests: New file.
28511         * tests/test-argv-iter.c: Test it.
28512
28513 2009-07-04  Bruno Haible  <bruno@clisp.org>
28514
28515         Fix assertion.
28516         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28517         contains more exact copies of a given entry than file2, leave the extra
28518         copies unpaired rather than aborting.
28519         Reported by Eric Blake.
28520
28521 2009-07-02  Bruno Haible  <bruno@clisp.org>
28522
28523         Speedup git-merge-changelog for git cherry-pick.
28524         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28525         (entries_mapping_get): New function, extracted from compute_mapping.
28526         (entries_mapping_reverse_get): New function.
28527         (compute_mapping): Add a 'full' argument. Return the result in a
28528         'struct entries_mapping'.
28529         (main): Update. Access the mappings through entries_mapping_get.
28530         Reported by Eric Blake.
28531
28532 2009-07-02  Bruno Haible  <bruno@clisp.org>
28533
28534         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28535         best_i.
28536
28537 2009-07-02  Bruno Haible  <bruno@clisp.org>
28538
28539         Speed up approximate search for matching ChangeLog entries.
28540         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28541         argument. Call fstrcmp_bounded instead of fstrcmp.
28542         (compute_mapping, try_split_merged_entry, main): Update callers.
28543
28544 2009-07-02  Bruno Haible  <bruno@clisp.org>
28545
28546         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28547
28548 2009-06-30  Bruno Haible  <bruno@clisp.org>
28549
28550         Reduce the number of uc_is_cased calls.
28551         * lib/unicase.h (casing_suffix_context_t): Add
28552         'first_char_except_ignorable' field.
28553         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28554         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28555         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28556         Update initializer.
28557         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28558         case-ignorable characters.
28559         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28560         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28561         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28562         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28563         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28564
28565 2009-06-30  Bruno Haible  <bruno@clisp.org>
28566
28567         Tests for module 'unicase/ignorable'.
28568         * modules/unicase/ignorable-tests: New file.
28569         * tests/unicase/test-ignorable.c: New file, generated by
28570         gen-uni-tables.
28571
28572         Tests for module 'unicase/cased'.
28573         * modules/unicase/cased-tests: New file.
28574         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28575         * tests/unicase/test-predicate-part1.h: New file, derived from
28576         tests/unictype/test-predicate-part1.h.
28577         * tests/unicase/test-predicate-part2.h: New file, same as
28578         tests/unictype/test-predicate-part2.h.
28579
28580         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28581         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28582         (output_casing_properties): New function.
28583         (main): Call it.
28584         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28585         * lib/unicase/cased.c: Include unictype/bitmap.h.
28586         (uc_is_cased): Define through a bitmap lookup.
28587         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28588         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28589         (uc_is_case_ignorable): Define through a bitmap lookup.
28590         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28591         lib/unictype/bitmap.h.
28592         (Depends-on): Add inline. Clean up.
28593         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28594         lib/unictype/bitmap.h.
28595         (Depends-on): Add inline. Clean up.
28596         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28597         recognition.
28598         * tests/unicase/test-u16-tolower.c (main): Likewise.
28599         * tests/unicase/test-u32-tolower.c (main): Likewise.
28600
28601 2009-06-30  Bruno Haible  <bruno@clisp.org>
28602
28603         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28604         * lib/unicase/u16-casemap.c: Likewise.
28605         * lib/unicase/u32-casemap.c: Likewise.
28606
28607 2009-06-29  Bruno Haible  <bruno@clisp.org>
28608
28609         Define u32_casefold as a wrapper around u32_ct_casefold.
28610         * lib/unicase/u32-casefold.c: Update.
28611         * modules/unicase/u32-casefold (Depends-on): Add
28612         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28613         unicase/empty-suffix-context. Clean up.
28614
28615         Define u16_casefold as a wrapper around u16_ct_casefold.
28616         * lib/unicase/u16-casefold.c: Update.
28617         * modules/unicase/u16-casefold (Depends-on): Add
28618         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28619         unicase/empty-suffix-context. Clean up.
28620
28621         Define u8_casefold as a wrapper around u8_ct_casefold.
28622         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28623         * lib/unicase/u8-casefold.c: Update.
28624         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28625         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28626
28627         Define u32_totitle as a wrapper around u32_ct_totitle.
28628         * lib/unicase/u32-totitle.c: Update.
28629         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28630         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28631
28632         Define u16_totitle as a wrapper around u16_ct_totitle.
28633         * lib/unicase/u16-totitle.c: Update.
28634         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28635         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28636
28637         Define u8_totitle as a wrapper around u8_ct_totitle.
28638         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28639         functions.
28640         (FUNC): Delegate to U_CT_TOTITLE.
28641         * lib/unicase/u8-totitle.c: Update.
28642         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28643         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28644
28645         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28646         invocation.
28647         * modules/unicase/u32-tolower (Depends-on): Add
28648         unicase/empty-prefix-context, unicase/empty-suffix-context.
28649
28650         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28651         invocation.
28652         * modules/unicase/u16-tolower (Depends-on): Add
28653         unicase/empty-prefix-context, unicase/empty-suffix-context.
28654
28655         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28656         * modules/unicase/u8-tolower (Depends-on): Add
28657         unicase/empty-prefix-context, unicase/empty-suffix-context.
28658
28659         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28660         invocation.
28661         * modules/unicase/u32-toupper (Depends-on): Add
28662         unicase/empty-prefix-context, unicase/empty-suffix-context.
28663
28664         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28665         invocation.
28666         * modules/unicase/u16-toupper (Depends-on): Add
28667         unicase/empty-prefix-context, unicase/empty-suffix-context.
28668
28669         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28670         * modules/unicase/u8-toupper (Depends-on): Add
28671         unicase/empty-prefix-context, unicase/empty-suffix-context.
28672
28673         New module 'unicase/u32-ct-casefold'.
28674         * lib/unicase/u32-ct-casefold.c: New file.
28675         * modules/unicase/u32-ct-casefold: New file.
28676
28677         New module 'unicase/u16-ct-casefold'.
28678         * lib/unicase/u16-ct-casefold.c: New file.
28679         * modules/unicase/u16-ct-casefold: New file.
28680
28681         New module 'unicase/u8-ct-casefold'.
28682         * lib/unicase/u8-ct-casefold.c: New file.
28683         * lib/unicase/u-ct-casefold.h: New file, derived from
28684         lib/unicase/u-casefold.h.
28685         * modules/unicase/u8-ct-casefold: New file.
28686
28687         New module 'unicase/u32-ct-totitle'.
28688         * lib/unicase/u32-ct-totitle.c: New file.
28689         * modules/unicase/u32-ct-totitle: New file.
28690
28691         New module 'unicase/u16-ct-totitle'.
28692         * lib/unicase/u16-ct-totitle.c: New file.
28693         * modules/unicase/u16-ct-totitle: New file.
28694
28695         New module 'unicase/u8-ct-totitle'.
28696         * lib/unicase/u8-ct-totitle.c: New file.
28697         * lib/unicase/u-ct-totitle.h: New file, derived from
28698         lib/unicase/u-totitle.h.
28699         * modules/unicase/u8-ct-totitle: New file.
28700
28701         New module 'unicase/u32-ct-tolower'.
28702         * lib/unicase/u32-ct-tolower.c: New file.
28703         * modules/unicase/u32-ct-tolower: New file.
28704
28705         New module 'unicase/u16-ct-tolower'.
28706         * lib/unicase/u16-ct-tolower.c: New file.
28707         * modules/unicase/u16-ct-tolower: New file.
28708
28709         New module 'unicase/u8-ct-tolower'.
28710         * lib/unicase/u8-ct-tolower.c: New file.
28711         * modules/unicase/u8-ct-tolower: New file.
28712
28713         New module 'unicase/u32-ct-toupper'.
28714         * lib/unicase/u32-ct-toupper.c: New file.
28715         * modules/unicase/u32-ct-toupper: New file.
28716
28717         New module 'unicase/u16-ct-toupper'.
28718         * lib/unicase/u16-ct-toupper.c: New file.
28719         * modules/unicase/u16-ct-toupper: New file.
28720
28721         New module 'unicase/u8-ct-toupper'.
28722         * lib/unicase/u8-ct-toupper.c: New file.
28723         * modules/unicase/u8-ct-toupper: New file.
28724
28725         Add context arguments to u*_casemap functions.
28726         * lib/unicase/unicasemap.h: Include unicase.h.
28727         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28728         suffix_context arguments.
28729         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28730         functions.
28731         (FUNC): Add prefix_context and suffix_context arguments. Use
28732         uc_is_cased and uc_is_case_ignorable.
28733         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28734         * lib/unicase/u16-casemap.c: Likewise.
28735         * lib/unicase/u32-casemap.c: Likewise.
28736         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28737         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28738         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28739         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28740         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28741         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28742
28743         New module 'unicase/u32-suffix-context'.
28744         * lib/unicase/u32-suffix-context.c: New file.
28745         * modules/unicase/u32-suffix-context: New file.
28746
28747         New module 'unicase/u16-suffix-context'.
28748         * lib/unicase/u16-suffix-context.c: New file.
28749         * modules/unicase/u16-suffix-context: New file.
28750
28751         New module 'unicase/u8-suffix-context'.
28752         * lib/unicase/u8-suffix-context.c: New file.
28753         * lib/unicase/u-suffix-context.h: New file.
28754         * modules/unicase/u8-suffix-context: New file.
28755
28756         New module 'unicase/empty-suffix-context'.
28757         * lib/unicase/empty-suffix-context.c: New file.
28758         * modules/unicase/empty-suffix-context: New file.
28759
28760         New module 'unicase/u32-prefix-context'.
28761         * lib/unicase/u32-prefix-context.c: New file.
28762         * modules/unicase/u32-prefix-context: New file.
28763
28764         New module 'unicase/u16-prefix-context'.
28765         * lib/unicase/u16-prefix-context.c: New file.
28766         * modules/unicase/u16-prefix-context: New file.
28767
28768         New module 'unicase/u8-prefix-context'.
28769         * lib/unicase/u8-prefix-context.c: New file.
28770         * lib/unicase/u-prefix-context.h: New file.
28771         * lib/unicase/context.h: New file.
28772         * modules/unicase/u8-prefix-context: New file.
28773
28774         New module 'unicase/empty-prefix-context'.
28775         * lib/unicase/empty-prefix-context.c: New file.
28776         * modules/unicase/empty-prefix-context: New file.
28777
28778         New module 'unicase/ignorable'.
28779         * lib/unicase/ignorable.c: New file.
28780         * modules/unicase/ignorable: New file.
28781
28782         New module 'unicase/cased'.
28783         * lib/unicase/caseprop.h: New file.
28784         * lib/unicase/cased.c: New file.
28785         * modules/unicase/cased: New file.
28786
28787         New functions for case mapping of substrings.
28788         * lib/unicase.h (casing_prefix_context_t): New type.
28789         (unicase_empty_prefix_context): New variable.
28790         (u8_casing_prefix_context, u16_casing_prefix_context,
28791         u32_casing_prefix_context, u8_casing_prefixes_context,
28792         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28793         declarations.
28794         (casing_suffix_context_t): New type.
28795         (unicase_empty_suffix_context): New variable.
28796         (u8_casing_suffix_context, u16_casing_suffix_context,
28797         u32_casing_suffix_context, u8_casing_suffixes_context,
28798         u16_casing_suffixes_context, u32_casing_suffixes_context,
28799         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28800         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28801         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28802         declarations.
28803
28804 2009-06-28  Jim Meyering  <meyering@redhat.com>
28805
28806         boostrap: indent only with spaces
28807         * build-aux/bootstrap: Indent only with spaces, never TABs.
28808
28809         bootstrap: split long lines
28810         * build-aux/bootstrap: Keep line length < 80.
28811
28812         bootstrap: sync from coreutils
28813         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28814         just as autoreconf does.  Verify a list of prerequisite
28815         package-name,version-number pairs if defined in bootstrap.conf.
28816         Refer to README-prereq, if prerequisites are not satisfied.
28817
28818 2009-06-27  Eric Blake  <ebb9@byu.net>
28819
28820         tests: add test for bogus NULL definition
28821         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28822         * tests/test-stdlib.c: Likewise.
28823         * tests/test-string.c: Likewise.
28824         * tests/test-locale.c: Likewise.
28825         * tests/test-unistd.c: Likewise.
28826         * modules/stdio-tests (Depends-on): Add verify.
28827         * modules/stdlib-tests (Depends-on): Likewise.
28828         * modules/string-tests (Depends-on): Likewise.
28829         * modules/locale-tests (Depends-on): Likewise.
28830         * modules/unistd-tests (Depends-on): Likewise.
28831
28832 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28833
28834         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28835         self-explaining comment.
28836         * m4/selinux-selinux-h: Update serial.
28837         (gl_LIBSELINUX): New macro, adding a warning for missing development
28838         packages to code extracted from...
28839         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28840         Add warning for missing development packages here, too.
28841
28842 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28843
28844         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28845
28846 2009-06-25  Eric Blake  <ebb9@byu.net>
28847
28848         version-etc: fix regression
28849         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28850         gcc.
28851         (version_etc): Use it, to catch bugs with trailing NULL.
28852         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28853         (version_etc_va): Fix logic bug.
28854         * modules/version-etc-tests: Add test.
28855         * tests/test-version-etc.c: New file.
28856         * tests/test-version-etc.sh: Likewise.
28857
28858 2009-06-25  Sam Steingold  <sds@gnu.org>
28859
28860         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28861         mbtowc declaration.
28862
28863 2009-06-25  Eric Blake  <ebb9@byu.net>
28864
28865         fpurge: migrate into <stdio.h>
28866         * lib/fpurge.h: Delete...
28867         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28868         * lib/fpurge.c (fpurge): Change declaring header.
28869         * modules/fpurge (Files): Drop deleted file.
28870         (Depends-on): Add stdio.
28871         (configure.ac): Set witness.
28872         * modules/stdio (Makefile.am): Support fpurge macros.
28873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28874         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28875         * lib/fflush.c: Update client.
28876         * tests/test-fpurge.c: Likewise.
28877         * NEWS: Mention the change.
28878
28879 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28880
28881         * lib/argp-version-etc.c (program_authors): Add const
28882         qualifier.
28883         * lib/version-etc.c: Fix typos in the comments.
28884         * modules/argp-version-etc: Depends on version-etc.
28885
28886 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28887
28888         argp-version-etc: new module.
28889
28890         * lib/argp-version-etc.c: New file.
28891         * lib/argp-version-etc.h: New file.
28892         * modules/argp-version-etc: New file.
28893         * modules/argp-version-etc-tests: New file.
28894         * tests/test-argp-version-etc.c: New test.
28895         * tests/test-argp-version-etc-1.sh: New test.
28896
28897 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28898
28899         Provide additional interfaces and documentation for version-etc
28900         module.
28901
28902         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28903         interfaces.
28904         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28905         prototypes.
28906
28907 2009-06-24  Bruno Haible  <bruno@clisp.org>
28908
28909         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28910         HAVE_LIB${NAME} macro.
28911         Reported by Sam Steingold <sds@gnu.org>.
28912
28913 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28914
28915         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28916         needed.
28917
28918 2009-06-21  Bruno Haible  <bruno@clisp.org>
28919
28920         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28921         work.
28922         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28923         together with LIB${NAME}, LTLIB${NAME}.
28924         Reported by Sam Steingold <sds@gnu.org>.
28925
28926 2009-06-20  Jim Meyering  <meyering@redhat.com>
28927
28928         tests: make sc_require_test_exit_idiom more generic
28929         * top/maint.mk (Exit_witness_file): New overridable variable.
28930         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28931         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28932
28933 2009-06-19  Jim Meyering  <meyering@redhat.com>
28934
28935         hash: reverse order of src/dst parameters in an internal interface
28936         * lib/hash.c (transfer_entries): Reverse order of parameters to
28937         put DST before SRC.  Adjust callers.
28938
28939         tests: test-hash: avoid wholesale duplication
28940         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28941         Instead, use a loop and add a single conditional.
28942
28943         tests: test-hash: allow seed selection via a command line argument
28944         * tests/test-hash.c (get_seed): New function.
28945         (main): Use it.
28946
28947 2009-06-19  Eric Blake  <ebb9@byu.net>
28948
28949         hash: avoid memory leak on allocation failure
28950         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28951         failure.  Factor repeated algorithm...
28952         (transfer_entries): ...into new helper routine.
28953         (hash_delete): React to hash_rehash return value.
28954
28955         hash: reduce memory pressure in hash_rehash no-op case
28956         * lib/hash.c (next_prime): Avoid overflow.
28957         (hash_initialize): Factor bucket size computation...
28958         (compute_bucket_size): ...into new helper function.
28959         (hash_rehash): Use new function and open coding to reduce memory
28960         pressure, and avoid a memory leak in USE_OBSTACK code.
28961         Reported by Jim Meyering.
28962
28963 2009-06-18  Eric Blake  <ebb9@byu.net>
28964
28965         hash: make rotation more obvious
28966         * modules/hash (Depends-on): Add bitrotate and stdint.
28967         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28968         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28969         (SIZE_MAX): Rely on headers for definition.
28970         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28971         (raw_hasher): Use rotr_sz.
28972         Suggested by Jim Meyering.
28973
28974         hash: fix memory leak in last patch
28975         * lib/hash.c (hash_rehash): Avoid memory leak.
28976
28977         hash: avoid no-op rehashing
28978         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28979
28980         hash: provide default callback functions
28981         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28982         (hash_initialize): Use them as defaults.
28983         * tests/test-hash.c (main): Test this.
28984
28985         hash: minor optimization
28986         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28987         when possible.
28988         (hash_initialize): Document this promise.
28989         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28990         * tests/test-hash.c (hash_compare_strings): Test this.
28991
28992 2009-06-18  Bruno Haible  <bruno@clisp.org>
28993
28994         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28995         going to be replaced anyway.
28996
28997 2009-06-18  Bruno Haible  <bruno@clisp.org>
28998
28999         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29000         in one place.
29001         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29002         be replaced anyway.
29003
29004 2009-06-18  Eric Blake  <ebb9@byu.net>
29005
29006         hash: check for resize before insertion
29007         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29008         threshold before insertion, so that a pathological hash_rehash
29009         that fills every bucket can still trigger another rehash.
29010
29011 2009-06-18  Jim Meyering  <meyering@redhat.com>
29012
29013         hash-tests: add a loop around the small tests
29014         * tests/test-hash.c (main): Repeat small tests with selected
29015         small initial table sizes.
29016
29017 2009-06-17  Eric Blake  <ebb9@byu.net>
29018
29019         hash: minor cleanups
29020         * lib/hash.h (hash_entry): Make opaque, by moving...
29021         * lib/hash.c (hash_entry): ...here.
29022         (hash_insert): Clarify restrictions on what can be inserted.
29023         (hash_get_next): Clarify when it is safe to remove an element
29024         during traversal.
29025         (check_tuning): Skip verification when tuning is known safe.
29026         (hash_initialize): Clarify restrictions on tuning.
29027
29028 2009-06-17  Jim Meyering  <jim@meyering.net>
29029         and Eric Blake  <ebb9@byu.net>
29030
29031         hash-tests: new module
29032         * modules/hash-tests: New file.
29033         * tests/test-hash.c: New file.
29034
29035 2009-06-17  Eric Blake  <ebb9@byu.net>
29036
29037         strstr-simple: document new module
29038         * MODULES.html.sh: Document new module.
29039
29040         strstr, strcasestr: replace on platforms with broken memchr
29041         * modules/strstr: Split into...
29042         * modules/strstr-simple: ...new module that does not care about
29043         performance, but does care about glibc bug.
29044         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29045         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29046         if platform memchr is broken, per Debian bug 521737.
29047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29048         memchr.
29049         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29050         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29051         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29052         * modules/mountlist (Depends-on): Add strstr-simple.
29053         * modules/gen-uni-tables (Depends-on): Likewise.
29054         * modules/argz (Depends-on): Add strstr.
29055
29056 2009-06-17  Bruno Haible  <bruno@clisp.org>
29057
29058         * modules/posix_spawn-internal (Depends-on): Add errno.
29059
29060 2009-06-17  Bruno Haible  <bruno@clisp.org>
29061
29062         Define missing ESTALE on Interix 3.5.
29063         * lib/errno.in.h (ESTALE): Assign a value if missing.
29064         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29065         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29066         missing.
29067         * doc/posix-headers/errno.texi: Mention the Interix bug.
29068         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29069
29070 2009-06-15  Eric Blake  <ebb9@byu.net>
29071
29072         memchr, memchr2: add valgrind exception
29073         * lib/memchr.valgrind: New file.
29074         * lib/memchr2.valgrind: New file.
29075         * modules/memchr (Files): Distribute valgrind file.
29076         * modules/memchr2 (Files): Likewise.
29077
29078         docs: memchr is no longer obsolete
29079         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29080         * lib/string.in.h (memchr): Simplify logic.
29081
29082 2009-06-14  Jim Meyering  <meyering@redhat.com>
29083
29084         link-follow: fix the "checking..." message to not mention trailing slash
29085         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29086         never considered trailing slashes.
29087
29088 2009-06-14  Bruno Haible  <bruno@clisp.org>
29089
29090         * m4/memchr.m4: Mention also the bug on IA-64.
29091         * doc/posix-functions/memchr.texi: Likewise.
29092
29093 2009-06-12  Eric Blake  <ebb9@byu.net>
29094
29095         memchr: detect broken x86_64 and alpha implementations
29096         * modules/memchr-tests (Depends-on): Move mmap detection...
29097         * modules/memchr (Depends-on): ...here.
29098         (configure.ac): Set indicator.
29099         * lib/string.in.h (memchr): Declare replacement.
29100         * modules/string (Makefile.am): Trigger replacement.
29101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29102         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29103         bugs.
29104         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29105         * modules/getpagesize (License): Relax license.
29106
29107 2009-06-11  Bruno Haible  <bruno@clisp.org>
29108
29109         * lib/idpriv.h: Add more references.
29110
29111 2009-06-08  Bruno Haible  <bruno@clisp.org>
29112
29113         Tests for module 'idpriv-droptemp'.
29114         * modules/idpriv-droptemp-tests: New file.
29115         * tests/test-idpriv-droptemp.sh: New file.
29116         * tests/test-idpriv-droptemp.su.sh: New file.
29117         * tests/test-idpriv-droptemp.c: New file.
29118
29119         New module 'idpriv-droptemp'.
29120         * lib/idpriv-droptemp.c: New file.
29121         * modules/idpriv-droptemp: New file.
29122
29123 2009-06-08  Bruno Haible  <bruno@clisp.org>
29124
29125         Tests for module 'idpriv-drop'.
29126         * modules/idpriv-drop-tests: New file.
29127         * tests/test-idpriv-drop.sh: New file.
29128         * tests/test-idpriv-drop.su.sh: New file.
29129         * tests/test-idpriv-drop.c: New file.
29130
29131         New module 'idpriv-drop'.
29132         * lib/idpriv.h: New file.
29133         * lib-idpriv-drop.c: New file.
29134         * m4/idpriv.m4: New file.
29135         * modules/idpriv-drop: New file.
29136
29137 2009-06-08  Bruno Haible  <bruno@clisp.org>
29138
29139         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29140         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29141         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29142         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29143         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29144         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29145         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29146
29147 2009-06-08  Eric Blake  <ebb9@byu.net>
29148
29149         test-strstr: use memory fence, when possible
29150         * tests/test-strstr.c (main): Use memory fence, in order to be
29151         more likely to trigger Debian bug 521737.
29152         * modules/strstr-tests (Files): Pull in additional files.
29153
29154         memchr: no longer obsolete, for wider field testing
29155         * modules/memchr (Status, Notice): Delete, this module is no
29156         longer obsolete.
29157         * modules/vasnprintf (Depends-on): Add memchr.
29158
29159 2009-06-07  Jim Meyering  <meyering@redhat.com>
29160
29161         hash: declare some functions with the warn_unused_result attribute
29162         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29163
29164 2009-06-07  Bruno Haible  <bruno@clisp.org>
29165
29166         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29167         Reported by Eric Blake.
29168
29169 2009-06-06  Eric Blake  <ebb9@byu.net>
29170
29171         test-alignof: fix typo with long double
29172         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29173         compiler error.
29174
29175 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29176
29177         Escape non-texinfo { and }s.
29178         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29179         markup error.
29180
29181 2009-06-04  Jim Meyering  <meyering@redhat.com>
29182
29183         gitlog-to-changelog: don't infloop on an empty commit log
29184         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29185         Reported by Boris Petersen <transacid@centerim.org>.
29186
29187 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29188
29189         version-etc: extend for packagers
29190         Add three new configure options, intended for packagers:
29191           --with-packager="packager name"
29192           --with-packager-version="packager-specific version"
29193           --with-packager-bug-reports="packager bug reporting"
29194         An example with coreutils:
29195           $ ./configure \
29196             --with-packager=Gentoo \
29197             --with-packager-bug-report=http://bugs.gentoo.org/ \
29198             --with-packager-version="patchset 1.6"
29199           $ ./src/ls --version | head -n2
29200           ls (GNU coreutils) 7.1-dirty
29201           Packaged by Gentoo (patchset 1.6)
29202         Note that the bug reporting info via --help doesn't show up because
29203         coreutils uses its own custom emit_bug_reporting_address() implementation
29204         in src/system.h.  If it didn't, it'd look like:
29205           $ ./src/ls --help | tail -n4
29206           Report bugs to <bug-coreutils@gnu.org>.
29207           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29208           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29209           General help using GNU software: <http://www.gnu.org/gethelp/>.
29210         * lib/version-etc.c: Print new information, if provided.
29211         * m4/version-etc.m4: New file.
29212         * modules/version-etc (Files): Add m4/version-etc.m4.
29213         (configure.ac): Add gl_VERSION_ETC.
29214
29215 2009-05-31  Bruno Haible  <bruno@clisp.org>
29216
29217         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29218         and 'int64_t'.
29219         * modules/alignof-tests (Dependencies): Add stdint.
29220         Reported by Eric Blake.
29221
29222 2009-05-31  Bruno Haible  <bruno@clisp.org>
29223
29224         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29225         restriction due to compiler bugs.
29226         Reported by Eric Blake.
29227
29228 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29229             Bruno Haible  <bruno@clisp.org>
29230
29231         Fix test-alignof failure.
29232         * lib/alignof.h (alignof_slot): New macro.
29233         (alignof_type): New macro, with the same semantics as the previous
29234         'alignof'.
29235         (alignof): Alias to alignof_slot.
29236         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29237         check that the results are usable as constant expressions.
29238
29239 2009-05-31  Bruno Haible  <bruno@clisp.org>
29240
29241         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29242         * tests/test-memchr.c (main): Check that memchr does not read past the
29243         first occurrence of the byte.
29244         * tests/test-strstr.c (main): Update comment.
29245         Suggested by Eric Blake.
29246
29247 2009-05-30  Bruno Haible  <bruno@clisp.org>
29248
29249         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29250         detail how to use dumpbin.
29251         Reported by David Byron <dbyron@dbyron.com>.
29252
29253 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29254
29255         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29256
29257 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29258
29259         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29260
29261 2009-05-28  Bruno Haible  <bruno@clisp.org>
29262
29263         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29264         build-aux/ files.
29265
29266 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29267
29268         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29269
29270 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29271
29272         * gnulib-tool (sed_transform_main_lib_file)
29273         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29274         regexps.
29275
29276 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29277
29278         * tests/test-strstr.c: Add another self-test.
29279         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29280         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29281
29282 2009-05-23  Bruno Haible  <bruno@clisp.org>
29283
29284         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29285         change.
29286
29287 2009-05-21  Bruno Haible  <bruno@clisp.org>
29288
29289         Simplify use of mode_t varargs.
29290         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29291         uses 'mode_t' or 'int'.
29292         * lib/openat.c (openat): Likewise.
29293         * lib/open-safer.c (open_safer): Likewise.
29294         * m4/mode_t.m4: New file.
29295         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29296         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29297         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29298         * modules/open (Files): Add m4/mode_t.m4.
29299         * modules/openat (Files): Likewise.
29300         * modules/fcntl-safer (Files): Likewise.
29301         Suggested by Eric Blake.
29302
29303 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29304
29305         * doc/glibc-functions/fallocate.texi: New file.
29306         * doc/gnulib.texi: Include it.
29307
29308 2009-05-21  Eric Blake  <ebb9@byu.net>
29309             Bruno Haible  <bruno@clisp.org>
29310
29311         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29312         invocations.
29313         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29314
29315 2009-05-21  Eric Blake  <ebb9@byu.net>
29316             Bruno Haible  <bruno@clisp.org>
29317
29318         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29319         include_next. Fix of 2008-11-20 commit.
29320         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29321         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29322         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29323         NEXT_MATH_H.
29324         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29325         instead of NEXT_MATH_H.
29326
29327 2009-05-21  Bruno Haible  <bruno@clisp.org>
29328
29329         Avoid redefinition warnings for SIZE_MAX.
29330         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29331         Reported by Simon Josefsson.
29332
29333 2009-05-21  Bruno Haible  <bruno@clisp.org>
29334
29335         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29336         AC_CACHE_VAL.
29337
29338 2009-05-20  Bruno Haible  <bruno@clisp.org>
29339
29340         Make zeroptr.h work on mingw.
29341         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29342         mprotect.
29343         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29344         * modules/memchr2-tests (configure.ac): Likewise.
29345         * modules/memcmp-tests (configure.ac): Likewise.
29346         * modules/memmem-tests (configure.ac): Likewise.
29347         * modules/memrchr-tests (configure.ac): Likewise.
29348         Reported by Simon Josefsson.
29349
29350 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29351
29352         * tests/test-glob.c: Include string.h for strcmp prototype.
29353
29354 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29355
29356         * modules/getdelim (Depends-on): Add explicit stdint, although it
29357         was implicitly already pulled in via realloc-posix.
29358         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29359
29360 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29361
29362         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29363         G. Christensen" <tgc@jupiterrise.com>.
29364         * m4/sys_socket_h.m4: Check for sa_family_t.
29365         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29366         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29367         * tests/test-sys_socket.c: Check that sa_family_t works.
29368
29369 2009-05-18  Eric Blake  <ebb9@byu.net>
29370
29371         maint.mk: allow gnulib_dir in VPATH build
29372         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29373
29374 2009-05-15  Jim Meyering  <meyering@redhat.com>
29375
29376         maint.mk: Give gnulib_dir a default definition.
29377         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29378         Thus, most packages no longer need to specify this variable in cfg.mk
29379
29380 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29381
29382         rename.m4: fix typos that would make non-mingw cross-configure fail
29383         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29384
29385 2009-05-13  Eric Blake  <ebb9@byu.net>
29386
29387         mmap-anon: avoid out-of-order autoconf expansion
29388         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29389         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29390         * modules/memchr-tests (Depends-on): Add extensions.
29391         * modules/memchr2-tests (Depends-on): Add extensions.
29392         * modules/memcmp-tests (Depends-on): Add extensions.
29393         * modules/memmem-tests (Depends-on): Add extensions.
29394         * modules/memrchr-tests (Depends-on): Add extensions.
29395
29396 2009-05-13  Bruno Haible  <bruno@clisp.org>
29397
29398         Make some tests ISO C 99 compliant.
29399         * tests/zerosize-ptr.h: New file.
29400         * tests/test-memchr.c: Include zerosize-ptr.h.
29401         (main): Use a zero-size object pointer instead of NULL.
29402         * tests/test-memchr2.c: Include zerosize-ptr.h.
29403         (main): Use a zero-size object pointer instead of NULL.
29404         * tests/test-memcmp.c: Include zerosize-ptr.h.
29405         (main): Use a zero-size object pointer instead of NULL.
29406         * tests/test-memmem.c: Include zerosize-ptr.h.
29407         (main): Use a zero-size object pointer instead of NULL.
29408         * tests/test-memrchr.c: Include zerosize-ptr.h.
29409         (main): Use a zero-size object pointer instead of NULL.
29410         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29411         m4/mmap-anon.m4.
29412         (Depends-on): Add getpagesize.
29413         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29414         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29415         m4/mmap-anon.m4.
29416         (Depends-on): Add getpagesize.
29417         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29418         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29419         m4/mmap-anon.m4.
29420         (Depends-on): Add getpagesize.
29421         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29422         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29423         m4/mmap-anon.m4.
29424         (Depends-on): Add getpagesize.
29425         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29426         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29427         m4/mmap-anon.m4.
29428         (Depends-on): Add getpagesize.
29429         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29430
29431 2009-05-12  Bruno Haible  <bruno@clisp.org>
29432
29433         Tests for module 'alignof'.
29434         * modules/alignof-tests: New file.
29435         * tests/test-alignof.c: New file.
29436
29437 2009-05-12  Bruno Haible  <bruno@clisp.org>
29438
29439         Fix alignof macro.
29440         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29441         vendor compilers that are always correct.
29442
29443 2009-05-12  Bruno Haible  <bruno@clisp.org>
29444
29445         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29446         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29447         not whether its fully works.
29448
29449 2009-05-12  Bruno Haible  <bruno@clisp.org>
29450
29451         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29452
29453 2009-05-12  Jim Meyering  <meyering@redhat.com>
29454
29455         * top/maint.mk: Adjust backslash alignment.
29456
29457 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29458
29459         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29460
29461 2009-05-11  Eric Blake  <ebb9@byu.net>
29462
29463         argp: avoid undefined behavior
29464         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29465         macros.
29466
29467 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29468
29469         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29470         user.name to prevent git commit from complaining.
29471
29472 2009-05-10  Bruno Haible  <bruno@clisp.org>
29473
29474         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29475         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29476         it rewrites every file name only once.
29477         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29478
29479 2009-05-08  Bruno Haible  <bruno@clisp.org>
29480
29481         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29482         instead of 'max'.
29483
29484 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29485
29486         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29487         sockaddr_storage test.
29488
29489 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29490
29491         * modules/sys_socket (Makefile.am): Substitute
29492         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29493         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29494         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29495         * tests/test-sys_socket.c: Check sockaddr_storage.
29496
29497 2009-05-08  Bruno Haible  <bruno@clisp.org>
29498
29499         New module 'alignof'.
29500         * lib/alignof.h: New file.
29501         * modules/alignof: New file.
29502
29503 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29504             Bruno Haible  <bruno@clisp.org>
29505
29506         Fix test-file-has-acl on FreeBSD.
29507         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29508         mask is implicitly added.
29509         * tests/test-file-has-acl.c: Include <signal.h>.
29510         (main): Terminate the test after 5 seconds.
29511         * modules/acl-tests (configure.ac): Check for alarm function.
29512
29513 2009-05-04  Bruno Haible  <bruno@clisp.org>
29514
29515         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29516         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29517         * modules/errno (configure.ac): Drop AC_REQUIRE.
29518         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29519         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29520
29521 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29522
29523         * modules/glob-tests: New module.
29524         * tests/test-glob.c: Add.
29525
29526 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29527
29528         * modules/fnmatch-tests: New module.
29529         * tests/test-fnmatch.c: Add.
29530
29531 2009-05-04  Eric Blake  <ebb9@byu.net>
29532
29533         maint: make the new no-submodule-changes rule VPATH-safe
29534         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29535
29536 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29537             Bruno Haible  <bruno@clisp.org>
29538
29539         acl: Fix infinite loop on FreeBSD.
29540         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29541         of return value from acl_get_entry.
29542         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29543         Likewise.
29544
29545 2009-05-03  Bruno Haible  <bruno@clisp.org>
29546
29547         * lib/acl-internal.h (acl_entries): Clarify return value.
29548         * lib/acl_entries.c (acl_entries): Likewise.
29549
29550 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29551
29552         Bug fix in acl module.
29553         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29554
29555 2009-05-03  Bruno Haible  <bruno@clisp.org>
29556
29557         Create gperf-generated file in the source dir, not in the build dir.
29558         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29559         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29560         * modules/unicase/locale-language (unicase/locale-languages.h):
29561         Likewise.
29562         * modules/unicase/special-casing (unicase/special-casing-table.h):
29563         Likewise.
29564         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29565         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29566         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29567         Reported by Ralf Wildenhues.
29568
29569 2009-05-03  Bruno Haible  <bruno@clisp.org>
29570
29571         * modules/fnmatch (Description, configure.ac): Taken from
29572         fnmatch-posix.
29573         * modules/fnmatch-posix: Turn into a symbolic reference to the
29574         'fnmatch' module, and deprecate.
29575         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29576
29577 2009-05-03  Bruno Haible  <bruno@clisp.org>
29578
29579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29580         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29581         Reported by Ralf Wildenhues.
29582
29583 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29584
29585         * m4/fnmatch.m4: Fix fnmatch re-define.
29586
29587 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29588
29589         priv-set: new module and tests; adapt write-any-file
29590         * lib/priv-set.c: New file.
29591         * lib/priv-set.h: New file.
29592         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29593         * lib/write-any-file.c: Simplify by using priv-set module.
29594         * m4/priv-set.m4: New file.
29595         * modules/priv-set: New file.
29596         * modules/unlinkdir: Add dependency on priv-set module.
29597         * modules/write-any-file: Likewise.
29598
29599         Tests for module 'priv-set'.
29600         * modules/priv-set-tests: New file.
29601         * tests/test-priv-set.c: New file.
29602
29603 2009-05-03  Jim Meyering  <meyering@redhat.com>
29604             Bruno Haible  <bruno@clisp.org>
29605
29606         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29607         use the converted UTF-8 variant of the name instead.
29608
29609 2009-05-03  Jim Meyering  <meyering@redhat.com>
29610
29611         tests: tighten some getdate tests
29612         * tests/test-getdate.c (main): Tighten tests: require equality,
29613         not just greater than.  Set TZ envvar to UTC0.
29614
29615 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29616
29617         getdate: correctly interpret "next monday" when run on a Monday
29618         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29619         that e.g., "next tues" (when run on a tuesday) results in a date
29620         that is one week in the future, and not today's date.
29621         I.e., add a week when the wday is the same as the current one.
29622         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29623         and earlier by Martin Bernreuther and Jan Minář.
29624         * tests/test-getdate.c (main): Check that "next DAY" is always in
29625         the future and that "last DAY" is always in the past.
29626
29627 2009-05-02  Jim Meyering  <meyering@redhat.com>
29628
29629         build: ensure that a release build fails when a submodule is unclean
29630         * top/maint.mk (no-submodule-changes): New rule.
29631         (alpha beta major): Depend on it.
29632
29633 2009-05-02  Bruno Haible  <bruno@clisp.org>
29634
29635         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29636         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29637         shell variable gl_fnmatch_required to detect which variant is
29638         requested.
29639         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29640         gl_FUNC_FNMATCH_POSIX.
29641         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29642         exclude fnmatch-posix.
29643
29644 2009-05-02  Bruno Haible  <bruno@clisp.org>
29645
29646         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29647         * modules/mbsrtowcs (License): Change to LGPLv2+.
29648         * modules/strnlen1 (License): Likewise.
29649         Reported by Simon Josefsson.
29650
29651 2009-05-02  Bruno Haible  <bruno@clisp.org>
29652
29653         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29654         "cross".
29655         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29656         gnulib-tool was called with option --source-base=lib.
29657
29658 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29659
29660         Use automake *-local hooks without commands, for extensibility.
29661         * modules/localcharset (Makefile.am): Rename install-exec-local
29662         rule to install-exec-localcharset, and make it a prerequisite of
29663         install-exec-local.  Likewise, rename the uninstall-local rule to
29664         uninstall-localcharset, and make it a prerequisite of the former.
29665
29666 2009-05-01  Bruno Haible  <bruno@clisp.org>
29667
29668         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29669         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29670         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29671         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29672         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29673         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29674         m4/locale-zh.m4, m4/codeset.m4.
29675
29676         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29677         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29678         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29679         m4/locale-zh.m4.
29680
29681         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29682         REPLACE_WCRTOMB if mbstate_t must be replaced.
29683         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29684         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29685
29686 2009-05-01  Bruno Haible  <bruno@clisp.org>
29687
29688         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29689         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29690         dngettext, dcngettext, textdomain, bindtextdomain,
29691         bind_textdomain_codeset): Undefine before redefining.
29692
29693 2009-04-30  Bruno Haible  <bruno@clisp.org>
29694
29695         Fix bug introduced on 2009-04-25.
29696         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29697         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29698         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29699         is defined.
29700         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29701         is defined.
29702         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29703         is defined.
29704         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29705
29706 2009-04-28  Bruno Haible  <bruno@clisp.org>
29707
29708         Comment tweaks.
29709         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29710         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29711         * lib/unicase.h (u*_casexfrm): Likewise.
29712         Reported by Paolo Bonzini.
29713
29714 2009-04-28  Bruno Haible  <bruno@clisp.org>
29715
29716         Fix a compilation error.
29717         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29718         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29719         Reported by Jim Meyering.
29720
29721 2009-04-27  Bruno Haible  <bruno@clisp.org>
29722
29723         New module 'libunistring'.
29724         * modules/libunistring: New file.
29725         * m4/libunistring.m4: New file.
29726         * MODULES.html.sh (Unicode string functions): Add it.
29727
29728 2009-04-27  Eric Blake  <ebb9@byu.net>
29729
29730         maint.mk: allow package-specific header to provide <config.h>
29731         * top/maint.mk (sc_require_config_h): New variable.
29732         (sc_require_config_h, sc_require_config_h_first): Use it.
29733
29734 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29735
29736         * top/maint.mk (sc_avoid_if_before_free): Except
29737         useless-if-before-free script.
29738
29739 2009-04-27  Eric Blake  <ebb9@byu.net>
29740
29741         maintainer-makefile: depend on all required helper scripts
29742         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29743         useless-if-before-free.
29744         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29745         version, rather than assuming gnulib checkout is available.
29746         Reported by Simen Josefsson.
29747
29748 2009-04-26  Bruno Haible  <bruno@clisp.org>
29749
29750         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29751         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29752         "../" or "..".
29753
29754 2009-04-26  Bruno Haible  <bruno@clisp.org>
29755
29756         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29757         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29758         AC_LIB_HAVE_LINKFLAGS.
29759
29760 2009-04-26  Bruno Haible  <bruno@clisp.org>
29761
29762         Simplify calling convention of u*_conv_from_encoding.
29763         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29764         u32_conv_from_encoding): Expect a resultbuf argument and return the
29765         result directly as a pointer.
29766         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29767         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29768         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29769         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29770         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29771         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29772         Update.
29773         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29774         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29775         * lib/vasnprintf.c (VASNPRINTF): Update.
29776         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29777         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29778         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29779         * NEWS: Mention the change.
29780
29781 2009-04-26  Bruno Haible  <bruno@clisp.org>
29782
29783         Simplify calling convention of u*_conv_to_encoding.
29784         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29785         u32_conv_to_encoding): Expect a resultbuf argument and return the
29786         result directly as a pointer.
29787         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29788         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29789         freeing scaled_offsets if mem_iconveha failed.
29790         * lib/unicase/u-casexfrm.h (FUNC): Update.
29791         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29792         * lib/vasnprintf.c (VASNPRINTF): Update.
29793         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29794         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29795         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29796         * NEWS: Mention the change.
29797
29798 2009-04-26  Bruno Haible  <bruno@clisp.org>
29799
29800         Avoid test failures on AIX and OSF/1.
29801         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29802         malloc(0).
29803         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29804         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29805         Likewise.
29806         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29807         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29808         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29809         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29810         * doc/posix-functions/malloc.texi: Document the portability problem
29811         related to malloc(0).
29812
29813 2009-04-26  Bruno Haible  <bruno@clisp.org>
29814
29815         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29816         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29817         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29818
29819 2009-04-25  Bruno Haible  <bruno@clisp.org>
29820
29821         Avoid link error when creating a namespace clean library.
29822         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29823         as macro with arguments if already defined as an alias.
29824         * lib/signbitf.c (gl_signbitf): Don't undefine.
29825         * lib/signbitd.c (gl_signbitd): Don't undefine.
29826         * lib/signbitl.c (gl_signbitl): Don't undefine.
29827
29828 2009-04-25  Jim Meyering  <meyering@redhat.com>
29829
29830         vc-list-files: fix another quoting bug
29831         * build-aux/vc-list-files: Avoid sed backslash expansion
29832         of pathological directory names.
29833
29834 2009-04-25  Eric Blake  <ebb9@byu.net>
29835
29836         vc-list-files: fix shell quoting error
29837         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29838         timestamp.
29839
29840 2009-04-25  Jim Meyering  <meyering@redhat.com>
29841
29842         vc-list-files: restore lost functionality with subdir argument
29843         * build-aux/vc-list-files: When given a non-"." sub-directory
29844         argument, substitute the $dir/ prefix back onto each resulting name.
29845         Otherwise, coreutils' root_tests check would fail.
29846
29847 2009-04-24  Eric Blake  <ebb9@byu.net>
29848
29849         vc-list-files: ignore git symlinks
29850         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29851         than ls-files, to ignore git symlinks.
29852
29853         maint.mk: import improvements from m4
29854         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29855         (move_if_change): Delete unused macro.
29856         (news-date-check, vc-diff-check): Support VPATH builds.
29857         (announcement): Likewise.  Split --bootstrap-tools list...
29858         (boostrap-tools): ...into separate list, which can be overridden
29859         in cfg.mk.
29860         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29861         requiring dependency on useless-if-before-free module.
29862         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29863         Support VPATH builds.
29864
29865 2009-04-24  Jim Meyering  <meyering@redhat.com>
29866
29867         maint.mk: remove coreutils-specific rules and variables
29868         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29869         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29870         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29871
29872         maint.mk: remove obsolete rule
29873         * top/maint.mk (rel-check): Remove rule.
29874         (WGET, WGETFLAGS): Remove now-unused variables.
29875
29876 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29877
29878         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29879         consistency.
29880
29881         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29882         '$(PATH_SEPARATOR)' instead of ':'.
29883
29884 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29885
29886         * lib/getopt1.c (main): Use 'const' for static array.
29887
29888 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29889
29890         * top/maint.mk: Sync with coreutils.
29891         * NEWS: Explain incompatibilities.
29892
29893 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29894             Bruno Haible  <bruno@clisp.org>
29895
29896         Fix cross-compilation results.
29897         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29898         statement, as third argument of AC_TRY_RUN.
29899         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29900         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29901         Likewise.
29902         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29903         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29904         Likewise.
29905         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29906         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29907         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29908
29909 2009-04-20  Bruno Haible  <bruno@clisp.org>
29910
29911         Avoid test failure on mingw.
29912         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29913
29914 2009-04-20  Bruno Haible  <bruno@clisp.org>
29915
29916         Avoid compilation error on mingw.
29917         * modules/localename-tests (Depends-on): Add locale.
29918
29919 2009-04-19  Bruno Haible  <bruno@clisp.org>
29920
29921         Support for building a shared library on Windows platforms.
29922         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29923         (main): Test the presence of UNINORM_NFC here.
29924         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29925         (main): Test the presence of UNINORM_NFD here.
29926         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29927         (main): Test the presence of UNINORM_NFKC here.
29928         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29929         (main): Test the presence of UNINORM_NFKD here.
29930
29931 2009-04-19  Bruno Haible  <bruno@clisp.org>
29932
29933         Avoid a compiler warning.
29934         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29935         Change type of variable 'sequence'.
29936
29937 2009-04-19  Bruno Haible  <bruno@clisp.org>
29938
29939         * modules/configmake (Makefile.am): When the contents of configmake.h
29940         does not change, arrange to preserve its modification time.
29941
29942 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29943
29944         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29945         gettext domain.
29946
29947 2009-04-16  Jim Meyering  <meyering@redhat.com>
29948
29949         useless-if-before-free: improve conversion code
29950         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29951         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29952
29953 2009-04-14  Bruno Haible  <bruno@clisp.org>
29954
29955         * modules/fcntl (Depends-on): Add extensions.
29956         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29957
29958 2009-04-12  Ben Pfaff  <blp@gnu.org>
29959
29960         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29961         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29962
29963 2009-03-20  Ben Pfaff  <blp@gnu.org>
29964
29965         Make rename replace existing destinations on Windows.
29966         * m4/rename.m4: Add test for Mingw.
29967         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29968         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29969         * doc/posix-functions/rename.texi: Document.
29970
29971 2009-04-10  Bruno Haible  <bruno@clisp.org>
29972
29973         New include file "iconveh.h".
29974         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29975         * lib/striconveh.h: Include it.
29976         (enum iconv_ilseq_handler): Remove definition.
29977         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29978         striconveh.h.
29979         * lib/striconveha.c: Include striconveh.h.
29980         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29981         * modules/striconveh (Files): Add lib/iconveh.h.
29982         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29983         lib/striconveh.h.
29984
29985 2009-04-10  Bruno Haible  <bruno@clisp.org>
29986
29987         * lib/uniconv.h: Update comment.
29988
29989 2009-04-10  Bruno Haible  <bruno@clisp.org>
29990
29991         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29992         always.
29993         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29994         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29995         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29996         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29997         "unistring-notinline.h", so that the function gets defined always.
29998         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29999         * lib/unistr/u8-uctomb.c: Likewise.
30000         * lib/unistr/u16-mbtouc.c: Likewise.
30001         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30002         * lib/unistr/u16-uctomb.c: Likewise.
30003         * lib/unistr/u32-mbtouc.c: Likewise.
30004         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30005         * lib/unistr/u32-uctomb.c: Likewise.
30006
30007 2009-04-10  Bruno Haible  <bruno@clisp.org>
30008
30009         Mark 'utime' obsolete.
30010         * modules/utime (Status, Notice): New sections.
30011         Suggested by Jim Meyering.
30012
30013         Fix cross-compile guess for utime test.
30014         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30015         autoconf.
30016         * doc/posix-functions/utime.texi: Give more precisions.
30017         Reported by Jan <ipif@ymail.com>.
30018
30019 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30020
30021         filevercmp: correct today's change
30022         * lib/filevercmp.c: Also handle coreutils' test inputs.
30023         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30024
30025         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30026         for reporting it.
30027         * lib/filevercmp.c: Special handle for "", "." and "..".
30028         * tests/test-filevercmp.c: Enlarge the set suite.
30029
30030 2009-04-07  Jim Meyering  <meyering@redhat.com>
30031
30032         useless-if-before-free: show how to remove braced useless free, too
30033         * build-aux/useless-if-before-free: still only in a comment, though.
30034
30035 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30036
30037         maint.mk: import changes to syntax-check macros from coreutils
30038         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30039         Use them in the relevant macros.
30040
30041 2009-04-06  Bruno Haible  <bruno@clisp.org>
30042
30043         Fix unportable use of bit-fields.
30044         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30045         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30046         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30047
30048 2009-04-06  Bruno Haible  <bruno@clisp.org>
30049
30050         Avoid test failures on AIX and OSF/1.
30051         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30052         that malloc(0) = NULL.
30053         * tests/unicase/test-u8-tolower.c (check): Likewise.
30054         * tests/unicase/test-u8-totitle.c (check): Likewise.
30055         * tests/unicase/test-u8-toupper.c (check): Likewise.
30056         * tests/unicase/test-u16-casefold.c (check): Likewise.
30057         * tests/unicase/test-u16-tolower.c (check): Likewise.
30058         * tests/unicase/test-u16-totitle.c (check): Likewise.
30059         * tests/unicase/test-u16-toupper.c (check): Likewise.
30060         * tests/unicase/test-u32-casefold.c (check): Likewise.
30061         * tests/unicase/test-u32-tolower.c (check): Likewise.
30062         * tests/unicase/test-u32-totitle.c (check): Likewise.
30063         * tests/unicase/test-u32-toupper.c (check): Likewise.
30064         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30065         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30066         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30067         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30068         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30069         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30070         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30071         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30072         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30073         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30074         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30075         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30076
30077 2009-04-05  Bruno Haible  <bruno@clisp.org>
30078
30079         Work around an autoconf limitation.
30080         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30081         comment line if it would be longer than 3 KB.
30082
30083 2009-04-05  Bruno Haible  <bruno@clisp.org>
30084
30085         Avoid test failure with libiconv-1.13.
30086         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30087         of the expected test results.
30088
30089 2009-04-05  Bruno Haible  <bruno@clisp.org>
30090
30091         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30092         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30093         that it should be installed.
30094
30095 2009-04-05  Bruno Haible  <bruno@clisp.org>
30096
30097         * gnulib-tool: New option --copy-file.
30098         (func_usage): Document it.
30099         (func_dest_tmpfilename): Moved out of func_import.
30100         (func_add_file, func_update_file): New functions, extracted from
30101         func_import.
30102         (func_import): Update.
30103
30104 2009-04-05  Karl Berry  <karl@gnu.org>
30105
30106         * README: prominently mention gnulib-tool.
30107         Rearrange sections so getting the code is near the top.
30108
30109 2009-04-05  Bruno Haible  <bruno@clisp.org>
30110
30111         * lib/unicase.h: Mention u*_cmp2.
30112         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30113         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30114         * lib/unicase/ulc-casecmp.c: Likewise.
30115         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30116         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30117         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30118         unistr/u8-cmp.
30119         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30120         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30121         unistr/u16-cmp.
30122         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30123         unistr/u32-cmp.
30124
30125         * lib/uninorm.h: Mention u*_cmp2.
30126         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30127         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30128         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30129         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30130         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30131         unistr/u8-cmp.
30132         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30133         unistr/u16-cmp.
30134         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30135         unistr/u32-cmp.
30136
30137         New module 'unistr/u32-cmp2'.
30138         * lib/unistr/u32-cmp2.c: New file.
30139         * modules/unistr/u32-cmp2: New file.
30140
30141         New module 'unistr/u16-cmp2'.
30142         * lib/unistr/u16-cmp2.c: New file.
30143         * modules/unistr/u16-cmp2: New file.
30144
30145         New module 'unistr/u8-cmp2'.
30146         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30147         * lib/unistr/u8-cmp2.c: New file.
30148         * lib/unistr/u-cmp2.h: New file.
30149         * modules/unistr/u8-cmp2: New file.
30150
30151 2009-04-05  Bruno Haible  <bruno@clisp.org>
30152
30153         * lib/unictype.h (uc_property_is_valid): New macro.
30154         * tests/unictype/test-pr_byname.c (main): Use it.
30155
30156         * lib/unistr.h: Doc fixes.
30157         * lib/uniconv.h: Doc fixes.
30158         * lib/unictype.h: Doc fixes.
30159
30160 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30161
30162         Port coreutils 7.2 to Solaris 8.
30163
30164         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30165         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30166         for Solaris 8.  This is a bit of a hack, as it means it's the
30167         caller's responsibility to add -lnsl if needed, but most likely it
30168         won't be needed since only getaddrinfo uses this and getaddrinfo
30169         isn't needed on Solaris 8.
30170
30171         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30172         problem to Solaris 8 encountered with coreutils 7.2, which
30173         resulted in a message "fnmatch.c:292: warning: passing argument 4
30174         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30175         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30176
30177 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30178
30179         * m4/ld-version-script.m4: Add FIXME comment.
30180
30181 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30182
30183         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30184         SOVERSION variable.
30185
30186 2009-04-02  Bruno Haible  <bruno@clisp.org>
30187
30188         * Makefile (info, html, dvi, pdf): Combine the rules.
30189         Suggested by Jim Meyering.
30190
30191 2009-04-01  Bruno Haible  <bruno@clisp.org>
30192
30193         * Makefile (info, html, dvi, pdf): New targets.
30194         Reported by Reuben Thomas <rrt@sc3d.org>.
30195
30196 2009-04-01  Bruno Haible  <bruno@clisp.org>
30197
30198         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30199         can be put into PATH.
30200         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30201
30202 2009-04-01  Bruno Haible  <bruno@clisp.org>
30203
30204         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30205
30206 2009-04-01  Bruno Haible  <bruno@clisp.org>
30207
30208         Rename module 'visibility'.
30209         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30210         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30211         * doc/gnulib.texi: Update.
30212         * MODULES.html.sh (Misc): Update.
30213         * NEWS: Mention the change.
30214
30215 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30216
30217         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30218         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30219         Eric Blake <ebb9@byu.net> for review.
30220         * MODULES.html.sh: Add lib-msvc-compat.
30221         * doc/gnulib.texi: Link to new section.
30222         * m4/ld-output-def.m4: New file.
30223         * doc/ld-output-def.texi: New file.
30224
30225 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30226
30227         Rename ld-version-script to lib-symbol-versions.  Suggested by
30228         Bruno Haible <bruno@clisp.org>.
30229         * modules/ld-version-script: Renamed to lib-symbol-versions.
30230         * doc/ld-version-script.texi: Fix module name.
30231         * MODULES.html.sh: Add lib-symbol-versions.
30232
30233 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30234
30235         * modules/u64-tests: New file.
30236         * tests/test-u64.c: New file.
30237
30238 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30239
30240         * MODULES.html.sh: Mention u64.
30241         * modules/u64: New module.
30242         * modules/crypto/sha512: Depend on u64 module instead of providing
30243         u64.h.
30244
30245 2009-03-27  Eric Blake  <ebb9@byu.net>
30246
30247         test-strerror: make debugging EAI_SYSTEM easier
30248         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30249         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30250         failure was EAI_SYSTEM.
30251
30252 2009-03-25  Bruno Haible  <bruno@clisp.org>
30253
30254         Fix a problem with --enable-relocatable on Solaris 7.
30255         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30256         since 2008-02-24.
30257
30258 2009-03-25  Eric Blake  <ebb9@byu.net>
30259
30260         test-sockets: avoid gcc warning
30261         * tests/test-sockets.c (main): Silence compiler warning.
30262
30263 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30264
30265         New modules nproc, pthread, contributed by Glen Lenker.
30266
30267         * MODULES.html.sh: Add pthread, nproc.
30268         * lib/nproc.c: New file.
30269         * lib/nproc.h: New file.
30270         * lib/pthread.in.h: New file.
30271         * m4/pthread.m4: New file.
30272         * modules/nproc: New file.
30273         * modules/pthread: New file.
30274
30275 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30276
30277         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30278         New variable.
30279
30280 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30281
30282         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30283         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30284         * tests/test-filevercmp.c: Add tests for backup suffixes.
30285
30286 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30287
30288         * modules/stdlib (Depends-on): Add stdint, needed when defining
30289         struct random_data on, for example, HP-UX 10.20.  Reported by
30290         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30291
30292 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30293
30294         * lib/readline.c (readline): Call fflush on stdout after printing
30295         prompt.
30296
30297 2009-03-20  Bruno Haible  <bruno@clisp.org>
30298
30299         Remove dependency from 'close' module to -lws2_32 on native Windows.
30300         * lib/close-hook.h: New file.
30301         * lib/close-hook.c: New file.
30302         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30303         w32sock.h.
30304         (_gl_close_fd_maybe_socket): Remove function.
30305         (rpl_close): Invoke execute_all_close_hooks instead of
30306         _gl_close_fd_maybe_socket.
30307         * lib/sockets.c: Include close-hook.h, w32sock.h.
30308         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30309         (close_sockets_hook): New variable.
30310         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30311         (gl_sockets_cleanup): Unregister it.
30312         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30313         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30314         * modules/close-hook: New file.
30315         * modules/close (Files): Remove lib/w32sock.h.
30316         (Depends-on): Add close-hook.
30317         (Link): Remove section.
30318         * modules/sockets (Files): Add lib/w32sock.h.
30319         (Depends-on): Add close-hook.
30320         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30321         invocation.
30322         * NEWS: Mention that LIB_CLOSE is gone.
30323
30324 2009-03-23  Eric Blake  <ebb9@byu.net>
30325
30326         signal-tests: test previous patch
30327         * tests/test-signal.c: New file.
30328         * modules/signal-tests: Likewise.
30329
30330         signal.h: always support 'volatile sig_atomic_t'
30331         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30332         (gl_SIGNAL_H_DEFAULTS): Add a default.
30333         * modules/signal (Makefile.am): Substitute if needed.
30334         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30335         users can blindly add volatile.
30336         * doc/posix-headers/signal.texi (signal.h): Document it.
30337         Reported by Matthew Woehlke.
30338
30339 2009-03-23  Jim Meyering  <meyering@redhat.com>
30340
30341         pathmax: PATH_MAX: use pathconf only when available
30342         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30343         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30344         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30345         This avoids a link failure in a PSP cross-compilation environment
30346         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30347
30348         * lib/vasnprintf.c (divide): Fix typo in comment.
30349
30350 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30351
30352         * gnulib-tool (func_filter_filelist): Fix comment.
30353
30354 2009-03-20  Bruno Haible  <bruno@clisp.org>
30355
30356         Make sockets.h self-contained.
30357         * lib/sockets.c: Include sockets.h first.
30358         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30359
30360 2009-03-19  Eric Blake  <ebb9@byu.net>
30361
30362         doc: mention more functions added in cygwin 1.7.0
30363         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30364         addition.
30365         * doc/posix-functions/log2f.texi: Likewise.
30366
30367 2009-03-19  Jim Meyering  <meyering@redhat.com>
30368
30369         fsusage: avoid syntax error due to statement-before-declaration
30370         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30371         after all declarations.  Reported by Matthew Woehlke in
30372         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30373
30374 2009-03-18  Eric Blake  <ebb9@byu.net>
30375
30376         build-aux/compile: sync from automake
30377         * build-aux/compile: New file, from automake.
30378         * config/srclist.txt: Mention build-aux/compile.
30379
30380 2009-03-17  Bruno Haible  <bruno@clisp.org>
30381
30382         * lib/git-merge-changelog.c: Fix typo in comment.
30383         Reported by Reuben Thomas <rrt@sc3d.org>.
30384
30385 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30386
30387         * m4/regex.m4: update and improve help for
30388         --without-included-regex.
30389
30390 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30391
30392         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30393         failure on missing include files.
30394
30395 2009-03-17  Eric Blake  <ebb9@byu.net>
30396
30397         doc: mention more functions added in cygwin 1.7.0
30398         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30399         addition.
30400         * doc/posix-functions/fwscanf.texi: Likewise.
30401         * doc/posix-functions/swprintf.texi: Likewise.
30402         * doc/posix-functions/swscanf.texi: Likewise.
30403         * doc/posix-functions/vfwprintf.texi: Likewise.
30404         * doc/posix-functions/vfwscanf.texi: Likewise.
30405         * doc/posix-functions/vswprintf.texi: Likewise.
30406         * doc/posix-functions/vswscanf.texi: Likewise.
30407         * doc/posix-functions/vwprintf.texi: Likewise.
30408         * doc/posix-functions/vwscanf.texi: Likewise.
30409         * doc/posix-functions/wcscasecmp.texi: Likewise.
30410         * doc/posix-functions/wcsdup.texi: Likewise.
30411         * doc/posix-functions/wcsftime.texi: Likewise.
30412         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30413         * doc/posix-functions/wprintf.texi: Likewise.
30414         * doc/posix-functions/wscanf.texi: Likewise.
30415         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30416
30417 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30418
30419         maint.mk: really add $(AM_MAKEFLAGS)
30420         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30421         was inadvertently omitted in the last commit.
30422         Spotted by Bruno Haible.
30423
30424         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30425         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30426         $(AM_MAKEFLAGS)' rather than plain `make'.
30427
30428         gnulib-tool: execute $MAKE not make
30429         * gnulib-tool: Default $MAKE to 'make'.
30430         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30431         than make.  Initialize $MAKE in the do-autobuild script.
30432
30433         gnulib-tool: use $MAKE not make in generated files
30434         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30435         make, in generated files.  Initialize $MAKE in the do-autobuild
30436         script.
30437
30438         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30439
30440         GNUmakefile: disable parallelism only for multiple, recursive targets
30441         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30442         additions in the Makefile.
30443         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30444         by Automake.
30445         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30446         are listed on the command line and at least one of them is
30447         listed in $(ALL_RECURSIVE_TARGETS).
30448
30449 2009-03-14  Bruno Haible  <bruno@clisp.org>
30450
30451         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30452         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30453         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30454         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30455         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30456         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30457         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30458         unistr/u8-uctomb.
30459         * modules/unistr/u8-strchr (Depends-on): Likewise.
30460         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30461         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30462         unistr/u16-uctomb.
30463         * modules/unistr/u16-strchr (Depends-on): Likewise.
30464         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30465
30466 2009-03-12  Bruno Haible  <bruno@clisp.org>
30467
30468         Work around select() bug on Interix 3.5.
30469         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30470         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30471         * m4/select.m4: New file.
30472         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30473         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30474         * modules/select (Files): Add m4/select.m4.
30475         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30476         * modules/nanosleep (Depends-on): Add select.
30477         * modules/poll (Depends-on): Likewise.
30478         * doc/posix-functions/select.texi: Mention the Interix bug.
30479         Reported by Markus Duft <mduft@gentoo.org>.
30480
30481         * lib/select.c: Renamed from lib/winsock-select.c.
30482         * modules/select (Files): Add lib/select.c, remove
30483         lib/winsock-select.c.
30484         (configure.ac): Update.
30485
30486 2009-03-12  Jim Meyering  <meyering@redhat.com>
30487
30488         avoid gcc warnings about unused macro definitions
30489         * lib/readtokens.c (STREQ): Remove unused definition.
30490         * lib/xmalloc.c (SIZE_MAX): Likewise.
30491         * lib/openat-die.c (N_): Likewise.
30492         * lib/mountlist.c (SIZE_MAX): Remove definition.
30493         Instead, include <stdint.h>.
30494         * lib/readutmp.c: Likewise.
30495         * modules/readutmp (Depends-on): Add stdint.
30496         * modules/mountlist (Depends-on): Add stdint.
30497         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30498
30499 2009-03-10  Bruno Haible  <bruno@clisp.org>
30500
30501         Tests for module 'mbmemcasecoll'.
30502         * modules/mbmemcasecoll-tests: New file.
30503         * tests/test-mbmemcasecoll1.sh: New file.
30504         * tests/test-mbmemcasecoll2.sh: New file.
30505         * tests/test-mbmemcasecoll3.sh: New file.
30506         * tests/test-mbmemcasecoll.c: New file.
30507
30508         New module 'mbmemcasecoll'.
30509         * lib/mbmemcasecoll.h: New file.
30510         * lib/mbmemcasecoll.c: New file.
30511         * modules/mbmemcasecoll: New file.
30512
30513         * tests/test-mbmemcasecmp.h: New file, extracted from
30514         tests/test-mbmemcasecmp.c.
30515         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30516         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30517         (main): Update.
30518         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30519
30520 2009-03-09  Bruno Haible  <bruno@clisp.org>
30521
30522         Tests for module 'mbmemcasecmp'.
30523         * modules/mbmemcasecmp-tests: New file.
30524         * tests/test-mbmemcasecmp1.sh: New file.
30525         * tests/test-mbmemcasecmp2.sh: New file.
30526         * tests/test-mbmemcasecmp3.sh: New file.
30527         * tests/test-mbmemcasecmp.c: New file.
30528
30529         New module 'mbmemcasecmp'.
30530         * lib/mbmemcasecmp.h: New file.
30531         * lib/mbmemcasecmp.c: New file.
30532         * modules/mbmemcasecmp: New file.
30533
30534 2009-03-09  Bruno Haible  <bruno@clisp.org>
30535
30536         Tests for module 'unicase/ulc-casecoll'.
30537         * modules/unicase/ulc-casecoll-tests: New file.
30538         * tests/unicase/test-ulc-casecoll1.sh: New file.
30539         * tests/unicase/test-ulc-casecoll2.sh: New file.
30540         * tests/unicase/test-ulc-casecoll.c: New file.
30541
30542         New module 'unicase/ulc-casecoll'.
30543         * lib/unicase.h (ulc_casecoll): New declaration.
30544         * lib/unicase/ulc-casecoll.c: New file.
30545         * modules/unicase/ulc-casecoll: New file.
30546
30547         New module 'unicase/ulc-casexfrm'.
30548         * lib/unicase.h (ulc_casexfrm): New declaration.
30549         * lib/unicase/ulc-casexfrm.c: New file.
30550         * modules/unicase/ulc-casexfrm: New file.
30551
30552 2009-03-09  Bruno Haible  <bruno@clisp.org>
30553
30554         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30555         invocations.
30556
30557         * m4/mbscasecmp.m4: Remove file.
30558         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30559         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30560
30561         * m4/mbscasestr.m4: Remove file.
30562         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30563         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30564
30565         * m4/mbschr.m4: Remove file.
30566         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30567         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30568
30569         * m4/mbscspn.m4: Remove file.
30570         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30571         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30572
30573         * m4/mbslen.m4: Remove file.
30574         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30575         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30576
30577         * m4/mbsncasecmp.m4: Remove file.
30578         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30579         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30580
30581         * m4/mbsnlen.m4: Remove file.
30582         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30583         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30584
30585         * m4/mbspbrk.m4: Remove file.
30586         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30587         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30588
30589         * m4/mbspcasecmp.m4: Remove file.
30590         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30591         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30592
30593         * m4/mbsrchr.m4: Remove file.
30594         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30595         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30596
30597         * m4/mbssep.m4: Remove file.
30598         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30599         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30600
30601         * m4/mbsspn.m4: Remove file.
30602         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30603         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30604
30605         * m4/mbsstr.m4: Remove file.
30606         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30607         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30608
30609         * m4/mbstok_r.m4: Remove file.
30610         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30611         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30612
30613         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30614
30615         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30616         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30617
30618         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30619
30620 2009-03-08  Bruno Haible  <bruno@clisp.org>
30621
30622         Tests for module 'unicase/ulc-casecmp'.
30623         * modules/unicase/ulc-casecmp-tests: New file.
30624         * tests/unicase/test-ulc-casecmp1.sh: New file.
30625         * tests/unicase/test-ulc-casecmp2.sh: New file.
30626         * tests/unicase/test-ulc-casecmp.c: New file.
30627
30628         New module 'unicase/ulc-casecmp'.
30629         * lib/unicase.h (ulc_casecmp): New declaration.
30630         * lib/unicase/ulc-casecmp.c: New file.
30631         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30632         'const SRC_UNIT *'.
30633         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30634         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30635         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30636         * modules/unicase/ulc-casecmp: New file.
30637
30638         Tests for module 'unicase/u32-is-cased'.
30639         * modules/unicase/u32-is-cased-tests: New file.
30640         * tests/unicase/test-u32-is-cased.c: New file.
30641
30642         Tests for module 'unicase/u16-is-cased'.
30643         * modules/unicase/u16-is-cased-tests: New file.
30644         * tests/unicase/test-u16-is-cased.c: New file.
30645
30646         Tests for module 'unicase/u8-is-cased'.
30647         * modules/unicase/u8-is-cased-tests: New file.
30648         * tests/unicase/test-u8-is-cased.c: New file.
30649         * tests/unicase/test-is-cased.h: New file.
30650
30651         New module 'unicase/u32-is-cased'.
30652         * lib/unicase/u32-is-cased.c: New file.
30653         * modules/unicase/u32-is-cased: New file.
30654
30655         New module 'unicase/u16-is-cased'.
30656         * lib/unicase/u16-is-cased.c: New file.
30657         * modules/unicase/u16-is-cased: New file.
30658
30659         New module 'unicase/u8-is-cased'.
30660         * lib/unicase/u8-is-cased.c: New file.
30661         * lib/unicase/u-is-cased.h: New file.
30662         * modules/unicase/u8-is-cased: New file.
30663
30664         Tests for module 'unicase/u32-is-casefolded'.
30665         * modules/unicase/u32-is-casefolded-tests: New file.
30666         * tests/unicase/test-u32-is-casefolded.c: New file.
30667
30668         Tests for module 'unicase/u16-is-casefolded'.
30669         * modules/unicase/u16-is-casefolded-tests: New file.
30670         * tests/unicase/test-u16-is-casefolded.c: New file.
30671
30672         Tests for module 'unicase/u8-is-casefolded'.
30673         * modules/unicase/u8-is-casefolded-tests: New file.
30674         * tests/unicase/test-u8-is-casefolded.c: New file.
30675         * tests/unicase/test-is-casefolded.h: New file.
30676
30677         New module 'unicase/u32-is-casefolded'.
30678         * lib/unicase/u32-is-casefolded.c: New file.
30679         * modules/unicase/u32-is-casefolded: New file.
30680
30681         New module 'unicase/u16-is-casefolded'.
30682         * lib/unicase/u16-is-casefolded.c: New file.
30683         * modules/unicase/u16-is-casefolded: New file.
30684
30685         New module 'unicase/u8-is-casefolded'.
30686         * lib/unicase/u8-is-casefolded.c: New file.
30687         * modules/unicase/u8-is-casefolded: New file.
30688
30689         Tests for module 'unicase/u32-is-titlecase'.
30690         * modules/unicase/u32-is-titlecase-tests: New file.
30691         * tests/unicase/test-u32-is-titlecase.c: New file.
30692
30693         Tests for module 'unicase/u16-is-titlecase'.
30694         * modules/unicase/u16-is-titlecase-tests: New file.
30695         * tests/unicase/test-u16-is-titlecase.c: New file.
30696
30697         Tests for module 'unicase/u8-is-titlecase'.
30698         * modules/unicase/u8-is-titlecase-tests: New file.
30699         * tests/unicase/test-u8-is-titlecase.c: New file.
30700         * tests/unicase/test-is-titlecase.h: New file.
30701
30702         New module 'unicase/u32-is-titlecase'.
30703         * lib/unicase/u32-is-titlecase.c: New file.
30704         * modules/unicase/u32-is-titlecase: New file.
30705
30706         New module 'unicase/u16-is-titlecase'.
30707         * lib/unicase/u16-is-titlecase.c: New file.
30708         * modules/unicase/u16-is-titlecase: New file.
30709
30710         New module 'unicase/u8-is-titlecase'.
30711         * lib/unicase/u8-is-titlecase.c: New file.
30712         * modules/unicase/u8-is-titlecase: New file.
30713
30714         Tests for module 'unicase/u32-is-lowercase'.
30715         * modules/unicase/u32-is-lowercase-tests: New file.
30716         * tests/unicase/test-u32-is-lowercase.c: New file.
30717
30718         Tests for module 'unicase/u16-is-lowercase'.
30719         * modules/unicase/u16-is-lowercase-tests: New file.
30720         * tests/unicase/test-u16-is-lowercase.c: New file.
30721
30722         Tests for module 'unicase/u8-is-lowercase'.
30723         * modules/unicase/u8-is-lowercase-tests: New file.
30724         * tests/unicase/test-u8-is-lowercase.c: New file.
30725         * tests/unicase/test-is-lowercase.h: New file.
30726
30727         New module 'unicase/u32-is-lowercase'.
30728         * lib/unicase/u32-is-lowercase.c: New file.
30729         * modules/unicase/u32-is-lowercase: New file.
30730
30731         New module 'unicase/u16-is-lowercase'.
30732         * lib/unicase/u16-is-lowercase.c: New file.
30733         * modules/unicase/u16-is-lowercase: New file.
30734
30735         New module 'unicase/u8-is-lowercase'.
30736         * lib/unicase/u8-is-lowercase.c: New file.
30737         * modules/unicase/u8-is-lowercase: New file.
30738
30739         Tests for module 'unicase/u32-is-uppercase'.
30740         * modules/unicase/u32-is-uppercase-tests: New file.
30741         * tests/unicase/test-u32-is-uppercase.c: New file.
30742
30743         Tests for module 'unicase/u16-is-uppercase'.
30744         * modules/unicase/u16-is-uppercase-tests: New file.
30745         * tests/unicase/test-u16-is-uppercase.c: New file.
30746
30747         Tests for module 'unicase/u8-is-uppercase'.
30748         * modules/unicase/u8-is-uppercase-tests: New file.
30749         * tests/unicase/test-u8-is-uppercase.c: New file.
30750         * tests/unicase/test-is-uppercase.h: New file.
30751
30752         New module 'unicase/u32-is-uppercase'.
30753         * lib/unicase/u32-is-uppercase.c: New file.
30754         * modules/unicase/u32-is-uppercase: New file.
30755
30756         New module 'unicase/u16-is-uppercase'.
30757         * lib/unicase/u16-is-uppercase.c: New file.
30758         * modules/unicase/u16-is-uppercase: New file.
30759
30760         New module 'unicase/u8-is-uppercase'.
30761         * lib/unicase/u8-is-uppercase.c: New file.
30762         * modules/unicase/u8-is-uppercase: New file.
30763
30764         New module 'unicase/u32-is-invariant'.
30765         * lib/unicase/u32-is-invariant.c: New file.
30766         * modules/unicase/u32-is-invariant: New file.
30767
30768         New module 'unicase/u16-is-invariant'.
30769         * lib/unicase/u16-is-invariant.c: New file.
30770         * modules/unicase/u16-is-invariant: New file.
30771
30772         New module 'unicase/u8-is-invariant'.
30773         * lib/unicase/u8-is-invariant.c: New file.
30774         * lib/unicase/invariant.h: New file.
30775         * lib/unicase/u-is-invariant.h: New file.
30776         * modules/unicase/u8-is-invariant: New file.
30777
30778         Tests for module 'unicase/u32-casecoll'.
30779         * modules/unicase/u32-casecoll-tests: New file.
30780         * tests/unicase/test-u32-casecoll.c: New file.
30781
30782         Tests for module 'unicase/u16-casecoll'.
30783         * modules/unicase/u16-casecoll-tests: New file.
30784         * tests/unicase/test-u16-casecoll.c: New file.
30785
30786         Tests for module 'unicase/u8-casecoll'.
30787         * modules/unicase/u8-casecoll-tests: New file.
30788         * tests/unicase/test-u8-casecoll.c: New file.
30789
30790         New module 'unicase/u32-casecoll'.
30791         * lib/unicase/u32-casecoll.c: New file.
30792         * modules/unicase/u32-casecoll: New file.
30793
30794         New module 'unicase/u16-casecoll'.
30795         * lib/unicase/u16-casecoll.c: New file.
30796         * modules/unicase/u16-casecoll: New file.
30797
30798         New module 'unicase/u8-casecoll'.
30799         * lib/unicase/u8-casecoll.c: New file.
30800         * lib/unicase/u-casecoll.h: New file.
30801         * modules/unicase/u8-casecoll: New file.
30802
30803         New module 'unicase/u32-casexfrm'.
30804         * lib/unicase/u32-casexfrm.c: New file.
30805         * modules/unicase/u32-casexfrm: New file.
30806
30807         New module 'unicase/u16-casexfrm'.
30808         * lib/unicase/u16-casexfrm.c: New file.
30809         * modules/unicase/u16-casexfrm: New file.
30810
30811         New module 'unicase/u8-casexfrm'.
30812         * lib/unicase/u8-casexfrm.c: New file.
30813         * lib/unicase/u-casexfrm.h: New file.
30814         * modules/unicase/u8-casexfrm: New file.
30815
30816         Tests for module 'unicase/u32-casecmp'.
30817         * modules/unicase/u32-casecmp-tests: New file.
30818         * tests/unicase/test-u32-casecmp.c: New file.
30819
30820         Tests for module 'unicase/u16-casecmp'.
30821         * modules/unicase/u16-casecmp-tests: New file.
30822         * tests/unicase/test-u16-casecmp.c: New file.
30823
30824         Tests for module 'unicase/u8-casecmp'.
30825         * modules/unicase/u8-casecmp-tests: New file.
30826         * tests/unicase/test-u8-casecmp.c: New file.
30827         * tests/unicase/test-casecmp.h: New file.
30828
30829         New module 'unicase/u32-casecmp'.
30830         * lib/unicase/u32-casecmp.c: New file.
30831         * modules/unicase/u32-casecmp: New file.
30832
30833         New module 'unicase/u16-casecmp'.
30834         * lib/unicase/u16-casecmp.c: New file.
30835         * modules/unicase/u16-casecmp: New file.
30836
30837         New module 'unicase/u8-casecmp'.
30838         * lib/unicase/u8-casecmp.c: New file.
30839         * lib/unicase/u-casecmp.h: New file.
30840         * modules/unicase/u8-casecmp: New file.
30841
30842         Tests for module 'unicase/u32-casefold'.
30843         * modules/unicase/u32-casefold-tests: New file.
30844         * tests/unicase/test-u32-casefold.c: New file.
30845
30846         Tests for module 'unicase/u16-casefold'.
30847         * modules/unicase/u16-casefold-tests: New file.
30848         * tests/unicase/test-u16-casefold.c: New file.
30849
30850         Tests for module 'unicase/u8-casefold'.
30851         * modules/unicase/u8-casefold-tests: New file.
30852         * tests/unicase/test-u8-casefold.c: New file.
30853
30854         New module 'unicase/u32-casefold'.
30855         * lib/unicase/u32-casefold.c: New file.
30856         * modules/unicase/u32-casefold: New file.
30857
30858         New module 'unicase/u16-casefold'.
30859         * lib/unicase/u16-casefold.c: New file.
30860         * modules/unicase/u16-casefold: New file.
30861
30862         New module 'unicase/u8-casefold'.
30863         * lib/unicase/u8-casefold.c: New file.
30864         * lib/unicase/u-casefold.h: New file.
30865         * modules/unicase/u8-casefold: New file.
30866
30867         New module 'unicase/tocasefold'.
30868         * lib/unicase/casefold.h: New file.
30869         * lib/unicase/tocasefold.c: New file.
30870         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30871         * modules/unicase/tocasefold: New file.
30872
30873         Tests for module 'unicase/u32-totitle'.
30874         * modules/unicase/u32-totitle-tests: New file.
30875         * tests/unicase/test-u32-totitle.c: New file.
30876
30877         Tests for module 'unicase/u16-totitle'.
30878         * modules/unicase/u16-totitle-tests: New file.
30879         * tests/unicase/test-u16-totitle.c: New file.
30880
30881         Tests for module 'unicase/u8-totitle'.
30882         * modules/unicase/u8-totitle-tests: New file.
30883         * tests/unicase/test-u8-totitle.c: New file.
30884
30885         New module 'unicase/u32-totitle'.
30886         * lib/unicase/u32-totitle.c: New file.
30887         * modules/unicase/u32-totitle: New file.
30888
30889         New module 'unicase/u16-totitle'.
30890         * lib/unicase/u16-totitle.c: New file.
30891         * modules/unicase/u16-totitle: New file.
30892
30893         New module 'unicase/u8-totitle'.
30894         * lib/unicase/u8-totitle.c: New file.
30895         * lib/unicase/u-totitle.h: New file.
30896         * modules/unicase/u8-totitle: New file.
30897
30898         Tests for module 'unicase/u32-tolower'.
30899         * modules/unicase/u32-tolower-tests: New file.
30900         * tests/unicase/test-u32-tolower.c: New file.
30901
30902         Tests for module 'unicase/u16-tolower'.
30903         * modules/unicase/u16-tolower-tests: New file.
30904         * tests/unicase/test-u16-tolower.c: New file.
30905
30906         Tests for module 'unicase/u8-tolower'.
30907         * modules/unicase/u8-tolower-tests: New file.
30908         * tests/unicase/test-u8-tolower.c: New file.
30909
30910         New module 'unicase/u32-tolower'.
30911         * lib/unicase/u32-tolower.c: New file.
30912         * modules/unicase/u32-tolower: New file.
30913
30914         New module 'unicase/u16-tolower'.
30915         * lib/unicase/u16-tolower.c: New file.
30916         * modules/unicase/u16-tolower: New file.
30917
30918         New module 'unicase/u8-tolower'.
30919         * lib/unicase/u8-tolower.c: New file.
30920         * modules/unicase/u8-tolower: New file.
30921
30922         Tests for module 'unicase/u32-toupper'.
30923         * modules/unicase/u32-toupper-tests: New file.
30924         * tests/unicase/test-u32-toupper.c: New file.
30925
30926         Tests for module 'unicase/u16-toupper'.
30927         * modules/unicase/u16-toupper-tests: New file.
30928         * tests/unicase/test-u16-toupper.c: New file.
30929
30930         Tests for module 'unicase/u8-toupper'.
30931         * modules/unicase/u8-toupper-tests: New file.
30932         * tests/unicase/test-u8-toupper.c: New file.
30933
30934         New module 'unicase/u32-toupper'.
30935         * lib/unicase/u32-toupper.c: New file.
30936         * modules/unicase/u32-toupper: New file.
30937
30938         New module 'unicase/u16-toupper'.
30939         * lib/unicase/u16-toupper.c: New file.
30940         * modules/unicase/u16-toupper: New file.
30941
30942         New module 'unicase/u8-toupper'.
30943         * lib/unicase/u8-toupper.c: New file.
30944         * modules/unicase/u8-toupper: New file.
30945
30946         New module 'unicase/u32-casemap'.
30947         * lib/unicase/u32-casemap.c: New file.
30948         * modules/unicase/u32-casemap: New file.
30949
30950         New module 'unicase/u16-casemap'.
30951         * lib/unicase/u16-casemap.c: New file.
30952         * modules/unicase/u16-casemap: New file.
30953
30954         New module 'unicase/u8-casemap'.
30955         * lib/unicase/unicasemap.h: New file.
30956         * lib/unicase/u8-casemap.c: New file.
30957         * lib/unicase/u-casemap.h: New file.
30958         * modules/unicase/u8-casemap: New file.
30959
30960         New module 'unicase/special-casing'.
30961         * lib/unicase/special-casing.h: New file.
30962         * lib/unicase/special-casing.c: New file.
30963         * lib/unicase/special-casing-table.gperf: New file, generated by
30964         gen-uni-tables.c.
30965         * modules/unicase/special-casing: New file.
30966
30967         Tests for module 'unicase/locale-language'.
30968         * modules/unicase/locale-language-tests: New file.
30969         * tests/unicase/test-locale-language.sh: New file.
30970         * tests/unicase/test-locale-language.c: New file.
30971
30972         New module 'unicase/locale-language'.
30973         * lib/unicase/locale-language.c: New file.
30974         * lib/unicase/locale-languages.gperf: New file.
30975         * modules/unicase/locale-language: New file.
30976
30977         Generate more tables for case conversion and case folding.
30978         * lib/gen-uni-tables.c (SCC_*): New enum items.
30979         (struct special_casing_rule): New type.
30980         (casing_rules, num_casing_rules, allocated_casing_rules): New
30981         variables.
30982         (add_casing_rule, fill_casing_rules): New functions.
30983         (struct casefold_rule): New type.
30984         (casefolding_rules, num_casefolding_rules,
30985         allocated_casefolding_rules): New variables.
30986         (fill_casefolding_rules): New function.
30987         (unicode_casefold): New variable.
30988         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30989         sort_casing_rules, output_casing_rules): New functions.
30990         (main): Accept to more arguments: SpecialCasing.txt and
30991         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30992         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30993         Output mapping for casefolding.
30994
30995         * lib/unicase.h: Include stdbool.h, uninorm.h.
30996         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30997         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30998         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30999         arguments.
31000         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31001         resultp arguments.
31002         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31003         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31004         resultp arguments.
31005         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31006         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31007         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31008         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31009         declarations.
31010         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31011
31012 2009-03-08  Bruno Haible  <bruno@clisp.org>
31013
31014         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31015         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31016         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31017         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31018
31019 2009-03-07  Bruno Haible  <bruno@clisp.org>
31020
31021         Adjust u*_normcmp, u*_normcoll API.
31022         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31023         u16_normcoll, u32_normcoll): Change failure conventions.
31024         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31025         errno and return -1.
31026         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31027
31028 2009-03-07  Bruno Haible  <bruno@clisp.org>
31029
31030         Tests for module 'uninorm/u32-normcoll'.
31031         * modules/uninorm/u32-normcoll-tests: New file.
31032         * tests/uninorm/test-u32-normcoll.c: New file.
31033
31034         Tests for module 'uninorm/u16-normcoll'.
31035         * modules/uninorm/u16-normcoll-tests: New file.
31036         * tests/uninorm/test-u16-normcoll.c: New file.
31037
31038         Tests for module 'uninorm/u8-normcoll'.
31039         * modules/uninorm/u8-normcoll-tests: New file.
31040         * tests/uninorm/test-u8-normcoll.c: New file.
31041
31042 2009-03-07  Bruno Haible  <bruno@clisp.org>
31043
31044         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31045         tests/uninorm/test-u32-normcmp.c.
31046         * tests/uninorm/test-u32-normcmp.c: Include it.
31047         (test_nonascii): New function, extracted from main. Add some more
31048         tests.
31049         (main): Invoke test_ascii and test_nonascii.
31050         * modules/uninorm/u32-normcmp-tests (Files): Add
31051         tests/uninorm/test-u32-normcmp.h.
31052         (Depends-on): Remove uninorm/u32-normcmp.
31053
31054         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31055         tests/uninorm/test-u16-normcmp.c.
31056         * tests/uninorm/test-u16-normcmp.c: Include it.
31057         (test_nonascii): New function, extracted from main. Add some more
31058         tests.
31059         (main): Invoke test_ascii and test_nonascii.
31060         * modules/uninorm/u16-normcmp-tests (Files): Add
31061         tests/uninorm/test-u16-normcmp.h.
31062         (Depends-on): Remove uninorm/u16-normcmp.
31063
31064         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31065         tests/uninorm/test-u8-normcmp.c.
31066         * tests/uninorm/test-u8-normcmp.c: Include it.
31067         (test_nonascii): New function, extracted from main. Add some more
31068         tests.
31069         (main): Invoke test_ascii and test_nonascii.
31070         * modules/uninorm/u8-normcmp-tests (Files): Add
31071         tests/uninorm/test-u8-normcmp.h.
31072         (Depends-on): Remove uninorm/u8-normcmp.
31073
31074 2009-03-07  Bruno Haible  <bruno@clisp.org>
31075
31076         New module 'uninorm/u32-normcoll'.
31077         * lib/uninorm/u32-normcoll.c: New file.
31078         * modules/uninorm/u32-normcoll: New file.
31079
31080         New module 'uninorm/u16-normcoll'.
31081         * lib/uninorm/u16-normcoll.c: New file.
31082         * modules/uninorm/u16-normcoll: New file.
31083
31084         New module 'uninorm/u8-normcoll'.
31085         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31086         declarations.
31087         * lib/uninorm/u8-normcoll.c: New file.
31088         * lib/uninorm/u-normcoll.h: New file.
31089         * modules/uninorm/u8-normcoll: New file.
31090
31091         New module 'uninorm/u32-normxfrm'.
31092         * lib/uninorm/u32-normxfrm.c: New file.
31093         * modules/uninorm/u32-normxfrm: New file.
31094
31095         New module 'uninorm/u16-normxfrm'.
31096         * lib/uninorm/u16-normxfrm.c: New file.
31097         * modules/uninorm/u16-normxfrm: New file.
31098
31099         New module 'uninorm/u8-normxfrm'.
31100         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31101         declarations.
31102         * lib/uninorm/u8-normxfrm.c: New file.
31103         * lib/uninorm/u-normxfrm.h: New file.
31104         * modules/uninorm/u8-normxfrm: New file.
31105
31106 2009-03-07  Bruno Haible  <bruno@clisp.org>
31107
31108         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31109         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31110         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31111
31112 2009-03-07  Bruno Haible  <bruno@clisp.org>
31113
31114         New module 'memxfrm'.
31115         * lib/memxfrm.h: New file.
31116         * lib/memxfrm.c: New file.
31117         * modules/memxfrm: New file.
31118
31119 2009-03-07  Bruno Haible  <bruno@clisp.org>
31120
31121         New module 'memcmp2'.
31122         * lib/memcmp2.h: New file.
31123         * lib/memcmp2.c: New file.
31124         * modules/memcmp2: New file.
31125
31126 2009-03-07  Bruno Haible  <bruno@clisp.org>
31127
31128         Tests for module 'uninorm/decomposing-form'.
31129         * modules/uninorm/decomposing-form-tests: New file.
31130         * tests/uninorm/test-decomposing-form.c: New file.
31131
31132         New module 'uninorm/decomposing-form'.
31133         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31134         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31135         Add 'decomposing_variant' field.
31136         * lib/uninorm/decomposing-form.c: New file.
31137         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31138         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31139         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31140         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31141         * modules/uninorm/decomposing-form: New file.
31142         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31143         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31144
31145 2009-03-07  Bruno Haible  <bruno@clisp.org>
31146
31147         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31148         strings.
31149
31150 2009-03-06  Bruno Haible  <bruno@clisp.org>
31151
31152         Tests for module 'uninorm/u32-normcmp'.
31153         * tests/uninorm/test-u32-normcmp.c: New file.
31154         * modules/uninorm/u32-normcmp-tests: New file.
31155
31156         Tests for module 'uninorm/u16-normcmp'.
31157         * tests/uninorm/test-u16-normcmp.c: New file.
31158         * modules/uninorm/u16-normcmp-tests: New file.
31159
31160         Tests for module 'uninorm/u8-normcmp'.
31161         * tests/uninorm/test-u8-normcmp.c: New file.
31162         * modules/uninorm/u8-normcmp-tests: New file.
31163
31164         New module 'uninorm/u32-normcmp'.
31165         * lib/uninorm/u32-normcmp.c: New file.
31166         * modules/uninorm/u32-normcmp: New file.
31167
31168         New module 'uninorm/u16-normcmp'.
31169         * lib/uninorm/u16-normcmp.c: New file.
31170         * modules/uninorm/u16-normcmp: New file.
31171
31172         New module 'uninorm/u8-normcmp'.
31173         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31174         declarations.
31175         * lib/uninorm/u8-normcmp.c: New file.
31176         * lib/uninorm/u-normcmp.h: New file.
31177         * modules/uninorm/u8-normcmp: New file.
31178
31179 2009-03-06  Bruno Haible  <bruno@clisp.org>
31180
31181         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31182         Reported by Eric Blake.
31183
31184 2009-03-06  Eric Blake  <ebb9@byu.net>
31185             Bruno Haible  <bruno@clisp.org>
31186
31187         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31188         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31189         condition.
31190         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31191         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31192         condition.
31193         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31194
31195 2009-03-06  Eric Blake  <ebb9@byu.net>
31196
31197         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31198         to avoid compiler warnings.
31199         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31200
31201 2009-03-05  Bruno Haible  <bruno@clisp.org>
31202
31203         * tests/test-ftell.c (main): Disable test beyond end of file on
31204         FreeMiNT.
31205         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31206
31207 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31208
31209         * lib/filevercmp.c: Move hidden files up in ordering.
31210         * tests/test-filevercmp.c: Add tests for hidden files.
31211
31212 2009-03-04  Bruno Haible  <bruno@clisp.org>
31213
31214         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31215         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31216         AM_CFLAGS.
31217         Reported by Simon Josefsson.
31218
31219 2009-03-03  Bruno Haible  <bruno@clisp.org>
31220
31221         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31222         Reported by Simon Josefsson.
31223
31224         * doc/ld-version-script.texi: Update node reference.
31225
31226 2009-03-03  Bruno Haible  <bruno@clisp.org>
31227
31228         * modules/visibility (License): Change to 'unlimited'.
31229         Suggested by Simon Josefsson.
31230
31231 2009-03-03  Jim Meyering  <meyering@redhat.com>
31232
31233         unlinkdir: cannot_unlink_dir may modify process state
31234         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31235         it's neither thread-safe nor appropriate for use in a library.
31236
31237 2009-03-03  Eric Blake  <ebb9@byu.net>
31238
31239         test-closein: silence test under Darwin
31240         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31241         care if it dies from EPIPE or EBADF.
31242
31243 2009-03-03  Bruno Haible  <bruno@clisp.org>
31244
31245         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31246         earlier.
31247         * doc/visibility.texi: Fix @node and @section.
31248
31249 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31250
31251         * doc/gnulib.texi: Link to sections for ld version script and
31252         visibility.
31253         * doc/visibility.texi: Add @node and @section.
31254         * modules/ld-version-script: New module.
31255         * m4/ld-version-script.m4: New file.
31256         * doc/ld-version-script.texi: New file.
31257
31258 2009-03-02  David Lutterkort  <lutter@redhat.com>
31259
31260         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31262
31263 2009-03-02  Bruno Haible  <bruno@clisp.org>
31264
31265         * doc/visibility.texi: Mention libtool's -export-symbols option.
31266
31267 2009-03-02  Jim Meyering  <meyering@redhat.com>
31268
31269         announce-gen: new option: --no-print-checksums
31270         * build-aux/announce-gen (usage): Describe it.
31271         (print_checksums): Print a newline here, not in the [*] footnote.
31272         (main): Honor it.
31273
31274 2009-03-01  Bruno Haible  <bruno@clisp.org>
31275
31276         Use socklen_t in the native Windows replacements prototypes.
31277         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31278         instead of 'int'.
31279         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31280         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31281         * modules/getsockopt (Depends-on): Add socklen.
31282         * modules/setsockopt (Depends-on): Add socklen.
31283
31284 2009-03-01  Bruno Haible  <bruno@clisp.org>
31285
31286         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31287         least 4.2.
31288
31289 2009-03-01  Eric Blake  <ebb9@byu.net>
31290             Bruno Haible  <bruno@clisp.org>
31291
31292         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31293         error messages.
31294         * lib/wait-process.c (wait_subprocess): Omit error message about
31295         deadly signal sent to the child of termsigp != NULL.
31296
31297 2009-03-01  Eric Blake  <ebb9@byu.net>
31298
31299         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31300
31301 2009-03-01  Bruno Haible  <bruno@clisp.org>
31302
31303         Avoid a gcc warning.
31304         * tests/test-sched.c (b): Make global.
31305         Reported by Eric Blake.
31306
31307 2009-01-19  Martin Lambers  <marlam@marlam.de>
31308
31309         Provide POSIX semantics for socket timeout options on W32.
31310         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31311         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31312         * modules/setsockopt: Depend on sys_time module for struct timeval.
31313         * modules/getsockopt: Depend on sys_time module for struct timeval.
31314
31315 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31316
31317         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31318         __USE_GNU, for consistency with netdb.in.h.
31319         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31320
31321 2009-03-01  Bruno Haible  <bruno@clisp.org>
31322
31323         More support for FreeMiNT.
31324         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31325         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31326
31327 2009-03-01  Bruno Haible  <bruno@clisp.org>
31328
31329         More support for FreeMiNT.
31330         * lib/fpurge.c (fpurge): Correct last commit.
31331         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31332
31333 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31334
31335         Fix unportable awk script in vc-list-files.
31336         * build-aux/vc-list-files: In the replacement awk script, use
31337         substr with a second argument of 1, not zero.
31338         Report by Simon Josefsson.
31339
31340 2009-02-28  Bruno Haible  <bruno@clisp.org>
31341
31342         More support for FreeMiNT.
31343         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31344         to FreeMiNT today.
31345         * lib/fwriting.c (fwriting): Likewise.
31346         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31347
31348 2009-02-28  Bruno Haible  <bruno@clisp.org>
31349
31350         * tests/test-freadseek.c (main): Disable test beyond end of file on
31351         FreeMiNT.
31352         * tests/test-ftello.c (main): Likewise.
31353         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31354
31355 2009-02-28  Bruno Haible  <bruno@clisp.org>
31356
31357         Add tentative support for FreeMiNT.
31358         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31359         * lib/fpurge.c (fpurge): Likewise.
31360         * lib/freadable.c (freadable): Likewise.
31361         * lib/freading.c (freading): Likewise.
31362         * lib/freadptr.c (freadptr): Likewise.
31363         * lib/freadseek.c (freadptrinc): Likewise.
31364         * lib/fseeko.c (rpl_fseeko): Likewise.
31365         * lib/fseterr.c (fseterr): Likewise.
31366         * lib/fwritable.c (fwritable): Likewise.
31367         * lib/fwriting.c (fwriting): Likewise.
31368         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31369         Hourihane.
31370         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31371
31372 2009-02-28  Bruno Haible  <bruno@clisp.org>
31373
31374         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31375         SIGCHLD.
31376         Reported by Jim Meyering.
31377
31378 2009-02-28  Bruno Haible  <bruno@clisp.org>
31379
31380         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31381         Mention the results of these tests on various platforms.
31382         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31383         order.
31384         * doc/posix-functions/printf.texi: Likewise.
31385         * doc/posix-functions/snprintf.texi: Likewise.
31386         * doc/posix-functions/sprintf.texi: Likewise.
31387         * doc/posix-functions/vfprintf.texi: Likewise.
31388         * doc/posix-functions/vprintf.texi: Likewise.
31389         * doc/posix-functions/vsnprintf.texi: Likewise.
31390         * doc/posix-functions/vsprintf.texi: Likewise.
31391         * doc/glibc-functions/obstack_printf.texi: Likewise.
31392         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31393
31394 2009-02-28  Bruno Haible  <bruno@clisp.org>
31395
31396         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31397         Reported by Loïc Minier <lool@dooz.org>.
31398
31399 2009-02-27  Bruno Haible  <bruno@clisp.org>
31400
31401         * gnulib-tool (func_import): Make the sed expression used to create the
31402         sed script for updating the .gitignore file POSIX compliant.
31403         Reported by Eric Blake.
31404
31405 2009-02-27  Bruno Haible  <bruno@clisp.org>
31406
31407         * gnulib-tool (sed): Don't alias as "sed --posix".
31408         Reported by Eric Blake.
31409
31410 2009-02-27  Bruno Haible  <bruno@clisp.org>
31411
31412         Avoid test link errors.
31413         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31414         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31415         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31416         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31418
31419 2009-02-27  Bruno Haible  <bruno@clisp.org>
31420
31421         Avoid spurious "(cached)" in configure output.
31422         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31423         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31424         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31425         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31426         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31427         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31428         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31429         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31430         Reported by Eric Blake.
31431
31432 2009-02-27  Eric Blake  <ebb9@byu.net>
31433
31434         printf: fix regression in previous patch
31435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31436
31437 2009-02-27  Bruno Haible  <bruno@clisp.org>
31438
31439         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31440         value.
31441         * lib/stdint.in.h: Likewise.
31442         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31443
31444 2009-02-27  Eric Blake  <ebb9@byu.net>
31445
31446         doc: mention more functions added in cygwin 1.7.0
31447         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31448         addition.
31449         * doc/posix-functions/open_wmemstream.texi: Likewise.
31450         * doc/posix-functions/wcsnlen.texi: Likewise.
31451         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31452         * doc/posix-functions/wcstod.texi: Likewise.
31453         * doc/posix-functions/wcstof.texi: Likewise.
31454         * doc/posix-functions/wcstoimax.texi: Likewise.
31455         * doc/posix-functions/wcstok.texi: Likewise.
31456         * doc/posix-functions/wcstoumax.texi: Likewise.
31457
31458         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31459         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
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
31471 2009-02-26  Eric Blake  <ebb9@byu.net>
31472
31473         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31474         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31475         compilation bug by using runtime conversion.
31476         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31477         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31478         * modules/ceill-tests (Files): Use nan.h.
31479         * modules/floorl-tests (Files): Likewise.
31480         * modules/frexpl-tests (Files): Likewise.
31481         * modules/isnanl-tests (Files): Likewise.
31482         * modules/ldexpl-tests (Files): Likewise.
31483         * modules/roundl-tests (Files): Likewise.
31484         * modules/truncl-tests (Files): Likewise.
31485         * tests/test-ceill.c (main): Use a working NaN.
31486         * tests/test-floorl.c (main): Likewise.
31487         * tests/test-frexpl.c (main): Likewise.
31488         * tests/test-isnan.c (test_long_double): Likewise.
31489         * tests/test-isnanl.h (main): Likewise.
31490         * tests/test-ldexpl.h (main): Likewise.
31491         * tests/test-roundl.h (main): Likewise.
31492         * tests/test-truncl.h (main): Likewise.
31493         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31494
31495 2009-02-26  Eric Blake  <ebb9@byu.net>
31496             Bruno Haible  <bruno@clisp.org>
31497
31498         Work around a *printf bug with %ls on Solaris.
31499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31500         precision is specified, sprintf stops converting the wide string
31501         argument when the number of bytes that have been produced by this
31502         conversion equals or exceeds the precision.
31503         * doc/posix-functions/fprintf.texi: Update.
31504         * doc/posix-functions/printf.texi: Update.
31505         * doc/posix-functions/snprintf.texi: Update.
31506         * doc/posix-functions/sprintf.texi: Update.
31507         * doc/posix-functions/vfprintf.texi: Update.
31508         * doc/posix-functions/vprintf.texi: Update.
31509         * doc/posix-functions/vsnprintf.texi: Update.
31510         * doc/posix-functions/vsprintf.texi: Update.
31511         * doc/glibc-functions/obstack_printf.texi: Update.
31512         * doc/glibc-functions/obstack_vprintf.texi: Update.
31513
31514 2009-02-26  Eric Blake  <ebb9@byu.net>
31515
31516         stdlib: favor compiler check of random.h
31517         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31518         to avoid an ObjC random.h installed by Swarm.
31519
31520 2009-02-26  Bruno Haible  <bruno@clisp.org>
31521
31522         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31523         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31524         Reported by Gary V. Vaughan <gary@gnu.org>.
31525
31526 2009-02-26  Bruno Haible  <bruno@clisp.org>
31527
31528         Fix *printf behaviour regarding the %ls directive.
31529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31530         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31531         NEED_PRINTF_DIRECTIVE_LS.
31532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31533         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31534         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31535         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31536         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31537         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31538         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31540         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31541         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31542         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31543         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31547         * doc/posix-functions/fprintf.texi: Update.
31548         * doc/posix-functions/printf.texi: Update.
31549         * doc/posix-functions/snprintf.texi: Update.
31550         * doc/posix-functions/sprintf.texi: Update.
31551         * doc/posix-functions/vfprintf.texi: Update.
31552         * doc/posix-functions/vprintf.texi: Update.
31553         * doc/posix-functions/vsnprintf.texi: Update.
31554         * doc/posix-functions/vsprintf.texi: Update.
31555         * doc/glibc-functions/obstack_printf.texi: Update.
31556         * doc/glibc-functions/obstack_vprintf.texi: Update.
31557         Reported by Eric Blake.
31558
31559 2009-02-25  Bruno Haible  <bruno@clisp.org>
31560
31561         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31562         with known value.
31563         Reported by Gary V. Vaughan <gary@gnu.org>.
31564
31565 2009-02-25  Bruno Haible  <bruno@clisp.org>
31566
31567         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31568         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31569         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31570         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31571         Reported by Gary V. Vaughan <gary@gnu.org>.
31572
31573 2009-02-25  Bruno Haible  <bruno@clisp.org>
31574
31575         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31576         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31577         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31578         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31579         Reported by Gary V. Vaughan <gary@gnu.org>.
31580
31581 2009-02-25  Eric Blake  <ebb9@byu.net>
31582
31583         tests: skip fseek/ftell tests if ungetc is broken
31584         * m4/ungetc.m4: New file.
31585         * modules/fseek-tests: Split test, so ungetc dependency is
31586         separate from rest of test.
31587         * modules/fseeko-tests: Likewise.
31588         * modules/ftell-tests: Likewise.
31589         * modules/ftello-tests: Likewise.
31590         * tests/test-fseek.c (main): Isolate ungetc dependency.
31591         * tests/test-fseeko.c (main): Likewise.
31592         * tests/test-ftell.c (main): Likewise.
31593         * tests/test-ftello.c (main): Likewise.
31594         * tests/test-fseek2.sh: New file.
31595         * tests/test-fseeko2.sh: Likewise.
31596         * tests/test-ftell2.sh: Likewise.
31597         * tests/test-ftello2.sh: Likewise.
31598
31599 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31600
31601         test-getaddrinfo: fix usage of skip return code 77
31602         * tests/test-gettaddrinfo.c: Return skip code 77 only
31603         for first occurance of skip (4x77 is not 77)
31604
31605 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31606
31607         strtod: avoid C99 decl-after-statement
31608         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31609
31610 2009-02-24  Eric Blake  <ebb9@byu.net>
31611
31612         strtod: detect HP-UX 11.31 bug
31613         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31614         Reported by Gary V. Vaughan.
31615
31616 2009-02-23  Bruno Haible  <bruno@clisp.org>
31617
31618         Fix invalid read past end of memory block.
31619         * lib/vasnprintf.c (DCHAR_SET): Define.
31620         (local_wcslen): Define only when needed.
31621         (local_strnlen, local_wcsnlen): New functions.
31622         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31623         directives that involve a conversion ourselves.
31624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31625         wcsnlen, mbrtowc, wcrtomb.
31626         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31627         * tests/test-vasprintf-posix.c (test_function): Likewise.
31628         * tests/test-snprintf-posix.h (test_function): Likewise.
31629         * tests/test-sprintf-posix.h (test_function): Likewise.
31630         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31631
31632 2009-02-22  Bruno Haible  <bruno@clisp.org>
31633
31634         Implement new clarified decomposition of Hangul syllables.
31635         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31636         of type LTV, return only a pairwise decomposition.
31637         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31638         Likewise.
31639         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31640         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31641         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31642
31643 2009-02-22  Bruno Haible  <bruno@clisp.org>
31644
31645         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31646         zero-length results and shrink excess allocated memory.
31647         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31648         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31649         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31650         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31651         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31652         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31653         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31654         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31655         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31656         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31657         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31658         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31659
31660 2009-02-21  Bruno Haible  <bruno@clisp.org>
31661
31662         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31663         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31664         spaces after a period. Put a space between a macro name and its
31665         argument list. Trivial rewordings.
31666         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31667         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31668         (main): Return 0 explicitly.
31669
31670 2009-02-21  Bruno Haible  <bruno@clisp.org>
31671
31672         Tests for module 'uninorm/filter'.
31673         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31674         * modules/uninorm/filter-tests: New file.
31675
31676         New module 'uninorm/filter'.
31677         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31678         uninorm_filter_flush, uninorm_filter_free): New declarations.
31679         * lib/uninorm/uninorm-filter.c: New file.
31680         * modules/uninorm/filter: New file.
31681
31682 2009-02-21  Bruno Haible  <bruno@clisp.org>
31683
31684         Tests for module 'uninorm/nfkc'.
31685         * tests/uninorm/test-nfkc.c: New file.
31686         * tests/uninorm/test-u8-nfkc.c: New file.
31687         * tests/uninorm/test-u16-nfkc.c: New file.
31688         * tests/uninorm/test-u32-nfkc.c: New file.
31689         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31690         * tests/uninorm/test-u32-nfkc-big.c: New file.
31691         * modules/uninorm/nfkc-tests: New file.
31692
31693         New module 'uninorm/nfkc'.
31694         * lib/uninorm/nfkc.c: New file.
31695         * modules/uninorm/nfkc: New file.
31696
31697         Tests for module 'uninorm/nfkd'.
31698         * tests/uninorm/test-nfkd.c: New file.
31699         * tests/uninorm/test-u8-nfkd.c: New file.
31700         * tests/uninorm/test-u16-nfkd.c: New file.
31701         * tests/uninorm/test-u32-nfkd.c: New file.
31702         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31703         * tests/uninorm/test-u32-nfkd-big.c: New file.
31704         * modules/uninorm/nfkd-tests: New file.
31705
31706         New module 'uninorm/nfkd'.
31707         * lib/uninorm/nfkd.c: New file.
31708         * modules/uninorm/nfkd: New file.
31709
31710         Tests for module 'uninorm/nfc'.
31711         * tests/uninorm/test-nfc.c: New file.
31712         * tests/uninorm/test-u8-nfc.c: New file.
31713         * tests/uninorm/test-u16-nfc.c: New file.
31714         * tests/uninorm/test-u32-nfc.c: New file.
31715         * tests/uninorm/test-u32-nfc-big.sh: New file.
31716         * tests/uninorm/test-u32-nfc-big.c: New file.
31717         * modules/uninorm/nfc-tests: New file.
31718
31719         New module 'uninorm/nfc'.
31720         * lib/uninorm/nfc.c: New file.
31721         * modules/uninorm/nfc: New file.
31722
31723         Tests for module 'uninorm/nfd'.
31724         * tests/uninorm/test-nfd.c: New file.
31725         * tests/uninorm/test-u8-nfd.c: New file.
31726         * tests/uninorm/test-u16-nfd.c: New file.
31727         * tests/uninorm/test-u32-nfd.c: New file.
31728         * tests/uninorm/test-u32-nfd-big.sh: New file.
31729         * tests/uninorm/test-u32-nfd-big.c: New file.
31730         * tests/uninorm/test-u32-normalize-big.h: New file.
31731         * tests/uninorm/test-u32-normalize-big.c: New file.
31732         * tests/uninorm/NormalizationTest.txt: New file, created from
31733         Unicode 5.1.0 NormalizationTest.txt.
31734         * modules/uninorm/nfd-tests: New file.
31735
31736         New module 'uninorm/nfd'.
31737         * lib/uninorm/nfd.c: New file.
31738         * modules/uninorm/nfd: New file.
31739
31740         New module 'uninorm/u32-normalize'.
31741         * lib/uninorm/u32-normalize.c: New file.
31742         * modules/uninorm/u32-normalize: New file.
31743
31744         New module 'uninorm/u16-normalize'.
31745         * lib/uninorm/u16-normalize.c: New file.
31746         * modules/uninorm/u16-normalize: New file.
31747
31748         New module 'uninorm/u8-normalize'.
31749         * lib/uninorm/u8-normalize.c: New file.
31750         * lib/uninorm/normalize-internal.h: New file.
31751         * lib/uninorm/u-normalize-internal.h: New file.
31752         * modules/uninorm/u8-normalize: New file.
31753
31754         New module 'uninorm/decompose-internal'.
31755         * lib/uninorm/decompose-internal.c: New file.
31756         * modules/uninorm/decompose-internal: New file.
31757
31758         Tests for module 'uninorm/composition'.
31759         * tests/uninorm/test-composition.c: New file.
31760         * modules/uninorm/composition-tests: New file.
31761
31762         New module 'uninorm/composition'.
31763         * lib/uninorm/composition.c: New file.
31764         * lib/uninorm/composition-table.gperf: New file, generated by
31765         gen-uni-tables.
31766         * modules/uninorm/composition: New file.
31767
31768         Tests for module 'uninorm/compat-decomposition'.
31769         * tests/uninorm/test-compat-decomposition.c: New file.
31770         * modules/uninorm/compat-decomposition-tests: New file.
31771
31772         New module 'uninorm/compat-decomposition'.
31773         * lib/uninorm/decompose-internal.h: New file.
31774         * lib/uninorm/compat-decomposition.c: New file.
31775         * modules/uninorm/compat-decomposition: New file.
31776
31777         Tests for module 'uninorm/canonical-decomposition'.
31778         * tests/uninorm/test-canonical-decomposition.c: New file.
31779         * modules/uninorm/canonical-decomposition-tests: New file.
31780
31781         New module 'uninorm/canonical-decomposition'.
31782         * lib/uninorm/canonical-decomposition.c: New file.
31783         * modules/uninorm/canonical-decomposition: New file.
31784
31785         Tests for module 'uninorm/decomposition'.
31786         * tests/uninorm/test-decomposition.c: New file.
31787         * modules/uninorm/decomposition-tests: New file.
31788
31789         New module 'uninorm/decomposition'.
31790         * lib/uninorm/decomposition.c: New file.
31791         * modules/uninorm/decomposition: New file.
31792
31793         New module 'uninorm/decomposition-table'.
31794         * lib/uninorm/decomposition-table.h: New file.
31795         * lib/uninorm/decomposition-table.c: New file.
31796         * lib/uninorm/decomposition-table1.h: New file, generated by
31797         gen-uni-tables.
31798         * lib/uninorm/decomposition-table2.h: New file, generated by
31799         gen-uni-tables.
31800         * modules/uninorm/decomposition-table: New file.
31801
31802         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31803         (UC_DECOMP_*): New enumeration items.
31804         (get_decomposition): New function.
31805         (struct decomp_table): New type.
31806         (output_decomposition, output_decomposition_tables): New functions.
31807         (unicode_composition_exclusions): New variable.
31808         (fill_composition_exclusions, debug_output_composition_tables): New
31809         functions.
31810         (main): Accept one more argument. Invoke fill_composition_exclusions.
31811         Output decomposition and composition tables.
31812
31813         New module 'uninorm/base'.
31814         * lib/uninorm.h: New file.
31815         * lib/unictype.h: Update comment.
31816         * modules/uninorm/base: New file.
31817
31818 2009-02-21  David Lutterkort  <lutter@redhat.com>
31819
31820         Tests for module 'safe-alloc'.
31821         * tests/test-safe-alloc.c: New file.
31822         * modules/safe-alloc-tests: New file.
31823
31824         New module 'safe-alloc'.
31825         * lib/safe-alloc.h: New file.
31826         * lib/safe-alloc.c: New file.
31827         * m4/safe-alloc.m4: New file.
31828         * modules/safe-alloc: New file.
31829         * doc/safe-alloc.texi: New file.
31830         * doc/gnulib.texi: Include it.
31831         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31832         safe-alloc.
31833
31834 2009-02-18  Bruno Haible  <bruno@clisp.org>
31835
31836         Fix link error on non-glibc systems.
31837         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31838         variable.
31839         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31840
31841 2009-02-18  Jim Meyering  <meyering@redhat.com>
31842
31843         fts: avoid used-uninitialized error due to recent change
31844         * lib/fts.c (fts_read): Guard uses of the new member,
31845         parent->fts_n_dirs_remaining, since it's not relevant for
31846         the parent of a directory specified on the command-line.
31847
31848 2009-02-17  James Youngman  <jay@gnu.org>
31849             Bruno Haible  <bruno@clisp.org>
31850
31851         * m4/include_next.m4: Reformulate comment.
31852
31853 2009-02-16  Jim Meyering  <meyering@redhat.com>
31854
31855         fts: add #if guards so that the fts_lgpl module still builds
31856         * lib/fts.c: Guard just-added hash-table-using parts with
31857         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31858         Reported by Simon Josefsson.
31859
31860 2009-02-15  Bruno Haible  <bruno@clisp.org>
31861
31862         * modules/array-mergesort-tests: New file.
31863         * tests/test-array-mergesort.c: New file.
31864
31865         New module 'array-mergesort'.
31866         * modules/array-mergesort: New file.
31867         * lib/array-mergesort.h: New file.
31868
31869 2009-02-15  Bruno Haible  <bruno@clisp.org>
31870
31871         Fix 2009-02-07 commit.
31872         * lib/gen-uni-tables.c (output_predicate, output_category,
31873         output_combclass, output_bidi_category, output_decimal_digit,
31874         output_digit, output_numeric, output_mirror, output_scripts,
31875         output_ident_category, output_simple_mapping): Fix format directives.
31876         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31877
31878 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31879
31880         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31881         fixes are available from IBM.
31882
31883 2009-02-13  Jim Meyering  <meyering@redhat.com>
31884
31885         fts: arrange not to stat non-directories in more cases
31886         This makes GNU find (when it doesn't need to stat each file)
31887         *much* more efficient at traversing reiserfs file systems.
31888         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31889         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31890         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31891         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31892         (leaf_optimization_applies): New function.
31893         (LCO_hash, LCO_compare): New helper functions.
31894         (link_count_optimize_ok): New function.
31895         (fts_stat): Initialize new member (if dir).
31896         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31897         we've just stat'ed a directory.  Skip the stat call when possible.
31898         ---
31899         Note this AFS-related exchange:
31900         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31901         and note find's pioctl call in find/fstype.c.
31902         But that is necessary only if you want to enable the
31903         optimization for AFS, and for now, I don't.
31904
31905         fts: move a function definition "up" (no semantic change)
31906         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31907         "up" to precede upcoming use of a related function.
31908
31909 2009-02-11  Jim Meyering  <meyering@redhat.com>
31910
31911         fts: correct internal computation of nlinks (optimization-related)
31912         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31913         whether the current entry is a directory, so don't test it.
31914
31915 2009-02-10  Bruno Haible  <bruno@clisp.org>
31916
31917         Tests for module 'uniwbrk/ulc-wordbreaks'.
31918         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31919         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31920         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31921
31922         Tests for module 'uniwbrk/u32-wordbreaks'.
31923         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31924         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31925
31926         Tests for module 'uniwbrk/u16-wordbreaks'.
31927         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31928         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31929
31930         Tests for module 'uniwbrk/u8-wordbreaks'.
31931         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31932         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31933
31934 2009-02-10  Bruno Haible  <bruno@clisp.org>
31935
31936         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31937         property.
31938         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31939         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31940         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31941
31942 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31943
31944         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31945         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31946
31947 2009-02-10  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31950         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31951         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31952         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31953         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31954         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31955
31956 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31957
31958         * lib/sockets.h (gl_fd_to_handle): New function.
31959
31960         * tests/test-sockets.c: Call gl_fd_to_handle.
31961
31962 2009-02-09  Bruno Haible  <bruno@clisp.org>
31963
31964         * doc/havelib.texi: Document the conventions on bi-arch systems.
31965
31966 2009-02-08  Bruno Haible  <bruno@clisp.org>
31967
31968         Document the AC_LIB_LINKFLAGS macro.
31969         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31970         * doc/gnulib.texi: Include it.
31971
31972 2009-02-08  Bruno Haible  <bruno@clisp.org>
31973
31974         Fix wrong order of sections, compared to TOC.
31975         * doc/gnulib.texi: Include relocatable-maint.texi after the
31976         "Regular expressions" node, not before.
31977
31978 2009-02-08  Bruno Haible  <bruno@clisp.org>
31979
31980         Tests for module 'unicase/totitle'.
31981         * modules/unicase/totitle-tests: New file.
31982
31983         Tests for module 'unicase/tolower'.
31984         * modules/unicase/tolower-tests: New file.
31985
31986         Tests for module 'unicase/toupper'.
31987         * modules/unicase/toupper-tests: New file.
31988         * tests/unicase/test-mapping-part1.h: New file.
31989         * tests/unicase/test-mapping-part2.h: New file.
31990
31991         New module 'unicase/totitle'.
31992         * modules/unicase/totitle: New file.
31993         * lib/unicase/totitle.c: New file.
31994
31995         New module 'unicase/tolower'.
31996         * modules/unicase/tolower: New file.
31997         * lib/unicase/tolower.c: New file.
31998
31999         New module 'unicase/toupper'.
32000         * modules/unicase/toupper: New file.
32001         * lib/unicase/toupper.c: New file.
32002         * lib/unicase/simple-mapping.h: New file.
32003
32004         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32005         (mapping_table): New structure.
32006         (output_simple_mapping): New function.
32007         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32008         * modules/gen-uni-tables (Description): Update.
32009         * lib/unicase/toupper.h: New file, automatically generated by
32010         gen-uni-tables.
32011         * lib/unicase/tolower.h: New file, automatically generated by
32012         gen-uni-tables.
32013         * lib/unicase/totitle.h: New file, automatically generated by
32014         gen-uni-tables.
32015         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32016         gen-uni-tables.
32017         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32018         gen-uni-tables.
32019         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32020         gen-uni-tables.
32021
32022         New module 'unicase/base'.
32023         * modules/unicase/base: New file.
32024         * lib/unicase.h: New file.
32025
32026 2009-02-08  Bruno Haible  <bruno@clisp.org>
32027
32028         New module 'uniwbrk/ulc-wordbreaks'.
32029         * modules/uniwbrk/ulc-wordbreaks: New file.
32030         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32031
32032         New module 'uniwbrk/u32-wordbreaks'.
32033         * modules/uniwbrk/u32-wordbreaks: New file.
32034         * lib/uniwbrk/u32-wordbreaks.c: New file.
32035
32036         New module 'uniwbrk/u16-wordbreaks'.
32037         * modules/uniwbrk/u16-wordbreaks: New file.
32038         * lib/uniwbrk/u16-wordbreaks.c: New file.
32039
32040         New module 'uniwbrk/u8-wordbreaks'.
32041         * modules/uniwbrk/u8-wordbreaks: New file.
32042         * lib/uniwbrk/u8-wordbreaks.c: New file.
32043         * lib/uniwbrk/u-wordbreaks.h: New file.
32044
32045         New module 'uniwbrk/table'.
32046         * modules/uniwbrk/table: New file.
32047         * lib/uniwbrk/wbrktable.h: New file.
32048         * lib/uniwbrk/wbrktable.c: New file.
32049
32050         New module 'uniwbrk/wordbreak-property'.
32051         * modules/uniwbrk/wordbreak-property: New file.
32052         * lib/uniwbrk/wordbreak-property.c: New file.
32053
32054         * lib/gen-uni-tables.c (WBP_*): New enum items.
32055         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32056         (unicode_org_wbp): New variable.
32057         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32058         New functions.
32059         (wbp_table): New structure.
32060         (output_wbp, output_wbrk_tables): New functions.
32061         (main): Accept additional argument. Invoke fill_org_wbp,
32062         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32063         output_wbrk_tables.
32064         * modules/gen-uni-tables (Description): Update.
32065         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32066         gen-uni-tables.
32067
32068         New module 'uniwbrk/base'.
32069         * modules/uniwbrk/base: New file.
32070         * lib/uniwbrk.h: New file.
32071
32072 2009-02-08  Bruno Haible  <bruno@clisp.org>
32073
32074         Update to Unicode 5.1.0.
32075         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32076         U+2185..U+2188.
32077         (is_property_default_ignorable_code_point): Don't include characters
32078         of category Cc or Cs and not-a-characters.
32079         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32080         U+0D79, U+109E, U+109F, U+A60C.
32081         * lib/unictype/bidi_of.h: Regenerated.
32082         * lib/unictype/blocks.h: Regenerated.
32083         * lib/unictype/categ_C.h: Regenerated.
32084         * lib/unictype/categ_Cf.h: Regenerated.
32085         * lib/unictype/categ_Cn.h: Regenerated.
32086         * lib/unictype/categ_L.h: Regenerated.
32087         * lib/unictype/categ_Ll.h: Regenerated.
32088         * lib/unictype/categ_Lm.h: Regenerated.
32089         * lib/unictype/categ_Lo.h: Regenerated.
32090         * lib/unictype/categ_Lu.h: Regenerated.
32091         * lib/unictype/categ_M.h: Regenerated.
32092         * lib/unictype/categ_Mc.h: Regenerated.
32093         * lib/unictype/categ_Me.h: Regenerated.
32094         * lib/unictype/categ_Mn.h: Regenerated.
32095         * lib/unictype/categ_N.h: Regenerated.
32096         * lib/unictype/categ_Nd.h: Regenerated.
32097         * lib/unictype/categ_Nl.h: Regenerated.
32098         * lib/unictype/categ_No.h: Regenerated.
32099         * lib/unictype/categ_P.h: Regenerated.
32100         * lib/unictype/categ_Pd.h: Regenerated.
32101         * lib/unictype/categ_Pe.h: Regenerated.
32102         * lib/unictype/categ_Pf.h: Regenerated.
32103         * lib/unictype/categ_Pi.h: Regenerated.
32104         * lib/unictype/categ_Po.h: Regenerated.
32105         * lib/unictype/categ_Ps.h: Regenerated.
32106         * lib/unictype/categ_S.h: Regenerated.
32107         * lib/unictype/categ_Sk.h: Regenerated.
32108         * lib/unictype/categ_Sm.h: Regenerated.
32109         * lib/unictype/categ_So.h: Regenerated.
32110         * lib/unictype/categ_of.h: Regenerated.
32111         * lib/unictype/combining.h: Regenerated.
32112         * lib/unictype/ctype_alnum.h: Regenerated.
32113         * lib/unictype/ctype_alpha.h: Regenerated.
32114         * lib/unictype/ctype_graph.h: Regenerated.
32115         * lib/unictype/ctype_lower.h: Regenerated.
32116         * lib/unictype/ctype_print.h: Regenerated.
32117         * lib/unictype/ctype_punct.h: Regenerated.
32118         * lib/unictype/ctype_upper.h: Regenerated.
32119         * lib/unictype/decdigit.h: Regenerated.
32120         * lib/unictype/digit.h: Regenerated.
32121         * lib/unictype/mirror.h: Regenerated.
32122         * lib/unictype/numeric.h: Regenerated.
32123         * lib/unictype/pr_alphabetic.h: Regenerated.
32124         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32125         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32126         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32127         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32128         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32129         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32130         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32131         * lib/unictype/pr_combining.h: Regenerated.
32132         * lib/unictype/pr_dash.h: Regenerated.
32133         * lib/unictype/pr_decimal_digit.h: Regenerated.
32134         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32135         * lib/unictype/pr_deprecated.h: Regenerated.
32136         * lib/unictype/pr_diacritic.h: Regenerated.
32137         * lib/unictype/pr_extender.h: Regenerated.
32138         * lib/unictype/pr_format_control.h: Regenerated.
32139         * lib/unictype/pr_grapheme_base.h: Regenerated.
32140         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32141         * lib/unictype/pr_grapheme_link.h: Regenerated.
32142         * lib/unictype/pr_id_continue.h: Regenerated.
32143         * lib/unictype/pr_id_start.h: Regenerated.
32144         * lib/unictype/pr_ideographic.h: Regenerated.
32145         * lib/unictype/pr_ignorable_control.h: Regenerated.
32146         * lib/unictype/pr_lowercase.h: Regenerated.
32147         * lib/unictype/pr_math.h: Regenerated.
32148         * lib/unictype/pr_numeric.h: Regenerated.
32149         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32150         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32151         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32152         * lib/unictype/pr_other_id_continue.h: Regenerated.
32153         * lib/unictype/pr_other_lowercase.h: Regenerated.
32154         * lib/unictype/pr_other_math.h: Regenerated.
32155         * lib/unictype/pr_punctuation.h: Regenerated.
32156         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32157         * lib/unictype/pr_soft_dotted.h: Regenerated.
32158         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32159         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32160         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32161         * lib/unictype/pr_uppercase.h: Regenerated.
32162         * lib/unictype/pr_xid_continue.h: Regenerated.
32163         * lib/unictype/pr_xid_start.h: Regenerated.
32164         * lib/unictype/pr_zero_width.h: Regenerated.
32165         * lib/unictype/scripts.h: Regenerated.
32166         * lib/unictype/scripts_byname.gperf: Regenerated.
32167         * lib/unictype/sy_java_ident.h: Regenerated.
32168         * lib/unilbrk/lbrkprop1.h: Regenerated.
32169         * lib/unilbrk/lbrkprop2.h: Regenerated.
32170         * tests/unictype/test-categ_C.c: Regenerated.
32171         * tests/unictype/test-categ_Cf.c: Regenerated.
32172         * tests/unictype/test-categ_Cn.c: Regenerated.
32173         * tests/unictype/test-categ_L.c: Regenerated.
32174         * tests/unictype/test-categ_Ll.c: Regenerated.
32175         * tests/unictype/test-categ_Lm.c: Regenerated.
32176         * tests/unictype/test-categ_Lo.c: Regenerated.
32177         * tests/unictype/test-categ_Lu.c: Regenerated.
32178         * tests/unictype/test-categ_M.c: Regenerated.
32179         * tests/unictype/test-categ_Mc.c: Regenerated.
32180         * tests/unictype/test-categ_Me.c: Regenerated.
32181         * tests/unictype/test-categ_Mn.c: Regenerated.
32182         * tests/unictype/test-categ_N.c: Regenerated.
32183         * tests/unictype/test-categ_Nd.c: Regenerated.
32184         * tests/unictype/test-categ_Nl.c: Regenerated.
32185         * tests/unictype/test-categ_No.c: Regenerated.
32186         * tests/unictype/test-categ_P.c: Regenerated.
32187         * tests/unictype/test-categ_Pd.c: Regenerated.
32188         * tests/unictype/test-categ_Pe.c: Regenerated.
32189         * tests/unictype/test-categ_Pf.c: Regenerated.
32190         * tests/unictype/test-categ_Pi.c: Regenerated.
32191         * tests/unictype/test-categ_Po.c: Regenerated.
32192         * tests/unictype/test-categ_Ps.c: Regenerated.
32193         * tests/unictype/test-categ_S.c: Regenerated.
32194         * tests/unictype/test-categ_Sk.c: Regenerated.
32195         * tests/unictype/test-categ_Sm.c: Regenerated.
32196         * tests/unictype/test-categ_So.c: Regenerated.
32197         * tests/unictype/test-ctype_alnum.c: Regenerated.
32198         * tests/unictype/test-ctype_alpha.c: Regenerated.
32199         * tests/unictype/test-ctype_graph.c: Regenerated.
32200         * tests/unictype/test-ctype_lower.c: Regenerated.
32201         * tests/unictype/test-ctype_print.c: Regenerated.
32202         * tests/unictype/test-ctype_punct.c: Regenerated.
32203         * tests/unictype/test-ctype_upper.c: Regenerated.
32204         * tests/unictype/test-decdigit.h: Regenerated.
32205         * tests/unictype/test-digit.h: Regenerated.
32206         * tests/unictype/test-numeric.h: Regenerated.
32207         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32208         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32209         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32210         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32211         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32212         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32213         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32214         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32215         * tests/unictype/test-pr_combining.c: Regenerated.
32216         * tests/unictype/test-pr_dash.c: Regenerated.
32217         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32218         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32219         * tests/unictype/test-pr_deprecated.c: Regenerated.
32220         * tests/unictype/test-pr_diacritic.c: Regenerated.
32221         * tests/unictype/test-pr_extender.c: Regenerated.
32222         * tests/unictype/test-pr_format_control.c: Regenerated.
32223         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32224         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32225         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32226         * tests/unictype/test-pr_id_continue.c: Regenerated.
32227         * tests/unictype/test-pr_id_start.c: Regenerated.
32228         * tests/unictype/test-pr_ideographic.c: Regenerated.
32229         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32230         * tests/unictype/test-pr_lowercase.c: Regenerated.
32231         * tests/unictype/test-pr_math.c: Regenerated.
32232         * tests/unictype/test-pr_numeric.c: Regenerated.
32233         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32234         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32235         Regenerated.
32236         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32237         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32238         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32239         * tests/unictype/test-pr_other_math.c: Regenerated.
32240         * tests/unictype/test-pr_punctuation.c: Regenerated.
32241         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32242         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32243         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32244         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32245         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32246         * tests/unictype/test-pr_uppercase.c: Regenerated.
32247         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32248         * tests/unictype/test-pr_xid_start.c: Regenerated.
32249         * tests/unictype/test-pr_zero_width.c: Regenerated.
32250
32251         Update to Unicode 5.1.0.
32252         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32253         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32254         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32255         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32256         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32257         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32258         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32259         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32260         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32261         (nonspacing_table_ind): Update.
32262         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32263
32264         Update to Unicode 5.1.0.
32265         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32266         code transform.
32267         * lib/uniname/uniname.c (unicode_character_name,
32268         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32269         * lib/uniname/uninames.h: Regenerated.
32270         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32271
32272 2009-02-07  Bruno Haible  <bruno@clisp.org>
32273
32274         Merge gen-ctype and gen-lbrk into a single program.
32275         * lib/gen-uni-tables.c: New file, incorporating
32276         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32277         Add directory prefixes to the names of the generated files.
32278         * lib/unictype/gen-ctype.c: Remove file.
32279         * lib/unilbrk/gen-lbrk.c: Remove file.
32280         * modules/gen-uni-tables: New file.
32281         * modules/unictype/gen-ctype: Remove file.
32282         * modules/unilbrk/gen-lbrk: Remove file.
32283
32284 2009-02-07  Bruno Haible  <bruno@clisp.org>
32285
32286         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32287
32288         New module 'unistr/u32-strcoll'.
32289         * modules/unistr/u32-strcoll: New file.
32290         * lib/unistr/u32-strcoll.c: New file.
32291
32292         New module 'unistr/u16-strcoll'.
32293         * modules/unistr/u16-strcoll: New file.
32294         * lib/unistr/u16-strcoll.c: New file.
32295
32296         New module 'unistr/u8-strcoll'.
32297         * modules/unistr/u8-strcoll: New file.
32298         * lib/unistr/u8-strcoll.c: New file.
32299         * lib/unistr/u-strcoll.h: New file.
32300
32301 2009-02-07  Bruno Haible  <bruno@clisp.org>
32302
32303         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32304         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32305         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32306         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32307         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32308         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32309
32310 2009-02-07  Bruno Haible  <bruno@clisp.org>
32311
32312         Make 64-bit clean.
32313         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32314         output_combclass, output_bidi_category, output_decimal_digit,
32315         output_digit, output_numeric, output_mirror, output_scripts,
32316         output_ident_category): Use proper width specifier in format strings.
32317
32318 2009-02-07  Bruno Haible  <bruno@clisp.org>
32319
32320         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32321         failure behaviour.
32322
32323 2009-02-07  Jim Meyering  <meyering@redhat.com>
32324
32325         regex: avoid compilation failure with upcoming gcc-4.4
32326         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32327         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32328         "... error: integer overflow in preprocessor expression".
32329
32330 2009-02-05  Ben Pfaff  <blp@gnu.org>
32331
32332         Fix link errors on Windows when close module is used.
32333         * modules/close: Add $(LIB_CLOSE) to Link section.
32334         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32335         $(LIB_CLOSE) on Windows.
32336
32337 2009-02-05  Jim Meyering  <meyering@redhat.com>
32338
32339         still avoid unused-parameter warnings, but do it cleanly
32340         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32341         (get_fs_usage): Cast to void instead.
32342         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32343         (dev_from_mount_options, read_file_system_list): Cast to void.
32344         Prompted by Bruno Haible.
32345
32346 2009-02-04  Jim Meyering  <meyering@redhat.com>
32347
32348         fsusage.c: correct copyright year
32349         * lib/fsusage.c: Reflect year in which the change is pushed into
32350
32351         avoid misc. warnings
32352         * lib/fsusage.c (UNUSED_PARAM): Define.
32353         (get_fs_usage): Mark parameter "disk" as unused.
32354         * lib/getugroups.c (getgrent): Use "void" in prototype.
32355         * lib/mountlist.c: Mark unused parameters.
32356         (read_file_system_list): Declare a local with "const".
32357         * lib/nanosleep.c (getnow): Declare static.
32358         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32359
32360         dirfd: set errno upon failure
32361         * lib/dirfd.c: Include <errno.h>.
32362         Set errno to ENOTSUP when returning -1.
32363         * modules/dirfd (Depends-on): Add errno.
32364         Suggested by John Kodis <kodis@comcast.net>.
32365
32366 2009-02-01  Bruno Haible  <bruno@clisp.org>
32367
32368         Don't assume sizeof (long) >= sizeof (void *).
32369         * lib/memcmp.c: Include stdint.h.
32370         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32371         srcp2 to 'const byte *'.
32372         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32373         types to uintptr_t.
32374         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32375         * modules/memcmp (Depends-on): Add stdint.
32376         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32377
32378 2009-01-30  Eric Blake  <ebb9@byu.net>
32379
32380         fix more require-before-expand issues
32381         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32382         expand, AC_PROG_AWK.
32383         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32384
32385 2009-01-28  Eric Blake  <ebb9@byu.net>
32386
32387         version-etc: use consistent URL formatting
32388         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32389         Improve formatting.  Use fputs for string without %.
32390
32391 2009-01-28  Jim Meyering  <meyering@redhat.com>
32392
32393         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32394         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32395         "underquoted definition of NAME" from autoconf-2.59.
32396
32397 2009-01-28  Bruno Haible  <bruno@clisp.org>
32398
32399         * doc/gnulib.texi: Add "Obsolete modules" to index.
32400
32401 2009-01-28  Jim Meyering  <meyering@redhat.com>
32402
32403         useless-if-before-free: recognize more variants
32404         * build-aux/useless-if-before-free: Also recognize e.g.,
32405         if (NULL != p) free (p);
32406
32407 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32408
32409         test-getaddrinfo: skip (don't fail) this test when there's no network
32410         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32411         on the presumption that it means you lack network access.
32412
32413 2009-01-26  Jim Meyering  <meyering@redhat.com>
32414
32415         fflush: avoid warnings on modern systems
32416         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32417         pos and result, into scopes where they're used.
32418
32419 2009-01-26  Eric Blake  <ebb9@byu.net>
32420
32421         Silence warning reintroduced by recent extensions patch.
32422         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32423         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32424         autoconf.
32425
32426         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32427         * m4/00gnulib.m4: New file.
32428         * gnulib-tool (func_get_filelist): Always use it.
32429         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32430         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32431
32432 2009-01-25  Bruno Haible  <bruno@clisp.org>
32433
32434         Make test-quotearg work on MacOS X and AIX.
32435         * tests/test-quotearg.sh: New file.
32436         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32437         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32438         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32439         include <libintl.h>.
32440         (fake_locale): Remove variable.
32441         (gettext, dgettext, dcgettext): Remove functions.
32442         (main): Instead of setting a fake locale, set a real locale. Call
32443         textdomain and bindtextdomain.
32444         * modules/quotearg-tests (Files): Add the new files.
32445         (Depends-on): Add gettext, setenv, unsetenv.
32446         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32447         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32448         Augment TESTS_ENVIRONMENT.
32449
32450 2009-01-25  Bruno Haible  <bruno@clisp.org>
32451
32452         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32453         fr_FR.ISO8859-1 locale on MacOS X.
32454         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32455         ja_JP.eucJP locale on MacOS X.
32456         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32457         zh_CN.GB18030 locale on MacOS X.
32458
32459 2009-01-25  Bruno Haible  <bruno@clisp.org>
32460
32461         Avoid link errors on MacOS X 10.3.
32462         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32463         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32464
32465 2009-01-25  Bruno Haible  <bruno@clisp.org>
32466
32467         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32468         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32469         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32470         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32471         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32472         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32473         posix_spawnattr_init, posix_spawnattr_setsigmask,
32474         posix_spawnattr_setflags, posix_spawnattr_destroy.
32475
32476         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32477         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32478         * modules/execute (Files): Remove m4/posix_spawn.m4.
32479         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32480         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32481         posix_spawnattr_init, posix_spawnattr_setsigmask,
32482         posix_spawnattr_setflags, posix_spawnattr_destroy.
32483
32484 2009-01-25  Bruno Haible  <bruno@clisp.org>
32485
32486         * lib/glthread/threadlib.c: Include <stdlib.h>.
32487
32488 2009-01-25  Bruno Haible  <bruno@clisp.org>
32489
32490         * lib/glthread/threadlib.c (dummy): New declaration.
32491
32492 2009-01-25  Bruno Haible  <bruno@clisp.org>
32493
32494         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32495         multibyte characters also for the GB18030 encoding. Don't crash when
32496         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32497
32498 2009-01-25  Bruno Haible  <bruno@clisp.org>
32499
32500         Avoid redefining 'struct random_data' on OSF/1 5.1.
32501         * lib/stdlib.in.h: Include <random.h> if it exists.
32502         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32503         HAVE_RANDOM_H. Include <random.h> when testing whether
32504         'struct random_data' exists.
32505         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32506
32507 2009-01-25  Bruno Haible  <bruno@clisp.org>
32508
32509         Don't install charset.alias on MacOS X >= 10.3.
32510         * lib/localcharset.c (DARWIN7): New macro.
32511         (get_charset_aliases): Hardcode the result for Darwin7.
32512         * modules/localcharset (install-exec-local): Don't install
32513         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32514
32515 2009-01-25  Bruno Haible  <bruno@clisp.org>
32516
32517         Don't install charset.alias on mingw and Cygwin.
32518         * modules/localcharset (install-exec-local): Don't install
32519         charset.alias on mingw and Cygwin, if the file does not yet exist.
32520         The result for these platforms is hardcoded in localcharset.c.
32521
32522 2009-01-25  Bruno Haible  <bruno@clisp.org>
32523
32524         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32525         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32526         before requiring AC_USE_SYSTEM_EXTENSIONS.
32527
32528 2009-01-25  Jim Meyering  <meyering@redhat.com>
32529
32530         c-strtod: avoid warnings
32531         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32532         "assignment discards qualifiers from pointer target type" warnings.
32533
32534 2009-01-24  Bruno Haible  <bruno@clisp.org>
32535
32536         Add support for non-UTF-8 locales on MacOS X.
32537         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32538         canonical encodings. For Darwin 7 and newer, don't map traditional
32539         encodings to UTF-8.
32540         Reported by Vincent Lefevre <vincent@vinc17.org>
32541         at <http://savannah.gnu.org/bugs/?25235>.
32542
32543 2009-01-24  Bruno Haible  <bruno@clisp.org>
32544
32545         * doc/gnulib.texi (Obsolete modules): New section.
32546         Reported by Mike Frysinger <vapier@gentoo.org>.
32547
32548 2009-01-24  Bruno Haible  <bruno@clisp.org>
32549
32550         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32551         (%.dvi): New rule.
32552
32553 2009-01-24  Bruno Haible  <bruno@clisp.org>
32554
32555         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32556         Reported by Eric Blake.
32557
32558 2009-01-24  Bruno Haible  <bruno@clisp.org>
32559
32560         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32561         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32562         Reported by Gary V. Vaughan <gary@gnu.org>.
32563
32564 2009-01-24  Bruno Haible  <bruno@clisp.org>
32565
32566         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32567
32568 2009-01-23  Bruno Haible  <bruno@clisp.org>
32569
32570         Make c-strtod, c-strtold usable in libraries.
32571         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32572         (C_STRTOD): Call strdup instead of xstrdup.
32573         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32574         * modules/c-strtold (Depends-on): Likewise.
32575         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32576         * NEWS: Mention the change.
32577         Reported by Michael Gold <mgold@ncf.ca>.
32578
32579 2009-01-23  Jim Meyering  <meyering@redhat.com>
32580
32581         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32582         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32583         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32584
32585 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32586
32587         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32588         GNU CoreUtils.
32589         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32590         * modules/version-etc (Description): Update.
32591
32592 2009-01-22  Bruno Haible  <bruno@clisp.org>
32593
32594         Cache the C locale object.
32595         * lib/c-strtod.c (c_locale_cache): New variable.
32596         (c_locale): New function.
32597         (C_STRTOD): Use it, and don't call freelocale.
32598         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32599         Suggested by Paolo Bonzini.
32600
32601 2009-01-21  Bruno Haible  <bruno@clisp.org>
32602
32603         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32604         conditions other than overflow.
32605
32606 2009-01-21  Bruno Haible  <bruno@clisp.org>
32607
32608         * lib/c-strtod.c: Include errno.h.
32609         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32610         value from STRTOD_L and STRTOD.
32611
32612 2009-01-21  Bruno Haible  <bruno@clisp.org>
32613         and Jim Meyering  <meyering@redhat.com>
32614
32615         nanosleep: skip configure test (fail it) for apple universal builds
32616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32617         universal builds, assume that nanosleep does not work.
32618         * modules/nanosleep (Depends-on): Add multiarch.
32619
32620         mktime: skip configure test (fail it) for apple universal builds
32621         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32622         universal builds, assume that mktime does not work.
32623         * modules/mktime (Depends-on): Add multiarch.
32624
32625 2009-01-21  Eric Blake  <ebb9@byu.net>
32626
32627         multiarch: avoid expand-before-require warning
32628         * modules/multiarch (configure.ac): Require, rather than expand,
32629         gl_MULTIARCH.
32630         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32631         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32632         enforce that all clients require it.  Partial reversion of
32633         2008-12-29 patch.
32634
32635         error: avoid expand-before-require warning
32636         * modules/errno (configure.ac): Require, rather than expand,
32637         gl_HEADER_ERRNO_H.
32638         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32639         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32640         enforce that all clients require it.
32641
32642         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32643         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32644         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32645         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32646
32647 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32648
32649         Revert:
32650         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32651
32652         regex: do not depend on obsolete modules.
32653         * modules/regex: Remove memcmp and memmove.
32654
32655 2009-01-20  Bruno Haible  <bruno@clisp.org>
32656
32657         Make the 'link' module link on Windows NT 4.
32658         * lib/link.c (_WIN32_WINNT): Don't define.
32659         (CreateHardLinkFuncType): New type.
32660         (CreateHardLinkFunc, initialized): New variables.
32661         (initialize): New function.
32662         (link): Invoke CreateHardLink indirectly through the function pointer.
32663
32664 2009-01-20  Bruno Haible  <bruno@clisp.org>
32665
32666         Fix compilation failure on mingw.
32667         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32668
32669 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32670
32671         * doc/c-strtod.texi: Mention a couple of restrictions.
32672
32673 2009-01-20  Jim Meyering  <meyering@redhat.com>
32674
32675         gettimeofday: move more declarations out of functions
32676         * lib/gettimeofday.c: Move extern declarations of tzset and
32677         gmtime out of containing functions.  Prompted by Bruno Haible.
32678
32679 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32680
32681         regex: do not depend on obsolete modules.
32682         * modules/regex: Remove memcmp and memmove.
32683
32684 2009-01-19  Bruno Haible  <bruno@clisp.org>
32685
32686         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32687         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32688         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32689         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32690         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32691
32692 2009-01-19  Bruno Haible  <bruno@clisp.org>
32693
32694         * tests/test-link.c: Include <errno.h>.
32695         (main): Exit with code 77 when a hard link cannot be created due to
32696         the file system.
32697         * tests/test-link.sh: Skip test when a hard link cannot be created due
32698         to the file system.
32699         Suggested by Eric Blake.
32700
32701 2009-01-19  Martin Lambers  <marlam@marlam.de>
32702
32703         * modules/link-tests: New file.
32704         * tests/test-link.sh: New file.
32705         * tests/test-link.c: New file.
32706
32707 2009-01-19  Eric Blake  <ebb9@byu.net>
32708
32709         doc: mention another function added in cygwin 1.7.0
32710         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32711         Another new function in cygwin 1.7.
32712
32713 2009-01-19  Bruno Haible  <bruno@clisp.org>
32714
32715         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32716         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32717         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32718         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32719         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32720         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32721         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32722         * m4/md4.m4 (gl_MD4): Likewise.
32723         * m4/md5.m4 (gl_MD5): Likewise.
32724         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32725         * m4/sha1.m4 (gl_SHA1): Likewise.
32726         * m4/sha256.m4 (gl_SHA256): Likewise.
32727         * m4/sha512.m4 (gl_SHA512): Likewise.
32728
32729 2009-01-19  Bruno Haible  <bruno@clisp.org>
32730
32731         * modules/uniname/uniname-tests (Depends-on): Add progname.
32732         * tests/uniname/test-uninames.c: Include progname.h.
32733         (main): Call set_program_name.
32734
32735         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32736         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32737         (main): Call set_program_name.
32738
32739         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32740         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32741         (main): Call set_program_name.
32742
32743         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32744         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32745         (main): Call set_program_name.
32746
32747         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32748         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32749         (main): Call set_program_name.
32750
32751         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32752         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32753         (main): Call set_program_name.
32754
32755         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32756         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32757         (main): Call set_program_name.
32758
32759         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32760         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32761         (main): Call set_program_name.
32762
32763         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32764         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32765         (main): Call set_program_name.
32766
32767 2009-01-19  Eric Blake  <ebb9@byu.net>
32768
32769         test-unistd: test previous patch
32770         * tests/test-unistd.c: Test *_FILENO macros.
32771
32772         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32773         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32774         Guarantee a definition.
32775         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32776         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32777         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32778         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32779         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32780         Likewise.
32781         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32782         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32783         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32784         Likewise.
32785         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32786         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32787         (STDERR_FILENO): Likewise.
32788         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32789         (STDERR_FILENO): Likewise.
32790         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32791         (STDERR_FILENO): Likewise.
32792         Reported by Elbert Pol.
32793
32794 2009-01-19  Eric Blake  <ebb9@byu.net>
32795
32796         doc: mention more functions added in cygwin 1.7.0
32797         * doc/posix-functions/abort.texi (abort): Update wording related
32798         to cygwin.
32799         * doc/posix-functions/daylight.texi (daylight): Likewise.
32800         * doc/posix-functions/optarg.texi (optarg): Likewise.
32801         * doc/posix-functions/optarg.texi (opterr): Likewise.
32802         * doc/posix-functions/optarg.texi (optind): Likewise.
32803         * doc/posix-functions/optarg.texi (optopt): Likewise.
32804         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32805         worked in 1.5.x, and was withdrawn in 1.7.
32806         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32807         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32808         cygwin versions.
32809         * doc/posix-functions/perror.texi (perror): Likewise.
32810         * doc/posix-functions/printf.texi (printf): Likewise.
32811         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32812         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32813         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32814         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32815         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32816         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32817         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32818         Likewise.
32819         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32820         Likewise.
32821         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32822         this function.
32823         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32824         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32825         Likewise.
32826         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32827         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32828         * doc/posix-functions/confstr.texi (confstr): Likewise.
32829         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32830         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32831         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32832         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32833         * doc/posix-functions/fputws.texi (fputws): Likewise.
32834         * doc/posix-functions/fwide.texi (fwide): Likewise.
32835         * doc/posix-functions/getwc.texi (getwc): Likewise.
32836         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32837         * doc/posix-functions/putwc.texi (putwc): Likewise.
32838         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32839         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32840         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32841         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32842         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32843         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32844         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32845         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32846         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32847         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32848         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32849
32850 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32851
32852         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32853         * lib/ioctl.c: Include <sys/ioctl.h>.
32854
32855 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32856
32857         * modules/getdate-tests (Depends-on): Add progname.
32858         * tests/test-getdate.c: Use progname module, to avoid link errors
32859         on non-glibc systems.
32860
32861 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32862
32863         * modules/filenamecat-tests (Depends-on): Add progname.
32864         * modules/fstrcmp-tests (Depends-on): Likewise.
32865
32866         * tests/test-filenamecat.c: Use progname module, to avoid link
32867         errors on non-glibc systems.
32868         * tests/test-fstrcmp.c: Likewise.
32869
32870 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32871
32872         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32873         * lib/gettimeofday.c: Move extern declaration out of function.
32874
32875 2009-01-18  Bruno Haible  <bruno@clisp.org>
32876
32877         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32878         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32879         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32880
32881 2009-01-18  Bruno Haible  <bruno@clisp.org>
32882
32883         * lib/strftime.c (MEMPCPY): Remove unused macro.
32884         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32885
32886 2009-01-18  Martin Lambers  <marlam@marlam.de>
32887
32888         New module 'link'.
32889         * lib/unistd.in.h (link): New declaration.
32890         * lib/link.c: New file.
32891         * m4/link.m4: New file.
32892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32893         HAVE_LINK.
32894         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32895         * modules/link: New file.
32896         * doc/posix-functions/link.texi: Mention the new module.
32897
32898 2009-01-18  Bruno Haible  <bruno@clisp.org>
32899
32900         * tests/test-avltree_list.c (main): Call set_program_name.
32901         * tests/test-avltree_oset.c (main): Likewise.
32902         * tests/test-obstack-printf.c: Include progname.h.
32903         (main): Call set_program_name.
32904         * tests/test-quotearg.c: Include progname.h.
32905         (main): Call set_program_name.
32906         * tests/test-xmemdup0.c: Include progname.h.
32907         (main): Call set_program_name.
32908
32909 2009-01-18  Bruno Haible  <bruno@clisp.org>
32910
32911         New module 'alphasort'.
32912         * lib/dirent.in.h (alphasort): New declaration.
32913         * lib/alphasort.c: New file, from glibc with modifications.
32914         * m4/alphasort.m4: New file.
32915         * modules/alphasort: New file.
32916         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32917         HAVE_ALPHASORT.
32918         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32919         HAVE_ALPHASORT.
32920         * doc/posix-functions/alphasort.texi: Mention the new module and the
32921         portability problems.
32922
32923 2009-01-18  Bruno Haible  <bruno@clisp.org>
32924
32925         New module 'scandir'.
32926         * lib/dirent.in.h (scandir): New declaration.
32927         * lib/scandir.c: New file, from glibc with modifications.
32928         * m4/scandir.m4: New file.
32929         * modules/scandir: New file.
32930         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32931         HAVE_SCANDIR.
32932         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32933         HAVE_SCANDIR.
32934         * doc/posix-functions/scandir.texi: Mention the new module and the
32935         portability problems.
32936
32937 2009-01-17  Bruno Haible  <bruno@clisp.org>
32938
32939         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32940         Update documentation.
32941         (func_remove_suffix): Escape all dots in the suffix. Update
32942         documentation.
32943         (func_filter_filelist): Update documentation.
32944         Reported by Ralf Wildenhues.
32945
32946 2009-01-17  Bruno Haible  <bruno@clisp.org>
32947
32948         * modules/dprintf-posix-tests: New file.
32949         * tests/test-dprintf-posix.sh: New file.
32950         * tests/test-dprintf-posix.c: New file.
32951
32952         New modules 'dprintf', 'dprintf-posix'.
32953         * lib/stdio.in.h (dprintf): New declaration.
32954         * lib/dprintf.c: New file.
32955         * m4/dprintf.m4: New file.
32956         * m4/dprintf-posix.m4: New file.
32957         * modules/dprintf: New file.
32958         * modules/dprintf-posix: New file.
32959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32960         HAVE_DPRINTF, REPLACE_DPRINTF.
32961         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32962         HAVE_DPRINTF, REPLACE_DPRINTF.
32963         * doc/posix-functions/dprintf.texi: Mention the new modules.
32964
32965 2009-01-17  Bruno Haible  <bruno@clisp.org>
32966
32967         * modules/vdprintf-posix-tests: New file.
32968         * tests/test-vdprintf-posix.sh: New file.
32969         * tests/test-vdprintf-posix.c: New file.
32970
32971         New modules 'vdprintf', 'vdprintf-posix'.
32972         * lib/stdio.in.h (vdprintf): New declaration.
32973         * lib/vdprintf.c: New file.
32974         * m4/vdprintf.m4: New file.
32975         * m4/vdprintf-posix.m4: New file.
32976         * modules/vdprintf: New file.
32977         * modules/vdprintf-posix: New file.
32978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32979         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32980         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32981         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32982         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32983
32984 2009-01-17  Bruno Haible  <bruno@clisp.org>
32985
32986         Fix replacement of fopen on mingw.
32987         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32988         mingw.
32989
32990 2009-01-17  Bruno Haible  <bruno@clisp.org>
32991
32992         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32993         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32994
32995 2009-01-17  Bruno Haible  <bruno@clisp.org>
32996
32997         Avoid test-fflush2.sh failure on mingw.
32998         * tests/test-fflush2.c: Include binary-io.h.
32999         (main): Put standard input into binary mode.
33000         * modules/fflush-tests (Depends-on): Add binary-io.
33001
33002 2009-01-17  Bruno Haible  <bruno@clisp.org>
33003
33004         * lib/wchar.in.h: In another particular situation, include only the
33005         system's <wchar.h> file.
33006         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33007         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33008         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33009
33010 2009-01-17  Bruno Haible  <bruno@clisp.org>
33011
33012         Support for stripping executables in --enable-relocatable.
33013         * build-aux/install-reloc: Expect one more argument, or an environment
33014         variable RELOC_STRIP_PROG. If set, strip the destination program and
33015         its wrapper.
33016         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33017         RELOC_STRIP_PROG.
33018         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33019         to set RELOCATABLE_STRIP.
33020         * NEWS: Mention the new Makefile requirement.
33021
33022 2009-01-17  Bruno Haible  <bruno@clisp.org>
33023
33024         * build-aux/install-reloc: Remove debugging information left over by
33025         C compiler on MacOS X.
33026
33027 2009-01-17  Bruno Haible  <bruno@clisp.org>
33028
33029         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33030         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33031         _NSGetExecutablePath.
33032
33033 2009-01-16  Jim Meyering  <meyering@redhat.com>
33034
33035         strerror: avoid warnings about discarding "const"
33036         * lib/strerror.c (rpl_strerror): Instead of returning a const
33037         string from each and every "case", use a variable, and add a single
33038         cast after the switch.
33039
33040 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33041
33042         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33043
33044 2009-01-16  Bruno Haible  <bruno@clisp.org>
33045
33046         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33047         array initializer syntax that also works in C++ mode.
33048         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33049
33050 2009-01-16  Jim Meyering  <meyering@redhat.com>
33051
33052         poll: suppress a warning
33053         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33054         to ignore "...unsigned expression < 0 is always false" warnings.
33055
33056 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33057
33058         poll: remove declarations of unused variables
33059         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33060         sockbuf and optlen.
33061
33062 2009-01-15  Bruno Haible  <bruno@clisp.org>
33063
33064         Make fflush-after-ungetc POSIX compliant on BSD systems.
33065         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33066         (clear_ungetc_buffer): Implement also for other systems.
33067         (rpl_fflush): On glibc systems, invoke
33068         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33069         clear_ungetc_buffer after fetching the stream's position, not before.
33070
33071 2009-01-15  Bruno Haible  <bruno@clisp.org>
33072
33073         Make fflush-after-ungetc POSIX compliant on glibc systems.
33074         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33075         after ungetc.
33076         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33077         (rpl_fflush): On glibc systems, simply call the system's fflush
33078         function after clearing the ungetc buffer.
33079         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33080         Instead, lseek only to the end of file, then use the system's fseeko
33081         for the rest. On glibc systems, reset the EOF indicator bit.
33082
33083 2009-01-15  Jim Meyering  <meyering@redhat.com>
33084
33085         openmp.m4: revert quote-adding change, for portability to older autoconf
33086         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33087         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33088         Simon Josefsson noticed the problem when using autoconf-2.61.
33089
33090 2009-01-15  Bruno Haible  <bruno@clisp.org>
33091
33092         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33093         * tests/test-fflush2.c (ASSERT): Always fail.
33094         (main): Add two tests for fflush() after ungetc(), taking into account
33095         the Austin Group's clarification.
33096         Suggested by Eric Blake.
33097
33098 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33099
33100         mktime.m4: remove K&R-style function prototypes
33101         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33102         for the Sun C++ compiler.
33103
33104 2009-01-14  Bruno Haible  <bruno@clisp.org>
33105
33106         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33107         while including <wchar.h>.
33108         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33109         the system's <wchar.h> file.
33110         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33111
33112 2009-01-14  Bruno Haible  <bruno@clisp.org>
33113
33114         * m4/csharp.m4: Don't mention gettext on the serial number line.
33115         * m4/csharpexec.m4: Likewise.
33116         * m4/eaccess.m4: Likewise.
33117         * m4/javaexec.m4: Likewise.
33118         * m4/sig_atomic_t.m4: Likewise.
33119         * m4/tmpdir.m4: Likewise.
33120         * m4/intldir.m4: Bump gettext version.
33121         * m4/lib-ld.m4: Likewise.
33122
33123 2009-01-14  Bruno Haible  <bruno@clisp.org>
33124
33125         * lib/progname.c (set_program_name): Add more comments.
33126         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33127
33128 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33129
33130         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33131         were sys/stat.h does not define it.
33132
33133 2009-01-14  Jim Meyering  <meyering@redhat.com>
33134
33135         many *.m4 files: improve m4 quoting
33136         99% of this change was performed by running the following commands:
33137         git ls-files | grep '\.m4$' | xargs perl -pi \
33138           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33139           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33140           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33141           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33142         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33143         The remainder were to add Copyright dates, increment serial numbers,
33144         undo some changes in comments, exclude m4/intl.m4, and add quotes
33145         around the "1" in ",1" where the unusual spacing prohibited the
33146         above regexps from doing the job.  For more details, see
33147         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33148         * m4/acl.m4: Modified.
33149         * m4/afs.m4: Likewise.
33150         * m4/alloca.m4: Likewise.
33151         * m4/argp.m4: Likewise.
33152         * m4/argz.m4: Likewise.
33153         * m4/atexit.m4: Likewise.
33154         * m4/bison-i18n.m4: Likewise.
33155         * m4/bison.m4: Likewise.
33156         * m4/byteswap.m4: Likewise.
33157         * m4/c-stack.m4: Likewise.
33158         * m4/c-strtod.m4: Likewise.
33159         * m4/calloc.m4: Likewise.
33160         * m4/canonicalize-lgpl.m4: Likewise.
33161         * m4/chown.m4: Likewise.
33162         * m4/clock_time.m4: Likewise.
33163         * m4/codeset.m4: Likewise.
33164         * m4/copy-file.m4: Likewise.
33165         * m4/csharp.m4: Likewise.
33166         * m4/csharpcomp.m4: Likewise.
33167         * m4/csharpexec.m4: Likewise.
33168         * m4/d-ino.m4: Likewise.
33169         * m4/d-type.m4: Likewise.
33170         * m4/dirfd.m4: Likewise.
33171         * m4/double-slash-root.m4: Likewise.
33172         * m4/eaccess.m4: Likewise.
33173         * m4/eealloc.m4: Likewise.
33174         * m4/environ.m4: Likewise.
33175         * m4/errno_h.m4: Likewise.
33176         * m4/euidaccess.m4: Likewise.
33177         * m4/execute.m4: Likewise.
33178         * m4/fatal-signal.m4: Likewise.
33179         * m4/fchdir.m4: Likewise.
33180         * m4/fcntl_h.m4: Likewise.
33181         * m4/fileblocks.m4: Likewise.
33182         * m4/filenamecat.m4: Likewise.
33183         * m4/findprog.m4: Likewise.
33184         * m4/flexmember.m4: Likewise.
33185         * m4/fnmatch.m4: Likewise.
33186         * m4/fopen.m4: Likewise.
33187         * m4/fpending.m4: Likewise.
33188         * m4/fprintf-posix.m4: Likewise.
33189         * m4/free.m4: Likewise.
33190         * m4/frexp.m4: Likewise.
33191         * m4/frexpl.m4: Likewise.
33192         * m4/fsusage.m4: Likewise.
33193         * m4/ftruncate.m4: Likewise.
33194         * m4/gc-camellia.m4: Likewise.
33195         * m4/gc-random.m4: Likewise.
33196         * m4/gc.m4: Likewise.
33197         * m4/getaddrinfo.m4: Likewise.
33198         * m4/getcwd-abort-bug.m4: Likewise.
33199         * m4/getcwd-path-max.m4: Likewise.
33200         * m4/getdate.m4: Likewise.
33201         * m4/getdomainname.m4: Likewise.
33202         * m4/getgroups.m4: Likewise.
33203         * m4/gethostname.m4: Likewise.
33204         * m4/gethrxtime.m4: Likewise.
33205         * m4/getline.m4: Likewise.
33206         * m4/getloadavg.m4: Likewise.
33207         * m4/getndelim2.m4: Likewise.
33208         * m4/getpass.m4: Likewise.
33209         * m4/gettext.m4: Likewise.
33210         * m4/gettime.m4: Likewise.
33211         * m4/gettimeofday.m4: Likewise.
33212         * m4/gnulib-common.m4: Likewise.
33213         * m4/group-member.m4: Likewise.
33214         * m4/host-os.m4: Likewise.
33215         * m4/iconv.m4: Likewise.
33216         * m4/iconv_open.m4: Likewise.
33217         * m4/inet_ntop.m4: Likewise.
33218         * m4/inet_pton.m4: Likewise.
33219         * m4/inline.m4: Likewise.
33220         * m4/intldir.m4: Likewise.
33221         * m4/intlmacosx.m4: Likewise.
33222         * m4/intmax.m4: Likewise.
33223         * m4/intmax_t.m4: Likewise.
33224         * m4/inttypes.m4: Likewise.
33225         * m4/inttypes_h.m4: Likewise.
33226         * m4/inttypes-pri.m4: Likewise.
33227         * m4/isapipe.m4: Likewise.
33228         * m4/isnand.m4: Likewise.
33229         * m4/isnanf.m4: Likewise.
33230         * m4/isnanl.m4: Likewise.
33231         * m4/javacomp.m4: Likewise.
33232         * m4/javaexec.m4: Likewise.
33233         * m4/jm-winsz1.m4: Likewise.
33234         * m4/jm-winsz2.m4: Likewise.
33235         * m4/lchown.m4: Likewise.
33236         * m4/lcmessage.m4: Likewise.
33237         * m4/ldexpl.m4: Likewise.
33238         * m4/lib-ld.m4: Likewise.
33239         * m4/lib-link.m4: Likewise.
33240         * m4/libsigsegv.m4: Likewise.
33241         * m4/link-follow.m4: Likewise.
33242         * m4/localcharset.m4: Likewise.
33243         * m4/locale-fr.m4: Likewise.
33244         * m4/locale-ja.m4: Likewise.
33245         * m4/locale-tr.m4: Likewise.
33246         * m4/locale-zh.m4: Likewise.
33247         * m4/lock.m4: Likewise.
33248         * m4/longlong.m4: Likewise.
33249         * m4/ls-mntd-fs.m4: Likewise.
33250         * m4/lstat.m4: Likewise.
33251         * m4/malloc.m4: Likewise.
33252         * m4/mathl.m4: Likewise.
33253         * m4/mbrtowc.m4: Likewise.
33254         * m4/mbstate_t.m4: Likewise.
33255         * m4/mbswidth.m4: Likewise.
33256         * m4/memchr.m4: Likewise.
33257         * m4/memcmp.m4: Likewise.
33258         * m4/memcpy.m4: Likewise.
33259         * m4/memmem.m4: Likewise.
33260         * m4/memmove.m4: Likewise.
33261         * m4/mempcpy.m4: Likewise.
33262         * m4/memrchr.m4: Likewise.
33263         * m4/memset.m4: Likewise.
33264         * m4/minmax.m4: Likewise.
33265         * m4/mkdir-slash.m4: Likewise.
33266         * m4/mkdtemp.m4: Likewise.
33267         * m4/mktime.m4: Likewise.
33268         * m4/mmap-anon.m4: Likewise.
33269         * m4/mountlist.m4: Likewise.
33270         * m4/nanosleep.m4: Likewise.
33271         * m4/nls.m4: Likewise.
33272         * m4/nocrash.m4: Likewise.
33273         * m4/open.m4: Likewise.
33274         * m4/openat.m4: Likewise.
33275         * m4/openmp.m4: Likewise.
33276         * m4/pathmax.m4: Likewise.
33277         * m4/perl.m4: Likewise.
33278         * m4/physmem.m4: Likewise.
33279         * m4/pipe.m4: Likewise.
33280         * m4/po.m4: Likewise.
33281         * m4/poll.m4: Likewise.
33282         * m4/posixtm.m4: Likewise.
33283         * m4/posixver.m4: Likewise.
33284         * m4/printf-frexp.m4: Likewise.
33285         * m4/printf-frexpl.m4: Likewise.
33286         * m4/printf-posix.m4: Likewise.
33287         * m4/printf-posix-rpl.m4: Likewise.
33288         * m4/printf.m4: Likewise.
33289         * m4/progtest.m4: Likewise.
33290         * m4/putenv.m4: Likewise.
33291         * m4/readline.m4: Likewise.
33292         * m4/readlink.m4: Likewise.
33293         * m4/readutmp.m4: Likewise.
33294         * m4/realloc.m4: Likewise.
33295         * m4/regex.m4: Likewise.
33296         * m4/relocatable.m4: Likewise.
33297         * m4/relocatable-lib.m4: Likewise.
33298         * m4/rename-dest-slash.m4: Likewise.
33299         * m4/rename.m4: Likewise.
33300         * m4/rmdir-errno.m4: Likewise.
33301         * m4/rmdir.m4: Likewise.
33302         * m4/roundf.m4: Likewise.
33303         * m4/roundl.m4: Likewise.
33304         * m4/rpmatch.m4: Likewise.
33305         * m4/save-cwd.m4: Likewise.
33306         * m4/selinux-selinux-h.m4: Likewise.
33307         * m4/setenv.m4: Likewise.
33308         * m4/settime.m4: Likewise.
33309         * m4/sig2str.m4: Likewise.
33310         * m4/sig_atomic_t.m4: Likewise.
33311         * m4/signalblocking.m4: Likewise.
33312         * m4/signbit.m4: Likewise.
33313         * m4/sigpipe.m4: Likewise.
33314         * m4/sockets.m4: Likewise.
33315         * m4/sockpfaf.m4: Likewise.
33316         * m4/st_dm_mode.m4: Likewise.
33317         * m4/stat-time.m4: Likewise.
33318         * m4/stdbool.m4: Likewise.
33319         * m4/stdint.m4: Likewise.
33320         * m4/stdint_h.m4: Likewise.
33321         * m4/stpcpy.m4: Likewise.
33322         * m4/stpncpy.m4: Likewise.
33323         * m4/strcase.m4: Likewise.
33324         * m4/strchrnul.m4: Likewise.
33325         * m4/strcspn.m4: Likewise.
33326         * m4/strdup.m4: Likewise.
33327         * m4/strftime.m4: Likewise.
33328         * m4/strndup.m4: Likewise.
33329         * m4/strnlen.m4: Likewise.
33330         * m4/strpbrk.m4: Likewise.
33331         * m4/strptime.m4: Likewise.
33332         * m4/strsep.m4: Likewise.
33333         * m4/strtod.m4: Likewise.
33334         * m4/strtoimax.m4: Likewise.
33335         * m4/strtok_r.m4: Likewise.
33336         * m4/strtol.m4: Likewise.
33337         * m4/strtoll.m4: Likewise.
33338         * m4/strtoul.m4: Likewise.
33339         * m4/strtoull.m4: Likewise.
33340         * m4/strtoumax.m4: Likewise.
33341         * m4/strverscmp.m4: Likewise.
33342         * m4/threadlib.m4: Likewise.
33343         * m4/timegm.m4: Likewise.
33344         * m4/tm_gmtoff.m4: Likewise.
33345         * m4/tmpdir.m4: Likewise.
33346         * m4/tmpfile.m4: Likewise.
33347         * m4/tzset.m4: Likewise.
33348         * m4/uintmax_t.m4: Likewise.
33349         * m4/unlinkdir.m4: Likewise.
33350         * m4/unlocked-io.m4: Likewise.
33351         * m4/uptime.m4: Likewise.
33352         * m4/userspec.m4: Likewise.
33353         * m4/utimbuf.m4: Likewise.
33354         * m4/utime.m4: Likewise.
33355         * m4/utimes-null.m4: Likewise.
33356         * m4/utimes.m4: Likewise.
33357         * m4/vararrays.m4: Likewise.
33358         * m4/vasnprintf.m4: Likewise.
33359         * m4/vfprintf-posix.m4: Likewise.
33360         * m4/vprintf-posix.m4: Likewise.
33361         * m4/wait-process.m4: Likewise.
33362         * m4/wchar_t.m4: Likewise.
33363         * m4/wint_t.m4: Likewise.
33364         * m4/write-any-file.m4: Likewise.
33365         * m4/yield.m4: Likewise.
33366
33367 2009-01-13  Bruno Haible  <bruno@clisp.org>
33368
33369         Avoid test-copy-file.sh failures when ACL support insufficient.
33370         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33371         TESTS_ENVIRONMENT.
33372         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33373         Reported by Jim Meyering.
33374
33375 2009-01-13  Bruno Haible  <bruno@clisp.org>
33376
33377         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33378         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33379         * modules/unistdio/u8-printf-parse (Files): Likewise.
33380         * modules/unistdio/u32-printf-parse (Files): Likewise.
33381         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33382
33383 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33384
33385         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33386         and m4/inttypes_h.m4 too.
33387
33388 2009-01-12  Eric Blake  <ebb9@byu.net>
33389
33390         tests: IRIX 6.2 cc can't compile -0.0 into .data
33391         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33392         rather than at compile-time.
33393         * tests/test-floorl.c (minus_zero): Likewise.
33394         * tests/test-frexpl.c (minus_zero): Likewise.
33395         * tests/test-isnan.c (minus_zerol): Likewise.
33396         * tests/test-isnanl.h (minus_zero): Likewise.
33397         * tests/test-ldexpl.c (minus_zero): Likewise.
33398         * tests/test-roundl.c (minus_zero): Likewise.
33399         * tests/test-signbit.c (minus_zerol): Likewise.
33400         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33401         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33402         * tests/test-truncl.c (minus_zero): Likewise.
33403         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33404         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33405         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33406
33407 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33408
33409         regex: fix glibc bug 9697
33410         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33411         handling.
33412
33413 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33414
33415         regex: fix glibc bug 697
33416         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33417         being NULL also if there are no backreferences.
33418
33419 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33420
33421         regex: merge glibc changes
33422         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33423         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33424         re_string_skip_chars, re_string_reconstruct): Likewise.
33425         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33426
33427 2009-01-07  Jim Meyering  <meyering@redhat.com>
33428
33429         poll: filter through cppi
33430         * lib/poll.c: Indent cpp directives to reflect nesting.
33431
33432 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33433
33434         poll: don't return uninitialized
33435         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33436
33437 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33438
33439         avoid compile failure on AIX 6.1
33440         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33441         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33442
33443 2009-01-04  Jim Meyering  <meyering@redhat.com>
33444
33445         remove duplicate inclusion of <stdio.h>
33446         * tests/test-fprintf-posix.c: Likewise.
33447         * tests/test-printf-posix.c: Likewise.
33448         * tests/test-snprintf-posix.c: Likewise.
33449         * tests/test-sprintf-posix.c: Likewise.
33450         * tests/test-vasprintf-posix.c: Likewise.
33451         * tests/test-vfprintf-posix.c: Likewise.
33452         * tests/test-vprintf-posix.c: Likewise.
33453         * tests/test-vsnprintf-posix.c: Likewise.
33454         * tests/test-vsprintf-posix.c: Likewise.
33455
33456 2009-01-03  Jim Meyering  <meyering@redhat.com>
33457
33458         gnulib-tool: fix sed-based filtering
33459         * gnulib-tool (func_filter_filelist): Remove extra backslash
33460         in sed_fff_filter definition.
33461
33462 2009-01-02  Jim Meyering  <meyering@redhat.com>
33463
33464         strftime: avoid compilation failure on Solaris 2.6
33465         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33466         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33467         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33468         be available.  Reported by Tom G. Christensen.  Details in
33469         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33470
33471 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33472             Bruno Haible  <bruno@clisp.org>
33473
33474         Speed up gnulib-tool by doing more string processing through shell
33475         built-ins.
33476         * gnulib-tool (fast_func_append): New variable.
33477         (func_remove_prefix, func_remove_suffix): New functions.
33478         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33479         (func_filter_filelist): New function.
33480         (func_get_dependencies): Use func_remove_suffix instead of sed.
33481         (func_get_automake_snippet): Use func_filter_filelist instead of a
33482         subshell and sed invocation.
33483
33484 2009-01-01  Bruno Haible  <bruno@clisp.org>
33485
33486         Fix a security bug.
33487         * gnulib-tool (func_import, import, update): Don't allow the characters
33488         '"', '$', '`', '\' in macro arguments that become part of commands that
33489         are evaluated.
33490
33491 2009-01-01  Bruno Haible  <bruno@clisp.org>
33492
33493         * gnulib-tool (func_reset_sigpipe): Add more comments.
33494
33495 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33496
33497         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33498         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33499         already know the answer.
33500
33501 2009-01-01  Jim Meyering  <meyering@redhat.com>
33502
33503         * lib/version-etc.c (version_etc_va): Update copyright year.
33504
33505 2008-12-30  Bruno Haible  <bruno@clisp.org>
33506
33507         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33508         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33509         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33510
33511 2008-12-29  Eric Blake  <ebb9@byu.net>
33512
33513         multiarch: avoid autoconf AC_REQUIRE bug
33514         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33515         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33516         2.63 and older.
33517         Reported by Bruno Haible, and analyzed in
33518         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33519
33520 2008-12-29  Bruno Haible  <bruno@clisp.org>
33521
33522         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33523         files in subdirectories correctly.
33524         Reported by Ralf Wildenhues.
33525
33526 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33527
33528         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33529         rather than 'join FILE -', for Solaris join.
33530
33531 2008-12-29  Bruno Haible  <bruno@clisp.org>
33532
33533         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33534         quoting.
33535         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33536         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33537         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33538         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33539         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33540         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33541         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33542         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33543         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33544         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33545         * m4/nls.m4 (AM_NLS): Likewise.
33546         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33547         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33548         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33549         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33550         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33551         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33552         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33553         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33554         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33555         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33556         * m4/xsize.m4 (gl_XSIZE): Likewise.
33557         Suggested by Jim Meyering.
33558
33559 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33560
33561         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33562         * lib/parse-duration.c: use a switch instead of cascading if's.
33563
33564 2008-12-29  Eric Blake  <ebb9@byu.net>
33565
33566         wchar.h: supply WEOF on Irix 5.3
33567         * lib/wchar.in.h (wint_t): Also supply WEOF.
33568         * lib/wctype.in.h (wint_t): Likewise.
33569         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33570         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33571         Reported by Tom G. Christensen.
33572
33573 2008-12-26  Bruno Haible  <bruno@clisp.org>
33574
33575         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33576         i486, i586, i686.
33577
33578 2008-12-26  Bruno Haible  <bruno@clisp.org>
33579
33580         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33581
33582 2008-12-26  Bruno Haible  <bruno@clisp.org>
33583
33584         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33585         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33586         not __STDC_CONSTANT_MACROS.
33587         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33588
33589 2008-12-25  Bruno Haible  <bruno@clisp.org>
33590
33591         Add support for universal builds to vasnprintf.
33592         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33593         universal builds, guess no.
33594         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33595         * modules/vasprintf-posix (Depends-on): Likewise.
33596         * modules/fprintf-posix (Depends-on): Likewise.
33597         * modules/vfprintf-posix (Depends-on): Likewise.
33598         * modules/snprintf-posix (Depends-on): Likewise.
33599         * modules/vsnprintf-posix (Depends-on): Likewise.
33600         * modules/sprintf-posix (Depends-on): Likewise.
33601         * modules/vsprintf-posix (Depends-on): Likewise.
33602         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33603         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33604         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33605         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33606         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33607         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33608         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33609
33610         Add support for universal builds to <inttypes.h>.
33611         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33612         _SCNu64_PREFIX): In Apple
33613         universal builds, define directly, using _LP64.
33614         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33615         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33616         * modules/inttypes (Depends-on): Add multiarch.
33617         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33618
33619         Add support for universal builds to <stdint.h>.
33620         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33621         universal builds, define directly, using _LP64.
33622         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33623         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33624         and size_t.
33625         * modules/stdint (Depends-on): Add multiarch.
33626         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33627
33628         New module 'multiarch'.
33629         * modules/multiarch: New file.
33630         * m4/multiarch.m4: New file.
33631
33632 2008-12-25  Bruno Haible  <bruno@clisp.org>
33633
33634         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33635
33636 2008-12-25  Bruno Haible  <bruno@clisp.org>
33637
33638         * modules/btowc (License): Relicense under LGPLv2+.
33639         * modules/mbsinit (License): Likewise.
33640         * modules/mbrtowc (License): Likewise.
33641         * modules/wcrtomb (License): Likewise.
33642         * modules/streq (License): Likewise.
33643         Reported by David Lutterkort <lutter@redhat.com>.
33644
33645 2008-12-23  Bruno Haible  <bruno@clisp.org>
33646
33647         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33648
33649 2008-12-23  Bruno Haible  <bruno@clisp.org>
33650
33651         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33652         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33653         GETADDRINFO_LIB, not in LIBS.
33654         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33655         * modules/canon-host (Link): Likewise.
33656         * NEWS: Mention the change.
33657         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33658         GETADDRINFO_LIB.
33659
33660 2008-12-22  Bruno Haible  <bruno@clisp.org>
33661
33662         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33663         * doc/posix-functions/iswalpha_l.texi: Likewise.
33664         * doc/posix-functions/iswblank_l.texi: Likewise.
33665         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33666         * doc/posix-functions/iswctype_l.texi: Likewise.
33667         * doc/posix-functions/iswdigit_l.texi: Likewise.
33668         * doc/posix-functions/iswgraph_l.texi: Likewise.
33669         * doc/posix-functions/iswlower_l.texi: Likewise.
33670         * doc/posix-functions/iswprint_l.texi: Likewise.
33671         * doc/posix-functions/iswpunct_l.texi: Likewise.
33672         * doc/posix-functions/iswspace_l.texi: Likewise.
33673         * doc/posix-functions/iswupper_l.texi: Likewise.
33674         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33675         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33676         * doc/posix-functions/open_wmemstream.texi: Likewise.
33677         * doc/posix-functions/swscanf.texi: Likewise.
33678         * doc/posix-functions/towctrans_l.texi: Likewise.
33679         * doc/posix-functions/towlower.texi: Likewise.
33680         * doc/posix-functions/towlower_l.texi: Likewise.
33681         * doc/posix-functions/towupper.texi: Likewise.
33682         * doc/posix-functions/towupper_l.texi: Likewise.
33683         * doc/posix-functions/vfwprintf.texi: Likewise.
33684         * doc/posix-functions/vfwscanf.texi: Likewise.
33685         * doc/posix-functions/vswscanf.texi: Likewise.
33686         * doc/posix-functions/vwprintf.texi: Likewise.
33687         * doc/posix-functions/vwscanf.texi: Likewise.
33688         * doc/posix-functions/wcpcpy.texi: Likewise.
33689         * doc/posix-functions/wcpncpy.texi: Likewise.
33690         * doc/posix-functions/wcscasecmp.texi: Likewise.
33691         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33692         * doc/posix-functions/wcscoll_l.texi: Likewise.
33693         * doc/posix-functions/wcsdup.texi: Likewise.
33694         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33695         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33696         * doc/posix-functions/wcsnlen.texi: Likewise.
33697         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33698         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33699         * doc/posix-functions/wctrans_l.texi: Likewise.
33700         * doc/posix-functions/wctype_l.texi: Likewise.
33701         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33702         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33703         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33704         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33705         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33706         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33707         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33708         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33709         * doc/glibc-functions/wcschrnul.texi: Likewise.
33710         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33711         * doc/glibc-functions/wcstod_l.texi: Likewise.
33712         * doc/glibc-functions/wcstof_l.texi: Likewise.
33713         * doc/glibc-functions/wcstol_l.texi: Likewise.
33714         * doc/glibc-functions/wcstold_l.texi: Likewise.
33715         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33716         * doc/glibc-functions/wcstoq.texi: Likewise.
33717         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33718         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33719         * doc/glibc-functions/wcstouq.texi: Likewise.
33720         * doc/glibc-functions/wmempcpy.texi: Likewise.
33721
33722 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33723             Eric Blake  <ebb9@byu.net>
33724             Paolo Bonzini  <bonzini@gnu.org>
33725             Bruno Haible  <bruno@clisp.org>
33726
33727         Make c-stack work on Haiku.
33728         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33729         (c_stack_action): Use SA_ONSTACK flag.
33730
33731 2008-12-22  Bruno Haible  <bruno@clisp.org>
33732
33733         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33734
33735 2008-12-22  Bruno Haible  <bruno@clisp.org>
33736
33737         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33738         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33739         being overridden.
33740         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33741         New macros.
33742         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33743         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33744         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33745         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33746
33747 2008-12-22  Bruno Haible  <bruno@clisp.org>
33748
33749         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33750         from test code.
33751
33752 2008-12-22  Eric Blake  <ebb9@byu.net>
33753
33754         Avoid gcc warnings on cygwin.
33755         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33756         Avoid unused variable.
33757         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33758         Likewise.
33759
33760 2008-12-22  Bruno Haible  <bruno@clisp.org>
33761
33762         Remove HAVE_MBRTOWC conditionals.
33763         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33764         (mbscasecmp): Assume mbrtowc function.
33765         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33766         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33767         * lib/mbschr.c: Include mbuiter.h unconditionally.
33768         (mbschr): Assume mbrtowc function.
33769         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33770         (mbscspn): Assume mbrtowc function.
33771         * lib/mbslen.c: Include mbuiter.h unconditionally.
33772         (mbslen): Assume mbrtowc function.
33773         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33774         (mbsncasecmp): Assume mbrtowc function.
33775         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33776         (mbsnlen): Assume mbrtowc function.
33777         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33778         (mbspbrk): Assume mbrtowc function.
33779         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33780         (mbspcasecmp): Assume mbrtowc function.
33781         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33782         (mbsrchr): Assume mbrtowc function.
33783         * lib/mbssep.c: Include mbuiter.h unconditionally.
33784         (mbssep): Assume mbrtowc function.
33785         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33786         (mbsspn): Assume mbrtowc function.
33787         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33788         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33789         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33790         (mbstok_r): Assume mbrtowc function.
33791         * lib/propername.c: Include mbuiter.h unconditionally.
33792         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33793         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33794         (trim2): Assume mbrtowc function.
33795         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33796         (mbsnwidth): Assume mbrtowc function.
33797         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33798         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33799         fallback definitions.
33800         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33801
33802 2008-12-22  Bruno Haible  <bruno@clisp.org>
33803
33804         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33805
33806 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33807
33808         * modules/regex: Request emulations for the mb*/wc* functions we need.
33809         * m4/regex.m4: Don't look for those functions here.
33810         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33811
33812 2008-12-22  Bruno Haible  <bruno@clisp.org>
33813
33814         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33815
33816 2008-12-21  Bruno Haible  <bruno@clisp.org>
33817
33818         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33819         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33820         (Include): Remove conditionalization.
33821         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33822         (Include): Remove conditionalization.
33823         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33824         (Include): Remove conditionalization.
33825         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33826         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33827         * NEWS: Mention the change.
33828         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33829         via Sergey Poznyakoff <gray@gnu.org.ua>.
33830
33831 2008-12-21  Bruno Haible  <bruno@clisp.org>
33832
33833         * MODULES.html.sh (Extended multibyte and wide character utilities
33834         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33835         wcrtomb, wcsrtombs.
33836         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33837         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33838         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33839         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33840
33841 2008-12-21  Bruno Haible  <bruno@clisp.org>
33842
33843         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33844
33845 2008-12-21  Bruno Haible  <bruno@clisp.org>
33846
33847         * modules/wcsnrtombs-tests: New file.
33848         * tests/test-wcsnrtombs1.sh: New file.
33849         * tests/test-wcsnrtombs2.sh: New file.
33850         * tests/test-wcsnrtombs3.sh: New file.
33851         * tests/test-wcsnrtombs4.sh: New file.
33852         * tests/test-wcsnrtombs.c: New file.
33853
33854         New module 'wcsnrtombs'.
33855         * lib/wchar.in.h (wcsnrtombs): New declaration.
33856         * lib/wcsnrtombs.c: New file.
33857         * lib/wcsrtombs-state.c: New file.
33858         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33859         (internal_state): Remove variable.
33860         * m4/wcsnrtombs.m4: New file.
33861         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33862         compilation units.
33863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33864         HAVE_WCSNRTOMBS.
33865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33866         HAVE_WCSNRTOMBS.
33867         * modules/wcsnrtombs: New file.
33868         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33869         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33870
33871 2008-12-21  Bruno Haible  <bruno@clisp.org>
33872
33873         * modules/wcsrtombs-tests: New file.
33874         * tests/test-wcsrtombs1.sh: New file.
33875         * tests/test-wcsrtombs2.sh: New file.
33876         * tests/test-wcsrtombs3.sh: New file.
33877         * tests/test-wcsrtombs4.sh: New file.
33878         * tests/test-wcsrtombs.c: New file.
33879
33880         New module 'wcsrtombs'.
33881         * lib/wchar.in.h (wcsrtombs): New declaration.
33882         * lib/wcsrtombs.c: New file.
33883         * m4/wcsrtombs.m4: New file.
33884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33885         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33887         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33888         * modules/wcsrtombs: New file.
33889         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33890         bugs.
33891
33892 2008-12-21  Bruno Haible  <bruno@clisp.org>
33893
33894         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33895         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33896         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33897         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33898         if not correct.
33899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33900         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33901         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33902         m4/locale-zh.m4, m4/codeset.m4.
33903         * doc/posix-functions/wcrtomb.texi: Document the bug.
33904
33905 2008-12-21  Bruno Haible  <bruno@clisp.org>
33906
33907         Work around a btowc() bug on IRIX 6.5.
33908         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33909         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33910         REPLACE_WTOBC if not.
33911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33912         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33913         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33914
33915 2008-12-21  Bruno Haible  <bruno@clisp.org>
33916
33917         * modules/wcrtomb-tests: New file.
33918         * tests/test-wcrtomb.sh: New file.
33919         * tests/test-wcrtomb.c: New file.
33920
33921         New module 'wcrtomb'.
33922         * lib/wchar.in.h (wcrtomb): New declaration.
33923         * lib/wcrtomb.c: New file.
33924         * m4/wcrtomb.m4: New file.
33925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33926         HAVE_WCRTOMB.
33927         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33928         HAVE_WCRTOMB.
33929         * modules/wcrtomb: New file.
33930         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33931
33932 2008-12-21  Bruno Haible  <bruno@clisp.org>
33933
33934         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33935         * modules/mbsrtowcs (Files): Likewise.
33936         * modules/wctob (Files): Likewise.
33937         * modules/c-strcase-tests (Files): Likewise.
33938         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33939         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33940         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33941         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33942         * modules/vasnprintf-posix-tests (Files): Likewise.
33943
33944 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33945
33946         gitlog-to-changelog: pass all command-line arguments to git-log
33947         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33948         it is sometimes convenient to filter the commits in various ways.
33949         gitlog-to-changelog only allows --since to specify a start date,
33950         but git-log itself supports many other filtering mechanisms.
33951         At the moment, I want to filter by branch name.  Rather than
33952         adding a --branch option to gitlog-to-changelog, it seems more
33953         flexible to simply pass all options directly to git-log and let
33954         git do the work.  Notice that this effectively makes --since a
33955         redundant option for gitlog-to-changelog, but removing it would
33956         require current usage to change since calls would then require
33957         an additional '--'.
33958
33959 2008-12-21  Bruno Haible  <bruno@clisp.org>
33960
33961         * modules/mbsnrtowcs-tests: New file.
33962         * tests/test-mbsnrtowcs1.sh: New file.
33963         * tests/test-mbsnrtowcs2.sh: New file.
33964         * tests/test-mbsnrtowcs3.sh: New file.
33965         * tests/test-mbsnrtowcs4.sh: New file.
33966         * tests/test-mbsnrtowcs.c: New file.
33967
33968         New module 'mbsnrtowcs'.
33969         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33970         * lib/mbsnrtowcs.c: New file.
33971         * lib/mbsrtowcs-state.c: New file.
33972         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33973         (internal_state): Remove variable.
33974         * m4/mbsnrtowcs.m4: New file.
33975         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33976         compilation units.
33977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33978         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33979         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33980         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33981         * modules/mbsnrtowcs: New file.
33982         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33983         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33984         portability problem.
33985
33986 2008-12-21  Bruno Haible  <bruno@clisp.org>
33987
33988         Work around mbsrtowcs bug.
33989         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33990         (gl_FUNC_MBSRTOWCS): Invoke it.
33991         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33992         m4/locale-zh.m4.
33993         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33994
33995 2008-12-21  Bruno Haible  <bruno@clisp.org>
33996
33997         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33998
33999 2008-12-21  Bruno Haible  <bruno@clisp.org>
34000
34001         Update doc for AIX.
34002         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34003         16-bit wchar_t type.
34004         * doc/posix-functions/btowc.texi: Likewise.
34005         * doc/posix-functions/fgetwc.texi: Likewise.
34006         * doc/posix-functions/fgetws.texi: Likewise.
34007         * doc/posix-functions/fputwc.texi: Likewise.
34008         * doc/posix-functions/fputws.texi: Likewise.
34009         * doc/posix-functions/fwide.texi: Likewise.
34010         * doc/posix-functions/fwprintf.texi: Likewise.
34011         * doc/posix-functions/fwscanf.texi: Likewise.
34012         * doc/posix-functions/getwchar.texi: Likewise.
34013         * doc/posix-functions/getwc.texi: Likewise.
34014         * doc/posix-functions/iswalnum.texi: Likewise.
34015         * doc/posix-functions/iswalpha.texi: Likewise.
34016         * doc/posix-functions/iswblank.texi: Likewise.
34017         * doc/posix-functions/iswcntrl.texi: Likewise.
34018         * doc/posix-functions/iswctype.texi: Likewise.
34019         * doc/posix-functions/iswdigit.texi: Likewise.
34020         * doc/posix-functions/iswgraph.texi: Likewise.
34021         * doc/posix-functions/iswlower.texi: Likewise.
34022         * doc/posix-functions/iswprint.texi: Likewise.
34023         * doc/posix-functions/iswpunct.texi: Likewise.
34024         * doc/posix-functions/iswspace.texi: Likewise.
34025         * doc/posix-functions/iswupper.texi: Likewise.
34026         * doc/posix-functions/iswxdigit.texi: Likewise.
34027         * doc/posix-functions/mbrtowc.texi: Likewise.
34028         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34029         * doc/posix-functions/mbstowcs.texi: Likewise.
34030         * doc/posix-functions/mbtowc.texi: Likewise.
34031         * doc/posix-functions/putwchar.texi: Likewise.
34032         * doc/posix-functions/putwc.texi: Likewise.
34033         * doc/posix-functions/swprintf.texi: Likewise.
34034         * doc/posix-functions/tolower.texi: Likewise.
34035         * doc/posix-functions/toupper.texi: Likewise.
34036         * doc/posix-functions/towctrans.texi: Likewise.
34037         * doc/posix-functions/ungetwc.texi: Likewise.
34038         * doc/posix-functions/vswprintf.texi: Likewise.
34039         * doc/posix-functions/wcrtomb.texi: Likewise.
34040         * doc/posix-functions/wcscat.texi: Likewise.
34041         * doc/posix-functions/wcschr.texi: Likewise.
34042         * doc/posix-functions/wcscmp.texi: Likewise.
34043         * doc/posix-functions/wcscoll.texi: Likewise.
34044         * doc/posix-functions/wcscpy.texi: Likewise.
34045         * doc/posix-functions/wcscspn.texi: Likewise.
34046         * doc/posix-functions/wcsftime.texi: Likewise.
34047         * doc/posix-functions/wcslen.texi: Likewise.
34048         * doc/posix-functions/wcsncat.texi: Likewise.
34049         * doc/posix-functions/wcsncmp.texi: Likewise.
34050         * doc/posix-functions/wcsncpy.texi: Likewise.
34051         * doc/posix-functions/wcspbrk.texi: Likewise.
34052         * doc/posix-functions/wcsrchr.texi: Likewise.
34053         * doc/posix-functions/wcsrtombs.texi: Likewise.
34054         * doc/posix-functions/wcsspn.texi: Likewise.
34055         * doc/posix-functions/wcsstr.texi: Likewise.
34056         * doc/posix-functions/wcstod.texi: Likewise.
34057         * doc/posix-functions/wcstof.texi: Likewise.
34058         * doc/posix-functions/wcstoimax.texi: Likewise.
34059         * doc/posix-functions/wcstok.texi: Likewise.
34060         * doc/posix-functions/wcstold.texi: Likewise.
34061         * doc/posix-functions/wcstoll.texi: Likewise.
34062         * doc/posix-functions/wcstol.texi: Likewise.
34063         * doc/posix-functions/wcstombs.texi: Likewise.
34064         * doc/posix-functions/wcstoull.texi: Likewise.
34065         * doc/posix-functions/wcstoul.texi: Likewise.
34066         * doc/posix-functions/wcstoumax.texi: Likewise.
34067         * doc/posix-functions/wcswidth.texi: Likewise.
34068         * doc/posix-functions/wcsxfrm.texi: Likewise.
34069         * doc/posix-functions/wctob.texi: Likewise.
34070         * doc/posix-functions/wctomb.texi: Likewise.
34071         * doc/posix-functions/wctrans.texi: Likewise.
34072         * doc/posix-functions/wctype.texi: Likewise.
34073         * doc/posix-functions/wcwidth.texi: Likewise.
34074         * doc/posix-functions/wmemchr.texi: Likewise.
34075         * doc/posix-functions/wmemcmp.texi: Likewise.
34076         * doc/posix-functions/wmemcpy.texi: Likewise.
34077         * doc/posix-functions/wmemmove.texi: Likewise.
34078         * doc/posix-functions/wmemset.texi: Likewise.
34079         * doc/posix-functions/wprintf.texi: Likewise.
34080         * doc/posix-functions/wscanf.texi: Likewise.
34081
34082 2008-12-21  Bruno Haible  <bruno@clisp.org>
34083
34084         Update doc for HP-UX 11.11.
34085         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34086         in HP-UX version 11.00, not in all versions of HP-UX 11.
34087         * doc/posix-functions/fwide.texi: Likewise.
34088         * doc/posix-functions/fwprintf.texi: Likewise.
34089         * doc/posix-functions/fwscanf.texi: Likewise.
34090         * doc/posix-functions/inet_ntop.texi: Likewise.
34091         * doc/posix-functions/inet_pton.texi: Likewise.
34092         * doc/posix-functions/mbrlen.texi: Likewise.
34093         * doc/posix-functions/mbrtowc.texi: Likewise.
34094         * doc/posix-functions/mbsinit.texi: Likewise.
34095         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34096         * doc/posix-functions/swprintf.texi: Likewise.
34097         * doc/posix-functions/swscanf.texi: Likewise.
34098         * doc/posix-functions/towctrans.texi: Likewise.
34099         * doc/posix-functions/vfwprintf.texi: Likewise.
34100         * doc/posix-functions/vswprintf.texi: Likewise.
34101         * doc/posix-functions/vwprintf.texi: Likewise.
34102         * doc/posix-functions/wcrtomb.texi: Likewise.
34103         * doc/posix-functions/wcsrtombs.texi: Likewise.
34104         * doc/posix-functions/wcsstr.texi: Likewise.
34105         * doc/posix-functions/wctob.texi: Likewise.
34106         * doc/posix-functions/wctrans.texi: Likewise.
34107         * doc/posix-functions/wmemchr.texi: Likewise.
34108         * doc/posix-functions/wmemcmp.texi: Likewise.
34109         * doc/posix-functions/wmemcpy.texi: Likewise.
34110         * doc/posix-functions/wmemmove.texi: Likewise.
34111         * doc/posix-functions/wmemset.texi: Likewise.
34112         * doc/posix-functions/wprintf.texi: Likewise.
34113         * doc/posix-functions/wscanf.texi: Likewise.
34114
34115 2008-12-21  Bruno Haible  <bruno@clisp.org>
34116
34117         Work around a portability problem.
34118         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34119         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34120
34121 2008-12-20  Bruno Haible  <bruno@clisp.org>
34122
34123         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34124         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34125         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34127         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34128
34129         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34130         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34131         set.
34132         (GNULIB_defined_mbstate_t): New macro.
34133         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34134         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34135         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34136         reuses the system's mbrtowc function but works around the bugs.
34137         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34138         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34139         macros.
34140         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34141         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34142         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34143         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34144         REPLACE_MBSINIT if mbsinit needs to be overridden.
34145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34146         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34147         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34148         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34149         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34150         m4/locale-zh.m4.
34151         (Depends): Add mbsinit.
34152         * modules/mbsinit (Depends): Add mbrtowc.
34153         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34154
34155 2008-12-20  Bruno Haible  <bruno@clisp.org>
34156
34157         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34158         so that there are no conversion errors on AIX.
34159         * tests/test-mbsrtowcs.c (main): LIkewise.
34160
34161 2008-12-20  Bruno Haible  <bruno@clisp.org>
34162
34163         Work around wctob bug on Solaris <= 9.
34164         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34165         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34167         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34168         * modules/wctob (Files): Add m4/locale-fr.m4.
34169         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34170
34171 2008-12-20  Bruno Haible  <bruno@clisp.org>
34172
34173         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34174         /dev/null.
34175         * tests/test-select-in.sh: Likewise.
34176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34177
34178 2008-12-20  Bruno Haible  <bruno@clisp.org>
34179
34180         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34181         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34182         Cygwin 1.5.x.
34183
34184 2008-12-20  Bruno Haible  <bruno@clisp.org>
34185
34186         Ensure mbstate_t is defined on HP-UX 11.11.
34187         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34188         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34189         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34190         AC_USE_SYSTEM_EXTENSIONS.
34191         * modules/fnmatch (Depends-on): Add extensions.
34192         * modules/mbrlen (Depends-on): Likewise.
34193         * modules/mbrtowc (Depends-on): Likewise.
34194         * modules/mbsinit (Depends-on): Likewise.
34195         * modules/mbsrtowcs (Depends-on): Likewise.
34196         * modules/mbswidth (Depends-on): Likewise.
34197         * modules/quotearg (Depends-on): Likewise.
34198         * modules/strftime (Depends-on): Likewise.
34199
34200 2008-12-20  Bruno Haible  <bruno@clisp.org>
34201
34202         Ensure wctob is declared on IRIX 6.5.
34203         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34204         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34205         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34207         of HAVE_WCTOB.
34208         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34209         HAVE_WCTOB.
34210         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34211
34212 2008-12-19  Bruno Haible  <bruno@clisp.org>
34213
34214         * modules/mbsrtowcs-tests: New file.
34215         * tests/test-mbsrtowcs1.sh: New file.
34216         * tests/test-mbsrtowcs2.sh: New file.
34217         * tests/test-mbsrtowcs3.sh: New file.
34218         * tests/test-mbsrtowcs4.sh: New file.
34219         * tests/test-mbsrtowcs.c: New file.
34220
34221         New module 'mbsrtowcs'.
34222         * lib/wchar.in.h (mbsrtowcs): New declaration.
34223         * lib/mbsrtowcs.c: New file.
34224         * m4/mbsrtowcs.m4: New file.
34225         * modules/mbsrtowcs: New file.
34226         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34227         HAVE_MBSRTOWCS.
34228         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34229         HAVE_MBSRTOWCS.
34230         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34231
34232 2008-12-19  Bruno Haible  <bruno@clisp.org>
34233
34234         New module 'mbrlen'.
34235         * lib/wchar.in.h (mbrlen): New declaration.
34236         * lib/mbrlen.c: New file.
34237         * m4/mbrlen.m4: New file.
34238         * modules/mbrlen: New file.
34239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34240         HAVE_MBRLEN.
34241         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34242         HAVE_MBRLEN.
34243         * doc/posix-functions/mbrlen.texi: Document the new module.
34244
34245 2008-12-19  Bruno Haible  <bruno@clisp.org>
34246
34247         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34248         * modules/mbrtowc (Depends-on): Add verify.
34249         Suggested by Paul Eggert.
34250
34251 2008-12-18  Bruno Haible  <bruno@clisp.org>
34252
34253         * modules/mbsinit-tests: New file.
34254         * tests/test-mbsinit.sh: New file.
34255         * tests/test-mbsinit.c: New file.
34256
34257 2008-12-18  Bruno Haible  <bruno@clisp.org>
34258
34259         * modules/mbrtowc-tests: New file.
34260         * tests/test-mbrtowc1.sh: New file.
34261         * tests/test-mbrtowc2.sh: New file.
34262         * tests/test-mbrtowc3.sh: New file.
34263         * tests/test-mbrtowc4.sh: New file.
34264         * tests/test-mbrtowc.c: New file.
34265
34266         New module 'mbrtowc'.
34267         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34268         mbsinit and mbrtowc.
34269         (mbrtowc): New declaration.
34270         * lib/mbrtowc.c: New file.
34271         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34272         * modules/mbrtowc: New file.
34273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34274         HAVE_MBRTOWC.
34275         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34276         HAVE_MBRTOWC.
34277         * doc/posix-functions/mbrtowc.texi: Document the new module.
34278
34279 2008-12-18  Bruno Haible  <bruno@clisp.org>
34280
34281         New module 'wctob'.
34282         * lib/wchar.in.h (wctob): New declaration.
34283         * lib/wctob.c: New file.
34284         * m4/wctob.m4: New file.
34285         * modules/wctob: New file.
34286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34287         HAVE_WCTOB.
34288         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34289         * doc/posix-functions/wctob.texi: Document the new module.
34290
34291 2008-12-18  Bruno Haible  <bruno@clisp.org>
34292
34293         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34294         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34295
34296 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34297
34298         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34299         G. Christensen" <tgc@jupiterrise.com>.
34300
34301         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34302         G. Christensen" <tgc@jupiterrise.com>.
34303
34304         * lib/flock.c: Need to include string.h.  Reported by "Tom
34305         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34306         <ebb9@byu.net>.
34307
34308 2008-12-18  Bruno Haible  <bruno@clisp.org>
34309
34310         * m4/locale-ja.m4: New file, from GNU gettext.
34311
34312 2008-12-17  Bruno Haible  <bruno@clisp.org>
34313
34314         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34315         Suggested by Eric Blake.
34316
34317 2008-12-17  Bruno Haible  <bruno@clisp.org>
34318
34319         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34320
34321 2008-12-17  Bruno Haible  <bruno@clisp.org>
34322
34323         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34324         * modules/mbsinit (Depends-on): Add verify.
34325         Suggested by Paul Eggert.
34326
34327 2008-12-17  Bruno Haible  <bruno@clisp.org>
34328
34329         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34330         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34331         gl_FUNC_MBRTOWC.
34332         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34333         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34334         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34335         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34336         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34337         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34338         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34339         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34340         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34341         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34342         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34343         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34344         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34345         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34346         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34347         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34348         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34349         * modules/trim (configure.ac): Likewise.
34350
34351 2008-12-17  Bruno Haible  <bruno@clisp.org>
34352
34353         * modules/btowc-tests: New file.
34354         * tests/test-btowc1.sh: New file.
34355         * tests/test-btowc2.sh: New file.
34356         * tests/test-btowc.c: New file.
34357
34358         New module 'btowc'.
34359         * lib/wchar.in.h (btowc): New declaration.
34360         * lib/btowc.c: New file.
34361         * m4/btowc.m4: New file.
34362         * modules/btowc: New file.
34363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34364         HAVE_BTOWC.
34365         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34366         * doc/posix-functions/btowc.texi: Document the new module.
34367
34368 2008-12-17  Bruno Haible  <bruno@clisp.org>
34369
34370         New module 'mbsinit'.
34371         * lib/wchar.in.h (mbsinit): New declaration.
34372         * lib/mbsinit.c: New file.
34373         * m4/mbsinit.m4: New file.
34374         * modules/mbsinit: New file.
34375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34376         HAVE_MBSINIT.
34377         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34378         HAVE_MBSINIT.
34379         * doc/posix-functions/mbsinit.texi: Document the new module.
34380
34381 2008-12-16  Bruno Haible  <bruno@clisp.org>
34382
34383         * lib/unistd.in.h: Add comment.
34384         * tests/test-environ.c: Don't include <stdlib.h>.
34385
34386 2008-12-16  Bruno Haible  <bruno@clisp.org>
34387
34388         * lib/parse-duration.h (parse_duration): Document return value
34389         convention.
34390         * lib/parse-duration.c: Include specification header first. Add
34391         comments.
34392         (_): Remove macro.
34393         (parse_year_month_day, parse_hour_minute_second): Move side effects
34394         outside of strchr call.
34395         (parse_non_iso8601): Move side effects outside of isspace call.
34396         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34397         call.
34398
34399 2008-12-16  Bruno Haible  <bruno@clisp.org>
34400
34401         * tests/test-parse-duration.sh: Produce no output when the test
34402         succeeds.
34403
34404 2008-12-16  Bruno Haible  <bruno@clisp.org>
34405
34406         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34407         expressions.
34408
34409 2008-12-15  Bruno Haible  <bruno@clisp.org>
34410
34411         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34412         * doc/glibc-functions/flistxattr.texi: Likewise.
34413         * doc/glibc-functions/fopencookie.texi: Likewise.
34414         * doc/glibc-functions/fremovexattr.texi: Likewise.
34415         * doc/glibc-functions/fsetxattr.texi: Likewise.
34416         * doc/glibc-functions/getxattr.texi: Likewise.
34417         * doc/glibc-functions/lgetxattr.texi: Likewise.
34418         * doc/glibc-functions/listxattr.texi: Likewise.
34419         * doc/glibc-functions/llistxattr.texi: Likewise.
34420         * doc/glibc-functions/lremovexattr.texi: Likewise.
34421         * doc/glibc-functions/lsetxattr.texi: Likewise.
34422         * doc/glibc-functions/removexattr.texi: Likewise.
34423         * doc/glibc-functions/setxattr.texi: Likewise.
34424         * doc/posix-functions/open_memstream.texi: Likewise.
34425
34426 2008-12-15  Eric Blake  <ebb9@byu.net>
34427
34428         Update doc for cygwin 1.7.
34429         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34430         functions.
34431         * doc/posix-functions/fchmodat.texi: Likewise.
34432         * doc/posix-functions/fchownat.texi: Likewise.
34433         * doc/posix-functions/fdopendir.texi: Likewise.
34434         * doc/posix-functions/fmemopen.texi: Likewise.
34435         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34436         * doc/posix-functions/fstatat.texi: Likewise.
34437         * doc/posix-functions/futimens.texi: Likewise.
34438         * doc/posix-functions/gai_strerror.texi: Likewise.
34439         * doc/posix-functions/getaddrinfo.texi: Likewise.
34440         * doc/posix-functions/getnameinfo.texi: Likewise.
34441         * doc/posix-functions/if_freenameindex.texi: Likewise.
34442         * doc/posix-functions/if_indextoname.texi: Likewise.
34443         * doc/posix-functions/if_nameindex.texi: Likewise.
34444         * doc/posix-functions/if_nametoindex.texi: Likewise.
34445         * doc/posix-functions/insque.texi: Likewise.
34446         * doc/posix-functions/linkat.texi: Likewise.
34447         * doc/posix-functions/llrint.texi: Likewise.
34448         * doc/posix-functions/llrintf.texi: Likewise.
34449         * doc/posix-functions/llrintl.texi: Likewise.
34450         * doc/posix-functions/lockf.texi: Likewise.
34451         * doc/posix-functions/lrintl.texi: Likewise.
34452         * doc/posix-functions/mkdirat.texi: Likewise.
34453         * doc/posix-functions/mkfifoat.texi: Likewise.
34454         * doc/posix-functions/mknodat.texi: Likewise.
34455         * doc/posix-functions/mq_close.texi: Likewise.
34456         * doc/posix-functions/mq_getattr.texi: Likewise.
34457         * doc/posix-functions/mq_notify.texi: Likewise.
34458         * doc/posix-functions/mq_open.texi: Likewise.
34459         * doc/posix-functions/mq_receive.texi: Likewise.
34460         * doc/posix-functions/mq_send.texi: Likewise.
34461         * doc/posix-functions/mq_setattr.texi: Likewise.
34462         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34463         * doc/posix-functions/mq_timedsend.texi: Likewise.
34464         * doc/posix-functions/mq_unlink.texi: Likewise.
34465         * doc/posix-functions/open_memstream.texi: Likewise.
34466         * doc/posix-functions/openat.texi: Likewise.
34467         * doc/posix-functions/posix_fadvise.texi: Likewise.
34468         * doc/posix-functions/posix_fallocate.texi: Likewise.
34469         * doc/posix-functions/posix_madvise.texi: Likewise.
34470         * doc/posix-functions/posix_memalign.texi: Likewise.
34471         * doc/posix-functions/posix_openpt.texi: Likewise.
34472         * doc/posix-functions/readlinkat.texi: Likewise.
34473         * doc/posix-functions/remque.texi: Likewise.
34474         * doc/posix-functions/renameat.texi: Likewise.
34475         * doc/posix-functions/rintl.texi: Likewise.
34476         * doc/posix-functions/sem_unlink.texi: Likewise.
34477         * doc/posix-functions/shm_open.texi: Likewise.
34478         * doc/posix-functions/shm_unlink.texi: Likewise.
34479         * doc/posix-functions/signgam.texi: Likewise.
34480         * doc/posix-functions/sigset.texi: Likewise.
34481         * doc/posix-functions/stpcpy.texi: Likewise.
34482         * doc/posix-functions/stpncpy.texi: Likewise.
34483         * doc/posix-functions/strerror.texi: Likewise.
34484         * doc/posix-functions/strtod.texi: Likewise.
34485         * doc/posix-functions/symlinkat.texi: Likewise.
34486         * doc/posix-functions/unlinkat.texi: Likewise.
34487         * doc/posix-functions/utimensat.texi: Likewise.
34488         * doc/glibc-functions/bindresvport.texi: Likewise.
34489         * doc/glibc-functions/dn_expand.texi: Likewise.
34490         * doc/glibc-functions/exp10.texi: Likewise.
34491         * doc/glibc-functions/exp10f.texi: Likewise.
34492         * doc/glibc-functions/fgetxattr.texi: Likewise.
34493         * doc/glibc-functions/flistxattr.texi: Likewise.
34494         * doc/glibc-functions/fopencookie.texi: Likewise.
34495         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34496         * doc/glibc-functions/fremovexattr.texi: Likewise.
34497         * doc/glibc-functions/fsetxattr.texi: Likewise.
34498         * doc/glibc-functions/getifaddrs.texi: Likewise.
34499         * doc/glibc-functions/getxattr.texi: Likewise.
34500         * doc/glibc-functions/lgetxattr.texi: Likewise.
34501         * doc/glibc-functions/listxattr.texi: Likewise.
34502         * doc/glibc-functions/llistxattr.texi: Likewise.
34503         * doc/glibc-functions/lremovexattr.texi: Likewise.
34504         * doc/glibc-functions/lsetxattr.texi: Likewise.
34505         * doc/glibc-functions/pow10.texi: Likewise.
34506         * doc/glibc-functions/pow10f.texi: Likewise.
34507         * doc/glibc-functions/rcmd_af.texi: Likewise.
34508         * doc/glibc-functions/removexattr.texi: Likewise.
34509         * doc/glibc-functions/res_init.texi: Likewise.
34510         * doc/glibc-functions/res_mkquery.texi: Likewise.
34511         * doc/glibc-functions/res_query.texi: Likewise.
34512         * doc/glibc-functions/res_querydomain.texi: Likewise.
34513         * doc/glibc-functions/res_send.texi: Likewise.
34514         * doc/glibc-functions/rresvport_af.texi: Likewise.
34515         * doc/glibc-functions/setxattr.texi: Likewise.
34516         * doc/glibc-functions/strcasestr.texi: Likewise.
34517
34518 2008-12-15  Bruno Haible  <bruno@clisp.org>
34519
34520         Fix compilation error on OSF/1 4.0.
34521         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34522         <sys/time.h>, simply delegate to the system header.
34523         Reported by Daniel Richard G. <oss@teragram.com>.
34524
34525 2008-12-15  Bruno Haible  <bruno@clisp.org>
34526
34527         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34528         * doc/posix-functions/fchmodat.texi: Likewise.
34529         * doc/posix-functions/fchownat.texi: Likewise.
34530         * doc/posix-functions/fdopendir.texi: Likewise.
34531         * doc/posix-functions/fstatat.texi: Likewise.
34532         * doc/posix-functions/mkdirat.texi: Likewise.
34533         * doc/posix-functions/unlinkat.texi: Likewise.
34534
34535 2008-12-14  Bruno Haible  <bruno@clisp.org>
34536
34537         Update doc for POSIX:2008.
34538         * doc/posix-functions/faccessat.texi: New file.
34539         * doc/posix-functions/fchmodat.texi: New file.
34540         * doc/posix-functions/fchownat.texi: New file.
34541         * doc/posix-functions/fdopendir.texi: New file.
34542         * doc/posix-functions/fstatat.texi: New file.
34543         * doc/posix-functions/futimens.texi: New file.
34544         * doc/posix-functions/linkat.texi: New file.
34545         * doc/posix-functions/mkdirat.texi: New file.
34546         * doc/posix-functions/mkfifoat.texi: New file.
34547         * doc/posix-functions/mknodat.texi: New file.
34548         * doc/posix-functions/open_wmemstream.texi: New file.
34549         * doc/posix-functions/openat.texi: New file.
34550         * doc/posix-functions/psiginfo.texi: New file.
34551         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34552         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34553         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34554         * doc/posix-functions/readlinkat.texi: New file.
34555         * doc/posix-functions/renameat.texi: New file.
34556         * doc/posix-functions/strerror_l.texi: New file.
34557         * doc/posix-functions/symlinkat.texi: New file.
34558         * doc/posix-functions/unlinkat.texi: New file.
34559         * doc/posix-functions/utimensat.texi: New file.
34560         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34561
34562 2008-12-14  Bruno Haible  <bruno@clisp.org>
34563
34564         Update doc for POSIX:2008.
34565         * doc/posix-functions/alphasort.texi: Renamed from
34566         doc/glibc-functions/alphasort.texi.
34567         * doc/posix-functions/dirfd.texi: Renamed from
34568         doc/glibc-functions/dirfd.texi.
34569         * doc/posix-functions/dprintf.texi: Renamed from
34570         doc/glibc-functions/dprintf.texi.
34571         * doc/posix-functions/duplocale.texi: Renamed from
34572         doc/glibc-functions/duplocale.texi.
34573         * doc/posix-functions/fexecve.texi: Renamed from
34574         doc/glibc-functions/fexecve.texi.
34575         * doc/posix-functions/fmemopen.texi: Renamed from
34576         doc/glibc-functions/fmemopen.texi.
34577         * doc/posix-functions/freelocale.texi: Renamed from
34578         doc/glibc-functions/freelocale.texi.
34579         * doc/posix-functions/getdate_err.texi: Renamed from
34580         doc/glibc-functions/getdate_err.texi.
34581         * doc/posix-functions/isalnum_l.texi: Renamed from
34582         doc/glibc-functions/isalnum_l.texi.
34583         * doc/posix-functions/isalpha_l.texi: Renamed from
34584         doc/glibc-functions/isalpha_l.texi.
34585         * doc/posix-functions/isblank_l.texi: Renamed from
34586         doc/glibc-functions/isblank_l.texi.
34587         * doc/posix-functions/iscntrl_l.texi: Renamed from
34588         doc/glibc-functions/iscntrl_l.texi.
34589         * doc/posix-functions/isdigit_l.texi: Renamed from
34590         doc/glibc-functions/isdigit_l.texi.
34591         * doc/posix-functions/isgraph_l.texi: Renamed from
34592         doc/glibc-functions/isgraph_l.texi.
34593         * doc/posix-functions/islower_l.texi: Renamed from
34594         doc/glibc-functions/islower_l.texi.
34595         * doc/posix-functions/isprint_l.texi: Renamed from
34596         doc/glibc-functions/isprint_l.texi.
34597         * doc/posix-functions/ispunct_l.texi: Renamed from
34598         doc/glibc-functions/ispunct_l.texi.
34599         * doc/posix-functions/isspace_l.texi: Renamed from
34600         doc/glibc-functions/isspace_l.texi.
34601         * doc/posix-functions/isupper_l.texi: Renamed from
34602         doc/glibc-functions/isupper_l.texi.
34603         * doc/posix-functions/iswalnum_l.texi: Renamed from
34604         doc/glibc-functions/iswalnum_l.texi.
34605         * doc/posix-functions/iswalpha_l.texi: Renamed from
34606         doc/glibc-functions/iswalpha_l.texi.
34607         * doc/posix-functions/iswblank_l.texi: Renamed from
34608         doc/glibc-functions/iswblank_l.texi.
34609         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34610         doc/glibc-functions/iswcntrl_l.texi.
34611         * doc/posix-functions/iswctype_l.texi: Renamed from
34612         doc/glibc-functions/iswctype_l.texi.
34613         * doc/posix-functions/iswdigit_l.texi: Renamed from
34614         doc/glibc-functions/iswdigit_l.texi.
34615         * doc/posix-functions/iswgraph_l.texi: Renamed from
34616         doc/glibc-functions/iswgraph_l.texi.
34617         * doc/posix-functions/iswlower_l.texi: Renamed from
34618         doc/glibc-functions/iswlower_l.texi.
34619         * doc/posix-functions/iswprint_l.texi: Renamed from
34620         doc/glibc-functions/iswprint_l.texi.
34621         * doc/posix-functions/iswpunct_l.texi: Renamed from
34622         doc/glibc-functions/iswpunct_l.texi.
34623         * doc/posix-functions/iswspace_l.texi: Renamed from
34624         doc/glibc-functions/iswspace_l.texi.
34625         * doc/posix-functions/iswupper_l.texi: Renamed from
34626         doc/glibc-functions/iswupper_l.texi.
34627         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34628         doc/glibc-functions/iswxdigit_l.texi.
34629         * doc/posix-functions/isxdigit_l.texi: Renamed from
34630         doc/glibc-functions/isxdigit_l.texi.
34631         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34632         doc/glibc-functions/mbsnrtowcs.texi.
34633         * doc/posix-functions/mkdtemp.texi: Renamed from
34634         doc/glibc-functions/mkdtemp.texi.
34635         * doc/posix-functions/newlocale.texi: Renamed from
34636         doc/glibc-functions/newlocale.texi.
34637         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34638         doc/glibc-functions/nl_langinfo_l.texi.
34639         * doc/posix-functions/open_memstream.texi: Renamed from
34640         doc/glibc-functions/open_memstream.texi.
34641         * doc/posix-functions/opterr.texi: Renamed from
34642         doc/glibc-functions/opterr.texi.
34643         * doc/posix-functions/optind.texi: Renamed from
34644         doc/glibc-functions/optind.texi.
34645         * doc/posix-functions/optopt.texi: Renamed from
34646         doc/glibc-functions/optopt.texi.
34647         * doc/posix-functions/psignal.texi: Renamed from
34648         doc/glibc-functions/psignal.texi.
34649         * doc/posix-functions/scandir.texi: Renamed from
34650         doc/glibc-functions/scandir.texi.
34651         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34652         doc/glibc-functions/sched_get_priority_min.texi.
34653         * doc/posix-functions/signgam.texi: Renamed from
34654         doc/glibc-functions/signgam.texi.
34655         * doc/posix-functions/stpcpy.texi: Renamed from
34656         doc/glibc-functions/stpcpy.texi.
34657         * doc/posix-functions/stpncpy.texi: Renamed from
34658         doc/glibc-functions/stpncpy.texi.
34659         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34660         doc/glibc-functions/strcasecmp_l.texi.
34661         * doc/posix-functions/strcoll_l.texi: Renamed from
34662         doc/glibc-functions/strcoll_l.texi.
34663         * doc/posix-functions/strfmon_l.texi: Renamed from
34664         doc/glibc-functions/strfmon_l.texi.
34665         * doc/posix-functions/strftime_l.texi: Renamed from
34666         doc/glibc-functions/strftime_l.texi.
34667         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34668         doc/glibc-functions/strncasecmp_l.texi.
34669         * doc/posix-functions/strndup.texi: Renamed from
34670         doc/glibc-functions/strndup.texi.
34671         * doc/posix-functions/strnlen.texi: Renamed from
34672         doc/glibc-functions/strnlen.texi.
34673         * doc/posix-functions/strsignal.texi: Renamed from
34674         doc/glibc-functions/strsignal.texi.
34675         * doc/posix-functions/strxfrm_l.texi: Renamed from
34676         doc/glibc-functions/strxfrm_l.texi.
34677         * doc/posix-functions/timer_gettime.texi: Renamed from
34678         doc/glibc-functions/timer_gettime.texi.
34679         * doc/posix-functions/tolower_l.texi: Renamed from
34680         doc/glibc-functions/tolower_l.texi.
34681         * doc/posix-functions/toupper_l.texi: Renamed from
34682         doc/glibc-functions/toupper_l.texi.
34683         * doc/posix-functions/towctrans_l.texi: Renamed from
34684         doc/glibc-functions/towctrans_l.texi.
34685         * doc/posix-functions/towlower_l.texi: Renamed from
34686         doc/glibc-functions/towlower_l.texi.
34687         * doc/posix-functions/towupper_l.texi: Renamed from
34688         doc/glibc-functions/towupper_l.texi.
34689         * doc/posix-functions/uselocale.texi: Renamed from
34690         doc/glibc-functions/uselocale.texi.
34691         * doc/posix-functions/vdprintf.texi: Renamed from
34692         doc/glibc-functions/vdprintf.texi.
34693         * doc/posix-functions/wcpcpy.texi:
34694         Renamed from doc/glibc-functions/wcpcpy.texi.
34695         * doc/posix-functions/wcpncpy.texi: Renamed from
34696         doc/glibc-functions/wcpncpy.texi.
34697         * doc/posix-functions/wcscasecmp.texi: Renamed from
34698         doc/glibc-functions/wcscasecmp.texi.
34699         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34700         doc/glibc-functions/wcscasecmp_l.texi.
34701         * doc/posix-functions/wcscoll_l.texi: Renamed from
34702         doc/glibc-functions/wcscoll_l.texi.
34703         * doc/posix-functions/wcsdup.texi: Renamed from
34704         doc/glibc-functions/wcsdup.texi.
34705         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34706         doc/glibc-functions/wcsncasecmp.texi.
34707         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34708         doc/glibc-functions/wcsncasecmp_l.texi.
34709         * doc/posix-functions/wcsnlen.texi: Renamed from
34710         doc/glibc-functions/wcsnlen.texi.
34711         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34712         doc/glibc-functions/wcsnrtombs.texi.
34713         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34714         doc/glibc-functions/wcsxfrm_l.texi.
34715         * doc/posix-functions/wctrans_l.texi: Renamed from
34716         doc/glibc-functions/wctrans_l.texi.
34717         * doc/posix-functions/wctype_l.texi: Renamed from
34718         doc/glibc-functions/wctype_l.texi.
34719         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34720         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34721         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34722         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34723         these subsections.
34724         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34725         Remove sections.
34726
34727 2008-12-14  Bruno Haible  <bruno@clisp.org>
34728
34729         Update doc for POSIX:2008.
34730         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34731
34732 2008-12-14  Bruno Haible  <bruno@clisp.org>
34733
34734         Update doc for POSIX:2008.
34735         * doc/pastposix-functions/bcmp.texi: Renamed from
34736         doc/posix-functions/bcmp.texi.
34737         * doc/pastposix-functions/bcopy.texi: Renamed from
34738         doc/posix-functions/bcopy.texi.
34739         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34740         doc/posix-functions/bsd_signal.texi.
34741         * doc/pastposix-functions/bzero.texi: Renamed from
34742         doc/posix-functions/bzero.texi.
34743         * doc/pastposix-functions/ecvt.texi: Renamed from
34744         doc/posix-functions/ecvt.texi.
34745         * doc/pastposix-functions/fcvt.texi: Renamed from
34746         doc/posix-functions/fcvt.texi.
34747         * doc/pastposix-functions/ftime.texi: Renamed from
34748         doc/posix-functions/ftime.texi.
34749         * doc/pastposix-functions/gcvt.texi: Renamed from
34750         doc/posix-functions/gcvt.texi.
34751         * doc/pastposix-functions/getcontext.texi: Renamed from
34752         doc/posix-functions/getcontext.texi.
34753         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34754         doc/posix-functions/gethostbyaddr.texi.
34755         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34756         doc/posix-functions/gethostbyname.texi.
34757         * doc/pastposix-functions/getwd.texi: Renamed from
34758         doc/posix-functions/getwd.texi.
34759         * doc/pastposix-functions/h_errno.texi: Renamed from
34760         doc/posix-functions/h_errno.texi.
34761         * doc/pastposix-functions/index.texi: Renamed from
34762         doc/posix-functions/index.texi.
34763         * doc/pastposix-functions/makecontext.texi: Renamed from
34764         doc/posix-functions/makecontext.texi.
34765         * doc/pastposix-functions/mktemp.texi: Renamed from
34766         doc/posix-functions/mktemp.texi.
34767         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34768         doc/posix-functions/pthread_attr_getstackaddr.texi.
34769         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34770         doc/posix-functions/pthread_attr_setstackaddr.texi.
34771         * doc/pastposix-functions/rindex.texi: Renamed from
34772         doc/posix-functions/rindex.texi.
34773         * doc/pastposix-functions/scalb.texi: Renamed from
34774         doc/posix-functions/scalb.texi.
34775         * doc/pastposix-functions/setcontext.texi: Renamed from
34776         doc/posix-functions/setcontext.texi.
34777         * doc/pastposix-functions/swapcontext.texi: Renamed from
34778         doc/posix-functions/swapcontext.texi.
34779         * doc/pastposix-functions/ualarm.texi: Renamed from
34780         doc/posix-functions/ualarm.texi.
34781         * doc/pastposix-functions/usleep.texi: Renamed from
34782         doc/posix-functions/usleep.texi.
34783         * doc/pastposix-functions/vfork.texi: Renamed from
34784         doc/posix-functions/vfork.texi.
34785         * doc/pastposix-functions/wcswcs.texi: Renamed from
34786         doc/posix-functions/wcswcs.texi.
34787         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34788         (Function Substitutes): Update.
34789
34790 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34791
34792         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34793         m4/strerror.m4.
34794
34795 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34796             Bruno Haible  <bruno@clisp.org>
34797
34798         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34799
34800 2008-12-13  Bruno Haible  <bruno@clisp.org>
34801
34802         * modules/strtoull (Depends-on): Remove unistd.
34803
34804 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34805
34806         * modules/strtoull (Depends-on): Add stdlib.
34807
34808 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34809
34810         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34811
34812 2008-12-10  Jim Meyering  <meyering@redhat.com>
34813
34814         gl_ASSERT: don't say assertions are disabled when they're not
34815         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34816         "checking whether to enable assertions... no", when they are in
34817         fact enabled.  This is solely a bug in the output of configure.
34818         In spite of saying "no", NDEBUG was not defined in that case.
34819         Also, as noted by Eric Blake, leave assertions enabled upon
34820         --enable-assert=INVALID.
34821
34822 2008-12-10  Bruno Haible  <bruno@clisp.org>
34823
34824         Change MODULES.html to refer to POSIX:2008 where possible.
34825         * MODULES.html.sh (POSIX2008_URL): New variable.
34826         (posix_headers): Remove sys/timeb, ucontext.
34827         (posix2001_headers): New variable.
34828         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34829         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34830         index, makecontext, mktemp, pthread_attr_getstackaddr,
34831         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34832         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34833         (posix2001_functions): New variable.
34834         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34835         otherwise.
34836
34837 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34838
34839         add missing include to parse-duration.c
34840         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34841         * modules/parse-duration (Depends-on): Add xalloc.
34842
34843         fix sed script reading maint.mk
34844         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34845         (syntax-check-rules): Use it.
34846
34847 2008-12-09  Bruno Haible  <bruno@clisp.org>
34848
34849         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34850         MacOS X 10.4/PowerPC.
34851         Reported by Simon Josefsson.
34852
34853 2008-12-08  Jim Meyering  <meyering@redhat.com>
34854
34855         work around mingw's lack of some S_IF definitions
34856         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34857         Reported by Simon Josefsson.
34858
34859 2008-12-08  Bruno Haible  <bruno@clisp.org>
34860
34861         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34862         applied to variables. Needed on MacOS X 10.4/PowerPC.
34863         Reported by Simon Josefsson.
34864
34865 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34866         and Eric Blake  <ebb9@byu.net>
34867
34868         assert: honor --enable-assert
34869         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34870         order to honor --enable-assert, rather than treating it as a
34871         synonym for --disable-assert.
34872
34873 2008-12-08  Jim Meyering  <meyering@redhat.com>
34874
34875         * lib/posixtm.c: Remove now-useless declaration of mktime.
34876
34877         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34878
34879 2008-12-07  Bruno Haible  <bruno@clisp.org>
34880
34881         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34882         test_once): Mark functions as static.
34883         * tests/test-tls.c (test_tls): Likewise.
34884
34885 2008-12-07  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34888         iconv_register_autodetect.
34889
34890 2008-12-07  Jim Meyering  <meyering@redhat.com>
34891
34892         posixtm.c: avoid a warning
34893         * lib/posixtm.c (posixtime): Don't initialize tm0.
34894         It's no longer needed to placate gcc4's -Wuninitialized,
34895         and the attempt to placate would elicit a new warning.
34896
34897         unicodeio.c: mark unused parameters
34898         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34899         (fallback_failure_callback): Likewise.
34900
34901 2008-12-07  Bruno Haible  <bruno@clisp.org>
34902
34903         * gnulib-tool (func_create_testdir): When building the tests
34904         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34905         Reported by Simon Josefsson.
34906
34907 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34908
34909         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34910
34911 2008-12-06  Bruno Haible  <bruno@clisp.org>
34912
34913         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34914         Suggested by Eric Blake.
34915
34916 2008-12-06  Bruno Haible  <bruno@clisp.org>
34917
34918         Fix a c-stack test failure on MacOS X.
34919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34920         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34921         handler for SIGBUS as well.
34922         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34923         install a signal handler for SIGBUS as well.
34924         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34925
34926 2008-12-06  Bruno Haible  <bruno@clisp.org>
34927
34928         Advocacy documentation.
34929         * doc/gnulib-intro.texi (Benefits): New section.
34930         * doc/gnulib.texi: Update.
34931
34932 2008-12-06  Bruno Haible  <bruno@clisp.org>
34933
34934         Document the 'manywarnings' module.
34935         * doc/manywarnings.texi: New file.
34936         * doc/gnulib.texi: Include it.
34937
34938 2008-12-05  Eric Blake  <ebb9@byu.net>
34939
34940         tests: silence some gcc warnings
34941         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34942         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34943         type mismatches.
34944
34945 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34946             Bruno Haible  <bruno@clisp.org>
34947
34948         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34949
34950 2008-11-29  Jim Meyering  <meyering@redhat.com>
34951
34952         unicodeio.c: mark unused parameters
34953         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34954         (fallback_failure_callback): Likewise.
34955
34956         fts: fix a thinko
34957         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34958         (set_stat_type): Return S_IF*-valued "type" directly.
34959         Prompted by James Youngman's spotting a related bug.
34960         Confirmed by further testing through find.
34961
34962         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34963         * lib/fts.c (D_TYPE): Define.
34964         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34965         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34966         (s_ifmt_shift_bits): New function.
34967         (set_stat_type): New function.
34968         (fts_build): When not calling fts_stat, call set_stat_type
34969         to propagate dirent.d_type info to fts_read caller.
34970         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34971         fts_statp->st_mode type information may be valid.
34972
34973 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34974
34975         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34976         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34977         <sds@gnu.org>.
34978
34979 2008-11-20  Bruno Haible  <bruno@clisp.org>
34980
34981         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34982         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34983         INCLUDE_NEXT.
34984         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34985         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34986         * modules/math (Makefile.am): Substitute
34987         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34988         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34989
34990 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34991             Bruno Haible  <bruno@clisp.org>
34992
34993         * lib/stdint.in.h: Define all type macros so that their expansion is
34994         a single typedef'ed token. Fixes a compilation failure in Boost which
34995         does "using ::int8_t;".
34996
34997 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34998
34999         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35000         gl_MANYWARN_ALL_GCC.
35001         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35002         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35003         * modules/manywarnings: New file.
35004         * MODULES.html.sh: Mention manywarnings module.
35005
35006 2008-11-18  Bruno Haible  <bruno@clisp.org>
35007
35008         * doc/gnulib-tool.texi (Unit tests): New section.
35009
35010 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35011
35012         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35013         paths like 'lib/po/foo.po'.
35014
35015 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35016
35017         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35018         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35019
35020 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35021
35022         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35023         parameter works.
35024
35025 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35026
35027         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35028
35029 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35030
35031         * modules/parse-duration-tests: New file.
35032         * tests/test-parse-duration.sh: New file.
35033         * tests/test-parse-duration.c: New file.
35034
35035         New module 'parse-duration'.
35036         * lib/parse-duration.h: New file.
35037         * lib/parse-duration.c: New file.
35038         * modules/parse-duration: New file.
35039
35040 2008-11-17  Bruno Haible  <bruno@clisp.org>
35041
35042         * tests/test-select-out.sh: Comment out the first pipe test.
35043         Reported by Simon Josefsson.
35044
35045 2008-11-17  Bruno Haible  <bruno@clisp.org>
35046
35047         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35048         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35049         gl_HOSTENT.
35050
35051 2008-11-17  Bruno Haible  <bruno@clisp.org>
35052
35053         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35054         -lnetwork and -lnet. Needed for Haiku and BeOS.
35055
35056 2008-11-16  Bruno Haible  <bruno@clisp.org>
35057
35058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35059
35060 2008-11-16  Bruno Haible  <bruno@clisp.org>
35061
35062         Avoid test failure on Haiku.
35063         * tests/test-fsync.c: Include <errno.h>.
35064         (main): Don't require that fsync (0) fails.
35065
35066 2008-11-15  Bruno Haible  <bruno@clisp.org>
35067
35068         New module 'hostent'.
35069         * modules/hostent: New file.
35070         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35071
35072 2008-11-15  Bruno Haible  <bruno@clisp.org>
35073
35074         New module 'servent'.
35075         * modules/servent: New file.
35076         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35077
35078 2008-11-15  Bruno Haible  <bruno@clisp.org>
35079
35080         Avoid generating same test program with two different rules.
35081         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35082         test-frexp to test-frexp-nolibm.
35083         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35084         test-frexpl to test-frexpl-nolibm.
35085
35086 2008-11-15  Bruno Haible  <bruno@clisp.org>
35087
35088         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35089         $(FREXPL_LIBM).
35090
35091 2008-11-15  Bruno Haible  <bruno@clisp.org>
35092
35093         * lib/netdb.in.h: Activate the definitions also when the system's
35094         <netdb.h> has 'struct addrinfo'.
35095         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35096         EAI_OVERFLOW or AI_NUMERICSERV.
35097         * doc/posix-headers/netdb.texi: Document the problem.
35098
35099 2008-11-15  Bruno Haible  <bruno@clisp.org>
35100
35101         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35102
35103         Make the 'sched' module work on platforms where <sched.h> exists but
35104         is incomplete (such as Haiku).
35105         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35106         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35107         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35108         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35109         HAVE_STRUCT_SCHED_PARAM.
35110         * modules/sched (Depends-on): Add include_next.
35111         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35112         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35113         * doc/posix-headers/sched.texi: Document the issue.
35114
35115 2008-11-13  Jim Meyering  <meyering@redhat.com>
35116
35117         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35118         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35119         test would fail due to the difference in the Report bugs to ...
35120         line.  The expected address is empty, "<>", while the actual
35121         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35122
35123 2008-11-12  Bruno Haible  <bruno@clisp.org>
35124
35125         lstat: don't compile lstat.c on systems lacking lstat
35126         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35127         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35128         Reported by Daniel P. Berrange via Jim Meyering.
35129
35130 2008-11-12  Jim Meyering  <meyering@redhat.com>
35131
35132         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35133
35134 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35135
35136         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35137         instead.
35138
35139 2008-11-12  Bruno Haible  <bruno@clisp.org>
35140
35141         * lib/unicodeio.c: Include unistr.h.
35142         (utf8_wctomb): Remove function.
35143         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35144
35145 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35146
35147         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35148         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35149         <bruno@clisp.org>.
35150         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35151
35152 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35153
35154         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35155         * doc/gnulib.texi: Add section for warnings.
35156
35157 2008-11-11  Bruno Haible  <bruno@clisp.org>
35158
35159         * lib/sockets.h: Add a comment.
35160
35161 2008-11-11  Karl Berry  <karl@gnu.org>
35162
35163         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35164
35165 2008-11-11  Eric Blake  <ebb9@byu.net>
35166
35167         fdl.texi: avoid git symlinks
35168         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35169
35170 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35171
35172         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35173
35174 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35175
35176         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35177         (gl_WARN_ADD): Substitute $2 if literal.
35178
35179 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35180
35181         * m4/warning.m4: Remove.
35182
35183 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35184
35185         * m4/warnings.m4: Almost complete rewrite. :-)
35186
35187 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35188
35189         * modules/warnings: New module.
35190         * m4/warnings.m4: New file.
35191         * MODULES.html.sh: Mention warnings module.
35192         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35193         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35194
35195 2008-11-10  Eric Blake  <ebb9@byu.net>
35196
35197         fdl.texi: make a symlink to the latest version
35198         * doc/standards.texi: Revert today's earlier change.
35199         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35200         * doc/fdl.texi: ...and replace this with a symlink to the newer
35201         fdl-1.3.texi.
35202
35203 2008-11-10  Bruno Haible  <bruno@clisp.org>
35204
35205         * tests/test-select-fd.c (main): Accept the result file name as fourth
35206         argument.
35207         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35208         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35209
35210 2008-11-10  Bruno Haible  <bruno@clisp.org>
35211
35212         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35213         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35214         as autoconf-substituted macros.
35215         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35217         gl_NETDB_H_DEFAULTS. Set these variables.
35218         * modules/netdb (Makefile.am): Substitute these variables.
35219
35220 2008-11-10  Eric Blake  <ebb9@byu.net>
35221
35222         standards.texi: include correct file for FDL 1.3
35223         * doc/standards.texi (GNU Free Documentation License): Change
35224         include file to pull in FDL 1.3, not 1.2.
35225
35226         fdl.texi: revert accidental change to license
35227         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35228
35229 2008-11-10  Bruno Haible  <bruno@clisp.org>
35230
35231         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35232         cross-compiling guesses also when the native compile gives no result.
35233
35234 2008-11-10  Bruno Haible  <bruno@clisp.org>
35235
35236         * lib/spawni.c (__spawni): Force variable into the stack.
35237
35238 2008-11-10  Bruno Haible  <bruno@clisp.org>
35239
35240         Add support for Haiku.
35241         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35242         glibc and BeOS, but also on Haiku.
35243         * lib/fpurge.c (fpurge): Likewise.
35244         * lib/freadable.c (freadable): Likewise.
35245         * lib/freadahead.c (freadahead): Likewise.
35246         * lib/freading.c (freading): Likewise.
35247         * lib/freadptr.c (freadptr): Likewise.
35248         * lib/freadseek.c (freadptrinc): Likewise.
35249         * lib/fseeko.c (rpl_fseeko): Likewise.
35250         * lib/fseterr.c (fseterr): Likewise.
35251         * lib/fwritable.c (fwritable): Likewise.
35252         * lib/fwriting.c (fwriting): Likewise.
35253         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35254
35255 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35256
35257         * lib/config.charset: Treat Haiku like BeOS.
35258
35259 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35260
35261         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35262         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35263
35264 2008-11-08  Bruno Haible  <bruno@clisp.org>
35265
35266         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35267         AC_CACHE_CHECK.
35268
35269 2008-11-08  Bruno Haible  <bruno@clisp.org>
35270
35271         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35272
35273 2008-11-08  Bruno Haible  <bruno@clisp.org>
35274
35275         * tests/test-select-fd.c: New file.
35276         * tests/test-select-in.sh: New file.
35277         * tests/test-select-out.sh: New file.
35278         * tests/test-select-stdin.c: New file.
35279         * modules/select-tests (Files): Add the new files.
35280         (Depends-on): Add gettimeofday.
35281         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35282         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35283         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35284
35285 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35286             Bruno Haible  <bruno@clisp.org>
35287
35288         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35289
35290 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35291
35292         * build-aux/pmccabe2html: Added support for C++ source files.
35293
35294 2008-11-05  Ben Pfaff  <blp@gnu.org>
35295
35296         Fix lib/close.c build on Windows.
35297         * modules/close (Files): Add lib/w32sock.h.
35298
35299 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35300
35301         Accept Bison's NEWS format.
35302         * build-aux/announce-gen (print_news_deltas): Tweak
35303         $re_prefix.
35304
35305 2008-11-04  Bruno Haible  <bruno@clisp.org>
35306
35307         * modules/random_r (Maintainer): Add glibc.
35308
35309 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35310
35311         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35312         by karl@freefriends.org (Karl Berry).
35313         * doc/alloca.texi: Likewise.
35314         * doc/c-ctype.texi: Likewise.
35315         * doc/c-strcase.texi: Likewise.
35316         * doc/c-strcaseeq.texi: Likewise.
35317         * doc/c-strcasestr.texi: Likewise.
35318         * doc/c-strstr.texi: Likewise.
35319         * doc/c-strtod.texi: Likewise.
35320         * doc/c-strtold.texi: Likewise.
35321         * doc/ctime.texi: Likewise.
35322         * doc/error.texi: Likewise.
35323         * doc/fdl.texi: Likewise.
35324         * doc/gcd.texi: Likewise.
35325         * doc/getdate.texi: Likewise.
35326         * doc/gnulib-intro.texi: Likewise.
35327         * doc/gnulib-tool.texi: Likewise.
35328         * doc/gnulib.texi: Likewise.
35329         * doc/inet_ntoa.texi: Likewise.
35330         * doc/maintain.texi: Likewise.
35331         * doc/make-stds.texi: Likewise.
35332         * doc/quote.texi: Likewise.
35333         * doc/regexprops-generic.texi: Likewise.
35334         * doc/standards.texi: Likewise.
35335         * doc/verify.texi: Likewise.
35336         * doc/visibility.texi: Likewise.
35337         * doc/gnulib.texi (GNU Free Documentation License): Include
35338         fdl-1.3.texi instead of fdl.texi.
35339
35340 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35341
35342         * doc/fdl-1.3.texi: New file, from
35343         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35344         * modules/fdl-1.3: Add.
35345         * MODULES.html.sh: Add fdl-1.3.
35346
35347 2008-11-03  Bruno Haible  <bruno@clisp.org>
35348
35349         Make determination of absolute name of header file work with AIX xlc.
35350         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35351         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35352         preprocessing.
35353         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35354         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35355
35356 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35357
35358         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35359         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35360         <ludo@gnu.org>.
35361
35362 2008-11-02  Bruno Haible  <bruno@clisp.org>
35363
35364         Mark 'strpbrk' obsolete.
35365         * modules/strpbrk (Status, Notice): New sections.
35366         * modules/strtok_r (Depends-on): Add strpbrk.
35367
35368 2008-11-02  Bruno Haible  <bruno@clisp.org>
35369
35370         Mark 'strdup' obsolete.
35371         * modules/strdup (Status, Notice): New sections.
35372         * modules/findprog (Depends-on): Add strdup.
35373         * modules/getaddrinfo (Depends-on): Likewise.
35374         * modules/localename (Depends-on): Likewise.
35375         * modules/relocatable-lib (Depends-on): Likewise.
35376         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35377         * modules/relocatable-prog (Depends-on): Likewise.
35378         * modules/trim (Depends-on): Likewise.
35379         * modules/unictype/gen-ctype (Depends-on): Likewise.
35380         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35381
35382 2008-11-02  Bruno Haible  <bruno@clisp.org>
35383
35384         Mark 'strcspn' obsolete.
35385         * modules/strcspn (Status, Notice): New sections.
35386
35387 2008-11-02  Bruno Haible  <bruno@clisp.org>
35388
35389         Mark 'rmdir' obsolete.
35390         * modules/rmdir (Status, Notice): New sections.
35391         * modules/clean-temp (Depends-on): Add rmdir.
35392         * modules/openat (Depends-on): Likewise.
35393
35394 2008-11-02  Bruno Haible  <bruno@clisp.org>
35395
35396         Mark 'raise' obsolete.
35397         * modules/raise (Status, Notice): New sections.
35398         (Include): Specify <signal.h>.
35399         * modules/stdio (Depends-on): Add raise.
35400         * modules/write (Depends-on): Likewise.
35401
35402 2008-11-02  Bruno Haible  <bruno@clisp.org>
35403
35404         Mark 'memset' obsolete.
35405         * modules/memset (Status, Notice): New sections.
35406
35407 2008-11-02  Bruno Haible  <bruno@clisp.org>
35408
35409         Mark 'memmove' obsolete.
35410         * modules/memmove (Status, Notice): New sections.
35411         * modules/argp (Depends-on): Add memmove.
35412         * modules/argz (Depends-on): Likewise.
35413         * modules/canonicalize (Depends-on): Likewise.
35414         * modules/canonicalize-lgpl (Depends-on): Likewise.
35415         * modules/fts (Depends-on): Likewise.
35416         * modules/getcwd (Depends-on): Likewise.
35417         * modules/human (Depends-on): Likewise.
35418         * modules/regex (Depends-on): Likewise.
35419         * modules/striconveh (Depends-on): Likewise.
35420         * modules/trim (Depends-on): Likewise.
35421         * modules/unistr/u8-move (Depends-on): Likewise.
35422         * modules/unistr/u16-move (Depends-on): Likewise.
35423         * modules/unistr/u32-move (Depends-on): Likewise.
35424
35425 2008-11-02  Bruno Haible  <bruno@clisp.org>
35426
35427         Mark 'memcpy' obsolete.
35428         * modules/memcpy (Status, Notice): New sections.
35429
35430 2008-11-02  Bruno Haible  <bruno@clisp.org>
35431
35432         Mark 'memcmp' obsolete.
35433         * modules/memcmp (Status, Notice): New sections.
35434         * modules/argmatch (Depends-on): Add memchr.
35435         * modules/backupfile (Depends-on): Likewise.
35436         * modules/c-strcasestr (Depends-on): Likewise.
35437         * modules/crypto/des (Depends-on): Likewise.
35438         * modules/csharpcomp (Depends-on): Likewise.
35439         * modules/fnmatch (Depends-on): Likewise.
35440         * modules/git-merge-changelog (Depends-on): Likewise.
35441         * modules/isnand (Depends-on): Likewise.
35442         * modules/isnand-nolibm (Depends-on): Likewise.
35443         * modules/isnanf (Depends-on): Likewise.
35444         * modules/isnanf-nolibm (Depends-on): Likewise.
35445         * modules/isnanl (Depends-on): Likewise.
35446         * modules/isnanl-nolibm (Depends-on): Likewise.
35447         * modules/mbchar (Depends-on): Likewise.
35448         * modules/memcoll (Depends-on): Likewise.
35449         * modules/quotearg (Depends-on): Likewise.
35450         * modules/regex (Depends-on): Likewise.
35451         * modules/relocatable-prog (Depends-on): Likewise.
35452         * modules/same (Depends-on): Likewise.
35453         * modules/signbit (Depends-on): Likewise.
35454         * modules/strcasestr-simple (Depends-on): Likewise.
35455         * modules/unictype/gen-ctype (Depends-on): Likewise.
35456         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35457         * modules/uniname/uniname (Depends-on): Likewise.
35458         * modules/unistr/u8-cmp (Depends-on): Likewise.
35459
35460 2008-11-02  Bruno Haible  <bruno@clisp.org>
35461
35462         Mark 'memchr' obsolete.
35463         * modules/memchr (Status, Notice): New sections.
35464         * modules/argp (Depends-on): Add memchr.
35465         * modules/base64 (Depends-on): Likewise.
35466         * modules/c-strcasestr (Depends-on): Likewise.
35467         * modules/chdir-long (Depends-on): Likewise.
35468         * modules/fnmatch (Depends-on): Likewise.
35469         * modules/getsubopt (Depends-on): Likewise.
35470         * modules/git-merge-changelog (Depends-on): Likewise.
35471         * modules/glob (Depends-on): Likewise.
35472         * modules/strcasestr-simple (Depends-on): Likewise.
35473         * modules/strnlen (Depends-on): Likewise.
35474
35475 2008-11-02  Bruno Haible  <bruno@clisp.org>
35476
35477         Mark 'atexit' obsolete.
35478         * modules/atexit (Status, Notice): New sections.
35479         * modules/chdir-long (Depends-on): Add atexit.
35480         * modules/wait-process (Depends-on): Likewise.
35481
35482 2008-11-02  Bruno Haible  <bruno@clisp.org>
35483
35484         * gnulib-tool: New option --with-obsolete.
35485         (func_usage): Document it.
35486         (func_modules_transitive_closure): Drop obsolete dependencies if
35487         incobsolete is not true.
35488         (func_import): Read and save the incobsolete variable to the cache.
35489
35490 2008-11-02  Bruno Haible  <bruno@clisp.org>
35491
35492         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35493         * gnulib-tool: New option --extract-status.
35494         (func_usage): Document it.
35495         (sed_extract_prog): Recognize it.
35496         (func_get_status): New function.
35497
35498 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35499
35500         * modules/sockets (License): Change from LGPL to LGPLv2+.
35501
35502 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35503
35504         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35505
35506 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35507
35508         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35509         Mention times and sys_times.
35510         * modules/sys_times, modules/sys_times-tests: New modules.
35511         * modules/times, modules/times-tests: Likewise
35512         * m4/sys_times_h.m4: New file.
35513         * lib/sys_times.in.h: Likewise
35514         * lib/times.c: Likewise.
35515         * tests/test-sys_times.c: Likewise.
35516         * tests/test-times.c: Likewise.
35517         * doc/posix-headers/sys_times.texi: Update.
35518         * doc/posix-functions/times.texi: Update.
35519
35520 2008-10-28  Jim Meyering  <meyering@redhat.com>
35521
35522         * modules/tempname (Depends-on): Add lstat.
35523
35524         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35525
35526 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35527
35528         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35529         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35530         using idiom used elsewhere in gnulib.
35531
35532 2008-10-27  Jim Meyering  <meyering@redhat.com>
35533
35534         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35535
35536 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35537
35538         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35539         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35540         programs.
35541         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35542
35543 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35544
35545         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35546
35547 2008-10-27  Bruno Haible  <bruno@clisp.org>
35548
35549         * tests/test-lstat.c: Include <stdio.h>.
35550
35551 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35552
35553         * modules/lstat-tests: New module.
35554         * tests/test-lstat.c: New file.
35555
35556 2008-10-26  Jim Meyering  <meyering@redhat.com>
35557
35558         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35559
35560 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35561             Bruno Haible  <bruno@clisp.org>
35562
35563         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35564         * modules/configmake (Include): Add a note that the include must come
35565         after all system headers.
35566         * lib/javaversion.c: Include configmake.h after all other includes.
35567
35568 2008-10-26  Bruno Haible  <bruno@clisp.org>
35569
35570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35571         HAVE_STRUCT_RANDOM_DATA to 1.
35572         (gl_STDLIB_H): Simplify.
35573
35574 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35575
35576         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35577         substitute HAVE_STRUCT_RANDOM_DATA.
35578         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35579         random_data.
35580         * modules/stdlib (Makefile.am): Substitute
35581         HAVE_STRUCT_RANDOM_DATA.
35582
35583 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35584
35585         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35586         * doc/gnulib-intro.texi (Copyright): Likewise.
35587
35588 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35589
35590         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35591         findings.
35592
35593 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35594             Bruno Haible  <bruno@clisp.org>
35595
35596         * lib/unistd.in.h: Include <winsock2.h>.
35597         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35598         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35599         Provide dummy declarations.
35600         (gethostname): Override.
35601         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35602         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35603         gl_PREREQ_SYS_H_WINSOCK2.
35604         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35605         * doc/posix-functions/gethostname.texi: More details.
35606
35607 2008-10-25  Bruno Haible  <bruno@clisp.org>
35608
35609         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35610         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35611         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35612
35613         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35614         here ...
35615         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35616         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35617         gl_UNISTD_H_DEFAULTS.
35618
35619 2008-10-25  Eric Blake  <ebb9@byu.net>
35620
35621         signbit: avoid spurious compiler failure
35622         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35623         declarations inside function.
35624
35625 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35626             Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35629         * modules/random_r (Depends-on): Add stdint.
35630
35631 2008-10-24  Bruno Haible  <bruno@clisp.org>
35632
35633         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35634         Eggert.
35635         * modules/strerror (License): Likewise.
35636
35637 2008-10-24  Jim Meyering  <meyering@redhat.com>
35638
35639         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35640         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35641
35642 2008-10-24  Eric Blake  <ebb9@byu.net>
35643
35644         getgroups: fix compilation when getgroups is available
35645         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35646         but with <config.h> override of getgroups disabled.
35647
35648 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35649
35650         * doc/gnulib.texi (Header files): Add note about C++ problems.
35651         Explained by Bruno Haible <bruno@clisp.org>.
35652
35653 2008-10-23  Bruno Haible  <bruno@clisp.org>
35654
35655         Define a dummy SA_NODEFER macro on Interix.
35656         * lib/signal.in.h (SA_NODEFER): Define fallback.
35657         Reported by Aleksey Cheusov <cheusov@tut.by> via
35658         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35659
35660 2008-10-23  Bruno Haible  <bruno@clisp.org>
35661
35662         * modules/freadahead (License): Change to LGPLv2+.
35663         Suggested by Simon Josefsson.
35664
35665 2008-10-23  Jim Meyering  <meyering@redhat.com>
35666
35667         random_r: new module
35668         * modules/random_r: New file.
35669         * m4/random_r.m4: New file.
35670         * lib/random_r.c: New file, from glibc.
35671         * modules/random_r-tests: New file.
35672         * tests/test-random_r.c: New file.
35673         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35674          Declare.
35675         (RAND_MAX): Define.
35676         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35677         * modules/stdlib: Substitute them, too.
35678         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35679         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35680         * doc/glibc-functions/random_r.texi: Likewise.
35681         * doc/glibc-functions/setstate_r.texi: Likewise.
35682         * doc/glibc-functions/srandom_r.texi: Likewise.
35683         * config/srclist.txt: Mention it.
35684
35685 2008-10-23  David Lutterkort  <lutter@redhat.com>
35686
35687         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35688         link requirement
35689
35690 2008-10-23  Jim Meyering  <meyering@redhat.com>
35691
35692         selinux-h: mark parameters of stub functions as intentionally unused
35693         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35694         * lib/se-context.in.h: Likewise.
35695
35696 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35697
35698         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35699
35700 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35701
35702         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35703
35704 2008-10-22  Eric Blake  <ebb9@byu.net>
35705
35706         glthread/thread: avoid compiler warning
35707         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35708         Add unreachable abort to silence compiler.
35709
35710 2008-10-22  Eric Blake  <ebb9@byu.net>
35711
35712         netdb: also supply struct addrinfo for cygwin 1.5.x
35713         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35714         older cygwin.
35715         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35716         cygwin.
35717         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35718
35719 2008-10-22  Bruno Haible  <bruno@clisp.org>
35720
35721         * users.txt: Update entry about pspp.
35722
35723 2008-10-21  Bruno Haible  <bruno@clisp.org>
35724
35725         Simplification.
35726         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35727         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35728
35729         Simplification.
35730         * lib/ioctl.c (ioctl): Don't undefine.
35731         * lib/socket.c (socket): Don't undefine.
35732
35733         Remove unused module indicator macros.
35734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35735         GNULIB_$1 as a C macro.
35736
35737         * doc/posix-functions/close.texi: Undo last change.
35738         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35739         Windows platforms.
35740
35741 2008-10-21  Bruno Haible  <bruno@clisp.org>
35742
35743         Add gethostname() declaration to <unistd.h>.
35744         * lib/unistd.in.h (gethostname): New declaration.
35745         * lib/gethostname.c: Include <unistd.h>.
35746         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35747         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35749         and HAVE_GETHOSTNAME.
35750         * modules/gethostname (Depends-on): Add unistd.
35751         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35752         (Include): Specify <unistd.h>.
35753         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35754         HAVE_GETHOSTNAME.
35755         * tests/test-gethostname.c: Include <unistd.h> first.
35756
35757 2008-10-21  Bruno Haible  <bruno@clisp.org>
35758
35759         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35760         * modules/select-tests (Depends-on): Likewise.
35761         Reported by Simon Josefsson.
35762
35763 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35764
35765         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35766         * lib/accept.c: New file, based on winsock.c.
35767         * lib/bind.c: New file, based on winsock.c.
35768         * lib/connect.c: New file, based on winsock.c.
35769         * lib/getpeername.c: New file, based on winsock.c.
35770         * lib/getsockname.c: New file, based on winsock.c.
35771         * lib/getsockopt.c: New file, based on winsock.c.
35772         * lib/ioctl.c: New file, based on winsock.c.
35773         * lib/listen.c: New file, based on winsock.c.
35774         * lib/recv.c: New file, based on winsock.c.
35775         * lib/recvfrom.c: New file, based on winsock.c.
35776         * lib/send.c: New file, based on winsock.c.
35777         * lib/sendto.c: New file, based on winsock.c.
35778         * lib/setsockopt.c: New file, based on winsock.c.
35779         * lib/shutdown.c: New file, based on winsock.c.
35780         * lib/socket.c: New file, based on winsock.c.
35781         * lib/w32sock.h: New file, based on winsock.c.
35782         * lib/winsock.c: Remove file.
35783         * modules/accept: Likewise.
35784         * modules/bind: Likewise.
35785         * modules/connect: Likewise.
35786         * modules/getpeername: Likewise.
35787         * modules/getsockname: Likewise.
35788         * modules/getsockopt: Likewise.
35789         * modules/ioctl: Likewise.
35790         * modules/listen: Likewise.
35791         * modules/recv: Likewise.
35792         * modules/recvfrom: Likewise.
35793         * modules/send: Likewise.
35794         * modules/sendto: Likewise.
35795         * modules/setsockopt: Likewise.
35796         * modules/shutdown: Likewise.
35797         * modules/socket: Use socket.c instead of winsock.c.
35798         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35799         * doc/posix-functions/accept.texi: Doc fix.
35800         * doc/posix-functions/bind.texi: Doc fix.
35801         * doc/posix-functions/close.texi: Doc fix.
35802         * doc/posix-functions/connect.texi: Doc fix.
35803         * doc/posix-functions/getpeername.texi: Doc fix.
35804         * doc/posix-functions/getsockname.texi: Doc fix.
35805         * doc/posix-functions/getsockopt.texi: Doc fix.
35806         * doc/posix-functions/ioctl.texi: Doc fix.
35807         * doc/posix-functions/listen.texi: Doc fix.
35808         * doc/posix-functions/recv.texi: Doc fix.
35809         * doc/posix-functions/recvfrom.texi: Doc fix.
35810         * doc/posix-functions/send.texi: Doc fix.
35811         * doc/posix-functions/sendto.texi: Doc fix.
35812         * doc/posix-functions/setsockopt.texi: Doc fix.
35813         * doc/posix-functions/shutdown.texi: Doc fix.
35814         * doc/posix-functions/socket.texi: Doc fix.
35815
35816 2008-10-20  Bruno Haible  <bruno@clisp.org>
35817
35818         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35819         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35820         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35821         as an alias for SIGABRT.
35822         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35823         (sigaction): Map it to SIGABRT.
35824         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35825
35826 2008-10-20  Bruno Haible  <bruno@clisp.org>
35827
35828         * lib/fts.c: Don't include lstat.h.
35829         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35830
35831         Move the lstat() declaration to <sys/stat.h>.
35832         * lib/lstat.h: Remove file.
35833         * lib/sys_stat.in.h: Add special invocation convention.
35834         (lstat): New declaration.
35835         * lib/lstat.c (orig_lstat): New function.
35836         (rpl_lstat): Use orig_lstat instead of lstat.
35837         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35838         AC_C_INLINE. Set REPLACE_LSTAT.
35839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35840         and REPLACE_LSTAT.
35841         * modules/lstat (Files): Remove lib/lstat.h.
35842         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35843         (Include): Specify <sys/stat.h> instead of lstat.h.
35844         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35845         REPLACE_LSTAT.
35846         * NEWS: Mention the change.
35847
35848 2008-10-20  Bruno Haible  <bruno@clisp.org>
35849
35850         * modules/posix_spawn-tests: New file.
35851         * tests/test-posix_spawn3.c: New file.
35852
35853 2008-10-20  Bruno Haible  <bruno@clisp.org>
35854
35855         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35856         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35857         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35858         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35859         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35860
35861 2008-10-20  Bruno Haible  <bruno@clisp.org>
35862
35863         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35864         of posix_spawn on AIX 5.3.
35865
35866 2008-10-20  Bruno Haible  <bruno@clisp.org>
35867
35868         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35869
35870 2008-10-20  Bruno Haible  <bruno@clisp.org>
35871
35872         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35873         of AC_LANG_PROGRAM.
35874
35875 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35876
35877         * lib/netdb.in.h: Don't define GNU specific constants until they
35878         are supported or needed.  Reported by Bruno Haible
35879         <bruno@clisp.org>.
35880
35881 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35882
35883         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35884
35885 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35886
35887         * lib/getaddrinfo.h: Remove file.
35888         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35889         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35890         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35891         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35892         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35893         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35894         * tests/test-getaddrinfo.c: Likewise.
35895         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35896         * NEWS: Mention change.
35897
35898 2008-10-19  Bruno Haible  <bruno@clisp.org>
35899
35900         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35901
35902 2008-10-19  Bruno Haible  <bruno@clisp.org>
35903
35904         * lib/wait-process.c: Include simply <sys/wait.h>.
35905         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35906         WIFSTOPPED): Remove fallback definitions.
35907         * modules/wait-process (Depends-on): Add sys_wait.
35908
35909         New module 'sys_wait'.
35910         * modules/sys_wait: New file.
35911         * lib/sys_wait.in.h: New file, partially copied from
35912         lib/wait-process.c.
35913         * m4/sys_wait_h.m4: New file.
35914         * doc/posix-headers/sys_wait.texi: Mention the new module.
35915
35916 2008-10-19  Bruno Haible  <bruno@clisp.org>
35917
35918         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35919
35920 2008-10-19  Bruno Haible  <bruno@clisp.org>
35921
35922         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35923         * lib/wait-process.c (WAIT_T): Remove type.
35924         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35925         (wait_subprocess): Update.
35926
35927 2008-10-19  Bruno Haible  <bruno@clisp.org>
35928
35929         New module 'atoll'.
35930         * modules/atoll: New file.
35931         * lib/stdlib.in.h (atoll): New declaration.
35932         * lib/atoll.c: New file, from glibc with modifications.
35933         * m4/atoll.m4: New file.
35934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35935         HAVE_ATOLL.
35936         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35937         * doc/posix-functions/atoll.texi: Mention the new module.
35938
35939 2008-10-19  Bruno Haible  <bruno@clisp.org>
35940
35941         Add strtoull() declaration to <stdlib.h>.
35942         * lib/stdlib.in.h (strtoull): New declaration.
35943         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35944         Set HAVE_STRTOULL.
35945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35946         HAVE_STRTOULL.
35947         * modules/strtoull (Depends-on): Add stdlib.
35948         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35949         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35950         HAVE_STRTOULL.
35951
35952 2008-10-19  Bruno Haible  <bruno@clisp.org>
35953
35954         Add strtoll() declaration to <stdlib.h>.
35955         * lib/stdlib.in.h (strtoll): New declaration.
35956         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35957         Set HAVE_STRTOLL.
35958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35959         HAVE_STRTOLL.
35960         * modules/strtoll (Depends-on): Add stdlib.
35961         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35962         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35963
35964 2008-10-19  Bruno Haible  <bruno@clisp.org>
35965
35966         * modules/bcopy (Depends-on): Add strings.
35967         (Include): Specify <strings.h>.
35968
35969 2008-10-19  Bruno Haible  <bruno@clisp.org>
35970
35971         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35972
35973 2008-10-19  Bruno Haible  <bruno@clisp.org>
35974
35975         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35976         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35977         mingw.
35978
35979 2008-10-19  Bruno Haible  <bruno@clisp.org>
35980
35981         * lib/atanl.c: Don't include isnanl.h.
35982         * lib/cosl.c: Likewise.
35983         * lib/ldexpl.c: Likewise.
35984         * lib/logl.c: Likewise.
35985         * lib/sinl.c: Likewise.
35986         * lib/sqrtl.c: Likewise.
35987         * lib/tanl.c: Likewise.
35988
35989         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35990         * lib/isnanf.h: Remove file.
35991         * lib/isnand.h: Remove file.
35992         * lib/isnanl.h: Remove file.
35993         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35994         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35995         macros.
35996         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35997         HAVE_ISNANF, don't define it as a C macro.
35998         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35999         HAVE_ISNAND, don't define it as a C macro.
36000         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36001         HAVE_ISNANL, don't define it as a C macro.
36002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36003         HAVE_ISNAN[FDL].
36004         * modules/isnanf (Files): Remove lib/isnanf.h.
36005         (Depends-on): Add math.
36006         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36007         (Include): Specify <math.h> instead of isnanf.h.
36008         * modules/isnand (Files): Remove lib/isnand.h.
36009         (Depends-on): Add math.
36010         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36011         (Include): Specify <math.h> instead of isnand.h.
36012         * modules/isnanl (Files): Remove lib/isnanl.h.
36013         (Depends-on): Add math.
36014         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36015         (Include): Specify <math.h> instead of isnanl.h.
36016         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36017         HAVE_ISNAN[FDL].
36018         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36019         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36020         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36021         * NEWS: Mention the change.
36022
36023 2008-10-18  Bruno Haible  <bruno@clisp.org>
36024
36025         Add getusershell(), setusershell(), endusershell() declarations to
36026         <unistd.h>.
36027         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36028         declarations.
36029         * lib/getusershell.c: Include unistd.h.
36030         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36031         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36032         HAVE_GETUSERSHELL.
36033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36034         and HAVE_GETUSERSHELL.
36035         * modules/getusershell (Depends-on): Add unistd, extensions.
36036         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36037         (Include): Specify <unistd.h>.
36038         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36039         HAVE_GETUSERSHELL.
36040
36041 2008-10-18  Bruno Haible  <bruno@clisp.org>
36042
36043         Add a getloadavg() declaration to <stdlib.h>.
36044         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36045         getloadavg declaration.
36046         (getloadavg): New declaration.
36047         * lib/getloadavg.c: Include <stdlib.h> first.
36048         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36049         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36050         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36052         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36053         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36054         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36055         (Include): Specify <stdlib.h>.
36056         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36057         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36058
36059 2008-10-18  Bruno Haible  <bruno@clisp.org>
36060
36061         * lib/dirchownmod.c: Don't include lchmod.h.
36062
36063         Move the lchmod() declaration to <sys/stat.h>.
36064         * lib/lchmod.h: Remove file.
36065         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36066         (lchmod): New declaration, moved here from lib/lchown.h.
36067         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36068         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36069         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36070         and HAVE_LCHMOD.
36071         * modules/lchmod (Files): Remove lib/lchmod.h.
36072         (Depends-on): Add sys_stat, extensions.
36073         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36074         (Include): Specify <sys/stat.h> instead of lchmod.h.
36075         * modules/sys_stat (Depends-on): Add link-warning.
36076         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36077         definition of GL_LINK_WARNING.
36078         * NEWS: Mention the change.
36079
36080 2008-10-18  Bruno Haible  <bruno@clisp.org>
36081
36082         * lib/fchdir.c: Don't include dirfd.h.
36083         * lib/fts.c: Likewise.
36084         * lib/getcwd.c: Likewise.
36085         * lib/glob.c: Likewise.
36086
36087         Move the dirfd() declaration to <dirent.h>.
36088         * lib/dirfd.h: Remove file.
36089         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36090         (dirfd): New declaration.
36091         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36092         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36093         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36094         HAVE_DECL_DIRFD.
36095         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36096         HAVE_DECL_DIRFD.
36097         * modules/dirfd (Files): Remove lib/dirfd.h.
36098         (Depends-on): Add dirent, extensions.
36099         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36100         (Include): Specify <dirent.h> instead of dirfd.h.
36101         * modules/dirent (Depends-on): Add link-warning.
36102         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36103         definition of GL_LINK_WARNING.
36104         * NEWS: Mention the change.
36105
36106 2008-10-18  Bruno Haible  <bruno@clisp.org>
36107
36108         Move the euidaccess() declaration to <unistd.h>.
36109         * lib/euidaccess.h: Remove file.
36110         * lib/unistd.in.h (euidaccess): New declaration.
36111         * lib/euidaccess.c: Don't include euidaccess.h.
36112         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36113         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36115         and HAVE_EUIDACCESS.
36116         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36117         (Depends-on): Add unistd.
36118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36119         (Include): Specify <unistd.h> instead of euidaccess.h.
36120         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36121         HAVE_EUIDACCESS.
36122         * NEWS: Mention the change.
36123
36124 2008-10-18  Bruno Haible  <bruno@clisp.org>
36125
36126         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36127
36128         Move the getdomainname() declaration to <unistd.h>.
36129         * lib/getdomainname.h: Remove file.
36130         * lib/unistd.in.h (getdomainname): New declaration.
36131         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36132         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36133         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36134         HAVE_GETDOMAINNAME.
36135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36136         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36137         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36138         (Depends-on): Add unistd, extensions.
36139         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36140         (Includes): Specify <unistd.h> instead of getdomainname.h.
36141         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36142         HAVE_GETDOMAINNAME.
36143         * NEWS: Mention the change.
36144
36145 2008-10-18  Bruno Haible  <bruno@clisp.org>
36146
36147         * modules/dirent: New file.
36148         * m4/dirent_h.m4: New file.
36149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36150         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36151         * modules/fchdir (Files): Remove lib/dirent.in.h.
36152         (Depends-on): Add dirent.
36153         (Makefile.am): Move rules to modules/dirent.
36154         * doc/posix-headers/dirent.texi: Mention the new module.
36155
36156 2008-10-18  Bruno Haible  <bruno@clisp.org>
36157
36158         Avoid -Wunused-parameter warnings in public gnulib header files.
36159         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36160         macro.
36161         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36162
36163 2008-10-18  Bruno Haible  <bruno@clisp.org>
36164
36165         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36166         * doc/glibc-functions/error.texi: Mention the module 'error'.
36167         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36168         * doc/glibc-functions/getdomainname.texi: Mention the module
36169         'getdomainname'.
36170         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36171         * doc/glibc-functions/getpagesize.texi: Mention the module
36172         'getpagesize'.
36173         * doc/glibc-functions/getusershell.texi: Mention the module
36174         'getusershell'.
36175         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36176         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36177         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36178         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36179         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36180         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36181         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36182         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36183         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36184         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36185         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36186         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36187         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36188         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36189
36190 2008-10-17  Bruno Haible  <bruno@clisp.org>
36191
36192         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36193         HP-UX and IRIX, use -0.0L.
36194         * tests/test-ceill.c (minus_zero): Likewise.
36195         * tests/test-floorl.c (minus_zero): Likewise.
36196         * tests/test-frexpl.c (minus_zero): Likewise.
36197         * tests/test-isnan.c (minus_zerol): Likewise.
36198         * tests/test-isnanl.h (minus_zero): Likewise.
36199         * tests/test-ldexpl.c (minus_zero): Likewise.
36200         * tests/test-roundl.c (minus_zero): Likewise.
36201         * tests/test-signbit.c (minus_zerol): Likewise.
36202         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36203         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36204         * tests/test-truncl.c (minus_zero): Likewise.
36205         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36206         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36207         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36208         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36209
36210 2008-10-17  Bruno Haible  <bruno@clisp.org>
36211
36212         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36213         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36214         that it gets activated only for gcc >= 3.0.
36215         * lib/dirent.in.h: Likewise.
36216         * lib/errno.in.h: Likewise.
36217         * lib/fcntl.in.h: Likewise.
36218         * lib/float.in.h: Likewise.
36219         * lib/iconv.in.h: Likewise.
36220         * lib/inttypes.in.h: Likewise.
36221         * lib/locale.in.h: Likewise.
36222         * lib/math.in.h: Likewise.
36223         * lib/netdb.in.h: Likewise.
36224         * lib/netinet_in.in.h: Likewise.
36225         * lib/search.in.h: Likewise.
36226         * lib/signal.in.h: Likewise.
36227         * lib/spawn.in.h: Likewise.
36228         * lib/stdarg.in.h: Likewise.
36229         * lib/stdint.in.h: Likewise.
36230         * lib/stdio.in.h: Likewise.
36231         * lib/stdlib.in.h: Likewise.
36232         * lib/string.in.h: Likewise.
36233         * lib/strings.in.h: Likewise.
36234         * lib/sys_file.in.h: Likewise.
36235         * lib/sys_ioctl.in.h: Likewise.
36236         * lib/sys_select.in.h: Likewise.
36237         * lib/sys_socket.in.h: Likewise.
36238         * lib/sys_stat.in.h: Likewise.
36239         * lib/sys_time.in.h: Likewise.
36240         * lib/sysexits.in.h: Likewise.
36241         * lib/time.in.h: Likewise.
36242         * lib/unistd.in.h: Likewise.
36243         * lib/wchar.in.h: Likewise.
36244         * lib/wctype.in.h: Likewise.
36245         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36246
36247 2008-10-17  Jim Meyering  <meyering@redhat.com>
36248
36249         ignore-value: don't depend on inline module
36250         * modules/ignore-value (Depends-on): Remove 'inline'.
36251         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36252         Suggestion from Bruno Haible.
36253
36254 2008-10-17  Bruno Haible  <bruno@clisp.org>
36255
36256         New implementation of condition variables for Win32.
36257         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36258         (gl_linked_waitqueue_t): New type.
36259         (gl_cond_t): Use it.
36260         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36261         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36262         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36263         (glthread_cond_init_func, glthread_cond_wait_func,
36264         glthread_cond_timedwait_func, glthread_cond_signal_func,
36265         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36266         Reimplemented on the basis of gl_linked_waitqueue_t.
36267         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36268         gl_waitqueue_t.
36269         (gl_rwlock_t): Update.
36270         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36271
36272 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36273
36274         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36275         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36276
36277 2008-10-17  Jim Meyering  <meyering@redhat.com>
36278
36279         ignore-value: new module
36280         * modules/ignore-value: New file.
36281         * lib/ignore-value.h: New file.
36282         * MODULES.html.sh (Compiler warning management): New section,
36283         just for this module.  More to come.
36284
36285 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36286
36287         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36288         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36289         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36290
36291 2008-10-16  Jim Meyering  <meyering@redhat.com>
36292
36293         openat-die.c: avoid 'no previous prototype' warning
36294         * lib/openat-die.c: Include "openat.h".
36295         Reported by Reuben Thomas <rrt@sc3d.org>.
36296
36297 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36298
36299         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36300         * lib/netdb.in.h: Fix typo.
36301         Reported by Bruno Haible  <bruno@clisp.org>
36302
36303         * lib/netdb.in.h: Include sys/socket.h for platforms without
36304         netdb.h, to get structures like hostent on MinGW.
36305         * modules/netdb (Depends-on): Add sys_socket.
36306
36307 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36308
36309         * modules/netdb, modules/netdb-tests: New file.
36310         * m4/netdb_h.m4: New file.
36311         * lib/netdb.in.h: Add, currently just an empty file pending
36312         definitions.
36313         * tests/test-netdb.c: New file.
36314         * doc/posix-headers/netdb.texi: Mention that we replace it if
36315         needed.
36316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36317         netdb.
36318
36319 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36320
36321         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36322         with code.
36323
36324 2008-10-13  Bruno Haible  <bruno@clisp.org>
36325
36326         * lib/glthread/cond.c (glthread_cond_wait_func,
36327         glthread_cond_timedwait_func): Add a comment.
36328
36329 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36330
36331         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36332         * tests/test-select.c: Likewise,
36333
36334 2008-10-13  Bruno Haible  <bruno@clisp.org>
36335
36336         * lib/glthread/cond.c (glthread_cond_wait_func,
36337         glthread_cond_timedwait_func): Fix variable name.
36338         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36339
36340 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36341
36342         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36343         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36344         struct sockaddr.sa_len.
36345         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36346
36347 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36348
36349         * build-aux/pmccabe2html: Add css and css_url parameters.
36350
36351 2008-10-12  Bruno Haible  <bruno@clisp.org>
36352
36353         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36354         calling aclx_get.
36355         Reported by Rainer Tammer <tammer@tammer.net>.
36356
36357 2008-10-12  Bruno Haible  <bruno@clisp.org>
36358
36359         Use msvcrt aware primitives for creation/termination of Win32 threads.
36360         * lib/glthread/thread.c: Include <process.h>.
36361         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36362         (wrapper_func): Update signature.
36363         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36364
36365 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36366             Bruno Haible  <bruno@clisp.org>
36367
36368         Provide a Win32 implementation of the 'cond' module.
36369         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36370         * lib/glthread/cond.c (glthread_cond_init_func,
36371         glthread_cond_wait_func, glthread_cond_timedwait_func,
36372         glthread_cond_signal_func, glthread_cond_broadcast_func,
36373         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36374         * modules/cond (Dependencies): Add gettimeofday.
36375
36376 2008-10-11  Bruno Haible  <bruno@clisp.org>
36377
36378         Make sleep work on older versions of mingw.
36379         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36380         only whether it exists.
36381         * doc/posix-functions/sleep.texi: Mention the problem with older
36382         versions of mingw.
36383
36384 2008-10-11  Bruno Haible  <bruno@clisp.org>
36385
36386         New module 'shutdown'.
36387         * modules/shutdown: New file.
36388         * lib/sys_socket.in.h (shutdown): New declaration.
36389         * lib/winsock.c (shutdown): New function.
36390         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36391         GNULIB_SHUTDOWN.
36392         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36393         * doc/posix-functions/shutdown.texi: Document the new module.
36394
36395 2008-10-11  Jim Meyering  <meyering@redhat.com>
36396
36397         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36398
36399 2008-10-11  Bruno Haible  <bruno@clisp.org>
36400
36401         New module 'fclose'.
36402         * modules/fclose: New file.
36403         * lib/stdio.in.h (fclose): New declaration.
36404         * lib/fclose.c: New file.
36405         * m4/fclose.m4: New file.
36406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36407         REPLACE_FCLOSE.
36408         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36409         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36410         REPLACE_FCLOSE.
36411         * modules/close (Depends-on): fclose.
36412         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36413
36414 2008-10-11  Bruno Haible  <bruno@clisp.org>
36415
36416         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36417         set errno and don't call _close.
36418
36419 2008-10-10  Bruno Haible  <bruno@clisp.org>
36420
36421         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36422         ACL, not afterwards. Fixes test failure on Cygwin.
36423
36424 2008-10-09  Ben Pfaff  <blp@gnu.org>
36425
36426         * build-aux/announce-gen: Fix gnulib version related part of usage
36427         message.  Die with a useful error message if no tarballs are
36428         found.
36429
36430 2008-10-10  Jim Meyering  <meyering@redhat.com>
36431
36432         bootstrap: use git's --depth=N option only if it's supported
36433         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36434         recognize the --depth option.  Reported by Pádraig Brady.
36435
36436 2008-10-09  Bruno Haible  <bruno@clisp.org>
36437
36438         New module 'ioctl'.
36439         * modules/ioctl: New file.
36440         * lib/sys_socket.in.h (ioctl): Remove declaration.
36441         * lib/winsock.c: Include <sys/ioctl.h>.
36442         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36443         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36444         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36445         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36446         * doc/posix-functions/ioctl.texi: Mention the new module.
36447
36448 2008-10-09  Bruno Haible  <bruno@clisp.org>
36449
36450         New module 'sys_ioctl'.
36451         * lib/sys_ioctl.in.h: New file.
36452         * m4/sys_ioctl_h.m4: New file.
36453         * modules/sys_ioctl: New file.
36454         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36455
36456 2008-10-09  Bruno Haible  <bruno@clisp.org>
36457
36458         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36459         * lib/winsock.c: Include <stdarg.h>.
36460         (rpl_ioctl): Change to second argument 'int' and then varargs.
36461
36462 2008-10-09  Bruno Haible  <bruno@clisp.org>
36463
36464         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36465         when the sys_socket module is present and the system has <winsock2.h>.
36466
36467 2008-10-09  Bruno Haible  <bruno@clisp.org>
36468
36469         * doc/posix-functions/close.texi: Mention module 'close' instead of
36470         module 'sys_socket'.
36471
36472 2008-10-09  Bruno Haible  <bruno@clisp.org>
36473
36474         * doc/glibc-headers/sys_ioctl.texi: New file.
36475         * doc/gnulib.texi: Include it.
36476
36477 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36478             Bruno Haible  <bruno@clisp.org>
36479
36480         Combine the two replacements of 'close'.
36481         * lib/sys_socket.in.h (close): Define to a reminder to include
36482         <unistd.h>.
36483         (_gl_close_fd_maybe_socket): New declaration.
36484         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36485         * lib/winsock.c (close): Remove undefinition.
36486         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36487         needed for the gnulib module 'close'.
36488         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36489         define to an error symbol or to a warning, if suitable.
36490         * lib/close.c: Include <sys/socket.h>.
36491         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36492         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36493         UNISTD_H_HAVE_WINSOCK2_H.
36494         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36496         UNISTD_H_HAVE_WINSOCK2_H.
36497         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36498         (configure.ac): Set a module indicator.
36499         (Makefile.am): Substitute GNULIB_CLOSE.
36500         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36501         * modules/poll-tests (Depends-on): Add close.
36502         * modules/select-tests (Depends-on): Likewise.
36503
36504 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36505             Bruno Haible  <bruno@clisp.org>
36506
36507         New module 'close'.
36508         * modules/close: New file.
36509         * lib/unistd.in.h (close): Move declaration out of the
36510         FCHDIR_REPLACEMENT scope.
36511         (_gl_unregister_fd): New declaration.
36512         * lib/close.c: New file.
36513         * lib/fchdir.c (rpl_close): Remove function.
36514         * m4/close.m4: New file.
36515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36516         close.
36517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36518         REPLACE_CLOSE.
36519         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36520         REPLACE_CLOSE.
36521         * modules/fchdir (Depends-on): Add close.
36522
36523 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36524             Bruno Haible  <bruno@clisp.org>
36525
36526         * lib/fcntl.in.h (open): Simplify conditionals.
36527         (_gl_register_fd): New declaration.
36528         * lib/fchdir.c (rpl_open): Remove function.
36529         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36530         also.
36531         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36533         open.
36534
36535 2008-10-09  Jim Meyering  <meyering@redhat.com>
36536
36537         GNUmakefile: use the more name-space-friendly "_version"
36538         * top/GNUmakefile (_dummy): Update.
36539         (_version): Rename from "version".
36540
36541 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36542             Bruno Haible  <bruno@clisp.org>
36543
36544         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36545         rpl_close.
36546         (_gl_register_fd): New function, extracted from rpl_open.
36547         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36548         (rpl_open, rpl_opendir): Use _gl_register_fd.
36549
36550 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36551
36552         Fix organization of 'open' replacement.
36553         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36554         (gl_FUNC_OPEN): Use it.
36555         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36556
36557 2008-10-08  Bruno Haible  <bruno@clisp.org>
36558
36559         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36560
36561 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36562
36563         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36564         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36565         listen).
36566
36567 2008-10-08  Eric Blake  <ebb9@byu.net>
36568
36569         GNUmakefile: add 'make version' target
36570         * top/GNUmakefile (_curr-ver): Split version update rules...
36571         (version): ...into a target.
36572
36573 2008-10-07  Bruno Haible  <bruno@clisp.org>
36574
36575         Use a more portable replacement expression for -0.0L.
36576         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36577         instead of -0.0L. Fix m4 quotation.
36578
36579         * tests/test-signbit.c: Include <float.h>.
36580         (minus_zero): New variable.
36581         (test_signbitl): Use minus_zero instead of -zero.
36582         * modules/signbit-tests (Depends-on): Add float.
36583
36584         * tests/test-ceill.c: Include <float.h>.
36585         (zero): Remove variable.
36586         (minus_zero): New variable.
36587         (main): Use minus_zero instead of -zero.
36588         * modules/ceill-tests (Depends-on): Add float.
36589
36590         * tests/test-floorl.c: Include <float.h>.
36591         (zero): Remove variable.
36592         (minus_zero): New variable.
36593         (main): Use minus_zero instead of -zero.
36594         * modules/floorl-tests (Depends-on): Add float.
36595
36596         * tests/test-roundl.c: Include <float.h>.
36597         (zero): Remove variable.
36598         (minus_zero): New variable.
36599         (main): Use minus_zero instead of -zero.
36600         * modules/roundl-tests (Depends-on): Add float.
36601
36602         * tests/test-truncl.c: Include <float.h>.
36603         (zero): Remove variable.
36604         (minus_zero): New variable.
36605         (main): Use minus_zero instead of -zero.
36606         * modules/truncl-tests (Depends-on): Add float.
36607
36608         * tests/test-frexpl.c (zero): Remove variable.
36609         (minus_zero): New variable.
36610         (main): Use minus_zero instead of -zero.
36611         * modules/frexpl-tests (Depends-on): Add float.
36612
36613         * tests/test-isnan.c (zerol): Remove variable.
36614         (minus_zerol): New variable.
36615         (test_long_double): Use minus_zerol instead of -zerol.
36616         * modules/isnan-tests (Depends-on): Add float.
36617
36618         * tests/test-isnanl.h (zero): Remove variable.
36619         (minus_zero): New variable.
36620         (main): Use minus_zero instead of -zero.
36621         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36622         * modules/isnanl-tests (Depends-on): Add float.
36623
36624         * tests/test-ldexpl.c (zero): Remove variable.
36625         (minus_zero): New variable.
36626         (main): Use minus_zero instead of -zero.
36627         * modules/ldexpl-tests (Depends-on): Add float.
36628
36629         * tests/test-snprintf-posix.h (zerol): Remove variable.
36630         (minus_zerol): New variable.
36631         (test_function): Use minus_zerol instead of -zerol.
36632         * modules/snprintf-posix-tests (Depends-on): Add float.
36633         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36634
36635         * tests/test-sprintf-posix.h (zerol): Remove variable.
36636         (minus_zerol): New variable.
36637         (test_function): Use minus_zerol instead of -zerol.
36638         * modules/sprintf-posix-tests (Depends-on): Add float.
36639         * modules/vsprintf-posix-tests (Depends-on): Add float.
36640
36641         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36642         (minus_zerol): New variable.
36643         (test_function): Use minus_zerol instead of -zerol.
36644         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36645
36646         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36647         (minus_zerol): New variable.
36648         (test_function): Use minus_zerol instead of -zerol.
36649         * modules/vasprintf-posix-tests (Depends-on): Add float.
36650
36651 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36652
36653         * MODULES.html.sh (Support for building documentation): Mention
36654         pmccabe2html.  Sort entries.
36655
36656         Add pmccabe2html module, from gnupdf.
36657         * build-aux/pmccabe.css: New file.
36658         * build-aux/pmccabe2html: New file.
36659         * m4/pmccabe2html.m4: New file.
36660         * modules/pmccabe2html: New file.
36661
36662 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36663
36664         flock: new module
36665         * MODULES.html.sh: Add to list of modules.
36666         * lib/flock.c: flock implementation for Windows and Unix systems
36667         which have fcntl.
36668         * doc/glibc-functions/flock.texi: Update documentation.
36669         * lib/sys_file.in.h: <sys/file.h> header file.
36670         * m4/flock.m4: M4 macros.
36671         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36672         * modules/flock: flock module.
36673         * modules/flock-tests: flock tests module.
36674         * modules/sys_file: sys/file.h module.
36675         * tests/test-flock.c: test suite for flock.
36676
36677 2008-10-06  Jim Meyering  <meyering@redhat.com>
36678
36679         bootstrap: check for LT_INIT more portably still ;-)
36680         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36681         Spotted by Bruno Haible.
36682
36683 2008-10-06  Eric Blake  <ebb9@byu.net>
36684
36685         test-signbit: avoid tripping Irix cc bug on -0.0L
36686         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36687         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36688         entire testsuite consistent and avoids an Irix 6.2 bug.
36689
36690 2008-10-05  Bruno Haible  <bruno@clisp.org>
36691             Jim Meyering  <jim@meyering.net>
36692
36693         Add an option for ignoring EPIPE during close_stdout.
36694         * lib/closeout.h: Include <stdbool.h>.
36695         (close_stdout_set_ignore_EPIPE): New declaration.
36696         * lib/closeout.c: Include <stdbool.h>.
36697         (ignore_EPIPE): New variable.
36698         (close_stdout_set_ignore_EPIPE): New function.
36699         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36700         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36701         failure.
36702         * modules/closeout (Depends-on): Add stdbool.
36703
36704 2008-10-05  Bruno Haible  <bruno@clisp.org>
36705
36706         * modules/accept: New file.
36707         * modules/bind: New file.
36708         * modules/connect: New file.
36709         * modules/getpeername: New file.
36710         * modules/getsockname: New file.
36711         * modules/getsockopt: New file.
36712         * modules/listen: New file.
36713         * modules/recv: New file.
36714         * modules/recvfrom: New file.
36715         * modules/send: New file.
36716         * modules/sendto: New file.
36717         * modules/setsockopt: New file.
36718         * modules/socket: New file.
36719         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36720         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36721         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36722         the particular module is requested. Add a link warning when the
36723         particular module is not requested.
36724         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36725         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36726         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36727         the particular module is requested.
36728         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36729         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36730         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36731         * modules/sys_socket (Depends-on): Add link-warning.
36732         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36733         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36734         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36735         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36736         GL_LINK_WARNING.
36737         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36738         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36739         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36740         * doc/posix-functions/getpeername.texi: Mention the new module
36741         'getpeername'.
36742         * doc/posix-functions/getsockname.texi: Mention the new module
36743         'getsockname'.
36744         * doc/posix-functions/getsockopt.texi: Mention the new module
36745         'getsockopt'.
36746         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36747         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36748         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36749         * doc/posix-functions/send.texi: Mention the new module 'send'.
36750         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36751         * doc/posix-functions/setsockopt.texi: Mention the new module
36752         'setsockopt'.
36753         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36754         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36755         listen, connect, accept.
36756         * modules/select-tests (Depends-on): Likewise.
36757
36758 2008-10-05  Bruno Haible  <bruno@clisp.org>
36759
36760         * lib/winsock.c (strerror): Remove unused #undef.
36761         (rpl_close): Remove unused local variable.
36762
36763         * modules/sys_socket (Depends-on); Add errno.
36764
36765 2008-10-05  Bruno Haible  <bruno@clisp.org>
36766
36767         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36768         (select): Add a link warning when the 'select' module is not used.
36769         * modules/sys_select (Depends-on): Add link-warning.
36770         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36771         Suggested by Paolo Bonzini.
36772
36773 2008-10-05  Jim Meyering  <meyering@redhat.com>
36774
36775         bootstrap: check for LT_INIT more portably
36776         * build-aux/bootstrap: Avoid using grep -E, since it's not
36777         portable enough.  Suggestion from Bruno Haible.
36778
36779 2008-10-05  Bruno Haible  <bruno@clisp.org>
36780
36781         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36782         as being fixed by gnulib.
36783
36784 2008-10-05  Bruno Haible  <bruno@clisp.org>
36785
36786         * modules/select-tests: New file, mostly copied from
36787         modules/sys_select-tests.
36788         * tests/test-select.c: New file, mostly copied from
36789         tests/test-sys_select.c.
36790         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36791         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36792         (Makefile.am): Remove test_sys_select_LDADD.
36793
36794         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36795         to an undefined symbol, for an error message.
36796         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36797         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36798         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36799         winsock-select.c here.
36800         * modules/sys_select (Files): Remove lib/winsock-select.c.
36801         (Depends-on): Remove alloca.
36802         (Makefile.am): Substitute GNULIB_SELECT.
36803         * modules/select: New file.
36804         * doc/posix-functions/select.texi: Update.
36805
36806 2008-10-05  Bruno Haible  <bruno@clisp.org>
36807
36808         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36809         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36810         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36811         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36812         getdtablesize.
36813         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36814         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36815
36816 2008-10-05  Bruno Haible  <bruno@clisp.org>
36817
36818         * modules/getdtablesize-tests: New file.
36819         * tests/test-getdtablesize.c: New file.
36820
36821         New module 'getdtablesize'.
36822         * lib/unistd.in.h (getdtablesize): New declaration.
36823         * lib/getdtablesize.c: New file.
36824         * m4/getdtablesize.m4: New file.
36825         * modules/getdtablesize: New file.
36826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36827         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36828         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36829         HAVE_GETDTABLESIZE.
36830         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36831
36832 2008-10-05  Bruno Haible  <bruno@clisp.org>
36833
36834         * modules/sched (Makefile.am): Fix typo.
36835         Reported by Simon Josefsson.
36836
36837 2008-10-05  Jim Meyering  <meyering@redhat.com>
36838
36839         bootstrap: check for LT_INIT, too
36840         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36841         are deprecated.  Suggestion from Ralf Wildenhues.
36842
36843 2008-10-05  Bruno Haible  <bruno@clisp.org>
36844
36845         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36846         overriding them by ours.
36847         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36848
36849 2008-10-05  Jim Meyering  <meyering@redhat.com>
36850
36851         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36852         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36853         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36854
36855 2008-10-04  Bruno Haible  <bruno@clisp.org>
36856
36857         * modules/dup2 (License): Change to LGPLv2+.
36858         * modules/sleep (License): Likewise.
36859         * modules/perror (License): Likewise.
36860         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36861         Blake.
36862         * modules/signal (License): Likewise.
36863         * modules/sigprocmask (License): Likewise.
36864         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36865         Meyering.
36866
36867 2008-10-04  Bruno Haible  <bruno@clisp.org>
36868
36869         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36870         Reported by Rainer Tammer <tammer@tammer.net>.
36871
36872 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36873             Bruno Haible  <bruno@clisp.org>
36874
36875         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36876         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36877         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36878
36879 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36880
36881         filevercmp: new module
36882         * lib/filevercmp.h: New function filevercmp comparing version strings.
36883         * lib/filevercmp.c: Implementation of filevercmp function.
36884         * modules/filevercmp: Module metadata.
36885         * tests/test-filevercmp.c: Unit test for new module.
36886         * modules/filevercmp-tests: Unit test metadata.
36887         * MODULES.html.sh: Add filevercmp module.
36888
36889 2008-10-03  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/c-ctype.h: Add comment.
36892         Reported by Jim Meyering.
36893
36894 2008-10-02  Bruno Haible  <bruno@clisp.org>
36895
36896         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36897
36898 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36899
36900         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36901         name of bootstrap.conf accordingly.
36902
36903 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36904
36905         * build-aux/bootstrap: Install git-merge-changelog configuration
36906         items into .gitconfig if needed.
36907
36908 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36909
36910         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36911         git repository, and initialize/update it accordingly.
36912
36913 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36914
36915         * modules/fsync-tests: New file.
36916         * tests/test-fsync.c: New file.
36917
36918         New module 'fsync'.
36919         * lib/fsync.c: New file.
36920         * m4/fsync.m4: New file.
36921         * modules/fsync: New file.
36922         * lib/unistd.in.h (fsync): New declaration.
36923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36924         GNULIB_FSYNC and HAVE_FSYNC.
36925         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36926         * MODULES.html.sh (posix_functions): Add fsync.
36927         * doc/posix-functions/fsync.texi: Mention the new module.
36928
36929 2008-10-02  Jim Meyering  <meyering@redhat.com>
36930
36931         fts.c: sync with similar code from coreutils' remove.c
36932         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36933         Guard also with "#if defined __linux__", since for now at least,
36934         this code is Linux-kernel-specific.
36935
36936 2008-10-02  Jim Meyering  <meyering@redhat.com>
36937
36938         fts: bug fixes
36939         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36940         Include <sys/vfs.h>, not <sys/statfs.h>.
36941
36942         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36943         Include <sys/vfs.h>, not <sys/statfs.h>.
36944
36945 2008-10-01  Bruno Haible  <bruno@clisp.org>
36946
36947         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36949         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36950         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36951         * doc/posix-functions/posix_spawnp.texi: Likewise.
36952         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36953         whether posix_spawn actually works.
36954         * m4/pipe.m4 (gl_PIPE): Likewise.
36955         * modules/execute (Files): Add m4/posix_spawn.m4.
36956         * modules/pipe (Files): Add m4/posix_spawn.m4.
36957         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36958
36959 2008-10-01  Jim Meyering  <meyering@redhat.com>
36960
36961         remove trailing spaces
36962         * NEWS: Likewise.
36963         * lib/poll.c (poll): Likewise.
36964         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36965         * lib/winsock.c (rpl_close): Likewise.
36966         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36967         * modules/yield: Likewise.
36968         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36969         * tests/test-sys_select.c (connect_to_socket): Likewise.
36970
36971         fts.c: adjust a new interface to be more generally useful
36972         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36973         (fts_build): Adjust caller.
36974
36975 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36976
36977         * modules/cond-tests: New file.
36978         * tests/test-cond.c: New file.
36979
36980 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36981             Bruno Haible  <bruno@clisp.org>
36982
36983         * modules/cond (Dependencies): Add errno, time.
36984         * lib/glthread/cond.h: Include <time.h>.
36985         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36986         across platforms.
36987
36988 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36989             Bruno Haible  <bruno@clisp.org>
36990
36991         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36992
36993 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36994             Bruno Haible  <bruno@clisp.org>
36995
36996         * modules/tls-tests (Depends-on): Add thread, yield.
36997         (configure.ac): Remove all checks.
36998         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36999         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37000         gl_thread_self): Remove definitions. Include glthread/thread.h and
37001         glthread/yield.h instead.
37002         (test_tls): Pass an additional NULL argument to gl_thread_join.
37003
37004 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37005             Bruno Haible  <bruno@clisp.org>
37006
37007         * modules/lock-tests (Depends-on): Add thread, yield.
37008         (configure.ac): Remove all checks.
37009         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37010         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37011         gl_thread_self): Remove definitions. Include glthread/thread.h and
37012         glthread/yield.h instead.
37013         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37014         additional NULL argument to gl_thread_join.
37015
37016 2008-09-30  Bruno Haible  <bruno@clisp.org>
37017
37018         Fix the Win32 implementation of the 'thread' module.
37019         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37020         pointer type.
37021         (gl_thread_self): Invoke gl_thread_self_func.
37022         (gl_thread_self_func): New declaration.
37023         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37024         (do_init_self_key, init_self_key): New functions.
37025         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37026         Remove some fields.
37027         (running_threads, running_lock): Remove variables.
37028         (get_current_thread_handle): New function.
37029         (gl_thread_self_func, wrapper_func, glthread_create_func,
37030         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37031         simplified.
37032
37033 2008-09-30  Bruno Haible  <bruno@clisp.org>
37034
37035         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37036         files.
37037
37038 2008-09-30  Jim Meyering  <meyering@redhat.com>
37039
37040         fts.m4: correct the test for statfs.f_type
37041         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37042         when checking for statfs.f_type.
37043
37044 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37045
37046         tests: avoid some compiler warnings
37047         * tests/test-memchr.c (main): Pass NULL indirectly.
37048         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37049
37050 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37051
37052         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37053         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37054         exactly specified dayshifts.
37055         (dayshift): New rule.
37056         (rel): Add dayshift.
37057         (relative_time_table) [tomorrow, yesterday, today, now]:
37058         Use tDAY_SHIFT in place of tDAY_UNIT.
37059         * tests/test-getdate.c: Add tests for now-disallowed countable
37060         dayshifts, e.g., "4 yesterday ago".
37061
37062 2008-09-29  Bruno Haible  <bruno@clisp.org>
37063
37064         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37065         * tests/test-posix_spawn1.in.sh: Renamed from
37066         tests/test-posix_spawn.in.sh.
37067         * tests/test-posix_spawn2.c: New file.
37068         * tests/test-posix_spawn2.in.sh: New file.
37069         * modules/posix_spawnp-tests (Files): Update.
37070         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37071
37072 2008-09-29  Bruno Haible  <bruno@clisp.org>
37073
37074         Propagate effects of putenv/setenv/unsetenv to child processes.
37075         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37076         * lib/pipe.c (create_pipe): Likewise.
37077
37078 2008-09-29  Bruno Haible  <bruno@clisp.org>
37079
37080         Enable use of shell scripts as executables in mingw.
37081         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37082         run the program as a shell script.
37083         * lib/pipe.c (create_pipe): Likewise.
37084         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37085         resulting array.
37086
37087 2008-09-29  Eric Blake  <ebb9@byu.net>
37088
37089         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37090
37091 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37092
37093         * doc/posix-functions/accept.texi: Update mingw problems.
37094         * doc/posix-functions/bind.texi: Update mingw problems.
37095         * doc/posix-functions/close.texi: Update mingw problems.
37096         * doc/posix-functions/connect.texi: Update mingw problems.
37097         * doc/posix-functions/getpeername.texi: Update mingw problems.
37098         * doc/posix-functions/getsockname.texi: Update mingw problems.
37099         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37100         * doc/posix-functions/ioctl.texi: Update mingw problems.
37101         * doc/posix-functions/listen.texi: Update mingw problems.
37102         * doc/posix-functions/recv.texi: Update mingw problems.
37103         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37104         * doc/posix-functions/select.texi: Update mingw problems.
37105         * doc/posix-functions/send.texi: Update mingw problems.
37106         * doc/posix-functions/sendto.texi: Update mingw problems.
37107         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37108         * doc/posix-functions/socket.texi: Update mingw problems.
37109
37110 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37111             Bruno Haible  <bruno@clisp.org>
37112
37113         * lib/sys_select.in.h: Include sys/time.h.
37114         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37115         * modules/sys_select: Depend on sys_time.
37116         * tests/test-sys_select.c: Test that sys/select.h defines struct
37117         timeval fully.
37118
37119 2008-09-29  Bruno Haible  <bruno@clisp.org>
37120
37121         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37122         * lib/sys_select.in.h: Likewise.
37123
37124 2008-09-29  Bruno Haible  <bruno@clisp.org>
37125
37126         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37127
37128 2008-09-29  Bruno Haible  <bruno@clisp.org>
37129
37130         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37131         Set LIBSOCKET instead of augmenting LIBS.
37132         * modules/sockets (Link): New section.
37133         * modules/sockets-tests (test_sockets_LDADD): New variable.
37134         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37135         * modules/poll-tests (test_poll_LDADD): New variable.
37136         * NEWS: Document the change.
37137
37138 2008-09-29  Bruno Haible  <bruno@clisp.org>
37139
37140         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37141         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37142         ARPA_INET_H directly.
37143         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37144
37145 2008-09-28  Bruno Haible  <bruno@clisp.org>
37146
37147         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37148         from gl_HEADER_SYS_SOCKET.
37149         (gl_HEADER_SYS_SOCKET): Invoke it.
37150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37151
37152 2008-09-28  Bruno Haible  <bruno@clisp.org>
37153
37154         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37155         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37156         Needed on OSF/1 4.0.
37157
37158 2008-09-28  Bruno Haible  <bruno@clisp.org>
37159
37160         Override open more carefully.
37161         * lib/open.c (orig_open): New function.
37162         (rpl_open): Use orig_open instead of open.
37163         * lib/fcntl.in.h: Add special invocation convention.
37164         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37165         (gl_FUNC_OPEN): Invoke it.
37166
37167         Override freopen more carefully.
37168         * lib/freopen.c (orig_freopen): New function.
37169         (rpl_freopen): Use orig_freopen instead of freopen.
37170         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37171         (gl_FUNC_FREOPEN): Invoke it.
37172
37173         Override fopen more carefully.
37174         * lib/fopen.c (orig_fopen): New function.
37175         (rpl_fopen): Use orig_fopen instead of fopen.
37176         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37177         (gl_FUNC_FOPEN): Invoke it.
37178         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37179
37180 2008-09-28  Bruno Haible  <bruno@clisp.org>
37181
37182         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37183         SIGPIPE.
37184
37185 2008-09-28  Bruno Haible  <bruno@clisp.org>
37186
37187         * tests/test-sigaction.c (handler, main): Disable the check whether
37188         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37189         glibc systems with LinuxThreads.
37190
37191 2008-09-28  Bruno Haible  <bruno@clisp.org>
37192
37193         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37194
37195         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37196         with AIX xlc.
37197         * lib/fcntl.in.h (open): Likewise.
37198         Reported by Rainer Tammer <tammer@tammer.net>.
37199
37200 2008-09-28  Bruno Haible  <bruno@clisp.org>
37201
37202         * modules/posix_spawnp-tests: New file.
37203         * tests/test-posix_spawn.c: New file.
37204         * tests/test-posix_spawn.in.sh: New file.
37205
37206         New module 'posix_spawnp'.
37207         * modules/posix_spawnp: New file.
37208         * lib/spawnp.c: New file, from GNU libc with modifications.
37209         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37210
37211         New module 'posix_spawn'.
37212         * modules/posix_spawn: New file.
37213         * lib/spawn.c: New file, from GNU libc with modifications.
37214         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37215
37216         New module 'posix_spawnattr_destroy'.
37217         * modules/posix_spawnattr_destroy: New file.
37218         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37219         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37220         module.
37221
37222         New module 'posix_spawnattr_setsigmask'.
37223         * modules/posix_spawnattr_setsigmask: New file.
37224         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37225         modifications.
37226         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37227         new module.
37228
37229         New module 'posix_spawnattr_getsigmask'.
37230         * modules/posix_spawnattr_getsigmask: New file.
37231         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37232         modifications.
37233         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37234         new module.
37235
37236         New module 'posix_spawnattr_setsigdefault'.
37237         * modules/posix_spawnattr_setsigdefault: New file.
37238         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37239         modifications.
37240         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37241         new module.
37242
37243         New module 'posix_spawnattr_getsigdefault'.
37244         * modules/posix_spawnattr_getsigdefault: New file.
37245         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37246         modifications.
37247         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37248         new module.
37249
37250         New module 'posix_spawnattr_setschedpolicy'.
37251         * modules/posix_spawnattr_setschedpolicy: New file.
37252         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37253         modifications.
37254         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37255         new module.
37256
37257         New module 'posix_spawnattr_getschedpolicy'.
37258         * modules/posix_spawnattr_getschedpolicy: New file.
37259         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37260         modifications.
37261         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37262         new module.
37263
37264         New module 'posix_spawnattr_setschedparam'.
37265         * modules/posix_spawnattr_setschedparam: New file.
37266         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37267         modifications.
37268         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37269         new module.
37270
37271         New module 'posix_spawnattr_getschedparam'.
37272         * modules/posix_spawnattr_getschedparam: New file.
37273         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37274         modifications.
37275         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37276         new module.
37277
37278         New module 'posix_spawnattr_setpgroup'.
37279         * modules/posix_spawnattr_setpgroup: New file.
37280         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37281         modifications.
37282         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37283         module.
37284
37285         New module 'posix_spawnattr_getpgroup'.
37286         * modules/posix_spawnattr_getpgroup: New file.
37287         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37288         modifications.
37289         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37290         module.
37291
37292         New module 'posix_spawnattr_setflags'.
37293         * modules/posix_spawnattr_setflags: New file.
37294         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37295         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37296         module.
37297
37298         New module 'posix_spawnattr_getflags'.
37299         * modules/posix_spawnattr_getflags: New file.
37300         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37301         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37302         module.
37303
37304         New module 'posix_spawnattr_init'.
37305         * modules/posix_spawnattr_init: New file.
37306         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37307         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37308         module.
37309
37310         New module 'posix_spawn_file_actions_destroy'.
37311         * modules/posix_spawn_file_actions_destroy: New file.
37312         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37313         modifications.
37314         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37315         the new module.
37316
37317         New module 'posix_spawn_file_actions_addopen'.
37318         * modules/posix_spawn_file_actions_addopen: New file.
37319         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37320         modifications.
37321         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37322         the new module.
37323
37324         New module 'posix_spawn_file_actions_adddup2'.
37325         * modules/posix_spawn_file_actions_adddup2: New file.
37326         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37327         modifications.
37328         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37329         the new module.
37330
37331         New module 'posix_spawn_file_actions_addclose'.
37332         * modules/posix_spawn_file_actions_addclose: New file.
37333         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37334         modifications.
37335         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37336         the new module.
37337
37338         New module 'posix_spawn_file_actions_init'.
37339         * modules/posix_spawn_file_actions_init: New file.
37340         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37341         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37342         new module.
37343
37344         New module 'posix_spawn-internal'.
37345         * modules/posix_spawn-internal: New file.
37346         * lib/spawn_int.h: New file, from GNU libc with modifications.
37347         * lib/spawni.c: New file, from GNU libc with modifications.
37348         * m4/posix_spawn.m4: New file.
37349
37350         New module 'spawn'.
37351         * modules/spawn: New file.
37352         * lib/spawn.in.h: New file, from GNU libc with modifications.
37353         * m4/spawn_h.m4: New file.
37354         * doc/posix-headers/spawn.texi: Mention the new module.
37355
37356 2008-09-28  Bruno Haible  <bruno@clisp.org>
37357
37358         * modules/sched-tests: New file.
37359         * tests/test-sched.c: New file.
37360
37361         New module 'sched'.
37362         * modules/sched: New file.
37363         * lib/sched.in.h: New file.
37364         * m4/sched_h.m4: New file.
37365         * doc/posix-headers/sched.texi: Mention the new module.
37366
37367 2008-09-27  Eric Blake  <ebb9@byu.net>
37368
37369         Fix previous patch, and tweak references to $0.
37370         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37371         (func_version, func_gnulib_dir): Don't call this program
37372         gnulib-tool.
37373         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37374         with using $0 in function.
37375         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37376         (func_fatal_error): Reuse the name the user invoked us with.
37377
37378 2008-09-27  Bruno Haible  <bruno@clisp.org>
37379
37380         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37381         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37382         (gl_ICONV_H): Not here.
37383         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37384         instead of assigning ICONV_H directly.
37385
37386         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37388         WCHAR_H directly.
37389
37390 2008-09-27  Bruno Haible  <bruno@clisp.org>
37391
37392         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37393         * modules/arpa_inet (Depends-on): Add link-warning.
37394         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37395         * modules/unistd (Makefile.am): Likewise.
37396
37397 2008-09-26  Bruno Haible  <bruno@clisp.org>
37398
37399         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37400         variables.
37401         (func_version): Essentially copied from gnulib-tool.
37402         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37403         func_readlink): Copied from gnulib-tool.
37404
37405 2008-09-26  Bruno Haible  <bruno@clisp.org>
37406
37407         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37408         invoking git-version-gen.
37409
37410 2008-09-26  Bruno Haible  <bruno@clisp.org>
37411
37412         * posix-modules: Update to directory names changed on 2008-01-19.
37413         Remove commas in output before splitting into words. No more need to
37414         avoid 'ftruncate' since 2007-02-19.
37415
37416 2008-09-26  Bruno Haible  <bruno@clisp.org>
37417
37418         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37419
37420 2008-09-26  Bruno Haible  <bruno@clisp.org>
37421
37422         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37423         * modules/fwriteerror (Depends-on): Add errno.
37424
37425 2008-09-26  Bruno Haible  <bruno@clisp.org>
37426
37427         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37428         * tests/test-vc-list-files-cvs.sh: Likewise.
37429
37430 2008-09-26  Bruno Haible  <bruno@clisp.org>
37431
37432         * doc/posix-headers/sys_resource.texi: Reorder items.
37433
37434 2008-09-26  Jim Meyering  <meyering@redhat.com>
37435
37436         fts: tweak inode comparison function
37437         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37438         inode numbers, as documented.
37439
37440         fts: sort dirent entries on inode number before traversing
37441         This avoids a quadratic, seek-related performance penalty when
37442         operating on a directory containing many entries (measurable at 10k;
37443         3.5 hours at 2 million entries with a cold cache) on certain types
37444         of file systems, including ext3 and ext4, but not tmpfs.
37445         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37446         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37447         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37448         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37449         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37450         (fts_build): Set the stat.st_ino member from D_INO.
37451         If it is likely to be useful, sort dirent entries on inode number.
37452
37453         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37454         and the struct statfs.f_type member.
37455         * modules/fts (Depends-on): Add d-ino.
37456
37457 2008-09-26  Bruno Haible  <bruno@clisp.org>
37458
37459         * modules/sigpipe-die (Depends-on): Add sigpipe.
37460
37461         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37462         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37463         and GNULIB_STDIO_H_SIGPIPE are set.
37464         * lib/stdio-write.c: New file.
37465         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37466         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37467         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37468         REPLACE_STDIO_WRITE_FUNCS.
37469         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37470         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37471         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37472         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37473         * modules/stdio (Files): Add lib/stdio-write.c.
37474         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37475         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37476         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37477         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37478         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37479         REPLACE_FPRINTF_POSIX.
37480         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37481         REPLACE_PRINTF_POSIX.
37482         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37483         REPLACE_VFPRINTF_POSIX.
37484         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37485         REPLACE_VPRINTF_POSIX.
37486         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37487         SIGPIPE issue.
37488         * doc/posix-functions/fputc.texi: Likewise.
37489         * doc/posix-functions/fputs.texi: Likewise.
37490         * doc/posix-functions/fwrite.texi: Likewise.
37491         * doc/posix-functions/printf.texi: Likewise.
37492         * doc/posix-functions/putc.texi: Likewise.
37493         * doc/posix-functions/putchar.texi: Likewise.
37494         * doc/posix-functions/puts.texi: Likewise.
37495         * doc/posix-functions/vfprintf.texi: Likewise.
37496         * doc/posix-functions/vprintf.texi: Likewise.
37497
37498         * modules/safe-write (Depends-on): Add write.
37499
37500         * modules/sigpipe-tests: New file.
37501         * tests/test-sigpipe.c: New file.
37502         * tests/test-sigpipe.sh: New file.
37503
37504         * modules/write: New file.
37505         * lib/unistd.in.h: Include <sys/types.h>.
37506         (write): New declaration.
37507         * lib/write.c: New file.
37508         * m4/write.m4: New file.
37509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37510         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37511         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37512         GNULIB_WRITE, REPLACE_WRITE.
37513         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37514         and the SIGPIPE issue.
37515
37516         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37517         (raise): New declaration.
37518         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37519         (ext_signal): New function.
37520         (rpl_raise): New function.
37521         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37522         GNULIB_SIGNAL_H_SIGPIPE.
37523         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37524         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37525
37526         * modules/sigpipe: New file.
37527         * m4/sigpipe.m4: New file.
37528
37529 2008-09-25  Derek Price  <derek@ximbiot.com>
37530             Bruno Haible  <bruno@clisp.org>
37531
37532         * gnulib-tool (func_import): Report all license incompatibilities, not
37533         just the first one.
37534
37535 2008-09-25  Bruno Haible  <bruno@clisp.org>
37536
37537         * gnulib-tool (func_import): When computing the edits, consider not
37538         only the Makefile.ams that exist but also those that will be generated.
37539
37540 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37541
37542         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37543         fixes gnulib-tool --test warning about duplicate dependency.
37544
37545 2008-09-25  Bruno Haible  <bruno@clisp.org>
37546
37547         * gnulib-tool: Don't ask the user to perform edits in the generated
37548         Makefile.ams.
37549         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37550         apply to the Makefile.am being generated.
37551         (func_emit_tests_Makefile_am): Execute edits that apply to the
37552         Makefile.am being generated.
37553         (func_import): Setup list of Makefile.am edits before emitting the
37554         Makefile.ams, not at the end.
37555         (func_create_testdir): Update.
37556         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37557
37558 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37559
37560         * gnulib-tool (func_import): Store the --tests-base option in the
37561         comment in gnulib-cache.m4.
37562
37563 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37564
37565         * NEWS: Document increased portability that sys_select now provides.
37566
37567         * lib/sys_select.in.h: Install select wrapper.
37568         * lib/sys_socket.in.h: Use more descriptive name when there is no
37569         select wrapper.
37570         * lib/winsock-select.c: New.
37571         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37572         Require gl_HEADER_SYS_SOCKET.
37573         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37574         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37575         * tests/test-sys_select.c: Add functional tests.
37576
37577 2008-09-24  Eric Blake  <ebb9@byu.net>
37578
37579         open, fopen: close fd leak in last patch
37580         * lib/open.c (rpl_open): Close fd before returning error.
37581         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37582         * doc/posix-functions/open.texi (open): Document that Irix also
37583         has the bug.
37584         * doc/posix-functions/fopen.texi (fopen): Likewise.
37585         Reported by Paolo Bonzini.
37586
37587 2008-09-24  Bruno Haible  <bruno@clisp.org>
37588
37589         Ensure that a filename ending in a slash cannot be used to access a
37590         non-directory.
37591         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37592         to check whether it's really a directory.
37593         * lib/fopen.c: Include fcntl.h, unistd.h.
37594         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37595         and fdopen().
37596         * modules/fopen (Depends-on): Add unistd.
37597         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37598         * tests/test-fopen.c (main): Likewise.
37599         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37600         * doc/posix-functions/fopen.texi: Likewise.
37601         Reported by Eric Blake.
37602
37603 2008-09-23  Eric Blake  <ebb9@byu.net>
37604
37605         c-stack: avoid compiler optimizations when provoking overflow
37606         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37607         recursion harder to optimize, to ensure a stack overflow occurs.
37608         * tests/test-c-stack.c (recurse): Likewise.
37609         Borrowed from libsigsegv.
37610
37611         c-stack: work around Irix sigaltstack bug
37612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37613         whether sigaltstack uses wrong end of stack_t (copied in part from
37614         libsigsegv).
37615         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37616         Irix bug, without requiring an over-allocation.
37617         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37618         bug.
37619
37620         fopen: document mingw bug on directories
37621         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37622         not allowing a stream visiting a directory, even though reading
37623         from such a stream is not portable.
37624
37625 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37626
37627         * lib/poll.c: Rewrite.
37628         * modules/poll: Depend on alloca.
37629
37630 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37631
37632         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37633         instead define prototypes for a full set of wrappers.  Ensure
37634         that Cygwin does not use the compatibility code, which is only
37635         for MinGW.
37636         * lib/winsock.c: New.
37637         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37638         * modules/sys_socket: Add lib/winsock.c.
37639
37640         * modules/poll-tests: Add errno and perror.
37641         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37642
37643 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37644
37645         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37646
37647 2008-09-23  Bruno Haible  <bruno@clisp.org>
37648
37649         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37650         * doc/glibc-functions/*: Likewise.
37651
37652 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37653
37654         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37655         success.
37656
37657 2008-09-22  Eric Blake  <ebb9@byu.net>
37658             Bruno Haible  <bruno@clisp.org>
37659
37660         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37661         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37662         supply %A but mishandle pseudo-NaN.
37663         Reported by Simon Josefsson.
37664
37665 2008-09-21  Bruno Haible  <bruno@clisp.org>
37666
37667         * tests/test-lock.c (main): Tweak skip message.
37668         * tests/test-tls.c (main): Likewise.
37669
37670 2008-09-21  Bruno Haible  <bruno@clisp.org>
37671
37672         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37673         whether 'struct sigaction' has sa_sigaction here...
37674         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37675         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37676
37677 2008-09-21  Bruno Haible  <bruno@clisp.org>
37678
37679         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37680         section.
37681         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37682         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37683         the new section.
37684         (Support for obsolete systems lacking POSIX:2001): New section.
37685         (String handling <string.h>): Move strdup to the new section.
37686         Suggested by Simon Josefsson and Paolo Bonzini.
37687
37688 2008-09-21  Bruno Haible  <bruno@clisp.org>
37689
37690         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37691         exponents in %e and %g results on 'long double'. Needed for mingw's
37692         improved *printf functions.
37693         * tests/test-vasprintf-posix.c (test_function): Likewise.
37694         * tests/test-snprintf-posix.h (test_function): Likewise.
37695         * tests/test-sprintf-posix.h (test_function): Likewise.
37696         Reported by Eric Blake.
37697
37698 2008-09-21  Bruno Haible  <bruno@clisp.org>
37699
37700         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37701         * tests/test-sprintf-posix.h (test_function): Likewise.
37702
37703 2008-09-21  Bruno Haible  <bruno@clisp.org>
37704
37705         * modules/getpass (Depends-on): Add strdup-posix.
37706
37707         New module 'strdup-posix'.
37708         * modules/strdup-posix: New file.
37709         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37710         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37712         REPLACE_STRDUP.
37713         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37714         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37715         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37716         strdup-posix.
37717
37718         * modules/strdup (Depends-on): Remove malloc-posix.
37719
37720 2008-09-20  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37723         Wildenhues.
37724
37725 2008-09-20  Bruno Haible  <bruno@clisp.org>
37726
37727         Ensure that wint_t gets defined on IRIX 5.3.
37728         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37729         * lib/wctype.in.h (wint_t): Likewise.
37730         (__wctype_wint_t): Remove type.
37731         (isw*): Use wint_t instead of __wctype_wint_t.
37732         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37733         * modules/wchar (Files): Add m4/wint_t.m4.
37734         (Makefile.am): Substitute HAVE_WINT_T.
37735         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37736         * tests/test-wctype.c: Check that wint_t is defined.
37737         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37738         * doc/posix-headers/wctype.texi: Likewise.
37739         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37740
37741 2008-09-18  Bruno Haible  <bruno@clisp.org>
37742
37743         * gnulib-tool (func_exit): Update comment.
37744
37745 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37746
37747         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37748         assumes strdup exists and does not depend on strdup to return
37749         ENOMEM on out of memory conditions.
37750
37751 2008-09-18  Bruno Haible  <bruno@clisp.org>
37752
37753         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37754         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37755         digits for the exponent.
37756
37757 2008-09-18  Jim Meyering  <meyering@redhat.com>
37758             Bruno Haible  <bruno@clisp.org>
37759
37760         * lib/vasnprintf.c (decimal_point_char): Define also if
37761         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37762
37763 2008-09-16  Bruno Haible  <bruno@clisp.org>
37764         and Eric Blake  <ebb9@byu.net>
37765
37766         vasnprintf: support Irix 5.3
37767         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37768         that mishandle long double infinity.
37769         Reported by Tom G. Christensen.
37770
37771 2008-09-16  Bruno Haible  <bruno@clisp.org>
37772
37773         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37774         Solaris 9.
37775         * doc/glibc-functions/alphasort.texi: Likewise.
37776         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37777
37778 2008-09-16  Jim Meyering  <meyering@redhat.com>
37779
37780         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37781         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37782         a umask modification leak out of a subshell.  Otherwise, the
37783         opensolaris /bin/sh would be accepted and thus cause unwarranted
37784         failures in the coreutils test suite.
37785
37786 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37787
37788         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37789         to succeed.
37790
37791 2008-09-16  Jim Meyering  <meyering@redhat.com>
37792
37793         avoid spurious test failure when library is built without ACL support
37794         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37795         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37796         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37797         * tests/test-copy-acl.sh: Likewise.
37798
37799 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37800
37801         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37802         based on character occurrence counts.
37803
37804 2008-09-15  Eric Blake  <ebb9@byu.net>
37805
37806         tests: avoid some compiler warnings
37807         * tests/test-memchr.c (main): Pass NULL indirectly.
37808         * tests/test-closein.c (main): Avoid unused variable.
37809
37810 2008-09-15  Bruno Haible  <bruno@clisp.org>
37811
37812         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37813         are missing on OpenBSD 4.0 individually.
37814         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37815
37816 2008-09-15  Bruno Haible  <bruno@clisp.org>
37817
37818         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37819         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37820         * doc/posix-functions/perror.texi: Likewise.
37821         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37822         is missing.
37823         Reported by Eric Blake.
37824
37825         * lib/errno.in.h: Use replacement values >= 2000.
37826         Reported by Eric Blake.
37827
37828 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37829
37830         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37831         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37832         limit.
37833         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37834         compareseq was aborted.
37835
37836 2008-09-14  Bruno Haible  <bruno@clisp.org>
37837
37838         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37839         yvec_edit_count.
37840         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37841         (fstrcmp_bounded): Simplify result computation accordingly.
37842
37843 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37844
37845         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37846         (fstrcmp): Define in terms of fstrcmp_bounded.
37847         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37848         lower_bound argument.
37849         Return quickly if the result is certainly < lower_bound.
37850         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37851
37852 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37853
37854         * lib/diffseq.h (EARLY_ABORT): New macro.
37855         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37856         evaluates to true.
37857
37858 2008-09-14  Bruno Haible  <bruno@clisp.org>
37859
37860         * modules/perror-tests: New file.
37861         * tests/test-perror.sh: New file.
37862         * tests/test-perror.c: New file.
37863
37864         New module 'perror'.
37865         * lib/stdio.in.h (perror): New declaration.
37866         * lib/perror.c: New file.
37867         * m4/perror.m4: New file.
37868         * modules/perror: New file.
37869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37870         * doc/posix-functions/perror.texi: Mention the perror module.
37871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37872         REPLACE_PERROR.
37873         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37874         REPLACE_PERROR.
37875
37876 2008-09-14  Bruno Haible  <bruno@clisp.org>
37877
37878         * modules/stdio (Makefile.am): Reorder to match the order in
37879         lib/stdio.in.h.
37880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37881
37882 2008-09-13  Bruno Haible  <bruno@clisp.org>
37883
37884         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37885
37886 2008-09-13  Bruno Haible  <bruno@clisp.org>
37887
37888         Extend strerror to cover the added errno values.
37889         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37890         (rpl_strerror): Provide error messages for the added errno values and
37891         for the WSA* values.
37892         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37893         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37894         strerror.
37895         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37896         * modules/strerror (Depends-on): Add errno.
37897         * doc/posix-functions/strerror.texi: Document the change.
37898         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37899         and EOVERFLOW.
37900
37901 2008-09-13  Bruno Haible  <bruno@clisp.org>
37902
37903         * modules/EOVERFLOW: Remove file.
37904         * m4/eoverflow.m4: Remove file.
37905         * modules/EOVERFLOW-tests: Remove file.
37906         * tests/test-EOVERFLOW.c: Remove file.
37907         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37908         * modules/ftell (Depends-on): Likewise.
37909         * modules/getdelim (Depends-on): Likewise.
37910         * modules/getugroups (Depends-on): Likewise.
37911         * modules/poll (Depends-on): Likewise.
37912         * modules/snprintf (Depends-on): Likewise.
37913         * modules/sprintf-posix (Depends-on): Likewise.
37914         * modules/vasnprintf (Depends-on): Likewise.
37915         * modules/vasprintf (Depends-on): Likewise.
37916         * modules/vfprintf-posix (Depends-on): Likewise.
37917         * modules/vsnprintf (Depends-on): Likewise.
37918         * modules/vsprintf-posix (Depends-on): Likewise.
37919         * modules/xvasprintf (Depends-on): Likewise.
37920         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37921         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37922         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37923         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37924         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37925         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37926         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37927         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37928         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37929         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37930         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37931         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37932         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37933         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37934         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37935         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37936         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37937         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37938         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37939         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37940         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37941         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37942         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37943         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37944         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37946         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37947         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37948         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37949         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37950         * MODULES.html.sh: Remove EOVERFLOW.
37951         * NEWS: Mention the change.
37952
37953 2008-09-13  Bruno Haible  <bruno@clisp.org>
37954
37955         * modules/errno-tests: New file.
37956         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37957
37958         * lib/errno.in.h: New file.
37959         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37960         * modules/errno: New file.
37961         * doc/posix-headers/errno.texi: Update documentation.
37962         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37963
37964 2008-09-13  Bruno Haible  <bruno@clisp.org>
37965
37966         * tests/test-poll.c: Use #if for native Windows, rather than testing
37967         __MSVCRT__.
37968
37969 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37970             Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/glob.c: Don't include <pwd.h> on native Windows.
37973         (WINDOWS32): New macro.
37974         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37975
37976 2008-09-13  Bruno Haible  <bruno@clisp.org>
37977
37978         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37979         (ETIMEDOUT): Remove macro.
37980         (glthread_cond_timedwait_multithreaded): New declaration.
37981         (glthread_cond_timedwait): Use it.
37982         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37983         (glthread_cond_timedwait_multithreaded): New function.
37984
37985 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37986
37987         * modules/poll-tests: Do not check for io.h.
37988         * tests/test-poll.c: Check for __MSVCRT__ instead.
37989
37990 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37991
37992         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37993         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37994         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37995
37996 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37997
37998         * modules/poll-tests: New.
37999         * tests/test-poll.c: New.
38000
38001 2008-09-12  Eric Blake  <ebb9@byu.net>
38002
38003         frexp: test for NetBSD failure on -0.0
38004         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38005         not all, bugs from NetBSD 3.0 have been fixed.
38006         * doc/posix-functions/frexp.texi (frexp): Document bug.
38007         Reported by Thomas Klausner.
38008
38009         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38010         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38011         literal -0.0.
38012         Reported by Jonathan C. Patschke <jp@centtech.com>.
38013
38014 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38015
38016         * lib/glthread/cond.h: Use dummy implementation also if
38017         USE_WIN32_THREADS.
38018
38019 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38020
38021         * modules/fnmatch-posix (License): Change to LGPLv2+.
38022         * modules/fnmatch-gnu (License): Likewise.
38023
38024 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38025
38026         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38027
38028 2008-09-11  Jim Meyering  <meyering@redhat.com>
38029
38030         * users.txt: Add gtk-vnc.
38031
38032 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38033
38034         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38035         rotate amounts.
38036
38037         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38038         required for 16-bit and 8-bit rotates.
38039         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38040         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38041         UINT8_MAX instead of hard-coded constants.
38042         Suggested by Paul Eggert.
38043
38044 2008-09-07  Bruno Haible  <bruno@clisp.org>
38045
38046         * tests/test-striconveh.c (main): Check behaviour when converting from
38047         UTF-7.
38048
38049         Make striconveh work better with stateful encodings.
38050         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38051         that iconv does not increment the inptr when returning -1/EINVAL.
38052
38053 2008-09-07  Bruno Haible  <bruno@clisp.org>
38054
38055         * build-aux/config.rpath: Update according to libtool-2.2.6.
38056         * build-aux/config.libpath: Likewise.
38057
38058 2008-09-06  Bruno Haible  <bruno@clisp.org>
38059
38060         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38061         * lib/freadptr.c (freadptr): Likewise.
38062         * lib/freadseek.c (freadptrinc): Likewise.
38063         Reported by Simon Josefsson.
38064
38065 2008-09-06  Bruno Haible  <bruno@clisp.org>
38066
38067         * modules/freadptr (License): Change to LGPLv2+.
38068         * modules/freadseek (License): Likewise.
38069         Suggested by Eric Blake.
38070
38071         * modules/memchr2 (License): Change to LGPLv2+.
38072         Approved by Eric Blake.
38073
38074 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38075             Bruno Haible  <bruno@clisp.org>
38076
38077         Make gnulib-tool work with native 'sed' on AIX.
38078         * gnulib-tool (sed_noop): New variable.
38079         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38080         func_add_or_update, func_create_testdir): Use it to initialize sed
38081         script variables.
38082         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38083
38084 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38085             Bruno Haible  <bruno@clisp.org>
38086
38087         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38088         also works after #include directives.
38089
38090 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38091
38092         getdate.y: reject an out-of-range timezone value
38093         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38094         the range [-24...+24].  When specified with only one or two digits,
38095         * tests/test-getdate.c: Tests for the fix.
38096         * doc/getdate.texi: Document this change.
38097
38098 2008-09-03  Bruno Haible  <bruno@clisp.org>
38099
38100         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38101
38102 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38103
38104         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38105         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38106         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38107         Blake <ebb9@byu.net>.
38108
38109         * tests/test-bitrotate.c: Add more test vectors.
38110
38111 2008-09-02  Eric Blake  <ebb9@byu.net>
38112
38113         vasnprintf-posix: handle large precision via %.*d
38114         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38115         when handling it ourselves.
38116         * tests/test-vasnprintf-posix.c (test_function): Add test.
38117         * tests/test-snprintf-posix.h (test_function): Likewise.
38118         * tests/test-sprintf-posix.h (test_function): Likewise.
38119         * tests/test-vasprintf-posix.c (test_function): Likewise.
38120         Reported by Alain Guibert.
38121
38122 2008-09-01  Eric Blake  <ebb9@byu.net>
38123
38124         c-stack: make configure-time check more robust
38125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38126         successful sigaction call.
38127         Reported by Tom G. Christensen.
38128
38129 2008-09-01  Bruno Haible  <bruno@clisp.org>
38130
38131         New module 'findprog-lgpl'.
38132         * modules/findprog-lgpl: New file.
38133         * lib/findprog-lgpl.c: New file.
38134         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38135         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38136         to decide whether to use strdup or xstrdup, concatenated_filename or
38137         xconcatenated_filename.
38138
38139 2008-09-01  Bruno Haible  <bruno@clisp.org>
38140
38141         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38142         'xconcat-filename' (GPL).
38143         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38144         (License): Change to LGPLv2+.
38145         * modules/xconcat-filename: New file.
38146         * lib/concat-filename.h (concatenated_filename): Change specification.
38147         (xconcatenated_filename): New declaration.
38148         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38149         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38150         memory situations.
38151         * lib/xconcat-filename.c: New file.
38152         * NEWS: Mention the change.
38153         * lib/findprog.c: Include concat-filename.h, not filename.h.
38154         (find_in_path): Use xconcatenated_filename instead of
38155         concatenated_filename.
38156         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38157         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38158         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38159         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38160         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38161         instead of concatenated_filename.
38162         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38163         (execute_java_class): Use xconcatenated_filename instead of
38164         concatenated_filename.
38165         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38166         * modules/javacomp (Depends-on): Likewise.
38167         * modules/javaexec (Depends-on): Likewise.
38168
38169 2008-09-01  Bruno Haible  <bruno@clisp.org>
38170
38171         Split module 'filename' into 'filename' and 'concat-filename'.
38172         * modules/filename: Keep only lib/filename.h.
38173         (License): Change to LGPLv2+.
38174         * modules/concat-filename: New file, extracted from modules/filename.
38175         * lib/filename.h (concatenated_filename): Remove declaration.
38176         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38177         * lib/concat-filename.c: Include concat-filename.h.
38178         * NEWS: Mention the change.
38179
38180 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38181
38182         * lib/bitrotate.h (rotl8, rotr8): Add.
38183
38184         * modules/bitrotate (configure.ac): Need
38185         AC_REQUIRE([AC_C_INLINE]).
38186         (Description): Mention stdint.h.  Reported by Bruno Haible
38187         <bruno@clisp.org>.
38188
38189         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38190         Paolo Bonzini <bonzini@gnu.org>.
38191
38192 2008-08-31  Bruno Haible  <bruno@clisp.org>
38193
38194         Assume Solaris specific bi-arch conventions on Solaris systems.
38195         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38196         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38197         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38198         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38199         like acl_libdirstem.
38200         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38201         acl_libdirstem.
38202         * NEWS: Mention the change.
38203         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38204
38205 2008-08-31  Jim Meyering  <meyering@redhat.com>
38206
38207         * lib/strftime.h: Add comments describing the two added arguments.
38208
38209         remove duplicate #include directives
38210         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38211         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38212
38213 2008-08-31  Bruno Haible  <bruno@clisp.org>
38214
38215         New module 'sigpipe-die'.
38216         * modules/sigpipe-die: New file.
38217         * lib/sigpipe-die.h: New file.
38218         * lib/sigpipe-die.c: New file.
38219         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38220
38221 2008-08-31  Bruno Haible  <bruno@clisp.org>
38222
38223         Don't override previously installed signal handlers.
38224         * lib/fatal-signal.c (saved_sigactions): New variable.
38225         (uninstall_handlers): Reset the signal to the saved handler, not
38226         to SIG_DFL (except when ignored).
38227         (install_handlers): Save the previous handlers.
38228
38229 2008-08-30  Bruno Haible  <bruno@clisp.org>
38230
38231         * gnulib-tool (func_reset_sigpipe): New function.
38232         (func_get_automake_snippet, func_modules_transitive_closure,
38233         func_import): Invoke it before a join command that reads from stdin,
38234         to avoid "echo: write error: Broken pipe" error messages on stderr.
38235         Reported by Sam Steingold <sds@gnu.org>.
38236
38237 2008-08-30  Bruno Haible  <bruno@clisp.org>
38238
38239         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38240         Code copied from m4/open.m4.
38241         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38242         access and the filename ends in a slash. Code copied from lib/open.c.
38243         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38244         * tests/test-fopen.c (main): Check against bug with trailing slash.
38245
38246 2008-08-29  Bruno Haible  <bruno@clisp.org>
38247
38248         Avoid some "gcc -pedantic" warnings.
38249         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38250         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38251         * lib/dirent.in.h: Likewise.
38252         * lib/fcntl.in.h: Likewise.
38253         * lib/float.in.h: Likewise.
38254         * lib/iconv.in.h: Likewise.
38255         * lib/inttypes.in.h: Likewise.
38256         * lib/locale.in.h: Likewise.
38257         * lib/math.in.h: Likewise.
38258         * lib/netinet_in.in.h: Likewise.
38259         * lib/search.in.h: Likewise.
38260         * lib/signal.in.h: Likewise.
38261         * lib/stdarg.in.h: Likewise.
38262         * lib/stdint.in.h: Likewise.
38263         * lib/stdio.in.h: Likewise.
38264         * lib/stdlib.in.h: Likewise.
38265         * lib/string.in.h: Likewise.
38266         * lib/strings.in.h: Likewise.
38267         * lib/sys_select.in.h: Likewise.
38268         * lib/sys_socket.in.h: Likewise.
38269         * lib/sys_stat.in.h: Likewise.
38270         * lib/sys_time.in.h: Likewise.
38271         * lib/sysexits.in.h: Likewise.
38272         * lib/time.in.h: Likewise.
38273         * lib/unistd.in.h: Likewise.
38274         * lib/wchar.in.h: Likewise.
38275         * lib/wctype.in.h: Likewise.
38276         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38277         * modules/fchdir (Makefile.am): Likewise.
38278         * modules/fcntl (Makefile.am): Likewise.
38279         * modules/float (Makefile.am): Likewise.
38280         * modules/iconv_open (Makefile.am): Likewise.
38281         * modules/inttypes (Makefile.am): Likewise.
38282         * modules/locale (Makefile.am): Likewise.
38283         * modules/math (Makefile.am): Likewise.
38284         * modules/netinet_in (Makefile.am): Likewise.
38285         * modules/search (Makefile.am): Likewise.
38286         * modules/signal (Makefile.am): Likewise.
38287         * modules/stdarg (Makefile.am): Likewise.
38288         * modules/stdint (Makefile.am): Likewise.
38289         * modules/stdio (Makefile.am): Likewise.
38290         * modules/stdlib (Makefile.am): Likewise.
38291         * modules/string (Makefile.am): Likewise.
38292         * modules/strings (Makefile.am): Likewise.
38293         * modules/sys_select (Makefile.am): Likewise.
38294         * modules/sys_socket (Makefile.am): Likewise.
38295         * modules/sys_stat (Makefile.am): Likewise.
38296         * modules/sys_time (Makefile.am): Likewise.
38297         * modules/sysexits (Makefile.am): Likewise.
38298         * modules/time (Makefile.am): Likewise.
38299         * modules/unistd (Makefile.am): Likewise.
38300         * modules/wchar (Makefile.am): Likewise.
38301         * modules/wctype (Makefile.am): Likewise.
38302         Reported by Reuben Thomas <rrt@sc3d.org>.
38303
38304 2008-08-29  Bruno Haible  <bruno@clisp.org>
38305
38306         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38307         any more.
38308
38309 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38310
38311         * MODULES.html.sh (Misc): Add bitrotate.
38312
38313         * modules/bitrotate: New file.
38314
38315         * lib/bitrotate.h: New file.
38316
38317         * modules/bitrotate-tests: New file.
38318
38319         * tests/test-bitrotate.c: New file.
38320
38321         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38322         on the bitrotate module.
38323
38324         * lib/arctwo.c: Use new bitrotate module.
38325
38326 2008-08-29  Jim Meyering  <meyering@redhat.com>
38327
38328         bootstrap: merge changes from coreutils
38329         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38330         of copied files.  Remove a kludge, now that this is fixed.
38331         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38332         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38333         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38334
38335 2008-08-29  Bruno Haible  <bruno@clisp.org>
38336
38337         * MODULES.html.sh: Remove --cvs-urls option.
38338
38339 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38340
38341         maint.mk: adjust to file name change
38342         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38343
38344 2008-08-28  Jim Meyering  <meyering@redhat.com>
38345
38346         * modules/getndelim2 (License): Relicense to LGPLv2+.
38347         Approved by Richard Stallman for the version of 1995, and by
38348         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38349
38350 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38351
38352         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38353         dummy if one is not available.  Do not touch them if
38354         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38355         (getc_maybe_unlocked): New.
38356         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38357
38358 2008-08-26  Eric Blake  <ebb9@byu.net>
38359
38360         doc/INSTALL: resync from autoconf
38361         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38362         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38363         moving...
38364         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38365         * INSTALL: Regenerate.
38366         * INSTALL.ISO: New file.
38367         * INSTALL.UTF-8: Likewise.
38368
38369 2008-08-26  Jim Meyering  <meyering@redhat.com>
38370
38371         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38372         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38373         these definitions conditional, so that they may be overridden, too.
38374
38375 2008-08-26  Bruno Haible  <bruno@clisp.org>
38376
38377         Generate INSTALL file variants with prettier quotes.
38378         * doc/Makefile (INSTALL_PRELUDE): New macro.
38379         (INSTALL): Use it.
38380         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38381
38382 2008-08-26  Bruno Haible  <bruno@clisp.org>
38383
38384         Run makeinfo in an English locale.
38385         * doc/Makefile (MAKEINFO): New variable.
38386
38387 2008-08-26  Bruno Haible  <bruno@clisp.org>
38388
38389         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38390         Suggested by Eric Blake.
38391
38392 2008-08-25  Bruno Haible  <bruno@clisp.org>
38393
38394         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38395
38396 2008-08-25  Eric Blake  <ebb9@byu.net>
38397
38398         c-stack: test that stack overflow can be caught
38399         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38400         that platform allows handling stack overflow; at least OS/2 EMX
38401         has sigaltstack, but crashes before transferring control to
38402         handler on stack overflow.
38403         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38404         check for HAVE_STACK_OVERFLOW_HANDLING.
38405         Reported by Elbert Pol.
38406
38407 2008-08-25  Bruno Haible  <bruno@clisp.org>
38408
38409         * doc/posix-functions/strftime.texi: Fix description of strftime
38410         module.
38411
38412 2008-08-24  Bruno Haible  <bruno@clisp.org>
38413
38414         * tests/uniwidth/test-uc_width2.c: New file.
38415         * tests/uniwidth/test-uc_width2.sh: New file.
38416         * modules/uniwidth/width-tests (Files): Add the new files.
38417         (TESTS): Add uniwidth/test-uc_width2.sh.
38418         (TESTS_ENVIRONMENT): New variable.
38419         (check_PROGRAMS): Add test-uc_width2.
38420         (test_uc_width2_SOURCES): New variable.
38421
38422         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38423         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38424         not 0x00AB.
38425         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38426
38427 2008-08-22  Eric Blake  <ebb9@byu.net>
38428
38429         test-lock, test-tls: mention why a test is skipped
38430         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38431         skipped.
38432         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38433
38434         count-one-bits: relax license
38435         * modules/count-one-bits (License): Relicense to LGPLv2+.
38436         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38437
38438 2008-08-22  Andreas Schwab  <schwab@suse.de>
38439
38440         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38441         Remove spurious space in assignment.
38442
38443 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38444
38445         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38446         Paul Eggert <eggert@CS.UCLA.EDU>.
38447
38448 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38449
38450         * modules/gettext: Add m4/threadlib.m4.
38451
38452 2008-08-19  Eric Blake  <ebb9@byu.net>
38453
38454         test-c-stack: fix compilation failure on FreeBSD 5.0
38455         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38456         headers before <sys/resource.h>.
38457         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38458         the bug.
38459         Reported by Nelson H. F. Beebe.
38460
38461         strverscmp: migrate from "strverscmp.h" to <string.h>
38462         * modules/string (Makefile.am): Add new hooks.
38463         * modules/strverscmp (Files): Remove strverscmp.h.
38464         (Depends-on): Add string.
38465         (configure.ac): Add indicator.
38466         (Include): Mention new header.
38467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38468         defaults.
38469         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38470         results.
38471         * lib/strverscmp.h: Delete.
38472         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38473         * tests/test-strverscmp.c (includes): Adjust client.
38474         * lib/check-version.c (includes): Likewise.
38475         * NEWS: Document the change.
38476
38477         strverscmp: add unit test
38478         * modules/strverscmp-tests: New file.
38479         * tests/test-strverscmp.c: Likewise.
38480
38481 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38482
38483         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38484         regarding Windows crypto stuff, from Mono.
38485
38486 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38487
38488         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38489         if present, for intel RND.  Return error on failures.
38490
38491 2008-08-18  Ben Pfaff  <blp@gnu.org>
38492
38493         gitlog-to-changelog: give better diagnostic for failed pipe-open
38494         * build-aux/gitlog-to-changelog: Improve error message: suggest
38495         that the version of Git may be too old.
38496
38497 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38498
38499         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38500         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38501
38502 2008-08-18  Bruno Haible  <bruno@clisp.org>
38503
38504         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38505         pthread_in_use().
38506
38507 2008-08-18  Bruno Haible  <bruno@clisp.org>
38508
38509         * lib/glthread/threadlib.c: Include <pthread.h>.
38510
38511 2008-08-18  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38514         glthread_recursive_lock_* macros.
38515         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38516         Fix syntax error.
38517
38518 2008-08-18  Bruno Haible  <bruno@clisp.org>
38519
38520         * lib/glthread/thread.c: Avoid forcing a context switch right after
38521         thread creation.
38522
38523 2008-08-17  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38526         * lib/glthread/thread.h: Provide Win32 specific implementation.
38527         * modules/thread (Files): Add lib/glthread/thread.c.
38528         (Depends-on): Add lock.
38529         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38530
38531 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38532
38533         New module 'yield'.
38534         * modules/yield: New file.
38535         * lib/glthread/yield.h: New file.
38536         * m4/yield.m4: New file.
38537         * MODULES.html.sh (Multithreading): Add yield.
38538
38539 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38540
38541         New module 'thread'.
38542         * modules/thread: New file.
38543         * lib/glthread/thread.h: New file.
38544         * m4/thread.m4: New file.
38545         * MODULES.html.sh (Multithreading): Add thread.
38546
38547 2008-08-17  Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/glthread/lock.h: Include <stdlib.h> always.
38550         * lib/glthread/tls.h: Likewise.
38551         * lib/glthread/cond.h: Likewise.
38552
38553 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38554
38555         New module 'cond'.
38556         * modules/cond: New file.
38557         * lib/glthread/cond.h: New file.
38558         * lib/glthread/cond.c: New file.
38559         * m4/cond.m4: New file.
38560         * MODULES.html.sh (Multithreading): Add cond.
38561
38562 2008-08-16  Eric Blake  <ebb9@byu.net>
38563
38564         c-stack: fix regression on Irix 5.3 from 2008-06-21
38565         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38566         sa_sigaction...
38567         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38568         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38569         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38570         * modules/signal (Makefile.am): Use the value.
38571         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38572         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38573         * doc/posix-headers/signal.texi (signal.h): Document this
38574         portability issue.
38575         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38576         Reported by Tom G. Christensen.
38577
38578 2008-08-17  Bruno Haible  <bruno@clisp.org>
38579
38580         New module 'threadlib'.
38581         * modules/threadlib: New file.
38582         * lib/glthread/threadlib.c: New file, extracted from
38583         lib/glthread/lock.c.
38584         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38585         functions.
38586         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38587         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38588         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38589         macros.
38590         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38591         (gl_DISABLE_THREADS): Remove macro.
38592         * modules/lock (Files): Remove build-aux/config.rpath.
38593         (Depends-on): Remove havelib. Add threadlib.
38594         (configure.ac-early): Remove section.
38595         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38596         * modules/tls (Depends-on): Remove lock. Add threadlib.
38597         (Link): New section, copied from threadlib.
38598         * MODULES.html.sh (Multithreading): Add threadlib.
38599
38600 2008-08-14  Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38603         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38604         glthread_rwlock_unlock, glthread_rwlock_destroy,
38605         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38606         glthread_recursive_lock_destroy): Define as macros always.
38607         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38608         glthread_lock_lock.
38609         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38610         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38611         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38612         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38613         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38614         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38615         (glthread_recursive_lock_lock_func): Renamed from
38616         glthread_recursive_lock_lock.
38617         (glthread_recursive_lock_unlock_func): Renamed from
38618         glthread_recursive_lock_unlock.
38619         (glthread_recursive_lock_destroy_func): Renamed from
38620         glthread_recursive_lock_destroy.
38621
38622 2008-08-14  Bruno Haible  <bruno@clisp.org>
38623
38624         * lib/glthread/lock.h: Renamed from lib/lock.h.
38625         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38626         * lib/glthread/tls.h: Renamed from lib/tls.h.
38627         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38628         * lib/fstrcmp.c: Update includes.
38629         * lib/strsignal.c: Update includes.
38630         * modules/lock (Files, Makefile.am): Update.
38631         (Include): Change to "glthread/lock.h".
38632         * modules/tls (Files, Makefile.am): Update.
38633         (Include): Change to "glthread/tls.h".
38634         * tests/test-lock.c: Update includes.
38635         * tests/test-tls.c: Update includes.
38636         * NEWS: Mention the renamed header files.
38637
38638 2008-08-11  Jim Meyering  <meyering@redhat.com>
38639
38640         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38641
38642 2008-08-11  Eric Blake  <ebb9@byu.net>
38643
38644         test-c-stack: avoid C99-ism
38645         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38646         before statement.
38647         Reported by Alain Guibert.
38648
38649 2008-08-10  Jim Meyering  <meyering@redhat.com>
38650
38651         ensure that return value of uinttostr et al are not ignored
38652         * lib/inttostr.h (__GNUC_PREREQ): Define.
38653         (__attribute_warn_unused_result__): Define.
38654         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38655
38656 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38657
38658         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38659         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38660
38661 2008-08-07  Jim Meyering  <meyering@redhat.com>
38662
38663         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38664
38665         * modules/mkstemp (License): Relicense under LGPLv2+.
38666         * modules/tempname (License): Likewise.
38667
38668 2008-08-06  Bruno Haible  <bruno@clisp.org>
38669
38670         * lib/poll.c (poll): Further micro-optimization.
38671
38672 2008-08-06  Jim Meyering  <meyering@redhat.com>
38673
38674         inet_pton.c: use locale-independent tolower
38675         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38676         (inet_pton6): Use c_tolower rather than tolower.
38677         * modules/inet_pton (Depends-on): Add c-ctype.
38678
38679 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38680
38681         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38682         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38683
38684 2008-08-06  Jim Meyering  <meyering@redhat.com>
38685
38686         * modules/inet_pton (License): Relicense under LGPLv2+.
38687
38688 2008-08-03  Bruno Haible  <bruno@clisp.org>
38689
38690         Additional non-aborting API for lock and tls.
38691         * lib/lock.h: Include <errno.h>.
38692         (glthread_lock_init): New macro/function.
38693         (gl_lock_init): Define as wrapper around glthread_lock_init.
38694         (glthread_lock_lock): New macro/function.
38695         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38696         (glthread_lock_unlock): New macro/function.
38697         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38698         (glthread_lock_destroy): New macro/function.
38699         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38700         (glthread_rwlock_init): New macro/function.
38701         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38702         (glthread_rwlock_rdlock): New macro/function.
38703         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38704         (glthread_rwlock_wrlock): New macro/function.
38705         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38706         (glthread_rwlock_unlock): New macro/function.
38707         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38708         (glthread_rwlock_destroy): New macro/function.
38709         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38710         (glthread_recursive_lock_init): New macro/function.
38711         (gl_recursive_lock_init): Define as wrapper around
38712         glthread_recursive_lock_init.
38713         (glthread_recursive_lock_lock): New macro/function.
38714         (gl_recursive_lock_lock): Define as wrapper around
38715         glthread_recursive_lock_lock.
38716         (glthread_recursive_lock_unlock): New macro/function.
38717         (gl_recursive_lock_unlock): Define as wrapper around
38718         glthread_recursive_lock_unlock.
38719         (glthread_recursive_lock_destroy): New macro/function.
38720         (gl_recursive_lock_destroy): Define as wrapper around
38721         glthread_recursive_lock_destroy.
38722         (glthread_once): New macro/function.
38723         (gl_once): Define as wrapper around glthread_once.
38724         Update function declarations.
38725         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38726         glthread_rwlock_init. Return error code.
38727         (glthread_rwlock_rdlock_multithreaded): Renamed from
38728         glthread_rwlock_rdlock. Return error code.
38729         (glthread_rwlock_wrlock_multithreaded): Renamed from
38730         glthread_rwlock_wrlock. Return error code.
38731         (glthread_rwlock_unlock_multithreaded): Renamed from
38732         glthread_rwlock_unlock. Return error code.
38733         (glthread_rwlock_destroy_multithreaded): Renamed from
38734         glthread_rwlock_destroy. Return error code.
38735         (glthread_recursive_lock_init_multithreaded): Renamed from
38736         glthread_recursive_lock_init. Return error code.
38737         (glthread_recursive_lock_lock_multithreaded): Renamed from
38738         glthread_recursive_lock_lock. Return error code.
38739         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38740         glthread_recursive_lock_unlock. Return error code.
38741         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38742         glthread_recursive_lock_destroy. Return error code.
38743         (glthread_once_call): Make static.
38744         (glthread_once_multithreaded): Renamed from glthread_once.
38745         * lib/tls.h: Include <errno.h>.
38746         (glthread_tls_key_init): New macro/function.
38747         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38748         (glthread_tls_set): New macro/function.
38749         (gl_tls_set): Define as wrapper around glthread_tls_set.
38750         (glthread_tls_key_destroy): New macro/function.
38751         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38752         Update function declarations.
38753         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38754         glthread_tls_get.
38755         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38756
38757 2008-08-04  Eric Blake  <ebb9@byu.net>
38758
38759         gnumakefile: use space, not TAB, outside of targets
38760         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38761
38762 2008-08-02  Jim Meyering  <meyering@redhat.com>
38763
38764         getdate.y: avoid locale-dependent date parsing failure
38765         In Turkish locales, getdate would fail to recognize keywords
38766         containing a lowercase "i".  The solution is not to rely on
38767         locale-sensitive case-conversion.
38768         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38769         (lookup_word): Use c_toupper in place of toupper.
38770         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38771         Reported by Vefa Bicakci <bicave@superonline.com> in
38772         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38773         * modules/getdate (Depends-on): Add c-ctype.
38774
38775 2008-08-02  Bruno Haible  <bruno@clisp.org>
38776
38777         * gnulib-tool (func_import): When updating or creating a .gitignore
38778         file, prepend each added line with a slash, and ignore leading slashes
38779         from the existing lines.
38780         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38781
38782 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38783
38784         Portability fix for GNU make 3.79.1.
38785         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38786         versions do not understand.
38787
38788 2008-08-01  Bruno Haible  <bruno@clisp.org>
38789
38790         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38791         * tests/test-isnanf.h (zero): New variable.
38792         (main): Avoid literal -0.0f.
38793         * tests/test-isnand.h (zero): New variable.
38794         (main): Avoid literal -0.0.
38795         * tests/test-isnanl.h (zero): New variable.
38796         (main): Avoid literal -0.0L.
38797         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38798         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38799         -0.0, -0.0L.
38800         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38801         (test_signbitd): Avoid literal -0.0.
38802         (test_signbitl): Avoid literal -0.0L.
38803         * tests/test-ceilf1.c (zero): New variable.
38804         (main): Avoid literal -0.0f.
38805         * tests/test-ceill.c (zero): New variable.
38806         (main): Avoid literal -0.0L.
38807         * tests/test-floorf1.c (zero): New variable.
38808         (main): Avoid literal -0.0f.
38809         * tests/test-floorl.c (zero): New variable.
38810         (main): Avoid literal -0.0L.
38811         * tests/test-roundf1.c (zero): New variable.
38812         (main): Avoid literal -0.0f.
38813         * tests/test-round1.c (zero): New variable.
38814         (main): Avoid literal -0.0.
38815         * tests/test-roundl.c (zero): New variable.
38816         (main): Avoid literal -0.0L.
38817         * tests/test-truncf1.c (zero): New variable.
38818         (main): Avoid literal -0.0f.
38819         * tests/test-trunc1.c (zero): New variable.
38820         (main): Avoid literal -0.0.
38821         * tests/test-truncl.c (zero): New variable.
38822         (main): Avoid literal -0.0L.
38823         * tests/test-frexp.c (zero): New variable.
38824         (main): Avoid literal -0.0.
38825         * tests/test-frexpl.c (zero): New variable.
38826         (main): Avoid literal -0.0L.
38827         * tests/test-ldexpl.c (zero): New variable.
38828         (main): Avoid literal -0.0L.
38829         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38830         (zerod, zerol): New variables.
38831         (test_function): Avoid literals -0.0, -0.0L.
38832         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38833         (zerod, zerol): New variables.
38834         (test_function): Avoid literals -0.0, -0.0L.
38835         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38836         (zerod, zerol): New variables.
38837         (test_function): Avoid literals -0.0, -0.0L.
38838         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38839         (zerod, zerol): New variables.
38840         (test_function): Avoid literals -0.0, -0.0L.
38841         * tests/test-strtod.c (zero): New variable.
38842         (main): Avoid literal -0.0.
38843         Reported by Jonathan C. Patschke <jp@centtech.com>.
38844
38845 2008-07-31  Jim Meyering  <meyering@redhat.com>
38846
38847         sha256.h: correct definition of SHA224_DIGEST_SIZE
38848         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38849         Reported by Paulie Pena IV <paulie4@gmail.com>.
38850         Define as 224 / 8, rather than as a literal.
38851         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38852         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38853         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38854
38855 2008-07-31  Bruno Haible  <bruno@clisp.org>
38856
38857         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38858         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38859         Reported by Jonathan Patschke <jp@centtech.com>.
38860
38861 2008-07-31  Bruno Haible  <bruno@clisp.org>
38862
38863         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38864         Reported by Paolo Bonzini <bonzini@gnu.org>.
38865
38866 2008-07-30  Eric Blake  <ebb9@byu.net>
38867
38868         test-strtod: allow compilation without -lm
38869         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38870         Reported by Dennis Clarke <blastwave@gmail.com>.
38871
38872 2008-07-28  Jim Meyering  <meyering@redhat.com>
38873
38874         bootstrap: work also when there are no .po files in po/
38875         * build-aux/bootstrap (update_po_files): Complete the change
38876         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38877
38878 2008-07-27  Jim Meyering  <meyering@redhat.com>
38879
38880         * users.txt: Add zile.
38881
38882 2008-07-26  Ben Pfaff  <blp@gnu.org>
38883
38884         Add missing dependencies on new m4/exponent[fdl].m4 files.
38885         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38886         * modules/isnand-nolibm: Add m4/exponentd.m4.
38887         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38888         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38889         m4/isnan[fdl].m4, because the macros actually used moved.
38890         Reported by Jim Meyering.
38891
38892 2008-07-14  Ben Pfaff  <blp@gnu.org>
38893
38894         Add isinf module.
38895         * lib/isinf.c: New file.
38896         * lib/math.in.h: Define isinf macro if we have decided to replace
38897         it.
38898         * m4/isinf.m4: New file.
38899         * m4/math_h.m4: Initialize and substitute variables for isinf
38900         module.
38901         * modules/isinf: New file.
38902         * modules/isinf-tests: New file.
38903         * modules/math: Add substitutions for new module.
38904         * tests/test-isinf.c: New file.
38905         * doc/posix-functions/isinf.texi: Mention new module.
38906         * MODULES.html.sh: Mention new module.
38907
38908 2008-07-14  Ben Pfaff  <blp@gnu.org>
38909
38910         Factor out some macros for use by additional modules.
38911         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38912         exponentf.m4.
38913         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38914         exponentd.m4.
38915         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38916         file exponentl.m4.
38917         * m4/exponentf.m4: New file.
38918         * m4/exponentd.m4: New file.
38919         * m4/exponentl.m4: New file.
38920         * modules/isnanf: Use new file m4/exponentf.m4.
38921         * modules/isnand: Use new file m4/exponentd.m4.
38922         * modules/isnanl: Use new file m4/exponentl.m4.
38923
38924 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38925
38926         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38927         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38928         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38929         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38930
38931         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38932         readlink on platforms without PATH_MAX.
38933
38934 2008-07-21  Eric Blake  <ebb9@byu.net>
38935
38936         Warn, not fail, on stale version.
38937         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38938
38939         Don't allow installation with stale devel version number.
38940         * top/GNUmakefile (_is-install-target): New macro.
38941         (_curr-ver): Forbid installation with stale version number.
38942
38943 2008-07-20  Bruno Haible  <bruno@clisp.org>
38944
38945         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38946         TESTS_ENVIRONMENT.
38947         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38948
38949 2008-07-20  Bruno Haible  <bruno@clisp.org>
38950
38951         * lib/c-stack.h (c_stack_action): Add documentation.
38952         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38953
38954 2008-07-20  Bruno Haible  <bruno@clisp.org>
38955
38956         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38957         * modules/readlink (License): Likewise.
38958
38959 2008-07-17  Eric Blake  <ebb9@byu.net>
38960
38961         * modules/c-stack (Link): Fix typo.
38962
38963         Make c-stack use libsigsegv, when available.
38964         * modules/c-stack (Depends-on): Add libsigsegv.
38965         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38966         needed.
38967         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38968         (segv_handler, overflow_handler, c_stack_action)
38969         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38970         implementation when libsigsegv is available, but only when using
38971         the library is necessary.
38972         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38973         comment, explaining why XSI check fails on Linux.
38974         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38975         * tests/test-c-stack2.sh: Tweak skip message.
38976         * NEWS: Document new link-time requirements.
38977
38978 2008-07-16  Eric Blake  <ebb9@byu.net>
38979
38980         c-stack: Expose false positives when not using libsigsegv.
38981         * modules/c-stack-tests (Files): Expand test.
38982         * tests/test-c-stack.c (main): Add means to conditionally trigger
38983         non-overflow SIGSEGV.
38984         * tests/test-c-stack2.sh: New file.
38985
38986 2008-07-14  Bruno Haible  <bruno@clisp.org>
38987
38988         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38989         Reported by Eric Blake.
38990
38991 2008-07-14  Sam Steingold  <sds@gnu.org>
38992             Bruno Haible  <bruno@clisp.org>
38993
38994         New module libsigsegv.
38995         * modules/libsigsegv: New file.
38996         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38997         modifications.
38998         * MODULES.html.sh (Signal handling): New section.
38999
39000 2008-07-14  Bruno Haible  <bruno@clisp.org>
39001
39002         * modules/unictype/ctype-* (Description): Add the word "function".
39003         Improves the resulting doc in MODULES.html.
39004
39005 2008-07-12  Ben Pfaff  <blp@gnu.org>
39006
39007         Add longlong module.
39008         * modules/longlong: New file.
39009
39010 2008-07-12  Bruno Haible  <bruno@clisp.org>
39011
39012         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39013         to empty.
39014
39015 2008-07-10  Ben Pfaff  <blp@gnu.org>
39016
39017         Add isnan module.
39018         * doc/posix-functions/isnan.texi: Mention new module.
39019         * lib/math.in.h: Define isnan macro if we have decided to replace
39020         it.
39021         * m4/isnan.m4: New file.
39022         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39023         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39024         also.
39025         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39026         redundancy.
39027         * m4/math_h.m4: Initialize and substitute variables for isnan
39028         module.
39029         * modules/isnan: New file.
39030         * modules/isnan-tests: New file.
39031         * modules/math: Add substitutions for new module.
39032         * tests/test-isnan.c: New file.
39033         * MODULES.html.sh: Mention new module.
39034
39035 2008-07-10  Ben Pfaff  <blp@gnu.org>
39036
39037         Add isnanf module.
39038         * lib/isnanf.m4: New file.
39039         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39040         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39041         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39042         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39043         * modules/isnanf: New file.
39044         * modules/isnanf-tests: New file.
39045         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39046         files.
39047         * tests/test-isnanf-nolibm.c: factored most of its contents into
39048         new file tests/test-isnanf.h.
39049         * tests/test-isnanf.h: New file.
39050         * tests/test-isnanf.c: New file.
39051         * MODULES.html.sh: Mention new module.
39052         * doc/glibc-functions/isnanf.texi: Mention new module.
39053
39054 2008-07-10  Ben Pfaff  <blp@gnu.org>
39055
39056         Add isnand module.
39057         * lib/isnand.h: New file.
39058         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39059         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39060         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39061         functionality also.
39062         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39063         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39064         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39065         * modules/isnand: New file.
39066         * modules/isnand-tests: New file.
39067         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39068         files.
39069         * tests/test-isnand-nolibm.c: factored most of its contents into
39070         new file tests/test-isnand.h.
39071         * tests/test-isnand.h: New file.
39072         * tests/test-isnand.c: New file.
39073         * MODULES.html.sh: Mention new module.
39074
39075 2008-07-10  Ben Pfaff  <blp@gnu.org>
39076
39077         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39078         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39079         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39080         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39081         * modules/isnanf-nolibm: Update references to renamed files.
39082         * modules/isnand-nolibm: Likewise.
39083         * modules/isnanf-nolibm-tests: Likewise.
39084         * modules/isnand-nolibm-tests: Likewise.
39085         * lib/frexp.c: Likewise.
39086         * lib/isfinite.c: Likewise.
39087         * lib/signbitd.c: Likewise.
39088         * lib/signbitf.c: Likewise.
39089         * lib/vasnprintf.c: Likewise.
39090         * tests/test-ceilf1.c: Likewise.
39091         * tests/test-ceilf2.c: Likewise.
39092         * tests/test-floorf1.c: Likewise.
39093         * tests/test-floorf2.c: Likewise.
39094         * tests/test-frexp.c: Likewise.
39095         * tests/test-round1.c: Likewise.
39096         * tests/test-round2.c: Likewise.
39097         * tests/test-roundf1.c: Likewise.
39098         * tests/test-strtod.c: Likewise.
39099         * tests/test-trunc1.c: Likewise.
39100         * tests/test-trunc2.c: Likewise.
39101         * tests/test-truncf1.c: Likewise.
39102         * tests/test-truncf2.c: Likewise.
39103         * NEWS: Mention the renamed header files.
39104
39105 2008-07-11  Jim Meyering  <meyering@redhat.com>
39106
39107         vc-list-files: make the last-resort awk code more portable
39108         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39109         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39110         does not support it.
39111
39112 2008-07-10  Eric Blake  <ebb9@byu.net>
39113
39114         Work with tar's bootstrap.
39115         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39116         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39117         an m4 comment.
39118
39119 2008-07-09  Jim Meyering  <meyering@redhat.com>
39120
39121         posix-shell.m4: fix typo that made this test malfunction
39122         * m4/posix-shell.m4: Remove capitalization in variable name.
39123
39124 2008-07-08  Bruno Haible  <bruno@clisp.org>
39125
39126         * m4/onceonly.m4: Update comments.
39127         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39128
39129 2008-07-04  Jim Meyering  <meyering@redhat.com>
39130
39131         * users.txt: Add vc-dwim.
39132         (bison, coreutils): Use the gitweb URL.
39133
39134 2008-07-03  Jim Meyering  <meyering@redhat.com>
39135
39136         * users.txt: Add libffcall.  From Sam Steingold.
39137
39138 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39139
39140         getdate.y: do not ignore TZ with relative day, month or year offset
39141         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39142         relative-date-handling, since otherwise, the latter would clobber the
39143         sole output (an updated Start value) of the tz-handling block.
39144         * tests/test-getdate.c: Tests for the fix
39145
39146 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39147
39148         Recognize 'foo_LIBRARIES += libgnu.a'.
39149         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39150         makefile snippet has already specified an installation location,
39151         also using '+='.
39152
39153 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39154
39155         getdate.y: factor out common actions
39156         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39157         Use them in place of open-coded actions.
39158
39159 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39160
39161         Add self-test for getdate module.
39162         * modules/getdate-tests: New file.
39163         * tests/test-getdate.c: New file.
39164
39165 2008-06-29  Bruno Haible  <bruno@clisp.org>
39166
39167         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39168         .gitignore.
39169         Reported by Sylvain Beucler <beuc@beuc.net>.
39170
39171 2008-06-29  Bruno Haible  <bruno@clisp.org>
39172
39173         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39174         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39175
39176 2008-06-29  Bruno Haible  <bruno@clisp.org>
39177
39178         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39179         EXTRA_DIST.
39180         Reported by Sylvain Beucler <beuc@beuc.net>.
39181
39182 2008-06-26  Jim Meyering  <meyering@redhat.com>
39183
39184         make several modules depend on the "open" module
39185         This provides slightly increased consistency when opening-for-write
39186         the name of a non-directory spelled with a trailing slash.
39187         * modules/chdir-safer: Likewise.
39188         * modules/chown: Likewise.
39189         * modules/clean-temp: Likewise.
39190         * modules/copy-file: Likewise.
39191         * modules/fchdir: Likewise.
39192         * modules/fcntl-safer: Likewise.
39193         * modules/pipe: Likewise.
39194         * modules/utime: Likewise.
39195         Prompted by Eric Blake and Bruno Haible.
39196
39197 2008-06-24  Andreas Schwab  <schwab@suse.de>
39198
39199         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39200         literals can be used as initializers for global variables.
39201
39202 2008-06-23  Eric Blake  <ebb9@byu.net>
39203
39204         Make gnulib-cache.m4 easier to diff.
39205         * gnulib-tool (func_import): Allow newlines when reading cached
39206         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39207
39208 2008-06-23  Bruno Haible  <bruno@clisp.org>
39209
39210         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39211         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39212         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39213         m4/signalblocking.m4.
39214         (gl_PREREQ_SIGACTION): Don't invoke it.
39215         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39216         gl_PREREQ_SIG_HANDLER_H.
39217         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39218         Don't check for sigaction here.
39219
39220 2008-06-23  Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39223         (install_handlers): Don't set the SA_RESETHAND flag.
39224
39225 2008-06-23  Bruno Haible  <bruno@clisp.org>
39226
39227         * m4/sigaction.m4: Comment fixes.
39228         * lib/signal.in.h: Likewise.
39229
39230 2008-06-23  Eric Blake  <ebb9@byu.net>
39231
39232         Fix typo.
39233         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39234
39235         Avoid SA_ namespace.
39236         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39237         Reported by Ralf Wildenhues.
39238
39239         Avoid test failure due to SA_RESTORER.
39240         * tests/test-sigaction.c (SA_MASK): New macro.
39241         (main): Avoid failing due to extension flags being set.
39242         Reported by Jim Meyering.
39243
39244         Revert use of sig-handler.h in sigprocmask.c.
39245         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39246         it requires the existence of struct sigaction.
39247         * lib/sigprocmask.c (handler_t): Restore typedef.
39248         (rpl_signal, old_handlers): Use local type.
39249
39250 2008-06-22  Bruno Haible  <bruno@clisp.org>
39251
39252         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39253         conditionally.
39254         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39255
39256 2008-06-22  Bruno Haible  <bruno@clisp.org>
39257
39258         * doc/posix-functions/siginterrupt.texi: Move note.
39259
39260         * lib/signal.in.h (SA_RESTART): New macro.
39261         * lib/sigaction.c: Update comment.
39262
39263         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39264
39265         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39266         (gl_PREREQ_SIGPROCMASK): Invoke it.
39267         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39268
39269         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39270
39271         * lib/sigprocmask.c: Update a comment.
39272
39273 2008-06-21  Eric Blake  <ebb9@byu.net>
39274
39275         Use sigaction module rather than signal().
39276         * modules/c-stack (Depends-on): Add sigaction.
39277         * modules/fatal-signal (Depends-on): Likewise.
39278         * modules/nanosleep (Depends-on): Likewise.
39279         * modules/sigprocmask (Files): Add sig-handler.h.
39280         * modules/sigaction (Files): Likewise.
39281         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39282         Eggert.
39283         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39284         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39285         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39286         (init_fatal_signals): Likewise.
39287         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39288         (siginterrupt): Delete fallback.
39289         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39290         instead.
39291         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39292         siginterrupt.
39293
39294         New module sigaction, for mingw.
39295         * modules/sigaction: New module...
39296         * modules/sigaction-tests: ...and its test.
39297         * m4/sigaction.m4: New file.
39298         * lib/sigaction.c: Likewise.
39299         * tests/test-sigaction.c: Likewise.
39300         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39301         * modules/signal (Makefile.am): Likewise.
39302         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39303         needed.
39304         * doc/posix-headers/signal.texi (signal.h): Mention provided
39305         types.
39306         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39307         that sigaction is preferable.
39308         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39309         module.
39310         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39311         sigaction.
39312
39313         Improve robustness of sigprocmask by overriding signal.
39314         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39315         is in use.
39316         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39317         (SIGKILL, SIGSTOP): Provide fallbacks.
39318         (rpl_signal): Implement.
39319         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39320         signal can be called inside handlers.
39321
39322         Fix nanosleep module on mingw.
39323         * modules/nanosleep (Depends-on): Add sys_select.
39324         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39325
39326         Fix licensing of sigprocmask.
39327         * modules/raise (License): Relicense as LGPL.
39328
39329 2008-06-21  Bruno Haible  <bruno@clisp.org>
39330
39331         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39332         result if it contains question marks.
39333         Reported by Michael Geng <linux@michaelgeng.de>.
39334
39335 2008-06-19  Bruno Haible  <bruno@clisp.org>
39336
39337         Fix CVS-ism.
39338         * doc/gnulib.texi: Include updated-stamp.texi.
39339         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39340         (updated-stamp.texi): New rule.
39341         (gnulib.info): Depend on it.
39342         * doc/.gitignore: Add updated-stamp.texi.
39343         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39344
39345 2008-06-19  Bruno Haible  <bruno@clisp.org>
39346
39347         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39348         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39349
39350 2008-06-19  Eric Blake  <ebb9@byu.net>
39351
39352         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39353         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39354         Reported by Stepan Kasal.
39355
39356 2008-06-18  Bruno Haible  <bruno@clisp.org>
39357
39358         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39359         Reported by Eric Blake.
39360
39361 2008-06-18  Eric Blake  <ebb9@byu.net>
39362
39363         Work around cygwin 1.5.25 strsignal bug.
39364         * tests/test-strsignal.c: Allow for const char *.
39365         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39366
39367 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39368
39369         * users.txt: Update URL to article and add author/date
39370         information.
39371
39372 2008-06-17  Bruno Haible  <bruno@clisp.org>
39373
39374         New macro gl_DISABLE_THREADS.
39375         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39376         if the user did not pass --enable-threads or --disable-threads option.
39377         (gl_DISABLE_THREADS): New macro.
39378         Reported by Eric Blake <ebb9@byu.net>.
39379
39380 2008-06-17  Bruno Haible  <bruno@clisp.org>
39381
39382         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39383         when the macro ignores it.
39384         Based on a patch by Eric Blake <ebb9@byu.net>.
39385
39386 2008-06-17  Bruno Haible  <bruno@clisp.org>
39387
39388         * modules/tls (License): Change to LGPLv2+.
39389         Reported by Eric Blake.
39390
39391 2008-06-17  Eric Blake  <ebb9@byu.net>
39392
39393         Simplify c-stack prerequisites.
39394         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39395         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39396         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39397         check.
39398         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39399         <sys/resource.h>.
39400
39401         Move c-stack test into testsuite.
39402         * modules/c-stack-tests: New file.
39403         * lib/c-stack.c [DEBUG]: Move test program...
39404         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39405         fail test if sigaltstack is lacking.
39406         * tests/test-c-stack.sh: New driver file.
39407
39408 2008-06-16  Eric Blake  <ebb9@byu.net>
39409
39410         Use raise module consistently.
39411         * modules/fatal-signal (Depends-on): Add raise.
39412         * modules/sigprocmask (Depends-on): Likewise.
39413         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39414         * lib/sigprocmask.c (sigprocmask): Likewise.
39415         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39416         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39417
39418         Fix compliance bug in sigpending.
39419         * lib/sigprocmask.c (sigpending): Return pending array via
39420         parameter, not return value.
39421
39422 2008-06-14  Eric Blake  <ebb9@byu.net>
39423
39424         Improve obstack-printf test code.
39425         * tests/test-obstack-printf.c (test_function): Fix comment, and
39426         simplify usage of obstack_* in macros.  Add a test for coverage.
39427         Reported by Bruno Haible.
39428
39429 2008-06-14  Bruno Haible  <bruno@clisp.org>
39430
39431         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39432         array size as a constant, not as a const variable.
39433         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39434         AC_USE_SYSTEM_EXTENSIONS.
39435         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39436         Test whether the obstack_printf function actually exists.
39437         * modules/obstack-printf (Depends-on): Add extensions.
39438         (Include): Remove obstack.h.
39439         * modules/obstack-printf-posix (Depends-on): Add extensions.
39440         (Include): Remove obstack.h.
39441
39442 2008-06-13  Eric Blake  <ebb9@byu.net>
39443
39444         Add obstack-printf and obstack-printf-posix modules.
39445         * modules/obstack-printf: New file.
39446         * modules/obstack-printf-posix: Likewise.
39447         * MODULES.html.sh (Misc): Mention them.
39448         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39449         Likewise.
39450         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39451         Likewise.
39452         * modules/stdio (Makefile.am): Accomodate new modules.
39453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39454         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39455         Declare.
39456         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39457         functions.
39458         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39459         (gl_REPLACE_OBSTACK_PRINTF): New macros
39460         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39461         * tests/test-obstack-printf.c: New file.
39462         * modules/obstack-printf-tests: Likewise.
39463         * modules/obstack-printf-posix-tests: Likewise.
39464
39465 2008-06-11  Bruno Haible  <bruno@clisp.org>
39466
39467         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39468         * lib/open.c: Include errno.h.
39469         (open): Fail when attempting to write to a file that has a trailing
39470         slash.
39471         * tests/test-open.c (main): Test against trailing slash bug.
39472         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39473
39474 2008-06-10  Bruno Haible  <bruno@clisp.org>
39475
39476         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39477         for $? to work inside the trap command, with various /bin/sh-s.
39478         * tests/test-vc-list-files-cvs.sh: Likewise.
39479
39480 2008-06-10  Bruno Haible  <bruno@clisp.org>
39481
39482         * lib/acl-internal.h: Don't include gettext.h here.
39483         * lib/set-mode-acl.c: Include gettext.h here.
39484         * lib/copy-acl.c: Likewise.
39485
39486 2008-06-10  Bruno Haible  <bruno@clisp.org>
39487
39488         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39489         * lib/wait-process.c (wait_subprocess): Likewise.
39490         * lib/execute.h (execute): Add termsigp argument.
39491         * lib/execute.c (execute): Likewise.
39492         * lib/csharpcomp.c (compile_csharp_using_pnet,
39493         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39494         * lib/csharpexec.c (execute_csharp_using_pnet,
39495         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39496         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39497         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39498         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39499         is_jikes_present): Update.
39500         * lib/javaexec.c (execute_java_class): Update.
39501         * lib/javaversion.c (execute_and_read_line): Update.
39502         * NEWS: Document the changes.
39503         Reported by Eric Blake.
39504
39505 2008-06-10  Eric Blake  <ebb9@byu.net>
39506
39507         Add missing include.
39508         * tests/test-strstr.c (includes): Add <signal.h>.
39509         * tests/test-strcasestr.c (includes): Likewise.
39510         * tests/test-memmem.c (includes): Likewise.
39511
39512 2008-06-10  Bruno Haible  <bruno@clisp.org>
39513
39514         * lib/wait-process.c (wait_subprocess): Add an assertion.
39515
39516 2008-06-10  Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39519
39520 2008-06-10  Bruno Haible  <bruno@clisp.org>
39521
39522         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39523         using alarm().
39524         * tests/test-strcasestr.c (main): Likewise.
39525         * tests/test-strstr.c (main): Likewise.
39526
39527 2008-06-09  Bruno Haible  <bruno@clisp.org>
39528
39529         Work around the Solaris 10 ACE ACLs ABI change.
39530         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39531         declare if ACL_NO_TRIVIAL is present.
39532         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39533         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39534         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39535         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39536         define if ACL_NO_TRIVIAL is present.
39537         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39538         and use the current ABI.
39539         (file_has_acl): Use same #if condition as elsewhere.
39540         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39541         in use, and use the current ABI.
39542         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39543         Reported by Jim Meyering.
39544
39545 2008-06-09  Eric Blake  <ebb9@byu.net>
39546
39547         Work around environments that (stupidly) ignore SIGALRM.
39548         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39549         before using alarm().
39550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39551         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39552         Reported by Ian Beckwith <ianb@erislabs.net>.
39553
39554         Produce autobuild blurb earlier in log.
39555         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39556
39557 2008-06-09  Jim Meyering  <meyering@redhat.com>
39558         and OndÅ™ej Vašík  <ovasik@redhat.com>
39559
39560         utimens.c: correct kernel bug work-around
39561         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39562         failure, not success, and the kernel bug we're trying to work
39563         around affects not just the utimensat call, but also the fallback
39564         futimens call.
39565         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39566         not success.
39567         [HAVE_FUTIMENS]: Use the same work-around, here.
39568
39569 2008-06-09  Jim Meyering  <meyering@redhat.com>
39570
39571         add more guards around definition of ACE_-related code
39572         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39573         ALLOW and ACE_OWNER are also defined.
39574
39575 2008-06-08  Bruno Haible  <bruno@clisp.org>
39576
39577         * lib/acl-internal.h: Add me as co-author.
39578         * lib/file-has-acl.c: Likewise.
39579         * lib/set-mode-acl.c: Likewise.
39580         * lib/copy-acl.c: Likewise.
39581
39582 2008-06-08  Bruno Haible  <bruno@clisp.org>
39583
39584         Add support for AIX ACLs.
39585         * lib/acl-internal.h (acl_nontrivial): New declaration.
39586         * lib/file-has-acl.c (acl_nontrivial): New function.
39587         (file_has_acl): Add implementation using AIX 4 ACL API.
39588         * lib/set-mode-acl.c (qset_acl): Likewise.
39589         * lib/copy-acl.c (qcopy_acl): Likewise.
39590
39591 2008-06-08  Bruno Haible  <bruno@clisp.org>
39592
39593         Add support for HP-UX ACLs.
39594         * lib/acl-internal.h (acl_nontrivial): New declaration.
39595         * lib/file-has-acl.c (acl_nontrivial): New function.
39596         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39597         * lib/set-mode-acl.c (qset_acl): Likewise.
39598         * lib/copy-acl.c (qcopy_acl): Likewise.
39599
39600 2008-06-08  Bruno Haible  <bruno@clisp.org>
39601
39602         Add support for Cygwin ACLs.
39603         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39604         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39605         the chmod_or_fchmod call.
39606         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39607
39608 2008-06-08  Bruno Haible  <bruno@clisp.org>
39609
39610         Fix bug with setuid modes in Solaris 10+ code.
39611         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39612         succeeded, when the mode contains some special bits.
39613
39614 2008-06-08  Bruno Haible  <bruno@clisp.org>
39615
39616         Add support for Solaris 7..10 ACLs.
39617         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39618         declarations.
39619         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39620         functions.
39621         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39622         * lib/set-mode-acl.c (qset_acl): Likewise.
39623         * lib/copy-acl.c (qcopy_acl): Likewise.
39624
39625 2008-06-08  Bruno Haible  <bruno@clisp.org>
39626
39627         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39628         declaration.
39629         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39630         (acl_access_nontrivial): Remove MacOS X case.
39631         (file_has_acl): Use acl_extended_nontrivial.
39632         * lib/copy-acl.c (qcopy_acl): Likewise.
39633
39634 2008-06-08  Bruno Haible  <bruno@clisp.org>
39635
39636         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39637
39638 2008-06-08  Jim Meyering  <meyering@redhat.com>
39639
39640         * modules/acl (Maintainer): Add Bruno Haible.
39641
39642 2008-06-07  Bruno Haible  <bruno@clisp.org>
39643
39644         Improve support for Tru64 ACLs.
39645         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39646         ACL on OSF/1.
39647
39648 2008-06-07  Bruno Haible  <bruno@clisp.org>
39649
39650         Add support for MacOS X ACLs.
39651         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39652         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39653         * lib/set-mode-acl.c (qset_acl): Likewise.
39654         * lib/copy-acl.c (qcopy_acl): Likewise.
39655
39656 2008-06-07  Bruno Haible  <bruno@clisp.org>
39657
39658         Fix memory leak introduced on 2008-05-22.
39659         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39660         use.
39661
39662 2008-06-07  Bruno Haible  <bruno@clisp.org>
39663
39664         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39665         to construct an empty ACL.
39666
39667 2008-06-07  Bruno Haible  <bruno@clisp.org>
39668
39669         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39670         precisely.
39671         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39672
39673 2008-06-07  Bruno Haible  <bruno@clisp.org>
39674
39675         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39676         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39677
39678 2008-06-07  Bruno Haible  <bruno@clisp.org>
39679
39680         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39681         regardless of POSIX.
39682         * doc/posix-functions/_longjmp.texi: Likewise.
39683         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39684         SystemV platform in this case.
39685
39686 2008-06-06  Eric Blake  <ebb9@byu.net>
39687
39688         Document abort() bugs.
39689         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39690
39691         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39692         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39693         sigsetjmp.
39694         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39695         siglongjmp, but only as a macro.
39696         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39697         is obsolete.
39698         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39699
39700         Tweak documentation to cover cygwin argz bugs.
39701         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39702         argz bug fix; no code change needed since no cygwin releases
39703         occurred between the last fix and the bug being tested.
39704         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39705         module and recently fixed cygwin bugs.
39706         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39707         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39708         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39709         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39710         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39711         Likewise.
39712         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39713         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39714         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39715         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39716         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39717         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39718         Likewise.
39719
39720         Avoid gcc warning on cygwin.
39721         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39722         !ACL_NO_TRIVIAL]: Avoid unused variable.
39723
39724 2008-06-05  Eric Blake  <ebb9@byu.net>
39725
39726         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39727         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39728         git-version-gen fails to come up with a version.
39729         Reported by Simon Josefsson.
39730
39731 2008-06-05  Jim Meyering  <meyering@redhat.com>
39732             Paul Eggert  <eggert@cs.ucla.edu>
39733
39734         utimens.c: work around a probable Linux kernel bug
39735         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39736         appears to be a kernel bug that causes utimensat to return 280
39737         instead of 0, indicating success.
39738
39739 2008-06-04  Bruno Haible  <bruno@clisp.org>
39740
39741         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39742         2008-06-01 commit.
39743
39744 2008-06-04  Bruno Haible  <bruno@clisp.org>
39745
39746         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39747         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39748         (file_has_acl): Use it. Save errno afterwards.
39749         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39750
39751 2008-06-03  Bruno Haible  <bruno@clisp.org>
39752
39753         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39754         draft code. Simplify #ifs.
39755         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39756         Put Solaris code after POSIX-draft code. Fix comments regarding
39757         Solaris 10, HP-UX. Mention Cygwin.
39758         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39759
39760 2008-06-03  Eric Blake  <ebb9@byu.net>
39761
39762         Provide fallback for older kernels.
39763         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39764         Provide runtime fallback if kernel lacks support.
39765         Reported by Mike Frysinger.
39766
39767 2008-06-02  Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39770         it exists.
39771
39772 2008-06-02  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39775         * lib/copy-acl.c (qcopy_acl): Update comment.
39776
39777 2008-06-02  Bruno Haible  <bruno@clisp.org>
39778
39779         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39780         like ACL APIs.
39781
39782 2008-06-02  Bruno Haible  <bruno@clisp.org>
39783
39784         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39785         * tests/test-set-mode-acl.sh: Likewise.
39786         * tests/test-copy-acl.sh: Likewise.
39787         * tests/test-copy-file.sh: Likewise.
39788
39789 2008-06-02  Bruno Haible  <bruno@clisp.org>
39790
39791         * tests/test-file-has-acl.sh: Remove unused code.
39792
39793 2008-06-01  Bruno Haible  <bruno@clisp.org>
39794
39795         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39796         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39797         messages.
39798         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39799
39800 2008-06-01  Bruno Haible  <bruno@clisp.org>
39801
39802         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39803         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39804         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39805         APIs.
39806         * modules/acl-tests (configure.ac): Remove tests now contained in
39807         m4/acl.m4.
39808
39809 2008-06-02  Jim Meyering  <meyering@redhat.com>
39810
39811         announce-gen: use a better key-server host name
39812         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39813         it may be more consistently reliable.  Suggested by Werner Koch
39814         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39815
39816 2008-06-01  Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39819         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39820
39821 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39822
39823         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39824
39825 2008-06-01  Bruno Haible  <bruno@clisp.org>
39826
39827         New ACL tests.
39828         * tests/test-file-has-acl.sh: New file.
39829         * tests/test-file-has-acl.c: New file.
39830         * tests/test-set-mode-acl.sh: New file.
39831         * tests/test-set-mode-acl.c: New file.
39832         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39833         * tests/test-copy-acl.c: New file.
39834         * modules/acl-tests: New file, based on modules/copy-file-tests.
39835         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39836         (Depends-on): Add acl-tests.
39837         (configure.ac): Remove checks.
39838         (Makefile.am): Don't create test-sameacls program here any more.
39839
39840 2008-06-01  Bruno Haible  <bruno@clisp.org>
39841
39842         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39843         * tests/test-sameacls.c: Include progname.h.
39844         (main): Invoke set_program_name. Portability fixes for MacOS X,
39845         Solaris, HP-UX.
39846
39847 2008-06-01  Bruno Haible  <bruno@clisp.org>
39848
39849         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39850         function.
39851         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39852
39853 2008-06-01  Bruno Haible  <bruno@clisp.org>
39854
39855         * modules/rpmatch (Depends-on): Add strdup.
39856
39857 2008-06-01  Bruno Haible  <bruno@clisp.org>
39858
39859         * lib/pipe.c: Include unistd-safer.h.
39860         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39861         * modules/pipe (Depends-on): Add unistd-safer.
39862
39863 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39864
39865         * modules/autobuild (configure.ac): Call AB_INIT.
39866
39867 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39868
39869         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39870         Suggested by Bruno Haible <bruno@clisp.org>.
39871
39872 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39873
39874         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39875         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39876         <bruno@clisp.org>.
39877
39878 2008-05-29  Eric Blake  <ebb9@byu.net>
39879
39880         Prefer new POSIX 200x interfaces over futimesat.
39881         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39882         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39883         when available.
39884         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39885
39886 2008-05-28  Bruno Haible  <bruno@clisp.org>
39887
39888         * modules/stpcpy (License): Change to LGPLv2+.
39889         Requested by David Lutterkort <dlutter@redhat.com>.
39890
39891 2008-05-27  Bruno Haible  <bruno@clisp.org>
39892
39893         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39894         current mingw.
39895         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39896
39897 2008-05-27  Bruno Haible  <bruno@clisp.org>
39898
39899         * modules/iconv_open (Link): New section, from module 'iconv'.
39900         * modules/striconv (Link): Likewise.
39901         * modules/striconveh (Link): Likewise.
39902         * modules/xstriconv (Link): Likewise.
39903         * modules/unicodeio (Link): Likewise.
39904         * modules/propername (Link): Likewise.
39905         Reported by Jim Meyering.
39906
39907 2008-05-26  Jim Meyering  <meyering@redhat.com>
39908
39909         sha256: do not artificially restrict buffer length to be < 2^32
39910         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39911         uint32_t to size_t.
39912         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39913         to match.
39914
39915         avoid unaligned access errors, e.g., on sparc
39916         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39917         direct access through a possibly-unaligned uint64* pointer.
39918         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39919         direct access through a possibly-unaligned uint32* pointer.
39920         Prompted by this patch from Tom "spot" Callaway:
39921         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39922
39923         sha512.c: fix typo in comment
39924         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39925
39926 2008-05-25  Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39929         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39930         (Makefile.am): Update lib_SOURCES.
39931
39932 2008-05-25  Bruno Haible  <bruno@clisp.org>
39933
39934         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39935
39936 2008-05-25  Jim Meyering  <meyering@redhat.com>
39937
39938         useless-if-before-free: freed expr may have white-space differences
39939         * build-aux/useless-if-before-free: Recognize cases in which the
39940         freed expression differs from the tested one in embedded white
39941         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39942         $1 was used, so we can't make any regexp shy.  Improved tests now
39943         detect this.
39944
39945         useless-if-before-free: accept white space in the expression.
39946         * build-aux/useless-if-before-free: For now, any white space
39947         in the expression must be identical in the free argument.
39948
39949         useless-if-before-free: efficiency tweak
39950         * build-aux/useless-if-before-free: Make the expression-matching
39951         regexp "shy".
39952         Make the *outer* regexp shy, not the expr-matching one.
39953
39954         update code-in-comment to accept cast of free arg
39955         * build-aux/useless-if-before-free: Update regexp.
39956
39957 2008-05-25  Bruno Haible  <bruno@clisp.org>
39958
39959         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39960         * modules/copy-file-tests (Files, Makefile.am): Update.
39961         * tests/test-copy-file.c (func_test_copy): Update.
39962
39963 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39964
39965         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39966
39967 2008-05-23  Bruno Haible  <bruno@clisp.org>
39968
39969         Improve support for ACLs on OSF/1.
39970         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39971         Remove fallback for unknown flavors of ACLs.
39972
39973 2008-05-22  Bruno Haible  <bruno@clisp.org>
39974
39975         Add support for ACLs on OSF/1.
39976         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39977         replacements.
39978         (acl_free_text): New macro fallback.
39979         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39980         acl_free.
39981         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39982         acl_free_text function. Require AC_C_INLINE.
39983
39984 2008-05-22  Bruno Haible  <bruno@clisp.org>
39985
39986         Make copy_acl work on MacOS X 10.5.
39987         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39988         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39989         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39990         If MODE_INSIDE_ACL, don't assume that every system has the same text
39991         representation for ACLs as FreeBSD.
39992         * lib/copy-acl.c (copy_acl): Add support for platforms with
39993         !MODE_INSIDE_ACL.
39994         * lib/file-has-acl.c (file_has_acl): Likewise.
39995         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39996         FreeBSD, MacOS X, or IRIX, respectively.
39997
39998 2008-05-22  Bruno Haible  <bruno@clisp.org>
39999
40000         * lib/acl.h: Don't include <sys/acl.h>.
40001         (GETACLCNT): Move fallback to lib/acl-internal.h.
40002         * lib/acl-internal.h: Include <sys/acl.h> here.
40003         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40004
40005 2008-05-22  Bruno Haible  <bruno@clisp.org>
40006
40007         Split off copy_acl function to separate file.
40008         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40009         * lib/acl.c (copy_acl): Moved function to separate file.
40010         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40011         * modules/acl (Files): Add lib/copy-acl.c.
40012         (Makefiles.am): Augment lib_SOURCES.
40013
40014 2008-05-22  Bruno Haible  <bruno@clisp.org>
40015
40016         * modules/copy-file-tests: New file.
40017         * tests/test-copy-file.sh: New file.
40018         * tests/test-copy-file.c: New file.
40019         * tests/test-copy-file-sameacls.c: New file.
40020
40021 2008-05-22  Eric Blake  <ebb9@byu.net>
40022
40023         Avoid gcc warning.
40024         * tests/test-memcmp.c (main): Pass NULL indirectly.
40025
40026 2008-05-21  Bruno Haible  <bruno@clisp.org>
40027
40028         Add reference doc about ACLs.
40029         * doc/acl-resources.txt: New file.
40030         * doc/acl-cygwin.txt: New file.
40031
40032 2008-05-21  Bruno Haible  <bruno@clisp.org>
40033
40034         Avoid one more warning from gcc.
40035         * lib/vasnprintf.c (IF_LINT): Update comments.
40036         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40037
40038 2008-05-21  Jim Meyering  <meyering@redhat.com>
40039
40040         avoid a warning from gcc
40041         * lib/vasnprintf.c (IF_LINT): Define.
40042         (scale10_round_decimal_long_double):
40043         Use it to avoid a "may be used uninitialized" warning.
40044         (scale10_round_decimal_double): Likewise.
40045
40046 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40047
40048         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40049         declared.
40050
40051 2008-05-20  Bruno Haible  <bruno@clisp.org>
40052
40053         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40054         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40055
40056 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40057
40058         * modules/memcmp-tests: New file.
40059         * tests/test-memcmp.c: New file.
40060
40061 2008-05-19  Bruno Haible  <bruno@clisp.org>
40062
40063         * modules/propername (Notice, configure.ac): Put quoted "..." into
40064         --keyword option.
40065         * lib/propername.h: Update comments accordingly.
40066         Reported by Eric Blake.
40067
40068 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40069
40070         * modules/getpass-gnu (Depends-on): Add fseeko.
40071
40072 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40073
40074         * modules/base64-tests: New file.
40075
40076 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40077
40078         * lib/base64.c (base64_decode_ctx): If a decode context structure
40079         was passed in use it to ignore newlines.  If a context structure
40080         was _not_ passed in, continue to treat newlines as garbage (this
40081         is the historical behavior).  Formerly base64_decode.
40082         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40083         takes a decode context structure.
40084         * lib/base64.h (base64_decode): Macro for four-argument calls.
40085         (base64_decode_alloc): Likewise.
40086         * lib/base64.c (base64_decode_ctx): If a decode context structure
40087         was passed in use it to ignore newlines.  If a context structure
40088         was _not_ passed in, continue to treat newlines as garbage (this
40089         is the historical behavior).  Formerly base64_decode.
40090         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40091         takes a decode context structure.
40092         * lib/base64.h (base64_decode): Macro for four-argument calls.
40093         (base64_decode_alloc): Likewise.
40094
40095 2008-05-19  Jim Meyering  <meyering@redhat.com>
40096
40097         avoid a warning from gcc
40098         * lib/trim.c (IF_LINT): Define.
40099         (trim2): Use it to avoid a "may be used uninitialized" warning.
40100
40101         Fix doc typo.
40102         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40103
40104 2008-05-19  Bruno Haible  <bruno@clisp.org>
40105
40106         * doc/glibc-functions/getpass.texi: Document limits of other
40107         implementations.
40108
40109 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40110             Bruno Haible <bruno@clisp.org>
40111
40112         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40113
40114 2008-05-18  Bruno Haible  <bruno@clisp.org>
40115
40116         * modules/propername: New file, from GNU gettext.
40117         * lib/propername.h: New file, from GNU gettext.
40118         * lib/propername.c: New file, from GNU gettext.
40119         * MODULES.html.sh (Internationalization functions): Add propername.
40120
40121 2008-05-16  Jim Meyering  <meyering@redhat.com>
40122             Bruno Haible  <bruno@clisp.org>
40123
40124         Avoid some warnings from "gcc -Wshadow".
40125         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40126
40127 2008-05-15  Eric Blake  <ebb9@byu.net>
40128
40129         Extend previous patch to cygwin 1.7.0.
40130         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40131         fast implementation in cygwin >= 1.7.0.
40132         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40133         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40134
40135 2008-05-15  Bruno Haible  <bruno@clisp.org>
40136
40137         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40138         implementation in glibc >= 2.9.
40139         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40141
40142 2008-05-15  Bruno Haible  <bruno@clisp.org>
40143
40144         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40145         (Unicode string functions): Add unilbrk/*.
40146         Reported by Karl Berry.
40147
40148 2008-05-15  Eric Blake  <ebb9@byu.net>
40149
40150         Fix violation of <stdbool.h> replacement in regex.
40151         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40152         * lib/regexec.c (re_search_internal): Likewise.
40153         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40154
40155 2008-05-15  Jim Meyering  <meyering@redhat.com>
40156
40157         avoid distracting test output when git or cvs is not found
40158         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40159         * tests/test-vc-list-files-git.sh: Likewise.
40160
40161 2008-05-15  Eric Blake  <ebb9@byu.net>
40162
40163         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40164         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40165         glibc version.
40166         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40167         * doc/posix-functions/strstr.texi (strstr): Likewise.
40168         * lib/str-two-way.h (MAX): Sychronize with glibc.
40169
40170 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40171
40172         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40173         opr.ctx_type.
40174         (calc_first): Initialize constraint field.
40175         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40176         Fix grammar.
40177         (duplicate_node): Merge constraint field for all node types.
40178         (calc_eclosure_iter): Look at constraint field for all node types.
40179         * lib/regex_internal.c (create_cd_newstate): Don't look at
40180         opr.ctx_type.
40181
40182 2008-05-14  Bruno Haible  <bruno@clisp.org>
40183
40184         Help GCC to do better code generation.
40185         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40186         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40187         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40188         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40189         Declare with attribute 'malloc' if supported.
40190
40191 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40192
40193         use "echo STR|wc -c" rather than unportable "expr length STR"
40194         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40195         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40196
40197 2008-05-14  Jim Meyering  <meyering@redhat.com>
40198
40199         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40200         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40201         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40202         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40203         via Collin Lasse.
40204
40205 2008-05-14  Eric Blake  <ebb9@byu.net>
40206
40207         Avoid quadratic growth in gl_LIBSOURCES.
40208         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40209         Suggested by Bruno Haible.
40210
40211         Test xmemdup0.
40212         * modules/xmemdup0-tests: New file.
40213         * tests/test-xmemdup0.c: Likewise.
40214
40215 2008-05-13  Eric Blake  <ebb9@byu.net>
40216
40217         Split xmemdup0 into its own module.
40218         * modules/xmemdup0: New file.
40219         * lib/xmemdup0.h: Likewise.
40220         * lib/xmemdup0.c: Likewise.
40221         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40222         * lib/xalloc.h (xmemdup0): Remove.
40223         * lib/xmalloc.c (xmemdup0): Likewise.
40224
40225 2008-05-13  Eric Blake  <ebb9@byu.net>
40226             Bruno Haible  <bruno@clisp.org>
40227
40228         Reduce number of forks required during autoconf.
40229         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40230         and gl_LIBSOURCES_DIR.
40231         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40232         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40233         m4_syscmd per file.
40234         <m4_foreach_w>: Move...
40235         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40236
40237 2008-05-13  Eric Blake  <ebb9@byu.net>
40238
40239         * gnulib-tool: Fix various comment typos.
40240
40241 2008-05-12  Bruno Haible  <bruno@clisp.org>
40242
40243         Tailor the linebreaking algorithm.
40244         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40245
40246 2008-05-12  Bruno Haible  <bruno@clisp.org>
40247
40248         Update to Unicode 5.0.0.
40249         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40250         LBP_JV, LBP_JT. Redistribute values.
40251         (unilbrk_table): Change size.
40252         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40253         Unicode TR#14 rev. 22.
40254         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40255         LBP_JV, LBP_JT. Redistribute values.
40256         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40257         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40258         Update.
40259         * lib/unilbrk/lbrkprop1.h: Regenerated.
40260         * lib/unilbrk/lbrkprop2.h: Regenerated.
40261         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40262         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40263         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40264         Likewise.
40265         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40266         Likewise.
40267         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40268         result.
40269         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40270         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40271         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40272         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40273         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40274         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40275
40276 2008-05-11  Bruno Haible  <bruno@clisp.org>
40277
40278         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40279
40280 2008-05-11  Bruno Haible  <bruno@clisp.org>
40281
40282         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40283         * modules/unilbrk/gen-lbrk: New file.
40284
40285 2008-05-11  Bruno Haible  <bruno@clisp.org>
40286
40287         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40288         * m4/sha512.m4 (gl_SHA512): Likewise.
40289
40290 2008-05-11  Jim Meyering  <meyering@redhat.com>
40291
40292         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40293         * modules/crypto/sha256: New file.
40294         * modules/crypto/sha512: Likewise.
40295         * lib/sha256.c: Likewise.
40296         * lib/sha256.h: Likewise.
40297         * lib/sha512.c: Likewise.
40298         * lib/sha512.h: Likewise.
40299         * lib/u64.h: Likewise.
40300         * m4/sha256.m4: Likewise.
40301         * m4/sha512.m4: Likewise.
40302         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40303
40304 2008-05-10  Bruno Haible  <bruno@clisp.org>
40305
40306         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40307         (Input/Output <stdio.h>): Add xprintf.
40308         (Signal handling <signal.h>): Add strsignal.
40309         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40310         (Core language properties): Add func.
40311         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40312         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40313         strings.
40314         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40315         (Input/output): New section.
40316         (File system functions): Add openat-die, stat-macros.
40317         (Networking functions): Add sockets.
40318         (Unicode string functions): Add unictype/*.
40319         (Support for building libraries and executables): Add gperf.
40320         (Support for building documentation): Add agpl-3.0.
40321         (Misc): Add nocrash.
40322
40323 2008-05-10  Bruno Haible  <bruno@clisp.org>
40324
40325         * modules/unictype/gen-ctype: New file.
40326
40327 2008-05-10  Jim Meyering  <meyering@redhat.com>
40328
40329         Make chdir-safer.c more efficient on a system with no symlinks.
40330         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40331         also if ELOOP is zero.  Suggested by Bruno Haible.
40332
40333         Make chdir-safer.c slightly safer.
40334         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40335         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40336
40337         Avoid compile failure on systems without ELOOP (like mingw).
40338         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40339         Reported by Bruno Haible.
40340
40341 2008-05-10  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40344         (is_utf8_encoding): Use a case-insensitive comparison.
40345         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40346         streq.
40347
40348 2008-05-10  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40351         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40352         * lib/unilbrk/ulc-common.h (iconv_string_length,
40353         iconv_string_keeping_offsets): Remove declarations.
40354         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40355         Don't include <iconv.h>, streq.h, xsize.h.
40356         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40357         conversion.
40358         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40359         <iconv.h>, streq.h, xsize.h.
40360         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40361         conversion.
40362         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40363         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40364         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40365         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40366
40367 2008-05-10  Bruno Haible  <bruno@clisp.org>
40368
40369         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40370         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40371
40372         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40373         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40374
40375         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40376         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40377
40378         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40379         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40380
40381         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40382         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40383
40384         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40385         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40386
40387         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40388         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40389
40390         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40391         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40392
40393 2008-05-10  Bruno Haible  <bruno@clisp.org>
40394
40395         Split up 'linebreak' module.
40396         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40397         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40398         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40399         modifications.
40400         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40401         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40402         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40403         lib/linebreak.c.
40404         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40405         lib/linebreak.c.
40406         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40407         lib/linebreak.c.
40408         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40409         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40410         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40411         lib/linebreak.c.
40412         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40413         lib/linebreak.c.
40414         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40415         lib/linebreak.c.
40416         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40417         lib/linebreak.c.
40418         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40419         lib/linebreak.c.
40420         * modules/unilbrk/base: New file.
40421         * modules/unilbrk/tables: New file.
40422         * modules/unilbrk/u8-possible-linebreaks: New file.
40423         * modules/unilbrk/u16-possible-linebreaks: New file.
40424         * modules/unilbrk/u32-possible-linebreaks: New file.
40425         * modules/unilbrk/ulc-common: New file.
40426         * modules/unilbrk/ulc-possible-linebreaks: New file.
40427         * modules/unilbrk/u8-width-linebreaks: New file.
40428         * modules/unilbrk/u16-width-linebreaks: New file.
40429         * modules/unilbrk/u32-width-linebreaks: New file.
40430         * modules/unilbrk/ulc-width-linebreaks: New file.
40431         * lib/linebreak.h: Remove file.
40432         * lib/linebreak.c: Remove file.
40433         * m4/linebreak.m4: Remove file.
40434         * modules/linebreak: Remove file.
40435         * NEWS: Mention the changes.
40436
40437 2008-05-09  Eric Blake  <ebb9@byu.net>
40438
40439         Add xmemdup0.
40440         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40441         implementation.
40442         * lib/xmalloc.c (xmemdup0): New C implementation.
40443
40444 2008-05-08  Bruno Haible  <bruno@clisp.org>
40445
40446         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40447
40448 2008-05-07  Eric Blake  <ebb9@byu.net>
40449
40450         Support cross-compilation of <wctype.h>.
40451         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40452         AC_CACHE_CHECK.
40453
40454 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40455
40456         * build-aux/vc-list-files: Add support for bzr.
40457
40458 2008-05-03  Jim Meyering  <meyering@redhat.com>
40459
40460         avoid failed assertion with tight malloc
40461         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40462
40463 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40464
40465         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40466         are needed from arpa/inet.h.
40467         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40468         Reported by Bruno Haible.
40469
40470 2008-05-02  Jim Meyering  <meyering@redhat.com>
40471
40472         avoid compilation error on FreeBSD 6
40473         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40474
40475 2008-05-01  Jim Meyering  <meyering@redhat.com>
40476
40477         useless-if-before-free: correct --help's exit status description
40478         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40479         for one or more matches, etc.  Reported by Bruno Haible.
40480
40481         vc-list-files: make the stand-alone gnulib test work
40482         * modules/vc-list-files-tests (configure.ac):
40483         Define and AC_SUBST abs_aux_dir.
40484         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40485         $(abs_top_srcdir) to each script and having each of them
40486         duplicate the work of setting PATH, set PATH here, using
40487         the new variable, abs_aux_dir instead.
40488         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40489         * tests/test-vc-list-files-git.sh: Likewise.
40490         Reported by Bruno Haible.
40491
40492 2008-05-01  Bruno Haible  <bruno@clisp.org>
40493
40494         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40495         reallocation. Rename 'done' to 'found_delimiter'.
40496
40497 2008-05-01  Jim Meyering  <meyering@redhat.com>
40498
40499         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40500         * build-aux/vc-list-files: Use `...`, not $(...).
40501
40502 2008-04-30  Jim Meyering  <meyering@redhat.com>
40503
40504         add tests for vc-list-files
40505         * modules/vc-list-files-tests: New module.
40506         * tests/test-vc-list-files-cvs.sh: New file.
40507         * tests/test-vc-list-files-git.sh: New file.
40508
40509         avoid a warning from gcc
40510         * lib/getndelim2.c (IF_LINT): Define.
40511         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40512
40513         vc-list-files: work properly with build-aux/cvsu, too
40514         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40515         to all cvs-based clauses.
40516
40517         vc-list-files: work properly in the CVS+awk case, too
40518         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40519
40520         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40521         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40522         take more than one file argument, so .  Add quotes, just in case $dir
40523         ever contains a shell meta-character.  Prompted by Soren Hansen in
40524         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40525
40526 2008-04-29  Eric Blake  <ebb9@byu.net>
40527
40528         Optimize getndelim2 to use block operations when possible.
40529         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40530         freadseek, and memchr2.
40531         * lib/getndelim2.c (getndelim2): Use them for block reads.
40532
40533 2008-04-29  Bruno Haible  <bruno@clisp.org>
40534
40535         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40536         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40537         * modules/inet_ntop (Depends-on): Add extensions.
40538         * modules/inet_pton (Depends-on): Likewise.
40539         Reported by Simon Josefsson.
40540
40541 2008-04-29  Jim Meyering  <meyering@redhat.com>
40542
40543         When the is more than one match in a block, match all of them.
40544         * build-aux/useless-if-before-free: Iterate through each block
40545         until there are no more matches.
40546
40547         Fix broken useless-if-before-free script.
40548         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40549         the expression to match cast of argument to free-like function.
40550
40551 2008-04-29  Eric Blake  <ebb9@byu.net>
40552
40553         Use new header.
40554         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40555
40556 2008-04-29  Jim Meyering  <meyering@redhat.com>
40557
40558         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40559         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40560         by gnulib to exist and to declare e.g., inet_ntop.
40561         Don't include "inet_ntop.h", now removed.
40562
40563         * m4/arpa_inet_h.m4: Remove trailing blanks.
40564
40565 2008-04-29  Eric Blake  <ebb9@byu.net>
40566
40567         Silence valgrind on safe reads beyond potential array bounds.
40568         * lib/rawmemchr.valgrind: New file.
40569         * lib/strchrnul.valgrind: Likewise.
40570         * modules/rawmemchr (Files): Distribute new file.
40571         * modules/strchrnul (Files): Likewise.
40572         Suggested by Bruno Haible.
40573
40574 2008-04-29  Bruno Haible  <bruno@clisp.org>
40575
40576         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40577         (inet_ntop, inet_pton): Change portability warning's wording.
40578         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40579         Invoke gl_CHECK_NEXT_HEADERS.
40580         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40581         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40582         set ARPA_INET_H.
40583         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40584         * modules/arpa_inet (Description): No longer only for systems that
40585         lack it.
40586         (Depends-on): Add include_next.
40587         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40588         HAVE_ARPA_INET_H.
40589
40590 2008-04-29  Jim Meyering  <meyering@redhat.com>
40591
40592         * modules/mkdir (License): Re-license as LGPLv2+.
40593
40594 2008-04-29  Bruno Haible  <bruno@clisp.org>
40595
40596         * modules/rawmemchr (Maintainer): Set to Eric.
40597         * modules/strchrnul (Maintainer): Likewise.
40598
40599 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40600
40601         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40602         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40603
40604         * modules/arpa_inet (arpa/inet.h): Use them.
40605
40606 2008-04-28  Eric Blake  <ebb9@byu.net>
40607
40608         Test getndelim2.
40609         * modules/getndelim2-tests: New file.
40610         * tests/test-getndelim2.c: Likewise.
40611         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40612         stream.
40613         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40614
40615         * MODULES.html.sh: Document new module.
40616
40617 2008-04-20  Bruno Haible  <bruno@clisp.org>
40618
40619         * lib/c-stack.c (die): Use raise.
40620         * modules/c-stack (Depends-on): Add raise.
40621
40622 2008-04-28  Bruno Haible  <bruno@clisp.org>
40623
40624         Expect rpmatch to be declared.
40625         * lib/yesno.c (rpmatch): Remove declaration.
40626
40627         Declare rpmatch.
40628         * lib/stdlib.in.h (rpmatch): New declaration.
40629         * lib/rpmatch.c: Include <stdlib.h> first.
40630         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40631         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40633         HAVE_RPMATCH.
40634         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40635         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40636         (Include): Set to <stdlib.h>.
40637         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40638         HAVE_RPMATCH.
40639         * NEWS: Document the change.
40640
40641 2008-04-28  Bruno Haible  <bruno@clisp.org>
40642
40643         Change rpmatch to use nl_langinfo when appropriate.
40644         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40645         (N_): New macro.
40646         (localized_pattern): New function/macro.
40647         (try): Remove match, nomatch arguments. Copy the pattern into safe
40648         memory before caching it.
40649         (rpmatch): Use localized_pattern. Add translator comments.
40650         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40651         Suggested by Eric Blake.
40652         * modules/rpmatch (Depends-on): Add stdbool.
40653
40654 2008-04-28  Eric Blake  <ebb9@byu.net>
40655
40656         Add rawmemchr module, matching glibc.
40657         * modules/string (Makefile.am): New indicator.
40658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40659         * lib/string.in.h (rawmemchr): Declare when appropriate.
40660         * modules/rawmemchr: New file.
40661         * m4/rawmemchr.m4: Likewise.
40662         * lib/rawmemchr.c: Likewise.
40663         * modules/rawmemchr-tests: Likewise.
40664         * tests/test-rawmemchr.c: Likewise.
40665         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40666         module.
40667         * modules/strchrnul (Depends-on): Add rawmemchr.
40668         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40669
40670         Whitespace cleanup.
40671         * tests/test-strchrnul.c: Reindent.
40672         * lib/strchrnul.c: Likewise.
40673
40674         Optimize and test strchrnul.
40675         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40676         * modules/strchrnul-tests: New file.
40677         * tests/test-strchrnul.c: Likewise.
40678
40679         Remove intprops dependency.
40680         * modules/memchr (Depends-on): Remove intprops.
40681         * modules/memrchr (Depends-on): Likewise.
40682         * modules/memchr2 (Depends-on): Likewise.
40683         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40684         * lib/memrchr.c (__memrchr): Likewise.
40685         * lib/memrchr2.c (memchr2): Likewise.
40686         Reported by Simon Josefsson.
40687
40688 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40689
40690         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40691         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40692
40693 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40694
40695         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40696
40697         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40698
40699         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40700
40701         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40702         declarations.
40703         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40704
40705         * m4/inet_pton.m4: Don't check for header files.
40706
40707         * m4/inet_ntop.m4: Don't check for header files.
40708
40709 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40710
40711         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40712         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40713         trigger for cygwin).
40714         Reported by Bruno Haible  <bruno@clisp.org>.
40715
40716 2008-04-28  Bruno Haible  <bruno@clisp.org>
40717
40718         * doc/posix-functions/strdup.texi: Mention mingw problem.
40719
40720 2008-04-27  Bruno Haible  <bruno@clisp.org>
40721
40722         * modules/stat-time-tests (Depends-on): Add sleep.
40723         * tests/test-stat-time.c (force_unlink): New function.
40724         (cleanup): Use it.
40725         (test_mtime): Remove the ctime related tests.
40726         (test_ctime): New function, containing the ctime related tests.
40727         (main): Call test_ctime, except on native Windows platforms.
40728
40729 2008-04-27  Bruno Haible  <bruno@clisp.org>
40730
40731         * lib/rpmatch.c (rpmatch): Add some comments.
40732         Reported by James Youngman <jay@gnu.org>.
40733
40734 2008-04-27  Bruno Haible  <bruno@clisp.org>
40735
40736         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40737         quiet NaNs.
40738
40739 2008-04-27  Bruno Haible  <bruno@clisp.org>
40740
40741         Make test-yesno.sh work on mingw.
40742         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40743         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40744         (main): Set stdin to binary mode.
40745         * modules/yesno-tests (Depends-on): Add binary-io.
40746
40747 2008-04-27  Bruno Haible  <bruno@clisp.org>
40748
40749         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40750         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40751         argument that lie outside the IEEE 854 domain.
40752         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40753         (gl_ISFINITE): Use it.
40754         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40755
40756 2008-04-27  Bruno Haible  <bruno@clisp.org>
40757
40758         Allow local renaming in config.h.
40759         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40760
40761 2008-04-27  Bruno Haible  <bruno@clisp.org>
40762
40763         * lib/memchr.c (__memchr): Change type of 'i'.
40764         * lib/memchr2.c (memchr2): Likewise.
40765
40766 2008-04-26  Eric Blake  <ebb9@byu.net>
40767         and Bruno Haible  <bruno@clisp.org>
40768
40769         Optimize and test memrchr.
40770         * modules/memrchr (Depends-on): Add intprops.
40771         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40772         * modules/memrchr-tests: New file.
40773         * tests/test-memrchr.c: New file.
40774
40775 2008-04-26  Bruno Haible  <bruno@clisp.org>
40776
40777         Add tentative support for DragonFly BSD.
40778         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40779         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40780         fp.
40781         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40782         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40783         * lib/fpurge.c (fpurge): Likewise.
40784         * lib/freadable.c (freaadable): Likewise.
40785         * lib/freadahead.c (freadahead): Likewise.
40786         * lib/freading.c (freading): Likewise.
40787         * lib/freadptr.c (freadptr): Likewise.
40788         * lib/freadseek.c (freadptrinc): Likewise.
40789         * lib/fseeko.c (fseeko): Likewise.
40790         * lib/fseterr.c (fseterr): Likewise.
40791         * lib/fwritable.c (fwritable): Likewise.
40792         * lib/fwriting.c (fwriting): Likewise.
40793
40794 2008-04-26  Bruno Haible  <bruno@clisp.org>
40795
40796         * lib/stdio-impl.h: New file.
40797         * lib/fbufmode.c: Include stdio-impl.h.
40798         (fbufmode): Use fp_, remove redundant #defines.
40799         * lib/fflush.c: Include stdio-impl.h.
40800         (clear_ungetc_buffer): Remove redundant #defines.
40801         * lib/fpurge.c: Include stdio-impl.h.
40802         (fpurge): Remove redundant #defines.
40803         * lib/freadable.c: Include stdio-impl.h.
40804         (freadable): Remove redundant #defines.
40805         * lib/freadahead.c: Include stdio-impl.h.
40806         (freadahead): Remove redundant #defines.
40807         * lib/freading.c: Include stdio-impl.h.
40808         (freading): Remove redundant #defines.
40809         * lib/freadptr.c: Include stdio-impl.h.
40810         (freadptr): Remove redundant #defines.
40811         * lib/freadseek.c: Include stdio-impl.h.
40812         (freadptrinc): Remove redundant #defines.
40813         * lib/fseeko.c: Include stdio-impl.h.
40814         (rpl_fseeko): Remove redundant #defines.
40815         * lib/fseterr.c: Include stdio-impl.h.
40816         (fseterr): Remove redundant #defines.
40817         * lib/fwritable.c: Include stdio-impl.h.
40818         (fwritable: Remove redundant #defines.
40819         * lib/fwriting.c: Include stdio-impl.h.
40820         (fwriting): Remove redundant #defines.
40821         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40822         * modules/fflush (Files): Likewise.
40823         * modules/fpurge (Files): Likewise.
40824         * modules/freadable (Files): Likewise.
40825         * modules/freadahead (Files): Likewise.
40826         * modules/freading (Files): Likewise.
40827         * modules/freadptr (Files): Likewise.
40828         * modules/freadseek (Files): Likewise.
40829         * modules/fseeko (Files): Likewise.
40830         * modules/fseterr (Files): Likewise.
40831         * modules/fwritable (Files): Likewise.
40832         * modules/fwriting (Files): Likewise.
40833
40834 2008-04-26  Bruno Haible  <bruno@clisp.org>
40835
40836         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40837         restore_seek_optimization, update_fpos_cache): New functions, extracted
40838         from rpl_fflush.
40839         (rpl_fflush): Use them.
40840         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40841         (gl_REPLACE_FFLUSH): Use it.
40842
40843 2008-04-26  Bruno Haible  <bruno@clisp.org>
40844
40845         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40846         on Solaris.
40847         * tests/test-xstrtoimax.sh: Likewise.
40848         * tests/test-xstrtoumax.sh: Likewise.
40849         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40850
40851 2008-04-26  Bruno Haible  <bruno@clisp.org>
40852
40853         * modules/memchr-tests: New file.
40854         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40855
40856 2008-04-26  Eric Blake  <ebb9@byu.net>
40857             Bruno Haible  <bruno@clisp.org>
40858
40859         * lib/memchr.c: Include intprops.h.
40860         (__memchr): Optimize parallel detection of matching bytes. Rename local
40861         variables. Add explanatory comments.
40862
40863 2008-04-26  Bruno Haible  <bruno@clisp.org>
40864
40865         Fix module 'memchr', broken since 2000-10-28.
40866         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40867
40868 2008-04-26  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40871         comments.
40872
40873 2008-04-25  Eric Blake  <ebb9@byu.net>
40874
40875         Use native fstatat on cygwin 1.7.0.
40876         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40877         first.
40878
40879 2008-04-23  Eric Blake  <ebb9@byu.net>
40880
40881         Improve memchr2 performance.
40882         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40883         NUL bytes.
40884         * modules/memchr2 (Depends-on): Use intprops.h.
40885
40886 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40887
40888         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40889         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40890         <blp@cs.stanford.edu>.
40891
40892 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40893
40894         * lib/arpa_inet.in.h: New file.
40895
40896         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40897         (Makefile.am): Sed in substitute header file.
40898
40899         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40900         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40901
40902         * modules/inet_ntop (configure.ac): Use
40903         gl_ARPA_INET_MODULE_INDICATOR.
40904
40905         * modules/inet_pton (configure.ac): Use
40906         gl_ARPA_INET_MODULE_INDICATOR.
40907
40908 2008-04-22  Jim Meyering  <meyering@redhat.com>
40909
40910         * modules/verify (License): Re-license as LGPLv2+.
40911
40912 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40913
40914         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40915         parameter to void* as per POSIX standard (MinGW uses char*).
40916
40917 2008-04-21  Bruno Haible  <bruno@clisp.org>
40918
40919         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40920         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40921         Define to replacements if REPLACE_ISWCNTRL is 1.
40922         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40923         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40924         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40925         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40926         what it fixes.
40927         * doc/posix-functions/iswalpha.texi: Likewise.
40928         * doc/posix-functions/iswblank.texi: Likewise.
40929         * doc/posix-functions/iswcntrl.texi: Likewise.
40930         * doc/posix-functions/iswdigit.texi: Likewise.
40931         * doc/posix-functions/iswgraph.texi: Likewise.
40932         * doc/posix-functions/iswlower.texi: Likewise.
40933         * doc/posix-functions/iswprint.texi: Likewise.
40934         * doc/posix-functions/iswpunct.texi: Likewise.
40935         * doc/posix-functions/iswspace.texi: Likewise.
40936         * doc/posix-functions/iswupper.texi: Likewise.
40937         * doc/posix-functions/iswxdigit.texi: Likewise.
40938         Reported by Alain Guibert.
40939
40940 2008-04-21  Bruno Haible  <bruno@clisp.org>
40941
40942         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40943         Patch by Alain Guibert.
40944
40945 2008-04-21  Bruno Haible  <bruno@clisp.org>
40946
40947         Fix test failures on mingw.
40948         * tests/test-xstrtol.c (print_no_progname): New function.
40949         (main): Install it in error_print_progname hook.
40950         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40951         * tests/test-xstrtoimax.sh: Likewise.
40952         * tests/test-xstrtoumax.sh: Likewise.
40953
40954 2008-04-21  Bruno Haible  <bruno@clisp.org>
40955
40956         Fix test failure on mingw.
40957         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40958
40959 2008-04-21  Bruno Haible  <bruno@clisp.org>
40960
40961         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40962         Actually assign a value.
40963
40964 2008-04-20  Bruno Haible  <bruno@clisp.org>
40965
40966         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40967         take 2.
40968         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40969         'canonicalize-lgpl' module is also used.
40970         * lib/canonicalize-lgpl.c: Undo last change.
40971         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40972
40973 2008-04-20  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40976         config.h. Provide _mkdir based fallback for mingw.
40977         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40978         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40979         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40980         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40981         rather than defining mkdir in config.h.
40982         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40983         (gl_SYS_STAT_H_DEFAULTS): New macro.
40984         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40985         HAVE_IO_H any more.
40986         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40987         HAVE_DECL_MKDIR and HAVE_IO_H.
40988
40989 2008-04-20  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/isapipe.c: Port to native Windows platforms.
40992
40993 2008-04-20  Bruno Haible  <bruno@clisp.org>
40994
40995         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40996
40997 2008-04-21  Eric Blake  <ebb9@byu.net>
40998
40999         Work around preprocessors that don't handle UINTMAX_MAX.
41000         * lib/memchr2.c (memchr2): Avoid embedded #if.
41001         Reported by Alain Guibert, fix suggested by Bruno Haible.
41002
41003 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41004
41005         * doc/posix-functions/strftime.texi (strftime): Explain better
41006         Windows incompatibility.  Suggested by Micah Cowan
41007         <micah@cowan.name>.
41008
41009 2008-04-20  Bruno Haible  <bruno@clisp.org>
41010
41011         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41012         unistr/u8-mblen.
41013
41014 2008-04-20  Bruno Haible  <bruno@clisp.org>
41015
41016         Fix test failure on platforms with non-GNU iconv.
41017         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41018         (U_TO_U8): Use it, rather than u16_to_u8.
41019         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41020         units at the end of the input string.
41021         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41022
41023 2008-04-20  Bruno Haible  <bruno@clisp.org>
41024
41025         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41026         when the resulting length is 0.
41027         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41028
41029 2008-04-20  Bruno Haible  <bruno@clisp.org>
41030
41031         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41032         works.
41033         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41034
41035 2008-04-20  Bruno Haible  <bruno@clisp.org>
41036
41037         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41038         * modules/tsearch-tests (configure.ac): Test for initstate function.
41039
41040 2008-04-20  Bruno Haible  <bruno@clisp.org>
41041
41042         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41043         for nlink_t if missing.
41044         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41045
41046 2008-04-19  Bruno Haible  <bruno@clisp.org>
41047
41048         Work around snprintf bug on Linux libc5.
41049         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41051         gl_SNPRINTF_SIZE1.
41052         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41053         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41054         that test failed.
41055         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41056         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41057         * modules/snprintf (Files): Add m4/printf.m4.
41058         * modules/vsnprintf (Files): Likewise.
41059         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41060         * doc/posix-functions/vsnprintf.texi: Likewise.
41061
41062 2008-04-19  Bruno Haible  <bruno@clisp.org>
41063
41064         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41065         from 0.0058 to less than 10^-7.
41066
41067 2008-04-19  Bruno Haible  <bruno@clisp.org>
41068
41069         Fix rounding when a precision is given.
41070         * lib/vasnprintf.c (is_borderline): New function.
41071         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41072         9...9x.
41073         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41074         %e, %g.
41075         * tests/test-vasprintf-posix.c (test_function): Likewise.
41076         * tests/test-snprintf-posix.h (test_function): Likewise.
41077         * tests/test-sprintf-posix.h (test_function): Likewise.
41078         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41079         * tests/test-printf-posix.h (test_function): Likewise.
41080         * tests/test-printf-posix.output: Update.
41081         Reported by John Darrington <john@darrington.wattle.id.au> via
41082         Ben Pfaff <blp@cs.stanford.edu>.
41083
41084 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41085
41086         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41087         Suggested by Bruno Haible <bruno@clisp.org>.
41088
41089 2008-04-17  Bruno Haible  <bruno@clisp.org>
41090
41091         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41092         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41093         implementation.
41094         Patch by Bruce Merry <bmerry@gmail.com>.
41095
41096 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41097
41098         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41099         doesn't work under Windows.
41100
41101 2008-04-16  Bruno Haible  <bruno@clisp.org>
41102
41103         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41104         New macros.
41105         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41106         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41107         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41108         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41109         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41110         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41111         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41112         macros.
41113         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41114         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41115         Northern Sotho, Uighur.
41116
41117 2008-04-16  Bruno Haible  <bruno@clisp.org>
41118
41119         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41120         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41121         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41122         Reported by Daniel Bergström <daniel@octocode.com>.
41123
41124 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41125             Bruno Haible  <bruno@clisp.org>
41126
41127         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41128         function.
41129         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41130         New functions, mostly extracted from gl_locale_name_default.
41131         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41132
41133 2008-04-16  Eric Blake  <ebb9@byu.net>
41134
41135         Adjust strtod detection to catch glibc 2.7 bug.
41136         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41137         Reported by John Gatewood Ham.
41138
41139 2008-04-16  Bruno Haible  <bruno@clisp.org>
41140
41141         Add tentative support for Linux libc5.
41142         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41143         * lib/fpurge.c (fpurge): Likewise.
41144         * lib/freadable.c (freadable): Likewise.
41145         * lib/freadahead.c (freadahead): Likewise.
41146         * lib/freading.c (freading): Likewise.
41147         * lib/freadptr.c (freadptr): Likewise.
41148         * lib/freadseek.c (freadptrinc): Likewise.
41149         * lib/fseeko.c (rpl_fseeko): Likewise.
41150         * lib/fseterr.c (fseterr): Likewise.
41151         * lib/fwritable.c (fwritable): Likewise.
41152         * lib/fwriting.c (fwriting): Likewise.
41153         Reported by Alain Guibert <alguibert+bts@free.fr>.
41154
41155 2008-04-15  Bruno Haible  <bruno@clisp.org>
41156
41157         * modules/mathl (configure.ac): Define module indicator.
41158
41159 2008-04-15  Bruno Haible  <bruno@clisp.org>
41160
41161         * lib/logl.c (logl): Remove unused variables.
41162
41163 2008-04-15  Bruno Haible  <bruno@clisp.org>
41164
41165         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41166         fails.
41167
41168 2008-04-15  Bruno Haible  <bruno@clisp.org>
41169
41170         * lib/trim.c (trim2): Fix argument of isspace() macro.
41171
41172 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41173
41174         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41175         to 0.
41176         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41177
41178 2008-04-14  Bruno Haible  <bruno@clisp.org>
41179
41180         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41181         AC_LANG_PROGRAM argument.
41182         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41183         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41185         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41186         * m4/math_h.m4 (gl_MATH_H): Likewise.
41187         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41188         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41189         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41190         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41191         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41192         * m4/regex.m4 (gl_REGEX): Likewise.
41193         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41194         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41196         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41197         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41198         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41201
41202 2008-04-14  Jim Meyering  <meyering@redhat.com>
41203
41204         test-strtod: fix typos: s/abs/fabs/
41205         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41206
41207 2008-04-13  Bruno Haible  <bruno@clisp.org>
41208
41209         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41210         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41211         module is also used and while not building the reloc-wrapper.
41212
41213 2008-04-13  Bruno Haible  <bruno@clisp.org>
41214
41215         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41216
41217 2008-04-13  Bruno Haible  <bruno@clisp.org>
41218
41219         Fix AIX compilation failure introduced on 2008-04-02.
41220         * tests/test-frexp.c (exp): Undefine before redefining.
41221         * tests/test-frexpl.c (exp): Likewise.
41222
41223 2008-04-13  Bruno Haible  <bruno@clisp.org>
41224
41225         Work around a HP-UX stdio bug.
41226         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41227         * tests/test-ftello.c (main): Likewise.
41228         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41229         * doc/posix-functions/ftello.texi: Likewise.
41230
41231 2008-04-13  Bruno Haible  <bruno@clisp.org>
41232
41233         Make test-signbit pass on HP-UX/hppa.
41234         * tests/test-signbit.c (minus_zerol): New variable.
41235         (test_signbitl): Use it.
41236
41237 2008-04-13  Bruno Haible  <bruno@clisp.org>
41238
41239         Make truncl work on OSF/1 4.0.
41240         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41241         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41242         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41244         HAVE_DECL_TRUNCL.
41245         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41246         HAVE_DECL_TRUNCL.
41247         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41248
41249 2008-04-13  Bruno Haible  <bruno@clisp.org>
41250
41251         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41252
41253 2008-04-13  Bruno Haible  <bruno@clisp.org>
41254
41255         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41256         expression, so as to avoid HP-UX 11 cc compiler bug.
41257
41258 2008-04-13  Bruno Haible  <bruno@clisp.org>
41259
41260         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41261
41262 2008-04-13  Bruno Haible  <bruno@clisp.org>
41263
41264         * lib/git-merge-changelog.c: Remove empty declaration outside of
41265         functions.
41266
41267 2008-04-13  Bruno Haible  <bruno@clisp.org>
41268
41269         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41270
41271 2008-04-13  Bruno Haible  <bruno@clisp.org>
41272
41273         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41274         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41276         also if it exists but lacks definitions of the SHUT_* macros.
41277         * modules/sys_socket (Description): Update.
41278         Reported by Elbert Pol <e.pol@chello.nl>.
41279
41280 2008-04-13  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/localcharset.c (OS2): Don't redefine if already defined.
41283         Reported by Elbert Pol <e.pol@chello.nl>.
41284
41285 2008-04-13  Bruno Haible  <bruno@clisp.org>
41286
41287         * lib/binary-io.h [__EMX__]: Include <io.h>.
41288         Reported by Elbert Pol <e.pol@chello.nl>.
41289
41290 2008-04-12  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/fpucw.h: Enable the definitions also for x86_64.
41293         Needed for NetBSD/x86_64.
41294         Reported by Thomas Klausner <tk@giga.or.at>.
41295
41296 2008-04-12  Bruno Haible  <bruno@clisp.org>
41297
41298         * tests/test-strtod.c: Include isnand.h.
41299         (main): Use isnand instead of isnan.
41300         Reported by Jim Meyering.
41301
41302 2008-04-12  Bruno Haible  <bruno@clisp.org>
41303
41304         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41305         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41306
41307 2008-04-12  Jim Meyering  <meyering@redhat.com>
41308
41309         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41310
41311 2008-04-12  Bruno Haible  <bruno@clisp.org>
41312
41313         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41314         Reported by Elbert Pol <e.pol@chello.nl>.
41315
41316 2008-04-12  Eric Blake  <ebb9@byu.net>
41317
41318         Work around Solaris 10 math.h bug.
41319         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41320         (gl_MATH_H_DEFAULTS): Set up default.
41321         * modules/math (Makefile.am): Replace new indicators.
41322         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41323         * tests/test-math.c (main): Test this.
41324         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41325         * doc/posix-headers/math.texi (math.h): Mention bug.
41326         Reported by Nelson H. F. Beebe and Jim Meyering.
41327
41328 2008-04-11  Bruno Haible  <bruno@clisp.org>
41329
41330         Adapt to future versions of Apple GCC.
41331         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41332         Reported by Peter O'Gorman <peter@pogma.com>.
41333
41334 2008-04-11  Bruno Haible  <bruno@clisp.org>
41335
41336         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41337
41338 2008-04-11  Bruno Haible  <bruno@clisp.org>
41339
41340         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41341
41342         * modules/getaddrinfo-tests (Makefile.am): Define
41343         test_getaddrinfo_LDADD.
41344
41345 2008-04-11  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41348         (init): Fix syntax error.
41349         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41350         is declared.
41351
41352 2008-04-11  Bruno Haible  <bruno@clisp.org>
41353
41354         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41355         * modules/glob (Depends-on): Add stdbool.
41356
41357 2008-04-11  Bruno Haible  <bruno@clisp.org>
41358
41359         * lib/trim.c: Include <string.h>.
41360
41361 2008-04-11  Eric Blake  <ebb9@byu.net>
41362
41363         Avoid compile failure on OS/2.
41364         * lib/regex_internal.h (internal_function): Disable optimization
41365         on OS/2 (__EMX__), where it caused compiler error.
41366         Reported by Elbert Pol.
41367
41368 2008-04-11  Bruno Haible  <bruno@clisp.org>
41369
41370         Flush the standard error stream before aborting. Needed on mingw.
41371         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41372         * tests/test-array_list.c (ASSERT): Likewise.
41373         * tests/test-array_oset.c (ASSERT): Likewise.
41374         * tests/test-avltree_list.c (ASSERT): Likewise.
41375         * tests/test-avltree_oset.c (ASSERT): Likewise.
41376         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41377         * tests/test-binary-io.c (ASSERT): Likewise.
41378         * tests/test-byteswap.c (ASSERT): Likewise.
41379         * tests/test-c-ctype.c (ASSERT): Likewise.
41380         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41381         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41382         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41383         * tests/test-c-strstr.c (ASSERT): Likewise.
41384         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41385         * tests/test-canonicalize.c (ASSERT): Likewise.
41386         * tests/test-carray_list.c (ASSERT): Likewise.
41387         * tests/test-ceilf1.c (ASSERT): Likewise.
41388         * tests/test-ceilf2.c (ASSERT): Likewise.
41389         * tests/test-ceill.c (ASSERT): Likewise.
41390         * tests/test-count-one-bits.c (ASSERT): Likewise.
41391         * tests/test-fbufmode.c (ASSERT): Likewise.
41392         * tests/test-fflush2.c (ASSERT): Likewise.
41393         * tests/test-floorf1.c (ASSERT): Likewise.
41394         * tests/test-floorf2.c (ASSERT): Likewise.
41395         * tests/test-floorl.c (ASSERT): Likewise.
41396         * tests/test-fopen.c (ASSERT): Likewise.
41397         * tests/test-fpending.c (ASSERT): Likewise.
41398         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41399         * tests/test-fpurge.c (ASSERT): Likewise.
41400         * tests/test-freadable.c (ASSERT): Likewise.
41401         * tests/test-freadahead.c (ASSERT): Likewise.
41402         * tests/test-freading.c (ASSERT): Likewise.
41403         * tests/test-freadptr.c (ASSERT): Likewise.
41404         * tests/test-freadptr2.c (ASSERT): Likewise.
41405         * tests/test-freadseek.c (ASSERT): Likewise.
41406         * tests/test-freopen.c (ASSERT): Likewise.
41407         * tests/test-frexp.c (ASSERT): Likewise.
41408         * tests/test-frexpl.c (ASSERT): Likewise.
41409         * tests/test-fseek.c (ASSERT): Likewise.
41410         * tests/test-fseeko.c (ASSERT): Likewise.
41411         * tests/test-fstrcmp.c (ASSERT): Likewise.
41412         * tests/test-ftell.c (ASSERT): Likewise.
41413         * tests/test-ftello.c (ASSERT): Likewise.
41414         * tests/test-func.c (ASSERT): Likewise.
41415         * tests/test-fwritable.c (ASSERT): Likewise.
41416         * tests/test-fwriting.c (ASSERT): Likewise.
41417         * tests/test-getdelim.c (ASSERT): Likewise.
41418         * tests/test-getline.c (ASSERT): Likewise.
41419         * tests/test-i-ring.c (ASSERT): Likewise.
41420         * tests/test-iconv-utf.c (ASSERT): Likewise.
41421         * tests/test-iconv.c (ASSERT): Likewise.
41422         * tests/test-isfinite.c (ASSERT): Likewise.
41423         * tests/test-isnand.c (ASSERT): Likewise.
41424         * tests/test-isnanf.c (ASSERT): Likewise.
41425         * tests/test-isnanl.h (ASSERT): Likewise.
41426         * tests/test-ldexpl.c (ASSERT): Likewise.
41427         * tests/test-linked_list.c (ASSERT): Likewise.
41428         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41429         * tests/test-localename.c (ASSERT): Likewise.
41430         * tests/test-lseek.c (ASSERT): Likewise.
41431         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41432         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41433         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41434         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41435         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41436         * tests/test-mbschr.c (ASSERT): Likewise.
41437         * tests/test-mbscspn.c (ASSERT): Likewise.
41438         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41439         * tests/test-mbspbrk.c (ASSERT): Likewise.
41440         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41441         * tests/test-mbsrchr.c (ASSERT): Likewise.
41442         * tests/test-mbsspn.c (ASSERT): Likewise.
41443         * tests/test-mbsstr1.c (ASSERT): Likewise.
41444         * tests/test-mbsstr2.c (ASSERT): Likewise.
41445         * tests/test-mbsstr3.c (ASSERT): Likewise.
41446         * tests/test-memchr2.c (ASSERT): Likewise.
41447         * tests/test-memmem.c (ASSERT): Likewise.
41448         * tests/test-open.c (ASSERT): Likewise.
41449         * tests/test-printf-frexp.c (ASSERT): Likewise.
41450         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41451         * tests/test-printf-posix.c (ASSERT): Likewise.
41452         * tests/test-quotearg.c (ASSERT): Likewise.
41453         * tests/test-rbtree_list.c (ASSERT): Likewise.
41454         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41455         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41456         * tests/test-round1.c (ASSERT): Likewise.
41457         * tests/test-roundf1.c (ASSERT): Likewise.
41458         * tests/test-roundl.c (ASSERT): Likewise.
41459         * tests/test-signbit.c (ASSERT): Likewise.
41460         * tests/test-sleep.c (ASSERT): Likewise.
41461         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41462         * tests/test-snprintf.c (ASSERT): Likewise.
41463         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41464         * tests/test-stat-time.c (ASSERT): Likewise.
41465         * tests/test-strcasestr.c (ASSERT): Likewise.
41466         * tests/test-strerror.c (ASSERT): Likewise.
41467         * tests/test-striconv.c (ASSERT): Likewise.
41468         * tests/test-striconveh.c (ASSERT): Likewise.
41469         * tests/test-striconveha.c (ASSERT): Likewise.
41470         * tests/test-strsignal.c (ASSERT): Likewise.
41471         * tests/test-strstr.c (ASSERT): Likewise.
41472         * tests/test-strtod.c (ASSERT): Likewise.
41473         * tests/test-trunc1.c (ASSERT): Likewise.
41474         * tests/test-trunc2.c (ASSERT): Likewise.
41475         * tests/test-truncf1.c (ASSERT): Likewise.
41476         * tests/test-truncf2.c (ASSERT): Likewise.
41477         * tests/test-truncl.c (ASSERT): Likewise.
41478         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41479         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41480         * tests/test-vasnprintf.c (ASSERT): Likewise.
41481         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41482         * tests/test-vasprintf.c (ASSERT): Likewise.
41483         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41484         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41485         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41486         * tests/test-vsnprintf.c (ASSERT): Likewise.
41487         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41488         * tests/test-wcwidth.c (ASSERT): Likewise.
41489         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41490         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41491         * tests/test-xvasprintf.c (ASSERT): Likewise.
41492         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41493         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41494         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41495         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41496         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41497         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41498         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41499         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41500         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41501         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41502         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41503         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41504         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41505         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41506         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41507         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41508         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41509         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41510         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41511         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41512         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41513         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41514         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41515         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41516         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41517         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41518         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41519         * tests/unictype/test-combining.c (ASSERT): Likewise.
41520         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41521         * tests/unictype/test-digit.c (ASSERT): Likewise.
41522         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41523         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41524         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41525         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41526         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41527         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41528         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41529         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41530         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41531         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41532         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41533         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41534         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41535         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41536         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41537         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41538         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41539         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41540         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41541         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41542         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41543         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41544         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41545         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41546         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41547         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41548         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41549         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41550         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41551         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41552         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41553         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41554         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41555         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41556         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41557         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41558         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41559         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41560         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41561         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41562         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41563         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41564         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41565         Reported by Eric Blake.
41566
41567 2008-04-11  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/wchar.in.h: Tweak comment.
41570
41571 2008-04-11  Bruno Haible  <bruno@clisp.org>
41572
41573         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41574         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41575         gl_COMMON.
41576         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41577
41578 2008-04-11  Bruno Haible  <bruno@clisp.org>
41579
41580         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41581
41582 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41583
41584         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41585         of attempting to use non-existing /dev/*random.  Based on patch
41586         from Adam Strzelecki <ono@java.pl> in
41587         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41588
41589 2008-04-08  Bruno Haible  <bruno@clisp.org>
41590
41591         Add tentative support for emx+gcc.
41592         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41593         * lib/fpurge.c (fpurge): Likewise.
41594         * lib/freadable.c (freadable): Likewise.
41595         * lib/freadahead.c (freadahead): Likewise.
41596         * lib/freading.c (freading): Likewise.
41597         * lib/freadptr.c (freadptr): Likewise.
41598         * lib/freadseek.c (freadptrinc): Likewise.
41599         * lib/fseeko.c (rpl_fseeko): Likewise.
41600         * lib/fseterr.c (fseterr): Likewise.
41601         * lib/fwritable.c (fwritable): Likewise.
41602         * lib/fwriting.c (fwriting): Likewise.
41603         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41604
41605 2008-04-09  Eric Blake  <ebb9@byu.net>
41606
41607         Avoid some autoconf warnings.
41608         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41609         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41610         * m4/afs.m4 (gl_AFS): Likewise.
41611         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41612         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41613         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41614         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41615         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41616         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41617         (AC_CHECK_DECLS_ONCE): Likewise.
41618         Rename file...
41619         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41620         gnulib-tool requires autoconf 2.59 or better.
41621         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41622
41623 2008-04-08  Eric Blake  <ebb9@byu.net>
41624
41625         Use 'git describe --match' if present (added in git 1.5.5).
41626         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41627         if possible.
41628
41629 2008-04-08  Bruno Haible  <bruno@clisp.org>
41630
41631         Add tentative support for OpenServer.
41632         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41633         _ptr, _cnt.
41634         * lib/fpurge.c (fpurge): Likewise.
41635         * lib/freadable.c (freadable): Likewise.
41636         * lib/freadahead.c (freadahead): Likewise.
41637         * lib/freading.c (freading): Likewise.
41638         * lib/freadptr.c (freadptr): Likewise.
41639         * lib/freadseek.c (freadptrinc): Likewise.
41640         * lib/fseeko.c (rpl_fseeko): Likewise.
41641         * lib/fseterr.c (fseterr): Likewise.
41642         * lib/fwritable.c (fwritable): Likewise.
41643         * lib/fwriting.c (fwriting): Likewise.
41644         Reported by Roger Cornelius <rac@tenzing.org> and
41645         Brian K. White <brian@aljex.com>.
41646
41647 2008-04-06  Jim Meyering  <meyering@redhat.com>
41648
41649         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41650
41651 2008-04-06  Bruno Haible  <bruno@clisp.org>
41652
41653         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41654         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41655         * tests/test-printf-posix.sh: Likewise.
41656         * tests/test-vfprintf-posix.sh: Likewise.
41657         * tests/test-vprintf-posix.sh: Likewise.
41658         * tests/test-xprintf-posix.sh: Likewise.
41659
41660 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41661
41662         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41663         hide error from 'ls', needed on OS/2.
41664         Report by Elbert Pol <elbert.pol@gmail.com>.
41665
41666 2008-04-04  Eric Blake  <ebb9@byu.net>
41667
41668         Make test-fseeko.c failures meaningful.
41669         * tests/test-fseeko.c: Print line number on failure.
41670         * tests/test-fseek.c: Likewise.
41671         Reported by Nelson H. F. Beebe.
41672
41673         Improve strtod bug detection check.
41674         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41675         required for Solaris 10.
41676         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41677
41678 2008-04-04  Bruno Haible  <bruno@clisp.org>
41679
41680         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41681         by m4/setenv.m4.
41682
41683 2008-04-03  Eric Blake  <ebb9@byu.net>
41684
41685         Ensure sane .version contents.
41686         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41687         version string.
41688         * build-aux/git-version-gen: Improve documentation.
41689
41690         Make GNU make output nicer.
41691         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41692         MAKECMDGOALS to enforce message for all command line targets.  Set
41693         srcdir for use in maint.mk.
41694
41695         Another maintainer tweak.
41696         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41697         a target that regenerates version.
41698
41699 2008-04-03  Jim Meyering  <meyering@redhat.com>
41700
41701         vc-list-files: don't cause coreutils "make po-check" failure
41702         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41703
41704 2008-04-03  Eric Blake  <ebb9@byu.net>
41705
41706         Allow VPATH usage of vc-list-files.
41707         * build-aux/vc-list-files (scriptversion): Add timestamp.
41708         (options): Add --help, --version, -C.
41709         (CVS): Support installed cvsu.
41710
41711 2008-04-02  Bruno Haible  <bruno@clisp.org>
41712
41713         Avoid some "statement with no effect" warnings from gcc.
41714         * tests/test-wctype.c (main): Explicitly ignore unused values.
41715         Reported by Jim Meyering.
41716
41717 2008-04-02  Jim Meyering  <meyering@redhat.com>
41718
41719         Avoid some warnings from "gcc -Wshadow".
41720         * tests/test-frexp.c (exp): Define to a different identifier.
41721         * tests/test-frexpl.c (exp): Likewise.
41722
41723 2008-04-03  Jim Meyering  <meyering@redhat.com>
41724
41725         bootstrap: remove dangling *.[ch] symlinks from lib
41726         * build-aux/bootstrap [dangling symlink removal]: Move find's
41727         -depth option to precede all others, to avoid a warning.
41728         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41729
41730 2008-04-02  Bruno Haible  <bruno@clisp.org>
41731
41732         Avoid some warnings from "gcc -Wshadow".
41733         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41734         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41735         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41736         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41737         Reported by Jim Meyering.
41738
41739 2008-04-01  Bruno Haible  <bruno@clisp.org>
41740
41741         Fix test to work on IRIX 6.5 with cc.
41742         * tests/test-math.c (numeric_equal): New function.
41743         (main): Use it.
41744
41745 2008-04-01  Bruno Haible  <bruno@clisp.org>
41746
41747         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41748
41749 2008-04-01  Bruno Haible  <bruno@clisp.org>
41750
41751         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41752         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41753         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41754         (Depends-on): Remove math.
41755
41756         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41757         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41758         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41759         (Depends-on): Remove math.
41760
41761         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41762         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41763         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41764         (Depends-on): Remove math.
41765         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41766         (Depends-on): Remove math.
41767
41768         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41769         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41770         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41771         (Depends-on): Remove math.
41772         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41773         (Depends-on): Remove math.
41774
41775         * tests/test-round1.c: Include nan.h.
41776         (main): Use NaNd instead of NAN.
41777         * modules/round-tests (Files): Add tests/nan.h.
41778
41779         * tests/test-trunc1.c: Include nan.h.
41780         (main): Use NaNd instead of NAN.
41781         * modules/trunc-tests (Files): Add tests/nan.h.
41782
41783         * tests/test-roundf1.c: Include nan.h.
41784         (main): Use NaNf instead of NAN.
41785         * modules/roundf-tests (Files): Add tests/nan.h.
41786
41787         * tests/test-truncf1.c: Include nan.h.
41788         (main): Use NaNf instead of NAN.
41789         * modules/truncf-tests (Files): Add tests/nan.h.
41790
41791         * tests/test-ceilf1.c: Include nan.h.
41792         (main): Use NaNf instead of NAN.
41793         * modules/ceilf-tests (Files): Add tests/nan.h.
41794
41795         * tests/test-floorf1.c: Include nan.h.
41796         (main): Use NaNf instead of NAN.
41797         * modules/floorf-tests (Files): Add tests/nan.h.
41798
41799         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41800         (main): Use NaNf instead of NAN.
41801         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41802
41803         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41804         (main): Use NaNd instead of NAN.
41805         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41806
41807         * tests/test-frexp.c: Include nan.h.
41808         (main): Use NaNd instead of NAN.
41809         * modules/frexp-tests (Files): Add tests/nan.h.
41810
41811         * lib/isnan.c: Don't include <math.h>.
41812         (FUNC): Don't use NAN macro.
41813         * modules/isnand-nolibm (Depends-on): Remove math.
41814         * modules/isnanf-nolibm (Depends-on): Remove math.
41815         * modules/isnanl (Depends-on): Remove math.
41816         * modules/isnanl-nolibm (Depends-on): Remove math.
41817
41818         * tests/nan.h: New file.
41819
41820 2008-04-01  Eric Blake  <ebb9@byu.net>
41821
41822         Fix typos.
41823         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41824         values to be the right type.
41825
41826         For now, cater to gnulib strtod inaccuracies.
41827         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41828         fractional results.  While not as nice from a QoI perspective, it
41829         is a quicker patch than correctly implementing decimal to binary
41830         rounding.
41831
41832 2008-03-31  Eric Blake  <ebb9@byu.net>
41833
41834         Guarantee a definition of NAN.
41835         * lib/math.in.h (NAN): Define if missing.
41836         * tests/test-math.c (main): Test it.
41837         * doc/posix-headers/math.texi (math.h): Document this.
41838         * lib/isnan.c (rpl_isnand): Use it.
41839         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41840         * tests/test-floorf1.c (NaN): Likewise.
41841         * tests/test-frexp.c (NaN): Likewise.
41842         * tests/test-isnand.c (NaN): Likewise.
41843         * tests/test-isnanf.c (NaN): Likewise.
41844         * tests/test-round1.c (NaN): Likewise.
41845         * tests/test-roundf1.c (NaN): Likewise.
41846         * tests/test-snprintf-posix.h (NaN): Likewise.
41847         * tests/test-sprintf-posix.h (NaN): Likewise.
41848         * tests/test-trunc1.c (NaN): Likewise.
41849         * tests/test-truncf1.c (NaN): Likewise.
41850         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41851         * tests/test-vasprintf-posix.c (NaN): Likewise.
41852         * modules/isnand-nolibm (Depends-on): Add math.
41853         * modules/isnanf-nolibm (Depends-on): Likewise.
41854         * modules/isnanl (Depends-on): Likewise.
41855         * modules/isnanl-nolibm (Depends-on): Likewise.
41856         * modules/snprintf-posix-tests (Depends-on): Likewise.
41857         * modules/sprintf-posix-tests (Depends-on): Likewise.
41858         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41859         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41860         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41861         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41862
41863 2008-03-31  Bruno Haible  <bruno@clisp.org>
41864
41865         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41866         * doc/posix-functions/strtod.texi: Likewise.
41867
41868 2008-03-31  Bruno Haible  <bruno@clisp.org>
41869
41870         * tests/test-strtod.c (main): Don't use C99 syntax.
41871
41872 2008-03-31  Bruno Haible  <bruno@clisp.org>
41873
41874         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41875         Reported by Eric Blake.
41876
41877 2008-03-31  Jim Meyering  <meyering@redhat.com>
41878
41879         Don't compare actual signbit return values.
41880         * tests/test-strtod.c (main): Rather, compare only their
41881         zero/non-zero nature.
41882
41883 2008-03-31  Eric Blake  <ebb9@byu.net>
41884
41885         More strtod documentation.
41886         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41887         failures as distinct bugs.
41888
41889 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41890
41891         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41892         Problem reported by Erik Benada in
41893         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41894
41895 2008-03-30  Bruno Haible  <bruno@clisp.org>
41896
41897         * tests/test-strtod.c: Add comments about which assertion fails on which
41898         platform.
41899         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41900
41901 2008-03-30  Eric Blake  <ebb9@byu.net>
41902
41903         Test signbit behavior on zeros.
41904         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41905         (test_signbitd, test_signbitl): Likewise.
41906
41907         More strtod touchups.
41908         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41909         sign of negative underflow, for now.  Use .5, not .1.
41910         * doc/posix-functions/strtod.texi (strtod): Mention these
41911         limitations.
41912         Reported by Jim Meyering.
41913
41914 2008-03-30  Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41917         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41918
41919 2008-03-30  Bruno Haible  <bruno@clisp.org>
41920
41921         Avoid failure when attempting to return empty iconv results on some
41922         platforms.
41923         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41924         allocation, don't report ENOMEM when the resulting string is empty.
41925
41926 2008-03-30  Bruno Haible  <bruno@clisp.org>
41927
41928         Fix buffer overrun.
41929         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41930         Don't consider the width for tmp_length. Check count against tmp_length
41931         before doing the padding. Ensure enough allocation during padding.
41932
41933 2008-03-30  Eric Blake  <ebb9@byu.net>
41934
41935         strtod touchups.
41936         * lib/strtod.c (strtod): Avoid compiler warnings.
41937         Reported by Jim Meyering.
41938
41939 2008-03-30  Bruno Haible  <bruno@clisp.org>
41940
41941         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41942         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41943         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41944         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41945         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41946         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41947         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41948         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41949
41950         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41951         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41952         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41953         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41954         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41955         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41956         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41957         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41958
41959         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41960         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41961         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41962         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41963         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41964         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41965         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41966         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41967
41968         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41969         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41970
41971         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41972         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41973
41974         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41975         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41976
41977         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41979         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41980
41981         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41982         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41983         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41984
41985         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41987         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41988
41989         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41990         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41991         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41992
41993         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41994         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41995         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41996         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41997         (Depends-on): Add EOVERFLOW.
41998         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41999         (Depends-on): Add EOVERFLOW.
42000         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42001         (Depends-on): Add EOVERFLOW.
42002         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42003         (Depends-on): Add EOVERFLOW.
42004         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42005         (Depends-on): Add EOVERFLOW.
42006         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42007         (Depends-on): Add EOVERFLOW.
42008         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42009         (Depends-on): Add EOVERFLOW.
42010         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42011         (Depends-on): Add EOVERFLOW.
42012
42013         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42015         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42016
42017         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42018         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42019         * modules/snprintf (Depends-on): Add EOVERFLOW.
42020
42021         * lib/poll.c (EOVERFLOW): Remove fallback.
42022         * modules/poll (Depends-on): Add EOVERFLOW.
42023
42024         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42025         * modules/getugroups (Depends-on): Add EOVERFLOW.
42026
42027         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42028         * modules/getdelim (Depends-on): Add EOVERFLOW.
42029
42030         * lib/ftell.c (EOVERFLOW): Remove fallback.
42031         * modules/ftell (Depends-on): Add EOVERFLOW.
42032
42033         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42034         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42035         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42036
42037         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42038
42039         * modules/EOVERFLOW-tests: New file.
42040         * tests/test-EOVERFLOW.c: New file.
42041
42042         * modules/EOVERFLOW: New file.
42043         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42044
42045 2008-03-30  Bruno Haible  <bruno@clisp.org>
42046
42047         Fix bug introduced on 2007-06-10.
42048         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42049         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42050
42051 2008-03-30  Bruno Haible  <bruno@clisp.org>
42052
42053         Improve freadseek's efficiency after ungetc.
42054         * lib/freadseek.c: Include freadahead.h.
42055         (freadptrinc): New function, extracted from freadseek.
42056         (freadseek): Use it in a loop. Use freadahead to determine the number
42057         of loop iterations.
42058         * modules/freadseek (Depends-on): Add freadahead.
42059         (configure.ac): Require AC_C_INLINE.
42060
42061 2008-03-30  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/freadseek.c (freadseek): Don't ignore the return value of
42064         freadptr.
42065
42066 2008-03-29  Eric Blake  <ebb9@byu.net>
42067
42068         Add hex float support.
42069         * modules/strtod (Depends-on): Add c-ctype.
42070         (Link): Mention POW_LIB.
42071         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42072         whitespace between 'e' and exponent.
42073         * tests/test-strtod.c (main): Enable hex float tests.
42074         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42075         now provides.
42076
42077         Document various strtod bugs, with some fixes.
42078         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42079         "-0x", "inf", "nan", and hex constants.
42080         * doc/posix-functions/atof.texi (atof): Likewise.
42081         * modules/stdlib (Makefile.am): Support strtod.
42082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42083         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42084         detect additional strtod bugs.
42085         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42086         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42087         bool where appropriate.  Parse 'inf' and 'nan'.
42088         * tests/test-strtod.c: New file.
42089         * modules/strtod (Depends-on): Add stdbool, stdlib.
42090         (configure.ac): Turn on module indicator.
42091         * modules/strtod-tests: New module.
42092
42093 2008-03-29  Eric Blake  <ebb9@byu.net>
42094
42095         Fix ftell on mingw.
42096         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42097         * modules/ftell-tests (Depends-on): Add binary-io.
42098         * modules/ftello-tests (Depends-on): Likewise.
42099         * tests/test-ftell.c (main): Enhance test to cover behavior after
42100         ungetc.  Enforce binary mode.
42101         * tests/test-ftello.c (main): Likewise.
42102
42103         Pass test-freadseek on cygwin.
42104         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42105         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42106         ungetc buffer.
42107
42108         * tests/test-fflush2.c (main): Fix typo.
42109
42110 2008-03-29  Bruno Haible  <bruno@clisp.org>
42111
42112         * tests/test-fflush2.c (main): Temporarily disable the contents of
42113         this test.
42114         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42115         Reported by Eric Blake.
42116
42117 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42118
42119         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42120         (GC_SHA224_DIGEST_SIZE): Add.
42121
42122         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42123         (gc_hash_digest_length): Likewise.
42124         (gc_hash_buffer): Likewise.
42125
42126 2008-03-25  Bruno Haible  <bruno@clisp.org>
42127
42128         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42129         detail which gettext release to use.
42130         Reported by Simon Josefsson.
42131
42132 2008-03-26  Jim Meyering  <meyering@redhat.com>
42133
42134         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42135         * modules/gnumakefile (clean-GNUmakefile): Also, use
42136         test ... && ... || : syntax rather than if-then ... fi.
42137
42138         gnumakefile: Don't double-quote-expand $(VPATH) value.
42139         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42140
42141 2008-03-24  Eric Blake  <ebb9@byu.net>
42142
42143         Alter GNUmakefile to install into top directory.
42144         * modules/maintainer-makefile: Split, and add dependency...
42145         * modules/gnumakefile: to this new module.
42146         * build-aux/GNUmakefile: Move...
42147         * top/GNUmakefile: ...here.
42148         * build-aux/maint.mk: Move...
42149         * top/maint.mk: ...here.
42150         * MODULES.html.sh (Support for maintaining...): Document new
42151         module.
42152
42153 2008-03-23  Bruno Haible  <bruno@clisp.org>
42154
42155         * gnulib-tool: New options --vc-files, --no-vc-files.
42156         (func_usage): Document them.
42157         (vc_files): New variable.
42158         (func_import): Consider vc_files.
42159         (func_create_testdir): Set vc_files to empty.
42160         Suggested by Jim Meyering and Karl Berry.
42161
42162 2008-03-23  Bruno Haible  <bruno@clisp.org>
42163
42164         Fix regex compilation error on HP-UX 11.
42165         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42166         * modules/regex (Files): Add m4/mbstate_t.m4.
42167         Reported by Ton Voon <ton.voon@altinity.com>.
42168
42169 2008-03-23  Bruno Haible  <bruno@clisp.org>
42170
42171         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42172
42173 2008-03-23  Eric Blake  <ebb9@byu.net>
42174             Bruno Haible  <bruno@clisp.org>
42175
42176         Install files from top/ in the destination directory.
42177         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42178         augmentation also for the files from top/.
42179         (func_import, func_create_testdir): Rewrite file names:
42180         top/filename -> filename.
42181
42182 2008-03-23  Bruno Haible  <bruno@clisp.org>
42183
42184         Tweak "gnulib --version" output.
42185         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42186
42187 2008-03-23  Bruno Haible  <bruno@clisp.org>
42188
42189         Tweak "gnulib --version" output.
42190         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42191         rather than contents of ChangeLog, when possible.
42192
42193 2008-03-21  Eric Blake  <ebb9@byu.net>
42194
42195         More --version tweaks.
42196         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42197         date of last ChangeLog entry.
42198
42199 2008-03-21  Jim Meyering  <meyering@redhat.com>
42200
42201         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42202
42203 2008-03-20  Eric Blake  <ebb9@byu.net>
42204
42205         VPATH fix.
42206         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42207
42208 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42209
42210         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42211         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42212
42213 2008-03-20  Eric Blake  <ebb9@byu.net>
42214
42215         Sync GNUmakefile with coreutils.
42216         * build-aux/GNUmakefile (have-Makefile): Rename...
42217         (_have-Makefile): ...to this, for namespace consideration.
42218         (GNUmakefile.cfg): Include, if present.
42219         (_autoreconf): Define a default.
42220         (_is-dist-target): New rule for rebuilds to pick up intra-release
42221         version.
42222         (maint-cfg.mk): Rename...
42223         (cfg.mk): ...to this.
42224
42225 2008-03-18  Jim Meyering  <meyering@redhat.com>
42226
42227         New script and module: mktempd
42228         * MODULES.html.sh (maint+release support): Add mktempd.
42229         * build-aux/mktempd: New file.
42230         * modules/mktempd: New file.
42231
42232 2008-03-15  Jim Meyering  <meyering@redhat.com>
42233
42234         Undo last change.
42235         * lib/sha1.c, lib/md5.c: 63 != ~63.
42236         Reported by Andreas Schwab.
42237
42238         sha1.c, md5.c: Hoist a redundant expression.
42239         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42240         "ctx->buflen" only once, before calling *_process_block.
42241         * lib/md5.c (md5_process_bytes): Likewise.
42242
42243 2008-03-14  Eric Blake  <ebb9@byu.net>
42244
42245         Bump copyright year in files generated by gnulib-tool.
42246         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42247         gnulib-tool, rather than hard-coding it.
42248
42249         Fix 'gnulib-tool --version' output to work with git.
42250         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42251         (startup): ...here.
42252         (func_version): Use it to invoke git-version-gen, rather than
42253         relying on CVS keyword expansion.  Modernize wording.
42254         (cvsdatestamp, last_checkin_date, version): Kill unused
42255         variables.
42256
42257 2008-03-12  Jim Meyering  <meyering@redhat.com>
42258
42259         Recognize optional cast of the argument to free.
42260         * build-aux/useless-if-before-free: Update regexps.
42261
42262         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42263
42264 2008-03-11  Bruno Haible  <bruno@clisp.org>
42265
42266         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42267         by a single package.
42268         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42269         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42270         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42271         Reported by Sam Steingold <sds@gnu.org>.
42272
42273 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42274
42275         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42276         repositories.
42277
42278 2008-03-11  Bruno Haible  <bruno@clisp.org>
42279
42280         Avoid conflicts between local macro definitions.
42281         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42282         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42283
42284 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42285             Bruno Haible  <bruno@clisp.org>
42286
42287         Make va_copy work with some version of xlc on AIX 5.1.
42288         * lib/stdarg.in.h: New file.
42289         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42290         On AIX, use a <stdarg.h> file substitute.
42291         * modules/stdarg (Files): Add lib/stdarg.in.h.
42292         (Depends-on): Add include_next.
42293         (Makefile.am): Build a stdarg.h substitute if requested.
42294         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42295
42296 2008-03-10  Bruno Haible  <bruno@clisp.org>
42297
42298         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42299         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42300         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42301
42302 2008-03-10  Bruno Haible  <bruno@clisp.org>
42303
42304         * modules/stdlib (Depends-on): Add include_next, remove
42305         absolute-header.
42306
42307 2008-03-09  Bruno Haible  <bruno@clisp.org>
42308
42309         * lib/freadahead.h (freadahead): Document more precisely.
42310         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42311         the sum of both buffer sizes.
42312         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42313         * NEWS: Document the change.
42314
42315 2008-03-09  Bruno Haible  <bruno@clisp.org>
42316
42317         Extend freadptr to return also the buffer size.
42318         * lib/freadptr.h (freadptr): Add sizep argument.
42319         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42320         (freadptr): Add sizep argument. Determine buffer size like freadahead
42321         does.
42322         * tests/test-freadptr.c: Don't include freadahead.h.
42323         (main): Adapt for new calling convention of freadptr.
42324         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42325         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42326         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42327         tests/test-freadptr2.sh.
42328         (Depends): Remove freadahead.
42329         (TESTS): Add test-freadptr2.sh.
42330         (check_PROGRAMS): Add test-freadptr2.
42331
42332 2008-03-09  Bruno Haible  <bruno@clisp.org>
42333
42334         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42335         Report and solution by Simon Josefsson.
42336
42337 2008-03-06  Bruno Haible  <bruno@clisp.org>
42338
42339         Make fflush after ungetc work on BSD platforms.
42340         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42341         * tests/test-fflush2.c: New file.
42342         * tests/test-fflush2.sh: New file.
42343         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42344         tests/test-fflush2.c.
42345         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42346         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42347
42348 2008-03-06  Eric Blake  <ebb9@byu.net>
42349
42350         Likewise for ftello.
42351         * modules/ftello (Dependencies): Add extensions.
42352         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42353
42354 2008-03-06  Bruno Haible  <bruno@clisp.org>
42355
42356         * modules/fseeko (Dependencies): Add extensions.
42357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42358         Needed on glibc systems.
42359
42360 2008-03-06  Bruno Haible  <bruno@clisp.org>
42361
42362         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42363         email address.
42364         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42365
42366 2008-03-06  Bruno Haible  <bruno@clisp.org>
42367
42368         * users.txt: Add libgnupdf.
42369
42370 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42371
42372         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42373         (Header File Substitutes, Function Substitutes,
42374         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42375         (Build robot for gnulib): Fix typo.
42376
42377 2008-03-06  Bruno Haible  <bruno@clisp.org>
42378
42379         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42380         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42381
42382 2008-03-06  Bruno Haible  <bruno@clisp.org>
42383
42384         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42385         * doc/gnulib.texi: Include it.
42386
42387 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42388
42389         * modules/func (License): Change license to unlimited; there was
42390         no LGPL parts in the module anyway.
42391
42392 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42393
42394         * modules/__func__: Renamed to modules/func.
42395         * modules/__func__-tests: Renamed to modules/func-tests.
42396         * tests/test-__func__.c: Renamed to tests/test-func.c.
42397         * m4/__func__.m4: Renamed to m4/func.m4.
42398         * doc/gnulib.texi (__func__): Section renamed to func.
42399         Suggested by Eric Blake <ebb9@byu.net>.
42400
42401 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42402
42403         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42404         about __func__.  Make example self-contained.  Suggested by Eric
42405         Blake <ebb9@byu.net>.
42406
42407         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42408         Suggested by Eric Blake <ebb9@byu.net>.
42409
42410 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42411
42412         * modules/__func__: New file.
42413         * modules/__func__-tests: New file.
42414         * tests/test-__func__.c: New file.
42415         * m4/__func__.m4: New file.
42416         * doc/gnulib.texi (__func__): Document __func__ module.
42417
42418 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42419
42420         * modules/byteswap (License): Re-license as LGPLv2+.
42421
42422 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42423
42424         * doc/Makefile: Add pdf target.
42425
42426 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42427
42428         * modules/inline (License): Use 'unlimited', since there are only
42429         *.m4 files in this module.
42430
42431 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42432             Bruno Haible  <bruno@clisp.org>
42433
42434         Add support for HP C 7.1 on OpenVMS 8.3.
42435         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42436
42437 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42438
42439         Update VMS specifics.
42440         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42441
42442 2008-03-02  Jim Meyering  <meyering@redhat.com>
42443
42444         Remove the last dependency on the "free" module.
42445         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42446         Reported by Bob Proulx.
42447
42448         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42449
42450         Remove useless "if" tests before free.  Deprecate "free" module.
42451         * doc/posix-functions/free.texi: Mention that this
42452         module is no longer useful.
42453         * modules/free (Notice): Say this module is obsolete.
42454         * modules/readutmp (Depends-on): Remove free.
42455         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42456         * lib/putenv.c (putenv): Likewise.
42457         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42458         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42459         * tests/test-c-strcasestr.c (main): Likewise.
42460         * tests/test-c-strstr.c (main): Likewise.
42461         * tests/test-mbscasestr1.c (main): Likewise.
42462         * tests/test-mbscasestr2.c (main): Likewise.
42463         * tests/test-mbsstr1.c (main): Likewise.
42464         * tests/test-mbsstr2.c (main): Likewise.
42465         * tests/test-memmem.c (main): Likewise.
42466         * tests/test-strcasestr.c (main): Likewise.
42467         * tests/test-striconv.c (main): Likewise.
42468         * tests/test-striconveh.c (main): Likewise.
42469         * tests/test-striconveha.c (main): Likewise.
42470         * tests/test-strstr.c (main): Likewise.
42471
42472         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42473
42474         bootstrap: sync from coreutils again
42475         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42476
42477 2008-03-01  Jim Meyering  <meyering@redhat.com>
42478
42479         bootstrap: sync from coreutils
42480         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42481         also when the target doesn't exist.
42482
42483 2008-03-01  Eric Blake  <ebb9@byu.net>
42484
42485         Fix bugs in last patch.
42486         * lib/memchr2.c (memchr2): Fix typo.
42487         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42488         extension.
42489         Reported by Bruce Korb.
42490
42491         New module 'memchr2'.
42492         * modules/memchr2: New file.
42493         * modules/memchr2-tests: Likewise.
42494         * lib/memchr2.h: Likewise.
42495         * lib/memchr2.c: Likewise, based on memchr.c.
42496         * tests/test-memchr2.c: New test.
42497         * MODULES.html.sh (String handling): Add memchr2.
42498
42499 2008-02-29  Bruno Haible  <bruno@clisp.org>
42500
42501         * modules/freadseek-tests: New file.
42502         * tests/test-freadseek.sh: New file.
42503         * tests/test-freadseek.c: New file.
42504
42505         New module 'freadseek'.
42506         * modules/freadseek: New file.
42507         * lib/freadseek.h: New file.
42508         * lib/freadseek.c: New file.
42509         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42510
42511 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42512
42513         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42514         wydawca.
42515
42516         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42517         program_invocation_name and program_invocation_short_name are
42518         present.
42519
42520 2008-02-28  Bruno Haible  <bruno@clisp.org>
42521
42522         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42523         * tests/test-freadptr.sh: Also test non-seekable stdin.
42524
42525 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42526
42527         * build-aux/bootstrap (source_base, m4_base)
42528         (doc_base, tests_base): New variables.
42529         (gnulib_tool_options): Do not hardcode base directories, use
42530         the above variables instead.
42531
42532 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42533
42534         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42535
42536 2008-02-28  Bruno Haible  <bruno@clisp.org>
42537
42538         * modules/freadptr-tests: New file.
42539         * tests/test-freadptr.sh: New file.
42540         * tests/test-freadptr.c: New file.
42541
42542         New module 'freadptr'.
42543         * modules/freadptr: New file.
42544         * lib/freadptr.h: New file.
42545         * lib/freadptr.c: New file.
42546         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42547
42548 2008-02-26  Karl Berry  <karl@freefriends.org>
42549
42550         Sync from Libtool:
42551         * libltdl/argz.c (argz_add, argz_count): New functions.
42552         * libltdl/argz.in.h: Declare them.
42553         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42554
42555 2008-02-22  Bruno Haible  <bruno@clisp.org>
42556
42557         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42558         is a pointer type.  Needed for HP-UX 10.
42559         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42560         * doc/posix-functions/gmtime_r.texi: Likewise.
42561         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42562
42563 2008-02-24  Bruno Haible  <bruno@clisp.org>
42564
42565         * modules/environ-tests: New file.
42566         * tests/test-environ.c: New file.
42567
42568         New module 'environ'.
42569         * modules/environ: New file.
42570         * lib/unistd.in.h (environ): New declaration.
42571         * m4/environ.m4: New file.
42572         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42573         after use.
42574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42575         HAVE_DECL_ENVIRON.
42576         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42577         HAVE_DECL_ENVIRON.
42578         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42579         wrong claim that 'environ' is missing on some systems.
42580         * modules/execute (Depends-on): Add environ.
42581         * lib/execute.c (environ): Remove fallback declaration.
42582         * modules/pipe (Depends-on): Add environ.
42583         * lib/pipe.c (environ): Remove fallback declaration.
42584         * modules/setenv (Depends-on): Add environ.
42585         * lib/setenv.c (environ): Remove fallback declaration.
42586         * modules/unsetenv (Depends-on): Add environ.
42587         * lib/unsetenv.c (environ): Remove fallback declaration.
42588         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42589         m4/environ.m4.
42590         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42591         (gl_PREREQ_UNSETENV): Likewise.
42592
42593 2008-02-24  Bruno Haible  <bruno@clisp.org>
42594
42595         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42596
42597 2008-02-20  Bob Proulx  <bob@proulx.com>
42598
42599         Enable use of older two part flavor 'git describe'.
42600         * build-aux/git-version-gen: If using the older two part flavor of
42601         git version then recreate the third part now present in the
42602         newer three part flavor of git describe.
42603
42604 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42605
42606         * lib/fts.c (fts_build): Typo correction to comment.
42607
42608 2008-02-17  Bruno Haible  <bruno@clisp.org>
42609
42610         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42611         generating no-op conflicts.
42612
42613 2008-02-17  Bruno Haible  <bruno@clisp.org>
42614
42615         Speed up by 10%.
42616         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42617         result_entries, rather than an index-based loop.
42618
42619 2008-02-17  Bruno Haible  <bruno@clisp.org>
42620
42621         Speed up by 25%.
42622         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42623         'hashcode_cached'.
42624         (entry_create): New function.
42625         (entry_hashcode): Use the cached hashcode if possible.
42626         (read_changelog_file, try_split_merged_entry): Use entry_create.
42627
42628 2008-02-17  Bruno Haible  <bruno@clisp.org>
42629
42630         Speed up from O(n^2) to O(n) for long ChangeLog files.
42631         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42632         (read_changelog_file): Change implementation of entries_reversed list
42633         to rbtreehash.
42634         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42635
42636 2008-02-17  Bruno Haible  <bruno@clisp.org>
42637
42638         New option --split-merged-entry.
42639         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42640         (find_paragraph_end, try_split_merged_entry): New functions.
42641         (long_options): Add option --split-merged-entry.
42642         (usage): Document option --split-merged-entry.
42643         (main): Implement option --split-merged-entry.
42644         Reported by Eric Blake.
42645
42646 2008-02-17  Bruno Haible  <bruno@clisp.org>
42647
42648         * lib/git-merge-changelog.c: Include c-strstr.h.
42649         (main): Support the "git pull --rebase" situation.
42650         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42651         Reported by Eric Blake.
42652
42653 2008-02-16  Eric Blake  <ebb9@byu.net>
42654
42655         Avoid doubling \ in common case of "c-maybe" quoting style.
42656         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42657         eliding outer quotes.
42658         * lib/quotearg.h: Document this.
42659         * tests/test-quotearg.c (result_strings, inputs, results_g)
42660         (flag_results, locale_results): Test it by adding a new string to
42661         each test group.
42662         (compare_strings): Test new string.
42663
42664 2008-02-13  Eric Blake  <ebb9@byu.net>
42665
42666         Avoid trigraph quoting in default output.
42667         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42668         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42669         unless explicitly requested.
42670         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42671
42672 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42673
42674         Don't rely on signed integer overflowing to negative value.
42675         * lib/getugroups.c (getugroups): Include <limits.h>.
42676         Instead, compare against INT_MAX, and increment only if the test passes.
42677
42678 2008-02-13  Jim Meyering  <meyering@redhat.com>
42679         and Eric Blake  <ebb9@byu.net>
42680
42681         Avoid shadowing warning and compile errors on Linux.
42682         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42683         forwarding macros on Linux.
42684         (dcgettext): Define a stub, for Linux.
42685         (results_g, main): Avoid warnings.
42686
42687 2008-02-12  Eric Blake  <ebb9@byu.net>
42688
42689         Silence warning in last patch.
42690         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42691
42692         Quotearg part 4: add tests, fix c-maybe colon quoting.
42693         * lib/quotearg.h: Improve documentation.
42694         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42695         escapes when adding outer quotes.  When quoting trigraphs, use
42696         valid C notation.  When quoting NUL, omit extra characters if next
42697         character is not digit.  Alter prototype.
42698         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42699         callers.
42700         * modules/quotearg-tests: New module.
42701         * tests/test-quotearg.c: New test.
42702
42703 2008-02-07  Eric Blake  <ebb9@byu.net>
42704
42705         Quotearg part 3: add flag to control outer quote elision.
42706         * lib/quotearg.h (c_maybe_quoting_style): New style.
42707         (enum quoting_flags): Better documentation of flags.
42708         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42709         c-maybe style.
42710         (quotearg_buffer_restyled): Handle new flag to elide outer
42711         quotes.
42712
42713         Quotearg part 2: add flag that can control NUL elision.
42714         * lib/quotearg.h (set_quoting_flags): New prototype.
42715         * lib/quotearg.c (struct quoting_options): Add flag field.
42716         (set_quoting_flags): New function.
42717         (quotearg_buffer_restyled): Add flags parameter.
42718         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42719         (quotearg_n_options): Set the flag, since length cannot be
42720         returned.
42721         (quoting_options_from_style): Default flags correctly.
42722
42723         Quotearg part 1: more wrappers, restore quotearg_char state.
42724         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42725         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42726         (quotearg_colon_mem): New wrappers.
42727         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42728         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42729         functions.
42730         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42731         (quotearg_colon_mem): New functions.
42732
42733 2008-02-11  Bruno Haible  <bruno@clisp.org>
42734
42735         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42736         library in the current directory: it does not work with parallel make.
42737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42738
42739 2008-02-11  Bruno Haible  <bruno@clisp.org>
42740
42741         * .gitattributes: New file.
42742
42743 2008-02-11  Jim Meyering  <meyering@redhat.com>
42744
42745         useless-if-before-free: Fix reversed exit values.
42746         * build-aux/useless-if-before-free: Use correct values
42747         for EXIT_MATCH and EXIT_NO_MATCH.
42748
42749         * build-aux/useless-if-before-free: Close stdout carefully.
42750
42751 2008-02-10  Bruno Haible  <bruno@clisp.org>
42752
42753         New module 'git-merge-changelog'.
42754         * modules/git-merge-changelog: New file.
42755         * lib/git-merge-changelog.c: New file.
42756
42757 2008-02-10  Jim Meyering  <meyering@redhat.com>
42758
42759         useless-if-before-free: New option: --list (-l).
42760
42761         useless-if-before-free: Don't exit immediately upon open failure.
42762         * build-aux/useless-if-before-free: Exit 2 for errors.
42763         Upon failure to open a file, don't exit immediately.
42764         Rather, just warn and continue with any remaining files.
42765
42766 2008-02-10  Bruno Haible  <bruno@clisp.org>
42767
42768         New abstract list operation 'node_set_value'.
42769         * lib/gl_list.h (gl_list_node_set_value): New function.
42770         (struct gl_list_implementation): New field node_set_value.
42771         * lib/gl_list.c (gl_list_node_set_value): New function.
42772         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42773         (gl_array_list_implementation): Update.
42774         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42775         (gl_carray_list_implementation): Update.
42776         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42777         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42778         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42779         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42780         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42781         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42782         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42783         Update.
42784         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42785         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42786         (gl_sublist_list_implementation): Update.
42787
42788 2008-02-10  Bruno Haible  <bruno@clisp.org>
42789
42790         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42791         Needed when ELEMENT is #defined to 'some_type *'.
42792
42793 2008-02-10  Jim Meyering  <meyering@redhat.com>
42794
42795         New script and module: useless-if-before-free
42796         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42797         * build-aux/useless-if-before-free: New file.
42798         * modules/useless-if-before-free: New file.
42799
42800         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42801
42802         xstrtol_error: Fix typo.
42803         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42804         s/exit_failure/exit_status/.
42805
42806 2008-02-09  Jim Meyering  <meyering@redhat.com>
42807
42808         New script and module: gitlog-to-changelog
42809         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42810         * modules/gitlog-to-changelog: New file.
42811         * build-aux/gitlog-to-changelog: New file.
42812
42813 2008-02-08  Jim Meyering  <meyering@redhat.com>
42814
42815         Avoid two "parameter unused" warnings.
42816         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42817         Mark "st" as used.
42818
42819         Use "git COMMAND", not "git-COMMAND".
42820         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42821         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42822         * build-aux/git-version-gen: Use "git status", not "git-status".
42823
42824 2008-02-07  Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42827         Avoids a crash on Windows Vista.
42828         Reported by Adam Strzelecki <ono@java.pl> via
42829         Simon Josefsson <simon@josefsson.org>.
42830
42831 2008-02-06  Bruno Haible  <bruno@clisp.org>
42832
42833         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42834         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42835         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42837         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42839         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42840         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42848         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42849         left-adjust flag.
42850         * tests/test-snprintf-posix.h (test_function): Likewise.
42851         * tests/test-sprintf-posix.h (test_function): Likewise.
42852         * tests/test-vasprintf-posix.c (test_function): Likewise.
42853         * doc/posix-functions/fprintf.texi: Update.
42854         * doc/posix-functions/printf.texi: Update.
42855         * doc/posix-functions/snprintf.texi: Update.
42856         * doc/posix-functions/sprintf.texi: Update.
42857         * doc/posix-functions/vfprintf.texi: Update.
42858         * doc/posix-functions/vprintf.texi: Update.
42859         * doc/posix-functions/vsnprintf.texi: Update.
42860         * doc/posix-functions/vsprintf.texi: Update.
42861         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42862
42863 2008-02-06  Bruno Haible  <bruno@clisp.org>
42864
42865         Fix bug introduced on 2008-01-26.
42866         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42867
42868 2008-02-06  Bruno Haible  <bruno@clisp.org>
42869
42870         Fix bug introduced on 2007-06-10.
42871         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42872         !NEED_PRINTF_FLAG_ZERO.
42873
42874 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42875
42876         getloadavg: use libperfstat on AIX5
42877         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42878
42879 2008-02-03  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/diffseq.h: Add comments about required #includes.
42882         Reported by Michael Biggs <gnulib@doubleplum.net>.
42883
42884 2008-02-01  Bruno Haible  <bruno@clisp.org>
42885
42886         * users.txt: Add gnuit.
42887
42888 2008-01-31  Bruno Haible  <bruno@clisp.org>
42889
42890         * lib/md4.c (set_uint32): Mark as inline.
42891         * lib/md5.c (set_uint32): Likewise.
42892         * lib/sha1.c (set_uint32): Likewise.
42893         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42894         * m4/md5.m4 (gl_MD5): Likewise.
42895         * m4/sha1.m4 (gl_SHA1): Likewise.
42896
42897 2008-01-31  Jim Meyering  <meyering@redhat.com>
42898
42899         Use "sizeof VAR", rather than a literal "4".
42900         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42901         * lib/md4.c (md4_read_ctx): Likewise.
42902         * lib/sha1.c (sha1_read_ctx): Likewise.
42903
42904 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42905
42906         * tests/test-sha1.c: New file, based on test-md5.c.
42907
42908         * modules/crypto/sha1-tests: New file.
42909
42910 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42911
42912         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42913
42914 2008-01-31  Jim Meyering  <meyering@redhat.com>
42915
42916         Prefer "sizeof v" over the equivalent "4".
42917         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42918         * lib/md5.c (set_uint32): Likewise.
42919         * lib/sha1.c (set_uint32): Likewise.
42920
42921 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42922
42923         * lib/sha1.c (set_uint32): Mark function as static.
42924
42925 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42926
42927         md2: clarify comments to say that alignment is not required.
42928         * lib/md2.h: Remove warning about alignment in comment.
42929         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42930         never been required.
42931
42932 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42933
42934         md4: adapt alignment constraint fix from sha1.
42935         * lib/md4.c (set_uint32): New function, from sha1.c
42936         (md4_read_ctx): Use it.
42937         (md4_finish_ctx): Doc fix.
42938         * lib/md4.h: Doc fix.
42939
42940 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42941
42942         md5: adapt alignment constraint fix from sha1.
42943         * lib/md5.c (set_uint32): New function, from sha1.c
42944         (md5_read_ctx): Use it.
42945         (md5_finish_ctx): Doc fix.
42946         * lib/md5.h: Doc fix.
42947
42948 2008-01-30  Peter Palfrader  <weasel@debian.org>
42949
42950         sha1: remove the result buffer alignment constraint
42951         * lib/sha1.c (set_uint32): New function.
42952         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42953         constraint.
42954         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42955         * lib/sha1.h: Likewise.
42956
42957 2008-01-30  Andreas Schwab  <schwab@suse.de>
42958             Bruno Haible  <bruno@clisp.org>
42959
42960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42961         correct definition of LDBL_MIN_EXP.
42962
42963 2008-01-30  Karl Berry  <karl@gnu.org>
42964
42965         * config/srclist-update: try to preserve x bit on updates.
42966         * config/srclistvars.sh: update for karl.
42967
42968 2008-01-29  Jim Meyering  <meyering@redhat.com>
42969
42970         vasnprintf.c: Avoid warning about unused label
42971         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42972         "overflow" label definition and associated code with the
42973         same cpp condition that guards the sole use of that label.
42974
42975 2008-01-26  Bruno Haible  <bruno@clisp.org>
42976
42977         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42978         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42979         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42980         * lib/isnanl-nolibm.h (isnanl): Likewise.
42981         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42982
42983 2008-01-26  Bruno Haible  <bruno@clisp.org>
42984
42985         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42986         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42987
42988 2008-01-26  Bruno Haible  <bruno@clisp.org>
42989
42990         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42991         GCC >= 4.0 built-in.
42992         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42993
42994 2008-01-26  Bruno Haible  <bruno@clisp.org>
42995
42996         Rename isnan, applicable to 'double' only, to isnand.
42997         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42998         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42999         (configure.ac): Update.
43000         (Include): Replace "isnan.h" with "isnand.h".
43001         * m4/isnand.m4: Renamed from m4/isnan.m4.
43002         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43003         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43004         instead of isnan.c.
43005         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43006         instead of HAVE_ISNAN_IN_LIBC.
43007         (isnand): Renamed from isnan.
43008         * lib/isnand.c: New file.
43009         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43010         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43011         (Makefile.am): Update.
43012         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43013         Include isnand.h instead of isnan.h.
43014         (main): Test isnand instead of isnan.
43015         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43016         isnan-nolibm.
43017         * modules/frexp (Depends-on): Likewise.
43018         * modules/frexp-tests (Depends-on): Likewise.
43019         * modules/frexp-nolibm (Depends-on): Likewise.
43020         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43021         * modules/isfinite (Depends-on): Likewise.
43022         * modules/round-tests (Depends-on): Likewise.
43023         * modules/signbit (Depends-on): Likewise.
43024         * modules/signbit-tests (Depends-on): Likewise.
43025         * modules/snprintf-posix (Depends-on): Likewise.
43026         * modules/sprintf-posix (Depends-on): Likewise.
43027         * modules/trunc-tests (Depends-on): Likewise.
43028         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43029         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43030         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43031         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43032         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43033         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43034         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43035         * modules/vasnprintf-posix (Depends-on): Likewise.
43036         * modules/vasprintf-posix (Depends-on): Likewise.
43037         * modules/vfprintf-posix (Depends-on): Likewise.
43038         * modules/vsnprintf-posix (Depends-on): Likewise.
43039         * modules/vsprintf-posix (Depends-on): Likewise.
43040         * lib/frexp.c: Include isnand.h instead of isnan.h.
43041         (ISNAN): Set to isnand instead of isnan.
43042         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43043         (gl_isfinited): Use isnand instead of isnan.
43044         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43045         (gl_signbitd): Use isnand instead of isnan.
43046         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43047         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43048         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43049         (main): Use isnand instead of isnan.
43050         * tests/test-round1.c: Include isnand.h.
43051         (main): Use isnand instead of isnan.
43052         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43053         (ISNAN): Set to isnand instead of isnan.
43054         * tests/test-trunc1.c: Include isnand.h.
43055         (main): Use isnand instead of isnan.
43056         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43057         (equal): Use isnand instead of isnan.
43058         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43059         isnand-nolibm.
43060         * NEWS: Mention the change.
43061
43062 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43063             Bruno Haible  <bruno@clisp.org>
43064
43065         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43066         the GCC builtins for signbits are present and set
43067         REPLACE_SIGNBIT_USING_GCC if so.
43068         * lib/math.in.h (signbit): Define using GCC builtins if
43069         REPLACE_SIGNBIT_USING_GCC is set.
43070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43071         REPLACE_SIGNBIT_USING_GCC.
43072         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43073
43074 2008-01-25  Jim Meyering  <meyering@redhat.com>
43075
43076         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43077         * lib/poll.c: Include <config.h>, not "config.h".
43078         * tests/test-getaddrinfo.c: Likewise.
43079
43080 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43081
43082         * modules/sockets-tests: New file.
43083
43084 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43085
43086         * modules/sockets: New module, can be used to call WSA_Startup and
43087         WSA_Cleanup when needed.
43088
43089         * lib/sockets.h, lib/sockets.c: New files.
43090
43091         * m4/sockets.m4: New file.
43092
43093         * tests/test-sockets.c: New file.
43094
43095 2008-01-19  Bruno Haible  <bruno@clisp.org>
43096
43097         * doc/posix-headers: Renamed from doc/headers.
43098         * doc/posix-functions: Renamed from doc/functions.
43099         * doc/gnulib.texi: Update.
43100
43101 2008-01-19  Bruno Haible  <bruno@clisp.org>
43102
43103         * doc/glibc-functions/strcasestr.texi: Include contents of
43104         doc/functions/strcasestr.texi, fixing the list of platforms.
43105         * doc/functions/strcasestr.texi: Remove file.
43106
43107 2008-01-19  Bruno Haible  <bruno@clisp.org>
43108
43109         * doc/glibc-functions/memmem.texi: Include contents of
43110         doc/functions/memmem.texi.
43111         * doc/functions/memmem.texi: Remove file.
43112
43113 2008-01-18  Bruno Haible  <bruno@clisp.org>
43114
43115         * doc/glibc-functions/*.texi: New files.
43116         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43117         to use the new files.
43118
43119 2008-01-17  Bruno Haible  <bruno@clisp.org>
43120
43121         * tests/test-gethostname.c (main): Fix printf statement.
43122
43123 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43124
43125         * modules/gethostname-tests: New file.
43126
43127         * tests/test-gethostname.c: New file.
43128
43129 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43130
43131         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43132         used by the UNAME case.  Reported by Bruno Haible
43133         <bruno@clisp.org>.
43134
43135 2008-01-17  Eric Blake  <ebb9@byu.net>
43136
43137         Convert c-strcasestr to be more efficient.
43138         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43139         (Depends-on): Add c-strcase, remove malloca, strnlen.
43140         * tests/test-c-strcasestr.c (main): Enhance test.
43141         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43142
43143 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43144
43145         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43146         Use it in creating po/Makevars.
43147
43148 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43149
43150         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43151         Applications that requires it should initialize libgcrypt
43152         manually.
43153
43154 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43155
43156         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43157
43158 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43159
43160         Fix problem with getdate on mingw32 reported by Simon Josefsson
43161         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43162         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43163         tzname", when deciding whether to declare tzname.
43164         * lib/strftime.c (tzname): Likewise.
43165
43166 2008-01-15  Bruno Haible  <bruno@clisp.org>
43167
43168         Work around a MacOS X 10.5 bug in frexpl().
43169         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43170         * doc/functions/frexpl.texi: Document the bug.
43171         Reported by Elias Pipping <pipping@gentoo.org>.
43172
43173 2008-01-14  Eric Blake  <ebb9@byu.net>
43174
43175         Touch up previous patch.
43176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43177         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43178
43179         Convert strcasestr module to use Two-Way algorithm.
43180         * modules/strcasestr-simple: New module, based on the old
43181         strcasestr, but with Two-Way rather than KMP.
43182         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43183         * lib/string.in.h (rpl_strcasestr): Declare.
43184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43185         performance.
43186         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43187         * modules/string (Makefile.am): Support strcasestr.
43188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43189         * modules/strcasestr-tests (Depends-on): Check for alarm.
43190         * tests/test-strcasestr.c: Augment test.
43191         * lib/str-two-way.h: Clean up stray macro.
43192         * NEWS: Document new module.
43193         * MODULES.html.sh (string handling): Likewise.
43194         * doc/functions/strcasestr.texi: New file.
43195         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43196         here, since it is not a POSIX function.
43197
43198 2008-01-14  Colin Watson  <cjwatson@debian.org>
43199             Bruno Haible  <bruno@clisp.org>
43200
43201         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43202         works fine; if not, set REPLACE_STRSIGNAL.
43203         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43205         REPLACE_STRSIGNAL.
43206         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43207         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43208         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43209
43210 2008-01-14  Bruno Haible  <bruno@clisp.org>
43211
43212         * modules/strsignal (Include): Change to <string.h>.
43213
43214 2008-01-14  Colin Watson  <cjwatson@debian.org>
43215
43216         * modules/argp (Notice): Add a notice recommending to change
43217         XGETTEXT_OPTIONS.
43218         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43219
43220 2008-01-13  Colin Watson  <cjwatson@debian.org>
43221
43222         * modules/strsignal-tests: New file.
43223         * tests/test-strsignal.c: New file.
43224
43225         * lib/strsignal.c: New file, from glibc with modifications.
43226         * lib/siglist.h: New file, from glibc with modifications.
43227         * lib/string.in.h (strsignal): New declaration.
43228         * m4/strsignal.m4: New file.
43229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43230         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43231         * modules/strsignal: New file.
43232         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43233         HAVE_DECL_STRSIGNAL.
43234
43235 2008-01-13  Bruno Haible  <bruno@clisp.org>
43236
43237         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43238         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43239         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43240         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43241
43242 2008-01-13  Bruno Haible  <bruno@clisp.org>
43243
43244         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43245         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43246         * lib/argp.h (__attribute__): Likewise.
43247         * lib/c-stack.c (__attribute__): Likewise.
43248         * lib/error.h (__attribute__): Likewise.
43249         * lib/fts.c (__attribute__): Likewise.
43250         * lib/openat.h (__attribute__): Likewise.
43251         * lib/stdio.in.h (__attribute__): Likewise.
43252         * lib/string.in.h (__attribute__): Likewise.
43253         * lib/utimens.c (__attribute__): Likewise.
43254         * lib/vasnprintf.h (__attribute__): Likewise.
43255         * lib/xalloc.h (__attribute__): Likewise.
43256         * lib/xprintf.h (__attribute__): Likewise.
43257         * lib/xstrtol.h (__attribute__): Likewise.
43258         * lib/xvasprintf.h (__attribute__): Likewise.
43259
43260 2008-01-12  Bruno Haible  <bruno@clisp.org>
43261
43262         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43263         * doc/glibc-headers/a.out.texi: New file.
43264         * doc/glibc-headers/aliases.texi: New file.
43265         * doc/glibc-headers/alloca.texi: New file.
43266         * doc/glibc-headers/ar.texi: New file.
43267         * doc/glibc-headers/argp.texi: New file.
43268         * doc/glibc-headers/argz.texi: New file.
43269         * doc/glibc-headers/byteswap.texi: New file.
43270         * doc/glibc-headers/crypt.texi: New file.
43271         * doc/glibc-headers/endian.texi: New file.
43272         * doc/glibc-headers/envz.texi: New file.
43273         * doc/glibc-headers/err.texi: New file.
43274         * doc/glibc-headers/error.texi: New file.
43275         * doc/glibc-headers/execinfo.texi: New file.
43276         * doc/glibc-headers/fpu_control.texi: New file.
43277         * doc/glibc-headers/fstab.texi: New file.
43278         * doc/glibc-headers/fts.texi: New file.
43279         * doc/glibc-headers/getopt.texi: New file.
43280         * doc/glibc-headers/ieee754.texi: New file.
43281         * doc/glibc-headers/ifaddrs.texi: New file.
43282         * doc/glibc-headers/libintl.texi: New file.
43283         * doc/glibc-headers/mcheck.texi: New file.
43284         * doc/glibc-headers/mntent.texi: New file.
43285         * doc/glibc-headers/obstack.texi: New file.
43286         * doc/glibc-headers/paths.texi: New file.
43287         * doc/glibc-headers/printf.texi: New file.
43288         * doc/glibc-headers/pty.texi: New file.
43289         * doc/glibc-headers/resolv.texi: New file.
43290         * doc/glibc-headers/shadow.texi: New file.
43291         * doc/glibc-headers/sysexits.texi: New file.
43292         * doc/glibc-headers/ttyent.texi: New file.
43293
43294 2008-01-12  Jim Meyering  <meyering@redhat.com>
43295
43296         announce-gen: emit Gnulib's git-based version string.
43297         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43298         New option --gnulib-version=V, where V is expected to be
43299         the output of running git describe in the gnulib directory.
43300         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43301         not useful, and plan to stop publishing an xdelta file with each
43302         coreutils release.
43303
43304         * build-aux/announce-gen: Also check for lzma-compressed files.
43305
43306 2008-01-11  Bruno Haible  <bruno@clisp.org>
43307
43308         * tests/test-memmem.c (main): Increase maximum allowed time.
43309         * tests/test-strstr.c (main): Likewise.
43310
43311 2008-01-11  Bruno Haible  <bruno@clisp.org>
43312
43313         * doc/functions/memmem.texi: Add more precisions about platforms.
43314         * doc/functions/strstr.texi: Likewise.
43315
43316 2008-01-10  Eric Blake  <ebb9@byu.net>
43317
43318         * m4/strstr.m4: Delete cruft from copy-n-paste.
43319         Reported by Bruno Haible.
43320
43321 2008-01-10  Bruno Haible  <bruno@clisp.org>
43322
43323         Make c-strstr rely on strstr.
43324         * lib/c-strstr.c: Don't include str-kmp.h.
43325         (c_strstr): Define in terms of strstr.
43326         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43327         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43328
43329 2008-01-10  Bruno Haible  <bruno@clisp.org>
43330
43331         * doc/gnulib.texi (String Functions in C Locale): New section.
43332         * doc/c-ctype.texi: New file.
43333         * doc/c-strcase.texi: New file.
43334         * doc/c-strcaseeq.texi: New file.
43335         * doc/c-strcasestr.texi: New file.
43336         * doc/c-strstr.texi: New file.
43337         * doc/c-strtod.texi: New file.
43338         * doc/c-strtold.texi: New file.
43339
43340 2008-01-10  Eric Blake  <ebb9@byu.net>
43341
43342         * lib/relocatable.h: Fix a comment.
43343
43344 2008-01-10  Eric Blake  <ebb9@byu.net>
43345
43346         Share two-way algorithm.
43347         * lib/str-two-way.h: New file, merged from...
43348         * lib/memmem.c: ...here...
43349         * lib/strstr.c: ...and here.
43350         * modules/memmem (Files): Use it.
43351         * modules/strstr (Files): Likewise.
43352
43353         Avoid quadratic strstr implementations.
43354         * lib/strstr.c: New file.
43355         * m4/strstr.m4: Likewise.
43356         * modules/strstr: Likewise.
43357         * modules/strstr-tests: Likewise.
43358         * tests/test-strstr.c: Likewise.
43359         * lib/string.in.h (rpl_strstr): Declare.
43360         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43362         * modules/string (Makefile.am): Likewise.
43363         * MODULES.html.sh (string handling): Mention new module.
43364         * doc/functions/strstr.texi (strstr): Document the bug.
43365
43366 2008-01-10  Bruno Haible  <bruno@clisp.org>
43367
43368         * lib/relocatable.h (relocate): State whether result is freshly
43369         allocated or not.
43370         * lib/relocatable.c (relocate): Return a freshly allocated string
43371         instead of a pointer to a privately held string.
43372         Reported by Sylvain Beucler <beuc@gnu.org>.
43373
43374 2008-01-10  Colin Watson  <cjwatson@debian.org>
43375
43376         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43377         s/S_ISNLK/S_ISLNK/.
43378
43379 2008-01-09  Bruno Haible  <bruno@clisp.org>
43380
43381         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43382         and other files.
43383         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43384         if it's only a guess.
43385         * modules/memmem: Simplify by depending on memmem-simple.
43386
43387 2008-01-09  Bruno Haible  <bruno@clisp.org>
43388
43389         Work around OpenBSD 4.0 tdelete() bug.
43390         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43391         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43392         macros and don't redefine the enum values.
43393         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43394         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43395         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43396
43397 2008-01-09  Bruno Haible  <bruno@clisp.org>
43398
43399         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43400         (main): Don't perform the tests if setlocale did not install a UTF-8
43401         locale. Needed on OpenBSD 4.0.
43402         * modules/wcwidth-tests (Depends-on): Add localcharset.
43403
43404 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43405
43406         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43407         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43408         * NEWS: announce this.
43409         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43410
43411 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43412         and Eric Blake  <ebb9@byu.net>
43413
43414         Add memmem-simple module.
43415         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43416         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43417         * modules/memmem-simple: New file.
43418         * modules/memmem (Description): Tweak.
43419         * MODULES.html.sh (string handling): Mention new module.
43420         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43421         addressed by memmem-simple.
43422         * NEWS: Document the difference.
43423
43424 2008-01-09  Eric Blake  <ebb9@byu.net>
43425
43426         Give gcc some memmem optimization hints.
43427         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43428         (strcasestr): Declare as pure.
43429         * modules/memmem (Maintainer): Claim my implementation.
43430
43431 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43432
43433         Support AIX 6.1 and higher.
43434         * build-aux/config.libpath: Likewise.
43435         * build-aux/config.rpath: Likewise.
43436
43437 2008-01-08  Jim Meyering  <meyering@redhat.com>
43438             Bruno Haible  <bruno@clisp.org>
43439
43440         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43441         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43442         Reported by Peter Fales in
43443         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43444
43445 2008-01-08  Bruno Haible  <bruno@clisp.org>
43446
43447         * modules/unictype/category-of (Depends-on): Add
43448         unictype/category-none.
43449         * modules/unictype/category-and-tests (Depends-on): Add
43450         unictype/category-{L,N,Lu,Nd}.
43451         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43452         * modules/unictype/category-or-tests (Depends-on): Add
43453         unictype/category-{L,N}.
43454         * modules/unictype/category-name-tests (Depends-on): Add
43455         unictype/category-{Z,Nl}.
43456         Reported by Simon Josefsson.
43457
43458 2008-01-08  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43461         convention better.
43462         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43463         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43464         Reported by Peter Miller <millerp@canb.auug.org.au>.
43465
43466 2008-01-08  Eric Blake  <ebb9@byu.net>
43467
43468         Rewrite memmem to guarantee linear complexity without malloc.
43469         * lib/memmem.c (memmem): Use Two-Way rather than
43470         Knuth-Morris-Pratt, to allow O(1) space usage.
43471         (critical_factorization, two_way_short_needle)
43472         (two_way_long_needle): New functions.
43473         (knuth_morris_pratt): Delete.
43474         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43475         Add stdint.
43476         * tests/test-memmem.c (main): Add tests for periodic needle and
43477         sublinear performance.
43478         * doc/functions/memmem.texi (memmem): Document other deficiencies
43479         in cygwin and older glibc.
43480
43481 2008-01-08  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43484         augmentation.
43485
43486 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43487
43488         Add a configure time option: --disable-acl.
43489         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43490         AC_ARG_ENABLE(acl).
43491
43492 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43493
43494         * tests/test-localename.c: Don't include obsolete "setenv.h".
43495
43496         * modules/localename-tests (Depends-on): Need unsetenv.
43497
43498 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43499
43500         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43501
43502 2008-01-06  Colin Watson  <cjwatson@debian.org>
43503
43504         * users.txt: Add man-db.
43505
43506 2008-01-07  Bruno Haible  <bruno@clisp.org>
43507
43508         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43509         previous section name.
43510
43511 2008-01-07  Bruno Haible  <bruno@clisp.org>
43512
43513         * lib/progname.c (set_program_name): Don't strip off a leading
43514         "lt-" prefix outside a .libs directory.
43515         Suggested by Paul Eggert.
43516
43517 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43518             Bruno Haible  <bruno@clisp.org>
43519
43520         Improve memory cleanup in 'relocatable' module.
43521         * lib/relocatable.h (compute_curr_prefix): Change return type to
43522         'char *'.
43523         * lib/relocatable.c (compute_curr_prefix): Change return type to
43524         'char *'. Free curr_installdir after use.
43525         (relocate): Free curr_prefix_better after use.
43526         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43527
43528 2008-01-01  Bruno Haible  <bruno@clisp.org>
43529
43530         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43531         failure on older glibc systems.
43532         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43533
43534 2008-01-05  Eric Blake  <ebb9@byu.net>
43535
43536         Avoid quadratic system memmem.
43537         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43538         Reported by Ralf Wildenhues.
43539
43540         Fix memmem test for mingw.
43541         * modules/memmem-tests (configure.ac): Check for alarm.
43542         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43543         it.
43544         * doc/functions/memmem.texi: New file.
43545         * doc/gnulib.texi (Function Substitutes): Add memmem.
43546         Reported by Bruno Haible.
43547
43548 2008-01-04  Bruno Haible  <bruno@clisp.org>
43549
43550         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43551         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43552         gl_HEADER_STRING_H_DEFAULTS.
43553
43554 2008-01-04  Eric Blake  <ebb9@byu.net>
43555
43556         Shorten duration of memmem test.
43557         * tests/test-memmem.c (main): Use alarm to declare failure if test
43558         is taking too long.
43559         Reported by Ralf Wildenhues.
43560
43561 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43562
43563         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43564         string, needed by strerror.
43565
43566 2008-01-03  Colin Watson  <cjwatson@debian.org>
43567             Bruno Haible  <bruno@clisp.org>
43568
43569         * doc/gnulib-tool.texi (Localization): New section.
43570
43571 2008-01-02  Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43574         variables to 'unsigned char *' type.
43575         Reported by Paul Eggert.
43576
43577 2008-01-02  Jim Meyering  <jim@meyering.net>
43578
43579         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43580
43581 2007-12-31  Jim Meyering  <jim@meyering.net>
43582
43583         Avoid use of private FTS type name.
43584         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43585
43586 2007-12-30  Karl Berry  <karl@gnu.org>
43587
43588         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43589         work around defect in Texinfo and/or the standalone Info browser.
43590
43591 2007-12-30  Bruno Haible  <bruno@clisp.org>
43592
43593         Unify 5 copies of the KMP code.
43594         * lib/str-kmp.h: New file.
43595         * lib/c-strcasestr.c: Include str-kmp.h.
43596         (knuth_morris_pratt): Remove function.
43597         (c_strcasestr): Update.
43598         * lib/c-strstr.c: Include str-kmp.h.
43599         (knuth_morris_pratt): Remove function.
43600         (c_strcasestr): Update.
43601         * lib/mbscasestr.c: Include str-kmp.h.
43602         (knuth_morris_pratt_unibyte): Remove function.
43603         * lib/mbsstr.c: Include str-kmp.h.
43604         (knuth_morris_pratt_unibyte): Remove function.
43605         * lib/strcasestr.c: Include str-kmp.h.
43606         (knuth_morris_pratt): Remove function.
43607         (strcasestr): Update.
43608         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43609         * modules/c-strstr (Files): Likewise.
43610         * modules/mbscasestr (Files): Likewise.
43611         * modules/mbsstr (Files): Likewise.
43612         * modules/strcasestr (Files): Likewise.
43613         Suggested by Paul Eggert.
43614
43615 2007-12-30  Bruno Haible  <bruno@clisp.org>
43616
43617         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43618         defined.
43619
43620 2007-12-30  Bruno Haible  <bruno@clisp.org>
43621
43622         * lib/xmalloca.h: Include xalloc.h.
43623         (xnmalloca): New macro.
43624
43625 2007-12-30  Bruno Haible  <bruno@clisp.org>
43626
43627         * lib/malloca.h (nmalloca): New macro.
43628         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43629         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43630         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43631         knuth_morris_pratt_multibyte): Likewise.
43632         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43633         knuth_morris_pratt_multibyte): Likewise.
43634         * lib/memmem.c (knuth_morris_pratt): Likewise.
43635         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43636
43637 2007-12-25  Bruno Haible  <bruno@clisp.org>
43638
43639         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43640         * lib/glob.c: Don't include openat.h.
43641         (link_exists2_p): Add back the code that deals with the
43642         !GLOB_ALTDIRFUNC case.
43643         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43644         let it do the filename concatenation.
43645         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43646         * modules/glob (Depends-on): Remove openat.
43647
43648 2007-12-31  Bruno Haible  <bruno@clisp.org>
43649
43650         * modules/dirfd (License): Change to LGPLv2+.
43651         Approved by Jim Meyering.
43652
43653 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43654
43655         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43656         when multiplying M by sizeof (size_t).
43657
43658 2007-12-10  Martin Lambers  <marlam@marlam.de>
43659
43660         Override getpagesize on mingw.
43661         * lib/getpagesize.c: New file.
43662         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43663         * modules/getpagesize (Files): Add lib/getpagesize.c.
43664         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43666         REPLACE_GETPAGESIZE.
43667         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43668
43669 2007-12-25  Bruno Haible  <bruno@clisp.org>
43670
43671         * modules/localcharset (Notice): New field.
43672         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43673         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43674
43675 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43676             Bruno Haible  <bruno@clisp.org>
43677
43678         Avoid using the syntax symbol() in formatted documentation.
43679         * MODULES.html.sh (func_module): When replacing symbol() with a
43680         hyperlink, remove the parentheses. Show an error if some remain.
43681         Recognize and render the '...' syntax.
43682         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43683         Rework. Add paragraph about GCC's inlining.
43684         * doc/alloca.texi: Likewise.
43685         * doc/error.texi: Remove parentheses from symbol reference.
43686         * doc/gnulib-intro.texi: Likewise.
43687         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43688         * modules/fnmatch (Description): Reword to say "the ... function".
43689         * modules/full-read (Description): Likewise.
43690         * modules/full-write (Description): Likewise.
43691         * modules/safe-read (Description): Likewise.
43692         * modules/safe-write (Description): Likewise.
43693         * modules/strchrnul (Description): Likewise.
43694         * modules/trim (Description): Likewise.
43695         * modules/error (Description): Remove parentheses from symbol
43696         references.
43697         * modules/verror (Description): Likewise.
43698         Reported by Karl Berry.
43699
43700 2007-12-25  Bruno Haible  <bruno@clisp.org>
43701
43702         Fixup after 2007-10-16 commit.
43703         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43704
43705 2007-12-24  Bruno Haible  <bruno@clisp.org>
43706
43707         Make --enable-relocatable work with DESTDIR.
43708         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43709         to compute installdir from destprog.
43710         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43711         also set the RELOC_DESTDIR variable.
43712         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43713
43714 2007-12-24  Bruno Haible  <bruno@clisp.org>
43715
43716         Fix link error due to xalloc_die().
43717         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43718         of xreadlink.
43719         * lib/relocwrapper.c: Update comments.
43720         * build-aux/install-reloc: Remove xreadlink.c from file list.
43721         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43722         xreadlink.c.
43723         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43724
43725 2007-12-24  Bruno Haible  <bruno@clisp.org>
43726
43727         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43728         * lib/setenv.h: Remove file.
43729         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43730         lib/setenv.h.
43731         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43732         (Depends-on): Add stdlib.
43733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43734         gl_FUNC_UNSETENV.
43735         (Include): Replace setenv.h with <stdlib.h>.
43736         * modules/unsetenv: New file.
43737         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43738         * lib/unsetenv.c: Include <stdlib.h> first.
43739         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43740         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43741         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43742         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43743         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43744         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43746         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43747         * doc/functions/unsetenv.texi: Update.
43748         * modules/xsetenv (Depends-on): Add unsetenv.
43749         * modules/getdate (Depends-on): Likewise.
43750         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43751         * lib/xsetenv.c: Don't include setenv.h.
43752         * lib/getdate.y: Likewise.
43753         * lib/relocwrapper.c: Likewise.
43754         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43755         (Depends-on): Add stdlib.
43756         * NEWS: Mention the changes.
43757         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43758
43759 2007-12-23  Bruno Haible  <bruno@clisp.org>
43760
43761         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43762         indentation.
43763
43764 2007-12-23  Bruno Haible  <bruno@clisp.org>
43765
43766         * lib/c-strcasestr.c: Add more comments.
43767         * lib/c-strstr.c: Likewise.
43768         * lib/mbscasestr.c: Likewise.
43769         * lib/mbsstr.c: Likewise.
43770         * lib/strcasestr.c: Likewise.
43771         * lib/memmem.c: Likewise.
43772
43773 2007-12-23  Bruno Haible  <bruno@clisp.org>
43774
43775         * tests/test-memmem.c: Include <string.h> first.
43776
43777 2007-12-22  Bruno Haible  <bruno@clisp.org>
43778
43779         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43780         the contents of $testsbase.
43781         Reported by Ralf Wildenhues.
43782
43783 2007-12-22  Bruno Haible  <bruno@clisp.org>
43784
43785         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43786         two variables local_ldadd_before, local_ldadd_last.
43787
43788 2007-12-20  Eric Blake  <ebb9@byu.net>
43789
43790         Work around circular library issue when cross-compiling.
43791         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43792         that progname.o does not need to pull in rpl_memcmp.
43793
43794 2007-12-19  Eric Blake  <ebb9@byu.net>
43795
43796         Fix memmem to avoid O(n^2) worst-case complexity.
43797         * lib/memmem.c (knuth_morris_pratt): New function.
43798         (memmem): Use it if first few naive iterations fail.
43799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43800         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43801         * modules/memchr (License): Likewise.
43802         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43803         malloca.
43804         * tests/test-memmem.c: Rewrite, borrowing ideas from
43805         test-mbsstr1.c; the old version wouldn't even compile!
43806         * modules/memmem-tests: New file.
43807         * lib/string.in.h (rpl_memmem): Add declaration.
43808         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43810         REPLACE_MEMMEM.
43811
43812 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43813
43814         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43815         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43816         before any system include files, and undef after them all.  This
43817         should fix a problem on VMS reported by John E. Malmberg in
43818         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43819
43820 2007-12-17  Eric Blake  <ebb9@byu.net>
43821
43822         Revert addition of verify, for BSD/OS.
43823         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43824         can't handle large files, for the sake of obsolete platforms.
43825         * modules/fseeko (Depends-on): Remove verify.
43826         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43827         * doc/functions/ftello.texi (ftello): Likewise.
43828         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43829         Reported by Larry Jones.
43830
43831 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43832
43833         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43834         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43835
43836 2007-12-17  Jim Meyering  <meyering@redhat.com>
43837
43838         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43839         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43840         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43841         * modules/getcwd (Depends-on): Add openat.
43842         Reported by Petr Salinger.
43843
43844 2007-12-17  Bruno Haible  <bruno@clisp.org>
43845
43846         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43847         avoid a segmentation fault of the configure test on x86_64 systems.
43848
43849 2007-12-15  Jim Meyering  <meyering@redhat.com>
43850
43851         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43852
43853 2007-12-13  Eric Blake  <ebb9@byu.net>
43854
43855         Another fseek test.
43856         * tests/test-fseek.c (main): Also test ungetc handling.
43857         * tests/test-fseeko.c (main): Likewise.
43858         * modules/fseeko (Depends-on): Add verify.
43859         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43860         large.
43861         Reported by Larry Jones.
43862
43863         Fix fseeko on mingw.
43864         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43865         seek.
43866
43867         Beef up fseek tests.
43868         * tests/test-fseek.c (main): Also test eof handling.
43869         * tests/test-fseeko.c (main): Likewise.
43870         Reported by Larry Jones.
43871
43872 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43873
43874         Fix fseeko on BSD-based platforms.
43875         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43876         successful seek.
43877
43878 2007-12-12  Eric Blake  <ebb9@byu.net>
43879
43880         Allow circular dependency of separate libtests.a
43881         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43882         when use_libtests.
43883
43884 2007-12-11  Eric Blake  <ebb9@byu.net>
43885
43886         Fix bug with -0.0L in previous patch.
43887         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43888         * tests/test-isnan.c (main): Also test on zeroes.
43889         * tests/test-isnanf.c (main): Likewise.
43890         * tests/test-isnanl.h (main): Likewise.
43891
43892         Detect pseudo-denormals on x86 even when cross-compiling.
43893         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43894         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43895         invalid bit patterns that happen to satisfy ==.
43896
43897         Avoid link failures with separate libtests.a.
43898         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43899         last, to satisfy circular dependencies.
43900
43901 2007-12-11  Eric Blake  <ebb9@byu.net>
43902         and Bruno Haible  <bruno@clisp.org>
43903
43904         Fix OpenBSD 4.0 <float.h> handling of long double.
43905         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43906         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43907         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43908
43909 2007-12-11  Jim Meyering  <meyering@redhat.com>
43910
43911         * users.txt: Add libvirt.
43912
43913         Support versions of autoconf prior to 2.59c.
43914         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43915         if it is not already defined.
43916
43917 2007-12-09  Bruno Haible  <bruno@clisp.org>
43918
43919         Let 'gnulib-tool --import' collect sources needed for the tests in
43920         tests/ rather than in lib/.
43921         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43922         argument. If true, add rules to generate libtests.a, and put libtests.a
43923         into $(LDADD). Consider source files in subdirectories and set
43924         uses_subdirs.
43925         (func_emit_initmacro_start, func_emit_initmacro_end,
43926         func_emit_initmacro_done): Pass all arguments explicitly.
43927         (func_import): Determine two module lists main_modules,
43928         testsrelated_modules. Determine use_libtests. Determine two variables
43929         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43930         instead of just sed_transform_lib_file. Determine two variables
43931         main_files and testsrelated_files. Compute 'files' as the union of
43932         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43933         func_add_or_update. In the generated gnulib-comp.m4, collect the
43934         object files for tests/ in different variables than those for lib/.
43935         Substitute LIBTESTS_LIBDEPS.
43936         (func_create_testdir): Combine the uses_subdirs results from
43937         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43938
43939 2007-12-09  Bruno Haible  <bruno@clisp.org>
43940
43941         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43942         the build-aux directory.
43943
43944 2007-12-09  Bruno Haible  <bruno@clisp.org>
43945
43946         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43947         introduced on 2006-09-09.
43948
43949 2007-12-07  Jim Meyering  <meyering@redhat.com>
43950
43951         Let these macros work also with autoconf-2.59.
43952         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43953         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43954         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43955
43956 2007-12-06  Jim Meyering  <meyering@redhat.com>
43957
43958         Avoid a configure-time syntax error in gl_FUNC_ACL.
43959         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43960         function in each branch, before testing the cache variable.
43961
43962 2007-12-04  Eric Blake  <ebb9@byu.net>
43963
43964         Make scripts executable.
43965         * build-aux/config.guess: Add execute permissions.
43966         * build-aux/config.sub: Likewise.
43967         * build-aux/gendocs.sh: Likewise.
43968
43969         Fix frexp on mingw.
43970         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43971         cross-compiling.
43972         * doc/functions/frexp.texi (frexp): Document the bug.
43973
43974         Make cygwin fseeko check more reliable.
43975         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43976         version numbers, rather than unrelated feature check.
43977         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43978         * doc/functions/ftello.texi (ftello): Likewise.
43979         Reported by Bruno Haible.
43980
43981         * m4/strerror.m4: Bump version number.
43982
43983 2007-12-03  Bruno Haible  <bruno@clisp.org>
43984
43985         * doc/functions/mprotect.texi: Mention the mingw problem.
43986
43987 2007-12-03  Eric Blake  <ebb9@byu.net>
43988
43989         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43990         REPLACE_STRERROR is initialized before this macro.
43991
43992 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43993
43994         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43995         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43996         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43997         put -lsec in even for programs other than 'ls'.  This fixes a problem
43998         for gettext reported by Bruno Haible in
43999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44000         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44001         Add support for Solaris 10.  This isn't efficient, but should get the
44002         job done for now.
44003
44004 2007-12-03  James Youngman  <jay@gnu.org>
44005
44006         * doc/regexprops-generic.texi: change "an close-group" to "a
44007         close-group" and "illegal" to "not allowed".
44008
44009 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44010
44011         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44012         pr_byname.h. Needed for the rare case when the maintainer has done
44013         "make maintainer-clean" in the source directory and then attempts a
44014         build outside the source directory.
44015         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44016         scripts_byname.h.
44017
44018 2007-12-02  Martin Lambers <marlam@marlam.de>
44019             Bruno Haible  <bruno@clisp.org>
44020
44021         * lib/getpagesize.h: Remove file.
44022         * lib/unistd.in.h: Include declaration of getpagesize here.
44023         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44024         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44025         HAVE_SYS_PARAM_H.
44026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44027         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44028         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44029         (Depends-on): Add unistd.
44030         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44031         (Include): Use <unistd.h> instead of getpagesize.h.
44032         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44033         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44034         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44035         gl_GETPAGESIZE invocation, already handled by module dependency.
44036         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44037
44038 2007-12-02  Bruno Haible  <bruno@clisp.org>
44039
44040         * modules/strings-tests: New file.
44041         * tests/test-strings.c: New file.
44042
44043         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44044         * lib/strings.in.h: New file.
44045         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44046         * m4/strings_h.m4: New file.
44047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44048         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44049         * modules/strings: New file.
44050         * modules/string (Makefile.am): Update.
44051         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44052         Reported by Karl Berry.
44053
44054 2007-12-01  Eric Blake  <ebb9@byu.net>
44055
44056         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44057         accomodate fix in cygwin 1.5.25.
44058
44059 2007-12-01  Jim Meyering  <meyering@redhat.com>
44060
44061         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44062         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44063         that would inhibit utf8-optimization of a regexp containing line-
44064         or buffer-anchors, e.g., `^', `$'.
44065
44066 2007-11-30  Bruno Haible  <bruno@clisp.org>
44067
44068         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44069         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44070         glthread_recursive_lock_init.
44071         * lib/lock.c (glthread_recursive_lock_init)
44072         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44073         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44074
44075 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44076
44077         New function qset_acl, like set_acl but with syscall semantics.
44078         * lib/acl.h (qset_acl): New decl.
44079         * lib/acl.c (qset_acl): New function.
44080         (set_acl): Use new function.  Use more-consistent diagnostics.
44081
44082 2007-11-28  Jim Meyering  <meyering@redhat.com>
44083
44084         * modules/physmem (License): Change from GPL to LGPLv2+.
44085
44086 2007-11-26  Bruno Haible  <bruno@clisp.org>
44087
44088         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44089         'long double' type has excess precision.
44090         Reported by Jim Meyering in
44091         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44092
44093 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44094
44095         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44096         Sync from <http://gnu.org/licenses>.
44097         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44098         with license text from same location.
44099         * doc/maintain.texi, doc/standards.texi:  Sync from
44100         <http://savannah.gnu.org/projects/gnustandards>.
44101
44102 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44103         and Jim Meyering  <meyering@redhat.com>
44104
44105         Adjust getdate' grammar to accept a slightly more regular language.
44106         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44107         Before, the former was rejected.
44108         * lib/getdate.y (digits_to_date_time): New function, factored
44109         out of ...
44110         (number): ...here.  Just call digits_to_date_time.
44111         (hybrid): New non-terminal to handle an <unsigned number,
44112         signed relative offset> sequence consistently.
44113
44114 2007-11-18  Jim Meyering  <meyering@redhat.com>
44115
44116         Pull my changes from coreutils:
44117         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44118         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44119         use of $gnulib_tool_option_extras, so that it's separated from the
44120         preceding argument.
44121
44122         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44123         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44124         parent destination directories before copying a file into place.
44125
44126 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44127
44128         bootstrap: work also with 4-argument variant of AC_INIT
44129         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44130
44131 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44132
44133         Port test-getaddrinfo to Solaris.
44134         Problem reported by Bruno Haible in
44135         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44136         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44137         explanation of setting 'hints'.
44138         Don't reject an implementation merely because it returns EAI_SERVICE.
44139         (EAI_SERVICE): Define to 0 if not defined.
44140
44141 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44142
44143         The license of gnu-make and posix-shell is now "GPLed build tool".
44144         * modules/gnu-make (License): Likewise.
44145         * modules/posix-shell (License): Likewise.
44146
44147         New module posix-shell, for determining a POSIX shell
44148         or perhaps something that is close enough to a POSIX shell.
44149         * m4/posix-shell.m4: New file.
44150         * modules/posix-shell: New file.
44151
44152         * MODULES.html.sh: Mention new module.
44153
44154         New module gnu-make, for determining whether we're using GNU Make.
44155         * m4/gnu-make.m4: New file.
44156         * modules/gnu-make: New file.
44157         * MODULES.html.sh: Mention new module.
44158
44159 2007-11-14  Jim Meyering  <meyering@redhat.com>
44160
44161         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44162         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44163         use this macro to create a function _definition_.
44164         Remove useless "#undef ARGMATCH_DIE".
44165
44166 2007-11-14  Bruno Haible  <bruno@clisp.org>
44167
44168         * lib/config.charset: Update for OpenBSD 4.1.
44169         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44170
44171 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44172
44173         Document 64-bit #if problems in stdint.texi.
44174         * doc/headers/stdint.texi (stdint.h): Mention problems with
44175         64-bit-#if, and how to work around them.
44176
44177         Don't insist on 'long long int' support in the preprocessor.  It
44178         breaks too many things.  For example, PRIdMAX still uses a 'long
44179         long int' format with the latest Sun compiler, even though
44180         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44181         preprocessor problem.  This causes the latest coreutils to dump
44182         core on Solaris 10 sparc with the Sun C compiler.
44183         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44184         the troublesome expressions at configure-time, not at #if-time.
44185         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44186         preprocessor.
44187         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44188         compile-time C checks, done at 'configure'-time.
44189         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44190         * modules/inttypes (Makefile): Substitute the new symbols that
44191         gl_INTTYPES_H now generates.
44192         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44193
44194 2007-11-12  Bruno Haible  <bruno@clisp.org>
44195
44196         Tests for Unicode character classification functions.
44197
44198         * modules/unictype/bidicategory-byname-tests: New file.
44199         * modules/unictype/bidicategory-name-tests: New file.
44200         * modules/unictype/bidicategory-of-tests: New file.
44201         * modules/unictype/bidicategory-test-tests: New file.
44202         * modules/unictype/block-list-tests: New file.
44203         * modules/unictype/block-of-tests: New file.
44204         * modules/unictype/block-test-tests: New file.
44205         * modules/unictype/category-C-tests: New file.
44206         * modules/unictype/category-Cc-tests: New file.
44207         * modules/unictype/category-Cf-tests: New file.
44208         * modules/unictype/category-Cn-tests: New file.
44209         * modules/unictype/category-Co-tests: New file.
44210         * modules/unictype/category-Cs-tests: New file.
44211         * modules/unictype/category-L-tests: New file.
44212         * modules/unictype/category-Ll-tests: New file.
44213         * modules/unictype/category-Lm-tests: New file.
44214         * modules/unictype/category-Lo-tests: New file.
44215         * modules/unictype/category-Lt-tests: New file.
44216         * modules/unictype/category-Lu-tests: New file.
44217         * modules/unictype/category-M-tests: New file.
44218         * modules/unictype/category-Mc-tests: New file.
44219         * modules/unictype/category-Me-tests: New file.
44220         * modules/unictype/category-Mn-tests: New file.
44221         * modules/unictype/category-N-tests: New file.
44222         * modules/unictype/category-Nd-tests: New file.
44223         * modules/unictype/category-Nl-tests: New file.
44224         * modules/unictype/category-No-tests: New file.
44225         * modules/unictype/category-P-tests: New file.
44226         * modules/unictype/category-Pc-tests: New file.
44227         * modules/unictype/category-Pd-tests: New file.
44228         * modules/unictype/category-Pe-tests: New file.
44229         * modules/unictype/category-Pf-tests: New file.
44230         * modules/unictype/category-Pi-tests: New file.
44231         * modules/unictype/category-Po-tests: New file.
44232         * modules/unictype/category-Ps-tests: New file.
44233         * modules/unictype/category-S-tests: New file.
44234         * modules/unictype/category-Sc-tests: New file.
44235         * modules/unictype/category-Sk-tests: New file.
44236         * modules/unictype/category-Sm-tests: New file.
44237         * modules/unictype/category-So-tests: New file.
44238         * modules/unictype/category-Z-tests: New file.
44239         * modules/unictype/category-Zl-tests: New file.
44240         * modules/unictype/category-Zp-tests: New file.
44241         * modules/unictype/category-Zs-tests: New file.
44242         * modules/unictype/category-and-not-tests: New file.
44243         * modules/unictype/category-and-tests: New file.
44244         * modules/unictype/category-byname-tests: New file.
44245         * modules/unictype/category-name-tests: New file.
44246         * modules/unictype/category-none-tests: New file.
44247         * modules/unictype/category-of-tests: New file.
44248         * modules/unictype/category-or-tests: New file.
44249         * modules/unictype/category-test-withtable-tests: New file.
44250         * modules/unictype/combining-class-tests: New file.
44251         * modules/unictype/ctype-alnum-tests: New file.
44252         * modules/unictype/ctype-alpha-tests: New file.
44253         * modules/unictype/ctype-blank-tests: New file.
44254         * modules/unictype/ctype-cntrl-tests: New file.
44255         * modules/unictype/ctype-digit-tests: New file.
44256         * modules/unictype/ctype-graph-tests: New file.
44257         * modules/unictype/ctype-lower-tests: New file.
44258         * modules/unictype/ctype-print-tests: New file.
44259         * modules/unictype/ctype-punct-tests: New file.
44260         * modules/unictype/ctype-space-tests: New file.
44261         * modules/unictype/ctype-upper-tests: New file.
44262         * modules/unictype/ctype-xdigit-tests: New file.
44263         * modules/unictype/decimal-digit-tests: New file.
44264         * modules/unictype/digit-tests: New file.
44265         * modules/unictype/mirror-tests: New file.
44266         * modules/unictype/numeric-tests: New file.
44267         * modules/unictype/property-alphabetic-tests: New file.
44268         * modules/unictype/property-ascii-hex-digit-tests: New file.
44269         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44270         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44271         * modules/unictype/property-bidi-block-separator-tests: New file.
44272         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44273         * modules/unictype/property-bidi-common-separator-tests: New file.
44274         * modules/unictype/property-bidi-control-tests: New file.
44275         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44276         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44277         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44278         * modules/unictype/property-bidi-european-digit-tests: New file.
44279         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44280         * modules/unictype/property-bidi-left-to-right-tests: New file.
44281         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44282         * modules/unictype/property-bidi-other-neutral-tests: New file.
44283         * modules/unictype/property-bidi-pdf-tests: New file.
44284         * modules/unictype/property-bidi-segment-separator-tests: New file.
44285         * modules/unictype/property-bidi-whitespace-tests: New file.
44286         * modules/unictype/property-byname-tests: New file.
44287         * modules/unictype/property-combining-tests: New file.
44288         * modules/unictype/property-composite-tests: New file.
44289         * modules/unictype/property-currency-symbol-tests: New file.
44290         * modules/unictype/property-dash-tests: New file.
44291         * modules/unictype/property-decimal-digit-tests: New file.
44292         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44293         * modules/unictype/property-deprecated-tests: New file.
44294         * modules/unictype/property-diacritic-tests: New file.
44295         * modules/unictype/property-extender-tests: New file.
44296         * modules/unictype/property-format-control-tests: New file.
44297         * modules/unictype/property-grapheme-base-tests: New file.
44298         * modules/unictype/property-grapheme-extend-tests: New file.
44299         * modules/unictype/property-grapheme-link-tests: New file.
44300         * modules/unictype/property-hex-digit-tests: New file.
44301         * modules/unictype/property-hyphen-tests: New file.
44302         * modules/unictype/property-id-continue-tests: New file.
44303         * modules/unictype/property-id-start-tests: New file.
44304         * modules/unictype/property-ideographic-tests: New file.
44305         * modules/unictype/property-ids-binary-operator-tests: New file.
44306         * modules/unictype/property-ids-trinary-operator-tests: New file.
44307         * modules/unictype/property-ignorable-control-tests: New file.
44308         * modules/unictype/property-iso-control-tests: New file.
44309         * modules/unictype/property-join-control-tests: New file.
44310         * modules/unictype/property-left-of-pair-tests: New file.
44311         * modules/unictype/property-line-separator-tests: New file.
44312         * modules/unictype/property-logical-order-exception-tests: New file.
44313         * modules/unictype/property-lowercase-tests: New file.
44314         * modules/unictype/property-math-tests: New file.
44315         * modules/unictype/property-non-break-tests: New file.
44316         * modules/unictype/property-not-a-character-tests: New file.
44317         * modules/unictype/property-numeric-tests: New file.
44318         * modules/unictype/property-other-alphabetic-tests: New file.
44319         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44320         * modules/unictype/property-other-grapheme-extend-tests: New file.
44321         * modules/unictype/property-other-id-continue-tests: New file.
44322         * modules/unictype/property-other-id-start-tests: New file.
44323         * modules/unictype/property-other-lowercase-tests: New file.
44324         * modules/unictype/property-other-math-tests: New file.
44325         * modules/unictype/property-other-uppercase-tests: New file.
44326         * modules/unictype/property-paired-punctuation-tests: New file.
44327         * modules/unictype/property-paragraph-separator-tests: New file.
44328         * modules/unictype/property-pattern-syntax-tests: New file.
44329         * modules/unictype/property-pattern-white-space-tests: New file.
44330         * modules/unictype/property-private-use-tests: New file.
44331         * modules/unictype/property-punctuation-tests: New file.
44332         * modules/unictype/property-quotation-mark-tests: New file.
44333         * modules/unictype/property-radical-tests: New file.
44334         * modules/unictype/property-sentence-terminal-tests: New file.
44335         * modules/unictype/property-soft-dotted-tests: New file.
44336         * modules/unictype/property-space-tests: New file.
44337         * modules/unictype/property-terminal-punctuation-tests: New file.
44338         * modules/unictype/property-test-tests: New file.
44339         * modules/unictype/property-titlecase-tests: New file.
44340         * modules/unictype/property-unassigned-code-value-tests: New file.
44341         * modules/unictype/property-unified-ideograph-tests: New file.
44342         * modules/unictype/property-uppercase-tests: New file.
44343         * modules/unictype/property-variation-selector-tests: New file.
44344         * modules/unictype/property-white-space-tests: New file.
44345         * modules/unictype/property-xid-continue-tests: New file.
44346         * modules/unictype/property-xid-start-tests: New file.
44347         * modules/unictype/property-zero-width-tests: New file.
44348         * modules/unictype/scripts-tests: New file.
44349         * modules/unictype/syntax-c-ident-tests: New file.
44350         * modules/unictype/syntax-c-whitespace-tests: New file.
44351         * modules/unictype/syntax-java-ident-tests: New file.
44352         * modules/unictype/syntax-java-whitespace-tests: New file.
44353         * tests/unictype/test-bidi_byname.c: New file.
44354         * tests/unictype/test-bidi_name.c: New file.
44355         * tests/unictype/test-bidi_of.c: New file.
44356         * tests/unictype/test-bidi_test.c: New file.
44357         * tests/unictype/test-block_list.c: New file.
44358         * tests/unictype/test-block_of.c: New file.
44359         * tests/unictype/test-block_test.c: New file.
44360         * tests/unictype/test-categ_and.c: New file.
44361         * tests/unictype/test-categ_and_not.c: New file.
44362         * tests/unictype/test-categ_byname.c: New file.
44363         * tests/unictype/test-categ_name.c: New file.
44364         * tests/unictype/test-categ_none.c: New file.
44365         * tests/unictype/test-categ_of.c: New file.
44366         * tests/unictype/test-categ_or.c: New file.
44367         * tests/unictype/test-categ_test_withtable.c: New file.
44368         * tests/unictype/test-combining.c: New file.
44369         * tests/unictype/test-decdigit.c: New file.
44370         * tests/unictype/test-digit.c: New file.
44371         * tests/unictype/test-mirror.c: New file.
44372         * tests/unictype/test-numeric.c: New file.
44373         * tests/unictype/test-pr_byname.c: New file.
44374         * tests/unictype/test-pr_test.c: New file.
44375         * tests/unictype/test-predicate-part1.h: New file.
44376         * tests/unictype/test-predicate-part2.h: New file.
44377         * tests/unictype/test-scripts.c: New file.
44378         * tests/unictype/test-sy_c_ident.c: New file.
44379         * tests/unictype/test-sy_java_ident.c: New file.
44380
44381         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44382         for Unicode 5.0.0.
44383         * tests/unictype/test-categ_Cc.c: Likewise.
44384         * tests/unictype/test-categ_Cf.c: Likewise.
44385         * tests/unictype/test-categ_Cn.c: Likewise.
44386         * tests/unictype/test-categ_Co.c: Likewise.
44387         * tests/unictype/test-categ_Cs.c: Likewise.
44388         * tests/unictype/test-categ_L.c: Likewise.
44389         * tests/unictype/test-categ_Ll.c: Likewise.
44390         * tests/unictype/test-categ_Lm.c: Likewise.
44391         * tests/unictype/test-categ_Lo.c: Likewise.
44392         * tests/unictype/test-categ_Lt.c: Likewise.
44393         * tests/unictype/test-categ_Lu.c: Likewise.
44394         * tests/unictype/test-categ_M.c: Likewise.
44395         * tests/unictype/test-categ_Mc.c: Likewise.
44396         * tests/unictype/test-categ_Me.c: Likewise.
44397         * tests/unictype/test-categ_Mn.c: Likewise.
44398         * tests/unictype/test-categ_N.c: Likewise.
44399         * tests/unictype/test-categ_Nd.c: Likewise.
44400         * tests/unictype/test-categ_Nl.c: Likewise.
44401         * tests/unictype/test-categ_No.c: Likewise.
44402         * tests/unictype/test-categ_P.c: Likewise.
44403         * tests/unictype/test-categ_Pc.c: Likewise.
44404         * tests/unictype/test-categ_Pd.c: Likewise.
44405         * tests/unictype/test-categ_Pe.c: Likewise.
44406         * tests/unictype/test-categ_Pf.c: Likewise.
44407         * tests/unictype/test-categ_Pi.c: Likewise.
44408         * tests/unictype/test-categ_Po.c: Likewise.
44409         * tests/unictype/test-categ_Ps.c: Likewise.
44410         * tests/unictype/test-categ_S.c: Likewise.
44411         * tests/unictype/test-categ_Sc.c: Likewise.
44412         * tests/unictype/test-categ_Sk.c: Likewise.
44413         * tests/unictype/test-categ_Sm.c: Likewise.
44414         * tests/unictype/test-categ_So.c: Likewise.
44415         * tests/unictype/test-categ_Z.c: Likewise.
44416         * tests/unictype/test-categ_Zl.c: Likewise.
44417         * tests/unictype/test-categ_Zp.c: Likewise.
44418         * tests/unictype/test-categ_Zs.c: Likewise.
44419         * tests/unictype/test-ctype_alnum.c: Likewise.
44420         * tests/unictype/test-ctype_alpha.c: Likewise.
44421         * tests/unictype/test-ctype_blank.c: Likewise.
44422         * tests/unictype/test-ctype_cntrl.c: Likewise.
44423         * tests/unictype/test-ctype_digit.c: Likewise.
44424         * tests/unictype/test-ctype_graph.c: Likewise.
44425         * tests/unictype/test-ctype_lower.c: Likewise.
44426         * tests/unictype/test-ctype_print.c: Likewise.
44427         * tests/unictype/test-ctype_punct.c: Likewise.
44428         * tests/unictype/test-ctype_space.c: Likewise.
44429         * tests/unictype/test-ctype_upper.c: Likewise.
44430         * tests/unictype/test-ctype_xdigit.c: Likewise.
44431         * tests/unictype/test-decdigit.h: Likewise.
44432         * tests/unictype/test-digit.h: Likewise.
44433         * tests/unictype/test-numeric.h: Likewise.
44434         * tests/unictype/test-pr_alphabetic.c: Likewise.
44435         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44436         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44437         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44438         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44439         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44440         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44441         * tests/unictype/test-pr_bidi_control.c: Likewise.
44442         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44443         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44444         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44445         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44446         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44447         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44448         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44449         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44450         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44451         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44452         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44453         * tests/unictype/test-pr_combining.c: Likewise.
44454         * tests/unictype/test-pr_composite.c: Likewise.
44455         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44456         * tests/unictype/test-pr_dash.c: Likewise.
44457         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44458         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44459         * tests/unictype/test-pr_deprecated.c: Likewise.
44460         * tests/unictype/test-pr_diacritic.c: Likewise.
44461         * tests/unictype/test-pr_extender.c: Likewise.
44462         * tests/unictype/test-pr_format_control.c: Likewise.
44463         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44464         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44465         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44466         * tests/unictype/test-pr_hex_digit.c: Likewise.
44467         * tests/unictype/test-pr_hyphen.c: Likewise.
44468         * tests/unictype/test-pr_id_continue.c: Likewise.
44469         * tests/unictype/test-pr_id_start.c: Likewise.
44470         * tests/unictype/test-pr_ideographic.c: Likewise.
44471         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44472         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44473         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44474         * tests/unictype/test-pr_iso_control.c: Likewise.
44475         * tests/unictype/test-pr_join_control.c: Likewise.
44476         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44477         * tests/unictype/test-pr_line_separator.c: Likewise.
44478         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44479         * tests/unictype/test-pr_lowercase.c: Likewise.
44480         * tests/unictype/test-pr_math.c: Likewise.
44481         * tests/unictype/test-pr_non_break.c: Likewise.
44482         * tests/unictype/test-pr_not_a_character.c: Likewise.
44483         * tests/unictype/test-pr_numeric.c: Likewise.
44484         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44485         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44486         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44487         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44488         * tests/unictype/test-pr_other_id_start.c: Likewise.
44489         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44490         * tests/unictype/test-pr_other_math.c: Likewise.
44491         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44492         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44493         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44494         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44495         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44496         * tests/unictype/test-pr_private_use.c: Likewise.
44497         * tests/unictype/test-pr_punctuation.c: Likewise.
44498         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44499         * tests/unictype/test-pr_radical.c: Likewise.
44500         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44501         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44502         * tests/unictype/test-pr_space.c: Likewise.
44503         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44504         * tests/unictype/test-pr_titlecase.c: Likewise.
44505         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44506         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44507         * tests/unictype/test-pr_uppercase.c: Likewise.
44508         * tests/unictype/test-pr_variation_selector.c: Likewise.
44509         * tests/unictype/test-pr_white_space.c: Likewise.
44510         * tests/unictype/test-pr_xid_continue.c: Likewise.
44511         * tests/unictype/test-pr_xid_start.c: Likewise.
44512         * tests/unictype/test-pr_zero_width.c: Likewise.
44513         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44514         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44515
44516 2007-11-12  Bruno Haible  <bruno@clisp.org>
44517
44518         Unicode character classification functions.
44519         * lib/unictype.h: New file.
44520         * modules/unictype/base: New file.
44521         * modules/unictype/category-L: New file.
44522         * modules/unictype/category-Lu: New file.
44523         * modules/unictype/category-Ll: New file.
44524         * modules/unictype/category-Lt: New file.
44525         * modules/unictype/category-Lm: New file.
44526         * modules/unictype/category-Lo: New file.
44527         * modules/unictype/category-M: New file.
44528         * modules/unictype/category-Mn: New file.
44529         * modules/unictype/category-Mc: New file.
44530         * modules/unictype/category-Me: New file.
44531         * modules/unictype/category-N: New file.
44532         * modules/unictype/category-Nd: New file.
44533         * modules/unictype/category-Nl: New file.
44534         * modules/unictype/category-No: New file.
44535         * modules/unictype/category-P: New file.
44536         * modules/unictype/category-Pc: New file.
44537         * modules/unictype/category-Pd: New file.
44538         * modules/unictype/category-Ps: New file.
44539         * modules/unictype/category-Pe: New file.
44540         * modules/unictype/category-Pi: New file.
44541         * modules/unictype/category-Pf: New file.
44542         * modules/unictype/category-Po: New file.
44543         * modules/unictype/category-S: New file.
44544         * modules/unictype/category-Sm: New file.
44545         * modules/unictype/category-Sc: New file.
44546         * modules/unictype/category-Sk: New file.
44547         * modules/unictype/category-So: New file.
44548         * modules/unictype/category-Z: New file.
44549         * modules/unictype/category-Zs: New file.
44550         * modules/unictype/category-Zl: New file.
44551         * modules/unictype/category-Zp: New file.
44552         * modules/unictype/category-C: New file.
44553         * modules/unictype/category-Cc: New file.
44554         * modules/unictype/category-Cf: New file.
44555         * modules/unictype/category-Cs: New file.
44556         * modules/unictype/category-Co: New file.
44557         * modules/unictype/category-Cn: New file.
44558         * modules/unictype/category-or: New file.
44559         * modules/unictype/category-of: New file.
44560         * modules/unictype/category-test: New file.
44561         * modules/unictype/category-test-withtable: New file.
44562         * modules/unictype/category-byname: New file.
44563         * modules/unictype/category-none: New file.
44564         * modules/unictype/category-and: New file.
44565         * modules/unictype/category-and-not: New file.
44566         * modules/unictype/category-name: New file.
44567         * modules/unictype/combining-class: New file.
44568         * modules/unictype/category-all: New file.
44569         * modules/unictype/bidicategory-all: New file.
44570         * modules/unictype/bidicategory-byname: New file.
44571         * modules/unictype/bidicategory-name: New file.
44572         * modules/unictype/bidicategory-of: New file.
44573         * modules/unictype/bidicategory-test: New file.
44574         * modules/unictype/decimal-digit: New file.
44575         * modules/unictype/digit: New file.
44576         * modules/unictype/numeric: New file.
44577         * modules/unictype/mirror: New file.
44578         * modules/unictype/property-white-space: New file.
44579         * modules/unictype/property-alphabetic: New file.
44580         * modules/unictype/property-other-alphabetic: New file.
44581         * modules/unictype/property-not-a-character: New file.
44582         * modules/unictype/property-default-ignorable-code-point: New file.
44583         * modules/unictype/property-other-default-ignorable-code-point: New
44584         file.
44585         * modules/unictype/property-deprecated: New file.
44586         * modules/unictype/property-logical-order-exception: New file.
44587         * modules/unictype/property-variation-selector: New file.
44588         * modules/unictype/property-private-use: New file.
44589         * modules/unictype/property-unassigned-code-value: New file.
44590         * modules/unictype/property-uppercase: New file.
44591         * modules/unictype/property-other-uppercase: New file.
44592         * modules/unictype/property-lowercase: New file.
44593         * modules/unictype/property-other-lowercase: New file.
44594         * modules/unictype/property-titlecase: New file.
44595         * modules/unictype/property-soft-dotted: New file.
44596         * modules/unictype/property-id-start: New file.
44597         * modules/unictype/property-other-id-start: New file.
44598         * modules/unictype/property-id-continue: New file.
44599         * modules/unictype/property-other-id-continue: New file.
44600         * modules/unictype/property-xid-start: New file.
44601         * modules/unictype/property-xid-continue: New file.
44602         * modules/unictype/property-pattern-white-space: New file.
44603         * modules/unictype/property-pattern-syntax: New file.
44604         * modules/unictype/property-join-control: New file.
44605         * modules/unictype/property-grapheme-base: New file.
44606         * modules/unictype/property-grapheme-extend: New file.
44607         * modules/unictype/property-other-grapheme-extend: New file.
44608         * modules/unictype/property-grapheme-link: New file.
44609         * modules/unictype/property-bidi-control: New file.
44610         * modules/unictype/property-bidi-left-to-right: New file.
44611         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44612         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44613         * modules/unictype/property-bidi-european-digit: New file.
44614         * modules/unictype/property-bidi-eur-num-separator: New file.
44615         * modules/unictype/property-bidi-eur-num-terminator: New file.
44616         * modules/unictype/property-bidi-arabic-digit: New file.
44617         * modules/unictype/property-bidi-common-separator: New file.
44618         * modules/unictype/property-bidi-block-separator: New file.
44619         * modules/unictype/property-bidi-segment-separator: New file.
44620         * modules/unictype/property-bidi-whitespace: New file.
44621         * modules/unictype/property-bidi-non-spacing-mark: New file.
44622         * modules/unictype/property-bidi-boundary-neutral: New file.
44623         * modules/unictype/property-bidi-pdf: New file.
44624         * modules/unictype/property-bidi-embedding-or-override: New file.
44625         * modules/unictype/property-bidi-other-neutral: New file.
44626         * modules/unictype/property-hex-digit: New file.
44627         * modules/unictype/property-ascii-hex-digit: New file.
44628         * modules/unictype/property-ideographic: New file.
44629         * modules/unictype/property-unified-ideograph: New file.
44630         * modules/unictype/property-radical: New file.
44631         * modules/unictype/property-ids-binary-operator: New file.
44632         * modules/unictype/property-ids-trinary-operator: New file.
44633         * modules/unictype/property-zero-width: New file.
44634         * modules/unictype/property-space: New file.
44635         * modules/unictype/property-non-break: New file.
44636         * modules/unictype/property-iso-control: New file.
44637         * modules/unictype/property-format-control: New file.
44638         * modules/unictype/property-dash: New file.
44639         * modules/unictype/property-hyphen: New file.
44640         * modules/unictype/property-punctuation: New file.
44641         * modules/unictype/property-line-separator: New file.
44642         * modules/unictype/property-paragraph-separator: New file.
44643         * modules/unictype/property-quotation-mark: New file.
44644         * modules/unictype/property-sentence-terminal: New file.
44645         * modules/unictype/property-terminal-punctuation: New file.
44646         * modules/unictype/property-currency-symbol: New file.
44647         * modules/unictype/property-math: New file.
44648         * modules/unictype/property-other-math: New file.
44649         * modules/unictype/property-paired-punctuation: New file.
44650         * modules/unictype/property-left-of-pair: New file.
44651         * modules/unictype/property-combining: New file.
44652         * modules/unictype/property-composite: New file.
44653         * modules/unictype/property-decimal-digit: New file.
44654         * modules/unictype/property-numeric: New file.
44655         * modules/unictype/property-diacritic: New file.
44656         * modules/unictype/property-extender: New file.
44657         * modules/unictype/property-ignorable-control: New file.
44658         * modules/unictype/property-test: New file.
44659         * modules/unictype/property-byname: New file.
44660         * modules/unictype/property-all: New file.
44661         * modules/unictype/scripts: New file.
44662         * modules/unictype/scripts-all: New file.
44663         * modules/unictype/block-of: New file.
44664         * modules/unictype/block-test: New file.
44665         * modules/unictype/block-list: New file.
44666         * modules/unictype/block-all: New file.
44667         * modules/unictype/syntax-c-whitespace: New file.
44668         * modules/unictype/syntax-java-whitespace: New file.
44669         * modules/unictype/syntax-c-ident: New file.
44670         * modules/unictype/syntax-java-ident: New file.
44671         * modules/unictype/ctype-alnum: New file.
44672         * modules/unictype/ctype-alpha: New file.
44673         * modules/unictype/ctype-cntrl: New file.
44674         * modules/unictype/ctype-digit: New file.
44675         * modules/unictype/ctype-graph: New file.
44676         * modules/unictype/ctype-lower: New file.
44677         * modules/unictype/ctype-print: New file.
44678         * modules/unictype/ctype-punct: New file.
44679         * modules/unictype/ctype-space: New file.
44680         * modules/unictype/ctype-upper: New file.
44681         * modules/unictype/ctype-xdigit: New file.
44682         * modules/unictype/ctype-blank: New file.
44683         * lib/unictype/bidi_byname.c: New file.
44684         * lib/unictype/bidi_name.c: New file.
44685         * lib/unictype/bidi_of.c: New file.
44686         * lib/unictype/bidi_test.c: New file.
44687         * lib/unictype/bitmap.h: New file.
44688         * lib/unictype/block_test.c: New file.
44689         * lib/unictype/blocks.c: New file.
44690         * lib/unictype/categ_C.c: New file.
44691         * lib/unictype/categ_Cc.c: New file.
44692         * lib/unictype/categ_Cf.c: New file.
44693         * lib/unictype/categ_Cn.c: New file.
44694         * lib/unictype/categ_Co.c: New file.
44695         * lib/unictype/categ_Cs.c: New file.
44696         * lib/unictype/categ_L.c: New file.
44697         * lib/unictype/categ_Ll.c: New file.
44698         * lib/unictype/categ_Lm.c: New file.
44699         * lib/unictype/categ_Lo.c: New file.
44700         * lib/unictype/categ_Lt.c: New file.
44701         * lib/unictype/categ_Lu.c: New file.
44702         * lib/unictype/categ_M.c: New file.
44703         * lib/unictype/categ_Mc.c: New file.
44704         * lib/unictype/categ_Me.c: New file.
44705         * lib/unictype/categ_Mn.c: New file.
44706         * lib/unictype/categ_N.c: New file.
44707         * lib/unictype/categ_Nd.c: New file.
44708         * lib/unictype/categ_Nl.c: New file.
44709         * lib/unictype/categ_No.c: New file.
44710         * lib/unictype/categ_P.c: New file.
44711         * lib/unictype/categ_Pc.c: New file.
44712         * lib/unictype/categ_Pd.c: New file.
44713         * lib/unictype/categ_Pe.c: New file.
44714         * lib/unictype/categ_Pf.c: New file.
44715         * lib/unictype/categ_Pi.c: New file.
44716         * lib/unictype/categ_Po.c: New file.
44717         * lib/unictype/categ_Ps.c: New file.
44718         * lib/unictype/categ_S.c: New file.
44719         * lib/unictype/categ_Sc.c: New file.
44720         * lib/unictype/categ_Sk.c: New file.
44721         * lib/unictype/categ_Sm.c: New file.
44722         * lib/unictype/categ_So.c: New file.
44723         * lib/unictype/categ_Z.c: New file.
44724         * lib/unictype/categ_Zl.c: New file.
44725         * lib/unictype/categ_Zp.c: New file.
44726         * lib/unictype/categ_Zs.c: New file.
44727         * lib/unictype/categ_and.c: New file.
44728         * lib/unictype/categ_and_not.c: New file.
44729         * lib/unictype/categ_byname.c: New file.
44730         * lib/unictype/categ_name.c: New file.
44731         * lib/unictype/categ_none.c: New file.
44732         * lib/unictype/categ_of.c: New file.
44733         * lib/unictype/categ_or.c: New file.
44734         * lib/unictype/categ_test.c: New file.
44735         * lib/unictype/combining.c: New file.
44736         * lib/unictype/ctype_alnum.c: New file.
44737         * lib/unictype/ctype_alpha.c: New file.
44738         * lib/unictype/ctype_blank.c: New file.
44739         * lib/unictype/ctype_cntrl.c: New file.
44740         * lib/unictype/ctype_digit.c: New file.
44741         * lib/unictype/ctype_graph.c: New file.
44742         * lib/unictype/ctype_lower.c: New file.
44743         * lib/unictype/ctype_print.c: New file.
44744         * lib/unictype/ctype_punct.c: New file.
44745         * lib/unictype/ctype_space.c: New file.
44746         * lib/unictype/ctype_upper.c: New file.
44747         * lib/unictype/ctype_xdigit.c: New file.
44748         * lib/unictype/decdigit.c: New file.
44749         * lib/unictype/digit.c: New file.
44750         * lib/unictype/identsyntaxmap.h: New file.
44751         * lib/unictype/mirror.c: New file.
44752         * lib/unictype/numeric.c: New file.
44753         * lib/unictype/pr_alphabetic.c: New file.
44754         * lib/unictype/pr_ascii_hex_digit.c: New file.
44755         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44756         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44757         * lib/unictype/pr_bidi_block_separator.c: New file.
44758         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44759         * lib/unictype/pr_bidi_common_separator.c: New file.
44760         * lib/unictype/pr_bidi_control.c: New file.
44761         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44762         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44763         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44764         * lib/unictype/pr_bidi_european_digit.c: New file.
44765         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44766         * lib/unictype/pr_bidi_left_to_right.c: New file.
44767         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44768         * lib/unictype/pr_bidi_other_neutral.c: New file.
44769         * lib/unictype/pr_bidi_pdf.c: New file.
44770         * lib/unictype/pr_bidi_segment_separator.c: New file.
44771         * lib/unictype/pr_bidi_whitespace.c: New file.
44772         * lib/unictype/pr_byname.c: New file.
44773         * lib/unictype/pr_byname.gperf: New file.
44774         * lib/unictype/pr_combining.c: New file.
44775         * lib/unictype/pr_composite.c: New file.
44776         * lib/unictype/pr_currency_symbol.c: New file.
44777         * lib/unictype/pr_dash.c: New file.
44778         * lib/unictype/pr_decimal_digit.c: New file.
44779         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44780         * lib/unictype/pr_deprecated.c: New file.
44781         * lib/unictype/pr_diacritic.c: New file.
44782         * lib/unictype/pr_extender.c: New file.
44783         * lib/unictype/pr_format_control.c: New file.
44784         * lib/unictype/pr_grapheme_base.c: New file.
44785         * lib/unictype/pr_grapheme_extend.c: New file.
44786         * lib/unictype/pr_grapheme_link.c: New file.
44787         * lib/unictype/pr_hex_digit.c: New file.
44788         * lib/unictype/pr_hyphen.c: New file.
44789         * lib/unictype/pr_id_continue.c: New file.
44790         * lib/unictype/pr_id_start.c: New file.
44791         * lib/unictype/pr_ideographic.c: New file.
44792         * lib/unictype/pr_ids_binary_operator.c: New file.
44793         * lib/unictype/pr_ids_trinary_operator.c: New file.
44794         * lib/unictype/pr_ignorable_control.c: New file.
44795         * lib/unictype/pr_iso_control.c: New file.
44796         * lib/unictype/pr_join_control.c: New file.
44797         * lib/unictype/pr_left_of_pair.c: New file.
44798         * lib/unictype/pr_line_separator.c: New file.
44799         * lib/unictype/pr_logical_order_exception.c: New file.
44800         * lib/unictype/pr_lowercase.c: New file.
44801         * lib/unictype/pr_math.c: New file.
44802         * lib/unictype/pr_non_break.c: New file.
44803         * lib/unictype/pr_not_a_character.c: New file.
44804         * lib/unictype/pr_numeric.c: New file.
44805         * lib/unictype/pr_other_alphabetic.c: New file.
44806         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44807         * lib/unictype/pr_other_grapheme_extend.c: New file.
44808         * lib/unictype/pr_other_id_continue.c: New file.
44809         * lib/unictype/pr_other_id_start.c: New file.
44810         * lib/unictype/pr_other_lowercase.c: New file.
44811         * lib/unictype/pr_other_math.c: New file.
44812         * lib/unictype/pr_other_uppercase.c: New file.
44813         * lib/unictype/pr_paired_punctuation.c: New file.
44814         * lib/unictype/pr_paragraph_separator.c: New file.
44815         * lib/unictype/pr_pattern_syntax.c: New file.
44816         * lib/unictype/pr_pattern_white_space.c: New file.
44817         * lib/unictype/pr_private_use.c: New file.
44818         * lib/unictype/pr_punctuation.c: New file.
44819         * lib/unictype/pr_quotation_mark.c: New file.
44820         * lib/unictype/pr_radical.c: New file.
44821         * lib/unictype/pr_sentence_terminal.c: New file.
44822         * lib/unictype/pr_soft_dotted.c: New file.
44823         * lib/unictype/pr_space.c: New file.
44824         * lib/unictype/pr_terminal_punctuation.c: New file.
44825         * lib/unictype/pr_test.c: New file.
44826         * lib/unictype/pr_titlecase.c: New file.
44827         * lib/unictype/pr_unassigned_code_value.c: New file.
44828         * lib/unictype/pr_unified_ideograph.c: New file.
44829         * lib/unictype/pr_uppercase.c: New file.
44830         * lib/unictype/pr_variation_selector.c: New file.
44831         * lib/unictype/pr_white_space.c: New file.
44832         * lib/unictype/pr_xid_continue.c: New file.
44833         * lib/unictype/pr_xid_start.c: New file.
44834         * lib/unictype/pr_zero_width.c: New file.
44835         * lib/unictype/scripts.c: New file.
44836         * lib/unictype/sy_c_ident.c: New file.
44837         * lib/unictype/sy_c_whitespace.c: New file.
44838         * lib/unictype/sy_java_ident.c: New file.
44839         * lib/unictype/sy_java_whitespace.c: New file.
44840
44841         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44842         Unicode 5.0.0.
44843         * lib/unictype/blocks.h: Likewise.
44844         * lib/unictype/categ_C.h: Likewise.
44845         * lib/unictype/categ_Cc.h: Likewise.
44846         * lib/unictype/categ_Cf.h: Likewise.
44847         * lib/unictype/categ_Cn.h: Likewise.
44848         * lib/unictype/categ_Co.h: Likewise.
44849         * lib/unictype/categ_Cs.h: Likewise.
44850         * lib/unictype/categ_L.h: Likewise.
44851         * lib/unictype/categ_Ll.h: Likewise.
44852         * lib/unictype/categ_Lm.h: Likewise.
44853         * lib/unictype/categ_Lo.h: Likewise.
44854         * lib/unictype/categ_Lt.h: Likewise.
44855         * lib/unictype/categ_Lu.h: Likewise.
44856         * lib/unictype/categ_M.h: Likewise.
44857         * lib/unictype/categ_Mc.h: Likewise.
44858         * lib/unictype/categ_Me.h: Likewise.
44859         * lib/unictype/categ_Mn.h: Likewise.
44860         * lib/unictype/categ_N.h: Likewise.
44861         * lib/unictype/categ_Nd.h: Likewise.
44862         * lib/unictype/categ_Nl.h: Likewise.
44863         * lib/unictype/categ_No.h: Likewise.
44864         * lib/unictype/categ_P.h: Likewise.
44865         * lib/unictype/categ_Pc.h: Likewise.
44866         * lib/unictype/categ_Pd.h: Likewise.
44867         * lib/unictype/categ_Pe.h: Likewise.
44868         * lib/unictype/categ_Pf.h: Likewise.
44869         * lib/unictype/categ_Pi.h: Likewise.
44870         * lib/unictype/categ_Po.h: Likewise.
44871         * lib/unictype/categ_Ps.h: Likewise.
44872         * lib/unictype/categ_S.h: Likewise.
44873         * lib/unictype/categ_Sc.h: Likewise.
44874         * lib/unictype/categ_Sk.h: Likewise.
44875         * lib/unictype/categ_Sm.h: Likewise.
44876         * lib/unictype/categ_So.h: Likewise.
44877         * lib/unictype/categ_Z.h: Likewise.
44878         * lib/unictype/categ_Zl.h: Likewise.
44879         * lib/unictype/categ_Zp.h: Likewise.
44880         * lib/unictype/categ_Zs.h: Likewise.
44881         * lib/unictype/categ_of.h: Likewise.
44882         * lib/unictype/combining.h: Likewise.
44883         * lib/unictype/ctype_alnum.h: Likewise.
44884         * lib/unictype/ctype_alpha.h: Likewise.
44885         * lib/unictype/ctype_blank.h: Likewise.
44886         * lib/unictype/ctype_cntrl.h: Likewise.
44887         * lib/unictype/ctype_digit.h: Likewise.
44888         * lib/unictype/ctype_graph.h: Likewise.
44889         * lib/unictype/ctype_lower.h: Likewise.
44890         * lib/unictype/ctype_print.h: Likewise.
44891         * lib/unictype/ctype_punct.h: Likewise.
44892         * lib/unictype/ctype_space.h: Likewise.
44893         * lib/unictype/ctype_upper.h: Likewise.
44894         * lib/unictype/ctype_xdigit.h: Likewise.
44895         * lib/unictype/decdigit.h: Likewise.
44896         * lib/unictype/digit.h: Likewise.
44897         * lib/unictype/mirror.h: Likewise.
44898         * lib/unictype/numeric.h: Likewise.
44899         * lib/unictype/pr_alphabetic.h: Likewise.
44900         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44901         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44902         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44903         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44904         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44905         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44906         * lib/unictype/pr_bidi_control.h: Likewise.
44907         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44908         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44909         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44910         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44911         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44912         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44913         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44914         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44915         * lib/unictype/pr_bidi_pdf.h: Likewise.
44916         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44917         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44918         * lib/unictype/pr_combining.h: Likewise.
44919         * lib/unictype/pr_composite.h: Likewise.
44920         * lib/unictype/pr_currency_symbol.h: Likewise.
44921         * lib/unictype/pr_dash.h: Likewise.
44922         * lib/unictype/pr_decimal_digit.h: Likewise.
44923         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44924         * lib/unictype/pr_deprecated.h: Likewise.
44925         * lib/unictype/pr_diacritic.h: Likewise.
44926         * lib/unictype/pr_extender.h: Likewise.
44927         * lib/unictype/pr_format_control.h: Likewise.
44928         * lib/unictype/pr_grapheme_base.h: Likewise.
44929         * lib/unictype/pr_grapheme_extend.h: Likewise.
44930         * lib/unictype/pr_grapheme_link.h: Likewise.
44931         * lib/unictype/pr_hex_digit.h: Likewise.
44932         * lib/unictype/pr_hyphen.h: Likewise.
44933         * lib/unictype/pr_id_continue.h: Likewise.
44934         * lib/unictype/pr_id_start.h: Likewise.
44935         * lib/unictype/pr_ideographic.h: Likewise.
44936         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44937         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44938         * lib/unictype/pr_ignorable_control.h: Likewise.
44939         * lib/unictype/pr_iso_control.h: Likewise.
44940         * lib/unictype/pr_join_control.h: Likewise.
44941         * lib/unictype/pr_left_of_pair.h: Likewise.
44942         * lib/unictype/pr_line_separator.h: Likewise.
44943         * lib/unictype/pr_logical_order_exception.h: Likewise.
44944         * lib/unictype/pr_lowercase.h: Likewise.
44945         * lib/unictype/pr_math.h: Likewise.
44946         * lib/unictype/pr_non_break.h: Likewise.
44947         * lib/unictype/pr_not_a_character.h: Likewise.
44948         * lib/unictype/pr_numeric.h: Likewise.
44949         * lib/unictype/pr_other_alphabetic.h: Likewise.
44950         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44951         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44952         * lib/unictype/pr_other_id_continue.h: Likewise.
44953         * lib/unictype/pr_other_id_start.h: Likewise.
44954         * lib/unictype/pr_other_lowercase.h: Likewise.
44955         * lib/unictype/pr_other_math.h: Likewise.
44956         * lib/unictype/pr_other_uppercase.h: Likewise.
44957         * lib/unictype/pr_paired_punctuation.h: Likewise.
44958         * lib/unictype/pr_paragraph_separator.h: Likewise.
44959         * lib/unictype/pr_pattern_syntax.h: Likewise.
44960         * lib/unictype/pr_pattern_white_space.h: Likewise.
44961         * lib/unictype/pr_private_use.h: Likewise.
44962         * lib/unictype/pr_punctuation.h: Likewise.
44963         * lib/unictype/pr_quotation_mark.h: Likewise.
44964         * lib/unictype/pr_radical.h: Likewise.
44965         * lib/unictype/pr_sentence_terminal.h: Likewise.
44966         * lib/unictype/pr_soft_dotted.h: Likewise.
44967         * lib/unictype/pr_space.h: Likewise.
44968         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44969         * lib/unictype/pr_titlecase.h: Likewise.
44970         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44971         * lib/unictype/pr_unified_ideograph.h: Likewise.
44972         * lib/unictype/pr_uppercase.h: Likewise.
44973         * lib/unictype/pr_variation_selector.h: Likewise.
44974         * lib/unictype/pr_white_space.h: Likewise.
44975         * lib/unictype/pr_xid_continue.h: Likewise.
44976         * lib/unictype/pr_xid_start.h: Likewise.
44977         * lib/unictype/pr_zero_width.h: Likewise.
44978         * lib/unictype/scripts.h: Likewise.
44979         * lib/unictype/scripts_byname.gperf: Likewise.
44980         * lib/unictype/sy_c_ident.h: Likewise.
44981         * lib/unictype/sy_c_whitespace.h: Likewise.
44982         * lib/unictype/sy_java_ident.h: Likewise.
44983         * lib/unictype/sy_java_whitespace.h: Likewise.
44984
44985         * lib/unictype/Makefile: New file.
44986         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44987         glibc.
44988         * lib/unictype/3level.h: New file, copied from glibc.
44989         * lib/unictype/3levelbit.h: New file.
44990
44991 2007-11-11  Bruno Haible  <bruno@clisp.org>
44992
44993         * modules/gperf: New file.
44994         * modules/iconv_open (Depends-on): Add it.
44995         (Makefile.am): Remove the GPERF definition.
44996
44997 2007-11-11  Bruno Haible  <bruno@clisp.org>
44998
44999         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45000         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45001
45002 2007-11-11  Bruno Haible  <bruno@clisp.org>
45003
45004         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45005         (usage): Remove function.
45006
45007 2007-11-11  Bruno Haible  <bruno@clisp.org>
45008
45009         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45010         gl_FUNC_CEILF_LIBS.
45011         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45012         gl_FUNC_CEIL_LIBS.
45013         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45014         gl_FUNC_CEILL_LIBS.
45015         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45016         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45017         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45018
45019 2007-11-11  Bruno Haible  <bruno@clisp.org>
45020
45021         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45022         roundf were declared but do not exist on functions.
45023         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45024         roundl were declared but do not exist on functions.
45025         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45026         HAVE_FLOORL_AND_CEILL, respectively.
45027         Needed for Sun C on Solaris 10.
45028
45029 2007-11-11  Bruno Haible  <bruno@clisp.org>
45030
45031         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45032         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45033         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45034         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45035         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45036         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45037         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45038         HAVE_DECL_ROUNDF.
45039         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45040         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45042         of HAVE_DECL_ROUND*.
45043         * modules/math (Makefile.am): Update.
45044
45045 2007-11-10  Bruno Haible  <bruno@clisp.org>
45046
45047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45048         ptrdiff_t as m4/intl.m4.
45049
45050 2007-11-10  Jim Meyering  <meyering@redhat.com>
45051
45052         Avoid link failure for the argmatch test.
45053         * tests/test-argmatch.c (usage): Define function to avoid a link
45054         failure: argmatch_die requires a usage function.
45055
45056 2007-11-09  Bruno Haible  <bruno@clisp.org>
45057
45058         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45059         * doc/functions/vsnprintf.texi: Likewise.
45060         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45061         with a size argument < 2.
45062
45063 2007-11-09  Bruno Haible  <bruno@clisp.org>
45064
45065         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45066         buffer. Fixes an inefficiency introduced on 2007-11-03.
45067
45068 2007-11-09  Bruno Haible  <bruno@clisp.org>
45069
45070         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45071         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45072
45073 2007-11-08  Jim Meyering  <meyering@redhat.com>
45074
45075         Change cache variable name prefix "jm_" to "gl_" everywhere.
45076         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45077         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45078         * m4/uptime.m4: s/gl_/jm_/
45079
45080 2007-11-07  Bruno Haible  <bruno@clisp.org>
45081
45082         Update to GNU gettext 0.17.
45083         * m4/intl.m4: Update to GNU gettext 0.17.
45084         * m4/po.m4: Likewise.
45085         * modules/gettext (Files): Remove m4/ulonglong.m4.
45086         (configure.ac): Require gettext infrastructure from version 0.17.
45087
45088 2007-11-06  Bruno Haible  <bruno@clisp.org>
45089
45090         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45091         symbolic values are not defined in a public header.
45092         * lib/freadable.c (freadable) [QNX]: Likewise.
45093         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45094         * lib/freading.c (freading) [QNX]: Likewise.
45095         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45096         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45097         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45098         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45099         Reported by Alain Magloire.
45100
45101         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45102
45103 2007-11-05  Bruno Haible  <bruno@clisp.org>
45104
45105         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45106         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45107         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45108         Reported by Eric Blake.
45109
45110 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45111             Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45114         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45115         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45116         (malloc): Undefine also before including <stdlib.h>.
45117         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45118         Needed on OSF/1 4.0.
45119
45120 2007-11-05  Jim Meyering  <meyering@redhat.com>
45121
45122         git-version-gen: sync from coreutils.
45123         * build-aux/git-version-gen: Add comments.
45124         Change the first '-' to '.' in the snapshot version string,
45125         e.g., 6.9-377-08144 -> 6.9.377-08144
45126         Remove first parameter.
45127         Don't declare a version "-dirty" merely because a time
45128         stamp has changed.
45129
45130 2007-11-04  Bruno Haible  <bruno@clisp.org>
45131
45132         * lib/lock.h: Protect all macro definitions containing an 'if'
45133         statement through a "do { ... } while (0)".
45134         * lib/tls.h: Likewise.
45135
45136 2007-11-04  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45139
45140 2007-11-04  Bruno Haible  <bruno@clisp.org>
45141
45142         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45143         * modules/fprintf-posix (Depends-on): Add nocrash.
45144         * modules/snprintf-posix (Depends-on): Likewise.
45145         * modules/sprintf-posix (Depends-on): Likewise.
45146         * modules/vasnprintf-posix (Depends-on): Likewise.
45147         * modules/vasprintf-posix (Depends-on): Likewise.
45148         * modules/vfprintf-posix (Depends-on): Likewise.
45149         * modules/vsnprintf-posix (Depends-on): Likewise.
45150         * modules/vsprintf-posix (Depends-on): Likewise.
45151         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45152         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45153         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45154         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45155         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45156         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45157         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45158
45159 2007-11-04  Bruno Haible  <bruno@clisp.org>
45160
45161         * modules/nocrash: New file.
45162         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45163         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45164
45165 2007-11-04  Bruno Haible  <bruno@clisp.org>
45166
45167         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45168         precision handling.
45169         * tests/test-vasprintf-posix.c (test_function): Likewise.
45170         * tests/test-snprintf-posix.h (test_function): Likewise.
45171         * tests/test-sprintf-posix.h (test_function): Likewise.
45172
45173         Fix *printf behaviour for large precisions on mingw and BeOS.
45174         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45175         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45176         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45177         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45178         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45179         gl_PRINTF_PRECISION and test its result. Invoke
45180         gl_PREREQ_VASNPRINTF_PRECISION.
45181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45186         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45187         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45188         * doc/functions/fprintf.texi: Update.
45189         * doc/functions/printf.texi: Update.
45190         * doc/functions/snprintf.texi: Update.
45191         * doc/functions/sprintf.texi: Update.
45192         * doc/functions/vfprintf.texi: Update.
45193         * doc/functions/vprintf.texi: Update.
45194         * doc/functions/vsnprintf.texi: Update.
45195         * doc/functions/vsprintf.texi: Update.
45196
45197 2007-11-04  Bruno Haible  <bruno@clisp.org>
45198
45199         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45200
45201 2007-11-04  Bruno Haible  <bruno@clisp.org>
45202
45203         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45204         Reported by Sylvain Beucler <beuc@gnu.org>.
45205
45206 2007-11-03  Bruno Haible  <bruno@clisp.org>
45207
45208         * tests/test-fprintf-posix2.sh: New file.
45209         * tests/test-fprintf-posix2.c: New file.
45210         * modules/fprintf-posix-tests (Files): Add them.
45211         (TESTS): Add test-fprintf-posix2.sh.
45212         (configure.ac): Check for getrlimit and setrlimit.
45213         (check_PROGRAMS): Add test-fprintf-posix2.
45214
45215         * tests/test-printf-posix2.sh: New file.
45216         * tests/test-printf-posix2.c: New file.
45217         * modules/printf-posix-tests (Files): Add them.
45218         (TESTS): Add test-printf-posix2.sh.
45219         (configure.ac): Check for getrlimit and setrlimit.
45220         (check_PROGRAMS): Add test-printf-posix2.
45221
45222         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45223         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45224         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45225         (decode_double): New function, copied from decode_long_double.
45226         (scale10_round_decimal_decoded): New function, extracted from
45227         scale10_round_decimal_long_double.
45228         (scale10_round_decimal_long_double): Use it.
45229         (scale10_round_decimal_double): New function.
45230         (floorlog10): New function.
45231         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45233         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45234         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45235         gl_PRINTF_ENOMEM and test its result. Invoke
45236         gl_PREREQ_VASNPRINTF_ENOMEM.
45237         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45238         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45241         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45242         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45243         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45244         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45245         * modules/snprintf-posix (Depends-on): Likewise.
45246         * modules/sprintf-posix (Depends-on): Likewise.
45247         * modules/vasnprintf-posix (Depends-on): Likewise.
45248         * modules/vasprintf-posix (Depends-on): Likewise.
45249         * modules/vfprintf-posix (Depends-on): Likewise.
45250         * modules/vsnprintf-posix (Depends-on): Likewise.
45251         * modules/vsprintf-posix (Depends-on): Likewise.
45252         * doc/functions/fprintf.texi: Update.
45253         * doc/functions/printf.texi: Update.
45254         * doc/functions/snprintf.texi: Update.
45255         * doc/functions/sprintf.texi: Update.
45256         * doc/functions/vfprintf.texi: Update.
45257         * doc/functions/vprintf.texi: Update.
45258         * doc/functions/vsnprintf.texi: Update.
45259         * doc/functions/vsprintf.texi: Update.
45260
45261 2007-11-03  Bruno Haible  <bruno@clisp.org>
45262
45263         * modules/frexp-nolibm-tests: New file.
45264
45265         * modules/frexp-nolibm: New file.
45266         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45267
45268 2007-11-03  Bruno Haible  <bruno@clisp.org>
45269
45270         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45271         value is C99 compliant.
45272         Needed for OSF/1 5.1.
45273
45274 2007-11-03  Bruno Haible  <bruno@clisp.org>
45275
45276         Fix out-of-memory handling of vasnprintf.
45277         * lib/printf-parse.c: Include <errno.h>.
45278         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45279         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45280         is already set.
45281
45282 2007-11-02  Eric Blake  <ebb9@byu.net>
45283
45284         Fix tests on cygwin.
45285         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45286
45287 2007-11-01  Bruno Haible  <bruno@clisp.org>
45288
45289         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45290         warning.
45291         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45292         needed for POSIX compatibility.
45293
45294 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45295
45296         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45297         for compatibility with GNU.
45298
45299 2007-11-01  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45302         (putenv): Renamed from rpl_putenv. Change argument type from
45303         'const char *' to 'char *'.
45304         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45305         of defining putenv in config.h, just set REPLACE_PUTENV.
45306         * modules/putenv (Depends-on): Add stdlib.
45307         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45308         (Include): Use <stdlib.h>.
45309         * lib/stdlib.in.h (putenv): New declaration.
45310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45311         REPLACE_PUTENV.
45312         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45313         REPLACE_PUTENV.
45314         Needed for MacOS X 10.5.0.
45315         Reported by Peter O'Gorman <peter@pogma.com>.
45316
45317 2007-11-01  Jim Meyering  <meyering@redhat.com>
45318
45319         Treat an empty date string exactly like "0".
45320         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45321         if the remaining date string (to be parsed) is empty, use "0".
45322         Reported by Mischa Molhoek and discussed in this thread:
45323         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45324
45325 2007-10-31  Bruno Haible  <bruno@clisp.org>
45326
45327         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45328         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45329         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45330         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45331         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45332         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45333
45334 2007-10-31  Bruno Haible  <bruno@clisp.org>
45335
45336         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45337         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45338         (AC_TYPE_LONG_LONG_INT): Use it.
45339         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45340         it as well.
45341         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45342         to m4/longlong.m4.
45343         * modules/stdint (Files): Remove m4/ulonglong.m4.
45344         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45345         m4/ulonglong.m4.
45346         * modules/strtoumax (Files): Likewise.
45347
45348 2007-10-30  Bruno Haible  <bruno@clisp.org>
45349
45350         * modules/xvasprintf-posix: New file.
45351         Suggested by Eric Blake.
45352
45353 2007-10-30  Bruno Haible  <bruno@clisp.org>
45354
45355         * modules/xprintf-posix-tests: New file.
45356         * tests/test-xprintf-posix.sh: New file.
45357         * tests/test-xprintf-posix.c: New file.
45358         * tests/test-xfprintf-posix.c: New file.
45359
45360         * modules/xprintf-posix: New file.
45361
45362 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45363
45364         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45365         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45366         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45367
45368 2007-10-29  Bruno Haible  <bruno@clisp.org>
45369
45370         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45371         contain the special marker '_cv_'.
45372         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45373         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45374         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45375         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45376         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45377         Reported by Ralf Wildenhues.
45378
45379 2007-10-29  Bruno Haible  <bruno@clisp.org>
45380
45381         * gnulib-tool (func_import): When --lgpl is not specified, set
45382         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45383         GPLv3.
45384         Reported by Simon Josefsson.
45385
45386 2007-10-28  Bruno Haible  <bruno@clisp.org>
45387
45388         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45389         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45390         HAVE_DECL_ISFINITE.
45391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45392         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45393         HAVE_DECL_ISFINITE.
45394
45395 2007-10-28  Bruno Haible  <bruno@clisp.org>
45396
45397         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45398         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45399
45400 2007-10-28  Bruno Haible  <bruno@clisp.org>
45401
45402         Fix link errors with Sun C 5.0 on Solaris 10.
45403         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45404         function is declared but not present in the compiler's libm.
45405         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45406         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45407         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45408         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45409         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45410         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45411         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45413         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45414         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45415         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45416         HAVE_DECL_FLOORL.
45417
45418 2007-10-28  Bruno Haible  <bruno@clisp.org>
45419
45420         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45421         gl_FUNC_FLOORL. Cache the result.
45422         (gl_FUNC_FLOORL): Use it.
45423         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45424         gl_FUNC_CEILL. Cache the result.
45425         (gl_FUNC_CEILL): Use it.
45426
45427         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45428         gl_FUNC_FLOOR. Cache the result.
45429         (gl_FUNC_FLOOR): Use it.
45430         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45431         gl_FUNC_CEIL. Cache the result.
45432         (gl_FUNC_CEIL): Use it.
45433
45434         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45435         gl_FUNC_FLOORF. Cache the result.
45436         (gl_FUNC_FLOORF): Use it.
45437         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45438         gl_FUNC_CEILF. Cache the result.
45439         (gl_FUNC_CEILF): Use it.
45440
45441 2007-10-28  Bruno Haible  <bruno@clisp.org>
45442
45443         * gnulib-tool: Allow specifying the LGPL version number through
45444         --lgpl=2 or --lgpl=3.
45445         (func_usage): Document --lgpl with argument.
45446         Handle --lgpl=... arguments.
45447         (func_import): Recognize also gl_LGPL calls with an argument. When
45448         --lgpl=2 is used and the module's license is just LGPL, report an
45449         error. Set sed_transform_lib_file according to the lgpl variable. In
45450         the generated files, use --lgpl or gl_LGPL invocations with argument,
45451         if necessary.
45452         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45453         an LGPv2+ license.
45454         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45455         gl_LGPL macro.
45456
45457 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45458             Bruno Haible  <bruno@clisp.org>
45459
45460         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45461         (u16_uctomb_aux): Likewise.
45462         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45463         !HAVE_INLINE.
45464         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45465
45466 2007-10-28  Bruno Haible  <bruno@clisp.org>
45467
45468         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45469         Invoke AM_GETTEXT_OPTION if it exists.
45470         * modules/vasprintf: Likewise.
45471         * modules/verror: Likewise.
45472         * modules/xprintf: Likewise.
45473         * modules/xvasprintf: Likewise.
45474
45475 2007-10-27  Ben Pfaff  <blp@gnu.org>
45476
45477         * lib/math.in.h: Define isfinite macro and prototypes for
45478         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45479         implementations.
45480         * m4/math_h.m4: New substitutions for isfinite module.
45481         * lib/isfinite.c: New file.
45482         * m4/isfinite.m4: New file.
45483         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45484         * modules/isfinite: New file.
45485         * modules/isfinite-tests: New file.
45486         * tests/tests-isfinite.c: New file.
45487         * doc/functions/isfinite.texi: Mention isfinite module.
45488         * MODULES.html.sh: Mention new module.
45489
45490 2007-10-27  Ben Pfaff  <blp@gnu.org>
45491
45492         Ralf Wildenhues reported that Tru64 4.0D declares the round
45493         functions but does not have definitions.
45494         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45495         cannot be found in any library, set the output variable to
45496         "missing" instead of "".
45497         * m4/round.m4: Also use our substitute if we cannot find round in
45498         any library, even if it is declared.
45499         * m4/roundf.m4: Likewise for roundf.
45500         * m4/roundl.m4: Likewise for roundl.
45501         * lib/math.in.h: Undefine roundf, round, roundl before defining
45502         their replacements, to allow for hypothetical systems where these
45503         may be defined as macros but not available in libraries.
45504
45505 2007-10-27  Bruno Haible  <bruno@clisp.org>
45506
45507         * doc/gnulib.texi: Invoke @firstparagraphindent.
45508         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45509         changes in gnulib.
45510         (Source changes): New section.
45511
45512 2007-10-26  Bruno Haible  <bruno@clisp.org>
45513
45514         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45515         borrowed from autoconf.
45516
45517 2007-10-26  Bruno Haible  <bruno@clisp.org>
45518
45519         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45520         strerror returned the empty string. Needed on HP-UX 11.00.
45521
45522 2007-10-24  Micah Cowan  <micah@cowan.name>
45523
45524         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45525         * build-aux/bootstrap: Remove support for now-unnecessary option,
45526         --cvs-user, and envvars CVS_USER, CVS_RSH.
45527
45528 2007-10-24  Jim Meyering  <meyering@redhat.com>
45529
45530         Avoid diagnostics from sha1sum when there is no cached checksum.
45531         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45532         if the po.s1 file hasn't been created yet.
45533
45534         * build-aux/bootstrap: Sync from coreutils:
45535         2007-10-24  Jim Meyering  <meyering@redhat.com>
45536         Get gnulib from the git repository, not from an obsolete cvs one.
45537         * build-aux/bootstrap: Suggestion from Micah Cowan.
45538         2007-10-04  Jim Meyering  <jim@meyering.net>
45539         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45540         (update_po_files): Work also when there are no .po files in po/.
45541
45542 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45543
45544         * README: Append ".git" to git and cg examples.
45545         Problem reported by Benoit Sigoure.
45546
45547 2007-10-23  Micah Cowan  <micah@cowan.name>
45548
45549         * users.txt: Add wget.
45550
45551 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45552
45553         Fix linking of some unistdio tests on FreeBSD.
45554         * modules/unistdio/u16-vsnprintf-tests
45555         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45556         * modules/unistdio/u16-vsprintf-tests
45557         (test_u16_vsnprintf1_LDADD): Likewise.
45558         * modules/unistdio/u32-vsnprintf-tests
45559         (test_u32_vsnprintf1_LDADD): Likewise.
45560         * modules/unistdio/u32-vsprintf-tests
45561         (test_u32_vsprintf1_LDADD): Likewise.
45562         * modules/unistdio/u8-vsnprintf-tests
45563         (test_u8_vsnprintf1_LDADD): Likewise.
45564         * modules/unistdio/u8-vsprintf-tests
45565         (test_u8_vsprintf1_LDADD): Likewise.
45566         * modules/unistdio/ulc-vsnprintf-tests
45567         (test_ulc_vsnprintf1_LDADD): Likewise.
45568         * modules/unistdio/ulc-vsprintf-tests
45569         (test_ulc_vsprintf1_LDADD): Likewise.
45570
45571         Fix linking of some uniconv tests on FreeBSD.
45572         * modules/uniconv/u16-conv-from-enc-tests
45573         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45574         * modules/uniconv/u16-conv-to-enc-tests
45575         (test_u16_conv_to_enc_LDADD): Likewise.
45576         * modules/uniconv/u16-strconv-from-enc-tests
45577         (test_u16_strconv_from_enc_LDADD): Likewise.
45578         * modules/uniconv/u16-strconv-to-enc-tests
45579         (test_u16_strconv_to_enc_LDADD): Likewise.
45580         * modules/uniconv/u32-conv-from-enc-tests
45581         (test_u32_conv_from_enc_LDADD): Likewise.
45582         * modules/uniconv/u32-conv-to-enc-tests
45583         (test_u32_conv_to_enc_LDADD): Likewise.
45584         * modules/uniconv/u32-strconv-from-enc-tests
45585         (test_u32_strconv_from_enc_LDADD): Likewise.
45586         * modules/uniconv/u32-strconv-to-enc-tests
45587         (test_u32_strconv_to_enc_LDADD): Likewise.
45588         * modules/uniconv/u8-conv-from-enc-tests
45589         (test_u8_conv_from_enc_LDADD): Likewise.
45590         * modules/uniconv/u8-conv-to-enc-tests
45591         (test_u8_conv_to_enc_LDADD): Likewise.
45592         * modules/uniconv/u8-strconv-from-enc-tests
45593         (test_u8_strconv_from_enc_LDADD): Likewise.
45594         * modules/uniconv/u8-strconv-to-enc-tests
45595         (test_u8_strconv_to_enc_LDADD): Likewise.
45596
45597 2007-10-22  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45600         size.
45601
45602 2007-10-22  Eric Blake  <ebb9@byu.net>
45603
45604         Tweak x*printf documentation.
45605         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45606         variable name and comments.
45607         Suggested by Bruno Haible.
45608
45609 2007-10-22  Bruno Haible  <bruno@clisp.org>
45610
45611         * lib/acl.c (copy_acl): Fix file name in comment.
45612
45613 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45614
45615         Fix Tru64 problem with stdbool.h.
45616         * lib/stdbool.in.h (false, true):
45617         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45618         Don't declare as an enum in this situation; it runs afoul of Tru64.
45619         Problem reported by Steven M. Schweda in
45620         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45621
45622 2007-10-22  Eric Blake  <ebb9@byu.net>
45623
45624         Also wrap vf?printf.
45625         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45626         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45627         (xvprintf, xvfprintf): New functions.
45628
45629 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45630
45631         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45632         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45633
45634         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45635         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45636
45637 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45638
45639         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45640         by Bruno Haible.
45641
45642 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45643
45644         * lib/getloadavg.c
45645         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45646         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45647
45648         * tests/test-i-ring.c: Work for C89.
45649
45650 2007-10-22  Bruno Haible  <bruno@clisp.org>
45651
45652         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45653         -1u, in preprocessor expression, so that we don't test for the bug
45654         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45656
45657 2007-10-22  Eric Blake  <ebb9@byu.net>
45658
45659         * tests/test-yesno.sh: Silence stderr during test.
45660
45661 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45662
45663         * modules/crypto/gc-camellia: New file.
45664
45665         * m4/gc-camellia.m4: New file.
45666
45667         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45668
45669         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45670
45671 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45672
45673         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45674         --help to stdout.  Reported by sms@antinode.org (Steven
45675         M. Schweda).
45676
45677 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45678
45679         * users.txt: Fix link to libksba.
45680
45681 2007-10-21  Ben Pfaff  <blp@gnu.org>
45682
45683         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45684         round.c roundf implementation that depends on floorf and ceilf to
45685         be tested unconditionally.
45686
45687 2007-10-21  Ben Pfaff  <blp@gnu.org>
45688
45689         * m4/check-libm-func.m4: Removed.
45690         * m4/check-math-lib.m4: New file.
45691         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45692         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45693         definition and lack of AC_LIBOBJ([roundf]).
45694         * m4/roundl.m4: Ditto, and similarly for roundl.
45695         * modules/round: Reference new m4 file.
45696         * modules/roundf: Ditto.
45697         * modules/roundl: Ditto.
45698         * tests/test-round2.c (main): Use ROUND instead of round.
45699         Bug report from Bruno Haible.
45700
45701 2007-10-21  Bruno Haible  <bruno@clisp.org>
45702
45703         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45704         context.
45705
45706 2007-10-21  Bruno Haible  <bruno@clisp.org>
45707
45708         * tests/test-wcwidth.c (main): Allow negative result for some control
45709         characters.
45710
45711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45712         Needed on OSF/1 5.1.
45713
45714 2007-10-21  Bruno Haible  <bruno@clisp.org>
45715
45716         * tests/test-floorf1.c: Include isnanf.h.
45717         (main): Use isnanf() instead of isnan().
45718         * tests/test-ceilf1.c: Include isnanf.h.
45719         (main): Use isnanf() instead of isnan().
45720         * tests/test-truncf1.c: Include isnanf.h.
45721         (main): Use isnanf() instead of isnan().
45722         * tests/test-roundf1.c: Include isnanf.h.
45723         (main): Use isnanf() instead of isnan().
45724
45725 2007-10-21  Eric Blake  <ebb9@byu.net>
45726
45727         * users.txt: Update URL for m4.
45728
45729 2007-10-21  Bruno Haible  <bruno@clisp.org>
45730
45731         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45732
45733 2007-10-21  Bruno Haible  <bruno@clisp.org>
45734
45735         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45736         Git's management files if the CVS files are not present.
45737
45738 2007-10-20  Bruno Haible  <bruno@clisp.org>
45739
45740         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45741         gcc-3.4.x.
45742
45743 2007-10-20  Ben Pfaff  <blp@gnu.org>
45744
45745         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45746         implementations.
45747         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45748         * lib/round.c: New file.
45749         * lib/roundf.c: New file.
45750         * lib/roundl.c: New file.
45751         * m4/round.m4: New file.
45752         * m4/roundf.m4: New file.
45753         * m4/roundl.m4: New file.
45754         * m4/check-libm-func-m4: New file.
45755         * modules/math: Replace round, roundf, roundl related @VARS@ in
45756         math.in.h.
45757         * modules/round: New file.
45758         * modules/round-tests: New file.
45759         * modules/roundf: New file.
45760         * modules/roundf-tests: New file.
45761         * modules/roundl: New file.
45762         * modules/roundl-tests: New file.
45763         * tests/test-round1.c: New file.
45764         * tests/test-round2.c: New file.
45765         * tests/test-roundf1.c: New file.
45766         * tests/test-roundf2.c: New file.
45767         * tests/test-roundl.c: New file.
45768         * doc/functions/round.texi: Mention round module.
45769         * doc/functions/roundf.texi: Mention roundf module.
45770         * doc/functions/roundl.texi: Mention roundl module.
45771         * MODULES.html.sh: Mention new modules.
45772         Thanks to Bruno Haible for suggestions.
45773
45774 2007-10-20  Jim Meyering  <meyering@redhat.com>
45775
45776         * lib/xprintf.c: Include <config.h> unconditionally.
45777
45778         Change xprintf's license to GPL.
45779         * modules/xprintf (License): s/LGPL/GPL/, since this module
45780         depends on modules (exit and exitfail) which are GPL.
45781         Suggestion from Bruno Haible.
45782
45783         xprintf fixes.
45784         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45785         Use a clearer diagnostic.
45786         Patch from Bruno Haible.
45787
45788 2007-10-20  Bruno Haible  <bruno@clisp.org>
45789
45790         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45791         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45793
45794 2007-10-20  Bruno Haible  <bruno@clisp.org>
45795
45796         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45797         precision in the comparison result > x - 1 or similar.
45798         * tests/test-ceilf2.c (correct_result_p): Likewise.
45799         * tests/test-truncf2.c (correct_result_p): Likewise.
45800         * tests/test-trunc2.c (correct_result_p): Likewise.
45801         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45802
45803 2007-10-20  Bruno Haible  <bruno@clisp.org>
45804
45805         * modules/ceil: New file.
45806         * m4/ceil.m4: New file.
45807         * doc/functions/ceil.texi: Mention the 'ceil' module.
45808
45809 2007-10-20  Bruno Haible  <bruno@clisp.org>
45810
45811         * modules/floor: New file.
45812         * m4/floor.m4: New file.
45813         * doc/functions/floor.texi: Mention the 'floor' module.
45814
45815 2007-10-20  Bruno Haible  <bruno@clisp.org>
45816
45817         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45818         of %a.
45819         * modules/floorf-tests (Depends-on): Likewise.
45820         * modules/truncf-tests (Depends-on): Likewise.
45821         * modules/trunc-tests (Depends-on): Likewise.
45822         Reported by Ben Pfaff.
45823
45824 2007-10-19  Jim Meyering  <meyering@redhat.com>
45825
45826         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45827         Don't bother testing specific errno values.  Just test ferror.
45828
45829         New module: xprintf
45830         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45831
45832 2007-10-19  Bruno Haible  <bruno@clisp.org>
45833
45834         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45835         syntax.
45836         * modules/javaexec (Makefile.am): Likewise.
45837         * modules/relocatable-prog (Makefile.am): Likewise.
45838         Suggested by Jim Meyering.
45839
45840 2007-10-18  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45843         Reported by Jim Meyering.
45844
45845 2007-10-18  Eric Blake  <ebb9@byu.net>
45846
45847         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45848
45849 2007-10-18  Bruno Haible  <bruno@clisp.org>
45850
45851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45852         the format string into writable memory. Needed in Fortify conditions.
45853
45854 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45855             Bruno Haible  <bruno@clisp.org>
45856
45857         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45858         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45859         * modules/trim (Depends-on): Add mbchar.
45860         (configure.ac): Add gl_FUNC_MBRTOWC.
45861         (Makefile.am): Augment lib_SOURCES.
45862
45863 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45864
45865         Modify glob.c to use fstatat and dirfd, to simplify it.
45866         Suggested by Eric Blake.
45867         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45868         Don't include <stdbool.h>; not used.
45869         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45870         (link_exists_p): Simplify implementation, since we can now assume
45871         dirfd and fstatat.
45872         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45873
45874 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45875
45876         * gnulib-tool (func_get_dependencies): Fix sed script to
45877         match only tests.
45878
45879 2007-10-17  Bruno Haible  <bruno@clisp.org>
45880
45881         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45882         allow locale names without encoding suffix.
45883         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45884         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45885
45886 2007-10-16  Bruno Haible  <bruno@clisp.org>
45887
45888         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45889         * lib/getgroups.c (getgroups): Likewise.
45890         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45891
45892 2007-10-16  Bruno Haible  <bruno@clisp.org>
45893
45894         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45895         * modules/malloc-posix (License): Likewise.
45896         * modules/realloc-posix (License): Likewise.
45897         * modules/calloc-posix (License): Likewise.
45898         * modules/intprops (License): Change from GPL to LGPL, with
45899         Paul Eggert's approval.
45900
45901 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45902
45903         Merge glibc changes into lib/glob.c.
45904
45905         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45906         2007-10-15 04:59:03 UTC.  Here are the changes:
45907
45908         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45909
45910         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45911
45912         * lib/glob.c: Add some branch prediction throughout.
45913
45914         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45915
45916         [BZ #5103]
45917         * lib/glob.c (glob): Recognize patterns starting \/.
45918
45919         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45920
45921         [BZ #3996]
45922         * lib/glob.c (attribute_hidden): Define if not defined.
45923         (glob): Unescape dirname, filename or username when needed and not
45924         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45925         is NULL.  Handle unescaped [ in pattern without closing ].
45926         Don't pass GLOB_CHECK down to recursive glob for directories.
45927         (__glob_pattern_type): New function.
45928         (__glob_pattern_p): Implement using __glob_pattern_type.
45929         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45930         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45931         Remove unreachable code.
45932
45933         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45934
45935         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45936         explain why there are no leaks.
45937
45938         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45939
45940         [BZ #3253]
45941         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45942         time, rather allocate increasingly bigger arrays of pointers, if
45943         possible with alloca, if too large with malloc.
45944
45945 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45946
45947         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45948         Problem reported by H.Merijn Brand in
45949         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45950         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45951         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45952
45953 2007-10-15  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45956         with explicit rpl_ prefix.
45957         * lib/fopen.c (fopen): Likewise.
45958         * lib/freopen.c (freopen): Likewise.
45959         * lib/iconv.c (iconv): Likewise.
45960         * lib/iconv_close.c (iconv_close): Likewise.
45961
45962 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45963
45964         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45965
45966 2007-10-15  Bruno Haible  <bruno@clisp.org>
45967
45968         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45969         <stddef.h> instead of <stdlib.h> since we only need NULL.
45970         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45971
45972 2007-10-15  Bruno Haible  <bruno@clisp.org>
45973
45974         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45975         Replace paragraph talking about LIBOBJS.
45976         Reported by Colin Watson <cjwatson@debian.org>.
45977
45978 2007-10-15  Bruno Haible  <bruno@clisp.org>
45979
45980         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45981         <stdlib.h> before using NULL.
45982
45983 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45984
45985         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45986         Reported by Albert Chin <china@thewrittenword.com>.
45987
45988 2007-10-14  Bruno Haible  <bruno@clisp.org>
45989
45990         * modules/iconv_open-utf-tests: New file.
45991         * tests/test-iconv-utf.c: New file.
45992
45993         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45994         * modules/iconv_open-utf: New file.
45995         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45996         (iconv, iconv_close): New declarations.
45997         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45998         be defined.
45999         (iconv_open): Add special handling of conversion between UTF-8 and
46000         UTF-{16,32}{BE,LE}.
46001         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46002         * lib/iconv_close.c: New file.
46003         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46004         gl_FUNC_ICONV_OPEN.
46005         (gl_FUNC_ICONV_OPEN): Use it.
46006         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46007         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46008         and REPLACE_ICONV_UTF.
46009         * modules/iconv_open (Depends-on): Add c-strcase.
46010         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46011         ICONV_CONST.
46012         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46013
46014 2007-10-13  Albert Chin  <china@thewrittenword.com>
46015             Bruno Haible  <bruno@clisp.org>
46016
46017         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46018         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46019
46020 2007-10-13  Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46023         defined, use the ISO C99 inline semantics.
46024         * lib/argp.h (ARGP_EI): Likewise.
46025
46026 2007-10-13  Bruno Haible  <bruno@clisp.org>
46027
46028         Handle 'inline' change in gcc 4.3.0.
46029         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46030         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46031         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46032         argp_fmtstream_point): Disable 'extern' declaration if the function
46033         definition is going to be provided inline.
46034         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46035         semantics, not the ISO C99 inline semantics.
46036         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46037         'extern' declaration if the function definition is going to be provided
46038         inline.
46039         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46040         the GNU C inline semantics, not the ISO C99 inline semantics. With
46041         GCC 4.2, avoid a warning.
46042
46043 2007-10-13  Bruno Haible  <bruno@clisp.org>
46044
46045         * lib/freading.h (freading): Enable the use of __freading for
46046         glibc >= 2.7.
46047         * lib/freading.c (freading): Likewise.
46048
46049 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46050
46051         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46052         "warning: C99 inline functions are not supported; using GNU89".
46053
46054 2007-10-12  Bruno Haible  <bruno@clisp.org>
46055
46056         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46057         of 2.
46058         * tests/test-ceilf2.c: New file.
46059         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46060
46061         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46062         * modules/ceilf-tests: Update.
46063
46064 2007-10-12  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46067         of 2.
46068         * tests/test-floorf2.c: New file.
46069         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46070
46071         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46072         * modules/floorf-tests: Update.
46073
46074 2007-10-12  Bruno Haible  <bruno@clisp.org>
46075
46076         * tests/test-trunc2.c: New file.
46077         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46078
46079         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46080         * modules/trunc-tests: Update.
46081
46082 2007-10-12  Bruno Haible  <bruno@clisp.org>
46083
46084         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46085         of 2.
46086         * tests/test-truncf2.c: New file.
46087         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46088
46089         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46090         * modules/truncf-tests: Update.
46091
46092 2007-10-11  Eric Blake  <ebb9@byu.net>
46093
46094         Don't claim strerror is broken on Interix.
46095         * doc/functions/strerror.texi (strerror): Known broken systems are
46096         now Solaris 8, and not Interix.
46097         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46098         Interix on cross-compile.
46099         Reported by Martin Koeppe in
46100         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46101
46102 2007-10-11  Bruno Haible  <bruno@clisp.org>
46103
46104         * modules/i-ring-tests: New file.
46105         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46106         instead of assert.
46107
46108 2007-10-11  Bruno Haible  <bruno@clisp.org>
46109
46110         * modules/filenamecat-tests: New file.
46111         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46112         * lib/filenamecat.c: Remove test code.
46113
46114 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46115
46116         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46117
46118         * lib/strerror.c: Include <string.h> always, to test interface,
46119         and to remove the need for the dummy.
46120         Include intprops.h to compute width instead of doing it ourselves
46121         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46122         (strerror): Define it to return NULL if there's no system strerror.
46123         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46124         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46125         ancient pre-strerror Unix systems well any more.  Saying "unknown
46126         system error" is enough.
46127         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46128         simpler strerror.c implementation.
46129         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46130         Simplify the tests to reflect the simpler strerror implementation.
46131         * modules/strerror (Depends-on): Add intprops.
46132
46133 2007-10-09  Eric Blake  <ebb9@byu.net>
46134
46135         Silence test-fpending.
46136         * modules/fpending-tests (Files): Add wrapper script.
46137         * tests/test-fpending.sh: New file.
46138
46139 2007-10-09  Bruno Haible  <bruno@clisp.org>
46140
46141         * MODULES.html.sh (func_module): Don't create a hyperlink for
46142         function names like 'printf_frexp'.
46143         (Misc): Add crc, memxor.
46144         (Characteristics of floating types): New section.
46145         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46146         isnanf-nolibm, signbit, trunc, truncf, truncl.
46147         (Enhancements for ISO C 99 functions): New subsection Input/output.
46148         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46149         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46150         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46151         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46152         (Enhancements for POSIX:2001 functions): Add chdir-long.
46153         (File system functions): Add areadlink, chdir-safer, read-file.
46154         Remove cycle-check.
46155         (File system as inode set): New section.
46156         (Date and time): Add gethrxtime.
46157         (Multithreading): Add openmp.
46158         (Internationalization functions): Add localename.
46159         (Unicode string functions): Add unistr/u*-mbsnlen.
46160         (Support for maintaining and releasing projects): Add git-version-gen.
46161         (Lone files): Remove directories.
46162
46163 2007-10-08  Ben Pfaff  <blp@gnu.org>
46164
46165         * lib/xmalloca.h: Fix typo in comment.
46166
46167 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46168
46169         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46170         when avoiding problems with integer overflow.  Use a portable test
46171         instead.
46172
46173 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46174
46175         * modules/dummy (License): Change to LGPLv2+.
46176         * modules/float (License): Likewise
46177         * modules/realloc (License): Likewise
46178         * modules/stdlib (License): Likewise
46179
46180 2007-10-07  Bruno Haible  <bruno@clisp.org>
46181
46182         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46183         * floor.c (TWO_MANT_DIG): Likewise.
46184         * ceil.c (TWO_MANT_DIG): Likewise.
46185         Reported by Ben Pfaff.
46186
46187 2007-10-07  Bruno Haible  <bruno@clisp.org>
46188
46189         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46190         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46191         * lib/frexp.c (FUNC): Likewise.
46192         * lib/printf-frexp.h (printf_frexp): Likewise.
46193         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46194         * lib/printf-frexp.c (FUNC): Likewise.
46195         Suggested by Jim Meyering.
46196
46197 2007-10-07  Jim Meyering  <meyering@redhat.com>
46198
46199         Make xnanosleep's integer overflow test more robust.
46200         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46201         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46202
46203 2007-10-07  Bruno Haible  <bruno@clisp.org>
46204
46205         * NEWS: Mention the license change.
46206
46207         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46208         abbreviations in the modules files.
46209
46210         Change copyright notice from GPLv2+ to GPLv3+.
46211         * README: Change copyright notice.
46212         * MODULES.html.sh: Likewise.
46213         * build-aux/bootstrap.conf: Likewise.
46214         * build-aux/config.libpath: Likewise.
46215         * build-aux/csharpcomp.sh.in: Likewise.
46216         * build-aux/csharpexec.sh.in: Likewise.
46217         * build-aux/install-reloc: Likewise.
46218         * build-aux/javacomp.sh.in: Likewise.
46219         * build-aux/javaexec.sh.in: Likewise.
46220         * build-aux/ldd.sh.in: Likewise.
46221         * build-aux/reloc-ldflags: Likewise.
46222         * build-aux/relocatable.sh.in: Likewise.
46223         * build-aux/x-to-1.in: Likewise.
46224         * check-module: Likewise.
46225         * config/srclistvars.sh: Likewise.
46226         * gnulib-tool: Likewise.
46227         * lib/acl-internal.h: Likewise.
46228         * lib/acl.c: Likewise.
46229         * lib/acl.h: Likewise.
46230         * lib/acl_entries.c: Likewise.
46231         * lib/areadlink-with-size.c: Likewise.
46232         * lib/areadlink.c: Likewise.
46233         * lib/areadlink.h: Likewise.
46234         * lib/argmatch.c: Likewise.
46235         * lib/argmatch.h: Likewise.
46236         * lib/argp-ba.c: Likewise.
46237         * lib/argp-eexst.c: Likewise.
46238         * lib/argp-fmtstream.c: Likewise.
46239         * lib/argp-fmtstream.h: Likewise.
46240         * lib/argp-fs-xinl.c: Likewise.
46241         * lib/argp-help.c: Likewise.
46242         * lib/argp-namefrob.h: Likewise.
46243         * lib/argp-parse.c: Likewise.
46244         * lib/argp-pin.c: Likewise.
46245         * lib/argp-pv.c: Likewise.
46246         * lib/argp-pvh.c: Likewise.
46247         * lib/argp-xinl.c: Likewise.
46248         * lib/argp.h: Likewise.
46249         * lib/at-func.c: Likewise.
46250         * lib/atanl.c: Likewise.
46251         * lib/backupfile.c: Likewise.
46252         * lib/backupfile.h: Likewise.
46253         * lib/basename.c: Likewise.
46254         * lib/binary-io.h: Likewise.
46255         * lib/byteswap.in.h: Likewise.
46256         * lib/c-stack.c: Likewise.
46257         * lib/c-stack.h: Likewise.
46258         * lib/c-strcasestr.c: Likewise.
46259         * lib/c-strcasestr.h: Likewise.
46260         * lib/c-strstr.c: Likewise.
46261         * lib/c-strstr.h: Likewise.
46262         * lib/c-strtod.c: Likewise.
46263         * lib/calloc.c: Likewise.
46264         * lib/canon-host.c: Likewise.
46265         * lib/canon-host.h: Likewise.
46266         * lib/canonicalize-lgpl.c: Likewise.
46267         * lib/canonicalize.c: Likewise.
46268         * lib/canonicalize.h: Likewise.
46269         * lib/ceil.c: Likewise.
46270         * lib/ceilf.c: Likewise.
46271         * lib/ceill.c: Likewise.
46272         * lib/chdir-long.c: Likewise.
46273         * lib/chdir-long.h: Likewise.
46274         * lib/chdir-safer.c: Likewise.
46275         * lib/chdir-safer.h: Likewise.
46276         * lib/chown.c: Likewise.
46277         * lib/classpath.c: Likewise.
46278         * lib/classpath.h: Likewise.
46279         * lib/clean-temp.c: Likewise.
46280         * lib/clean-temp.h: Likewise.
46281         * lib/cloexec.c: Likewise.
46282         * lib/close-stream.c: Likewise.
46283         * lib/closein.c: Likewise.
46284         * lib/closein.h: Likewise.
46285         * lib/closeout.c: Likewise.
46286         * lib/closeout.h: Likewise.
46287         * lib/concat-filename.c: Likewise.
46288         * lib/copy-file.c: Likewise.
46289         * lib/copy-file.h: Likewise.
46290         * lib/count-one-bits.h: Likewise.
46291         * lib/crc.c: Likewise.
46292         * lib/crc.h: Likewise.
46293         * lib/creat-safer.c: Likewise.
46294         * lib/csharpcomp.c: Likewise.
46295         * lib/csharpcomp.h: Likewise.
46296         * lib/csharpexec.c: Likewise.
46297         * lib/csharpexec.h: Likewise.
46298         * lib/cycle-check.c: Likewise.
46299         * lib/cycle-check.h: Likewise.
46300         * lib/diacrit.c: Likewise.
46301         * lib/diacrit.h: Likewise.
46302         * lib/diffseq.h: Likewise.
46303         * lib/dirchownmod.c: Likewise.
46304         * lib/dirent.in.h: Likewise.
46305         * lib/dirfd.c: Likewise.
46306         * lib/dirfd.h: Likewise.
46307         * lib/dirname.c: Likewise.
46308         * lib/dirname.h: Likewise.
46309         * lib/dummy.c: Likewise.
46310         * lib/dup-safer.c: Likewise.
46311         * lib/dup2.c: Likewise.
46312         * lib/eealloc.h: Likewise.
46313         * lib/error.c: Likewise.
46314         * lib/error.h: Likewise.
46315         * lib/euidaccess.c: Likewise.
46316         * lib/exclude.c: Likewise.
46317         * lib/exclude.h: Likewise.
46318         * lib/execute.c: Likewise.
46319         * lib/execute.h: Likewise.
46320         * lib/exitfail.c: Likewise.
46321         * lib/exitfail.h: Likewise.
46322         * lib/expl.c: Likewise.
46323         * lib/fatal-signal.c: Likewise.
46324         * lib/fatal-signal.h: Likewise.
46325         * lib/fbufmode.c: Likewise.
46326         * lib/fbufmode.h: Likewise.
46327         * lib/fchdir.c: Likewise.
46328         * lib/fchmodat.c: Likewise.
46329         * lib/fchownat.c: Likewise.
46330         * lib/fcntl--.h: Likewise.
46331         * lib/fcntl-safer.h: Likewise.
46332         * lib/fcntl.in.h: Likewise.
46333         * lib/fd-safer.c: Likewise.
46334         * lib/fflush.c: Likewise.
46335         * lib/file-has-acl.c: Likewise.
46336         * lib/file-set.c: Likewise.
46337         * lib/file-type.c: Likewise.
46338         * lib/file-type.h: Likewise.
46339         * lib/fileblocks.c: Likewise.
46340         * lib/filemode.c: Likewise.
46341         * lib/filemode.h: Likewise.
46342         * lib/filename.h: Likewise.
46343         * lib/filenamecat.c: Likewise.
46344         * lib/filenamecat.h: Likewise.
46345         * lib/findprog.c: Likewise.
46346         * lib/findprog.h: Likewise.
46347         * lib/float.in.h: Likewise.
46348         * lib/floor.c: Likewise.
46349         * lib/floorf.c: Likewise.
46350         * lib/floorl.c: Likewise.
46351         * lib/fopen-safer.c: Likewise.
46352         * lib/fopen.c: Likewise.
46353         * lib/fpending.c: Likewise.
46354         * lib/fpending.h: Likewise.
46355         * lib/fprintf.c: Likewise.
46356         * lib/fprintftime.h: Likewise.
46357         * lib/fpucw.h: Likewise.
46358         * lib/fpurge.c: Likewise.
46359         * lib/fpurge.h: Likewise.
46360         * lib/freadable.c: Likewise.
46361         * lib/freadable.h: Likewise.
46362         * lib/freadahead.c: Likewise.
46363         * lib/freadahead.h: Likewise.
46364         * lib/freading.c: Likewise.
46365         * lib/freading.h: Likewise.
46366         * lib/free.c: Likewise.
46367         * lib/freopen.c: Likewise.
46368         * lib/frexp.c: Likewise.
46369         * lib/frexpl.c: Likewise.
46370         * lib/fseek.c: Likewise.
46371         * lib/fseterr.c: Likewise.
46372         * lib/fseterr.h: Likewise.
46373         * lib/fstatat.c: Likewise.
46374         * lib/fstrcmp.c: Likewise.
46375         * lib/fstrcmp.h: Likewise.
46376         * lib/fsusage.c: Likewise.
46377         * lib/fsusage.h: Likewise.
46378         * lib/ftell.c: Likewise.
46379         * lib/ftello.c: Likewise.
46380         * lib/fts-cycle.c: Likewise.
46381         * lib/fts.c: Likewise.
46382         * lib/fts_.h: Likewise.
46383         * lib/full-read.c: Likewise.
46384         * lib/full-read.h: Likewise.
46385         * lib/full-write.c: Likewise.
46386         * lib/full-write.h: Likewise.
46387         * lib/fwritable.c: Likewise.
46388         * lib/fwritable.h: Likewise.
46389         * lib/fwriteerror.c: Likewise.
46390         * lib/fwriteerror.h: Likewise.
46391         * lib/fwriting.c: Likewise.
46392         * lib/fwriting.h: Likewise.
46393         * lib/gcd.c: Likewise.
46394         * lib/gcd.h: Likewise.
46395         * lib/getcwd.c: Likewise.
46396         * lib/getdate.h: Likewise.
46397         * lib/getdate.y: Likewise.
46398         * lib/getdomainname.c: Likewise.
46399         * lib/getdomainname.h: Likewise.
46400         * lib/getgroups.c: Likewise.
46401         * lib/gethostname.c: Likewise.
46402         * lib/gethrxtime.c: Likewise.
46403         * lib/gethrxtime.h: Likewise.
46404         * lib/getloadavg.c: Likewise.
46405         * lib/getndelim2.c: Likewise.
46406         * lib/getndelim2.h: Likewise.
46407         * lib/getnline.c: Likewise.
46408         * lib/getnline.h: Likewise.
46409         * lib/getopt.c: Likewise.
46410         * lib/getopt.in.h: Likewise.
46411         * lib/getopt1.c: Likewise.
46412         * lib/getopt_int.h: Likewise.
46413         * lib/getpagesize.h: Likewise.
46414         * lib/getsubopt.c: Likewise.
46415         * lib/gettime.c: Likewise.
46416         * lib/getugroups.c: Likewise.
46417         * lib/getugroups.h: Likewise.
46418         * lib/getusershell.c: Likewise.
46419         * lib/gl_anyavltree_list1.h: Likewise.
46420         * lib/gl_anyavltree_list2.h: Likewise.
46421         * lib/gl_anyhash_list1.h: Likewise.
46422         * lib/gl_anyhash_list2.h: Likewise.
46423         * lib/gl_anylinked_list1.h: Likewise.
46424         * lib/gl_anylinked_list2.h: Likewise.
46425         * lib/gl_anyrbtree_list1.h: Likewise.
46426         * lib/gl_anyrbtree_list2.h: Likewise.
46427         * lib/gl_anytree_list1.h: Likewise.
46428         * lib/gl_anytree_list2.h: Likewise.
46429         * lib/gl_anytree_oset.h: Likewise.
46430         * lib/gl_anytreehash_list1.h: Likewise.
46431         * lib/gl_anytreehash_list2.h: Likewise.
46432         * lib/gl_array_list.c: Likewise.
46433         * lib/gl_array_list.h: Likewise.
46434         * lib/gl_array_oset.c: Likewise.
46435         * lib/gl_array_oset.h: Likewise.
46436         * lib/gl_avltree_list.c: Likewise.
46437         * lib/gl_avltree_list.h: Likewise.
46438         * lib/gl_avltree_oset.c: Likewise.
46439         * lib/gl_avltree_oset.h: Likewise.
46440         * lib/gl_avltreehash_list.c: Likewise.
46441         * lib/gl_avltreehash_list.h: Likewise.
46442         * lib/gl_carray_list.c: Likewise.
46443         * lib/gl_carray_list.h: Likewise.
46444         * lib/gl_linked_list.c: Likewise.
46445         * lib/gl_linked_list.h: Likewise.
46446         * lib/gl_linkedhash_list.c: Likewise.
46447         * lib/gl_linkedhash_list.h: Likewise.
46448         * lib/gl_list.c: Likewise.
46449         * lib/gl_list.h: Likewise.
46450         * lib/gl_oset.c: Likewise.
46451         * lib/gl_oset.h: Likewise.
46452         * lib/gl_rbtree_list.c: Likewise.
46453         * lib/gl_rbtree_list.h: Likewise.
46454         * lib/gl_rbtree_oset.c: Likewise.
46455         * lib/gl_rbtree_oset.h: Likewise.
46456         * lib/gl_rbtreehash_list.c: Likewise.
46457         * lib/gl_rbtreehash_list.h: Likewise.
46458         * lib/gl_sublist.c: Likewise.
46459         * lib/gl_sublist.h: Likewise.
46460         * lib/group-member.c: Likewise.
46461         * lib/group-member.h: Likewise.
46462         * lib/hard-locale.c: Likewise.
46463         * lib/hard-locale.h: Likewise.
46464         * lib/hash-pjw.c: Likewise.
46465         * lib/hash-pjw.h: Likewise.
46466         * lib/hash-triple.c: Likewise.
46467         * lib/hash.c: Likewise.
46468         * lib/hash.h: Likewise.
46469         * lib/human.c: Likewise.
46470         * lib/human.h: Likewise.
46471         * lib/i-ring.c: Likewise.
46472         * lib/i-ring.h: Likewise.
46473         * lib/idcache.c: Likewise.
46474         * lib/imaxabs.c: Likewise.
46475         * lib/imaxdiv.c: Likewise.
46476         * lib/inet_pton.c: Likewise.
46477         * lib/inet_pton.h: Likewise.
46478         * lib/intprops.h: Likewise.
46479         * lib/inttostr.c: Likewise.
46480         * lib/inttostr.h: Likewise.
46481         * lib/inttypes.in.h: Likewise.
46482         * lib/isapipe.c: Likewise.
46483         * lib/isdir.c: Likewise.
46484         * lib/isnan.c: Likewise.
46485         * lib/isnan.h: Likewise.
46486         * lib/isnanf.c: Likewise.
46487         * lib/isnanf.h: Likewise.
46488         * lib/isnanl-nolibm.h: Likewise.
46489         * lib/isnanl.c: Likewise.
46490         * lib/isnanl.h: Likewise.
46491         * lib/javacomp.c: Likewise.
46492         * lib/javacomp.h: Likewise.
46493         * lib/javaexec.c: Likewise.
46494         * lib/javaexec.h: Likewise.
46495         * lib/javaversion.c: Likewise.
46496         * lib/javaversion.h: Likewise.
46497         * lib/javaversion.java: Likewise.
46498         * lib/lbrkprop.h: Likewise.
46499         * lib/lchmod.h: Likewise.
46500         * lib/lchown.c: Likewise.
46501         * lib/ldexpl.c: Likewise.
46502         * lib/linebreak.c: Likewise.
46503         * lib/linebreak.h: Likewise.
46504         * lib/linebuffer.c: Likewise.
46505         * lib/linebuffer.h: Likewise.
46506         * lib/locale.in.h: Likewise.
46507         * lib/logl.c: Likewise.
46508         * lib/long-options.c: Likewise.
46509         * lib/long-options.h: Likewise.
46510         * lib/lstat.c: Likewise.
46511         * lib/lstat.h: Likewise.
46512         * lib/math.in.h: Likewise.
46513         * lib/mbchar.c: Likewise.
46514         * lib/mbchar.h: Likewise.
46515         * lib/mbfile.h: Likewise.
46516         * lib/mbiter.h: Likewise.
46517         * lib/mbscasecmp.c: Likewise.
46518         * lib/mbscasestr.c: Likewise.
46519         * lib/mbschr.c: Likewise.
46520         * lib/mbscspn.c: Likewise.
46521         * lib/mbslen.c: Likewise.
46522         * lib/mbsncasecmp.c: Likewise.
46523         * lib/mbsnlen.c: Likewise.
46524         * lib/mbspbrk.c: Likewise.
46525         * lib/mbspcasecmp.c: Likewise.
46526         * lib/mbsrchr.c: Likewise.
46527         * lib/mbssep.c: Likewise.
46528         * lib/mbsspn.c: Likewise.
46529         * lib/mbsstr.c: Likewise.
46530         * lib/mbstok_r.c: Likewise.
46531         * lib/mbswidth.c: Likewise.
46532         * lib/mbswidth.h: Likewise.
46533         * lib/mbuiter.h: Likewise.
46534         * lib/memcasecmp.c: Likewise.
46535         * lib/memcasecmp.h: Likewise.
46536         * lib/memchr.c: Likewise.
46537         * lib/memcmp.c: Likewise.
46538         * lib/memcoll.c: Likewise.
46539         * lib/memcoll.h: Likewise.
46540         * lib/memcpy.c: Likewise.
46541         * lib/memrchr.c: Likewise.
46542         * lib/mkancesdirs.c: Likewise.
46543         * lib/mkdir-p.c: Likewise.
46544         * lib/mkdir-p.h: Likewise.
46545         * lib/mkdir.c: Likewise.
46546         * lib/mkdirat.c: Likewise.
46547         * lib/mkdtemp.c: Likewise.
46548         * lib/mkstemp-safer.c: Likewise.
46549         * lib/mkstemp.c: Likewise.
46550         * lib/modechange.c: Likewise.
46551         * lib/modechange.h: Likewise.
46552         * lib/mountlist.c: Likewise.
46553         * lib/mountlist.h: Likewise.
46554         * lib/mpsort.c: Likewise.
46555         * lib/nanosleep.c: Likewise.
46556         * lib/obstack.c: Likewise.
46557         * lib/obstack.h: Likewise.
46558         * lib/open-safer.c: Likewise.
46559         * lib/open.c: Likewise.
46560         * lib/openat-die.c: Likewise.
46561         * lib/openat-priv.h: Likewise.
46562         * lib/openat-proc.c: Likewise.
46563         * lib/openat.c: Likewise.
46564         * lib/openat.h: Likewise.
46565         * lib/pagealign_alloc.c: Likewise.
46566         * lib/pagealign_alloc.h: Likewise.
46567         * lib/physmem.c: Likewise.
46568         * lib/physmem.h: Likewise.
46569         * lib/pipe-safer.c: Likewise.
46570         * lib/pipe.c: Likewise.
46571         * lib/pipe.h: Likewise.
46572         * lib/posixtm.c: Likewise.
46573         * lib/posixtm.h: Likewise.
46574         * lib/posixver.c: Likewise.
46575         * lib/printf-frexp.c: Likewise.
46576         * lib/printf-frexp.h: Likewise.
46577         * lib/printf-frexpl.c: Likewise.
46578         * lib/printf-frexpl.h: Likewise.
46579         * lib/printf.c: Likewise.
46580         * lib/progname.c: Likewise.
46581         * lib/progname.h: Likewise.
46582         * lib/progreloc.c: Likewise.
46583         * lib/putenv.c: Likewise.
46584         * lib/quote.c: Likewise.
46585         * lib/quote.h: Likewise.
46586         * lib/quotearg.c: Likewise.
46587         * lib/quotearg.h: Likewise.
46588         * lib/raise.c: Likewise.
46589         * lib/readline.c: Likewise.
46590         * lib/readline.h: Likewise.
46591         * lib/readlink.c: Likewise.
46592         * lib/readtokens.c: Likewise.
46593         * lib/readtokens.h: Likewise.
46594         * lib/readtokens0.c: Likewise.
46595         * lib/readtokens0.h: Likewise.
46596         * lib/readutmp.c: Likewise.
46597         * lib/readutmp.h: Likewise.
46598         * lib/realloc.c: Likewise.
46599         * lib/relocwrapper.c: Likewise.
46600         * lib/rename-dest-slash.c: Likewise.
46601         * lib/rename.c: Likewise.
46602         * lib/rmdir.c: Likewise.
46603         * lib/rpmatch.c: Likewise.
46604         * lib/safe-read.c: Likewise.
46605         * lib/safe-read.h: Likewise.
46606         * lib/safe-write.c: Likewise.
46607         * lib/safe-write.h: Likewise.
46608         * lib/same-inode.h: Likewise.
46609         * lib/same.c: Likewise.
46610         * lib/same.h: Likewise.
46611         * lib/save-cwd.c: Likewise.
46612         * lib/save-cwd.h: Likewise.
46613         * lib/savedir.c: Likewise.
46614         * lib/savedir.h: Likewise.
46615         * lib/savewd.c: Likewise.
46616         * lib/savewd.h: Likewise.
46617         * lib/search.in.h: Likewise.
46618         * lib/setenv.c: Likewise.
46619         * lib/setenv.h: Likewise.
46620         * lib/settime.c: Likewise.
46621         * lib/sh-quote.c: Likewise.
46622         * lib/sh-quote.h: Likewise.
46623         * lib/sig2str.c: Likewise.
46624         * lib/sig2str.h: Likewise.
46625         * lib/signal.in.h: Likewise.
46626         * lib/signbitd.c: Likewise.
46627         * lib/signbitf.c: Likewise.
46628         * lib/signbitl.c: Likewise.
46629         * lib/sigprocmask.c: Likewise.
46630         * lib/sincosl.c: Likewise.
46631         * lib/sleep.c: Likewise.
46632         * lib/sprintf.c: Likewise.
46633         * lib/sqrtl.c: Likewise.
46634         * lib/stat-time.h: Likewise.
46635         * lib/stdio--.h: Likewise.
46636         * lib/stdio-safer.h: Likewise.
46637         * lib/stdlib--.h: Likewise.
46638         * lib/stdlib-safer.h: Likewise.
46639         * lib/stdlib.in.h: Likewise.
46640         * lib/stpcpy.c: Likewise.
46641         * lib/stpncpy.c: Likewise.
46642         * lib/strchrnul.c: Likewise.
46643         * lib/strcspn.c: Likewise.
46644         * lib/strerror.c: Likewise.
46645         * lib/strftime.c: Likewise.
46646         * lib/strftime.h: Likewise.
46647         * lib/striconveh.c: Likewise.
46648         * lib/striconveh.h: Likewise.
46649         * lib/striconveha.c: Likewise.
46650         * lib/striconveha.h: Likewise.
46651         * lib/stripslash.c: Likewise.
46652         * lib/strnlen1.c: Likewise.
46653         * lib/strnlen1.h: Likewise.
46654         * lib/strtod.c: Likewise.
46655         * lib/strtoimax.c: Likewise.
46656         * lib/strtok_r.c: Likewise.
46657         * lib/strtol.c: Likewise.
46658         * lib/strtoll.c: Likewise.
46659         * lib/strtoul.c: Likewise.
46660         * lib/strtoull.c: Likewise.
46661         * lib/sysexits.in.h: Likewise.
46662         * lib/tempname.c: Likewise.
46663         * lib/tempname.h: Likewise.
46664         * lib/timespec.h: Likewise.
46665         * lib/tls.c: Likewise.
46666         * lib/tls.h: Likewise.
46667         * lib/tmpdir.c: Likewise.
46668         * lib/tmpdir.h: Likewise.
46669         * lib/tmpfile-safer.c: Likewise.
46670         * lib/tmpfile.c: Likewise.
46671         * lib/trigl.c: Likewise.
46672         * lib/trigl.h: Likewise.
46673         * lib/trim.c: Likewise.
46674         * lib/trim.h: Likewise.
46675         * lib/trunc.c: Likewise.
46676         * lib/truncf.c: Likewise.
46677         * lib/truncl.c: Likewise.
46678         * lib/tsearch.c: Likewise.
46679         * lib/unicodeio.c: Likewise.
46680         * lib/unicodeio.h: Likewise.
46681         * lib/unistd--.h: Likewise.
46682         * lib/unistd-safer.h: Likewise.
46683         * lib/unistdio/ulc-fprintf.c: Likewise.
46684         * lib/unistdio/ulc-vfprintf.c: Likewise.
46685         * lib/unlinkdir.c: Likewise.
46686         * lib/unlinkdir.h: Likewise.
46687         * lib/unlocked-io.h: Likewise.
46688         * lib/unsetenv.c: Likewise.
46689         * lib/userspec.c: Likewise.
46690         * lib/utime.c: Likewise.
46691         * lib/utimecmp.c: Likewise.
46692         * lib/utimecmp.h: Likewise.
46693         * lib/utimens.c: Likewise.
46694         * lib/verify.h: Likewise.
46695         * lib/verror.c: Likewise.
46696         * lib/verror.h: Likewise.
46697         * lib/version-etc-fsf.c: Likewise.
46698         * lib/version-etc.c: Likewise.
46699         * lib/version-etc.h: Likewise.
46700         * lib/vfprintf.c: Likewise.
46701         * lib/vprintf.c: Likewise.
46702         * lib/vsprintf.c: Likewise.
46703         * lib/w32spawn.h: Likewise.
46704         * lib/wait-process.c: Likewise.
46705         * lib/wait-process.h: Likewise.
46706         * lib/wcwidth.c: Likewise.
46707         * lib/write-any-file.c: Likewise.
46708         * lib/xalloc-die.c: Likewise.
46709         * lib/xalloc.h: Likewise.
46710         * lib/xasprintf.c: Likewise.
46711         * lib/xgetcwd.c: Likewise.
46712         * lib/xgetcwd.h: Likewise.
46713         * lib/xgetdomainname.c: Likewise.
46714         * lib/xgetdomainname.h: Likewise.
46715         * lib/xgethostname.c: Likewise.
46716         * lib/xmalloc.c: Likewise.
46717         * lib/xmalloca.c: Likewise.
46718         * lib/xmalloca.h: Likewise.
46719         * lib/xmemcoll.c: Likewise.
46720         * lib/xnanosleep.c: Likewise.
46721         * lib/xreadlink.c: Likewise.
46722         * lib/xreadlink.h: Likewise.
46723         * lib/xsetenv.c: Likewise.
46724         * lib/xsetenv.h: Likewise.
46725         * lib/xstriconv.c: Likewise.
46726         * lib/xstriconv.h: Likewise.
46727         * lib/xstrndup.c: Likewise.
46728         * lib/xstrndup.h: Likewise.
46729         * lib/xstrtod.c: Likewise.
46730         * lib/xstrtod.h: Likewise.
46731         * lib/xstrtol-error.c: Likewise.
46732         * lib/xstrtol.c: Likewise.
46733         * lib/xstrtol.h: Likewise.
46734         * lib/xtime.h: Likewise.
46735         * lib/xvasprintf.c: Likewise.
46736         * lib/xvasprintf.h: Likewise.
46737         * lib/yesno.c: Likewise.
46738         * lib/yesno.h: Likewise.
46739         * posix-modules: Likewise.
46740         * tests/test-alloca-opt.c: Likewise.
46741         * tests/test-arcfour.c: Likewise.
46742         * tests/test-arctwo.c: Likewise.
46743         * tests/test-argmatch.c: Likewise.
46744         * tests/test-argp-2.sh: Likewise.
46745         * tests/test-argp.c: Likewise.
46746         * tests/test-arpa_inet.c: Likewise.
46747         * tests/test-array_list.c: Likewise.
46748         * tests/test-array_oset.c: Likewise.
46749         * tests/test-atexit.c: Likewise.
46750         * tests/test-avltree_list.c: Likewise.
46751         * tests/test-avltree_oset.c: Likewise.
46752         * tests/test-avltreehash_list.c: Likewise.
46753         * tests/test-base64.c: Likewise.
46754         * tests/test-binary-io.c: Likewise.
46755         * tests/test-byteswap.c: Likewise.
46756         * tests/test-c-ctype.c: Likewise.
46757         * tests/test-c-strcasecmp.c: Likewise.
46758         * tests/test-c-strcasestr.c: Likewise.
46759         * tests/test-c-strncasecmp.c: Likewise.
46760         * tests/test-c-strstr.c: Likewise.
46761         * tests/test-canonicalize-lgpl.c: Likewise.
46762         * tests/test-canonicalize.c: Likewise.
46763         * tests/test-carray_list.c: Likewise.
46764         * tests/test-ceilf.c: Likewise.
46765         * tests/test-ceill.c: Likewise.
46766         * tests/test-count-one-bits.c: Likewise.
46767         * tests/test-crc.c: Likewise.
46768         * tests/test-dirname.c: Likewise.
46769         * tests/test-fbufmode.c: Likewise.
46770         * tests/test-fcntl.c: Likewise.
46771         * tests/test-fflush.c: Likewise.
46772         * tests/test-floorf.c: Likewise.
46773         * tests/test-floorl.c: Likewise.
46774         * tests/test-fopen.c: Likewise.
46775         * tests/test-fprintf-posix.c: Likewise.
46776         * tests/test-fprintf-posix.h: Likewise.
46777         * tests/test-fpurge.c: Likewise.
46778         * tests/test-freadable.c: Likewise.
46779         * tests/test-freadahead.c: Likewise.
46780         * tests/test-freading.c: Likewise.
46781         * tests/test-freopen.c: Likewise.
46782         * tests/test-frexp.c: Likewise.
46783         * tests/test-frexpl.c: Likewise.
46784         * tests/test-fseek.c: Likewise.
46785         * tests/test-fseeko.c: Likewise.
46786         * tests/test-fseterr.c: Likewise.
46787         * tests/test-fstrcmp.c: Likewise.
46788         * tests/test-ftell.c: Likewise.
46789         * tests/test-ftello.c: Likewise.
46790         * tests/test-fwritable.c: Likewise.
46791         * tests/test-fwriting.c: Likewise.
46792         * tests/test-getaddrinfo.c: Likewise.
46793         * tests/test-getpass.c: Likewise.
46794         * tests/test-gettimeofday.c: Likewise.
46795         * tests/test-hmac-md5.c: Likewise.
46796         * tests/test-hmac-sha1.c: Likewise.
46797         * tests/test-iconv.c: Likewise.
46798         * tests/test-iconvme.c: Likewise.
46799         * tests/test-inttypes.c: Likewise.
46800         * tests/test-isnan.c: Likewise.
46801         * tests/test-isnanf.c: Likewise.
46802         * tests/test-isnanl-nolibm.c: Likewise.
46803         * tests/test-isnanl.c: Likewise.
46804         * tests/test-isnanl.h: Likewise.
46805         * tests/test-ldexpl.c: Likewise.
46806         * tests/test-linked_list.c: Likewise.
46807         * tests/test-linkedhash_list.c: Likewise.
46808         * tests/test-locale.c: Likewise.
46809         * tests/test-localename.c: Likewise.
46810         * tests/test-lock.c: Likewise.
46811         * tests/test-lseek.c: Likewise.
46812         * tests/test-malloca.c: Likewise.
46813         * tests/test-math.c: Likewise.
46814         * tests/test-mbscasecmp.c: Likewise.
46815         * tests/test-mbscasestr1.c: Likewise.
46816         * tests/test-mbscasestr2.c: Likewise.
46817         * tests/test-mbscasestr3.c: Likewise.
46818         * tests/test-mbscasestr4.c: Likewise.
46819         * tests/test-mbschr.c: Likewise.
46820         * tests/test-mbscspn.c: Likewise.
46821         * tests/test-mbsncasecmp.c: Likewise.
46822         * tests/test-mbspbrk.c: Likewise.
46823         * tests/test-mbspcasecmp.c: Likewise.
46824         * tests/test-mbsrchr.c: Likewise.
46825         * tests/test-mbsspn.c: Likewise.
46826         * tests/test-mbsstr1.c: Likewise.
46827         * tests/test-mbsstr2.c: Likewise.
46828         * tests/test-mbsstr3.c: Likewise.
46829         * tests/test-md5.c: Likewise.
46830         * tests/test-memmem.c: Likewise.
46831         * tests/test-netinet_in.c: Likewise.
46832         * tests/test-open.c: Likewise.
46833         * tests/test-printf-frexp.c: Likewise.
46834         * tests/test-printf-frexpl.c: Likewise.
46835         * tests/test-printf-posix.c: Likewise.
46836         * tests/test-printf-posix.h: Likewise.
46837         * tests/test-rbtree_list.c: Likewise.
46838         * tests/test-rbtree_oset.c: Likewise.
46839         * tests/test-rbtreehash_list.c: Likewise.
46840         * tests/test-read-file.c: Likewise.
46841         * tests/test-rijndael.c: Likewise.
46842         * tests/test-search.c: Likewise.
46843         * tests/test-signbit.c: Likewise.
46844         * tests/test-sleep.c: Likewise.
46845         * tests/test-snprintf-posix.c: Likewise.
46846         * tests/test-snprintf-posix.h: Likewise.
46847         * tests/test-snprintf.c: Likewise.
46848         * tests/test-sprintf-posix.c: Likewise.
46849         * tests/test-sprintf-posix.h: Likewise.
46850         * tests/test-stat-time.c: Likewise.
46851         * tests/test-stdbool.c: Likewise.
46852         * tests/test-stdint.c: Likewise.
46853         * tests/test-stdio.c: Likewise.
46854         * tests/test-stdlib.c: Likewise.
46855         * tests/test-stpncpy.c: Likewise.
46856         * tests/test-strcasestr.c: Likewise.
46857         * tests/test-striconv.c: Likewise.
46858         * tests/test-striconveh.c: Likewise.
46859         * tests/test-striconveha.c: Likewise.
46860         * tests/test-string.c: Likewise.
46861         * tests/test-sys_select.c: Likewise.
46862         * tests/test-sys_socket.c: Likewise.
46863         * tests/test-sys_stat.c: Likewise.
46864         * tests/test-sys_time.c: Likewise.
46865         * tests/test-sysexits.c: Likewise.
46866         * tests/test-time.c: Likewise.
46867         * tests/test-tls.c: Likewise.
46868         * tests/test-trunc.c: Likewise.
46869         * tests/test-truncf.c: Likewise.
46870         * tests/test-truncl.c: Likewise.
46871         * tests/test-unistd.c: Likewise.
46872         * tests/test-vasnprintf-posix.c: Likewise.
46873         * tests/test-vasnprintf-posix2.c: Likewise.
46874         * tests/test-vasnprintf.c: Likewise.
46875         * tests/test-vasprintf-posix.c: Likewise.
46876         * tests/test-vasprintf.c: Likewise.
46877         * tests/test-verify.c: Likewise.
46878         * tests/test-vfprintf-posix.c: Likewise.
46879         * tests/test-vprintf-posix.c: Likewise.
46880         * tests/test-vsnprintf-posix.c: Likewise.
46881         * tests/test-vsnprintf.c: Likewise.
46882         * tests/test-vsprintf-posix.c: Likewise.
46883         * tests/test-wchar.c: Likewise.
46884         * tests/test-wctype.c: Likewise.
46885         * tests/test-wcwidth.c: Likewise.
46886         * tests/test-xstrtol.c: Likewise.
46887         * tests/test-xvasprintf.c: Likewise.
46888         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46889         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46890         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46891         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46892         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46893         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46894         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46895         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46896         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46897         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46898         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46899         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46900         * tests/uniname/test-uninames.c: Likewise.
46901         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46902         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46903         * tests/unistdio/test-u16-printf1.h: Likewise.
46904         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46905         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46906         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46907         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46908         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46909         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46910         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46911         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46912         * tests/unistdio/test-u32-printf1.h: Likewise.
46913         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46914         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46915         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46916         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46917         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46918         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46919         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46920         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46921         * tests/unistdio/test-u8-printf1.h: Likewise.
46922         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46923         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46924         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46925         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46926         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46927         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46928         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46929         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46930         * tests/unistdio/test-ulc-printf1.h: Likewise.
46931         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46932         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46933         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46934         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46935         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46936         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46937         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46938         * tests/uniwidth/test-u16-width.c: Likewise.
46939         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46940         * tests/uniwidth/test-u32-width.c: Likewise.
46941         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46942         * tests/uniwidth/test-u8-width.c: Likewise.
46943         * tests/uniwidth/test-uc_width.c: Likewise.
46944         * config/srclist-update: Likewise.
46945         (fixlicense): Update to GPLv3+.
46946
46947         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46948         * tests/test-tsearch.c: Change copyright notice.
46949
46950         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46951         * lib/c-strcaseeq.h: Change copyright notice.
46952         * lib/streq.h: Likewise.
46953         * lib/uniconv.h: Likewise.
46954         * lib/uniconv/u-conv-from-enc.h: Likewise.
46955         * lib/uniconv/u-conv-to-enc.h: Likewise.
46956         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46957         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46958         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46959         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46960         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46961         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46962         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46963         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46964         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46965         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46966         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46967         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46968         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46969         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46970         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46971         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46972         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46973         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46974         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46975         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46976         * lib/uniname.h: Likewise.
46977         * lib/uniname/uniname.c: Likewise.
46978         * lib/unistdio.h: Likewise.
46979         * lib/unistdio/u-asnprintf.h: Likewise.
46980         * lib/unistdio/u-asprintf.h: Likewise.
46981         * lib/unistdio/u-printf-args.c: Likewise.
46982         * lib/unistdio/u-printf-args.h: Likewise.
46983         * lib/unistdio/u-printf-parse.h: Likewise.
46984         * lib/unistdio/u-snprintf.h: Likewise.
46985         * lib/unistdio/u-sprintf.h: Likewise.
46986         * lib/unistdio/u-vasprintf.h: Likewise.
46987         * lib/unistdio/u-vsnprintf.h: Likewise.
46988         * lib/unistdio/u-vsprintf.h: Likewise.
46989         * lib/unistdio/u16-asnprintf.c: Likewise.
46990         * lib/unistdio/u16-asprintf.c: Likewise.
46991         * lib/unistdio/u16-printf-parse.c: Likewise.
46992         * lib/unistdio/u16-snprintf.c: Likewise.
46993         * lib/unistdio/u16-sprintf.c: Likewise.
46994         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46995         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46996         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46997         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46998         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46999         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47000         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47001         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47002         * lib/unistdio/u16-vasnprintf.c: Likewise.
47003         * lib/unistdio/u16-vasprintf.c: Likewise.
47004         * lib/unistdio/u16-vsnprintf.c: Likewise.
47005         * lib/unistdio/u16-vsprintf.c: Likewise.
47006         * lib/unistdio/u32-asnprintf.c: Likewise.
47007         * lib/unistdio/u32-asprintf.c: Likewise.
47008         * lib/unistdio/u32-printf-parse.c: Likewise.
47009         * lib/unistdio/u32-snprintf.c: Likewise.
47010         * lib/unistdio/u32-sprintf.c: Likewise.
47011         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47012         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47013         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47014         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47015         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47016         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47017         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47018         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47019         * lib/unistdio/u32-vasnprintf.c: Likewise.
47020         * lib/unistdio/u32-vasprintf.c: Likewise.
47021         * lib/unistdio/u32-vsnprintf.c: Likewise.
47022         * lib/unistdio/u32-vsprintf.c: Likewise.
47023         * lib/unistdio/u8-asnprintf.c: Likewise.
47024         * lib/unistdio/u8-asprintf.c: Likewise.
47025         * lib/unistdio/u8-printf-parse.c: Likewise.
47026         * lib/unistdio/u8-snprintf.c: Likewise.
47027         * lib/unistdio/u8-sprintf.c: Likewise.
47028         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47029         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47030         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47031         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47032         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47033         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47034         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47035         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47036         * lib/unistdio/u8-vasnprintf.c: Likewise.
47037         * lib/unistdio/u8-vasprintf.c: Likewise.
47038         * lib/unistdio/u8-vsnprintf.c: Likewise.
47039         * lib/unistdio/u8-vsprintf.c: Likewise.
47040         * lib/unistdio/ulc-asnprintf.c: Likewise.
47041         * lib/unistdio/ulc-asprintf.c: Likewise.
47042         * lib/unistdio/ulc-printf-parse.c: Likewise.
47043         * lib/unistdio/ulc-snprintf.c: Likewise.
47044         * lib/unistdio/ulc-sprintf.c: Likewise.
47045         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47046         * lib/unistdio/ulc-vasprintf.c: Likewise.
47047         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47048         * lib/unistdio/ulc-vsprintf.c: Likewise.
47049         * lib/unistr.h: Likewise.
47050         * lib/unistr/u-cpy-alloc.h: Likewise.
47051         * lib/unistr/u-cpy.h: Likewise.
47052         * lib/unistr/u-endswith.h: Likewise.
47053         * lib/unistr/u-move.h: Likewise.
47054         * lib/unistr/u-set.h: Likewise.
47055         * lib/unistr/u-startswith.h: Likewise.
47056         * lib/unistr/u-stpcpy.h: Likewise.
47057         * lib/unistr/u-stpncpy.h: Likewise.
47058         * lib/unistr/u-strcat.h: Likewise.
47059         * lib/unistr/u-strcpy.h: Likewise.
47060         * lib/unistr/u-strcspn.h: Likewise.
47061         * lib/unistr/u-strdup.h: Likewise.
47062         * lib/unistr/u-strlen.h: Likewise.
47063         * lib/unistr/u-strncat.h: Likewise.
47064         * lib/unistr/u-strncpy.h: Likewise.
47065         * lib/unistr/u-strnlen.h: Likewise.
47066         * lib/unistr/u-strpbrk.h: Likewise.
47067         * lib/unistr/u-strspn.h: Likewise.
47068         * lib/unistr/u-strstr.h: Likewise.
47069         * lib/unistr/u-strtok.h: Likewise.
47070         * lib/unistr/u16-check.c: Likewise.
47071         * lib/unistr/u16-chr.c: Likewise.
47072         * lib/unistr/u16-cmp.c: Likewise.
47073         * lib/unistr/u16-cpy-alloc.c: Likewise.
47074         * lib/unistr/u16-cpy.c: Likewise.
47075         * lib/unistr/u16-endswith.c: Likewise.
47076         * lib/unistr/u16-mblen.c: Likewise.
47077         * lib/unistr/u16-mbsnlen.c: Likewise.
47078         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47079         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47080         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47081         * lib/unistr/u16-mbtouc.c: Likewise.
47082         * lib/unistr/u16-mbtoucr.c: Likewise.
47083         * lib/unistr/u16-move.c: Likewise.
47084         * lib/unistr/u16-next.c: Likewise.
47085         * lib/unistr/u16-prev.c: Likewise.
47086         * lib/unistr/u16-set.c: Likewise.
47087         * lib/unistr/u16-startswith.c: Likewise.
47088         * lib/unistr/u16-stpcpy.c: Likewise.
47089         * lib/unistr/u16-stpncpy.c: Likewise.
47090         * lib/unistr/u16-strcat.c: Likewise.
47091         * lib/unistr/u16-strchr.c: Likewise.
47092         * lib/unistr/u16-strcmp.c: Likewise.
47093         * lib/unistr/u16-strcpy.c: Likewise.
47094         * lib/unistr/u16-strcspn.c: Likewise.
47095         * lib/unistr/u16-strdup.c: Likewise.
47096         * lib/unistr/u16-strlen.c: Likewise.
47097         * lib/unistr/u16-strmblen.c: Likewise.
47098         * lib/unistr/u16-strmbtouc.c: Likewise.
47099         * lib/unistr/u16-strncat.c: Likewise.
47100         * lib/unistr/u16-strncmp.c: Likewise.
47101         * lib/unistr/u16-strncpy.c: Likewise.
47102         * lib/unistr/u16-strnlen.c: Likewise.
47103         * lib/unistr/u16-strpbrk.c: Likewise.
47104         * lib/unistr/u16-strrchr.c: Likewise.
47105         * lib/unistr/u16-strspn.c: Likewise.
47106         * lib/unistr/u16-strstr.c: Likewise.
47107         * lib/unistr/u16-strtok.c: Likewise.
47108         * lib/unistr/u16-to-u32.c: Likewise.
47109         * lib/unistr/u16-to-u8.c: Likewise.
47110         * lib/unistr/u16-uctomb-aux.c: Likewise.
47111         * lib/unistr/u16-uctomb.c: Likewise.
47112         * lib/unistr/u32-check.c: Likewise.
47113         * lib/unistr/u32-chr.c: Likewise.
47114         * lib/unistr/u32-cmp.c: Likewise.
47115         * lib/unistr/u32-cpy-alloc.c: Likewise.
47116         * lib/unistr/u32-cpy.c: Likewise.
47117         * lib/unistr/u32-endswith.c: Likewise.
47118         * lib/unistr/u32-mblen.c: Likewise.
47119         * lib/unistr/u32-mbsnlen.c: Likewise.
47120         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47121         * lib/unistr/u32-mbtouc.c: Likewise.
47122         * lib/unistr/u32-mbtoucr.c: Likewise.
47123         * lib/unistr/u32-move.c: Likewise.
47124         * lib/unistr/u32-next.c: Likewise.
47125         * lib/unistr/u32-prev.c: Likewise.
47126         * lib/unistr/u32-set.c: Likewise.
47127         * lib/unistr/u32-startswith.c: Likewise.
47128         * lib/unistr/u32-stpcpy.c: Likewise.
47129         * lib/unistr/u32-stpncpy.c: Likewise.
47130         * lib/unistr/u32-strcat.c: Likewise.
47131         * lib/unistr/u32-strchr.c: Likewise.
47132         * lib/unistr/u32-strcmp.c: Likewise.
47133         * lib/unistr/u32-strcpy.c: Likewise.
47134         * lib/unistr/u32-strcspn.c: Likewise.
47135         * lib/unistr/u32-strdup.c: Likewise.
47136         * lib/unistr/u32-strlen.c: Likewise.
47137         * lib/unistr/u32-strmblen.c: Likewise.
47138         * lib/unistr/u32-strmbtouc.c: Likewise.
47139         * lib/unistr/u32-strncat.c: Likewise.
47140         * lib/unistr/u32-strncmp.c: Likewise.
47141         * lib/unistr/u32-strncpy.c: Likewise.
47142         * lib/unistr/u32-strnlen.c: Likewise.
47143         * lib/unistr/u32-strpbrk.c: Likewise.
47144         * lib/unistr/u32-strrchr.c: Likewise.
47145         * lib/unistr/u32-strspn.c: Likewise.
47146         * lib/unistr/u32-strstr.c: Likewise.
47147         * lib/unistr/u32-strtok.c: Likewise.
47148         * lib/unistr/u32-to-u16.c: Likewise.
47149         * lib/unistr/u32-to-u8.c: Likewise.
47150         * lib/unistr/u32-uctomb.c: Likewise.
47151         * lib/unistr/u8-check.c: Likewise.
47152         * lib/unistr/u8-chr.c: Likewise.
47153         * lib/unistr/u8-cmp.c: Likewise.
47154         * lib/unistr/u8-cpy-alloc.c: Likewise.
47155         * lib/unistr/u8-cpy.c: Likewise.
47156         * lib/unistr/u8-endswith.c: Likewise.
47157         * lib/unistr/u8-mblen.c: Likewise.
47158         * lib/unistr/u8-mbsnlen.c: Likewise.
47159         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47160         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47161         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47162         * lib/unistr/u8-mbtouc.c: Likewise.
47163         * lib/unistr/u8-mbtoucr.c: Likewise.
47164         * lib/unistr/u8-move.c: Likewise.
47165         * lib/unistr/u8-next.c: Likewise.
47166         * lib/unistr/u8-prev.c: Likewise.
47167         * lib/unistr/u8-set.c: Likewise.
47168         * lib/unistr/u8-startswith.c: Likewise.
47169         * lib/unistr/u8-stpcpy.c: Likewise.
47170         * lib/unistr/u8-stpncpy.c: Likewise.
47171         * lib/unistr/u8-strcat.c: Likewise.
47172         * lib/unistr/u8-strchr.c: Likewise.
47173         * lib/unistr/u8-strcmp.c: Likewise.
47174         * lib/unistr/u8-strcpy.c: Likewise.
47175         * lib/unistr/u8-strcspn.c: Likewise.
47176         * lib/unistr/u8-strdup.c: Likewise.
47177         * lib/unistr/u8-strlen.c: Likewise.
47178         * lib/unistr/u8-strmblen.c: Likewise.
47179         * lib/unistr/u8-strmbtouc.c: Likewise.
47180         * lib/unistr/u8-strncat.c: Likewise.
47181         * lib/unistr/u8-strncmp.c: Likewise.
47182         * lib/unistr/u8-strncpy.c: Likewise.
47183         * lib/unistr/u8-strnlen.c: Likewise.
47184         * lib/unistr/u8-strpbrk.c: Likewise.
47185         * lib/unistr/u8-strrchr.c: Likewise.
47186         * lib/unistr/u8-strspn.c: Likewise.
47187         * lib/unistr/u8-strstr.c: Likewise.
47188         * lib/unistr/u8-strtok.c: Likewise.
47189         * lib/unistr/u8-to-u16.c: Likewise.
47190         * lib/unistr/u8-to-u32.c: Likewise.
47191         * lib/unistr/u8-uctomb-aux.c: Likewise.
47192         * lib/unistr/u8-uctomb.c: Likewise.
47193         * lib/unitypes.h: Likewise.
47194         * lib/uniwidth.h: Likewise.
47195         * lib/uniwidth/cjk.h: Likewise.
47196         * lib/uniwidth/u16-strwidth.c: Likewise.
47197         * lib/uniwidth/u16-width.c: Likewise.
47198         * lib/uniwidth/u32-strwidth.c: Likewise.
47199         * lib/uniwidth/u32-width.c: Likewise.
47200         * lib/uniwidth/u8-strwidth.c: Likewise.
47201         * lib/uniwidth/u8-width.c: Likewise.
47202         * lib/uniwidth/width.c: Likewise.
47203
47204 2007-10-07  Bruno Haible  <bruno@clisp.org>
47205
47206         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47207         The file is still under LGPL (see modules/inttypes).
47208
47209 2007-10-06  Bruno Haible  <bruno@clisp.org>
47210
47211         * modules/trunc (Dependencies): Add 'extensions'.
47212         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47213         Reported by Ben Pfaff <blp@gnu.org>.
47214
47215 2007-10-06  Bruno Haible  <bruno@clisp.org>
47216
47217         * modules/freopen-tests: New file.
47218         * tests/test-freopen.c: New file.
47219
47220         * modules/fopen-tests: New file.
47221         * tests/test-fopen.c: New file.
47222
47223         * modules/fopen: New file.
47224         * lib/fopen.c: New file.
47225         * m4/fopen.m4: New file.
47226         * modules/freopen: New file.
47227         * lib/freopen.c: New file.
47228         * m4/freopen.m4: New file.
47229         * lib/stdio.in.h (fopen, freopen): New declarations.
47230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47231         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47232         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47233         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47234         * doc/functions/fopen.texi: Mention the 'fopen' module.
47235         * doc/functions/freopen.texi: Mention the 'freopen' module.
47236
47237 2007-10-06  Bruno Haible  <bruno@clisp.org>
47238
47239         * modules/open-tests: New file.
47240         * tests/test-open.c: New file.
47241
47242         * modules/open: New file.
47243         * lib/open.c: New file.
47244         * m4/open.m4: New file.
47245         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47246         lib/open.c does.
47247         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47248         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47249         macros.
47250         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47251         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47252         REPLACE_OPEN.
47253         * doc/functions/open.texi: Mention the 'open' module.
47254
47255 2007-10-04  Bruno Haible  <bruno@clisp.org>
47256
47257         * modules/ceill-tests: New file.
47258         * tests/test-ceill.c: New file.
47259
47260         * modules/ceill: New file.
47261         * lib/ceill.c: Replace entire file.
47262         * m4/ceill.m4: New file.
47263         * lib/math.in.h (ceill): Replace declaration.
47264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47265         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47266         * doc/functions/ceill.texi: Mention the 'ceill' module.
47267         * modules/mathl (Files): Remove lib/ceill.c.
47268         (Depends-on): Add ceill.
47269
47270 2007-10-04  Bruno Haible  <bruno@clisp.org>
47271
47272         * modules/ceilf-tests: New file.
47273         * tests/test-ceilf.c: New file.
47274
47275         * modules/ceilf: New file.
47276         * lib/ceil.c: New file.
47277         * lib/ceilf.c: New file.
47278         * m4/ceilf.m4: New file.
47279         * lib/math.in.h (ceilf): New declaration.
47280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47281         HAVE_DECL_CEILF.
47282         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47283         HAVE_DECL_CEILF.
47284         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47285
47286 2007-10-04  Bruno Haible  <bruno@clisp.org>
47287
47288         * modules/floorl-tests: New file.
47289         * tests/test-floorl.c: New file.
47290
47291         * modules/floorl: New file.
47292         * lib/floorl.c: Replace entire file.
47293         * m4/floorl.m4: New file.
47294         * lib/math.in.h (floorl): Replace declaration.
47295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47296         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47297         * doc/functions/floorl.texi: Mention the 'floorl' module.
47298         * modules/mathl (Files): Remove lib/floorl.c.
47299         (Depends-on): Add floorl.
47300
47301 2007-10-04  Bruno Haible  <bruno@clisp.org>
47302
47303         * modules/floorf-tests: New file.
47304         * tests/test-floorf.c: New file.
47305
47306         * modules/floorf: New file.
47307         * lib/floor.c: New file.
47308         * lib/floorf.c: New file.
47309         * m4/floorf.m4: New file.
47310         * lib/math.in.h (floorf): New declaration.
47311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47312         HAVE_DECL_FLOORF.
47313         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47314         HAVE_DECL_FLOORF.
47315         * doc/functions/floorf.texi: Mention the 'floorf' module.
47316
47317 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47318             Bruno Haible  <bruno@clisp.org>
47319
47320         Advertise for the Git server instead of the CVS server.
47321         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47322         repository instead of the CVS one.
47323         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47324         about all VCS systems generically.
47325         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47326
47327 2007-10-04  Bruno Haible  <bruno@clisp.org>
47328
47329         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47330         means.
47331         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47332
47333 2007-10-04  Bruno Haible  <bruno@clisp.org>
47334
47335         * modules/truncl-tests: New file.
47336         * tests/test-truncl.c: New file.
47337
47338         * modules/truncl: New file.
47339         * lib/truncl.c: New file.
47340         * m4/truncl.m4: New file.
47341         * lib/math.in.h (truncl): New declaration.
47342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47343         HAVE_DECL_TRUNCL.
47344         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47345         HAVE_DECL_TRUNCL.
47346         * doc/functions/truncl.texi: Mention the 'truncl' module.
47347
47348 2007-10-04  Bruno Haible  <bruno@clisp.org>
47349
47350         * modules/truncf-tests: New file.
47351         * tests/test-truncf.c: New file.
47352
47353         * modules/truncf: New file.
47354         * lib/trunc.c: Make paramerizable through USE_* macros.
47355         * lib/truncf.c: New file.
47356         * m4/truncf.m4: New file.
47357         * lib/math.in.h (truncf): New declaration.
47358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47359         HAVE_DECL_TRUNCF.
47360         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47361         HAVE_DECL_TRUNCF.
47362         * doc/functions/truncf.texi: Mention the 'truncf' module.
47363
47364 2007-10-03  Bruno Haible  <bruno@clisp.org>
47365
47366         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47367         augmentation also for tests modules.
47368         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47369         * modules/atexit-tests (Makefile.am): Likewise.
47370         * modules/binary-io-tests (Makefile.am): Likewise.
47371         * modules/c-strcase-tests (Makefile.am): Likewise.
47372         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47373         * modules/canonicalize-tests (Makefile.am): Likewise.
47374         * modules/closein-tests (Makefile.am): Likewise.
47375         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47376         * modules/freadahead-tests (Makefile.am): Likewise.
47377         * modules/fseek-tests (Makefile.am): Likewise.
47378         * modules/fseeko-tests (Makefile.am): Likewise.
47379         * modules/ftell-tests (Makefile.am): Likewise.
47380         * modules/ftello-tests (Makefile.am): Likewise.
47381         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47382         * modules/isnanl-tests (Makefile.am): Likewise.
47383         * modules/lseek-tests (Makefile.am): Likewise.
47384         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47385         * modules/mbscasestr-tests (Makefile.am): Likewise.
47386         * modules/mbschr-tests (Makefile.am): Likewise.
47387         * modules/mbscspn-tests (Makefile.am): Likewise.
47388         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47389         * modules/mbspbrk-tests (Makefile.am): Likewise.
47390         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47391         * modules/mbsrchr-tests (Makefile.am): Likewise.
47392         * modules/mbsspn-tests (Makefile.am): Likewise.
47393         * modules/mbsstr-tests (Makefile.am): Likewise.
47394         * modules/printf-posix-tests (Makefile.am): Likewise.
47395         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47396         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47397         * modules/tsearch-tests (Makefile.am): Likewise.
47398         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47399         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47400         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47401         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47402         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47403         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47404         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47405         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47406         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47407         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47408         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47409         * modules/xstrtol-tests (Makefile.am): Likewise.
47410         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47411         * modules/yesno-tests (Makefile.am): Likewise.
47412
47413 2007-10-03  Bruno Haible  <bruno@clisp.org>
47414
47415         * modules/trunc-tests: New file.
47416         * tests/test-trunc.c: New file.
47417
47418         * modules/trunc: New file.
47419         * lib/trunc.c: New file.
47420         * m4/trunc.m4: New file.
47421         * lib/math.in.h (trunc): New declaration.
47422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47423         HAVE_DECL_TRUNC.
47424         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47425         HAVE_DECL_TRUNC.
47426         * doc/functions/trunc.texi: Mention the 'trunc' module.
47427
47428 2007-10-03  Bruno Haible  <bruno@clisp.org>
47429
47430         * tests/test-fpending.c: New file, mostly copied
47431         from coreutils/lib/t-fpending.c.
47432         * modules/fpending-tests: New file.
47433
47434 2007-10-03  Bruno Haible  <bruno@clisp.org>
47435
47436         Port the stdio extensions to QNX (untested).
47437         * lib/fseterr.c (fseterr): Add support for QNX.
47438         * lib/fbufmode.c (fbufmode): Likewise.
47439         * lib/freadable.c (freadable): Likewise.
47440         * lib/fwritable.c (fwritable): Likewise.
47441         * lib/freading.c (freading): Likewise.
47442         * lib/fwriting.c (fwriting): Likewise.
47443         * lib/freadahead.c (freadahed): Likewise.
47444         * lib/fpurge.c (fpurge): Likewise.
47445         * lib/fseeko.c (rpl_fseeko): Likewise.
47446
47447 2007-10-03  Bruno Haible  <bruno@clisp.org>
47448             Jim Meyering  <jim@meyering.net>
47449             Eric Blake  <ebb9@byu.net>
47450
47451         * doc/relocatable.texi: Use @command instead of @program.
47452
47453 2007-10-02  Jim Meyering  <jim@meyering.net>
47454
47455         Perform one more "_.h" -> ".in.h" substitution.
47456         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47457         instead of unistd_.h here, too.
47458
47459 2007-10-01  Bruno Haible  <bruno@clisp.org>
47460
47461         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47462         Needed for the alloca-opt module.
47463
47464 2007-09-30  Bruno Haible  <bruno@clisp.org>
47465
47466         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47467         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47468         alloca_.h.
47469         * lib/argz.in.h: Renamed from lib/argz_.h.
47470         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47471         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47472         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47473         byteswap_.h.
47474         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47475         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47476         dirent_.h.
47477         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47478         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47479         fcntl_.h.
47480         * lib/float.in.h: Renamed from lib/float_.h.
47481         * modules/float (Files, Makefile.am): Use float.in.h instead of
47482         float_.h.
47483         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47484         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47485         fnmatch_.h.
47486         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47487         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47488         getopt_.h.
47489         * lib/glob.in.h: Renamed from lib/glob_.h.
47490         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47491         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47492         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47493         iconv_.h.
47494         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47495         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47496         inttypes_.h.
47497         * lib/locale.in.h: Renamed from lib/locale_.h.
47498         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47499         locale_.h.
47500         * lib/math.in.h: Renamed from lib/math_.h.
47501         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47502         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47503         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47504         of netinet_in_.h. Add dependency.
47505         * lib/poll.in.h: Renamed from lib/poll_.h.
47506         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47507         * lib/search.in.h: Renamed from lib/search_.h.
47508         * modules/search (Files, Makefile.am): Use search.in.h instead of
47509         search_.h.
47510         * lib/signal.in.h: Renamed from lib/signal_.h.
47511         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47512         _signal.h.
47513         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47514         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47515         stdbool_.h.
47516         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47517         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47518         stdint_.h.
47519         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47520         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47521         stdio_.h.
47522         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47523         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47524         stdlib_.h.
47525         * lib/string.in.h: Renamed from lib/string_.h.
47526         * modules/string (Files, Makefile.am): Use string.in.h instead of
47527         string_.h.
47528         * doc/gnulib-tool.texi (Initial import): Update.
47529         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47530         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47531         of sys_select_.h. Add dependency.
47532         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47533         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47534         of sys_socket_.h.
47535         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47536         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47537         sys_stat_.h.
47538         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47539         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47540         sys_time_.h.
47541         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47542         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47543         sysexits_.h.
47544         * lib/time.in.h: Renamed from lib/time_.h.
47545         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47546         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47547         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47548         unistd_.h.
47549         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47550         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47551         wchar_.h.
47552         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47553         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47554         wctype_.h.
47555         * build-aux/bootstrap (slurp): Update.
47556         * lib/.cppi-disable: Update.
47557
47558 2007-09-30  Bruno Haible  <bruno@clisp.org>
47559
47560         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47561         Needed on BeOS.
47562
47563 2007-09-30  Bruno Haible  <bruno@clisp.org>
47564
47565         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47566
47567 2007-09-29  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47570
47571 2007-09-29  Bruno Haible  <bruno@clisp.org>
47572
47573         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47574         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47575         * build-aux/install-reloc: Compile also areadlink.c.
47576         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47577
47578 2007-09-29  Bruno Haible  <bruno@clisp.org>
47579
47580         * gnulib-tool (func_emit_initmacro_done): Indentation.
47581
47582 2007-09-29  Bruno Haible  <bruno@clisp.org>
47583
47584         * README: Add CVS checkout update instructions.
47585         Info from Bob Proulx <bob@proulx.com>.
47586
47587 2007-09-28  Eric Blake  <ebb9@byu.net>
47588
47589         Provide move-if-change.
47590         * build-aux/move-if-change: New file, based on best practice
47591         rather than any canonical upstream location.
47592
47593 2007-09-28  Jim Meyering  <jim@meyering.net>
47594
47595         Fix canonicalize loop-detection corner case.
47596         Do not attempt to stat the symlink values stored via seen_triple.
47597         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47598         on linux-2.6.18, (but not 2.6.22).
47599         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47600         triple_compare.  The former compares dev,ino,filename, while the latter
47601         would actually stat dirname(filename) when dev and ino were equal.
47602         * lib/hash-triple.c: Install <string.h>.
47603         (STREQ): Define.
47604         (triple_compare_ino_str): New function.
47605         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47606
47607 2007-09-28  Eric Blake  <ebb9@byu.net>
47608
47609         Enforce that AC_REPLACE_FUNCS files exist.
47610         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47611         override check for typos.
47612
47613         Fix test-closein on Solaris 10.
47614         * tests/test-closein.c (main): Don't assume stdin can be inherited
47615         closed on all systems.
47616         * tests/test-closein.sh: Likewise.
47617         Reported by Piotr Tarnowski.
47618
47619 2007-09-28  Jim Meyering  <jim@meyering.net>
47620
47621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47622
47623 2007-09-27  Jim Meyering  <jim@meyering.net>
47624
47625         canonicalize: Avoid a false-positive cycle failure.
47626         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47627         Sort.  Remove cycle-check.
47628         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47629         not cycle-check.h.
47630         (seen_triple): New function.
47631         (canonicalize_filename_mode): Use it instead of cycle-check.
47632         * tests/test-canonicalize.c: Add a test for this bug.
47633         * tests/test-canonicalize.sh: Set up and run the test.
47634
47635         New module, file-set, from coreutils.
47636         * modules/file-set: Define it.
47637         * lib/file-set.c, lib/file-set.h: Implement.
47638
47639         New module, hash-triple, from coreutils.
47640         * modules/hash-triple: Define it.
47641         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47642
47643 2007-09-25  Eric Blake  <ebb9@byu.net>
47644
47645         Fix strerror on Interix.
47646         * lib/string_.h (strerror): Declare replacement.
47647         * doc/functions/strerror.texi (strerror): Document the Interix
47648         shortcoming.
47649         * modules/string (Makefile.am): Support new hooks.
47650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47651         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47652         gl_FUNC_STRERROR_SEPARATE.
47653         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47654         * lib/strerror.c (rpl_strerror): Provide replacement.
47655         * modules/strerror (Depends-on): Add string.
47656         (configure.ac): Detect use of module.
47657         * tests/test-strerror.c: New file.
47658         * modules/strerror-tests: New test module.
47659         * modules/argp (Depends-on): Add strerror.
47660         * modules/error (Depends-on): Likewise.
47661         Reported by Martin Koeppe.
47662
47663 2007-09-24  Bruno Haible  <bruno@clisp.org>
47664
47665         * README: Update git instructions.
47666
47667 2007-09-24  Eric Blake  <ebb9@byu.net>
47668
47669         Revert fpending breakage from 2007-09-08.
47670         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47671         __fpending.c.
47672
47673 2007-09-24  Jim Meyering  <jim@meyering.net>
47674
47675         filenamecat.c: Add a test.
47676         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47677         showing how the function works when DIR is the empty string.
47678
47679 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47680
47681         * tests/test-canonicalize.sh: Turn on executable bit.
47682
47683 2007-09-19  Eric Blake  <ebb9@byu.net>
47684
47685         * README: Update CVS instructions.
47686
47687 2007-09-18  Bruno Haible  <bruno@clisp.org>
47688
47689         * modules/areadlink: New file.
47690         * lib/areadlink.h (areadlink): New declaration.
47691         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47692
47693 2007-09-17  Jim Meyering  <jim@meyering.net>
47694
47695         * lib/savewd.c (ESTALE) [!defined]: Define.
47696         Reported to be required on Interix by Martin Koeppe.
47697
47698 2007-09-17  Bruno Haible  <bruno@clisp.org>
47699
47700         * gnulib-tool (func_version): Use $version.
47701
47702 2007-09-16  Bruno Haible  <bruno@clisp.org>
47703
47704         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47705         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47706         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47707         Reported by Greg Schafer <gschafer@zip.com.au>.
47708
47709 2007-09-15  Bruno Haible  <bruno@clisp.org>
47710
47711         * gnulib-tool (sed): Try a little harder to make bash understand the
47712         alias.
47713         Reported by Bruce Korb <bruce.korb@gmail.com>.
47714
47715 2007-09-13  Eric Blake  <ebb9@byu.net>
47716
47717         * ChangeLog: Remove conflict markers.
47718
47719 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47720
47721         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47722         Reported by Bruno Haible <bruno@clisp.org>.
47723
47724 2007-09-12  Bruno Haible  <bruno@clisp.org>
47725
47726         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47727         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47728         is not defined.
47729
47730 2007-09-12  Eric Blake  <ebb9@byu.net>
47731
47732         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47733         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47734         Autoconf definition.
47735         * modules/euidaccess (Depends-on): Add extensions, for
47736         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47737         * modules/fnmatch (Depends-on): Likewise.
47738         * modules/getaddrinfo (Depends-on): Likewise.
47739         * modules/getdelim (Depends-on): Likewise.
47740         * modules/getline (Depends-on): Likewise.
47741         * modules/getsubopt (Depends-on): Likewise.
47742         * modules/gettext (Depends-on): Likewise.
47743         * modules/group-member (Depends-on): Likewise.
47744         * modules/mbchar (Depends-on): Likewise.
47745         * modules/memmem (Depends-on): Likewise.
47746         * modules/mempcpy (Depends-on): Likewise.
47747         * modules/memrchr (Depends-on): Likewise.
47748         * modules/pagealign_alloc (Depends-on): Likewise.
47749         * modules/readutmp (Depends-on): Likewise.
47750         * modules/stpcpy (Depends-on): Likewise.
47751         * modules/stpncpy (Depends-on): Likewise.
47752         * modules/strchrnul (Depends-on): Likewise.
47753         * modules/strndup (Depends-on): Likewise.
47754         * modules/strsep (Depends-on): Likewise.
47755         * modules/strverscmp (Depends-on): Likewise.
47756         * modules/vasprintf (Depends-on): Likewise.
47757         * modules/wcwidth (Depends-on): Likewise.
47758         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47759         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47760         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47761         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47762         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47763         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47764         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47765         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47766         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47767         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47768         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47770         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47771         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47772         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47773         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47774         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47775         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47776         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47777         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47778         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47779         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47780         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47781         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47782         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47784         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47785         so that lock.m4 can be used in gettext without extensions module.
47786
47787 2007-09-11  Bruno Haible  <bruno@clisp.org>
47788
47789         * m4/isc-posix.m4: Remove file.
47790         Suggested by Eric Blake.
47791
47792 2007-09-11  Eric Blake  <ebb9@byu.net>
47793
47794         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47795
47796 2007-09-10  Bruno Haible  <bruno@clisp.org>
47797
47798         * posix-modules: Fix typo in error message.
47799         Reported by Matt <mkraai@beckman.com>.
47800
47801 2007-09-09  Bruno Haible  <bruno@clisp.org>
47802
47803         * doc/functions/getdelim.texi: Update list of platforms lacking the
47804         function.
47805         * doc/functions/getline.texi: Likewise.
47806
47807 2007-09-09  Jim Meyering  <jim@meyering.net>
47808
47809         * lib/hash.c (hash_initialize): Detect calloc failure.
47810         Reported by Bruno Haible.
47811
47812 2007-09-09  Bruno Haible  <bruno@clisp.org>
47813
47814         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47815         malloc or realloc fails.
47816
47817 2007-09-09  Bruno Haible  <bruno@clisp.org>
47818
47819         * modules/getcwd (Depends-on): Add malloc-posix.
47820         * modules/glob (Depends-on): Likewise.
47821         * modules/putenv (Depends-on): Likewise.
47822         * modules/strdup (Depends-on): Likewise.
47823         * modules/getdelim (Depends-on): Add realloc-posix.
47824         * modules/read-file (Depends-on): Likewise.
47825
47826 2007-09-09  Bruno Haible  <bruno@clisp.org>
47827
47828         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47829         (gl_FUNC_MALLOC_POSIX): Require it.
47830         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47831         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47832         * modules/realloc (Files): Add m4/malloc.m4.
47833         * modules/calloc (Files): Likewise.
47834
47835 2007-09-09  Bruno Haible  <bruno@clisp.org>
47836
47837         * modules/malloc-posix: New file.
47838         * modules/malloc (Depends-on): Add malloc-posix.
47839         * lib/malloc.c: Include errno.h.
47840         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47841         and a POSIX-compatible malloc into a single function. Set ENOMEM
47842         when returning NULL.
47843         * m4/malloc.m4: New file.
47844         * doc/functions/malloc.texi: Mention the malloc-posix module.
47845         * lib/stdlib_.h (malloc): New declaration.
47846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47847         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47848         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47849         and HAVE_MALLOC_POSIX.
47850
47851 2007-09-09  Bruno Haible  <bruno@clisp.org>
47852
47853         * modules/realloc-posix: New file.
47854         * modules/realloc (Depends-on): Add realloc-posix.
47855         * lib/realloc.c: Include errno.h.
47856         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47857         and a POSIX-compatible realloc into a single function. Set ENOMEM
47858         when returning NULL.
47859         * m4/realloc.m4: New file.
47860         * doc/functions/realloc.texi: Mention the realloc-posix module.
47861         * lib/stdlib_.h (realloc): New declaration.
47862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47863         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47864         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47865         and HAVE_REALLOC_POSIX.
47866
47867 2007-09-09  Bruno Haible  <bruno@clisp.org>
47868
47869         * modules/calloc-posix: New file.
47870         * modules/calloc (Depends-on): Add calloc-posix.
47871         * lib/calloc.c: Include errno.h.
47872         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47873         and a POSIX-compatible calloc into a single function. Set ENOMEM
47874         when returning NULL.
47875         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47876         * doc/functions/calloc.texi: Mention the calloc-posix module.
47877         * lib/stdlib_.h (calloc): New declaration.
47878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47879         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47880         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47881         and HAVE_CALLOC_POSIX.
47882
47883 2007-09-09  Bruno Haible  <bruno@clisp.org>
47884
47885         Allow for modules to show an arbitrary notice.
47886         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47887         * gnulib-tool: New option --extract-notice.
47888         (func_usage): Document it.
47889         (sed_extract_prog): Update.
47890         (func_get_notice): New function.
47891         (func_modules_notice): New function.
47892         (func_import, func_create_testdir): Invoke it.
47893         Suggested by Jim Meyering.
47894
47895 2007-09-09  Bruno Haible  <bruno@clisp.org>
47896
47897         * gnulib-tool: New options --verbose, --quiet.
47898         (func_usage): Document them.
47899         (verbose): New variable.
47900         (func_execute_command): New function.
47901         (func_import): Don't show the module list and the file list if
47902         $verbose < 0.
47903         (func_create_testdir): Likewise. Use func_execute_command.
47904         (func_create_megatestdir): Use func_execute_command.
47905
47906 2007-09-08  Bruno Haible  <bruno@clisp.org>
47907
47908         * gnulib-tool (func_import): Prefer rsync over wget when available,
47909         for fetching the PO files.
47910
47911 2007-09-08  Bruno Haible  <bruno@clisp.org>
47912
47913         * posix-modules: New file. Portions copied from gnulib-tool.
47914         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47915
47916 2007-09-08  Jim Meyering  <jim@meyering.net>
47917
47918         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47919         * lib/fpending.h: Rename from __fpending.h.
47920         * lib/fpending.c: Rename from __fpending.c.
47921         Include "fpending.h", not "__fpending.h".
47922         * lib/__fpending.h, lib/__fpending.c: Remove files.
47923         * modules/fpending (Files): Reflect new file names.
47924         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47925
47926 2007-09-08  Bruno Haible  <bruno@clisp.org>
47927
47928         * m4/inttypes-h.m4: Remove stub file.
47929
47930 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47931
47932         * doc/headers/stdint.texi: Discuss #include_next issue.
47933
47934 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47935
47936         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47937
47938 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47939
47940         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47941         in variable name.
47942
47943 2007-09-03  Jim Meyering  <jim@meyering.net>
47944
47945         New module: git-version-gen.
47946         * modules/git-version-gen: New file.
47947
47948         Import changes from coreutils for bootstrap script.
47949
47950         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47951
47952         bootstrap: uses rsync to download the .po files
47953         * build-aux/bootstrap (po_download_command_format): New global.
47954         (download_po_files): Use rsync.
47955         (update_po_files): Don't remove .po files after download,
47956         so future rsync runs can take advantage of the copies.
47957
47958         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47959
47960         Solve the unnecessary-.po-file-regeneration problem once and for all.
47961         * build-aux/bootstrap (download_po_files): New function, renamed from
47962         get_translations.  Now, downloads, but doesn't update LINGUAS.
47963         (update_po_files): New function.
47964
47965         bootstrap: Ignore more.
47966         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47967         uniwidth to e.g., lib/.gitignore.
47968         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47969
47970         * build-aux/bootstrap: New setting: vc_ignore.
47971         (insert_sorted_if_absent): Create $file if absent.
47972         Adapt to new, possibly empty, list: $vc_ignore.
47973
47974         bootstrap: generate more ignorable names
47975         * build-aux/bootstrap (slurp): When generating ignorable names,
47976         also map .sin to .sed, .gperf to .c, and .y to .c.
47977
47978 2007-09-03  Jim Meyering  <jim@meyering.net>
47979
47980         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47981         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47982
47983 2007-09-02  Bruno Haible  <bruno@clisp.org>
47984
47985         Fix mis-recognition of 'mcs' on QNX 6.
47986         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47987         output contains the string "Mono".
47988         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47989         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47990
47991 2007-09-01  Bruno Haible  <bruno@clisp.org>
47992
47993         Fix collision between uniwidth/* and linebreak modules.
47994         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47995         u32_width): Remove declarations.
47996         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47997         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47998         streq3, streq2, streq1, streq0): Remove functions.
47999         (STREQ): Remove macro.
48000         (is_cjk_encoding): Remove function.
48001         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48002         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48003         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48004         * NEWS: Document the change.
48005
48006 2007-09-01  Bruno Haible  <bruno@clisp.org>
48007
48008         * lib/streq.h: Add double-inclusion guard.
48009
48010 2007-09-01  Karl Berry  <karl@gnu.org>
48011
48012         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48013
48014 2007-08-28  Jim Meyering  <jim@meyering.net>
48015
48016         Rename mreadlink_with_size to areadlink_with_size.
48017         * NEWS: Document the change.
48018         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48019         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48020         * lib/mreadlink.h: Rename this to...
48021         * lib/areadlink.h: ...this.
48022         * modules/mreadlink-with-size: Rename this to...
48023         * modules/areadlink-with-size: ...this.
48024         * lib/canonicalize.c: Reflect the renaming.
48025         * modules/canonicalize: Likewise.
48026
48027 2007-08-26  Bruno Haible  <bruno@clisp.org>
48028
48029         * gnulib-tool (func_import): When deciding which files to remove,
48030         consider also dangling symbolic links.
48031         Reported by Eric Blake.
48032
48033 2007-08-26  Bruno Haible  <bruno@clisp.org>
48034
48035         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48036
48037 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48038
48039         * lib/readline.c: Don't include getline.h, the prototype is now
48040         found in stdio.h.
48041
48042 2007-08-23  Jim Meyering  <jim@meyering.net>
48043
48044         Getdelim touchup.
48045         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48046         around the funlockfile call, since funlockfile never sets errno.
48047         Don't set errno upon failed realloc.
48048
48049 2007-08-22  Eric Blake  <ebb9@byu.net>
48050
48051         Getline touchups.
48052         * lib/getdelim.c (getdelim): Revert regression that required *n to
48053         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48054         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48055         getdelim, rather than whether implementation is missing.
48056         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48057         * lib/stdio_.h (getline): Also declare if replacement is
48058         required.
48059         * doc/functions/getdelim.texi: New file.
48060         * doc/functions/getline.texi: Likewise.
48061         * doc/gnulib.texi (Function Substitutes): Add new files.
48062         Reported by Bruno Haible.
48063
48064 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48065
48066         * users.txt: Add Guile.
48067
48068 2007-08-22  Eric Blake  <ebb9@byu.net>
48069
48070         * tests/test-getdelim.c (main): Use remove, not unlink.
48071         * tests/test-getline.c (main): Likewise.
48072
48073         Move getline and getdelim into stdio.h, per POSIX 200x.
48074         * modules/getline (Files): Remove getline.h.
48075         (Depends-on): Add stdio.
48076         (configure.ac): Add module indicator.
48077         * modules/getdelim (Files): Remove getdelim.h.
48078         (Depends-on): Add stdio.
48079         (configure.ac): Add module indicator.
48080         * modules/stdio (Makefile.am): Work with new indicators.
48081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48082         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48083         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48084         * lib/getdelim.h: Delete.
48085         * lib/getline.h: Delete.
48086         * lib/stdio_.h (getdelim, getline): Declare.
48087         * modules/getdelim-tests: New module.
48088         * modules/getline-tests: Likewise.
48089         * tests/test-getdelim.c: New file.
48090         * tests/test-getline.c: Likewise.
48091         * NEWS: Document the change.
48092         * lib/getline.c: Update choice of header.
48093         * lib/csharpcomp.c: Likewise.
48094         * lib/getpass.c: Likewise.
48095         * lib/javacomp.c: Likewise.
48096         * lib/javaversion.c: Likewise.
48097         * lib/yesno.c: Likewise.
48098         * lib/getdelim.c: Likewise.
48099         (getdelim): Set errno on failure, and avoid memory leak.
48100
48101 2007-08-19  Bruno Haible  <bruno@clisp.org>
48102
48103         * modules/closein (Depends-on): Add freadahead.
48104         * lib/closein.c: Include freadahead.h.
48105         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48106         is zero.
48107
48108 2007-08-19  Bruno Haible  <bruno@clisp.org>
48109
48110         * modules/freadahead-tests: New file.
48111         * tests/test-freadahead.sh: New file.
48112         * tests/test-freadahead.c: New file.
48113
48114         * modules/freadahead: New file.
48115         * lib/freadahead.h: New file.
48116         * lib/freadahead.c: New file.
48117         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48118         fbufmode, fpurge, freadable, fwritable.
48119
48120 2007-08-19  Eric Blake  <ebb9@byu.net>
48121
48122         Test yesno in combination with closein.
48123         * lib/yesno.c (yesno): Document use of stdin.
48124         * modules/yesno-tests (Files): New module.
48125         * tests/test-yesno.c (main): New file.
48126         * tests/test-yesno.sh: Likewise.
48127
48128 2007-08-19  Bruno Haible  <bruno@clisp.org>
48129
48130         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48131         * lib/fseeko.c (rpl_fseeko): Likewise.
48132         * lib/fseterr.c (fseterr): Likewise.
48133
48134 2007-08-19  Bruno Haible  <bruno@clisp.org>
48135
48136         * tests/test-lseek.c (main): Disable a test for BeOS.
48137         * doc/functions/lseek.texi: Document the BeOS bug.
48138
48139 2007-08-19  Bruno Haible  <bruno@clisp.org>
48140             Eric Blake  <ebb9@byu.net>
48141
48142         * lib/lseek.c: Include <sys/stat.h>.
48143         (rpl_lseek): Add workaround code also for Unix platforms.
48144         Needed for BeOS.
48145         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48146         * doc/functions/lseek.texi: Document BeOS definiency.
48147
48148 2007-08-18  Bruno Haible  <bruno@clisp.org>
48149
48150         * modules/fstrcmp-tests: New file.
48151         * tests/test-fstrcmp.c: New file.
48152
48153 2007-08-18  Bruno Haible  <bruno@clisp.org>
48154
48155         * modules/fstrcmp: New file, from GNU gettext with modifications.
48156         * lib/fstrcmp.h: New file, from GNU gettext.
48157         * lib/fstrcmp.c: New file, from GNU gettext.
48158         * MODULES.html.sh (String handling): Add fstrcmp.
48159
48160 2007-08-18  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48163         'bool'.
48164         (diag, compareseq): Remove const from the ctxt argument.
48165         (USE_HEURISTIC): Undefine at the end.
48166
48167 2007-08-18  Jim Meyering  <jim@meyering.net>
48168
48169         New file: lib/idcache.h
48170         * NEWS: Mention the addition.
48171         * modules/idcache (Files): Add lib/idcache.h
48172         * lib/idcache.c: Include "idcache.h".
48173         Don't include <sys/types.h>.
48174         Add a FIXME comment.
48175         Move file-scoped "static" declarations to the top.
48176         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48177
48178 2007-08-17  Bruno Haible  <bruno@clisp.org>
48179         and Paul Eggert  <eggert@cs.ucla.edu>
48180
48181         * MODULES.html.sh: Add diffseq.
48182         * modules/diffseq: New file.
48183         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48184         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48185
48186 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48187
48188         Import changes from coreutils for bootstrap script.
48189
48190         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48191
48192         * build-aux/bootstrap (slurp): Work even in environments where
48193         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48194         current code does not slurp files whose names start with ".", and
48195         this looks like it might be a troublesome area.
48196
48197         2007-07-11  Jim Meyering  <jim@meyering.net>
48198
48199         If there's a GPL vN copyright comment, require that N == 3.
48200
48201         2007-07-08  Jim Meyering  <jim@meyering.net>
48202
48203         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48204         * build-aux/bootstrap (mam_template): Move definition out of loop.
48205
48206         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48207
48208         * build-aux/bootstrap (symlink_to_dir): Rename function from
48209         symlink_to_gnulib.  Add a directory parameter.  Update all
48210         callers.
48211         (cp_mark_as_generated): Also check for -- and link to -- files in
48212         gl/.
48213
48214         2007-07-08  Jim Meyering  <jim@meyering.net>
48215
48216         Adapt to deeper hierarchy in gnulib.
48217         * build-aux/bootstrap (symlink_to_dir): If the destination
48218         directory doesn't exist, create it. This is required at least for
48219         "lib/uniwidth/cjk.h".
48220
48221         2007-05-15  Jim Meyering  <jim@meyering.net>
48222
48223         * build-aux/bootstrap: Now that generated Makefile.am files
48224         are no longer under version control, they must be created at
48225         bootstrap time.
48226
48227 2007-08-14  Ben Pfaff  <blp@gnu.org>
48228
48229         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48230
48231 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48232
48233         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48234         given the changes below.
48235         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48236         even on hosts that have padding bits beyond the supported 64.
48237
48238 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48239
48240         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48241         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48242         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48243         depends on it.
48244         (xstrtol_error): Remove.
48245         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48246         but with a different signature.
48247         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48248         * lib/xstrtol-error.c: Include exitfail.h.
48249         (xstrtol_fatal): New function, with a different signature from the
48250         old xstrtol_error, so that the caller need not worry about passing
48251         in an exit status, or about storage management of the option argument.
48252         (xstrtol_error): Now a static function.  Redo signature to
48253         implement xstrtol_fatal.  Output the correct number of hyphens in
48254         front of the option so that the caller need not worry about
48255         storage management.
48256         (N_): New macro.
48257         (_): Remove; not used now.
48258         * modules/xstrtol: Depend on getopt.
48259         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48260         of old STRTOL_FATAL_ERROR macro.
48261         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48262         of test program.
48263         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48264         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48265
48266 2007-08-08  Eric Blake  <ebb9@byu.net>
48267
48268         * lib/xstrtol-error.c: Add missing include.
48269
48270         Move xstrtol messages into gnulib domain, when --pobase is used.
48271         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48272         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48273         * modules/xstrtol (Files): Distribute new file.
48274         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48275         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48276         * tests/test-xstrtol.c: ...into new file.
48277         * tests/test-xstrtoul.c: Also test xstrtoul.
48278         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48279         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48280         * tests/test-xstrtol.sh: Drive the tests.
48281         * tests/test-xstrtoimax.sh: Likewise.
48282         * tests/test-xstrtoumax.sh: Likewise.
48283         * modules/xstrtol-tests: New module.
48284         * modules/xstrtoimax-tests: Likewise.
48285         * modules/xstrtoumax-tests: Likewise.
48286
48287 2007-08-08  Jim Meyering  <jim@meyering.net>
48288
48289         New function: mfile_name_concat.
48290         * lib/filenamecat.c (mfile_name_concat): New function, just like
48291         file_name_concat, but return NULL upon failure rather than exiting
48292         with a diagnostic.
48293         * lib/filenamecat.h: Declare it.
48294
48295 2007-08-07  Bruno Haible  <bruno@clisp.org>
48296
48297         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48298         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48299         warning from gcc.
48300         Reported by Eric Blake.
48301
48302 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48303
48304         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48305         * modules/crypto/arcfour (License): Likewise.
48306         * modules/crypto/des-tests (License): Likewise.
48307         * modules/crypto/gc-arctwo-tests (License): Likewise.
48308         * modules/crypto/gc-des-tests (License): Likewise.
48309         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48310         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48311         * modules/crypto/gc-md2-tests (License): Likewise.
48312         * modules/crypto/gc-md4-tests (License): Likewise.
48313         * modules/crypto/gc-md5-tests (License): Likewise.
48314         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48315         * modules/crypto/gc-rijndael-tests (License): Likewise.
48316         * modules/crypto/gc-sha1-tests (License): Likewise.
48317         * modules/crypto/gc-tests (License): Likewise.
48318         * modules/crypto/hmac-md5 (License): Likewise.
48319         * modules/crypto/hmac-sha1 (License): Likewise.
48320         * modules/crypto/md2-tests (License): Likewise.
48321         * modules/crypto/md4-tests (License): Likewise.
48322         * modules/crypto/md5 (License): Likewise.
48323         * modules/crypto/rijndael (License): Likewise.
48324         * modules/crypto/sha1 (License): Likewise.
48325         * modules/memxor (License): Likewise.
48326
48327 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48328         and Bruno Haible  <bruno@clisp.org>
48329
48330         * NEWS: Describe interface changes to human, xstrtol.
48331         * lib/human.h: Include <xstrtol.h>.
48332         (human_options): Return enum strtol_error, not int.  Remove
48333         bool arg; take int * instead.
48334         * lib/human.c: Don't include "gettext.h".
48335         (_): Remove; no longer used.
48336         Don't include <xstrtol.h>, since human.h does it.
48337         (human_options): Adjust to abovementioned interface changes.
48338         Do not report error to stderr; that's now the caller's
48339         responsibility.
48340         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48341         interface change.
48342         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48343         Str, Argument_type_string.  All uses changed.  Put " argument"
48344         in diagnostics to make them clearer.  Change wording of suffix
48345         message for clarity.
48346         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48347         Argument_type_string.
48348         (STRTOL_FATAL_WARN): Remove; no longer used.
48349         * modules/human (Depends-on): Remove gettext-h.
48350
48351 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48352
48353         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48354
48355 2007-07-31  Bruno Haible  <bruno@clisp.org>
48356
48357         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48358         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48359         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48360
48361 2007-07-31  Bruno Haible  <bruno@clisp.org>
48362
48363         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48364         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48365
48366 2007-07-30  Bruno Haible  <bruno@clisp.org>
48367
48368         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48369         * modules/c-ctype (License): Likewise.
48370         * modules/c-strcase (License): Likewise.
48371         * modules/check-version (License): Likewise.
48372         * modules/iconv (License): Likewise.
48373         * modules/iconv_open (License): Likewise.
48374         * modules/read-file (License): Likewise.
48375         * modules/striconv (License): Likewise.
48376         * modules/strverscmp (License): Likewise.
48377         * modules/vasprintf (License): Likewise.
48378         * modules/crypto/des (License): Likewise.
48379         * modules/crypto/gc (License): Likewise.
48380         * modules/crypto/gc-arcfour (License): Likewise.
48381         * modules/crypto/gc-arctwo (License): Likewise.
48382         * modules/crypto/gc-des (License): Likewise.
48383         * modules/crypto/gc-hmac-md5 (License): Likewise.
48384         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48385         * modules/crypto/gc-md2 (License): Likewise.
48386         * modules/crypto/gc-md4 (License): Likewise.
48387         * modules/crypto/gc-md5 (License): Likewise.
48388         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48389         * modules/crypto/gc-random (License): Likewise.
48390         * modules/crypto/gc-rijndael (License): Likewise.
48391         * modules/crypto/gc-sha1 (License): Likewise.
48392         * modules/crypto/md2 (License): Likewise.
48393         * modules/crypto/md4 (License): Likewise.
48394
48395 2007-07-30  Jim Meyering  <jim@meyering.net>
48396
48397         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48398         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48399         it has valid stat data.  This bug would cause du not to count the
48400         sizes of inaccessible directories.
48401         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48402         in <http://bugzilla.redhat.com/250077>.
48403
48404 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48405             Bruno Haible  <bruno@clisp.org>
48406
48407         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48408         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48409         #include_next, gives a diagnostic about it, but reports no error in
48410         the exit code.
48411         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48412
48413 2007-07-24  Ben Pfaff  <blp@gnu.org>
48414
48415         Improve name: "count-one-bits" is better than "popcount".
48416         * MODULES.html.sh: Update name.
48417         * lib/popcount.h: Renamed lib/count-one-bits.h.
48418         (popcount): Renamed count_one_bits.
48419         (popcountl): Renamed count_one_bits_l.
48420         (popcountll): Renamed count_one_bits_ll.
48421         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48422         * modules/popcount: Renamed module/count-one-bits.
48423         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48424         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48425
48426 2007-07-23  Ben Pfaff  <blp@gnu.org>
48427
48428         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48429         better code generation, and add U to large constants to avoid
48430         warnings, in non-GCC case.
48431         Suggested by Bruno Haible.
48432
48433 2007-07-23  Ben Pfaff  <blp@gnu.org>
48434
48435         * lib/popcount.h: Use verify_true instead of if...abort.
48436         * modules/popcount: Depend on verify module.
48437         Suggested by Jim Meyering.
48438
48439 2007-07-23  Bruno Haible  <bruno@clisp.org>
48440
48441         * gnulib-tool (func_import): Create a .cvsignore file also when the
48442         directory is not yet in CVS but the toplevel directory is. When
48443         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48444         Reported by Karl Berry.
48445
48446 2007-07-22  Ben Pfaff  <blp@gnu.org>
48447
48448         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48449         case.
48450         Suggested by Eric Blake.
48451
48452 2007-07-22  Ben Pfaff  <blp@gnu.org>
48453
48454         New module: popcount.
48455         * MODULES.html.sh: Add popcount.
48456         * modules/popcount: New file.
48457         * modules/popcount-tests: New file.
48458         * tests/test-popcount.c: New file.
48459         * lib/popcount.h: New file.
48460         * m4/popcount.m4: New file.
48461
48462 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48463
48464         * build-aux/announce-gen: Update to GPLv3.
48465
48466         * build-aux/config.guess: Update from config.
48467
48468 2007-07-21  Bruno Haible  <bruno@clisp.org>
48469
48470         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48471         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48472
48473 2007-07-20  Jim Meyering  <jim@meyering.net>
48474
48475         * check-module: Diagnose a self-dependency.
48476
48477 2007-07-19  Bruno Haible  <bruno@clisp.org>
48478
48479         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48480         empty.
48481         Reported by Eric Blake.
48482
48483 2007-07-18  Bruno Haible  <bruno@clisp.org>
48484
48485         * gnulib-tool: New options --po-base, --po-domain.
48486         (func_usage): Document them.
48487         (pobase, po_domain): New variables.
48488         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48489         DEFAULT_TEXT_DOMAIN.
48490         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48491         (func_import): Consider pobase and po_domain. Create a po/ directory.
48492         (func_create_testdir): Set pobase and po_domain to empty.
48493         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48494         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48495
48496 2007-07-18  Bruno Haible  <bruno@clisp.org>
48497
48498         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48499         EXTRA_DIST augmentation for files in build-aux/.
48500
48501 2007-07-16  Bruno Haible  <bruno@clisp.org>
48502
48503         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48504         * modules/getdelim (License): Likewise.
48505
48506 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48507
48508         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48509         * modules/d-type (License): Likewise.
48510         * modules/extensions (License): Likewise.
48511         * modules/fnmatch (License): Likewise.
48512         * modules/fseeko (License): Likewise.
48513         * modules/getaddrinfo (License): Likewise.
48514         * modules/getline (License): Likewise.
48515         * modules/getlogin_r (License): Likewise.
48516         * modules/getpass (License): Likewise.
48517         * modules/gettimeofday (License): Likewise.
48518         * modules/glob (License): Likewise.
48519         * modules/inet_ntop (License): Likewise.
48520         * modules/malloc (License): Likewise.
48521         * modules/malloca (License): Likewise.
48522         * modules/memmem (License): Likewise.
48523         * modules/mempcpy (License): Likewise.
48524         * modules/memset (License): Likewise.
48525         * modules/minmax (License): Likewise.
48526         * modules/mktime (License): Likewise.
48527         * modules/netinet_in (License): Likewise.
48528         * modules/pathmax (License): Likewise.
48529         * modules/poll (License): Likewise.
48530         * modules/regex (License): Likewise.
48531         * modules/snprintf (License): Likewise.
48532         * modules/stdbool (License): Likewise.
48533         * modules/stdint (License): Likewise.
48534         * modules/stdio (License): Likewise.
48535         * modules/strcase (License): Likewise.
48536         * modules/strcasestr (License): Likewise.
48537         * modules/strdup (License): Likewise.
48538         * modules/string (License): Likewise.
48539         * modules/strndup (License): Likewise.
48540         * modules/strnlen (License): Likewise.
48541         * modules/strpbrk (License): Likewise.
48542         * modules/strptime (License): Likewise.
48543         * modules/strsep (License): Likewise.
48544         * modules/sys_select (License): Likewise.
48545         * modules/sys_socket (License): Likewise.
48546         * modules/sys_stat (License): Likewise.
48547         * modules/sys_time (License): Likewise.
48548         * modules/time (License): Likewise.
48549         * modules/time_r (License): Likewise.
48550         * modules/timegm (License): Likewise.
48551         * modules/unistd (License): Likewise.
48552         * modules/vsnprintf (License): Likewise.
48553         * modules/wctype (License): Likewise.
48554
48555 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48556
48557         * modules/argz (License): LGPLv2+.
48558
48559 2007-07-15  Karl Berry  <karl@gnu.org>
48560
48561         * doc/gnulib.texi: revise node structure per new fdl.texi.
48562
48563 2007-07-14  Bruno Haible  <bruno@clisp.org>
48564
48565         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48566         the output file.
48567         * lib/uniname/uninames.h: Regenerated.
48568
48569 2007-07-14  Karl Berry  <karl@gnu.org>
48570
48571         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48572         omitting sectioning and index commands.
48573
48574 2007-07-13  Bruno Haible  <bruno@clisp.org>
48575
48576         New gnulib-tool option --more-symlinks.
48577         * gnulib-tool (func_usage): Document --more-symlinks.
48578         (do_copyrights): New variable.
48579         Recognize option --more-symlinks.
48580         (func_import): Don't add a copyright notice transform to
48581         sed_transform_lib_file if do_copyrights is empty.
48582
48583 2007-07-13  Bruno Haible  <bruno@clisp.org>
48584
48585         * lib/vasnprintf.c (decimal_point_char): Define also if
48586         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48587         && !NEED_PRINTF_DIRECTIVE_A.
48588         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48589         Gary V. Vaughan <gary@gnu.org>.
48590
48591 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48592
48593         * lib/inttypes_.h: Undo previous change, since it was fixed
48594         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48595
48596 2007-07-13  Bruno Haible  <bruno@clisp.org>
48597
48598         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48599         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48600
48601 2007-07-13  Jim Meyering  <jim@meyering.net>
48602
48603         df: Don't fail for Tru64's "file-on-file mount".
48604         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48605         so we fall through and use statfs instead.  Details here:
48606         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48607         Reported by Albert Chin.
48608
48609 2007-07-13  Bruno Haible  <bruno@clisp.org>
48610
48611         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48612         * modules/configmake (License): Likewise.
48613         * modules/gettext (License): Likewise.
48614         * modules/gettext-h (License): Likewise.
48615         * modules/include_next (License): Likewise.
48616         * modules/link-warning (License): Likewise.
48617         * modules/localcharset (License): Likewise.
48618         * modules/localename (License): Likewise.
48619         * modules/lock (License): Likewise.
48620         * modules/relocatable-lib-lgpl (License): Likewise.
48621         * modules/size_max (License): Likewise.
48622         * modules/vasnprintf (License): Likewise.
48623         * modules/wchar (License): Likewise.
48624         * modules/xsize (License): Likewise.
48625
48626 2007-07-13  Bruno Haible  <bruno@clisp.org>
48627
48628         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48629         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48630
48631 2007-07-12  Bruno Haible  <bruno@clisp.org>
48632
48633         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48634         in the modules files.
48635
48636 2007-07-11  Karl Berry  <karl@gnu.org>
48637
48638         * MODULES.html.sh (func_module): use
48639          sed -e '\|^'"${includefile}"'$|d'
48640          instead of /.../d, to avoid errors on $includefile's containing /.
48641
48642 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48643
48644         * gnulib-tool (func_import): Avoid duplication of --avoid
48645         statements
48646         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48647         names to `_' in variable names.
48648
48649 2007-07-10  Eric Blake  <ebb9@byu.net>
48650
48651         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48652         * NEWS: Document this change.
48653
48654 2007-07-08  Bruno Haible  <bruno@clisp.org>
48655
48656         Update to Unicode 5.0.
48657         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48658         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48659         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48660         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48661         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48662         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48663         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48664         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48665         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48666         U+10A3F, U+1D242..U+1D244.
48667         (nonspacing_table_ind): Update.
48668         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48669         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48670
48671 2007-07-08  Bruno Haible  <bruno@clisp.org>
48672
48673         Update to Unicode 5.0.
48674         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48675         code transform. Extend the name index field of unicode_name_to_code and
48676         unicode_code_to_name from 16 to 24 bits.
48677         * lib/uniname/uniname.c (unicode_character_name,
48678         unicode_name_character): Add the range 0x12xxx to the code transform.
48679         * lib/uniname/uninames.h: Regenerated.
48680         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48681
48682 2007-07-07  Bruno Haible  <bruno@clisp.org>
48683
48684         * modules/wcwidth-tests: New file.
48685         * tests/test-wcwidth.c: New file.
48686
48687         Work around MacOS X wcwidth() bug.
48688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48689         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48690         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48691         original wcwidth in non-UTF-8 locales.
48692         * modules/wcwidth (Depends-on): Add localcharset, streq,
48693         uniwidth/width.
48694         * doc/functions/wcwidth.texi: Update.
48695
48696 2007-07-07  Bruno Haible  <bruno@clisp.org>
48697
48698         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48699         (wcwidth): New declaration.
48700         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48701         macros.
48702         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48703         here. Prepare for creating <wchar.h> unconditionally.
48704         * modules/wchar (Depends-on): Add link-warning.
48705         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48706         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48707         * lib/wcwidth.h: Remove file.
48708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48709         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48710         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48711         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48712         (Include): Replace wcwidth.h with <wchar.h>.
48713         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48714         * lib/mbchar.h: Don't include wcwidth.h.
48715         * lib/mbswidth.c: Likewise.
48716         * NEWS: Mention the change.
48717
48718 2007-07-07  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48721         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48722         definition with an external declaration.
48723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48724         defined as a function. Remove AC_C_INLINE requirement.
48725         * modules/wcwidth (Files): Add lib/wcwidth.c.
48726         (Makefile.am): Remove redundant statement.
48727
48728 2007-07-07  Bruno Haible  <bruno@clisp.org>
48729
48730         * MODULES.html.sh (Unicode string functions): Add the new modules.
48731
48732         * tests/uniwidth/test-u32-strwidth.c: New file.
48733         * modules/uniwidth/u32-strwidth-tests: New file.
48734
48735         * lib/uniwidth/u32-strwidth.c: New file.
48736         * modules/uniwidth/u32-strwidth: New file.
48737
48738         * tests/uniwidth/test-u16-strwidth.c: New file.
48739         * modules/uniwidth/u16-strwidth-tests: New file.
48740
48741         * lib/uniwidth/u16-strwidth.c: New file.
48742         * modules/uniwidth/u16-strwidth: New file.
48743
48744         * tests/uniwidth/test-u8-strwidth.c: New file.
48745         * modules/uniwidth/u8-strwidth-tests: New file.
48746
48747         * lib/uniwidth/u8-strwidth.c: New file.
48748         * modules/uniwidth/u8-strwidth: New file.
48749
48750         * tests/uniwidth/test-u32-width.c: New file.
48751         * modules/uniwidth/u32-width-tests: New file.
48752
48753         * lib/uniwidth/u32-width.c: New file.
48754         * modules/uniwidth/u32-width: New file.
48755
48756         * tests/uniwidth/test-u16-width.c: New file.
48757         * modules/uniwidth/u16-width-tests: New file.
48758
48759         * lib/uniwidth/u16-width.c: New file.
48760         * modules/uniwidth/u16-width: New file.
48761
48762         * tests/uniwidth/test-u8-width.c: New file.
48763         * modules/uniwidth/u8-width-tests: New file.
48764
48765         * lib/uniwidth/u8-width.c: New file.
48766         * modules/uniwidth/u8-width: New file.
48767
48768         * tests/uniwidth/test-uc_width.c: New file.
48769         * modules/uniwidth/width-tests: New file.
48770
48771         * lib/uniwidth/width.c: New file, from GNU libiconv.
48772         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48773         * modules/uniwidth/width: New file.
48774
48775         * lib/uniwidth.h: New file, from GNU libiconv.
48776         * modules/uniwidth/base: New file.
48777
48778 2007-07-07  Bruno Haible  <bruno@clisp.org>
48779
48780         * lib/uniname.h: New file, from GNU gettext.
48781         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48782         * lib/uniname/uninames.h: New file, from GNU gettext.
48783         * lib/uniname/uniname.c: New file, from GNU gettext.
48784         * tests/uniname/test-uninames.sh: New file.
48785         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48786         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48787         * modules/uniname/base: New file.
48788         * modules/uniname/uniname: New file.
48789         * modules/uniname/uniname-tests: New file.
48790         * MODULES.html.sh (Unicode string functions): Add the new modules.
48791
48792 2007-07-06  Bruno Haible  <bruno@clisp.org>
48793
48794         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48795
48796 2007-07-06  Bruno Haible  <bruno@clisp.org>
48797
48798         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48799         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48800         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48801         include <sys/time.h>.
48802         Reported by Eric Blake.
48803
48804 2007-07-06  Eric Blake  <ebb9@byu.net>
48805
48806         Fix testing canonicalize on cygwin.
48807         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48808         Revert patch from 2007-06-19.
48809         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48810         canonicalize module is also in use.
48811         * tests/test-canonicalize.c: New file.
48812         * tests/test-canonicalize.sh: Likewise.
48813         * modules/canonicalize-tests: Likewise.
48814
48815 2007-07-06  Jim Meyering  <jim@meyering.net>
48816
48817         * lib/getugroups.c (getugroups): Detect getgrent failure.
48818         Adjust comment to reflect reality: this function may return -1.
48819
48820 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48821
48822         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48823         the new TP address.
48824         (usage): Fix typo
48825         (gnulib_mk): New variable.
48826
48827 2007-07-05  Jim Meyering  <jim@meyering.net>
48828
48829         Don't let endgrent clobber errno, no matter how improbable.
48830         * lib/getugroups.c (getugroups): Save and restore errno around
48831         endgrent call.
48832
48833         Close the group DB even when failing with 2^31 or more members.
48834         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48835
48836 2007-07-04  Jim Meyering  <jim@meyering.net>
48837
48838         * lib/getugroups.h: New file.
48839         * lib/getugroups.c: Include "getugroups.h".
48840         Remove uses of "register" keyword.
48841         Move local variable, "cp", down into scope where used.
48842         Give "username" parameter the "const" attribute.
48843         * modules/getugroups (Files): Add lib/getugroups.h
48844
48845 2007-07-04  Karl Berry  <karl@gnu.org>
48846
48847         * MODULES.html.sh (func_all_modules): Complete rename of
48848         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48849
48850 2007-07-02  Bruno Haible  <bruno@clisp.org>
48851
48852         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48853         mode, when inttypes.h comes from gnulib.
48854         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48855
48856 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48857
48858         * NEWS: Mention lgpl module name change.
48859
48860         * modules/lgpl-2.1: Renamed from lgpl.
48861
48862         * NEWS: Mention gpl module name change.
48863
48864         * modules/gpl-3.0: New file, based on gpl-2.0.
48865
48866         * modules/gpl-2.0: Renamed from gpl.
48867
48868         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48869         doc/gpl-2.0.texi.
48870
48871 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48872
48873         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48874         #define __STDC_LIMIT_MACROS temporarily while including
48875         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48876         Problem reported by Joel E. Denny in
48877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48878
48879 2007-07-01  Bruno Haible  <bruno@clisp.org>
48880
48881         * lib/unistdio.h: New file.
48882         * lib/unistdio/u-asnprintf.h: New file.
48883         * lib/unistdio/u-asprintf.h: New file.
48884         * lib/unistdio/u-printf-args.c: New file.
48885         * lib/unistdio/u-printf-args.h: New file.
48886         * lib/unistdio/u-printf-parse.h: New file.
48887         * lib/unistdio/u-snprintf.h: New file.
48888         * lib/unistdio/u-sprintf.h: New file.
48889         * lib/unistdio/u-vasprintf.h: New file.
48890         * lib/unistdio/u-vsnprintf.h: New file.
48891         * lib/unistdio/u-vsprintf.h: New file.
48892         * lib/unistdio/ulc-asnprintf.c: New file.
48893         * lib/unistdio/ulc-asprintf.c: New file.
48894         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48895         * lib/unistdio/ulc-printf-parse.c: New file.
48896         * lib/unistdio/ulc-snprintf.c: New file.
48897         * lib/unistdio/ulc-sprintf.c: New file.
48898         * lib/unistdio/ulc-vasnprintf.c: New file.
48899         * lib/unistdio/ulc-vasprintf.c: New file.
48900         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48901         * lib/unistdio/ulc-vsnprintf.c: New file.
48902         * lib/unistdio/ulc-vsprintf.c: New file.
48903         * lib/unistdio/u8-asnprintf.c: New file.
48904         * lib/unistdio/u8-asprintf.c: New file.
48905         * lib/unistdio/u8-printf-parse.c: New file.
48906         * lib/unistdio/u8-snprintf.c: New file.
48907         * lib/unistdio/u8-sprintf.c: New file.
48908         * lib/unistdio/u8-vasnprintf.c: New file.
48909         * lib/unistdio/u8-vasprintf.c: New file.
48910         * lib/unistdio/u8-vsnprintf.c: New file.
48911         * lib/unistdio/u8-vsprintf.c: New file.
48912         * lib/unistdio/u8-u8-asnprintf.c: New file.
48913         * lib/unistdio/u8-u8-asprintf.c: New file.
48914         * lib/unistdio/u8-u8-snprintf.c: New file.
48915         * lib/unistdio/u8-u8-sprintf.c: New file.
48916         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48917         * lib/unistdio/u8-u8-vasprintf.c: New file.
48918         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48919         * lib/unistdio/u8-u8-vsprintf.c: New file.
48920         * lib/unistdio/u16-asnprintf.c: New file.
48921         * lib/unistdio/u16-asprintf.c: New file.
48922         * lib/unistdio/u16-printf-parse.c: New file.
48923         * lib/unistdio/u16-snprintf.c: New file.
48924         * lib/unistdio/u16-sprintf.c: New file.
48925         * lib/unistdio/u16-vasnprintf.c: New file.
48926         * lib/unistdio/u16-vasprintf.c: New file.
48927         * lib/unistdio/u16-vsnprintf.c: New file.
48928         * lib/unistdio/u16-vsprintf.c: New file.
48929         * lib/unistdio/u16-u16-asnprintf.c: New file.
48930         * lib/unistdio/u16-u16-asprintf.c: New file.
48931         * lib/unistdio/u16-u16-snprintf.c: New file.
48932         * lib/unistdio/u16-u16-sprintf.c: New file.
48933         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48934         * lib/unistdio/u16-u16-vasprintf.c: New file.
48935         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48936         * lib/unistdio/u16-u16-vsprintf.c: New file.
48937         * lib/unistdio/u32-asnprintf.c: New file.
48938         * lib/unistdio/u32-asprintf.c: New file.
48939         * lib/unistdio/u32-printf-parse.c: New file.
48940         * lib/unistdio/u32-snprintf.c: New file.
48941         * lib/unistdio/u32-sprintf.c: New file.
48942         * lib/unistdio/u32-vasnprintf.c: New file.
48943         * lib/unistdio/u32-vasprintf.c: New file.
48944         * lib/unistdio/u32-vsnprintf.c: New file.
48945         * lib/unistdio/u32-vsprintf.c: New file.
48946         * lib/unistdio/u32-u32-asnprintf.c: New file.
48947         * lib/unistdio/u32-u32-asprintf.c: New file.
48948         * lib/unistdio/u32-u32-snprintf.c: New file.
48949         * lib/unistdio/u32-u32-sprintf.c: New file.
48950         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48951         * lib/unistdio/u32-u32-vasprintf.c: New file.
48952         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48953         * lib/unistdio/u32-u32-vsprintf.c: New file.
48954         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48955         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48956         * tests/unistdio/test-ulc-printf1.h: New file.
48957         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48958         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48959         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48960         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48961         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48962         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48963         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48964         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48965         * tests/unistdio/test-u8-asnprintf1.c: New file.
48966         * tests/unistdio/test-u8-asnprintf1.h: New file.
48967         * tests/unistdio/test-u8-printf1.h: New file.
48968         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48969         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48970         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48971         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48972         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48973         * tests/unistdio/test-u8-vasprintf1.c: New file.
48974         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48975         * tests/unistdio/test-u8-vsprintf1.c: New file.
48976         * tests/unistdio/test-u16-asnprintf1.c: New file.
48977         * tests/unistdio/test-u16-asnprintf1.h: New file.
48978         * tests/unistdio/test-u16-printf1.h: New file.
48979         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48980         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48981         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48982         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48983         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48984         * tests/unistdio/test-u16-vasprintf1.c: New file.
48985         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48986         * tests/unistdio/test-u16-vsprintf1.c: New file.
48987         * tests/unistdio/test-u32-asnprintf1.c: New file.
48988         * tests/unistdio/test-u32-asnprintf1.h: New file.
48989         * tests/unistdio/test-u32-printf1.h: New file.
48990         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48991         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48992         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48993         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48994         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48995         * tests/unistdio/test-u32-vasprintf1.c: New file.
48996         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48997         * tests/unistdio/test-u32-vsprintf1.c: New file.
48998         * modules/unistdio/base: New file.
48999         * modules/unistdio/u-printf-args: New file.
49000         * modules/unistdio/ulc-asnprintf: New file.
49001         * modules/unistdio/ulc-asprintf: New file.
49002         * modules/unistdio/ulc-fprintf: New file.
49003         * modules/unistdio/ulc-printf-parse: New file.
49004         * modules/unistdio/ulc-snprintf: New file.
49005         * modules/unistdio/ulc-sprintf: New file.
49006         * modules/unistdio/ulc-vasnprintf: New file.
49007         * modules/unistdio/ulc-vasprintf: New file.
49008         * modules/unistdio/ulc-vfprintf: New file.
49009         * modules/unistdio/ulc-vsnprintf: New file.
49010         * modules/unistdio/ulc-vsprintf: New file.
49011         * modules/unistdio/u8-asnprintf: New file.
49012         * modules/unistdio/u8-asprintf: New file.
49013         * modules/unistdio/u8-printf-parse: New file.
49014         * modules/unistdio/u8-snprintf: New file.
49015         * modules/unistdio/u8-sprintf: New file.
49016         * modules/unistdio/u8-vasnprintf: New file.
49017         * modules/unistdio/u8-vasprintf: New file.
49018         * modules/unistdio/u8-vsnprintf: New file.
49019         * modules/unistdio/u8-vsprintf: New file.
49020         * modules/unistdio/u8-u8-asnprintf: New file.
49021         * modules/unistdio/u8-u8-asprintf: New file.
49022         * modules/unistdio/u8-u8-snprintf: New file.
49023         * modules/unistdio/u8-u8-sprintf: New file.
49024         * modules/unistdio/u8-u8-vasnprintf: New file.
49025         * modules/unistdio/u8-u8-vasprintf: New file.
49026         * modules/unistdio/u8-u8-vsnprintf: New file.
49027         * modules/unistdio/u8-u8-vsprintf: New file.
49028         * modules/unistdio/u16-asnprintf: New file.
49029         * modules/unistdio/u16-asprintf: New file.
49030         * modules/unistdio/u16-printf-parse: New file.
49031         * modules/unistdio/u16-snprintf: New file.
49032         * modules/unistdio/u16-sprintf: New file.
49033         * modules/unistdio/u16-vasnprintf: New file.
49034         * modules/unistdio/u16-vasprintf: New file.
49035         * modules/unistdio/u16-vsnprintf: New file.
49036         * modules/unistdio/u16-vsprintf: New file.
49037         * modules/unistdio/u16-u16-asnprintf: New file.
49038         * modules/unistdio/u16-u16-asprintf: New file.
49039         * modules/unistdio/u16-u16-snprintf: New file.
49040         * modules/unistdio/u16-u16-sprintf: New file.
49041         * modules/unistdio/u16-u16-vasnprintf: New file.
49042         * modules/unistdio/u16-u16-vasprintf: New file.
49043         * modules/unistdio/u16-u16-vsnprintf: New file.
49044         * modules/unistdio/u16-u16-vsprintf: New file.
49045         * modules/unistdio/u32-asnprintf: New file.
49046         * modules/unistdio/u32-asprintf: New file.
49047         * modules/unistdio/u32-printf-parse: New file.
49048         * modules/unistdio/u32-snprintf: New file.
49049         * modules/unistdio/u32-sprintf: New file.
49050         * modules/unistdio/u32-vasnprintf: New file.
49051         * modules/unistdio/u32-vasprintf: New file.
49052         * modules/unistdio/u32-vsnprintf: New file.
49053         * modules/unistdio/u32-vsprintf: New file.
49054         * modules/unistdio/u32-u32-asnprintf: New file.
49055         * modules/unistdio/u32-u32-asprintf: New file.
49056         * modules/unistdio/u32-u32-snprintf: New file.
49057         * modules/unistdio/u32-u32-sprintf: New file.
49058         * modules/unistdio/u32-u32-vasnprintf: New file.
49059         * modules/unistdio/u32-u32-vasprintf: New file.
49060         * modules/unistdio/u32-u32-vsnprintf: New file.
49061         * modules/unistdio/u32-u32-vsprintf: New file.
49062         * modules/unistdio/ulc-asnprintf-tests: New file.
49063         * modules/unistdio/ulc-vasnprintf-tests: New file.
49064         * modules/unistdio/ulc-vasprintf-tests: New file.
49065         * modules/unistdio/ulc-vsnprintf-tests: New file.
49066         * modules/unistdio/ulc-vsprintf-tests: New file.
49067         * modules/unistdio/u8-asnprintf-tests: New file.
49068         * modules/unistdio/u8-vasnprintf-tests: New file.
49069         * modules/unistdio/u8-vasprintf-tests: New file.
49070         * modules/unistdio/u8-vsnprintf-tests: New file.
49071         * modules/unistdio/u8-vsprintf-tests: New file.
49072         * modules/unistdio/u16-asnprintf-tests: New file.
49073         * modules/unistdio/u16-vasnprintf-tests: New file.
49074         * modules/unistdio/u16-vasprintf-tests: New file.
49075         * modules/unistdio/u16-vsnprintf-tests: New file.
49076         * modules/unistdio/u16-vsprintf-tests: New file.
49077         * modules/unistdio/u32-asnprintf-tests: New file.
49078         * modules/unistdio/u32-vasnprintf-tests: New file.
49079         * modules/unistdio/u32-vasprintf-tests: New file.
49080         * modules/unistdio/u32-vsnprintf-tests: New file.
49081         * modules/unistdio/u32-vsprintf-tests: New file.
49082         * MODULES.html.sh (Unicode string functions): Add the new modules.
49083
49084 2007-07-01  Bruno Haible  <bruno@clisp.org>
49085
49086         * lib/sprintf.c (sprintf): Limit the available length estimation,
49087         to avoid address wraparound.
49088         * lib/vsprintf.c (vsprintf): Likewise.
49089         * modules/sprintf-posix (Dependencies): Add stdint.
49090         * modules/vsprintf-posix (Dependencies): Likewise.
49091
49092 2007-07-01  Bruno Haible  <bruno@clisp.org>
49093
49094         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49095         Windows PATH as well. Conservative double-quoting. Comments.
49096
49097 2007-07-01  Bruno Haible  <bruno@clisp.org>
49098             Eric Blake  <ebb9@byu.net>
49099             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49100
49101         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49102         empty components in $PATH, denoting '.'.
49103
49104 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49105
49106         * gnulib-tool: Fix indentation.
49107         (func_create_megatestdir): Likewise.
49108         Report by Bruno Haible.
49109
49110 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49111
49112         Sync from Automake.
49113         * build-aux/gnupload: Fix shell portability issues with for loops.
49114         Report by Karl Berry.
49115
49116 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49117
49118         * build-aux/maint.mk (POURL): Use translationproject.org.
49119
49120 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49121             Bruno Haible  <bruno@clisp.org>
49122
49123         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49124         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49125         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49126         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49127         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49128
49129 2007-06-27  Bruno Haible  <bruno@clisp.org>
49130
49131         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49132         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49133
49134 2007-06-26  Karl Berry  <karl@gnu.org>
49135
49136         * MODULES.html.sh: remove xreadlink-with-size.
49137
49138 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49139
49140         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49141         method that I hope also handles the double-include problem noted
49142         by Bruno Haible in
49143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49144
49145 2007-06-23  Bruno Haible  <bruno@clisp.org>
49146
49147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49148         Don't let the 'mostlyclean' target fail if the last subdirectory could
49149         not be removed.
49150         Reported by Karl Berry.
49151
49152 2007-06-23  Bruno Haible  <bruno@clisp.org>
49153
49154         * gnulib-tool (echo): Add a speedier workaround for ksh.
49155         * tests/test-echo.sh: Likewise.
49156
49157 2007-06-23  Bruno Haible  <bruno@clisp.org>
49158
49159         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49160         * tests/test-echo.sh: Likewise.
49161
49162 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49163
49164         * gnulib-tool (IFS): Initialize early, so we don't set it to
49165         empty later.
49166         (self_abspathname): Rewrite algorithm to set it, reindent.
49167         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49168         (func_create_megatestdir): Merge some sed scripts.
49169
49170 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49171
49172         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49173         exposed by Sun Studio 11 cc on Solaris 8.
49174
49175 2007-06-22  Bruno Haible  <bruno@clisp.org>
49176
49177         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49178         backslashes.
49179         * tests/test-echo.sh: New file.
49180
49181 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49182
49183         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49184         simplify `sed_replace_build_aux' scripts, they are portable but
49185         echoing them with `echo' is not.
49186         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49187
49188 2007-06-21  Karl Berry  <karl@gnu.org>
49189
49190         * config/srclist.txt: guess we can't handle the licenses via
49191         srclist at the moment.
49192
49193 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49194
49195         * MODULES.html.sh: Add include_next.
49196         * modules/include_next: New file.
49197
49198 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49199
49200         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49201         INCLUDE_NEXT.
49202         (gl_CHECK_NEXT_HEADERS): New macro.
49203         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49204         the obsolescent gl_ABSOLUTE_HEADER.
49205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49206         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49207         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49208         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49209         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49210         * m4/math_h.m4 (gl_MATH_H): Likewise.
49211         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49212         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49213         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49214         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49215         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49216         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49217         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49220         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49221         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49222         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49223         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49224         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49225         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49226         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49227         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49228         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49229         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49230         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49231         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49232         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49233         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49234         * lib/float_.h: Likewise.
49235         * lib/inttypes_.h: Likewise.
49236         * lib/math_.h: Likewise.
49237         * lib/search_.h: Likewise.
49238         * lib/signal_.h: Likewise.
49239         * lib/stdint_.h: Likewise.
49240         * lib/stdio_.h: Likewise.
49241         * lib/stdlib_.h: Likewise.
49242         * lib/string_.h: Likewise.
49243         * lib/sys_stat_.h: Likewise.
49244         * lib/sys_time_.h: Likewise.
49245         * lib/time_.h: Likewise.
49246         * lib/unistd_.h: Likewise.
49247         * lib/wchar_.h: Likewise.
49248         * lib/wctype_.h: Likewise.
49249         * lib/dirent_.h: Likewise.
49250         * lib/iconv_.h: Likewise.
49251         * lib/locale_.h: Likewise.
49252         * lib/netinet_in_.h: Likewise.
49253         * lib/sys_select_.h: Likewise.
49254         * lib/sys_socket_.h: Likewise.
49255         * lib/sysexits_.h: Likewise.
49256         * modules/fcntl (Depends-on): Depend on include_next, not
49257         absolute_header.
49258         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49259         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49260         * modules/fchdir: Likewise.
49261         * modules/float: Likewise.
49262         * modules/iconv_open: Likewise.
49263         * modules/inttypes: Likewise.
49264         * modules/locale: Likewise.
49265         * modules/math: Likewise.
49266         * modules/netinet_in: Likewise.
49267         * modules/search: Likewise.
49268         * modules/signal: Likewise.
49269         * modules/stdint: Likewise.
49270         * modules/stdio: Likewise.
49271         * modules/stdlib: Likewise.
49272         * modules/string: Likewise.
49273         * modules/sys_select: Likewise.
49274         * modules/sys_socket: Likewise.
49275         * modules/sys_stat: Likewise.
49276         * modules/sys_time: Likewise.
49277         * modules/sysexits: Likewise.
49278         * modules/time: Likewise.
49279         * modules/unistd: Likewise.
49280         * modules/wchar: Likewise.
49281         * modules/wctype: Likewise.
49282         * modules/sys_stat: Change maintainer to "all".
49283         * modules/unistd: Likewise.
49284
49285 2007-06-20  Karl Berry  <karl@gnu.org>
49286
49287         * config/srclist.txt: track www changes in license files.
49288
49289 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49290
49291         * build-aux/bootstrap: Remove stray dot.
49292         Make sure build_aux settings are honored when linking
49293         gnulib_extra_files.
49294
49295 2007-06-19  Eric Blake  <ebb9@byu.net>
49296
49297         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49298         Allow compilation on cygwin.
49299
49300 2007-06-19  Jim Meyering  <jim@meyering.net>
49301
49302         xreadlink-with-size: Remove module.  No longer used.
49303         Ex-callers now use xreadlink or mreadlink-with-size.
49304         * modules/xreadlink-with-size: Remove module.
49305         * lib/xreadlink-with-size.c: Remove file.
49306         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49307         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49308         just before the function definition *is* accurate.
49309
49310         Eliminate one way canonicalize_filename_mode could exit.
49311         * lib/canonicalize.c (canonicalize_filename_mode):
49312         Use mreadlink_with_size, not xreadlink_with_size.
49313
49314 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49315
49316         Detect porting problems to FreeBSD/arm, which has time_t wider than
49317         long int.  Original problem reported for GNU diff by Xin Li in
49318         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49319         * modules/getdate (Depends-on): Add intprops, verify.
49320         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49321         is an integer type no wider than long int.
49322
49323 2007-06-18  Jim Meyering  <jim@meyering.net>
49324
49325         New module: mreadlink-with-size.
49326         * MODULES.html.sh: Add mreadlink-with-size.
49327         * modules/mreadlink-with-size: New module
49328         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49329         not xreadlink-with-size.
49330         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49331
49332 2007-06-16  Bruno Haible  <bruno@clisp.org>
49333
49334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49335         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49336         Reported by Gary V. Vaughan <gary@gnu.org>.
49337
49338 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49339
49340         Revamp lchown so that it lives in unistd.h where it belongs.
49341         * lib/lchown.h: Remove.
49342         * lib/dirchownmod.c: Don't include lib/lchown.h.
49343         * lib/fchownat.c: Likewise.
49344         * lib/openat.c: Likewise.
49345         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49346         does not follow symlinks.
49347         (EOPNOTSUPP): Define if not defined.
49348         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49349         is defined to 0.
49350         (lchown): New decl.
49351         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49352         Do not check for lchown decl.
49353         Set REPLACE_LCHOWN.
49354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49355         REPLACE_LCHOWN.
49356         * modules/chown: Make it clear it follows symlinks.
49357         * modules/lchown: Make it clear it doesn't follow symlinks.
49358         (Files): Remove lib/lchown.h
49359         (Depends-on): Add unistd.
49360         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49361         (Include): Include <unistd.h>, not "lchown.h".
49362         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49363         REPLACE_LCHOWN.
49364
49365 2007-06-15  Jim Meyering  <jim@meyering.net>
49366
49367         Change license (GPL to LGPL) of fsusage and dependents.
49368         * modules/fsusage (License): Change to LGPL.
49369         * modules/full-read (License): Likewise.
49370         * modules/full-write (License): Likewise.
49371         * modules/safe-read (License): Likewise.
49372         * modules/safe-write (License): Likewise.
49373
49374 2007-06-14  Ben Pfaff  <blp@gnu.org>
49375
49376         Missing part of allocsa -> malloca transition.
49377         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49378         gl_MALLOCA.
49379
49380 2007-06-12  Bruno Haible  <bruno@clisp.org>
49381
49382         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49383         to ia64, x86_64, i386.
49384         Reported by Eric Blake.
49385
49386 2007-06-12  Bruno Haible  <bruno@clisp.org>
49387
49388         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49389         cross-compiling to x86_64.
49390
49391 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49392
49393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49394         glitch reported by Ralf Wildenhues in
49395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49396
49397         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49398         Vin Shelton.
49399
49400 2007-06-11  Bruno Haible  <bruno@clisp.org>
49401
49402         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49403         replacement string.
49404         Reported by Eric Blake.
49405
49406 2007-06-10  Bruno Haible  <bruno@clisp.org>
49407
49408         Prepare vasnprintf code for use with Unicode strings.
49409         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49410         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49411         TYPE_U32_STRING.
49412         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49413         a_u32_string variants.
49414         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49415         * lib/printf-args.c: Don't include config.h and the specification
49416         header if PRINTF_FETCHARGS is already defined.
49417         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49418         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49419         TYPE_U16_STRING, TYPE_U32_STRING.
49420         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49421         u16_directive, u16_directives, u32_directive, u32_directives): New
49422         types.
49423         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49424         New declarations.
49425         * lib/printf-parse.c: Don't include config.h and the specification
49426         header if PRINTF_PARSE is already defined. Eliminate the set of
49427         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49428         them now. Include c-ctype.h.
49429         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49430         directive and CHAR_T_ONLY_ASCII.
49431         * lib/vasnprintf.c: Don't include config.h and the specification header
49432         if VASNPRINTF is already defined.
49433         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49434         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49435         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49436         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49437         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49438         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49439         code accordingly.
49440         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49441         pad_ourselves also in this case, with the 'c' and 's' directives, and
49442         with a different notion of "width".
49443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49444
49445 2007-06-10  Bruno Haible  <bruno@clisp.org>
49446
49447         * modules/unistr/u32-mbsnlen: New file.
49448         * lib/unistr/u32-mbsnlen.c: New file.
49449
49450         * modules/unistr/u16-mbsnlen: New file.
49451         * lib/unistr/u16-mbsnlen.c: New file.
49452
49453         * modules/unistr/u8-mbsnlen: New file.
49454         * lib/unistr/u8-mbsnlen.c: New file.
49455
49456         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49457         declarations.
49458
49459 2007-06-10  Bruno Haible  <bruno@clisp.org>
49460
49461         * lib/string_.h (mbsnlen): New declaration.
49462         * lib/mbsnlen.c: New file.
49463         * m4/mbsnlen.m4: New file.
49464         * modules/mbsnlen: New file.
49465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49466         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49467         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49468
49469 2007-06-10  Bruno Haible  <bruno@clisp.org>
49470
49471         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49472
49473 2007-06-10  Bruno Haible  <bruno@clisp.org>
49474
49475         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49476         * lib/mbuiter.h: Likewise.
49477
49478 2007-06-10  Bruno Haible  <bruno@clisp.org>
49479
49480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49481         declaration.
49482
49483 2007-06-10  Karl Berry  <karl@gnu.org>
49484
49485         * config/srclist.txt: remove gettext entries, Bruno prefers
49486         to update individually.
49487
49488 2007-06-10  Bruno Haible  <bruno@clisp.org>
49489
49490         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49491         'maxlen'. Ensure only length + width bytes are allocated, not
49492         length + 1 + width.
49493
49494 2007-06-09  Bruno Haible  <bruno@clisp.org>
49495
49496         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49497         (CHAR_T): Remove macro.
49498         (VASNPRINTF): Update.
49499
49500 2007-06-09  Bruno Haible  <bruno@clisp.org>
49501
49502         * MODULES.html.sh (Unicode string functions): Add the new modules.
49503
49504         * modules/uniconv/u32-conv-to-enc: New file.
49505         * lib/uniconv/u32-conv-to-enc.c: New file.
49506         * modules/uniconv/u32-conv-to-enc-tests: New file.
49507         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49508
49509         * modules/uniconv/u16-conv-to-enc: New file.
49510         * lib/uniconv/u16-conv-to-enc.c: New file.
49511         * lib/uniconv/u-conv-to-enc.h: New file.
49512         * modules/uniconv/u16-conv-to-enc-tests: New file.
49513         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49514
49515         * modules/uniconv/u8-conv-to-enc: New file.
49516         * lib/uniconv/u8-conv-to-enc.c: New file.
49517         * modules/uniconv/u8-conv-to-enc-tests: New file.
49518         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49519
49520         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49521         u32_conv_to_encoding): New declarations.
49522
49523 2007-06-09  Bruno Haible  <bruno@clisp.org>
49524
49525         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49526
49527 2007-06-09  Bruno Haible  <bruno@clisp.org>
49528
49529         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49530         * modules/malloca: Renamed from modules/allocsa, updated.
49531         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49532         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49533         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49534         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49535         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49536         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49537         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49538         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49539         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49540         * modules/c-strcasestr (Depends-on): Update.
49541         * lib/c-strcasestr.c: Update.
49542         * modules/c-strstr (Depends-on): Update.
49543         * lib/c-strstr.c: Update.
49544         * modules/canonicalize-lgpl (Depends-on): Update.
49545         * lib/canonicalize-lgpl.c: Update.
49546         * modules/clean-temp (Depends-on): Update.
49547         * lib/clean-temp.c: Update.
49548         * modules/csharpcomp (Depends-on): Update.
49549         * lib/csharpcomp.c: Update.
49550         * modules/csharpexec (Depends-on): Update.
49551         * lib/csharpexec.c: Update.
49552         * modules/javacomp (Depends-on): Update.
49553         * lib/javacomp.c: Update.
49554         * modules/javaexec (Depends-on): Update.
49555         * lib/javaexec.c: Update.
49556         * modules/mbscasestr (Depends-on): Update.
49557         * lib/mbscasestr.c: Update.
49558         * modules/mbsstr (Depends-on): Update.
49559         * lib/mbsstr.c: Update.
49560         * modules/setenv (Depends-on): Update.
49561         * lib/setenv.c: Update.
49562         * modules/strcasestr (Depends-on): Update.
49563         * lib/strcasestr.c: Update.
49564         * modules/striconveha (Depends-on): Update.
49565         * lib/striconveha.c: Update.
49566         * modules/relocatable-prog-wrapper (Files): Update.
49567         * lib/relocwrapper.c: Update.
49568         * build-aux/install-reloc: Update.
49569         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49570
49571 2007-06-08  Bruno Haible  <bruno@clisp.org>
49572
49573         Port to uClibc.
49574         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49575         * lib/fpurge.c (fpurge): Likewise.
49576         * lib/freading.c (freading): Likewise.
49577         * lib/fseeko.c (rpl_fseeko): Likewise.
49578         * lib/fseterr.c (fseterr): Likewise.
49579         * lib/fwriting.c (fwriting): Likewise.
49580         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49581
49582 2007-06-08  Bruno Haible  <bruno@clisp.org>
49583
49584         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49585         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49586         * modules/gettext (Files): Add m4/intlmacosx.m4.
49587
49588 2007-06-07  Bruno Haible  <bruno@clisp.org>
49589
49590         * modules/localename-tests: New file.
49591         * tests/test-localename.c: New file.
49592
49593         New module 'localename'.
49594         * lib/localename.h: New file.
49595         * lib/localename.c: New file, from GNU gettext.
49596         * m4/localename.m4: New file.
49597         * modules/localename: New file.
49598
49599 2007-06-07  Bruno Haible  <bruno@clisp.org>
49600
49601         Work around the lack of <wchar.h> on some builds of uClibc.
49602         * doc/headers/wchar.texi: Update.
49603         * lib/wchar_.h: Include <wchar.h> only if it exists.
49604         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49605         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49606         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49607         doesn't exist.
49608         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49609         * modules/mbfile (Depends-on): Add wchar.
49610         * modules/mbiter (Depends-on): Likewise.
49611         * modules/mbuiter (Depends-on): Likewise.
49612         Reported by Simon Josefsson.
49613
49614 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49615
49616         Work around problem reported by Steven M. Schweda in
49617         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49618         Tru64 5.1B with the Compaq compiler environment installed declares
49619         an 'isblank' function but does not define it in the C library.
49620         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49621         * lib/regex_internal.h (isblank): Likewise.
49622         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49623         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49624
49625 2007-06-05  Bruno Haible  <bruno@clisp.org>
49626
49627         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49628         ia64.
49629         * modules/printf-safe: New file.
49630         * modules/fprintf-posix (Depends-on): Add printf-safe.
49631         * modules/printf-posix (Depends-on): Likewise.
49632         * modules/snprintf-posix (Depends-on): Likewise.
49633         * modules/sprintf-posix (Depends-on): Likewise.
49634         * modules/vasnprintf-posix (Depends-on): Likewise.
49635         * modules/vasprintf-posix (Depends-on): Likewise.
49636         * modules/vfprintf-posix (Depends-on): Likewise.
49637         * modules/vprintf-posix (Depends-on): Likewise.
49638         * modules/vsnprintf-posix (Depends-on): Likewise.
49639         * modules/vsprintf-posix (Depends-on): Likewise.
49640         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49641         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49642         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49643         "no" on i386, x86_64, ia64.
49644         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49645         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49646         on i386, x86_64, ia64.
49647         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49648         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49649         on i386, x86_64, ia64.
49650         * tests/test-vasnprintf-posix.c: Include float.h.
49651         (LDBL80_WORDS): New macro.
49652         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49653         on i386, x86_64, ia64.
49654         * tests/test-vasprintf-posix.c: Include float.h.
49655         (LDBL80_WORDS): New macro.
49656         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49657         on i386, x86_64, ia64.
49658         * tests/test-snprintf-posix.c: Include float.h.
49659         * tests/test-sprintf-posix.c: Likewise.
49660         * tests/test-vsnprintf-posix.c: Likewise.
49661         * tests/test-vsprintf-posix.c: Likewise.
49662
49663 2007-06-05  Bruno Haible  <bruno@clisp.org>
49664
49665         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49666         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49667         non-IEEE numbers on i386, x86_64, ia64.
49668         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49669         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49670         * tests/test-isnanl.h: Include float.h.
49671         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49672
49673 2007-06-05  Bruno Haible  <bruno@clisp.org>
49674
49675         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49676         also the %a / %A. Handle the %a / %A code before this extra handling.
49677
49678 2007-06-05  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49681         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49682
49683 2007-06-05  Bruno Haible  <bruno@clisp.org>
49684
49685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49686         typo in variable name.
49687
49688 2007-06-05  Eric Blake  <ebb9@byu.net>
49689
49690         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49691         Reported by Simon Josefsson.
49692
49693 2007-06-04  Bruno Haible  <bruno@clisp.org>
49694
49695         Avoid test failures on some PowerPC platforms.
49696         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49697         Define differently for PowerPC.
49698         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49699         Reported by Gary V. Vaughan <gary@gnu.org>.
49700
49701 2007-06-02  Bruno Haible  <bruno@clisp.org>
49702
49703         Fix test-stdint failure on FreeBSD/ia64.
49704         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49705         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49706         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49707         * doc/headers/stdint.texi: Update.
49708
49709 2007-06-01  Bruno Haible  <bruno@clisp.org>
49710
49711         * tests/test-binary-io.c (main): Pass a third argument to open().
49712         Reported by Gary V. Vaughan <gary@gnu.org>.
49713
49714 2007-06-01  Bruno Haible  <bruno@clisp.org>
49715
49716         * doc/functions/frexpl.texi: Update for mingw.
49717
49718 2007-06-01  Bruno Haible  <bruno@clisp.org>
49719
49720         * tests/test-lseek.c (main): Disable test of errno for invalid third
49721         argument.
49722         * doc/functions/lseek.texi: Update.
49723         Reported by Gary V. Vaughan <gary@gnu.org>.
49724
49725 2007-05-28  Bruno Haible  <bruno@clisp.org>
49726
49727         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49728
49729 2007-05-31  Eric Blake  <ebb9@byu.net>
49730
49731         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49732         cross compiling.
49733
49734 2007-05-30  Eric Blake  <ebb9@byu.net>
49735         and Bruno Haible  <bruno@clisp.org>
49736
49737         Work around mingw test failures exposed by m4-1.4.9b.
49738         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49739         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49740         moment.
49741
49742 2007-05-30  Bruno Haible  <bruno@clisp.org>
49743
49744         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49745         assuming that they are closed. Needed on HP-UX 11.
49746
49747 2007-05-29  Bruno Haible  <bruno@clisp.org>
49748
49749         Fix a problem with #include_next.
49750         * lib/dirent_.h: Split the double-inclusion guard.
49751         * lib/fcntl_.h: Likewise.
49752         * lib/float_.h: Likewise.
49753         * lib/iconv_.h: Likewise.
49754         * lib/inttypes_.h: Likewise.
49755         * lib/locale_.h: Likewise.
49756         * lib/math_.h: Likewise.
49757         * lib/netinet_in_.h: Likewise.
49758         * lib/search_.h: Likewise.
49759         * lib/signal_.h: Likewise.
49760         * lib/stdint_.h: Likewise.
49761         * lib/stdio_.h: Likewise.
49762         * lib/stdlib_.h: Likewise.
49763         * lib/string_.h: Likewise.
49764         * lib/sys_select_.h: Likewise.
49765         * lib/sys_socket_.h: Likewise.
49766         * lib/sys_stat_.h: Likewise.
49767         * lib/sys_time_.h: Likewise.
49768         * lib/sysexits_.h: Likewise.
49769         * lib/time_.h: Likewise.
49770         * lib/unistd_.h: Likewise.
49771         * lib/wchar_.h: Likewise.
49772         * lib/wctype_.h: Likewise.
49773
49774 2007-05-29  Bruno Haible  <bruno@clisp.org>
49775
49776         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49777         for the moment.
49778
49779 2007-05-29  Bruno Haible  <bruno@clisp.org>
49780
49781         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49782         invocation.
49783         Reported by Eric Blake.
49784
49785 2007-05-29  Bruno Haible  <bruno@clisp.org>
49786
49787         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49788         compiling case.
49789
49790 2007-05-29  Eric Blake  <ebb9@byu.net>
49791             Bruno Haible  <bruno@clisp.org>
49792
49793         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49794         cross compiles.
49795
49796 2007-05-28  Eric Blake  <ebb9@byu.net>
49797
49798         * modules/closein-tests (test_closein_LDADD): Support test on
49799         cygwin with libtool.
49800
49801 2007-05-28  Bruno Haible  <bruno@clisp.org>
49802
49803         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49804         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49805         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49806         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49807         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49808         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49809         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49810         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49811         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49812
49813 2007-05-28  Eric Blake  <ebb9@byu.net>
49814
49815         Unconditionally include <config.h> in unit tests.
49816         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49817         * tests/test-allocsa.c, tests/test-arcfour.c,
49818         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49819         tests/test-array_list.c, tests/test-array_oset.c,
49820         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49821         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49822         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49823         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49824         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49825         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49826         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49827         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49828         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49829         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49830         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49831         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49832         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49833         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49834         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49835         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49836         test-md5.c, test-memmem.c, test-printf-posix.c,
49837         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49838         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49839         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49840         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49841         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49842         test-vasnprintf-posix2.c, test-vasnprintf.c,
49843         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49844         test-vfprintf-posix.c, test-vprintf-posix.c,
49845         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49846         test-xvasprintf.c: Likewise.
49847
49848 2007-05-28  Bruno Haible  <bruno@clisp.org>
49849
49850         * gnulib-tool (func_import): Remember the --with-tests command-line
49851         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49852         Reported by Eric Blake.
49853
49854 2007-05-28  Bruno Haible  <bruno@clisp.org>
49855
49856         * modules/ftell-tests: New file.
49857         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49858         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49859
49860         * lib/ftell.c: New file.
49861         * modules/ftell: New file.
49862         * m4/ftell.m4: New file.
49863         * doc/functions/ftell.texi: Update.
49864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49865         REPLACE_FTELL.
49866         * lib/stdio_.h (rpl_ftell): New declaration.
49867         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49868         REPLACE_FTELL.
49869
49870 2007-05-28  Eric Blake  <ebb9@byu.net>
49871
49872         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49873
49874 2007-05-28  Bruno Haible  <bruno@clisp.org>
49875
49876         * modules/fseek-tests: New file.
49877         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49878         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49879
49880         * lib/fseek.c: New file.
49881         * modules/fseek: New file.
49882         * m4/fseek.m4: New file.
49883         * doc/functions/fseek.texi: Update.
49884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49885         REPLACE_FSEEK.
49886         * lib/stdio_.h (rpl_fseek): New declaration.
49887         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49888         REPLACE_FSEEK.
49889
49890 2007-05-28  Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/stdio_.h (fflush): More comments.
49893
49894 2007-05-28  Bruno Haible  <bruno@clisp.org>
49895
49896         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49897         runtime test.
49898
49899 2007-05-28  Eric Blake  <ebb9@byu.net>
49900
49901         Improve lseek module.
49902         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49903         * lib/unistd_.h (lseek): Scale back link warning message.
49904         * tests/test-lseek.c: Beef up test.
49905         * tests/test-lseek.sh: Exercise more facets of lseek.
49906         Reported by Bruno Haible.
49907
49908 2007-05-28  Bruno Haible  <bruno@clisp.org>
49909
49910         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49911         to define.
49912
49913 2007-05-27  Bruno Haible  <bruno@clisp.org>
49914
49915         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49916
49917 2007-05-27  Bruno Haible  <bruno@clisp.org>
49918
49919         * modules/openmp: New file.
49920         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49921         Noah Misch.
49922
49923 2007-05-26  Bruno Haible  <bruno@clisp.org>
49924
49925         * modules/chdir-long (Depends-on): Add fchdir.
49926         * modules/chdir-safer (Depends-on): Likewise.
49927         * modules/fts (Depends-on): Likewise.
49928         * modules/fts-lgpl (Depends-on): Likewise.
49929         * modules/openat (Depends-on): Likewise.
49930         * modules/savewd (Depends-on): Likewise.
49931
49932 2007-05-24  Eric Blake  <ebb9@byu.net>
49933
49934         Fix lseek on mingw.
49935         * modules/lseek: New module.
49936         * m4/lseek.m4: New file.
49937         * lib/lseek.c: New file.
49938         * modules/lseek-tests: New file.
49939         * tests/test-lseek.c: New file.
49940         * tests/test-lseek.sh: New file.
49941         * MODULES.html.sh: Document lseek module.
49942         * modules/fflush (Depends-on): Add lseek, fseeko.
49943         * modules/fseeko (Depends-on): Likewise.
49944         * modules/ftello (Depends-on): Likewise.
49945         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49946         broken.
49947         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49948         broken.
49949         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49950         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49951         * lib/ftello.c (rpl_ftello): Likewise.
49952         * tests/test-fseeko.c (main): Test this.
49953         * tests/test-fseeko.sh: Likewise.
49954         * tests/test-ftello.c (main): Likewise.
49955         * tests/test-ftello.sh: Likewise.
49956         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49957         implies replacing fseek.
49958         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49959         HAVE_FTELLO.
49960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49961         * modules/unistd (Makefile.am): Likewise.
49962         * lib/unistd_.h (lseek): Declare a replacement.
49963         * doc/functions/lseek.texi (lseek): Document this fix.
49964         * doc/functions/fseek.texi (fseek): Likewise.
49965         * doc/functions/ftell.texi (ftell): Likewise.
49966
49967 2007-05-24  Bruno Haible  <bruno@clisp.org>
49968
49969         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49970         in the printed representation of a NaN.
49971         * tests/test-vasprintf-posix.c (test_function): Likewise.
49972         * tests/test-snprintf-posix.h (test_function): Likewise.
49973         * tests/test-sprintf-posix.h (test_function): Likewise.
49974         Reported by Eric Blake.
49975
49976 2007-05-23  Eric Blake  <ebb9@byu.net>
49977
49978         Fix fseeko/ftello on cygwin 1.5.24.
49979         * doc/functions/fseeko.texi (fseeko): Document the fix.
49980         * doc/functions/ftello.texi (ftello): Document the fix.
49981         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49982         * doc/functions/stdout.text (stdout): New file.
49983         * doc/functions/stderr.text (stderr): New file.
49984         * doc/gnulib.texi (Function Substitutes): Use new files.
49985         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49986         prior to 1.7.0.
49987         * tests/test-ftello.c (main): Likewise for ftello.
49988         * tests/test-fseeko.sh: New file.
49989         * tests/test-ftello.sh: New file.
49990         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49991         with seekable stdin.
49992         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49994         (gl_REPLACE_FSEEKO): New macro.
49995         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49996         * modules/fseeko (Files): Distribute fseeko.c.
49997         * modules/ftello (Files): Distribute ftello.c.
49998         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49999         mode.
50000         * lib/ftello.c (rpl_ftello): New file.
50001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50002         fseeko, ftello.
50003         (gl_STDIN_LARGE_OFFSET): New macro.
50004         * modules/stdio (Makefile.am): Perform the replacement.
50005         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50006
50007 2007-05-23  Bruno Haible  <bruno@clisp.org>
50008
50009         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50010         GNULIB_POSIXCHECK is defined.
50011
50012 2007-05-21  Bruno Haible  <bruno@clisp.org>
50013
50014         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50015         Check also the output for NaN arguments. When cross-compiling, guess
50016         no on IRIX.
50017         * lib/vasnprintf.c: Update comments.
50018         * tests/test-vasnprintf-posix.c (strisnan): New function.
50019         (test_function): Use it.
50020         * tests/test-vasprintf-posix.c (strisnan): New function.
50021         (test_function): Use it.
50022         * tests/test-snprintf-posix.h (strisnan): New function.
50023         (test_function): Use it.
50024         * tests/test-sprintf-posix.h (strisnan): New function.
50025         (test_function): Use it.
50026         Reported by Eric Blake.
50027
50028 2007-05-20  Bruno Haible  <bruno@clisp.org>
50029
50030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50031         numbers that fails on BeOS.
50032         * doc/functions/frexpl.texi: Update.
50033
50034 2007-05-20  Jim Meyering  <jim@meyering.net>
50035
50036         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50037         forced upon us by glibc-2.6.
50038
50039 2007-05-20  Bruno Haible  <bruno@clisp.org>
50040
50041         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50042         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50043         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50044         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50045         NEED_PRINTF_INFINITE.
50046         (is_infinitel): New function.
50047         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50049         gl_PREREQ_VASNPRINTF_INFINITE.
50050         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50052         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50053         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50054         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50055         gl_PREREQ_VASNPRINTF_INFINITE.
50056         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50060         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50063         * doc/functions/fprintf.texi: Update.
50064         * doc/functions/printf.texi: Update.
50065         * doc/functions/snprintf.texi: Update.
50066         * doc/functions/sprintf.texi: Update.
50067         * doc/functions/vfprintf.texi: Update.
50068         * doc/functions/vprintf.texi: Update.
50069         * doc/functions/vsnprintf.texi: Update.
50070         * doc/functions/vsprintf.texi: Update.
50071
50072 2007-05-20  Bruno Haible  <bruno@clisp.org>
50073
50074         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50075         was not found in libc.
50076         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50077
50078 2007-05-20  Bruno Haible  <bruno@clisp.org>
50079
50080         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50081         printed as "-nan" instead of "nan".
50082         * tests/test-vasprintf-posix.c (test_function): Likewise.
50083         * tests/test-snprintf-posix.h (test_function): Likewise.
50084         * tests/test-sprintf-posix.h (test_function): Likewise.
50085         Needed for HP-UX 11.
50086
50087 2007-05-20  Jim Meyering  <jim@meyering.net>
50088
50089         Fix buggy test for the fchownat-deref bug.
50090         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50091         symlink required for the run-test.  Without it, this test would
50092         always declare that fchownat doesn't work, and client code would
50093         unnecessarily use the replacement function with fixed libc.
50094         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50095         Reported by Greg Schafer.
50096
50097 2007-05-19  Bruno Haible  <bruno@clisp.org>
50098
50099         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50100         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50101         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50102         Needed for IRIX 6.5 and Solaris 2.5.1.
50103
50104 2007-05-19  Bruno Haible  <bruno@clisp.org>
50105
50106         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50107         (test_function): Skip tests involving -0.0 on platforms where
50108         -0.0 = 0.0.
50109         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50110         (test_function): Skip tests involving -0.0 on platforms where
50111         -0.0 = 0.0.
50112         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50113         (test_function): Skip tests involving -0.0 on platforms where
50114         -0.0 = 0.0.
50115         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50116         (test_function): Skip tests involving -0.0 on platforms where
50117         -0.0 = 0.0.
50118         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50119         tests.
50120         * tests/test-printf-posix.h (test_function): Likewise.
50121         * tests/test-printf-posix.output: Remove all -0.0 related results.
50122         Needed for IRIX 6.5.
50123
50124 2007-05-19  Bruno Haible  <bruno@clisp.org>
50125
50126         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50127         printed as "nan0x7fffffff" instead of "nan".
50128         * tests/test-vasprintf-posix.c (test_function): Likewise.
50129         * tests/test-snprintf-posix.h (test_function): Likewise.
50130         * tests/test-sprintf-posix.h (test_function): Likewise.
50131         * tests/test-fprintf-posix.h (NaN): Remove macro.
50132         (test_function): Remove all NaN related tests.
50133         * tests/test-printf-posix.h (NaN): Remove macro.
50134         (test_function): Remove all NaN related tests.
50135         * tests/test-printf-posix.output: Remove all NaN related results.
50136         Needed for IRIX 6.5.
50137
50138 2007-05-19  Bruno Haible  <bruno@clisp.org>
50139
50140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50142
50143 2007-05-19  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/float_.h: New file.
50146         * m4/float_h.m4: New file.
50147         * modules/float: New file.
50148         * modules/isnanl (Dependencies): Add float.
50149         * modules/isnanl-nolibm (Dependencies): Likewise.
50150         * modules/mathl (Dependencies): Likewise.
50151         * modules/printf-frexpl (Dependencies): Likewise.
50152         * modules/signbit (Dependencies): Likewise.
50153         * modules/vasnprintf (Dependencies): Likewise.
50154         * doc/headers/float.texi: Update.
50155
50156 2007-05-19  Jim Meyering  <jim@meyering.net>
50157
50158         * lib/utimens.c (gl_futimens): Rename from futimens,
50159         now that glibc-2.6 declares futimens.
50160         * lib/utimens.h: Likewise.
50161
50162 2007-05-19  Bruno Haible  <bruno@clisp.org>
50163
50164         Avoid test failures on mingw.
50165         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50166         * tests/test-printf-posix.sh: Likewise.
50167         * tests/test-vfprintf-posix.sh: Likewise.
50168         * tests/test-vprintf-posix.sh: Likewise.
50169
50170 2007-05-19  Bruno Haible  <bruno@clisp.org>
50171
50172         Fix *printf result for NaN, Inf, -0.0 on mingw.
50173         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50174         * lib/vasnprintf.c: Include math.h and isnan.h.
50175         (is_infinite_or_zero): New function.
50176         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50177         values in the %f, %F, %e, %E, %g, %G directives.
50178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50179         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50180         gl_PRINTF_INFINITE and test its result. Invoke
50181         gl_PREREQ_VASNPRINTF_INFINITE.
50182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50183         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50189         * doc/functions/fprintf.texi: Update.
50190         * doc/functions/printf.texi: Update.
50191         * doc/functions/snprintf.texi: Update.
50192         * doc/functions/sprintf.texi: Update.
50193         * doc/functions/vfprintf.texi: Update.
50194         * doc/functions/vprintf.texi: Update.
50195         * doc/functions/vsnprintf.texi: Update.
50196         * doc/functions/vsprintf.texi: Update.
50197
50198 2007-05-19  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50201         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50202         Instead of multiplying with 10^k, set extra_zeroes to k.
50203         (scale10_round_long_double): Remove function.
50204
50205 2007-05-18  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50208         introduced on 2007-05-06.
50209
50210 2007-05-18  Bruno Haible  <bruno@clisp.org>
50211
50212         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50213         %g directives.
50214         * tests/test-vasprintf-posix.c (test_function): Likewise.
50215         * tests/test-snprintf-posix.h (test_function): Likewise.
50216         * tests/test-sprintf-posix.h (test_function): Likewise.
50217
50218 2007-05-18  Bruno Haible  <bruno@clisp.org>
50219
50220         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50221         (strmatch): New function.
50222         (test_function): Test the %f directive on numbers of various exponents.
50223         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50224         (strmatch): New function.
50225         (test_function): Test the %f directive on numbers of various exponents.
50226         * tests/test-snprintf-posix.h (strmatch): New function.
50227         (test_function): Test the %f directive on numbers of various exponents.
50228         * tests/test-sprintf-posix.h (strmatch): New function.
50229         (test_function): Test the %f directive on numbers of various exponents.
50230         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50231         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50232         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50233         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50234
50235 2007-05-18  Bruno Haible  <bruno@clisp.org>
50236
50237         Add support for 'long double' number output.
50238         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50239         * lib/vasnprintf.c: Include math.h and float+.h.
50240         (mp_limb_t): New type.
50241         (GMP_LIMB_BITS): New macro.
50242         (mp_twolimb_t): New type.
50243         (GMP_TWOLIMB_BITS): New macro.
50244         (mpn_t): New type.
50245         (multiply, divide, convert_to_decimal, decode_long_double,
50246         scale10_round_long_double, scale10_round_decimal_long_double,
50247         floorlog10l): New functions.
50248         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50249         for the %f, %F, %e, %E, %g, %G directives.
50250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50251         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50252         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50253         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50256         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50260         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50261         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50262         * modules/snprintf-posix (Depends-on): Likewise.
50263         * modules/sprintf-posix (Depends-on): Likewise.
50264         * modules/vasnprintf-posix (Depends-on): Likewise.
50265         * modules/vasprintf-posix (Depends-on): Likewise.
50266         * modules/vfprintf-posix (Depends-on): Likewise.
50267         * modules/vsnprintf-posix (Depends-on): Likewise.
50268         * modules/vsprintf-posix (Depends-on): Likewise.
50269         * modules/vasnprintf (Files): Add lib/float+.h.
50270         * doc/functions/fprintf.texi: Update.
50271         * doc/functions/printf.texi: Update.
50272         * doc/functions/snprintf.texi: Update.
50273         * doc/functions/sprintf.texi: Update.
50274         * doc/functions/vfprintf.texi: Update.
50275         * doc/functions/vprintf.texi: Update.
50276         * doc/functions/vsnprintf.texi: Update.
50277         * doc/functions/vsprintf.texi: Update.
50278
50279 2007-05-18  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50282
50283 2007-05-18  Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50286         for printing 64-bit integers. Needed for mingw.
50287
50288 2007-05-18  Bruno Haible  <bruno@clisp.org>
50289
50290         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50291         gl_FUNC_FREXPL_WORKS.
50292         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50293
50294 2007-05-18  Bruno Haible  <bruno@clisp.org>
50295
50296         * modules/frexpl-nolibm-tests: New file.
50297
50298         * modules/frexpl-nolibm: New file.
50299         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50300
50301 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50302
50303         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50304         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50305         GCC 4.2, which otherwise issues a lot of warnings.
50306         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50307         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50308         Likewise.
50309         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50310         * modules/iconv_open (iconv.h): Likewise.
50311         * modules/locale (locale.h): Likewise.
50312         * modules/netinet_in (netinet/in.h): Likewise.
50313         * modules/sys_select (sys_select.h): Likewise.
50314         * modules/sys_socket (sys/socket.h): Likewise.
50315         * modules/sys_stat (sys/stat.h): Likewise.
50316         * modules/sysexits (sysexits.h): Likewise.
50317         * modules/unistd (unistd.h): Likewise.
50318
50319 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50320
50321         * modules/closein-tests (Makefile.am): Distribute
50322         `test-closein.sh'.
50323
50324 2007-05-17  Bruno Haible  <bruno@clisp.org>
50325
50326         * tests/test-printf-posix.output: Renamed from
50327         tests/test-fprintf-posix.out.
50328         * modules/fprintf-posix-tests: Update.
50329         * modules/printf-posix-tests: Update.
50330         * modules/vfprintf-posix-tests: Update.
50331         * modules/vprintf-posix-tests: Update.
50332         * tests/test-fprintf-posix.sh: Update.
50333         * tests/test-printf-posix.sh: Update.
50334         * tests/test-vfprintf-posix.sh: Update.
50335         * tests/test-vprintf-posix.sh: Update.
50336         Reported by Ralf Wildenhues.
50337
50338 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50339
50340         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50341         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50342         GCC 4.2, which otherwise issues a lot of warnings.
50343         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50344         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50345         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50346         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50347         it should no longer be needed.
50348         * lib/string_.h: Likewise.
50349         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50350         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50351         * modules/inttypes (inttypes.h): Likewise.
50352         * modules/math (math.h): Likewise.
50353         * modules/search (search.h): Likewise.
50354         * modules/signal (signal.h): Likewise.
50355         * modules/stdint (stdint.h): Likewise.
50356         * modules/stdio (stdio.h): Likewise.
50357         * modules/stdlib (stdlib.h): Likewise.
50358         * modules/string (string.h): Likewise.
50359         * modules/sys_time (sys/time.h): Likewise.
50360         * modules/time (time.h): Likewise.
50361         * modules/wchar (wchar.h): Likewise.
50362         * modules/wctype (wtype.h): Likewise.
50363
50364 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50365
50366         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50367
50368 2007-05-13  Bruno Haible  <bruno@clisp.org>
50369
50370         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50371         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50372         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50373         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50374         (gl_PREREQ_STRTOK_R): Don't require it here.
50375
50376 2007-05-13  Bruno Haible  <bruno@clisp.org>
50377
50378         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50379         when used in C++ mode.
50380
50381 2007-05-12  Bruno Haible  <bruno@clisp.org>
50382
50383         * lib/linebuffer.h: Tweak doc.
50384         * lib/linebuffer.c: Likewise.
50385
50386 2007-05-12  James Youngman  <jay@gnu.org>
50387
50388         * lib/linebuffer.c (readlinebuffer_delim): New function,
50389         like readlinebuffer, but use a caller-specified delimiter.
50390         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50391         as the delimiter.
50392         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50393
50394 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50395
50396         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50397         * modules/openat (Files): Remove openat-die.c.
50398         (Depends-on): Add openat-die.
50399         * modules/openat-die: New module.
50400
50401 2007-05-06  Bruno Haible  <bruno@clisp.org>
50402
50403         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50404         Update with info about Cygwin.
50405         * doc/functions/fprintf.texi: Update.
50406         * doc/functions/printf.texi: Update.
50407         * doc/functions/snprintf.texi: Update.
50408         * doc/functions/sprintf.texi: Update.
50409         * doc/functions/vfprintf.texi: Update.
50410         * doc/functions/vprintf.texi: Update.
50411         * doc/functions/vsnprintf.texi: Update.
50412         * doc/functions/vsprintf.texi: Update.
50413         Reported by Eric Blake.
50414
50415 2007-05-06  Bruno Haible  <bruno@clisp.org>
50416
50417         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50418         padding ourselves for the floating-point directives.
50419         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50421         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50422         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50423         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50424         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50425         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50428         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50430         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50431         * tests/test-snprintf-posix.h (test_function): Also check the width
50432         and some flags in the %f directive.
50433         * tests/test-sprintf-posix.h (test_function): Likewise.
50434         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50435         * tests/test-vasprintf-posix.c (test_function): Likewise.
50436         * doc/functions/fprintf.texi: Update.
50437         * doc/functions/printf.texi: Update.
50438         * doc/functions/snprintf.texi: Update.
50439         * doc/functions/sprintf.texi: Update.
50440         * doc/functions/vfprintf.texi: Update.
50441         * doc/functions/vprintf.texi: Update.
50442         * doc/functions/vsnprintf.texi: Update.
50443         * doc/functions/vsprintf.texi: Update.
50444
50445 2007-05-06  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50448         pass the ' flag character to sprintf or snprintf.
50449         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50452         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50453         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50455         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50460         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50461         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50462         flag.
50463         * tests/test-sprintf-posix.h (test_function): Likewise.
50464         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50465         * tests/test-vasprintf-posix.c (test_function): Likewise.
50466         * doc/functions/fprintf.texi: Update.
50467         * doc/functions/printf.texi: Update.
50468         * doc/functions/snprintf.texi: Update.
50469         * doc/functions/sprintf.texi: Update.
50470         * doc/functions/vfprintf.texi: Update.
50471         * doc/functions/vprintf.texi: Update.
50472         * doc/functions/vsnprintf.texi: Update.
50473         * doc/functions/vsprintf.texi: Update.
50474
50475 2007-05-01  Bruno Haible  <bruno@clisp.org>
50476
50477         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50478
50479 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50480
50481         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50482         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50483
50484 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50485
50486         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50487         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50488         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50489
50490 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50491
50492         * lib/argp-help.c (struct hol_entry): New member `ord'.
50493         (HOL_ENTRY_PTRCMP): Use ord for comparison
50494         (hol_sort): Initialize ord.
50495
50496 2007-05-01  Bruno Haible  <bruno@clisp.org>
50497
50498         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50499         Reported by Eric Blake.
50500         * doc/gnulib.texi (Function Substitutes): Update.
50501
50502 2007-05-01  Bruno Haible  <bruno@clisp.org>
50503
50504         * doc/functions.texi: Remove file, now redundant through
50505         doc/functions/*.texi.
50506
50507 2007-05-01  Bruno Haible  <bruno@clisp.org>
50508
50509         * modules/argp (Depends-on): Add sleep.
50510
50511 2007-05-01  Bruno Haible  <bruno@clisp.org>
50512
50513         * modules/sleep-tests: New file.
50514         * tests/test-sleep.c: New file.
50515
50516         * modules/sleep: New file.
50517         * lib/sleep.c: New file.
50518         * m4/sleep.m4: New file.
50519         * lib/unistd_.h (sleep): New declaration.
50520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50521         HAVE_SLEEP.
50522         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50523         * doc/functions/sleep.texi: Document the sleep module.
50524
50525 2007-05-01  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/sigprocmask.h: Remove file.
50528         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50529         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50530         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50531         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50532         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50533         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50534         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50535         HAVE_SIGSET_T as a shell variable.
50536         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50537         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50538         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50539         (Depends-on): Add signal. Remove verify.
50540         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50541         (Include): Mention <signal.h> instead of sigprocmask.h.
50542         * NEWS: Mention the change.
50543         * lib/fatal-signal.c: Don't include sigprocmask.h.
50544
50545 2007-05-01  Bruno Haible  <bruno@clisp.org>
50546
50547         * modules/signal: New file.
50548         * lib/signal_.h: New file.
50549         * m4/signal_h.m4: New file.
50550
50551 2007-05-01  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50554         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50555         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50556         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50557
50558 2007-05-01  Bruno Haible  <bruno@clisp.org>
50559
50560         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50561         configure time.
50562         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50563         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50564         * modules/sys_stat (Makefile.am): Substitute their values into
50565         sys/stat.h.
50566
50567 2007-05-01  Bruno Haible  <bruno@clisp.org>
50568
50569         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50570         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50571         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50572
50573 2007-05-01  Bruno Haible  <bruno@clisp.org>
50574
50575         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50576         'assert' module here.
50577
50578 2007-05-01  Bruno Haible  <bruno@clisp.org>
50579
50580         * doc/functions/*.texi: New files.
50581         * doc/functions/google-ranking.txt: New file.
50582         * doc/gnulib.texi (Function Substitutes): New chapter.
50583         (ctime, inet_ntoa): Remove sections.
50584         * doc/ctime.texi: Remove file.
50585         * doc/inet_ntoa.texi: Remove file.
50586         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50587         dependencies.
50588         (%.info): New rule, specifying a --reference-limit.
50589
50590 2007-05-01  Bruno Haible  <bruno@clisp.org>
50591
50592         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50593
50594 2007-05-01  Bruno Haible  <bruno@clisp.org>
50595
50596         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50597         the portability of 'mkdir' to mingw systems.
50598
50599 2007-05-01  Bruno Haible  <bruno@clisp.org>
50600
50601         * doc/headers/google-ranking.txt: New file.
50602
50603 2007-04-30  Eric Blake  <ebb9@byu.net>
50604
50605         Prefer fseeko to fseek.
50606         * modules/getpass (Depends-on): Add fseeko.
50607         * lib/getpass.c (getpass): Use fseeko, not fseek.
50608
50609 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50610
50611         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50612         assumes the sorting is stable, while most qsort implementations
50613         are not.  Use argument addresses to ensure they never compare as
50614         equal.
50615
50616         * tests/test-argp-2.sh (usage-indent test): Fix output
50617         (func_compare): Restore diff options
50618         * tests/test-argp.c: Restore #include "progname.h"
50619
50620 2007-04-29  Bruno Haible  <bruno@clisp.org>
50621
50622         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50623         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50624         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50626         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50627         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50628         (TESTS, check_PROGRAMS): Add test-snprintf.
50629         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50630         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50631         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50632         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50633         assertions that fail on HP-UX, OSF/1, or IRIX.
50634         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50635
50636 2007-04-29  Bruno Haible  <bruno@clisp.org>
50637
50638         * MODULES.html.sh (posix_functions): Remove 'contents'.
50639
50640 2007-04-29  Karl Berry  <karl@gnu.org>
50641
50642         * config/srclist.txt (gendocs_template_min): new entry.
50643
50644 2007-04-29  Bruno Haible  <bruno@clisp.org>
50645
50646         Work around fpurge bug on BSD systems.
50647         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50648         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50649         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50650         fpurge to rpl_fpurge if the system already has this function.
50651         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50652         the case where the system already has this function. Correct invariants
50653         on BSD systems.
50654         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50655         BSD systems.
50656
50657 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50658
50659         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50660         proposed by Sven Verdoolaege.
50661
50662         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50663         options.
50664         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50665         (usage and help tests): Update
50666
50667 2007-04-29  Bruno Haible  <bruno@clisp.org>
50668
50669         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50670         Print more information in case of failure. Disable a test on BeOS.
50671
50672 2007-04-29  Bruno Haible  <bruno@clisp.org>
50673
50674         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50675         This helps debugging on systems on which no gdb is available.
50676
50677 2007-04-29  Bruno Haible  <bruno@clisp.org>
50678
50679         * lib/freading.h: Improve comments.
50680         * lib/fwriting.h: Likewise.
50681         * tests/test-freading.c (main): Don't check freading immediately after
50682         repositioning. Needed for glibc.
50683
50684 2007-04-29  Bruno Haible  <bruno@clisp.org>
50685
50686         * lib/freading.c (freading): Trivial simplification.
50687
50688 2007-04-28  Bruno Haible  <bruno@clisp.org>
50689
50690         * tests/test-fwriting.c (main): Also test the interaction between
50691         fflush and fwriting.
50692         * modules/fwriting-tests (Depends-on): Add fflush.
50693
50694         * tests/test-freading.c (main): Also test the interaction between
50695         fflush and freading.
50696         * modules/freading-tests (Depends-on): Add fflush.
50697
50698 2007-04-28  Bruno Haible  <bruno@clisp.org>
50699
50700         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50701         fseeko and ftello.
50702         Suggested by Eric Blake.
50703
50704 2007-04-28  Jim Meyering  <jim@meyering.net>
50705
50706         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50707         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50708         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50709
50710 2007-04-27  Eric Blake  <ebb9@byu.net>
50711
50712         * doc/headers/assert.texi (assert.h): Document assert module use.
50713
50714 2007-04-27  Bruno Haible  <bruno@clisp.org>
50715
50716         * doc/headers/*.texi: New files.
50717         * doc/gnulib.texi (Header File Substitutes): New chapter.
50718         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50719         dependencies.
50720         (standards.info ,standards.html, standards.dvi): Update dependencies.
50721         (mostlyclean, clean): New targets.
50722
50723 2007-04-27  Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50726         * modules/sysexits (Files, Makefile.am): Update.
50727
50728         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50729         * modules/sys_socket (Files, Makefile.am): Update.
50730
50731         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50732         * modules/sys_stat (Files, Makefile.am): Update.
50733
50734 2007-04-27  Eric Blake  <ebb9@byu.net>
50735
50736         * lib/freading.h: Improve comments.
50737         * lib/fwriting.h: Likewise.
50738         * lib/fflush.c: Likewise.
50739
50740         Fix closein for mingw.
50741         * modules/closein-tests: Add tests for closein.
50742         * tests/test-closein.c: New file.
50743         * tests/test-closein.sh: Likewise.
50744         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50745         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50746
50747 2007-04-27  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50750         version is < 6.
50751         * lib/math_.h [__DECC]: Likewise.
50752         * lib/stdio_.h [__DECC]: Likewise.
50753         * lib/stdlib_.h [__DECC]: Likewise.
50754         * lib/string_.h [__DECC]: Likewise.
50755         * lib/time_.h [__DECC]: Likewise.
50756         * lib/wchar_.h [__DECC]: Likewise.
50757         * lib/wctype_.h [__DECC]: Likewise.
50758
50759 2007-04-27  Bruno Haible  <bruno@clisp.org>
50760
50761         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50762
50763 2007-04-27  Bruno Haible  <bruno@clisp.org>
50764
50765         * lib/fflush.c: Add comments.
50766         * modules/fpurge-tests (Depends-on): Add fflush.
50767         * modules/freadable-tests (Depends-on): Likewise.
50768         * modules/fwritable-tests (Depends-on): Likewise.
50769
50770 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50771
50772         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50773         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50774         Report by Bruno Haible <bruno@clisp.org>.
50775
50776 2007-04-26  Eric Blake  <ebb9@byu.net>
50777
50778         Fix fflush on mingw.
50779         * modules/fflush (Depends-on): Add freading.
50780         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50781         but unread data.
50782
50783 2007-04-26  Eric Blake  <ebb9@byu.net>
50784         and Bruno Haible  <bruno@clisp.org>
50785
50786         Implement freading and fwriting.
50787         * lib/freading.c: New file.
50788         * lib/freading.h: Likewise.
50789         * m4/freading.m4: Likewise.
50790         * modules/freading: Likewise.
50791         * modules/freading-tests: Likewise.
50792         * tests/test-freading.c: Likewise.
50793         * lib/fwriting.c: New file.
50794         * lib/fwriting.h: Likewise.
50795         * m4/fwriting.m4: Likewise.
50796         * modules/fwriting: Likewise.
50797         * modules/fwriting-tests: Likewise.
50798         * tests/test-fwriting.c: Likewise.
50799         * MODULES.html.sh (File stream based Input/Output): Mention them.
50800
50801 2007-04-26  Bruno Haible  <bruno@clisp.org>
50802
50803         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50804         'long' when we assume it.
50805         Suggested by Eric Blake.
50806
50807 2007-04-26  Bruno Haible  <bruno@clisp.org>
50808
50809         Ensure fseeko, ftello are declared on glibc systems.
50810         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50811         * modules/fseeko (configure.ac-early): Likewise.
50812         * modules/ftello (configure.ac-early): Likewise.
50813         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50814         AC_FUNC_FSEEKO for this.
50815         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50816         (gl_CHECK_FSEEKO): Remove macro.
50817
50818 2007-04-26  Bruno Haible  <bruno@clisp.org>
50819
50820         * tests/test-fflush.c (main): Also check the ftell result after
50821         fflush and fseek/fseeko.
50822         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50823         file descriptor position cache in the stream.
50824         * lib/fseeko.c (rpl_fseeko): Likewise.
50825
50826 2007-04-26  Bruno Haible  <bruno@clisp.org>
50827
50828         * modules/fflush-tests (Depends-on): Add fseeko.
50829
50830 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50831             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50832
50833         * lib/argz_.h: ensure error_t definition is obtained in same
50834         mechanism system argz.h would have.
50835         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50836         argz facilities are known bad.  Err on the side of caution if
50837         cross-compiling.
50838
50839 2007-04-25  Eric Blake  <ebb9@byu.net>
50840
50841         * lib/fpurge.c (includes): Use stdlib.h for free.
50842         * tests/test-fflush.c (main): Also test fflush-fseeko.
50843
50844 2007-04-25  Bruno Haible  <bruno@clisp.org>
50845
50846         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50847         * lib/fseeko.c: New file.
50848         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50849         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50850         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50851         gl_FUNC_FSEEKO.
50852         (gl_FUNC_FSEEKO): Invoke it.
50853         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50854         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50855         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50856
50857 2007-04-25  Bruno Haible  <bruno@clisp.org>
50858
50859         * modules/fflush (Depends-on): Add ftello.
50860
50861 2007-04-25  Bruno Haible  <bruno@clisp.org>
50862
50863         * modules/ftello-tests: New file.
50864         * tests/test-ftello.c: New file.
50865
50866         * modules/ftello: New file.
50867         * m4/ftello.m4: New file.
50868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50869         HAVE_FTELLO.
50870         * lib/stdio_.h (ftello): New declaration.
50871         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50872         HAVE_FTELLO.
50873
50874 2007-04-25  Bruno Haible  <bruno@clisp.org>
50875
50876         * modules/fseeko-tests: New file.
50877         * tests/test-fseeko.c: New file.
50878
50879         * modules/fseeko: New file.
50880         * m4/fseeko.m4: New file.
50881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50882         HAVE_FSEEKO.
50883         * lib/stdio_.h (fseeko): New declaration.
50884         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50885         HAVE_FSEEKO.
50886
50887 2007-04-25  Bruno Haible  <bruno@clisp.org>
50888
50889         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50890
50891 2007-04-25  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50894         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50895         * tests/test-unistd.c: Likewise.
50896         * tests/test-fcntl.c: Likewise.
50897
50898 2007-04-23  Eric Blake  <ebb9@byu.net>
50899
50900         * lib/fflush.c: Fix missing include.
50901         Reported by Bruno Haible.
50902
50903 2007-04-23  Bruno Haible  <bruno@clisp.org>
50904
50905         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50906         Reported by Eric Blake.
50907
50908 2007-04-23  Bruno Haible  <bruno@clisp.org>
50909
50910         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50911
50912 2007-04-23  Bruno Haible  <bruno@clisp.org>
50913
50914         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50915
50916 2007-04-23  Bruno Haible  <bruno@clisp.org>
50917
50918         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50919         Needed on HP-UX 11.
50920
50921 2007-04-16  Eric Blake  <ebb9@byu.net>
50922
50923         Make fflush rely on fpurge.
50924         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50925         open coding all variants.
50926         * modules/fflush (Depends-on): Add fpurge and unistd.
50927         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50928         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50929
50930         Fix --with-tests compilation on cygwin.
50931         * modules/argmatch-tests (Makefile.am): List gnulib library first
50932         in LDADD.
50933         * modules/argp-tests (Makefile.am): Likewise.
50934         * modules/array-list-tests (Makefile.am): Likewise.
50935         * modules/array-oset-tests (Makefile.am): Likewise.
50936         * modules/avltree-list-tests (Makefile.am): Likewise.
50937         * modules/avltree-oset-tests (Makefile.am): Likewise.
50938         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50939         * modules/carray-list-tests (Makefile.am): Likewise.
50940         * modules/dirname-tests (Makefile.am): Likewise.
50941         * modules/frexp-tests (Makefile.am): Likewise.
50942         * modules/isnanl-tests (Makefile.am): Likewise.
50943         * modules/linked-list-tests (Makefile.am): Likewise.
50944         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50945         * modules/lock-tests (Makefile.am): Likewise.
50946         * modules/rbtree-list-tests (Makefile.am): Likewise.
50947         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50948         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50949         * modules/tls-tests (Makefile.am): Likewise.
50950         * modules/tsearch-tests (Makefile.am): Likewise.
50951         * modules/xvasprintf-tests (Makefile.am): Likewise.
50952
50953         Fix fpurge for cygwin.
50954         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50955         value.
50956         * modules/fpurge-tests (Depends-on): Clean up trash.
50957
50958 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50959
50960         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50961
50962         * m4/autobuild.m4: Re-indent.
50963
50964 2007-04-13  Bruno Haible  <bruno@clisp.org>
50965
50966         * modules/fpurge-tests: New file.
50967         * tests/test-fpurge.c: New file.
50968
50969         * modules/fpurge: New file.
50970         * lib/fpurge.h: New file.
50971         * lib/fpurge.c: New file.
50972         * m4/fpurge.m4: New file.
50973
50974 2007-04-13  Bruno Haible  <bruno@clisp.org>
50975
50976         * modules/fbufmode-tests: New file.
50977         * tests/test-fbufmode.c: New file.
50978
50979         * modules/fbufmode: New file.
50980         * lib/fbufmode.h: New file.
50981         * lib/fbufmode.c: New file.
50982         * m4/fbufmode.m4: New file.
50983
50984 2007-04-13  Bruno Haible  <bruno@clisp.org>
50985
50986         * modules/fwritable-tests: New file.
50987         * tests/test-fwritable.c: New file.
50988
50989         * modules/fwritable: New file.
50990         * lib/fwritable.h: New file.
50991         * lib/fwritable.c: New file.
50992         * m4/fwritable.m4: New file.
50993
50994 2007-04-13  Bruno Haible  <bruno@clisp.org>
50995
50996         * modules/freadable-tests: New file.
50997         * tests/test-freadable.c: New file.
50998
50999         * modules/freadable: New file.
51000         * lib/freadable.h: New file.
51001         * lib/freadable.c: New file.
51002         * m4/freadable.m4: New file.
51003
51004 2007-04-13  Bruno Haible  <bruno@clisp.org>
51005
51006         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51007         MOSTLYCLEANFILES.
51008
51009 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51010
51011         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51012         gzip bootstrap.conf to avoid dragging in i18n machinery.
51013         (gnulib_tool_option): Use it.
51014
51015 2007-04-13  Bruno Haible  <bruno@clisp.org>
51016
51017         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51018         %F directives.
51019         * tests/test-vasprintf-posix.c (test_function): Likewise.
51020         * tests/test-snprintf-posix.h (test_function): Likewise.
51021         * tests/test-sprintf-posix.h (test_function): Likewise.
51022         * tests/test-fprintf-posix.h (test_function): Likewise.
51023         * tests/test-printf-posix.h (test_function): Likewise.
51024         * tests/test-fprintf-posix.out: Likewise.
51025
51026 2007-04-13  Bruno Haible  <bruno@clisp.org>
51027
51028         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51029         * modules/tls-tests (configure.ac): Likewise.
51030         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51031
51032 2007-04-13  Bruno Haible  <bruno@clisp.org>
51033
51034         * lib/tls.c (glthread_tls_get): Fix return type.
51035         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51036
51037 2007-04-12  Eric Blake  <ebb9@byu.net>
51038
51039         * modules/gettime (Depends-on): Remove gettime.
51040         Reported by Dmitry V. Levin.
51041
51042 2007-04-12  Bruno Haible  <bruno@clisp.org>
51043
51044         * modules/fflush (Include): Mention <stdio.h>.
51045         * modules/strtoimax (Include): Mention <inttypes.h>.
51046         * modules/strtoumax (Include): Likewise.
51047
51048 2007-04-12  Eric Blake  <ebb9@byu.net>
51049
51050         * .cvsignore: New file.
51051         * .gitignore: Likewise.
51052
51053 2007-04-12  Bruno Haible  <bruno@clisp.org>
51054
51055         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51056         not before, since $(LDADD) often contains libgnu.a.
51057         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51058         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51059         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51060         Needed on Cygwin.
51061
51062 2007-04-12  Eric Blake  <ebb9@byu.net>
51063
51064         Work around glibc's failure to flush stdin on fclose.
51065         * lib/closein.c (close_stdin): Flush stdin before closing.
51066
51067         Work around glibc's failure to reset seekable stdin on exit.
51068         * modules/closein: New module.
51069         * lib/closein.c: New file.
51070         * lib/closein.h: Likewise.
51071         * m4/closein.m4: Likewise.
51072         * MODULES.html.sh (File stream based Input/Output): Document it.
51073
51074 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51075
51076         * gnulib-tool: Rename generated 'autobuild' script to
51077         'do-autobuild' in --create-megatestdir output.
51078
51079         * doc/gnulib.texi (Build robot for gnulib): Fix.
51080
51081 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51082
51083         * modules/sysexits (Depends-on): Add absolute-header.
51084
51085 2007-04-12  Eric Blake  <ebb9@byu.net>
51086
51087         No need to preserve errno on success.
51088         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51089         Reported by Bruno Haible.
51090
51091 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51092
51093         * MODULES.html.sh (Support for maintaining and releasing
51094         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51095
51096 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51097
51098         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51099
51100 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51101
51102         * modules/autobuild: New module.
51103
51104         * m4/autobuild.m4: New file.
51105
51106 2007-04-11  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51109         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51110         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51112         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51113         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51114         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51116         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51117         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51119         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51120         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51122         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51123         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51125         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51126         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51127         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51128         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51129         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51130         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51131         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51132         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51134         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51135         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51136         Reported by Eric Blake.
51137
51138 2007-04-11  Bruno Haible  <bruno@clisp.org>
51139
51140         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51141
51142 2007-04-10  Bruno Haible  <bruno@clisp.org>
51143
51144         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51145         for NaN and Infinity. Needed on FreeBSD 6.1.
51146         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51147         regarding results for "%010a" of Infinity and NaN.
51148         * tests/test-vasprintf-posix.c (test_function): Likewise.
51149         * tests/test-snprintf-posix.h (test_function): Likewise.
51150         * tests/test-sprintf-posix.h (test_function): Likewise.
51151         * tests/test-fprintf-posix.h (test_function): Likewise.
51152         * tests/test-printf-posix.h (test_function): Likewise.
51153         * tests/test-fprintf-posix.out: Likewise.
51154
51155 2007-04-10  Bruno Haible  <bruno@clisp.org>
51156
51157         * modules/locale-tests: New file.
51158         * tests/test-locale.c: New file.
51159
51160         * modules/locale: New file.
51161         * lib/locale_.h: New file.
51162         * m4/locale_h.m4: New file.
51163
51164 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51165             Bruno Haible  <bruno@clisp.org>
51166
51167         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51168         be determined, test for availability of the copysignf, copysign,
51169         copysignl functions.
51170         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51171         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51172         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51173
51174 2007-04-09  Eric Blake  <ebb9@byu.net>
51175
51176         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51177         * modules/stdio (Makefile.am): Support fflush.
51178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51179         * modules/fflush: New file.
51180         * lib/fflush.c: Likewise.
51181         * m4/fflush.m4: Likewise.
51182         * modules/fflush-tests: New test.
51183         * tests/test-fflush.c: Likewise.
51184         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51185
51186 2007-04-06  Bruno Haible  <bruno@clisp.org>
51187
51188         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51189         (VASNPRINTF): Use signbit for faster determination whether to print a
51190         minus sign.
51191         * modules/vasnprintf (Files): Remove lib/float+.h.
51192         * modules/fprintf-posix (Depends-on): Add signbit.
51193         * modules/snprintf-posix (Depends-on): Likewise.
51194         * modules/sprintf-posix (Depends-on): Likewise.
51195         * modules/vasnprintf-posix (Depends-on): Likewise.
51196         * modules/vasprintf-posix (Depends-on): Likewise.
51197         * modules/vfprintf-posix (Depends-on): Likewise.
51198         * modules/vsnprintf-posix (Depends-on): Likewise.
51199         * modules/vsprintf-posix (Depends-on): Likewise.
51200
51201 2007-04-06  Bruno Haible  <bruno@clisp.org>
51202
51203         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51204         * tests/test-frexpl.c (main): Likewise.
51205         * tests/test-ldexpl.c (main): Likewise.
51206         * modules/frexp-tests (Depends-on): Add signbit.
51207         * modules/frexpl-tests (Depdends-on): Likewise.
51208         * modules/ldexpl-tests (Depdends-on): Likewise.
51209
51210 2007-04-06  Bruno Haible  <bruno@clisp.org>
51211
51212         * modules/signbit-tests: New file.
51213         * tests/test-signbit.c: New file.
51214
51215         * modules/signbit: New file.
51216         * lib/signbitf.c: New file.
51217         * lib/signbitd.c: New file.
51218         * lib/signbitl.c: New file.
51219         * m4/signbit.m4: New file.
51220         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51221         (signbit): New macro.
51222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51223         REPLACE_SIGNBIT.
51224         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51225         REPLACE_FREXPL into math.h.
51226
51227 2007-04-06  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/isnanf-nolibm-tests: New file.
51230         * tests/test-isnanf.c: New file.
51231
51232         * modules/isnanf-nolibm: New file.
51233         * lib/isnanf.h: New file.
51234         * lib/isnanf.c: New file.
51235         * lib/isnan.c: Consider the USE_FLOAT macro.
51236         * m4/isnanf.m4: New file.
51237
51238 2007-04-06  Bruno Haible  <bruno@clisp.org>
51239
51240         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51241         (Link): New section.
51242
51243         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51244
51245 2007-04-06  Bruno Haible  <bruno@clisp.org>
51246
51247         Assume the 'long double' type.
51248         * m4/longdouble.m4: Remove file.
51249         * config/srclist.txt: Don't mention longdouble.m4.
51250         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51251         * lib/float+.h: Likewise.
51252         * lib/frexp.c: Likewise.
51253         * lib/printf-args.h: Likewise.
51254         * lib/printf-args.c: Likewise.
51255         * lib/printf-frexp.c: Likewise.
51256         * lib/printf-parse.c: Likewise.
51257         * lib/vasnprintf.c: Likewise.
51258         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51259         * m4/intl.m4: Likewise.
51260         * m4/isnanl.m4: Likewise.
51261         * m4/printf.m4: Likewise.
51262         * m4/printf-frexpl.m4: Likewise.
51263         * m4/vasnprintf.m4: Likewise.
51264         * modules/allocsa (Files): Remove m4/longdouble.m4.
51265         * modules/gettext (Files): Likewise.
51266         * modules/relocatable-prog-wrapper (Files): Likewise.
51267         * modules/vasnprintf (Files): Likewise.
51268         * modules/isnanl (Files): Likewise.
51269         (Include): Simplify.
51270         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51271         (Include): Simplify.
51272         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51273         (Include): Simplify.
51274         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51275         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51276         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51277         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51278         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51279         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51280         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51281         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51282         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51283         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51284         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51285         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51286         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51287         * tests/test-isnanl.c: Likewise.
51288         * tests/test-snprintf-posix.h: Likewise.
51289         * tests/test-sprintf-posix.h: Likewise.
51290         * tests/test-vasnprintf-posix.c: Likewise.
51291         * tests/test-vasnprintf-posix2.c: Likewise.
51292         * tests/test-vasprintf-posix.c: Likewise.
51293
51294 2007-04-06  Bruno Haible  <bruno@clisp.org>
51295
51296         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51297         * lib/math_.h [__DECC]: Include the overridden include file through
51298         #include_next, outside the double-inclusion guard.
51299         * lib/stdio_.h [__DECC]: Likewise.
51300         * lib/stdlib_.h [__DECC]: Likewise.
51301         * lib/string_.h [__DECC]: Likewise.
51302         * lib/time_.h [__DECC]: Likewise.
51303         * lib/wchar_.h [__DECC]: Likewise.
51304         * lib/wctype_.h [__DECC]: Likewise.
51305         * lib/inttypes_.h [__DECC]: Likewise.
51306         Reported by Albert Chin <china@thewrittenword.com> in
51307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51308
51309 2007-04-04  Eric Blake  <ebb9@byu.net>
51310
51311         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51312         1.5.x.
51313
51314 2007-04-04  Bruno Haible  <bruno@clisp.org>
51315
51316         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51317         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51318
51319 2007-04-04  Bruno Haible  <bruno@clisp.org>
51320
51321         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51322         results for "%010a" of Infinity and NaN.
51323         * tests/test-vasprintf-posix.c (test_function): Likewise.
51324         * tests/test-snprintf-posix.h (test_function): Likewise.
51325         * tests/test-sprintf-posix.h (test_function): Likewise.
51326         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51327         * tests/test-printf-posix.h (test_function): Likewise.
51328         * tests/test-fprintf-posix.out: Update.
51329         Needed for FreeBSD 6.1.
51330
51331 2007-04-04  Bruno Haible  <bruno@clisp.org>
51332
51333         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51334         directly used by the gnulib modules nor by gnulib-tool.
51335
51336 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51337
51338         * DEPENDENCIES: Give overall description of version dependency
51339         desirability.  Use more-typical names for apps.
51340         Add shell, coreutils, diffutils, grep, tar, gzip.
51341
51342 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51343
51344         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51345
51346 2007-04-04  Karl Berry  <karl@gnu.org>
51347
51348         * MODULES.html.sh (func_module): missing '.
51349
51350 2007-04-03  Bruno Haible  <bruno@clisp.org>
51351
51352         * modules/argmatch-tests (Makefile.am): New variable
51353         test_argmatch_LDADD.
51354         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51355         * modules/array-list-tests (Makefile.am): New variable
51356         test_array_list_LDADD.
51357         * modules/array-oset-tests (Makefile.am): New variable
51358         test_array_oset_LDADD.
51359         * modules/avltree-list-tests (Makefile.am): New variable
51360         test_avltree_list_LDADD.
51361         * modules/avltree-oset-tests (Makefile.am): New variable
51362         test_avltree_oset_LDADD.
51363         * modules/avltreehash-list-tests (Makefile.am): New variable
51364         test_avltreehash_list_LDADD.
51365         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51366         test_canonicalize_lgpl_LDADD.
51367         * modules/carray-list-tests (Makefile.am): New variable
51368         test_carray_list_LDADD.
51369         * modules/dirname-tests (Makefile.am): New variable
51370         test_dirname_LDADD.
51371         * modules/linked-list-tests (Makefile.am): New variable
51372         test_linked_list_LDADD.
51373         * modules/linkedhash-list-tests (Makefile.am): New variable
51374         test_linkedhash_list_LDADD.
51375         * modules/rbtree-list-tests (Makefile.am): New variable
51376         test_rbtree_list_LDADD.
51377         * modules/rbtree-oset-tests (Makefile.am): New variable
51378         test_rbtree_oset_LDADD.
51379         * modules/rbtreehash-list-tests (Makefile.am): New variable
51380         test_rbtreehash_list_LDADD.
51381         * modules/xvasprintf-tests (Makefile.am): New variable
51382         test_xvasprintf_LDADD.
51383         Reported by Eric Blake.
51384
51385 2007-04-03  Eric Blake  <ebb9@byu.net>
51386
51387         * DEPENDENCIES: Weaken m4 requirements.
51388
51389 2007-04-03  Bruno Haible  <bruno@clisp.org>
51390
51391         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51392         * modules/isnanl-tests (configure.ac): Likewise.
51393
51394 2007-04-03  Ben Pfaff  <blp@gnu.org>
51395
51396         * modules/iconv_open: Add $(srcdir)/ to source directory
51397         references in Makefile fragments that call gperf, to fix VPATH
51398         builds.
51399
51400 2007-04-03  Bruno Haible  <bruno@clisp.org>
51401
51402         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51403         * lib/ldexpl.c: Undo last change.
51404
51405 2007-04-03  Bruno Haible  <bruno@clisp.org>
51406
51407         * modules/printf-frexpl (Depends-on): Undo last change.
51408         (Files): Add m4/ldexpl.m4.
51409
51410 2007-04-03  Bruno Haible  <bruno@clisp.org>
51411
51412         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51413         * modules/isnanl (Link): New section.
51414
51415         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51416         * modules/frexp (Link): New section.
51417
51418         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51419         * modules/frexpl (Link): New section.
51420
51421         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51422         * modules/ldexpl (Link): New section.
51423
51424 2007-04-03  Bruno Haible  <bruno@clisp.org>
51425
51426         * modules/TEMPLATE-EXTENDED: New file.
51427         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51428
51429 2007-04-03  Bruno Haible  <bruno@clisp.org>
51430
51431         * DEPENDENCIES: New file.
51432         Suggested by Simon Josefsson.
51433
51434 2007-04-03  Bruno Haible  <bruno@clisp.org>
51435
51436         * doc/gnulib.texi: Escape @.
51437
51438 2007-04-03  James Youngman  <jay@gnu.org>
51439         and Paul Eggert  <eggert@cs.ucla.edu>
51440
51441         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51442         birthtime on all systems that have birthtime, not just those which
51443         use st_birthtimensec rather than st_birthtim.  Putting zero in
51444         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51445         that the birth time is not available for files on an NFS mount.
51446
51447 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51448
51449         * modules/memxor: Move back from crypto/, suggested by Bruno.
51450         * modules/crypto/hmac-sha1: Fix memxor dependency.
51451
51452         * modules/crypto/gc: Moved from ../.
51453
51454 2007-04-02  Eric Blake  <ebb9@byu.net>
51455
51456         * lib/ldexpl.c (includes): Avoid libm.
51457
51458         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51459
51460 2007-04-02  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51463         on IRIX.
51464
51465 2007-04-02  Bruno Haible  <bruno@clisp.org>
51466
51467         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51468         x86 or x86_64 platforms running MacOS X.
51469         Reported by Ryan Schmidt <@ryandesign.com>.
51470
51471 2007-04-02  Bruno Haible  <bruno@clisp.org>
51472
51473         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51474         i386.
51475
51476 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51477
51478         * modules/crypto/arcfour: Moved from ../.
51479         * modules/crypto/arcfour-tests: Moved from ../.
51480         * modules/crypto/arctwo: Moved from ../.
51481         * modules/crypto/arctwo-tests: Moved from ../.
51482         * modules/crypto/des: Moved from ../.
51483         * modules/crypto/des-tests: Moved from ../.
51484         * modules/crypto/gc-arcfour: Moved from ../.
51485         * modules/crypto/gc-arcfour-tests: Moved from ../.
51486         * modules/crypto/gc-arctwo: Moved from ../.
51487         * modules/crypto/gc-arctwo-tests: Moved from ../.
51488         * modules/crypto/gc-des: Moved from ../.
51489         * modules/crypto/gc-des-tests: Moved from ../.
51490         * modules/crypto/gc-hmac-md5: Moved from ../.
51491         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51492         * modules/crypto/gc-hmac-sha1: Moved from ../.
51493         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51494         * modules/crypto/gc-md2: Moved from ../.
51495         * modules/crypto/gc-md2-tests: Moved from ../.
51496         * modules/crypto/gc-md4: Moved from ../.
51497         * modules/crypto/gc-md4-tests: Moved from ../.
51498         * modules/crypto/gc-md5: Moved from ../.
51499         * modules/crypto/gc-md5-tests: Moved from ../.
51500         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51501         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51502         * modules/crypto/gc-random: Moved from ../.
51503         * modules/crypto/gc-rijndael: Moved from ../.
51504         * modules/crypto/gc-rijndael-tests: Moved from ../.
51505         * modules/crypto/gc-sha1: Moved from ../.
51506         * modules/crypto/gc-sha1-tests: Moved from ../.
51507         * modules/crypto/gc-tests: Moved from ../.
51508         * modules/crypto/hmac-md5: Moved from ../.
51509         * modules/crypto/hmac-md5-tests: Moved from ../.
51510         * modules/crypto/hmac-sha1: Moved from ../.
51511         * modules/crypto/hmac-sha1-tests: Moved from ../.
51512         * modules/crypto/md2: Moved from ../.
51513         * modules/crypto/md2-tests: Moved from ../.
51514         * modules/crypto/md4: Moved from ../.
51515         * modules/crypto/md4-tests: Moved from ../.
51516         * modules/crypto/md5: Moved from ../.
51517         * modules/crypto/md5-tests: Moved from ../.
51518         * modules/crypto/memxor: Moved from ../.
51519         * modules/crypto/rijndael: Moved from ../.
51520         * modules/crypto/rijndael-tests: Moved from ../.
51521         * modules/crypto/sha1: Moved from ../.
51522
51523 2007-03-30  James Youngman  <jay@gnu.org>
51524
51525         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51526         rename() to change the ctime of a file (because ctime is unaffected
51527         by rename on jfs2 on AIX 5.1).
51528         (main): Start by doing cleanup, in case a previous run failed leaving
51529         test files behind.
51530
51531 2007-03-31  Bruno Haible  <bruno@clisp.org>
51532
51533         Support old proprietary implementations of iconv.
51534         * modules/iconv_open: New file.
51535         * lib/iconv_.h: New file.
51536         * m4/iconv_h.m4: New file.
51537         * lib/iconv_open.c: New file.
51538         * lib/iconv_open-aix.gperf: New file.
51539         * lib/iconv_open-hpux.gperf: New file.
51540         * lib/iconv_open-irix.gperf: New file.
51541         * lib/iconv_open-osf.gperf: New file.
51542         * m4/iconv_open.m4: New file.
51543         * modules/linebreak (Depends-on): Add iconv_open.
51544         * modules/striconv (Depends-on): Likewise.
51545         * modules/striconveh (Depends-on): Likewise.
51546         * modules/unicodeio (Depends-on): Likewise.
51547         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51548         (iconv_t)(-1).
51549         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51550         conversion if cd is (iconv_t)(-1).
51551         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51552         is not possible.
51553
51554 2007-03-31  Bruno Haible  <bruno@clisp.org>
51555
51556         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51557         work on Solaris either. Protect also second use of "autodetect_jp".
51558
51559 2007-03-31  Bruno Haible  <bruno@clisp.org>
51560
51561         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51562         the function is not present.
51563
51564 2007-03-31  Bruno Haible  <bruno@clisp.org>
51565
51566         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51567         the function is not present.
51568
51569 2007-03-31  Bruno Haible  <bruno@clisp.org>
51570
51571         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51572         a bug in HP-UX iconv_open().
51573
51574 2007-03-31  Bruno Haible  <bruno@clisp.org>
51575
51576         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51577         (Mathematics <math.h>): New section, add fpieee.
51578         (Input/output <stdio.h>): Add fseterr.
51579         (Mathematics <math.h>): New section, add printf-frexp.
51580         (Container data structures): Add sublist.
51581         (Core language properties): Add fpucw, inline.
51582         (Functions for greatest-width integer types <inttypes.h>): Add
51583         imaxabs, imaxdiv, inttypes.
51584         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51585         isnanl-nolibm, ldexp.
51586         (Mathematics <math.h>): New section, add printf-frexpl.
51587         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51588         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51589         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51590         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51591         (Unicode string functions): Add unistr/u*-mbtoucr.
51592         (Java): Add javacomp-script, javaexec-script.
51593         (C#): Add csharpcomp-script, csharpexec-script.
51594         (Support for building libraries and executables): Add havelib,
51595         relocatable-*.
51596         (Support for maintaining and releasing projects): Renamed from
51597         'Support for maintaining and release projects'. Add announce-gen.
51598
51599 2007-03-31  Bruno Haible  <bruno@clisp.org>
51600
51601         * README: Talk primarily about git.
51602         (git and CVS): Renamed from CVS.
51603         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51604         gnulib is available through git.
51605         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51606
51607 2007-03-30  Bruno Haible  <bruno@clisp.org>
51608
51609         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51610         * lib/poll_.h: Likewise.
51611         * lib/stat_.h: Likewise.
51612         * lib/sys_time_.h: Likewise.
51613         * lib/sysexit_.h: Likewise.
51614         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51615         * lib/stdbool_.h: Likewise.
51616         * lib/byteswap_.h: Add double-inclusion guard.
51617
51618 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51619
51620         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51621
51622 2007-03-30  Karl Berry  <karl@gnu.org>
51623
51624         * config/srclist-update: double space after USA in the license
51625         substitution, since that's how it's usually (?) written.
51626
51627 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51628
51629         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51630         reported by Bruno Haible.
51631
51632 2007-03-29  Bruno Haible  <bruno@clisp.org>
51633
51634         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51635         a bug in AIX iconv().
51636
51637 2007-03-29  Bruno Haible  <bruno@clisp.org>
51638
51639         * modules/ldexpl-tests: New file.
51640         * tests/test-ldexpl.c: New file.
51641
51642 2007-03-29  Bruno Haible  <bruno@clisp.org>
51643
51644         * lib/ldexpl.c: Include fpucw.h.
51645         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51646         multiplication.
51647         * modules/ldexpl (Depends-on): Add fpucw.
51648
51649 2007-03-29  Bruno Haible  <bruno@clisp.org>
51650
51651         * modules/ldexpl: New file.
51652         * m4/ldexpl.m4: New file.
51653         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51654         set.
51655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51656         REPLACE_LDEXPL.
51657         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51658         REPLACE_LDEXPL.
51659         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51660         gl_FUNC_LDEXPL_WORKS.
51661         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51662         * modules/mathl (Files): Remove lib/ldexpl.c.
51663         (Depends-on): Add ldexpl.
51664
51665 2007-03-29  Bruno Haible  <bruno@clisp.org>
51666
51667         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51668
51669 2007-03-29  Bruno Haible  <bruno@clisp.org>
51670
51671         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51672         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51673         and possibly also HP-UX.
51674         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51675         work on AIX, IRIX, HP-UX, OSF/1.
51676         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51677         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51678         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51679         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51680         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51681         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51682
51683 2007-03-29  Bruno Haible  <bruno@clisp.org>
51684
51685         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51686
51687 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51688
51689         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51690         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51691
51692 2007-03-29  Eric Blake  <ebb9@byu.net>
51693
51694         * lib/acl-internal.h: Remove redundant include.
51695         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51696         Cygwin when a file is locked.
51697
51698 2007-03-29  Bruno Haible  <bruno@clisp.org>
51699
51700         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51701         file.
51702         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51703
51704 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51705
51706         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51707         try to remove a parent directory if the child couldn't be removed
51708         (except for the first rmdir, which could fail because the child
51709         doesn't exist).  Problem reported by Jeff Blaine in
51710         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51711
51712 2007-03-28  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/striconveh.c (utf8conv_carefully): New function.
51715         (mem_cd_iconveh_internal): Invoke it.
51716
51717 2007-03-28  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51720         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51721         input.
51722         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51723         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51724         unistr/u8-uctomb.
51725
51726 2007-03-28  Bruno Haible  <bruno@clisp.org>
51727
51728         * modules/unistr/u8-mbtoucr: New file.
51729         * lib/unistr/u8-mbtoucr.c: New file.
51730         * modules/unistr/u16-mbtoucr: New file.
51731         * lib/unistr/u16-mbtoucr.c: New file.
51732         * modules/unistr/u16-mbtoucr: New file.
51733         * lib/unistr/u16-mbtoucr.c: New file.
51734         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51735
51736 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51737             Bruno Haible  <bruno@clisp.org>
51738
51739         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51740         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51741         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51742
51743         * m4/stdio_h.m4: Add stubs for vasprintf too.
51744
51745         * modules/stdio: Support vasprintf in sed command.
51746
51747         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51748         vasprintf.h.  Add stdio module indicator.
51749
51750         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51751         vasprintf.h.
51752
51753         * lib/vasprintf.h: File removed.
51754
51755         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51756         * lib/vasprintf.c: Ditto.
51757         * lib/xvasprintf.c: Ditto.
51758         * tests/test-vasprintf-posix.c: Ditto.
51759         * tests/test-vasprintf.c: Ditto.
51760
51761 2007-03-27  Bruno Haible  <bruno@clisp.org>
51762
51763         Make vasnprintf multithread-safe.
51764         * lib/vasnprintf.c (decimal_point_char): New function.
51765         (VASNPRINTF): Use it.
51766         Suggested by Simon Josefsson.
51767
51768 2007-03-27  Eric Blake  <ebb9@byu.net>
51769
51770         Support sub-second birthtime on cygwin.
51771         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51772         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51773         (get_stat_birthtime): Also work with st_birthtim.
51774
51775 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51776
51777         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51778         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51779         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51780         (get_stat_birthtime_ns): Simplify compile-time tests.
51781         (get_stat_birthtime): Change the API to look like
51782         get_stat_mtime etc., except return a negative tv_nsec on error.
51783         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51784         Don't check for "spare" fields.
51785         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51786         or for struct stat.st_birthtime, as these tests aren't used.
51787         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51788
51789 2007-03-27  Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/stat-time.h: Include <sys/stat.h>.
51792
51793 2007-03-27  James Youngman  <jay@gnu.org>
51794
51795         * lib/stat-time.h (get_stat_birthtime): New function for
51796           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51797         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51798           and its variants.
51799         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51800         * modules/stat-time-test: New file.
51801         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51802
51803 2007-03-26  Bruno Haible  <bruno@clisp.org>
51804
51805         Better support of signalling NaNs.
51806         * lib/atanl.c: Include isnanl.h.
51807         (atanl): Perform test for NaN at the beginning of the function and
51808         through a call to isnanl.
51809         * lib/cosl.c: Include isnanl.h.
51810         (cosl): Perform test for NaN at the beginning of the function and
51811         through a call to isnanl.
51812         * lib/ldexpl.c: Include isnanl.h.
51813         (ldexpl): Perform test for NaN through a call to isnanl.
51814         * lib/logl.c: Include isnanl.h.
51815         (logl): Perform test for NaN at the beginning of the function and
51816         through a call to isnanl.
51817         * lib/sinl.c: Include isnanl.h.
51818         (sinl): Perform test for NaN at the beginning of the function and
51819         through a call to isnanl.
51820         * lib/sqrtl.c: Include isnanl.h.
51821         (sqrtl): Perform test for NaN at the beginning of the function and
51822         through a call to isnanl.
51823         * lib/tanl.c: Include isnanl.h.
51824         (tanl): Perform test for NaN at the beginning of the function and
51825         through a call to isnanl.
51826         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51827         * modules/mathl (Depends-on): Add isnanl.
51828
51829 2007-03-26  Eric Blake  <ebb9@byu.net>
51830
51831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51832         regression in logic sense of previous patch.
51833
51834 2007-03-26  Bruno Haible  <bruno@clisp.org>
51835
51836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51837         unportable shell command "if ! ...".
51838         Reported by Ralf Wildenhues.
51839
51840 2007-03-25  Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51843         <sysexits.h> file, and only add EX_CONFIG.
51844         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51845         absolute file name and whether it is sufficient. Substitute also
51846         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51847         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51848         ABSOLUTE_SYSEXITS_H into sysexits.h.
51849
51850 2007-03-25  Bruno Haible  <bruno@clisp.org>
51851
51852         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51853         hints is NULL.
51854
51855 2007-03-25  Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51858         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51859
51860 2007-03-25  Bruno Haible  <bruno@clisp.org>
51861
51862         * lib/vasnprintf.c: Include langinfo.h.
51863         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51864         multithread-safe.
51865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51866         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51867         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51868         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51870         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51871         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51874         Reported by Simon Josefsson.
51875
51876 2007-03-25  Bruno Haible  <bruno@clisp.org>
51877
51878         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51879         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51880         * modules/vasnprintf (Depends-on): Add stdint.
51881
51882 2007-03-25  Bruno Haible  <bruno@clisp.org>
51883
51884         * modules/fpieee: New file.
51885         * m4/fpieee.m4: New file.
51886         * modules/isnan-nolibm (Depends-on): Add fpieee.
51887         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51888         * modules/isnanl (Depends-on): Add fpieee.
51889
51890 2007-03-25  Bruno Haible  <bruno@clisp.org>
51891
51892         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51893
51894 2007-03-25  Bruno Haible  <bruno@clisp.org>
51895
51896         Avoid test failures on IRIX 6.5.
51897         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51898         (main): Use it.
51899         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51900         macros.
51901         (main): Use them.
51902
51903 2007-03-25  Bruno Haible  <bruno@clisp.org>
51904
51905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51906         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51907         exists but doesn't work.
51908         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51909         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51911         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51912         math.h.
51913
51914 2007-03-25  Bruno Haible  <bruno@clisp.org>
51915
51916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51917         returns inf. Needed on IRIX 6.5.
51918
51919 2007-03-25  Bruno Haible  <bruno@clisp.org>
51920
51921         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51922         (main): Use isnanl instead of x != x idiom.
51923         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51924
51925         * tests/test-frexp.c: Include isnan.h.
51926         (main): Use isnan instead of x != x idiom.
51927         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51928
51929 2007-03-25  Bruno Haible  <bruno@clisp.org>
51930
51931         * tests/test-frexp.c (NaN): New function/macro.
51932         (main): Use it instead of 0.0 / 0.0.
51933         * tests/test-isnan.c (NaN): New function/macro.
51934         (main): Use it instead of 0.0 / 0.0.
51935         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51936         (test_function): Use it instead of 0.0 / 0.0.
51937         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51938         (test_function): Use it instead of 0.0 / 0.0.
51939         * tests/test-snprintf-posix.h (NaN): New function/macro.
51940         (test_function): Use it instead of 0.0 / 0.0.
51941         * tests/test-sprintf-posix.h (NaN): New function/macro.
51942         (test_function): Use it instead of 0.0 / 0.0.
51943         * tests/test-fprintf-posix.h (NaN): New function/macro.
51944         (test_function): Use it instead of 0.0 / 0.0.
51945         * tests/test-printf-posix.h (NaN): New function/macro.
51946         (test_function): Use it instead of 0.0 / 0.0.
51947
51948         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51949
51950 2007-03-25  Bruno Haible  <bruno@clisp.org>
51951
51952         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51953
51954 2007-03-25  Bruno Haible  <bruno@clisp.org>
51955
51956         * lib/regexec.c (merge_state_with_log): Make static.
51957
51958 2007-03-25  Bruno Haible  <bruno@clisp.org>
51959
51960         * lib/trigl.c (kernel_rem_pio2): Make static.
51961
51962 2007-03-25  Bruno Haible  <bruno@clisp.org>
51963
51964         * lib/sincosl.c (sincosl_table): Make static.
51965
51966 2007-03-25  Bruno Haible  <bruno@clisp.org>
51967
51968         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51969         if the compiler does not support C99.
51970
51971 2007-03-25  Bruno Haible  <bruno@clisp.org>
51972
51973         * modules/time (Makefile.am): Ensure all rule action lines start with a
51974         tab.
51975
51976 2007-03-24  Bruno Haible  <bruno@clisp.org>
51977
51978         * modules/tsearch-tests: New file.
51979         * tests/test-tsearch.sh: New file.
51980         * tests/test-tsearch.c: New file, mostly copied from glibc.
51981
51982         * modules/search-tests: New file.
51983         * tests/test-search.c: New file.
51984
51985         * modules/search: New file.
51986         * lib/search_.h: New file, incorporating lib/tsearch.h.
51987         * m4/search_h.m4: New file.
51988         * lib/tsearch.h: Remove file.
51989         * lib/tsearch.c: Include search.h instead of tsearch.h.
51990         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51991         HAVE_TSEARCH.
51992         * modules/tsearch (Files): Remove lib/tsearch.h.
51993         (Depends-on): Add search.
51994         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51995         (Include): Change tsearch.h into search.h.
51996
51997 2007-03-24  Bruno Haible  <bruno@clisp.org>
51998
51999         * modules/fpucw: New file.
52000         * lib/fpucw.h: New file.
52001         * lib/frexp.c: Include fpucw.h.
52002         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52003         (FUNC): Use them.
52004         * lib/printf-frexp.c: Include fpucw.h.
52005         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52006         (FUNC): Use them.
52007         * lib/vasnprintf.c: Include fpucw.h.
52008         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52009         'long double' calculations.
52010         * tests/test-frexpl.c: Include fpucw.h.
52011         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52012         * tests/test-printf-frexpl.c: Include fpucw.h.
52013         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52014         * modules/frexpl (Depends-on): Add fpucw.
52015         * modules/printf-frexpl (Depends-on): Likewise.
52016         * modules/fprintf-posix (Depends-on): Likewise.
52017         * modules/snprintf-posix (Depends-on): Likewise.
52018         * modules/sprintf-posix (Depends-on): Likewise.
52019         * modules/vasnprintf-posix (Depends-on): Likewise.
52020         * modules/vasprintf-posix (Depends-on): Likewise.
52021         * modules/vfprintf-posix (Depends-on): Likewise.
52022         * modules/vsnprintf-posix (Depends-on): Likewise.
52023         * modules/vsprintf-posix (Depends-on): Likewise.
52024         * modules/frexpl-tests (Depends-on): Likewise.
52025         * modules/printf-frexpl-tests (Depends-on): Likewise.
52026
52027 2007-03-24  Bruno Haible  <bruno@clisp.org>
52028
52029         * lib/float+.h: New file.
52030         * lib/isnan.c: Include float+.h.
52031         (SIZE): New macro.
52032         (FUNC): Compare only SIZE bytes of the value.
52033         * lib/vasnprintf.c: Include float+.h.
52034         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52035         SIZEOF_LDBL or SIZEOF_DBL bytes.
52036         * modules/isnan-nolibm (Files): Add lib/float+.h.
52037         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52038         * modules/isnanl (Files): Add lib/float+.h.
52039         * modules/vasnprintf (Files): Add lib/float+.h.
52040
52041 2007-03-24  Bruno Haible  <bruno@clisp.org>
52042
52043         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52044         include isnanl-nolibm.h.
52045
52046 2007-03-24  Bruno Haible  <bruno@clisp.org>
52047
52048         * tests/test-read-file.c (main): Don't produce spurious output for
52049         expected situations. Make the test fail if it encountered unexpected
52050         results.
52051
52052 2007-03-24  Bruno Haible  <bruno@clisp.org>
52053
52054         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52055         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52056
52057 2007-03-24  Bruno Haible  <bruno@clisp.org>
52058
52059         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52060
52061 2007-03-24  Bruno Haible  <bruno@clisp.org>
52062
52063         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52064         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52065
52066         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52067         * modules/utf8-ucs4: Turn into a symbolic link to module
52068         unistr/u8-mbtouc.
52069
52070         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52071         utf8-ucs4-unsafe.
52072         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52073         unistr/u8-mbtouc-unsafe.
52074
52075         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52076         * modules/utf16-ucs4: Turn into a symbolic link to module
52077         unistr/u16-mbtouc.
52078
52079         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52080         utf16-ucs4-unsafe.
52081         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52082         unistr/u16-mbtouc-unsafe.
52083
52084         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52085         * modules/ucs4-utf8: Turn into a symbolic link to module
52086         unistr/u8-ubtomb.
52087
52088         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52089         * modules/ucs4-utf16: Turn into a symbolic link to module
52090         unistr/u16-ubtomb.
52091
52092 2007-03-24  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52095         Enable the function only if HAVE_INLINE.
52096         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52097         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52098         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52099         Enable the function only if HAVE_INLINE.
52100         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52101         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52102         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52103         Enable the function only if HAVE_INLINE.
52104         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52105         Enable the function only if HAVE_INLINE.
52106         * modules/utf8-ucs4: Update.
52107         * modules/utf8-ucs4-unsafe: Update.
52108         * modules/utf16-ucs4: Update.
52109         * modules/utf16-ucs4-unsafe: Update.
52110         * modules/ucs4-utf8: Update.
52111         * modules/ucs4-utf16: Update.
52112
52113 2007-03-24  Bruno Haible  <bruno@clisp.org>
52114
52115         * lib/utf8-ucs4.h: Remove file.
52116         * lib/utf8-ucs4-unsafe.h: Remove file.
52117         * lib/utf16-ucs4.h: Remove file.
52118         * lib/utf16-ucs4-unsafe.h: Remove file.
52119         * lib/ucs4-utf8.h: Remove file.
52120         * lib/ucs4-utf16.h: Remove file.
52121         * lib/unistr.h: Include their previous contents.
52122         * m4/utf-ucs4.m4: Remove file.
52123         * m4/ucs4-utf.m4: Remove file.
52124         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52125         (Depends-on): Add unistr/base.
52126         (configure.ac): Remove gl_UTF_UCS4.
52127         (Makefile.am): Update.
52128         (Include): Change to unistr.h.
52129         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52130         (Depends-on): Add unistr/base.
52131         (configure.ac): Remove gl_UTF_UCS4.
52132         (Makefile.am): Update.
52133         (Include): Change to unistr.h.
52134         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52135         (Depends-on): Add unistr/base.
52136         (configure.ac): Remove gl_UTF_UCS4.
52137         (Makefile.am): Update.
52138         (Include): Change to unistr.h.
52139         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52140         (Depends-on): Add unistr/base.
52141         (configure.ac): Remove gl_UTF_UCS4.
52142         (Makefile.am): Update.
52143         (Include): Change to unistr.h.
52144         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52145         (Depends-on): Add unistr/base.
52146         (configure.ac): Remove gl_UCS4_UTF.
52147         (Makefile.am): Update.
52148         (Include): Change to unistr.h.
52149         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52150         (Depends-on): Add unistr/base.
52151         (configure.ac): Remove gl_UCS4_UTF.
52152         (Makefile.am): Update.
52153         (Include): Change to unistr.h.
52154         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52155         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52156         utf8-ucs4-unsafe.h.
52157         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52158         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52159         utf16-ucs4-unsafe.h.
52160         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52161         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52162         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52163         * lib/unistr/u8-strchr.c: Likewise.
52164         * lib/unistr/u8-strrchr.c: Likewise.
52165         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52166         * lib/unistr/u16-strchr.c: Likewise.
52167         * lib/unistr/u16-strrchr.c: Likewise.
52168         * lib/striconveh.c: Update.
52169         * lib/linebreak.c: Update.
52170
52171 2007-03-24  Bruno Haible  <bruno@clisp.org>
52172
52173         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52174         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52175
52176 2007-03-22  Bruno Haible  <bruno@clisp.org>
52177
52178         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52179
52180 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * MODULES.html.sh (File system functions): New module write-any-file.
52183         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52184         * m4/write-any-file.m4: New files.
52185
52186 2007-03-23  Eric Blake  <ebb9@byu.net>
52187
52188         * gnulib-tool: Rearrange space-tab sequences, since some editors
52189         like to eat them.
52190
52191 2007-03-23  Eric Blake  <ebb9@byu.net>
52192
52193         * lib/version-etc.c (version_etc_va): Update license wording to
52194         be more concise.  Recommended by Richard Stallman.
52195
52196 2007-03-22  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/poll.c (MSG_PEEK): New fallback definition.
52199
52200 2007-03-22  Bruno Haible  <bruno@clisp.org>
52201
52202         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52203         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52204         (main): Update.
52205         Fixes a compilation error on BeOS.
52206
52207 2007-03-22  Bruno Haible  <bruno@clisp.org>
52208
52209         * modules/frexpl-tests: New file.
52210         * tests/test-frexpl.c: New file.
52211
52212         * modules/frexpl: New file.
52213         * m4/frexpl.m4: New file.
52214         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52215         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52217         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52218         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52219         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52220
52221 2007-03-22  Bruno Haible  <bruno@clisp.org>
52222
52223         * lib/frexpl.c: Share code with lib/frexp.c.
52224         * modules/mathl (Files): Add lib/frexp.c.
52225         (Depends-on): Add isnanl-nolibm.
52226
52227 2007-03-22  Bruno Haible  <bruno@clisp.org>
52228
52229         * modules/printf-frexp (Files): Add m4/frexp.m4.
52230         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52231         only if the found frexp function actually works.
52232
52233 2007-03-22  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/frexp.c: Remove older implementation that uses divisions.
52236
52237 2007-03-21  Bruno Haible  <bruno@clisp.org>
52238
52239         * modules/frexp-tests: New file.
52240         * tests/test-frexp.c: New file.
52241
52242         * modules/frexp: New file.
52243         * lib/frexp.c: New file.
52244         * m4/frexp.m4: New file.
52245         * lib/math_.h (frexp): New declaration.
52246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52247         REPLACE_FREXP.
52248         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52249
52250 2007-03-21  Bruno Haible  <bruno@clisp.org>
52251
52252         * modules/isnanl-tests: New file.
52253         * tests/test-isnanl.c: New file.
52254
52255         * modules/isnanl: New file.
52256         * lib/isnanl.h: New file.
52257         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52258         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52259         gl_FUNC_ISNANL_WORKS.
52260         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52261         New macros.
52262
52263 2007-03-21  Bruno Haible  <bruno@clisp.org>
52264
52265         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52266         lib/isnanl.h.
52267         (Include): Update.
52268         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52269         * lib/vasnprintf.c: Update.
52270         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52271         tests/test-isnanl.h, remove tests/test-isnanl.c.
52272         (Makefile.am): Update.
52273         * tests/test-isnanl-nolibm.c: New file.
52274         * tests/test-isnanl.h: New file.
52275         * tests/test-isnanl.c: Remove file.
52276
52277 2007-03-21  Jim Meyering  <jim@meyering.net>
52278
52279         When trying to open ".", treat ESTALE like EACCES.
52280         * lib/savewd.c (savewd_save): Resort to forking not just upon
52281         failure with EACCES, but also when errno is ESTALE.
52282
52283 2007-03-20  Bruno Haible  <bruno@clisp.org>
52284
52285         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52286         Needed on AIX 5.1. Reported by Matthew Woehlke.
52287
52288 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         Suggestions by Bruno Haible:
52291         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52292         our own.
52293         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52294         * modules/acl (Depends-on): Add gettext.
52295
52296 2007-03-19  Bruno Haible  <bruno@clisp.org>
52297
52298         * modules/iconvme: Remove file.
52299         * lib/iconvme.h: Remove file.
52300         * lib/iconvme.c: Remove file.
52301         * m4/iconvme.m4: Remove file.
52302
52303 2007-03-19  Bruno Haible  <bruno@clisp.org>
52304
52305         * doc/relocatable-maint.texi: Break long shell script line.
52306         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52307
52308 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52309
52310         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52311         handle file_has_acl.
52312         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52313         * lib/acl.c: Move header inclusions and related macro defns into
52314         lib/acl-internal.h.
52315         (S_ISLNK): Remove defn, since that's now done for us.
52316         (file_has_acl): Move to lib/file-has-acl.c.
52317         Call acl_trivial if available.  This is the crucial part of the fix.
52318         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52319         shared within the library.  Rewrite a bit, partly to make it compatible
52320         with the GNU coding style.
52321         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52322         Remove unnecessary double-quotes.
52323         Don't test for acl_to_text; the build will catch that.
52324         Replace acl_entries if it doesn't exist and it is needed.
52325         Check for -lsec and acl_trivial (as used on Solaris 10).
52326         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52327         lib/file-has-acl.c.
52328         (Depends-on): Add sys_stat, for S_ISLNK.
52329
52330 2007-03-19  Ben Pfaff  <blp@gnu.org>
52331
52332         * doc/gnulib.texi: Fix typos.
52333         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52334
52335 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52336
52337         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52338         If size is zero here, buf must be zero.
52339
52340 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52341
52342         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52343         <bruno@clisp.org>.
52344
52345 2007-03-18  Bruno Haible  <bruno@clisp.org>
52346
52347         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52348         Suggested by Eric Blake.
52349
52350 2007-03-18  Ben Pfaff  <blp@gnu.org>
52351
52352         * doc/relocatable.texi: Recommend using as prefix a directory
52353         that does not exist and will never be created.  Based on
52354         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52355         and others.
52356
52357 2007-03-17  Bruno Haible  <bruno@clisp.org>
52358
52359         * lib/fchownat.c: Include lchown.h.
52360
52361 2007-03-17  Bruno Haible  <bruno@clisp.org>
52362
52363         Fix endless loop when the given allocated size was > INT_MAX.
52364         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52365         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52366         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52367         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52368         * lib/sprintf.c (sprintf): Likewise.
52369
52370 2007-03-17  Bruno Haible  <bruno@clisp.org>
52371
52372         * tests/test-argp-2.sh (func_compare): Output a context diff.
52373
52374 2007-03-17  Bruno Haible  <bruno@clisp.org>
52375
52376         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52377         locale's decimal-point character.
52378
52379 2007-03-17  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52382         before comparing it. Needed because on some platforms (e.g. x86) a
52383         'long double' occupies less bytes than sizeof (long double).
52384
52385 2007-03-17  Bruno Haible  <bruno@clisp.org>
52386
52387         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52388         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52389         * tests/test-getaddrinfo.c (simple): Likewise.
52390         * tests/test-read-file.c (main): Likewise.
52391
52392 2007-03-17  Bruno Haible  <bruno@clisp.org>
52393
52394         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52395
52396 2007-03-17  Bruno Haible  <bruno@clisp.org>
52397
52398         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52399         unused variable.
52400
52401 2007-03-17  Bruno Haible  <bruno@clisp.org>
52402
52403         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52404         * tests/test-c-strncasecmp.c: Likewise.
52405
52406 2007-03-17  Bruno Haible  <bruno@clisp.org>
52407
52408         * modules/stdlib (Depends-on): Add unistd.
52409         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52410         Needed for MacOS X 10.3.
52411
52412 2007-03-17  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52415
52416 2007-03-17  Bruno Haible  <bruno@clisp.org>
52417
52418         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52419
52420 2007-03-17  Bruno Haible  <bruno@clisp.org>
52421
52422         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52423         to reflect files copied from gnulib (with or without modifications).
52424         Suggested by Jim Meyering.
52425
52426 2007-03-17  Eric Blake  <ebb9@byu.net>
52427
52428         * NEWS: Document stdlib change from 2007-02-18.
52429
52430 2007-03-17  Jim Meyering  <jim@meyering.net>
52431
52432         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52433         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52434         someone uses a name containing shell meta-characters.
52435         Reported by Alfred M. Szmidt.
52436
52437         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52438
52439 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52440
52441         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52442         and copy gettext configuration files only if configure.ac contains
52443         a use of AM_GNU_GETTEXT_VERSION.
52444
52445 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52446
52447         * build-aux/bootstrap (gnulib_name): New variable.
52448         (gnulib_tool_options): Use it.
52449
52450 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52451
52452         * tests/test-des.c: Use new namespace.
52453
52454 2007-03-15  Bruno Haible  <bruno@clisp.org>
52455
52456         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52457         Reported by James Youngman <jay@gnu.org>.
52458
52459 2007-03-15  Bruno Haible  <bruno@clisp.org>
52460
52461         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52462         declared prototype. Needed with cc on OSF/1 5.1.
52463
52464 2007-03-15  Bruno Haible  <bruno@clisp.org>
52465
52466         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52467         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52468         (struct gl_list_implementation): Add dispose_fn argument to the
52469         'create_empty', 'create' methods.
52470         (struct gl_list_impl_base): Add field 'dispose_fn'.
52471         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52472         argument.
52473         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52474         dispose_fn argument.
52475         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52476         dispose_fn on the dropped values.
52477         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52478         dispose_fn argument.
52479         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52480         dropped values.
52481         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52482         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52483         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52484         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52485         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52486         argument.
52487         (gl_tree_list_free): Call dispose_fn on the dropped values.
52488         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52489         the dropped values.
52490         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52491         Add dispose_fn argument.
52492         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52493         Call dispose_fn on the dropped values.
52494         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52495         Add dispose_fn argument.
52496         (gl_sublist_create): Initialize the 'dispose_fn' field.
52497         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52498         * tests/test-array_list.c (main): Update.
52499         * tests/test-carray_list.c (main): Update.
52500         * tests/test-avltree_list.c (main): Update.
52501         * tests/test-rbtree_list.c (main): Update.
52502         * tests/test-avltreehash_list.c (main): Update.
52503         * tests/test-rbtreehash_list.c (main): Update.
52504         * tests/test-linked_list.c (main): Update.
52505         * tests/test-linkedhash_list.c (main): Update.
52506         * tests/test-array_oset.c (main): Update.
52507
52508 2007-03-15  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52511         (gl_oset_create_empty): Add dispose_fn argument.
52512         (struct gl_oset_implementation): Add dispose_fn argument to
52513         'create_empty' method.
52514         (struct gl_oset_impl_base): Add dispose_fn field.
52515         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52516         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52517         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52518         values.
52519         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52520         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52521         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52522         dropped value.
52523         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52524         dropped value.
52525         * tests/test-array_oset.c (main): Update.
52526         * tests/test-avltree_oset.c (main): Update.
52527         * tests/test-rbtree_oset.c (main): Update.
52528         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52529
52530 2007-03-13  Bruno Haible  <bruno@clisp.org>
52531
52532         * tests/test-stdbool.c (i): Update after last patch.
52533
52534 2007-03-12  Bruno Haible  <bruno@clisp.org>
52535
52536         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52537         the iswprint macro. Needed on Solaris 2.5.1.
52538
52539 2007-03-12  Bruno Haible  <bruno@clisp.org>
52540
52541         * tests/test-printf-frexp.c (main): Declare x as volatile.
52542
52543 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52544
52545         * doc/gnulib.texi (Build robot for gnulib): New section.
52546
52547 2007-03-12  Jim Meyering  <jim@meyering.net>
52548
52549         * build-aux/bootstrap: New file.
52550         * build-aux/bootstrap.conf: New file, from coreutils.
52551
52552 2007-03-11  Bruno Haible  <bruno@clisp.org>
52553
52554         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52555
52556 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52557
52558         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52559         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52560         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52561
52562 2007-03-11  Bruno Haible  <bruno@clisp.org>
52563
52564         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52565         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52566
52567 2007-03-11  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52570         formula. Needed for SunPRO C 5.0.
52571
52572 2007-03-11  Bruno Haible  <bruno@clisp.org>
52573
52574         * modules/long-options (Depends-on): Add getopt.
52575
52576 2007-03-11  Bruno Haible  <bruno@clisp.org>
52577
52578         * modules/modechange (Depends-on): Add stdbool.
52579
52580 2007-03-11  Bruno Haible  <bruno@clisp.org>
52581
52582         * modules/i-ring (Depends-on): Add stdbool.
52583
52584 2007-03-11  Bruno Haible  <bruno@clisp.org>
52585
52586         * modules/gc-des (Depends-on): Add stdbool.
52587
52588 2007-03-11  Bruno Haible  <bruno@clisp.org>
52589
52590         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52591
52592 2007-03-11  Bruno Haible  <bruno@clisp.org>
52593
52594         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52595
52596 2007-03-11  Bruno Haible  <bruno@clisp.org>
52597
52598         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52599
52600 2007-03-11  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/vasnprintf.c (sprintf): Undefine.
52603
52604 2007-03-11  Bruno Haible  <bruno@clisp.org>
52605
52606         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52607         initializers in SunPRO C and Compaq C compilers.
52608
52609 2007-03-11  Bruno Haible  <bruno@clisp.org>
52610
52611         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52612         decrementing code ANSI C compliant.
52613
52614 2007-03-11  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52617         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52618
52619 2007-03-11  Bruno Haible  <bruno@clisp.org>
52620
52621         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52622         <stdbool.h> substitute doesn't pass.
52623
52624 2007-03-11  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52627
52628 2007-03-11  Bruno Haible  <bruno@clisp.org>
52629
52630         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52631         script, for submission to autobuild.josefsson.org.
52632
52633 2007-03-10  Bruno Haible  <bruno@clisp.org>
52634
52635         * modules/canonicalize-lgpl-tests: New file.
52636         * tests/test-canonicalize-lgpl.sh: New file.
52637         * tests/test-canonicalize-lgpl.c: New file.
52638
52639         * modules/c-strcase-tests: New file.
52640         * tests/test-c-strcase.sh: New file.
52641         * tests/test-c-strcasecmp.c: New file.
52642         * tests/test-c-strncasecmp.c: New file.
52643
52644         * modules/atexit-tests: New file.
52645         * tests/test-atexit.sh: New file.
52646         * tests/test-atexit.c: New file.
52647
52648 2007-03-10  Bruno Haible  <bruno@clisp.org>
52649
52650         * tests/test-binary-io.sh: Use temporary filenames that are not so
52651         likely to clash with those of other tests (in a parallel make).
52652         * tests/test-binary-io.c: Likewise.
52653
52654 2007-03-10  Bruno Haible  <bruno@clisp.org>
52655
52656         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52657         fallback; use #error instead.
52658         Suggested by Simon Josefsson.
52659
52660 2007-03-10  Bruno Haible  <bruno@clisp.org>
52661
52662         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52663         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52664         first and the last.
52665
52666 2007-03-10  Bruno Haible  <bruno@clisp.org>
52667
52668         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52669
52670 2007-03-10  Bruno Haible  <bruno@clisp.org>
52671
52672         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52673         "make distcheck".
52674         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52675         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52676         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52677
52678 2007-03-10  Bruno Haible  <bruno@clisp.org>
52679
52680         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52681         variable.
52682         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52683         variable.
52684
52685 2007-03-09  Eric Blake  <ebb9@byu.net>
52686         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52687
52688         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52689         types are not being provided by gnulib.
52690         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52691         types are supported.
52692
52693 2007-03-10  Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/stdio_.h (__attribute__): New macro.
52696         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52697         vsprintf): Specify __attribute__ __format__ for GCC.
52698         Suggested by Eric Blake.
52699
52700 2007-03-09  Bruno Haible  <bruno@clisp.org>
52701
52702         * modules/printf-posix-tests: New file.
52703         * tests/test-printf-posix.sh: New file.
52704         * tests/test-printf-posix.c: New file.
52705
52706         * modules/printf-posix: New file.
52707         * lib/printf.c: New file.
52708         * m4/printf-posix-rpl.m4: New file.
52709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52710         REPLACE_PRINTF.
52711         * lib/stdio_.h (printf): New declaration.
52712         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52713         ____strfmon____): New macros.
52714         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52715         REPLACE_PRINTF.
52716
52717 2007-03-09  Bruno Haible  <bruno@clisp.org>
52718
52719         * tests/test-vasnprintf-posix2.sh: New file.
52720         * tests/test-vasnprintf-posix2.c: New file.
52721         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52722         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52723         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52724
52725         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52726         a locale dependent decimal point, rather than always '.'.
52727
52728 2007-03-09  Eric Blake  <ebb9@byu.net>
52729
52730         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52731         spite of platforms like Tandem/NSK that define it to -1.
52732
52733 2007-03-08  Bruno Haible  <bruno@clisp.org>
52734
52735         * modules/vprintf-posix-tests: New file.
52736         * tests/test-vprintf-posix.sh: New file.
52737         * tests/test-vprintf-posix.c: New file.
52738         * tests/test-printf-posix.h: New file.
52739
52740         * modules/vprintf-posix: New file.
52741         * lib/vprintf.c: New file.
52742         * m4/vprintf-posix.m4: New file.
52743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52744         REPLACE_VPRINTF.
52745         * lib/stdio_.h (vprintf): New declaration.
52746         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52747         REPLACE_VPRINTF.
52748
52749 2007-03-08  Bruno Haible  <bruno@clisp.org>
52750
52751         * modules/fprintf-posix-tests: New file.
52752         * tests/test-fprintf-posix.sh: New file.
52753         * tests/test-fprintf-posix.c: New file.
52754
52755         * modules/fprintf-posix: New file.
52756         * lib/fprintf.c: New file.
52757         * m4/fprintf-posix.m4: New file.
52758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52759         REPLACE_FPRINTF.
52760         * lib/stdio_.h (fprintf): New declaration.
52761         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52762         REPLACE_FPRINTF.
52763
52764 2007-03-08  Bruno Haible  <bruno@clisp.org>
52765
52766         * modules/vfprintf-posix-tests: New file.
52767         * tests/test-vfprintf-posix.sh: New file.
52768         * tests/test-vfprintf-posix.c: New file.
52769         * tests/test-fprintf-posix.h: New file.
52770         * tests/test-fprintf-posix.out: New file.
52771
52772         * modules/vfprintf-posix: New file.
52773         * lib/vfprintf.c: New file.
52774         * m4/vfprintf-posix.m4: New file.
52775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52776         REPLACE_VFPRINTF.
52777         * lib/stdio_.h (vfprintf): New declaration.
52778         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52779         REPLACE_VFPRINTF.
52780
52781 2007-03-08  Bruno Haible  <bruno@clisp.org>
52782
52783         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52784
52785 2007-03-08  Bruno Haible  <bruno@clisp.org>
52786
52787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52788         instead of 'expr' invocations.
52789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52792         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52793         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52794         Suggested by Paul Eggert.
52795
52796 2007-03-08  Bruno Haible  <bruno@clisp.org>
52797
52798         * modules/fseterr-tests: New file.
52799         * tests/test-fseterr.c: New file.
52800
52801         * modules/fseterr: New file.
52802         * lib/fseterr.h: New file.
52803         * lib/fseterr.c: New file.
52804
52805 2007-03-08  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52808         * lib/getopt_.h: Likewise.
52809         * lib/mbswidth.h: Likewise.
52810         * lib/setenv.h: Likewise.
52811         * lib/vasnprintf.h: Likewise.
52812         * lib/vasprintf.h: Likewise.
52813         * lib/verror.h: Likewise.
52814         * lib/xsetenv.h: Likewise.
52815         * lib/xvasprintf.h: Likewise.
52816
52817 2007-03-08  Jim Meyering  <jim@meyering.net>
52818
52819         * users.txt: Add parted.
52820
52821         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52822
52823 2007-03-07  Bruno Haible  <bruno@clisp.org>
52824
52825         * m4/printf.m4: Make the shell script snippets copy&pastable.
52826
52827 2007-03-02  Bruno Haible  <bruno@clisp.org>
52828
52829         * lib/netinet_in_.h: New file.
52830         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52831         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52832         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52833         (Depends-on): Add absolute-header.
52834         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52835         into netinet/in.h.
52836
52837 2007-03-03  Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/sys_select_.h: New file.
52840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52841         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52842         * modules/sys_select (Files): Add lib/sys_select_.h.
52843         (Depends-on): Add absolute-header.
52844         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52845         into sys/select.h.
52846
52847 2007-03-02  Bruno Haible  <bruno@clisp.org>
52848
52849         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52850         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52851         values.
52852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52853         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52854         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52855         * modules/sys_socket (Depends-on): Add absolute-header.
52856         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52857         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52858         (Include): Remove requirement of inclusion of <sys/types.h>.
52859
52860 2007-03-02  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/byteswap_.h (bswap_32): Fix formula.
52863
52864 2007-03-06  Bruno Haible  <bruno@clisp.org>
52865
52866         * modules/sprintf-posix-tests: New file.
52867         * tests/test-sprintf-posix.c: New file.
52868
52869         * modules/sprintf-posix: New file.
52870         * lib/sprintf.c: New file.
52871         * m4/sprintf-posix.m4: New file.
52872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52873         REPLACE_SPRINTF.
52874         * lib/stdio_.h (sprintf): New declaration.
52875         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52876         REPLACE_SPRINTF.
52877
52878 2007-03-06  Bruno Haible  <bruno@clisp.org>
52879
52880         * modules/vsprintf-posix-tests: New file.
52881         * tests/test-vsprintf-posix.c: New file.
52882         * tests/test-sprintf-posix.h: New file.
52883
52884         * modules/vsprintf-posix: New file.
52885         * lib/vsprintf.c: New file.
52886         * m4/vsprintf-posix.m4: New file.
52887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52888         REPLACE_VSPRINTF.
52889         * lib/stdio_.h (vsprintf): New declaration.
52890         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52891         REPLACE_VSPRINTF.
52892
52893 2007-03-06  Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/vsnprintf (Depend-on): Remove minmax.
52896
52897 2007-03-06  Bruno Haible  <bruno@clisp.org>
52898
52899         * modules/snprintf-posix-tests: New file.
52900         * tests/test-snprintf-posix.c: New file.
52901
52902         * modules/snprintf-posix: New file.
52903         * m4/snprintf-posix.m4: New file.
52904         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52905         gl_FUNC_SNPRINTF.
52906         (gl_FUNC_SNPRINTF): Invoke it.
52907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52908         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52909         is set.
52910         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52911
52912 2007-03-06  Bruno Haible  <bruno@clisp.org>
52913
52914         * modules/vsnprintf-posix-tests: New file.
52915         * tests/test-vsnprintf-posix.c: New file.
52916         * tests/test-snprintf-posix.h: New file.
52917
52918         * modules/vsnprintf-posix: New file.
52919         * m4/vsnprintf-posix.m4: New file.
52920         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52921         gl_FUNC_VSNPRINTF.
52922         (gl_FUNC_VSNPRINTF): Invoke it.
52923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52924         * lib/stdio_.h (vsnprintf): Define as a replacement if
52925         REPLACE_VSNPRINTF is set.
52926         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52927
52928 2007-03-06  Bruno Haible  <bruno@clisp.org>
52929
52930         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52932
52933 2007-03-06  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52936         (asinl): Declare also if HAVE_DECL_ASINL is set.
52937         (atanl): Declare also if HAVE_DECL_ATANL is set.
52938         (ceill): Declare also if HAVE_DECL_CEILL is set.
52939         (cosl): Declare also if HAVE_DECL_COSL is set.
52940         (expl): Declare also if HAVE_DECL_EXPL is set.
52941         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52942         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52943         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52944         (logl): Declare also if HAVE_DECL_LOGL is set.
52945         (sinl): Declare also if HAVE_DECL_SINL is set.
52946         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52947         (tanl): Declare also if HAVE_DECL_TANL is set.
52948         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52950         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52951         declaration of frexpl, ldexpl.
52952         * modules/printf-frexpl (Depends-on): Add math.
52953         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52954
52955 2007-03-05  Bruno Haible  <bruno@clisp.org>
52956
52957         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52958         frexpl and ldexpl are declared.
52959         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52960
52961 2007-03-05  Bruno Haible  <bruno@clisp.org>
52962
52963         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52964         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52965
52966 2007-03-05  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/stdio_.h: Include <stddef.h>.
52969
52970 2007-03-05  Bruno Haible  <bruno@clisp.org>
52971
52972         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52973
52974 2007-03-05  Bruno Haible  <bruno@clisp.org>
52975
52976         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52977         NetBSD 4, from Ralf Wildenhues.
52978
52979 2007-03-04  Bruno Haible  <bruno@clisp.org>
52980
52981         * lib/vasprintf.h: Update #if logic for the case when the functions
52982         exist but are overridden.
52983
52984 2007-03-04  Bruno Haible  <bruno@clisp.org>
52985
52986         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52987         implementations: glibc-2.4 and MacOS X 10.3.
52988         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52989         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52990         * tests/test-vasprintf-posix.c (test_function): Likewise.
52991
52992 2007-03-04  Bruno Haible  <bruno@clisp.org>
52993
52994         * modules/vasprintf-posix-tests: New file.
52995         * tests/test-vasprintf-posix.c: New file.
52996
52997         * modules/vasprintf-posix: New file.
52998         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52999         defined.
53000         * m4/vasprintf-posix.m4: New file.
53001         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53002         gl_FUNC_VASPRINTF.
53003         (gl_FUNC_VASPRINTF): Invoke it.
53004         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53005         here.
53006         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53007
53008 2007-03-04  Bruno Haible  <bruno@clisp.org>
53009
53010         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53011         REPLACE_GETTIMEOFDAY.
53012         * modules/sys_time (Makefile.am): Likewise.
53013         * m4/sys_time_h.m4: Likewise.
53014         * m4/gettimeofday.m4: Likewise.
53015
53016 2007-03-04  Bruno Haible  <bruno@clisp.org>
53017
53018         * modules/vasnprintf-posix-tests: New file.
53019         * tests/test-vasnprintf-posix.c: New file.
53020
53021         * modules/vasnprintf-posix: New file.
53022         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53023         printf-frexpl.h.
53024         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53025         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53026         REPLACE_VASNPRINTF is defined.
53027         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53028         gl_FUNC_VASNPRINTF.
53029         (gl_FUNC_VASNPRINTF): Invoke it.
53030         * m4/vasnprintf-posix.m4: New file.
53031         * m4/printf.m4: New file.
53032
53033 2007-03-04  Bruno Haible  <bruno@clisp.org>
53034
53035         Compile progreloc.c only if --enable-relocatable is specified.
53036         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53037         if --enable-relocatable was specified.
53038         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53039         lib_SOURCES.
53040
53041 2007-03-04  Jim Meyering  <jim@meyering.net>
53042
53043         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53044         Use it consistently, rather than enumerating errno constants.
53045
53046 2007-03-04  Bruno Haible  <bruno@clisp.org>
53047
53048         * modules/xvasprintf-tests: New file.
53049         * tests/test-xvasprintf.c: New file.
53050
53051         * modules/vasprintf-tests: New file.
53052         * tests/test-vasprintf.c: New file.
53053
53054         * modules/vasnprintf-tests: New file.
53055         * tests/test-vasnprintf.c: New file.
53056
53057         * modules/vsnprintf-tests: New file.
53058         * tests/test-vsnprintf.c: New file.
53059
53060         * modules/snprintf-tests: New file.
53061         * tests/test-snprintf.c: New file.
53062
53063 2007-03-04  Bruno Haible  <bruno@clisp.org>
53064
53065         Compile relocatable.c only if --enable-relocatable is specified.
53066         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53067         gl_RELOCATABLE_LIBRARY.
53068         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53069         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53070         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53071         gl_RELOCATABLE_LIBRARY.
53072         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53073         (Makefile.am): Remove lib_SOURCES.
53074         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53075         gl_RELOCATABLE_LIBRARY.
53076         (Makefile.am): Remove lib_SOURCES.
53077         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53078         always.
53079         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53080         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53081
53082 2007-03-04  Bruno Haible  <bruno@clisp.org>
53083
53084         * modules/argmatch-tests: New file.
53085         * tests/test-argmatch.c: New file.
53086
53087         * tests/test-allocsa.c (main): Halve the number of loop runs.
53088
53089         * modules/alloca-opt-tests: New file.
53090         * tests/test-alloca-opt.c: New file.
53091
53092 2007-03-04  Jim Meyering  <jim@meyering.net>
53093
53094         Work around difference between Linux ACLs and Solaris 10 ZFS.
53095         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53096         for EINVAL.
53097
53098 2007-03-03  Bruno Haible  <bruno@clisp.org>
53099
53100         * modules/relocatable-prog (Depends-on): Add back progreloc's
53101         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53102
53103 2007-03-03  Bruno Haible  <bruno@clisp.org>
53104
53105         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53106         * modules/relocatable-lib: New file.
53107
53108 2007-03-03  Bruno Haible  <bruno@clisp.org>
53109
53110         * modules/relocatable-prog: Renamed from modules/relocatable.
53111         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53112
53113 2007-03-03  Bruno Haible  <bruno@clisp.org>
53114
53115         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53116         m4/relocatable-lib.m4.
53117         (Depends-on): Remove 'relocatable'.
53118         (configure.ac): Add gl_RELOCATABLE_NOP.
53119
53120 2007-03-03  Bruno Haible  <bruno@clisp.org>
53121
53122         * modules/relocatable-prog-wrapper: New file.
53123         * modules/relocatable (Depends-on): Add it. Remove all other
53124         dependencies except progname.
53125         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53126
53127         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53128         (gl_FUNC_STRERROR): Nop.
53129         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53130
53131         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53132         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53133
53134         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53135         (gl_FUNC_READLINK): Update.
53136
53137         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53138
53139 2007-03-03  Bruno Haible  <bruno@clisp.org>
53140
53141         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53142         * modules/xreadlink (Depends-on): Add unistd.
53143         * modules/xreadlink-with-size (Depends-on): Likewise.
53144
53145 2007-03-03  Bruno Haible  <bruno@clisp.org>
53146
53147         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53148         extracted from gt_FUNC_SETENV.
53149         (gt_FUNC_SETENV): Remove macro.
53150         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53151         remove gt_FUNC_SETENV.
53152
53153 2007-03-03  Bruno Haible  <bruno@clisp.org>
53154
53155         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53156         ENABLE_RELOCATABLE here.
53157         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53158
53159 2007-03-03  Bruno Haible  <bruno@clisp.org>
53160
53161         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53162         * tests/test-rbtreehash_list.c: Include progname.h.
53163         (main): Call set_program_name.
53164
53165         * modules/rbtree-oset-tests (Depends-on): Add progname.
53166         * tests/test-rbtree_oset.c: Include progname.h.
53167         (main): Call set_program_name.
53168
53169         * modules/rbtree-list-tests (Depends-on): Add progname.
53170         * tests/test-rbtree_list.c: Include progname.h.
53171         (main): Call set_program_name.
53172
53173         * modules/linked-list-tests (Depends-on): Add progname.
53174         * tests/test-linked_list.c: Include progname.h.
53175         (main): Call set_program_name.
53176
53177 2007-03-03  Bruno Haible  <bruno@clisp.org>
53178
53179         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53180         All uses of __restrict changed to _Restrict_.
53181         * lib/glob_.h (__restrict): Remove macro.
53182
53183 2007-03-02  Bruno Haible  <bruno@clisp.org>
53184
53185         * modules/gettext (configure.ac): Require gettext infrastructure
53186         from version 0.16.1.
53187
53188 2007-03-02  Bruno Haible  <bruno@clisp.org>
53189
53190         * modules/linkedhash-list-tests (Depends-on): Add progname.
53191         * tests/test-linkedhash_list.c: Include progname.h.
53192         (main): Call set_program_name.
53193
53194         * modules/carray-list-tests (Depends-on): Add progname.
53195         * tests/test-carray_list.c: Include progname.h.
53196         (main): Call set_program_name.
53197
53198         * modules/avltreehash-list-tests (Depends-on): Add progname.
53199         * tests/test-avltreehash_list.c: Include progname.h.
53200         (main): Call set_program_name.
53201
53202         * modules/avltree-oset-tests (Depends-on): Add progname.
53203         * tests/test-avltree_oset.c: Include progname.h.
53204         (main): Call set_program_name.
53205
53206         * modules/avltree-list-tests (Depends-on): Add progname.
53207         * tests/test-avltree_list.c: Include progname.h.
53208         (main): Call set_program_name.
53209
53210         * modules/array-oset-tests (Depends-on): Add progname.
53211         * tests/test-array_oset.c: Include progname.h.
53212         (main): Call set_program_name.
53213
53214         * modules/array-list-tests (Depends-on): Add progname.
53215         * tests/test-array_list.c: Include progname.h.
53216         (main): Call set_program_name.
53217
53218         * modules/argp-tests (Depends-on): Add progname.
53219         * tests/test-argp.c: Include argp.h first. Include progname.h.
53220         (main): Call set_program_name.
53221
53222 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53223
53224         * doc/gnulib-tool.texi (Initial import): Reword description of
53225         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53226         limited effect even if defined after the first system include.
53227
53228 2007-03-01  Bruno Haible  <bruno@clisp.org>
53229
53230         * build-aux/config.libpath: Update to libtool-1.5.22.
53231         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53232
53233 2007-03-01  Bruno Haible  <bruno@clisp.org>
53234
53235         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53236         foo_CFLAGS.
53237         Reported by Ralf Wildenhues.
53238
53239 2007-03-01  Bruno Haible  <bruno@clisp.org>
53240
53241         * build-aux/install-reloc: Remove object files left over by some
53242         compilers.
53243         Reported by Ralf Wildenhues.
53244
53245 2007-03-01  Bruno Haible  <bruno@clisp.org>
53246
53247         * build-aux/install-reloc: Break long lines.
53248
53249 2007-03-01  Bruno Haible  <bruno@clisp.org>
53250
53251         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53252         Reported by Ralf Wildenhues.
53253
53254 2007-03-01  Bruno Haible  <bruno@clisp.org>
53255
53256         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53257         include ordering constraints.
53258
53259 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53262         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53263         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53264         as another example.
53265         * lib/time_.h: Fix misspelling.
53266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53267         Require gl_HEADER_TIME_H_DEFAULTS.
53268         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53269         * m4/time_r.m4 (gl_TIME_R): Likewise.
53270         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53271
53272 2007-03-01  Bruno Haible  <bruno@clisp.org>
53273
53274         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53275         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53276
53277 2007-03-01  Jim Meyering  <jim@meyering.net>
53278
53279         * modules/xreadlink (Maintainer): Add my name.
53280         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53281
53282 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53283             Bruno Haible  <bruno@clisp.org>
53284
53285         * build-aux/install-reloc: Compile also c-ctype.c.
53286         * build-aux/relocatable.sh.in: New file.
53287         * doc/relocatable.texi: New file.
53288         * doc/relocatable-maint.texi: New file.
53289         * doc/gnulib.texi: Include relocatable-maint.texi.
53290         * lib/progreloc.c: Include unistd.h unconditionally.
53291         * lib/relocwrapper.c: Include unistd.h unconditionally.
53292         Include c-ctype.h.
53293         (add_dotbin): Use c_tolower.
53294         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53295         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53296         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53297         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53298         to m4/relocatable-lib.m4.
53299         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53300         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53301         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53302         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53303         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53304         * modules/relocatable: New file.
53305         * modules/relocatable-lib: New file.
53306         * modules/relocatable-script: New file.
53307
53308 2007-02-28  Bruno Haible  <bruno@clisp.org>
53309
53310         Import --enable-relocatable infrastructure.
53311         * build-aux/config.libpath: New file, from GNU gettext.
53312         * build-aux/install-reloc: New file, from GNU gettext.
53313         * build-aux/reloc-ldflags: New file, from GNU gettext.
53314         * lib/relocatable.h: New file, from GNU gettext.
53315         * lib/relocatable.c: New file, from GNU gettext.
53316         * lib/relocwrapper.c: New file, from GNU gettext.
53317         * m4/relocatable.m4: New file, from GNU gettext.
53318
53319 2007-02-28  Bruno Haible  <bruno@clisp.org>
53320
53321         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53322
53323         * modules/xreadlink: New file, from GNU gettext with modifications.
53324         * lib/xreadlink.c: New file, from GNU gettext.
53325         * lib/xreadlink.h: Add comments.
53326         (xreadlink): New declaration.
53327
53328         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53329         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53330         lib/xreadlink-with-size.c.
53331         (configure.ac): Remove gl_XREADLINK invocation.
53332         (Makefile.am): Augment lib_SOURCES.
53333         * m4/xreadlink.m4: Remove file.
53334         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53335         (xreadlink_with_size): Renamed from xreadink.
53336         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53337         * modules/canonicalize (Depends-on): Replace xreadlink with
53338         xreadlink-with-size.
53339         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53340
53341 2007-02-25  Jim Meyering  <jim@meyering.net>
53342
53343         * build-aux/announce-gen: When complaining about excess arguments,
53344         list them.
53345
53346 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53347
53348         * README: Document signed integer overflow situation more
53349         accurately.
53350
53351 2007-02-25  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53354         'a' or 'A' conversion.
53355
53356 2007-02-25  Bruno Haible  <bruno@clisp.org>
53357
53358         * modules/filename: Renamed from modules/pathname.
53359         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53360         lib/concatpath.c with lib/concat-filename.c.
53361         (Makefile.am): Update.
53362         (Include): Replace pathname.h with filename.h.
53363         * lib/filename.h: Renamed from lib/pathname.h.
53364         (concatenated_filename): Renamed from concatenated_pathname.
53365         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53366         (concatenated_filename): Renamed from concatenated_pathname.
53367         * lib/findprog.c: Include filename.h instead of pathname.h.
53368         (find_in_path): Update.
53369         * lib/javacomp.c: Include filename.h instead of pathname.h.
53370         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53371         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53372         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53373         is_oldgcj_14_13_usable, is_javac_usable): Update.
53374         * lib/javaexec.c: Include filename.h instead of pathname.h.
53375         (execute_java_class): Update.
53376         * modules/findprog: Update.
53377         * modules/javacomp: Update.
53378         * modules/javaexec: Update.
53379         * MODULES.html.sh (File system functions): Add 'filename', remove
53380         'pathname'.
53381
53382 2007-02-25  Bruno Haible  <bruno@clisp.org>
53383
53384         * modules/printf-frexpl-tests: New file.
53385         * tests/test-printf-frexpl.c: New file.
53386
53387         * modules/printf-frexpl: New file.
53388         * lib/printf-frexpl.h: New file.
53389         * lib/printf-frexpl.c: New file.
53390         * m4/printf-frexpl.m4: New file.
53391
53392 2007-02-25  Bruno Haible  <bruno@clisp.org>
53393
53394         * modules/printf-frexp-tests: New file.
53395         * tests/test-printf-frexp.c: New file.
53396
53397         * modules/printf-frexp: New file.
53398         * lib/printf-frexp.h: New file.
53399         * lib/printf-frexp.c: New file.
53400         * m4/printf-frexp.m4: New file.
53401
53402 2007-02-25  Bruno Haible  <bruno@clisp.org>
53403
53404         Assume automake >= 1.10 for the tests.
53405         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53406         * modules/arctwo-tests: Likewise.
53407         * modules/argp-tests: Likewise.
53408         * modules/avltree-list-tests: Likewise.
53409         * modules/avltree-oset-tests: Likewise.
53410         * modules/avltreehash-list-tests: Likewise.
53411         * modules/carray-list-tests: Likewise.
53412         * modules/crc-tests: Likewise.
53413         * modules/des-tests: Likewise.
53414         * modules/gc-arcfour-tests: Likewise.
53415         * modules/gc-arctwo-tests: Likewise.
53416         * modules/gc-des-tests: Likewise.
53417         * modules/gc-hmac-md5-tests: Likewise.
53418         * modules/gc-hmac-sha1-tests: Likewise.
53419         * modules/gc-md2-tests: Likewise.
53420         * modules/gc-md4-tests: Likewise.
53421         * modules/gc-md5-tests: Likewise.
53422         * modules/gc-pbkdf2-sha1-tests: Likewise.
53423         * modules/gc-rijndael-tests: Likewise.
53424         * modules/gc-sha1-tests: Likewise.
53425         * modules/gc-tests: Likewise.
53426         * modules/getaddrinfo-tests: Likewise.
53427         * modules/hmac-md5-tests: Likewise.
53428         * modules/hmac-sha1-tests: Likewise.
53429         * modules/linked-list-tests: Likewise.
53430         * modules/linkedhash-list-tests: Likewise.
53431         * modules/lock-tests: Likewise.
53432         * modules/md2-tests: Likewise.
53433         * modules/md4-tests: Likewise.
53434         * modules/md5-tests: Likewise.
53435         * modules/rbtree-list-tests: Likewise.
53436         * modules/rbtree-oset-tests: Likewise.
53437         * modules/rbtreehash-list-tests: Likewise.
53438         * modules/read-file-tests: Likewise.
53439         * modules/rijndael-tests: Likewise.
53440         * modules/stdint-tests: Likewise.
53441         * modules/tls-tests: Likewise.
53442
53443 2007-02-24  Bruno Haible  <bruno@clisp.org>
53444
53445         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53446         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53447         function; instead check whether isnan with a double argument links.
53448         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53449         function; instead check whether isnan with a 'long double' argument
53450         links.
53451         Reported by Eric Blake <ebb9@byu.net>.
53452
53453 2007-02-24  Bruno Haible  <bruno@clisp.org>
53454
53455         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53456         defined.
53457         * lib/isnanl.c: Remove all code. Just include isnan.c.
53458         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53459
53460 2007-02-25  Jim Meyering  <jim@meyering.net>
53461
53462         Avoid conflicting types for 'unsetenv' on FreeBSD.
53463         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53464         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53465         in stdlib.h.
53466
53467 2007-02-24  Bruno Haible  <bruno@clisp.org>
53468
53469         * modules/isnanl-nolibm-tests: New file.
53470         * tests/test-isnanl.c: New file.
53471
53472         * modules/isnanl-nolibm: New file.
53473         * lib/isnanl.h: New file.
53474         * lib/isnanl.c: New file.
53475         * m4/isnanl.m4: New file.
53476
53477 2007-02-24  Bruno Haible  <bruno@clisp.org>
53478
53479         * modules/isnan-nolibm-tests: New file.
53480         * tests/test-isnan.c: New file.
53481
53482         * modules/isnan-nolibm: New file.
53483         * lib/isnan.h: New file.
53484         * lib/isnan.c: New file.
53485         * m4/isnan.m4: New file.
53486
53487 2007-02-24  Bruno Haible  <bruno@clisp.org>
53488
53489         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53490         assume that an exponent fits in 20 bits.
53491
53492 2007-02-24  Jim Meyering  <jim@meyering.net>
53493
53494         * m4/regex.m4: Update the description of the configure-time option,
53495         --without-included-regex, to state accurately what the defaults are,
53496         and perhaps to give people an idea why using this option is risky.
53497
53498 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53499
53500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53501         loops on small arguments.  This attempts to avoid the problem
53502         Bruno Haible reported for AIX 4.3.2 in
53503         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53504
53505 2007-02-23  Bruno Haible  <bruno@clisp.org>
53506
53507         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53508         Needed for help2man.
53509
53510 2007-02-23  Karl Berry  <karl@gnu.org>
53511
53512         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53513         exists, foo.h should be cvs-ignored, not committed.
53514
53515 2007-02-23  Eric Blake  <ebb9@byu.net>
53516
53517         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53518         * lib/stat-time.h (includes): Likewise.
53519         * lib/utimecmp.c (includes): Likewise.
53520         * lib/utimens.h (includes): Likewise.
53521         * lib/getdate.y (includes): Also include "timespec.h" for use
53522         internal to the module.
53523         * modules/utimens (Depends-on): Revert yesterday's patch.
53524         * modules/nanosleep (Depends-on): Add missing dependency.
53525
53526 2007-02-22  Bruno Haible  <bruno@clisp.org>
53527
53528         * lib/glob.c: Don't include getlogin_r.h.
53529
53530 2007-02-22  Jim Meyering  <jim@meyering.net>
53531
53532         * modules/utimens (Depends-on): Add timespec, required for
53533         utimens.h's inclusion of timespec.h.
53534
53535 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53538         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53539         Schwab in
53540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53541         I'll try to think of a better way to fix the Solaris problem.
53542
53543         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53544         like glibc; on Solaris 10, it fails with errno == EINVAL.
53545         POSIX says the behavior is unspecified if the first argument is NULL,
53546         so play it safe and never pass NULL to the system getcwd.
53547
53548 2007-02-21  Jim Meyering  <jim@meyering.net>
53549
53550         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53551         of gettimeofday.  It would conflict with the one now always
53552         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53553         an IRIX 6.5 build failure.
53554
53555 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         Minor fixups to port to Solaris 10 with Sun C 5.8.
53558         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53559         * modules/getcwd (Depends-on): Add dirfd.
53560         * lib/putenv.c (putenv): #undef it.
53561         (rpl_putenv): New decl.
53562         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53563
53564 2007-02-20  Bruno Haible  <bruno@clisp.org>
53565
53566         * modules/stdio-tests: New file.
53567         * tests/test-stdio.c: New file.
53568
53569         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53570         (Depends-on): Add stdio.
53571         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53572         (Include): Use <stdio.h> instead of vsnprintf.h.
53573         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53574         HAVE_DECL_VSNPRINTF.
53575         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53576
53577         * modules/snprintf (Files): Remove lib/snprintf.h.
53578         (Depends-on): Add stdio.
53579         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53580         (Include): Use <stdio.h> instead of snprintf.h.
53581         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53582         HAVE_DECL_SNPRINTF.
53583         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53584         * lib/getaddrinfo.c: Likewise.
53585
53586         * modules/stdio: New file.
53587         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53588         * lib/snprintf.h: Remove file.
53589         * lib/vsnprintf.h: Remove file.
53590         * lib/.cppi-disable: Remove snprintf.h.
53591         * m4/stdio_h.m4: New file.
53592         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53593
53594 2007-02-20  Jim Meyering  <jim@meyering.net>
53595
53596         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53597         used by e.g., mingw.  From Bruno Haible.
53598
53599 2007-02-19  Bruno Haible  <bruno@clisp.org>
53600
53601         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53602         warnings.
53603         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53604
53605 2007-02-19  Bruno Haible  <bruno@clisp.org>
53606
53607         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53608         from mingw users.
53609
53610 2007-02-19  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53613         warnings.
53614         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53615
53616 2007-02-19  Jim Meyering  <jim@meyering.net>
53617
53618         Don't use FD after a successful "fdopendir (fd)".
53619         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53620         Reset it by calling dirfd on the just-obtained DIR*.
53621
53622         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53623         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53624
53625 2007-02-18  Bruno Haible  <bruno@clisp.org>
53626
53627         * lib/readlink.c: Include <unistd.h>.
53628         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53629         HAVE_READLINK.
53630         * modules/readlink (Depends-on): Add unistd.
53631         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53632         (Include): Add <unistd.h>.
53633
53634         * lib/getlogin_r.h: Remove file.
53635         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53636         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53637         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53638         HAVE_DECL_GETLOGIN_R.
53639         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53640         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53641         (Include): Use <unistd.h> instead of getlogin_r.h.
53642
53643         * lib/getcwd.h: Remove file.
53644         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53645         * lib/xgetcwd.c: Likewise.
53646         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53647         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53648         * modules/getcwd (Files): Remove lib/getcwd.h.
53649         (Depends-on): Add unistd.
53650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53651         (Include): Use <unistd.h> instad of getcwd.h.
53652
53653         * lib/ftruncate.c: Include <unistd.h> first.
53654         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53655         Set HAVE_FTRUNCATE.
53656         * modules/ftruncate (Depends-on): Add unistd.
53657         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53658
53659         * lib/fchdir.c: Include <unistd.h> first.
53660         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53662         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53663         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53664         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53665
53666         * lib/dup2.c: Include <unistd.h> first.
53667         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53668         HAVE_DUP2.
53669         * modules/dup2 (Depends-on): Add unistd.
53670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53671
53672         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53673         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53674         REPLACE_CHOWN. Don't define chown as a macro here.
53675         * modules/chown (Depends-on): Add unistd.
53676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53677
53678         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53679         Add definition for GL_LINK_WARNING.
53680         (chown, dup2): New declarations.
53681         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53682         link warning.
53683         (ftruncate): New declaration.
53684         (getcwd): New declaration, taken from old getcwd.h.
53685         (getlogin_r): New declaration, taken from old getlogin_r.h.
53686         (readlink): New declaration.
53687         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53688         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53689         (gl_PREREQ_UNISTD): Remove macro.
53690         (gl_UNISTD_MODULE_INDICATOR): New macro.
53691         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53692         many new variables. Don't set UNISTD_H.
53693         * modules/unistd (Description): Change.
53694         (Depends-on): Add link-warning.
53695         (configure.ac): Update.
53696         (Makefile.am): Create unistd.h always. Substitute many new variables
53697         into it.
53698
53699 2007-02-18  Bruno Haible  <bruno@clisp.org>
53700
53701         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53702         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53703         HAVE_GETSUBOPT.
53704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53705         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53706         * lib/getsubopt.h: Remove file.
53707         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53708         (Depends-on): Add stdlib.
53709         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53710         (Includes): Use <stdlib.h> instead of getsubopt.h.
53711         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53712         Set HAVE_GETSUBOPT.
53713         * lib/getsubopt.c: Don't include getsubopt.h.
53714
53715 2007-02-18  Bruno Haible  <bruno@clisp.org>
53716
53717         * modules/fchdir (Depends-on): Add dup2.
53718
53719 2007-02-18  Bruno Haible  <bruno@clisp.org>
53720
53721         * lib/stdlib_.h: Handle glibc's special invocation convention
53722         specially.
53723
53724 2007-02-18  Bruno Haible  <bruno@clisp.org>
53725
53726         * modules/stdlib-tests: New file.
53727         * tests/test-stdlib.c: New file.
53728
53729         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53730         (Depends-on): Add stdlib.
53731         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53732         (Includes): Use <stdlib.h> instead of mkstemp.h.
53733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53734         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53735         * lib/mkstemp.c: Don't include mkstemp.h.
53736         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53737         * lib/stdlib--.h: Don't include mkstemp.h.
53738
53739         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53740         (Depends-on): Add stdlib.
53741         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53742         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53743         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53744         HAVE_MKDTEMP.
53745         * lib/mkdtemp.c: Don't include mkdtemp.h.
53746         * lib/clean-temp.c: Don't include mkdtemp.h.
53747
53748         * modules/exit (Files): Remove lib/exit.h.
53749         (Depends-on): Add stdlib.
53750         (Makefile.am): Remove lib_SOURCES.
53751         (Include): Use <stdlib.h> instead of exit.h.
53752         * lib/argmatch.c: Don't include exit.h.
53753         * lib/execute.c: Likewise.
53754         * lib/pagealign_alloc.c: Likewise.
53755         * lib/pipe.c: Likewise.
53756         * lib/wait-process.c: Likewise.
53757         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53758         * lib/exitfail.c: Likewise.
53759         * lib/savewd.c: Likewise.
53760         * lib/xsetenv.c: Likewise.
53761
53762         * modules/stdlib: New file.
53763         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53764         and extra comments about mkstemp().
53765         * lib/exit.h: Remove file.
53766         * lib/mkdtemp.h: Remove file.
53767         * lib/mkstemp.h: Remove file.
53768         * m4/stdlib_h.m4: New file.
53769         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53770
53771 2007-02-18  Bruno Haible  <bruno@clisp.org>
53772
53773         * modules/math-tests: New file.
53774         * tests/test-math.c: New file.
53775
53776         * modules/math: New file.
53777         * modules/mathl (Files): Remove lib/mathl.h.
53778         (Depends-on): Add math.
53779         (Makefile.am): Don't mention mathl.h.
53780         (Include): Use <math.h> instead of mathl.h.
53781         * lib/math_.h: New file.
53782         * lib/mathl.h: Remove file.
53783         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53784         mathl.h.
53785         * lib/asinl.c: Likewise.
53786         * lib/atanl.c: Likewise.
53787         * lib/ceill.c: Likewise.
53788         * lib/cosl.c: Likewise.
53789         * lib/expl.c: Likewise.
53790         * lib/floorl.c: Likewise.
53791         * lib/frexpl.c: Likewise.
53792         * lib/ldexpl.c: Likewise.
53793         * lib/logl.c: Likewise.
53794         * lib/sincosl.c: Likewise.
53795         * lib/sinl.c: Likewise.
53796         * lib/sqrtl.c: Likewise.
53797         * lib/tanl.c: Likewise.
53798         * lib/trigl.c: Likewise.
53799         * m4/math_h.m4: New file.
53800         * MODULES.html.sh (Mathematics): Add math.
53801
53802 2007-02-17  Bruno Haible  <bruno@clisp.org>
53803
53804         * modules/wctype-tests: New file.
53805         * tests/test-wctype.c: New file.
53806
53807         * modules/wchar-tests: New file.
53808         * tests/test-wchar.c: New file.
53809
53810         * modules/unistd-tests: New file.
53811         * tests/test-unistd.c: New file.
53812
53813         * modules/time-tests: New file.
53814         * tests/test-time.c: New file.
53815
53816         * modules/sysexits-tests: New file.
53817         * tests/test-sysexits.c: New file.
53818
53819         * modules/sys_time-tests: New file.
53820         * tests/test-sys_time.c: New file.
53821
53822         * modules/sys_stat-tests: New file.
53823         * tests/test-sys_stat.c: New file.
53824
53825         * modules/sys_socket-tests: New file.
53826         * tests/test-sys_socket.c: New file.
53827
53828         * modules/sys_select-tests: New file.
53829         * tests/test-sys_select.c: New file.
53830
53831         * modules/string-tests: New file.
53832         * tests/test-string.c: New file.
53833
53834         * modules/stdbool-tests: New file.
53835         * tests/test-stdbool.c: New file.
53836
53837         * modules/netinet_in-tests: New file.
53838         * tests/test-netinet_in.c: New file.
53839
53840         * modules/inttypes-tests: New file.
53841         * tests/test-inttypes.c: New file.
53842
53843         * modules/fcntl-tests: New file.
53844         * tests/test-fcntl.c: New file.
53845
53846         * modules/byteswap-tests: New file.
53847         * tests/test-byteswap.c: New file.
53848
53849         * modules/arpa_inet-tests: New file.
53850         * tests/test-arpa_inet.c: New file.
53851
53852 2007-02-17  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53855         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53856         if the corresponding module is not enabled. Emit link warnings if
53857         the function is used nevertheless.
53858         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53859         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53860         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53861         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53862         * modules/inttypes (Depends-on): Add link-warning.
53863         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53864         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53865         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53866         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53867         * modules/imaxdiv (configure.ac): Likewise.
53868         * modules/strtoimax (configure.ac): Likewise.
53869         * modules/strtoumax (configure.ac): Likewise.
53870
53871 2007-02-17  Bruno Haible  <bruno@clisp.org>
53872
53873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53874         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53875         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53876         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53877
53878 2007-02-17  Bruno Haible  <bruno@clisp.org>
53879
53880         * modules/link-warning: New file.
53881         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53882         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53883         * modules/string (Depends-on): Add link-warning.
53884         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53885         string.h.
53886         * MODULES.html.sh (Support for building libraries and executables): Add
53887         link-warning.
53888
53889 2007-02-17  Bruno Haible  <bruno@clisp.org>
53890
53891         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53892         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53893         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53894         long lines.
53895
53896 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53897             Bruno Haible  <bruno@clisp.org>
53898
53899         * modules/tmpfile: New file.
53900         * lib/tmpfile.c: New file.
53901         * m4/tmpfile.m4: New file.
53902         * MODULES.html.sh (func_all_modules): New section "Input/output".
53903
53904 2007-02-15  Bruno Haible  <bruno@clisp.org>
53905
53906         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53907         (supports_delete_on_close): New function.
53908         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53909
53910 2007-02-14  Bruno Haible  <bruno@clisp.org>
53911
53912         * modules/mbspcasecmp-tests: New file.
53913         * tests/test-mbspcasecmp.sh: New file.
53914         * tests/test-mbspcasecmp.c: New file.
53915
53916         New module mbspcasecmp.
53917         * modules/mbspcasecmp: New file.
53918         * lib/mbspcasecmp.c: New file.
53919         * lib/string_.h (strncasecmp): Change warning message.
53920         (mbspcasecmp): New declaration.
53921         * m4/mbspcasecmp.m4: New file.
53922         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53923         GNULIB_MBSPCASECMP.
53924         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53925         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53926
53927 2007-02-14  Bruno Haible  <bruno@clisp.org>
53928
53929         * modules/mbsncasecmp-tests: New file.
53930         * tests/test-mbsncasecmp.sh: New file.
53931         * tests/test-mbsncasecmp.c: New file.
53932
53933         New module mbsncasecmp.
53934         * modules/mbsncasecmp: New file.
53935         * lib/mbsncasecmp.c: New file.
53936         * lib/string_.h (mbsncasecmp): New declaration.
53937         * m4/mbsncasecmp.m4: New file.
53938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53939         GNULIB_MBSNCASECMP.
53940         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53941         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53942
53943 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53944
53945         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53946         Verify that it doesn't overlap with our flags.
53947         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53948         do not have the desired effect in multibyte locales; instead, use
53949         mbscasecmp.
53950         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53951         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53952         we don't require GNU fnmatch ourselves (if our users require it, they
53953         should do so explicitly).
53954
53955         Fix regex code so it doesn't rely on strcasecmp.
53956         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53957         Otherwise, include gnulib's langinfo.h.
53958         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53959         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53960         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53961         * modules/regex (FILES): Remove m4/codeset.m4.
53962         (Depends-on): Add localcharset.  Remove strcase.
53963
53964 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53965
53966         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53967         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53968
53969 2007-02-13  Bruno Haible  <bruno@clisp.org>
53970
53971         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53973
53974 2007-02-12  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53977         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53978         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53979         time warning rather than a link error.
53980
53981 2007-02-12  Bruno Haible  <bruno@clisp.org>
53982
53983         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53984         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53986
53987 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53988
53989         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53990         args, not 2.
53991
53992 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53993
53994         New module 'time', so that apps can include <time.h> as per
53995         POSIX and GNU instead of separate include files like time_r.h
53996         and timegm.h.  This implementation tries out a simpler approach
53997         for replacing decls in standard include files (as compared to
53998         the string module), somewhat as an experiment.
53999
54000         * config/srclist.txt: Comment out mktime.c for now.
54001         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54002         since it doesn't apply any more.  Use generic wording instead.
54003         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54004         'time'.
54005         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54006         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54007         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54008         Don't include <sys/types.h>; no longer needed since we assume C89.
54009         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54010         * lib/strftime.c: Likewise.
54011         * lib/time_r.c: Likewise.
54012         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54013         * lib/nanosleep.c: Include <time.h> first, to check interface.
54014         * lib/strptime.c: Likewise.
54015         * lib/time_r.c: Likewise.
54016         * lib/timegm.c: Likewise.
54017         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54018         needed.
54019         * lib/timegm.c: Don't include timegm.h; no longer needed.
54020         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54021         time.h now handles any problems in that area.
54022         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54023         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54024         that time.h defines struct timespec.
54025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54026         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54027         handles that.
54028         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54029         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54030         needed.  Set REPLACE_LOCALTIME.
54031         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54032         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54033         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54034         nanosleep; time_h.m4 now does that.  Don't require
54035         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54036         module handles this now.
54037         * modules/getdate (Depends-on): Remove timespec.  Add time.
54038         * modules/nanosleep (Depends-on): Likewise.
54039         * modules/stat-time (Depends-on): Likewise.
54040         * modules/nanosleep (Include): Include time.h, not timespec.h.
54041         * modules/strptime (Files): Remove lib/strptime.h.
54042         (Depends-on): Add extensions, time.
54043         (Include): Include time.h, not strptime.h.
54044         * modules/time_r (Files): Remove lib/time_r.h.
54045         (Depends-on): Add time.
54046         (Include): Include time.h, not time_r.h.
54047         * modules/timegm: Likewise.
54048         * modules/timespec (Description): Now does timespec-related decls
54049         of our own, instead of struct timespec itself.
54050         (Depends-on): Add time; remove extensions.
54051         (Maintainer): Add self.
54052         * modules/utimecmp (Depends-on): Add time; remove timespec.
54053         * modules/utimens (Depends-on): Likewise.
54054         * modules/xnanosleep (Depends-on): Likewise.
54055
54056 2007-02-11  Bruno Haible  <bruno@clisp.org>
54057
54058         * lib/c-strstr.c: Include allocsa.h.
54059         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54060         * lib/c-strcasestr.c: Include allocsa.h.
54061         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54062         * lib/strcasestr.c: Include allocsa.h.
54063         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54064         * lib/mbsstr.c: Include allocsa.h.
54065         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54066         allocsa/freesa instead of malloc/free.
54067         * lib/mbscasestr.c: Include allocsa.h.
54068         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54069         allocsa/freesa instead of malloc/free.
54070         * modules/c-strstr (Depends-on): Add allocsa.
54071         * modules/c-strcasestr (Depends-on): Likewise.
54072         * modules/strcasestr (Depends-on): Likewise.
54073         * modules/mbsstr (Depends-on): Likewise.
54074         * modules/mbscasestr (Depends-on): Likewise.
54075
54076 2007-02-11  Bruno Haible  <bruno@clisp.org>
54077
54078         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54079
54080         * modules/mbsspn-tests: New file.
54081         * tests/test-mbsspn.sh: New file.
54082         * tests/test-mbsspn.c: New file.
54083
54084 2007-02-11  Bruno Haible  <bruno@clisp.org>
54085
54086         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54087
54088         * modules/mbspbrk-tests: New file.
54089         * tests/test-mbspbrk.sh: New file.
54090         * tests/test-mbspbrk.c: New file.
54091
54092 2007-02-11  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54095         unneeded cast.
54096
54097         * modules/mbscspn-tests: New file.
54098         * tests/test-mbscspn.sh: New file.
54099         * tests/test-mbscspn.c: New file.
54100
54101 2007-02-11  Bruno Haible  <bruno@clisp.org>
54102
54103         * modules/mbscasecmp-tests: New file.
54104         * tests/test-mbscasecmp.sh: New file.
54105         * tests/test-mbscasecmp.c: New file.
54106
54107 2007-02-11  Bruno Haible  <bruno@clisp.org>
54108
54109         Ensure O(n) worst-case complexity of mbscasestr.
54110         * lib/mbscasestr.c: Include stdbool.h.
54111         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54112         functions.
54113         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54114         the bookkeeping indicates that it's worth it.
54115         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54116
54117         * modules/mbscasestr-tests: New file.
54118         * tests/test-mbscasestr1.c: New file.
54119         * tests/test-mbscasestr2.sh: New file.
54120         * tests/test-mbscasestr2.c: New file.
54121         * tests/test-mbscasestr3.sh: New file.
54122         * tests/test-mbscasestr3.c: New file.
54123         * tests/test-mbscasestr4.sh: New file.
54124         * tests/test-mbscasestr4.c: New file.
54125         * m4/locale-tr.m4: New file.
54126
54127 2007-02-11  Bruno Haible  <bruno@clisp.org>
54128
54129         Ensure O(n) worst-case complexity of mbsstr.
54130         * lib/mbsstr.c: Include stdbool.h.
54131         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54132         functions.
54133         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54134         bookkeeping indicates that it's worth it.
54135         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54136
54137         * modules/mbsstr-tests: New file.
54138         * tests/test-mbsstr1.c: New file.
54139         * tests/test-mbsstr2.sh: New file.
54140         * tests/test-mbsstr2.c: New file.
54141         * tests/test-mbsstr3.sh: New file.
54142         * tests/test-mbsstr3.c: New file.
54143         * m4/locale-fr.m4: New file.
54144
54145 2007-02-11  Bruno Haible  <bruno@clisp.org>
54146
54147         * lib/mbsrchr.c (mbsrchr): Fix bug.
54148
54149         * modules/mbsrchr-tests: New file.
54150         * tests/test-mbsrchr.sh: New file.
54151         * tests/test-mbsrchr.c: New file.
54152
54153 2007-02-11  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/mbschr.c (mbschr): Fix bug.
54156
54157         * modules/mbschr-tests: New file.
54158         * tests/test-mbschr.sh: New file.
54159         * tests/test-mbschr.c: New file.
54160         * m4/locale-zh.m4: New file.
54161
54162 2007-02-11  Bruno Haible  <bruno@clisp.org>
54163
54164         Support for copying multibyte string iterators.
54165         * lib/mbiter.h: Include <string.h>.
54166         (mbiter_multi_copy): New function.
54167         (mbi_copy): New macro.
54168         * lib/mbuiter.h: Include <string.h>.
54169         (mbuiter_multi_copy): New function.
54170         (mbui_copy): New macro.
54171
54172 2007-02-11  Bruno Haible  <bruno@clisp.org>
54173
54174         New module mbslen.
54175         * modules/mbslen: New file.
54176         * lib/mbslen.c: New file.
54177         * lib/string_.h (mbslen): New declaration.
54178         * m4/mbslen.m4: New file.
54179         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54180         GNULIB_MBSLEN.
54181         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54182         * MODULES.html.sh (Internationalization functions): Add mbslen.
54183
54184 2007-02-11  Bruno Haible  <bruno@clisp.org>
54185
54186         Ensure O(n) worst-case complexity of strcasestr substitute.
54187         * lib/strcasestr.c: Include stdbool.h.
54188         (knuth_morris_pratt): New function.
54189         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54190         bookkeeping indicates that it's worth it.
54191         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54192
54193         * modules/strcasestr-tests: New file.
54194         * tests/test-strcasestr.c: New file.
54195
54196 2007-02-11  Bruno Haible  <bruno@clisp.org>
54197
54198         Ensure O(n) worst-case complexity of c_strcasestr.
54199         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54200         (knuth_morris_pratt): New function.
54201         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54202         the bookkeeping indicates that it's worth it.
54203         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54204
54205         * modules/c-strcasestr-tests: New file.
54206         * tests/test-c-strcasestr.c: New file.
54207
54208 2007-02-11  Bruno Haible  <bruno@clisp.org>
54209
54210         Ensure O(n) worst-case complexity of c_strstr.
54211         * lib/c-strstr.c: Include stdbool.h, string.h.
54212         (knuth_morris_pratt): New function.
54213         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54214         bookkeeping indicates that it's worth it.
54215         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54216
54217         * lib/c-strstr.c: Complete rewrite for maintainability.
54218
54219         * modules/c-strstr-tests: New file.
54220         * tests/test-c-strstr.c: New file.
54221
54222 2007-02-11  Bruno Haible  <bruno@clisp.org>
54223
54224         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54225         5.2.1 and earlier, whereby \055 was treated just like the range
54226         delimiter '-'.
54227         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54228
54229 2007-02-08  Bruno Haible  <bruno@clisp.org>
54230
54231         * modules/regex (Depends-on): Add stdbool.
54232         Reported by Dalibor Topic <robilad@kaffe.org>.
54233
54234 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54235
54236         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54237         Prefer returning from main to exiting from it.
54238         Remove unnecessary parens after sizeof.
54239
54240 2007-02-05  Bruno Haible  <bruno@clisp.org>
54241
54242         New module mbssep.
54243         * modules/mbssep: New file.
54244         * lib/mbssep.c: New file.
54245         * lib/string_.h (strsep): Add a conditional link warning.
54246         (mbssep): New declaration.
54247         * m4/mbssep.m4: New file.
54248         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54249         GNULIB_MBSSEP.
54250         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54251         * MODULES.html.sh (Internationalization functions): Add mbssep.
54252
54253 2007-02-05  Bruno Haible  <bruno@clisp.org>
54254
54255         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54256         Optimize search in case of 1 delimiter.
54257
54258 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54259
54260         * lib/acl.h: Include sys/types.h before sys/acl.h.
54261
54262 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54263
54264         Merge upstream fix for glibc bugzilla #3957:
54265
54266         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54267
54268         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54269         bit for RE_HAT_LISTS_NOT_NEWLINE.
54270         (build_charclass_op): Remove bogus comment.
54271
54272 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54273
54274         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54275
54276 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54277
54278         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54279         * lib/memmem.c [!defined _LIBC]: Include config.h.
54280
54281 2007-02-04  Bruno Haible  <bruno@clisp.org>
54282
54283         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54284         warning message.
54285
54286 2007-02-04  Bruno Haible  <bruno@clisp.org>
54287
54288         New module mbstok_r.
54289         * modules/mbstok_r: New file.
54290         * lib/mbstok_r.c: New file.
54291         * lib/string_.h (strtok_r): Change argument names to match the
54292         comments. Add a conditional link warning.
54293         (mbstok_r): New declaration.
54294         * m4/mbstok_r.m4: New file.
54295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54296         GNULIB_MBSTOK_R.
54297         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54298         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54299
54300 2007-02-04  Bruno Haible  <bruno@clisp.org>
54301
54302         New module mbsspn.
54303         * modules/mbsspn: New file.
54304         * lib/mbsspn.c: New file.
54305         * lib/string_.h (strspn): Add a conditional link warning.
54306         (mbsspn): New declaration.
54307         * m4/mbsspn.m4: New file.
54308         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54309         GNULIB_MBSSPN.
54310         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54311         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54312
54313 2007-02-04  Bruno Haible  <bruno@clisp.org>
54314
54315         New module mbspbrk.
54316         * modules/mbspbrk: New file.
54317         * lib/mbspbrk.c: New file.
54318         * lib/string_.h (strpbrk): Add a conditional link warning.
54319         (mbspbrk): New declaration.
54320         * m4/mbspbrk.m4: New file.
54321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54322         GNULIB_MBSPBRK.
54323         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54324         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54325
54326 2007-02-04  Bruno Haible  <bruno@clisp.org>
54327
54328         New module mbscspn.
54329         * modules/mbscspn: New file.
54330         * lib/mbscspn.c: New file.
54331         * lib/string_.h (strcspn): Add a conditional link warning.
54332         (mbscspn): New declaration.
54333         * m4/mbscspn.m4: New file.
54334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54335         GNULIB_MBSCSPN.
54336         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54337         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54338
54339 2007-02-04  Bruno Haible  <bruno@clisp.org>
54340
54341         New module mbscasestr, reduced goal of strcasestr.
54342         * modules/mbscasestr: New file.
54343         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54344         (mbscasestr): Renamed from strcasestr.
54345         * lib/strcasestr.c: Don't include mbuiter.h.
54346         (strcasestr): Remove support for multibyte locales.
54347         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54348         Change the conditional link warning.
54349         (mbscasestr): New declaration.
54350         * m4/mbscasestr.m4: New file.
54351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54352         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54353         REPLACE_STRCASESTR.
54354         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54356         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54357         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54358         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54359         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54360         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54361         (Depends-on): Remove mbuiter.
54362         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54363
54364 2007-02-04  Bruno Haible  <bruno@clisp.org>
54365
54366         Simplify handling of strncasecmp.
54367         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54368         the conditional link warning.
54369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54370         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54371         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54372         * modules/strcase (configure.ac): Don't invoke
54373         gl_STRING_MODULE_INDICATOR.
54374         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54375
54376 2007-02-04  Bruno Haible  <bruno@clisp.org>
54377
54378         New module mbscasecmp, reduced goal of strcasecmp.
54379         * modules/mbscasecmp: New file.
54380         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54381         (mbscasecmp): Renamed from strcasecmp.
54382         * lib/strcasecmp.c: Don't include mbuiter.h.
54383         (strcasecmp): Remove support for multibyte locales.
54384         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54385         Change the conditional link warning.
54386         (mbscasecmp): New declaration.
54387         * m4/mbscasecmp.m4: New file.
54388         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54389         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54390         REPLACE_STRCASECMP.
54391         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54393         GNULIB_MBSCASECMP.
54394         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54395         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54396         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54397         (Depends-on): Remove mbuiter.
54398         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54399
54400 2007-02-04  Bruno Haible  <bruno@clisp.org>
54401
54402         New module mbsstr. Remove module strstr.
54403         * modules/mbsstr: New file.
54404         * modules/strstr: Remove file.
54405         * lib/mbsstr.c: Renamed from lib/strstr.c.
54406         (mbsstr): Renamed from strstr.
54407         * lib/string_.h (strstr): Remove declaration. Change the conditional
54408         link warning.
54409         (mbsstr): New declaration.
54410         * m4/mbsstr.m4: New file.
54411         * m4/strstr.m4: Remove file.
54412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54413         REPLACE_STRSTR.
54414         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54415         Don't initialize GNULIB_STRSTR.
54416         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54417         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54418         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54419         (Support for systems lacking ANSI C 89): Remove strstr.
54420
54421 2007-02-04  Bruno Haible  <bruno@clisp.org>
54422
54423         New module mbsrchr.
54424         * modules/mbsrchr: New file.
54425         * lib/mbsrchr.c: New file.
54426         * lib/string_.h (strrchr): Add a conditional link warning.
54427         (mbsrchr): New declaration.
54428         * m4/mbsrchr.m4: New file.
54429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54430         GNULIB_MBSRCHR.
54431         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54432         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54433
54434 2007-02-04  Bruno Haible  <bruno@clisp.org>
54435
54436         New module mbschr.
54437         * modules/mbschr: New file.
54438         * lib/mbschr.c: New file.
54439         * lib/string_.h (strchr): Add a conditional link warning.
54440         (mbschr): New declaration.
54441         * m4/mbschr.m4: New file.
54442         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54443         GNULIB_MBSCHR.
54444         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54445         * MODULES.html.sh (Internationalization functions): Add mbschr.
54446
54447 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54448
54449         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54450
54451         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54452
54453 2007-02-04  Bruno Haible  <bruno@clisp.org>
54454
54455         New module description section 'configure.ac-early'.
54456         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54457         (func_get_autoconf_early_snippet): New function.
54458         (func_import, func_create_testdir): Use it. Remove special cases for
54459         modules 'extensions' and 'lock'.
54460         * modules/extensions (configure.ac-early): Require
54461         gl_USE_SYSTEM_EXTENSIONS.
54462         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54463
54464 2007-02-04  Bruno Haible  <bruno@clisp.org>
54465
54466         Make use of gcj-4.3's -fsource and -ftarget option.
54467         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54468         and if so try the options -fsource and -ftarget.
54469         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54470         source_version, ftarget_option, target_version arguments.
54471         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54472         (is_envjavac_oldgcj_14_14_usable): Renamed from
54473         is_envjavac_gcj_14_14_usable.
54474         (is_envjavac_oldgcj_14_13_usable): Renamed from
54475         is_envjavac_gcj_14_13_usable.
54476         (is_gcj_present): Update.
54477         (is_gcj_43, is_gcj43_usable): New functions.
54478         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54479         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54480         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54481         try the options -fsource and -ftarget.
54482
54483 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54486         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54487         larger value.
54488
54489 2007-02-03  Jim Meyering  <jim@meyering.net>
54490
54491         Give tools a better chance to allocate space for very large buffers.
54492         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54493
54494         Make pwd and readlink work also when run with an unreadable parent dir
54495         on systems with openat support.
54496         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54497         provided getcwd function, even when we have openat support.
54498         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54499
54500 2007-02-02  Bruno Haible  <bruno@clisp.org>
54501
54502         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54503         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54504         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54505         portability problems if one of these functions is only used on specific
54506         platforms.
54507         Reported by Paul Eggert.
54508
54509 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54510
54511         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54512         is causing more trouble than it's curing.
54513         * lib/regex_internal.h (__mempcpy): Remove.
54514         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54515         (and make the code a tad smaller to boot).
54516         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54517
54518 2007-02-02  Jim Meyering  <jim@meyering.net>
54519
54520         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54521         section, not in the Makefile.am: one.
54522
54523 2007-02-02  Eric Blake  <ebb9@byu.net>
54524
54525         * lib/strchrnul.c: Always include config.h first.
54526
54527         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54528         gnulib strstr is not necessary here.
54529
54530 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54531
54532         * m4/socklen.m4: Fix typo.
54533
54534 2007-02-02  Eric Blake  <ebb9@byu.net>
54535
54536         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54537         * modules/netinet_in (Makefile.am): Likewise.
54538
54539 2007-02-01  Bruno Haible  <bruno@clisp.org>
54540
54541         * lib/string_.h (GL_LINK_WARNING): New macro.
54542         (strcasecmp, strstr, strcasestr): If provided by the system,
54543         conditionally define as a macro that leads to a warning instead of to
54544         an error.
54545         (strncasecmp): Conditionally define as a macro that leads to a warning.
54546
54547 2007-02-01  Karl Berry  <karl@gnu.org>
54548
54549         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54550
54551 2007-02-01  Bruno Haible  <bruno@clisp.org>
54552
54553         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54554         renamings.
54555
54556 2007-02-01  Eric Blake  <ebb9@byu.net>
54557
54558         * modules/regex (Depends-on): Revert dependence on mempcpy.
54559         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54560         module's definition of mempcpy.
54561         Reported by Paul Eggert.
54562
54563 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54566         the symbol XYZ before redefining it.  This fixes a problem with
54567         programs that don't use XYZ, when compiled on systems that define
54568         XYZ to something else.
54569
54570 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54573         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54574         writeable to group or other and (2) is intended to have a special
54575         mode bit that is set or cleared.  In such a case, the directory
54576         should be neither group- nor other-writeable until the special
54577         mode bits are right.
54578
54579 2007-01-31  Eric Blake  <ebb9@byu.net>
54580
54581         * modules/mountlist (Depends-on): Add strstr.
54582
54583         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54584         bug.
54585         * modules/string (Makefile.am): Remove redundant replacement.
54586         * modules/regex (Depends-on): Add mempcpy.
54587
54588 2007-01-31  Bruno Haible  <bruno@clisp.org>
54589
54590         New module description field 'Link'.
54591         * gnulib-tool (func_usage): Document --extract-link-directive.
54592         (sed_extract_prog): Recognize 'Link' directive.
54593         (func_get_link_directive): New function.
54594         (func_import): Show summary of link directives.
54595         Handle --extract-link-directive option.
54596         * modules/acl (Link): New section.
54597         * modules/clock-time (Link): New section.
54598         * modules/euidaccess (Link): New section.
54599         * modules/gettext (Link): New section.
54600         * modules/iconv (Link): New section.
54601         * modules/lock (Link): New section.
54602         * modules/nanosleep (Link): New section.
54603         * modules/readline (Link): New section.
54604
54605 2007-01-27  Bruno Haible  <bruno@clisp.org>
54606
54607         Enforce the use of gnulib modules for unportable <string.h> functions.
54608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54609         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54610         (gl_HEADER_STRING_H_BODY): Require it.
54611         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54612         the symbol XYZ to one that gives a link error.
54613         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54614         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54615         * modules/mempcpy (configure.ac): Likewise.
54616         * modules/memrchr (configure.ac): Likewise.
54617         * modules/stpcpy (configure.ac): Likewise.
54618         * modules/stpncpy (configure.ac): Likewise.
54619         * modules/strcase (configure.ac): Likewise.
54620         * modules/strcasestr (configure.ac): Likewise.
54621         * modules/strchrnul (configure.ac): Likewise.
54622         * modules/strdup (configure.ac): Likewise.
54623         * modules/strndup (configure.ac): Likewise.
54624         * modules/strnlen (configure.ac): Likewise.
54625         * modules/strpbrk (configure.ac): Likewise.
54626         * modules/strsep (configure.ac): Likewise.
54627         * modules/strstr (configure.ac): Likewise.
54628         * modules/strtok_r (configure.ac): Likewise.
54629
54630 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54631
54632         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54633
54634 2007-01-30  Jim Meyering  <jim@meyering.net>
54635
54636         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54637
54638 2007-01-29  Bruno Haible  <bruno@clisp.org>
54639
54640         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54641         * lib/execute.c: Likewise.
54642         * lib/pipe.c: Likewise.
54643         * lib/printf-args.h: Likewise.
54644         * lib/printf-args.c: Likewise.
54645         * lib/printf-parse.c: Likewise.
54646         * lib/vasnprintf.c: Likewise.
54647
54648 2007-01-29  Eric Blake  <ebb9@byu.net>
54649
54650         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54651         declaration.
54652
54653 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54654
54655         * lib/strptime.h (strptime): Use 'restrict' for args where
54656         POSIX requires this.
54657         * lib/strptime.c (strptime): Likewise.
54658         Change license notice from LGPL to GPL, since gnulib-tool will
54659         change this as needed.
54660         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54661         defined.
54662         Include "strptime.h" first, to check interface.
54663         Do not #undef _LIBC and _NL_CURRENT.
54664         Do not include <stdlib.h>; no longer needed.
54665         Include "time_r.h" and declare ptime_locale_status
54666         only if _LIBC is not defined.
54667         (__P): Remove unused macro.
54668         (match_string): Bring back glibc version, but use it only if _LIBC
54669         is defined.
54670         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54671         Remove unnecessary assertion and abort() call.
54672         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54673         * m4/strptime.m4: Fix serial number comment.
54674         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54675         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54676         (Depends-on): Add time_r.
54677
54678 2007-01-29  Bruno Haible  <bruno@clisp.org>
54679
54680         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54681         strptime.
54682         * modules/strptime (Depends-on): Add stdbool.
54683         * lib/strptime.h: Include <time.h> always. Add comments.
54684
54685 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54686
54687         * modules/strptime: New file.
54688         * lib/strptime.h: New file.
54689         * lib/strptime.c: New file.
54690         * m4/strptime.m4: New file.
54691
54692 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54693
54694         * MODULES.html.sh: New module mpsort.
54695         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54696
54697         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54698         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54700         All uses changed.
54701         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54702         All uses changed.
54703         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54704         to _Restrict_.
54705         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54706         the parameter matches the prototype.
54707
54708 2007-01-28  Jim Meyering  <jim@meyering.net>
54709
54710         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54711         sys/time.h here, reverting that part of the previous patch:
54712         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54713
54714 2007-01-28  Bruno Haible  <bruno@clisp.org>
54715
54716         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54717         value of $(SYS_TIME_H).
54718         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54719         remove it conditionally, too. [added by Jim Meyering]
54720         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54721         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54722         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54723         GETTIMEOFDAY_REPLACEMENT to 1.
54724
54725 2007-01-28  Bruno Haible  <bruno@clisp.org>
54726
54727         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54728         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54729         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54730         Set UNISTD_H instead of UNISTD_H2.
54731         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54732
54733 2007-01-28  Bruno Haible  <bruno@clisp.org>
54734
54735         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54736         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54737
54738 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54739
54740         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54741         (func_create_testdir): Ensure C locale for `grep' and `tr'
54742         character ranges.
54743         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54744         ACLOCAL_AMFLAGS parsing state machine.
54745
54746 2007-01-27  Bruno Haible  <bruno@clisp.org>
54747
54748         * modules/unistr/base: Update.
54749
54750 2007-01-27  Bruno Haible  <bruno@clisp.org>
54751
54752         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54753         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54754         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54755         modules/unistr/u32-mbtouc.
54756         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54757         * lib/unistr.h: Update.
54758         * lib/linebreak.c: Update.
54759         * modules/unistr/u32-mbtouc: Renamed from
54760         modules/unistr/u32-mbtouc-safe.
54761         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54762         * lib/unistr.h: Update.
54763         * lib/unistr/u32-to-u8.c: Update.
54764         * lib/unistr/u32-to-u16.c: Update.
54765
54766 2007-01-27  Bruno Haible  <bruno@clisp.org>
54767
54768         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54769         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54770         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54771         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54772         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54773         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54774         modules/unistr/u16-mbtouc.
54775         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54776         * lib/unistr.h: Update.
54777         * lib/linebreak.c: Update.
54778         * modules/linebreak: Update.
54779         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54780         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54781         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54782         * modules/unistr/u16-mbtouc: Renamed from
54783         modules/unistr/u16-mbtouc-safe.
54784         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54785         * lib/unistr.h: Update.
54786         * lib/unistr/u16-to-u8.c: Update.
54787         * modules/unistr/u16-to-u8: Update.
54788         * lib/unistr/u16-to-u32.c: Update.
54789         * modules/unistr/u16-to-u32: Update.
54790
54791 2007-01-27  Bruno Haible  <bruno@clisp.org>
54792
54793         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54794         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54795         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54796         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54797         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54798         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54799         modules/unistr/u8-mbtouc.
54800         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54801         * lib/unistr.h: Update.
54802         * lib/striconveh.c: Update.
54803         * modules/striconveh: Update.
54804         * lib/linebreak.c: Update.
54805         * modules/linebreak: Update.
54806         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54807         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54808         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54809         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54810         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54811         * lib/unistr.h: Update.
54812         * lib/striconveh.c: Update.
54813         * modules/striconveh: Update.
54814         * lib/unistr/u8-to-u16.c: Update.
54815         * modules/unistr/u8-to-u16: Update.
54816         * lib/unistr/u8-to-u32.c: Update.
54817         * modules/unistr/u8-to-u32: Update.
54818
54819 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54820
54821         Sync from Libtool.
54822         * lib/argz.c: Do not include strings.h nor memory.h, include
54823         string.h unconditionally.  Patch by Simon Josefsson.
54824
54825 2007-01-27  Bruno Haible  <bruno@clisp.org>
54826
54827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54828         from gl_HEADER_STRING_H_BODY.
54829         (gl_HEADER_STRING_H_BODY): Require it.
54830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54831         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54832         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54833         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54835         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54837         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54838         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54839         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54840         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54841         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54842         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54843         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54844         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54845
54846 2007-01-27  Bruno Haible  <bruno@clisp.org>
54847
54848         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54849         check_PROGRAMS into noinst_PROGRAMS.
54850         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54851         check_PROGRAMS in this case.
54852         (func_import): Set for_test to false.
54853         (func_create_testdir): Set for_test to true.
54854
54855 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54856             Bruno Haible  <bruno@clisp.org>
54857
54858         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54859         (Depends-on): Add string.
54860         (Includes): Use <string.h> instead of strcasestr.h.
54861         * modules/string (Makefile.am): Also substitute the value of
54862         REPLACE_STRCASESTR.
54863         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54864         assume strcasestr is declared in <string.h> not <strings.h>. Also
54865         set REPLACE_STRCASESTR.
54866         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54867         REPLACE_STRCASESTR.
54868         * lib/strcasestr.h: Remove file.
54869         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54870         * lib/string_.h (strcasestr): New declaration.
54871
54872 2007-01-27  Bruno Haible  <bruno@clisp.org>
54873
54874         * lib/string_.h: Use 'extern'.
54875
54876 2007-01-27  Jim Meyering  <jim@meyering.net>
54877
54878         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54879         of set-but-not-used local, "q".
54880
54881         * lib/mempcpy.c: Include <config.h> before <string.h>.
54882         This fixes a compilation error on HP-UX, due to the system's
54883         "restrict"-using mempcpy prototype.
54884
54885 2007-01-26  Bruno Haible  <bruno@clisp.org>
54886
54887         Small optimization.
54888         * lib/javacomp.c: Include c-strstr.h.
54889          (is_envjavac_gcj): Use c_strstr instead of strstr.
54890         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54891
54892 2007-01-26  Bruno Haible  <bruno@clisp.org>
54893
54894         * MODULES.html.sh (Unicode string functions): Add the new modules.
54895
54896         * modules/uniconv/u32-strconv-to-locale: New file.
54897         * lib/uniconv/u32-strconv-to-locale.c: New file.
54898
54899         * modules/uniconv/u16-strconv-to-locale: New file.
54900         * lib/uniconv/u16-strconv-to-locale.c: New file.
54901
54902         * modules/uniconv/u8-strconv-to-locale: New file.
54903         * lib/uniconv/u8-strconv-to-locale.c: New file.
54904
54905         * modules/uniconv/u32-strconv-from-locale: New file.
54906         * lib/uniconv/u32-strconv-from-locale.c: New file.
54907
54908         * modules/uniconv/u16-strconv-from-locale: New file.
54909         * lib/uniconv/u16-strconv-from-locale.c: New file.
54910
54911         * modules/uniconv/u8-strconv-from-locale: New file.
54912         * lib/uniconv/u8-strconv-from-locale.c: New file.
54913
54914         * modules/uniconv/u32-strconv-to-enc: New file.
54915         * lib/uniconv/u32-strconv-to-enc.c: New file.
54916         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54917         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54918
54919         * modules/uniconv/u16-strconv-to-enc: New file.
54920         * lib/uniconv/u16-strconv-to-enc.c: New file.
54921         * lib/uniconv/u-strconv-to-enc.h: New file.
54922         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54923         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54924
54925         * modules/uniconv/u8-strconv-to-enc: New file.
54926         * lib/uniconv/u8-strconv-to-enc.c: New file.
54927         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54928         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54929
54930         * modules/uniconv/u32-strconv-from-enc: New file.
54931         * lib/uniconv/u32-strconv-from-enc.c: New file.
54932         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54933         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54934
54935         * modules/uniconv/u16-strconv-from-enc: New file.
54936         * lib/uniconv/u16-strconv-from-enc.c: New file.
54937         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54938         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54939
54940         * modules/uniconv/u8-strconv-from-enc: New file.
54941         * lib/uniconv/u8-strconv-from-enc.c: New file.
54942         * lib/uniconv/u-strconv-from-enc.h: New file.
54943         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54944         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54945
54946         * modules/uniconv/u32-conv-from-enc: New file.
54947         * lib/uniconv/u32-conv-from-enc.c: New file.
54948         * modules/uniconv/u32-conv-from-enc-tests: New file.
54949         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54950
54951         * modules/uniconv/u16-conv-from-enc: New file.
54952         * lib/uniconv/u16-conv-from-enc.c: New file.
54953         * lib/uniconv/u-conv-from-enc.h: New file.
54954         * modules/uniconv/u16-conv-from-enc-tests: New file.
54955         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54956
54957         * modules/uniconv/u8-conv-from-enc: New file.
54958         * lib/uniconv/u8-conv-from-enc.c: New file.
54959         * modules/uniconv/u8-conv-from-enc-tests: New file.
54960         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54961
54962         * modules/uniconv/base: New file.
54963         * lib/uniconv.h: New file.
54964
54965 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54966
54967         * doc/gnulib-tool.texi (Initial import): Update to match current
54968         behavior with strdup module.
54969         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54970         * lib/memmem.h: Remove; all uses removed.  This is now done
54971         by <string.h>.
54972         * lib/mempcpy.h: Likewise.
54973         * lib/memrchr.h: Likewise.
54974         * lib/stpcpy.h: Likewise.
54975         * lib/stpncpy.h: Likewise.
54976         * lib/strcase.h: Likewise.
54977         * lib/strchrnul.h: Likewise.
54978         * lib/strdup.h: Likewise.
54979         * lib/strndup.h: Likewise.
54980         * lib/strnlen.h: Likewise.
54981         * lib/strpbrk.h: Likewise.
54982         * lib/strsep.h: Likewise.
54983         * lib/strstr.h: Likewise.
54984         * lib/strtok_r.h: Likewise.
54985         * lib/string_.h: New file.
54986         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54987         Rely on <string.h> instead.
54988         * lib/canon-host.c: Likewise.
54989         * lib/chdir-long.c: Likewise.
54990         * lib/concatpath.c: Likewise.
54991         * lib/exclude.c: Likewise.
54992         * lib/fchdir.c: Likewise.
54993         * lib/getaddrinfo.c: Likewise.
54994         * lib/getcwd.c: Likewise.
54995         * lib/getsubopt.c: Likewise.
54996         * lib/glob.c: Likewise.
54997         * lib/hard-locale.c: Likewise.
54998         * lib/iconvme.c: Likewise.
54999         * lib/javacomp.c: Likewise.
55000         * lib/mempcpy.c: Likewise.
55001         * lib/memrchr.c: Likewise.
55002         * lib/regex_internal.h: Likewise.
55003         * lib/stpncpy.c: Likewise.
55004         * lib/strcasecmp.c: Likewise.
55005         * lib/strchrnul.c: Likewise.
55006         * lib/strdup.c: Likewise.
55007         * lib/striconv.c: Likewise.
55008         * lib/striconveh.c: Likewise.
55009         * lib/striconveha.c: Likewise.
55010         * lib/strncasecmp.c: Likewise.
55011         * lib/strndup.c: Likewise.
55012         * lib/strnlen.c: Likewise.
55013         * lib/strsep.c: Likewise.
55014         * lib/strstr.c: Likewise.
55015         * lib/strtok_r.c: Likewise.
55016         * lib/userspec.c: Likewise.
55017         * lib/w32spawn.h: Likewise.
55018         * lib/xstrndup.c: Likewise.
55019         * lib/mountlist.c (strstr): Remove decl.
55020         * m4/string_h.m4: New file.
55021         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55022         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55023         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55024         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55025         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55026         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55027         Set REPLACE_STRCASECMP if necessary.
55028         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55029         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55030         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55031         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55032         HAVE_DECL_STRDUP if necessary.
55033         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55034         since gl_FUNC_STRNDUP does that now.
55035         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55036         Check for decl here...
55037         (gl_PREREQ_STRNLEN): ... not here.
55038         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55039         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55040         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55041         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55042         necessary.
55043         * modules/string: New file.
55044         * modules/memmem (Files): Remove special-purpose include file.
55045         (Depends-on): Add string.
55046         (Include): Include <string.h>, not the removed file.
55047         * modules/mempcpy: Likewise.
55048         * modules/memrchr: Likewise.
55049         * modules/stpcpy: Likewise.
55050         * modules/stpncpy: Likewise.
55051         * modules/strcase: Likewise.
55052         * modules/strchrnul: Likewise.
55053         * modules/strdup: Likewise.
55054         * modules/strndup: Likewise.
55055         * modules/strnlen: Likewise.
55056         * modules/strpbrk: Likewise.
55057         * modules/strsep: Likewise.
55058         * modules/strstr: Likewise.
55059         * modules/strtok_r: Likewise.
55060         * tests/test-dirname.c: Don't include "strdup.h", since
55061         <string.h> now suffices.
55062         * tests/test-memmem.c: Don't include "memmem.h", since
55063         <string.h> now suffices.
55064
55065 2007-01-25  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55068         *resultp is 0.
55069
55070         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55071         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55072         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55073         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55074
55075         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55076         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55077         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55078         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55079         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55080         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55081
55082 2007-01-24  Bruno Haible  <bruno@clisp.org>
55083
55084         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55085         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55086         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55087         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55088         gl_FUNC_FTS_CORE.
55089         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55090         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55091         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55092         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55093         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55094         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55095         gl_FUNC_FCHOWNAT.
55096         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55097         gl_FUNC_STRFTIME.
55098         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55099         Reported by Ralf Wildenhues.
55100
55101 2007-01-24  Bruno Haible  <bruno@clisp.org>
55102
55103         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55104         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55105         gl_GETADDRINFO.
55106         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55107         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55108         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55109
55110 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55111
55112         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55113         Don't use 'exit'; just return from 'main'.
55114         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55115
55116         * lib/fnmatch_.h: Readjust white space and comments to match
55117         glibc, to avoid spurious diffs.
55118
55119 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55122         2004-12-01 change by Jakub Jelinek, since this code won't compile
55123         if !LIBC.  Problem reported by Bob Proulx.
55124
55125 2007-01-23  Bruno Haible  <bruno@clisp.org>
55126
55127         * lib/striconveh.c: Include c-strcaseeq.h.
55128         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55129         * modules/striconveh (Depends-on): Add c-strcaseeq.
55130
55131 2007-01-23  Bruno Haible  <bruno@clisp.org>
55132
55133         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55134
55135         * modules/c-strcaseeq: New file.
55136         * lib/c-strcaseeq.h: New file.
55137
55138         * modules/streq: New file.
55139         * lib/streq.h: New file.
55140
55141 2007-01-23  Bruno Haible  <bruno@clisp.org>
55142
55143         * modules/striconveha-tests: New file.
55144         * tests/test-striconveha.c: New file.
55145
55146         * lib/striconveha.h: Include <stdbool.h>.
55147         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55148         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55149         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55150         (mem_iconveha): New function.
55151         (str_iconveha_notranslit): Renamed from str_iconveha.
55152         (str_iconveha): New function.
55153         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55154         c-strcase.
55155
55156 2007-01-23  Bruno Haible  <bruno@clisp.org>
55157
55158         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55159         encodings without forgiving before trying any encoding with handler.
55160         (str_iconveha): Try all encodings without forgiving before trying any
55161         encoding with handler.
55162
55163 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55164
55165         Import the following changes from libc.
55166
55167         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55168
55169         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55170
55171         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55172
55173         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55174         normal_bracket label.
55175
55176         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55177
55178         [BZ #361]
55179         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55180         to normal_bracket after fetching the next character.
55181
55182 2007-01-22  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55185         argument.
55186         * lib/striconveh.c (iconv_carefully_1): New function.
55187         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55188         argument.
55189         (str_cd_iconveh): Update.
55190         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55191         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55192         * tests/test-striconveh.c (MAGIC): New macro.
55193         (new_offsets): New function.
55194         (main): Test call with and without offsets.
55195
55196 2007-01-22  Bruno Haible  <bruno@clisp.org>
55197
55198         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55199         * modules/sys_select (Makefile.am): Likewise.
55200         * modules/sys_socket (Makefile.am): Likewise.
55201         * modules/sys_time (Makefile.am): Likewise.
55202
55203 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55204
55205         * modules/gettimeofday (License): Change from GPL to LGPL, since
55206         gettimeofday is a library function.
55207
55208 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55209
55210         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55211
55212 2007-01-21  Bruno Haible  <bruno@clisp.org>
55213
55214         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55215
55216 2007-01-21  Bruno Haible  <bruno@clisp.org>
55217
55218         * modules/striconveha: New file.
55219         * lib/striconveha.h: New file.
55220         * lib/striconveha.c: New file.
55221         * MODULES.html.sh (Internationalization functions): Add striconveha.
55222         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55223         string.
55224         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55225
55226 2007-01-21  Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55229         * lib/striconveh.c (str_iconveh): Likewise.
55230
55231 2007-01-21  Bruno Haible  <bruno@clisp.org>
55232
55233         * lib/striconveh.h (mem_iconveh): New declaration.
55234         * lib/striconveh.c (mem_iconveh): New function.
55235         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55236
55237 2007-01-21  Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55240
55241         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55242         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55243         original result buffer.
55244         (str_cd_iconveh): Update.
55245         * tests/test-striconveh.c (main): Update.
55246
55247         * lib/striconv.h (mem_cd_iconv): Change specification.
55248         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55249         result buffer.
55250         (str_cd_iconv): Update.
55251         * tests/test-striconv.c (main): Update.
55252
55253 2007-01-21  Bruno Haible  <bruno@clisp.org>
55254
55255         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55256
55257 2007-01-20  Jim Meyering  <jim@meyering.net>
55258
55259         * lib/userspec.c (parse_with_separator): If a user or group string
55260         starts with "+", skip the corresponding name-to-ID look-up, since
55261         such a look-up must fail: user and group names may not include "+".
55262
55263 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55264
55265         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55266         since we now assume the sys_time module.
55267         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55268         check for sys/time.h; no longer needed.
55269         * modules/poll (Depends-on): Depend on sys_time.
55270
55271 2007-01-18  Bruno Haible  <bruno@clisp.org>
55272
55273         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55274         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55275
55276         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55277         gettimeofday.
55278
55279         * tests/test-gettimeofday.c: Include <time.h>.
55280         (dummy): Remove variable.
55281
55282         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55283         gl_HEADER_SYS_TIME_H.
55284         (gl_HEADER_SYS_TIME_H): New macro.
55285
55286         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55287         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55288         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55289         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55290         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55291         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55292         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55293         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55294         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55295         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55296         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55297
55298         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55299         last change; it caused a compilation error when cross-compiling to
55300         Cygwin.
55301
55302 2007-01-18  Jim Meyering  <jim@meyering.net>
55303
55304         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55305         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55306         than the race-prone "test -d sys || mkdir sys".
55307         (configure.ac): Use AC_PROG_MKDIR_P.
55308         * modules/sys_select: Likewise.
55309         * modules/sys_socket: Likewise.
55310         * modules/sys_time: Likewise.
55311
55312 2007-01-18  Eric Blake  <ebb9@byu.net>
55313
55314         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55315         replace gettimeofday.
55316         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55317         name, to avoid infinite recursion.
55318
55319 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55320
55321         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55322         module sys_time.
55323         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55324         assume timespec.h defines struct timeval.
55325         * lib/settime.c: Likewise.
55326         * lib/utimens.c: Likewise.
55327         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55328         since we now assume the gettimeofday module.
55329         * lib/tempname.c (__gen_tempname): Likewise.
55330         * lib/gettimeofday.h: Remove.
55331         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55332         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55333         Include <time.h>, for 'time()'.
55334         (localtime_buffer_addr): Also use this workaround if
55335         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55336         to simplify the uses.  All uses changed.
55337         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55338         that #undef is inside {}, and 'const' follows type name consistently.
55339         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55340         (gettimeofday): Do not use the maximum possible value for
55341         tv->tv_usec, since that might break usages other than ls.c.
55342         Instead, we'll leave ls.c alone.  This undoes today's patch
55343         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55344         we've never observed the problem but might as well keep the
55345         canary.
55346         * lib/nanosleep.c: Include timespec.h first, for interface check.
55347         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55348         now assume the sys_time module.
55349         * lib/tempname.c: Likewise.
55350         * lib/timespec.h: Likewise.
55351         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55352         needed.
55353         * lib/strftime.c: Likewise.
55354         * lib/timespec.h: Likewise.
55355         * lib/posixtm.c: Include posixtm.h first, for interface check.
55356         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55357         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55358         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55359         * lib/sys_time_.h: New file.
55360         * lib/timespec.h (struct timespec): Use long int, not long.
55361         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55362         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55363         Remove obsolescent call to AC_HEADER_TIME.
55364         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55366         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55367         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55368         Likewise.
55369         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55370         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55371         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55372         into the sys_time module.  Check for gettimeofday just once.
55373         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55374         for gettimeofday signature to just check the signature.  Merely
55375         compile it, since linking doesn't test signature.  Improve test for
55376         whether gettimeofday.o is actually needed.
55377         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55378         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55379         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55380         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55381         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55382         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55383         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55384         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55385         than worrying about sys/time.h.
55386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55387         Don't bother worrying about TIME_WITH_SYS_TIME.
55388         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55389         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55390         * m4/sys_time_h.m4: New file.
55391         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55392         Don't include sys/time.h.  Return from main rather than exiting.
55393         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55394         all uses changed.
55395         * modules/gethrxtime (Depends-on): Add sys_time.
55396         * modules/gettime (Depends-on): Likewise.
55397         * modules/gettimeofday (Depends-on): Likewise.
55398         * modules/nanosleep (Depends-on): Likewise.
55399         * modules/settime (Depends-on): Likewise.
55400         * modules/tempname (Depends-on): Likewise.
55401         * modules/utimens (Depends-on): Likewise.
55402         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55403         (Include): Change back to <sys/time.h>.
55404         (Maintainer): Add self.
55405         * modules/sys_time: New file.
55406         * modules/tempname (Depends-on): Add gettimeofday.
55407         * tests/test-gettimeofday.c: Include <sys/time.h>
55408         rather than gettimeofday.h.
55409
55410 2007-01-17  Bruno Haible  <bruno@clisp.org>
55411
55412         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55413         the license default to GPL.
55414         (func_create_testdir): Don't complain if a module is LGPL and its
55415         tests module depends on GPLed modules.
55416
55417 2007-01-17  Bruno Haible  <bruno@clisp.org>
55418
55419         * lib/gettimeofday.c (gettimeofday): Add code for the case
55420         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55421         maximum possible value for tv->tv_usec, rather than the minimum one.
55422
55423 2005-10-08  Martin Lambers  <marlam@marlam.de>
55424 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55425 2007-01-16  Bruno Haible  <bruno@clisp.org>
55426
55427         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55428         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55429         gl_FUNC_GETTIMEOFDAY.
55430         (Include): Add gettimeofday.h.
55431         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55432         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55433         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55434         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55435         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55436         * lib/gettimeofday.h: New file.
55437         * lib/gettimeofday.c: Include <sys/timeb.h>.
55438         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55439         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55440         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55441         fall back on time().
55442
55443         * tests/test-gettimeofday.c: New file.
55444         * modules/gettimeofday-tests: New file.
55445
55446 2007-01-16  Eric Blake  <ebb9@byu.net>
55447
55448         * modules/fnmatch (Depends-on): Depend on wchar.
55449         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55450         * m4/fnmatch.m4: Likewise.
55451         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55452         * m4/mbchar.m4: Likewise.
55453         * modules/mbswidth (Depends-on): Depend on wchar.
55454         * lib/mbswidth.c: Assume <wchar.h>.
55455         * m4/mbswidth.m4: Likewise.
55456         * modules/quotearg (Depends-on): Depend on wchar.
55457         * lib/quotearg.c: Assume <wchar.h>.
55458         * m4/quotearg.m4: Likewise.
55459         * modules/regex (Depends-on): Depend on wchar.
55460         * lib/regex_internal.h: Assume <wchar.h>.
55461         * m4/regex.m4: Likewise.
55462         * modules/stdint (Depends-on): Depend on wchar.
55463         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55464         * m4/stdint.m4: Likewise.
55465         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55466         * modules/strftime (Depends-on): Depend on wchar.
55467         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55468         * modules/strtol (Depends-on): Depend on wchar.
55469         * lib/strtol.c: Assume <wchar.h>.
55470         * modules/wcwidth (Depends-on): Depend on wchar.
55471         * lib/wcwidth.h: Assume <wchar.h>.
55472         * m4/wcwidth.m4: Likewise.
55473
55474 2007-01-16  Bruno Haible  <bruno@clisp.org>
55475
55476         * modules/csharpexec-script: New, created from...
55477         * modules/csharpexec: ... this.
55478
55479 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55480
55481         * modules/javaexec-script: New, created from...
55482         * modules/javaexec: ... this.
55483
55484 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55485
55486         * modules/poll (Dependencies): Add sys_select.
55487
55488 2007-01-15  Jim Meyering  <jim@meyering.net>
55489
55490         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55491         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55492         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55493         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55494
55495 2007-01-15  Bruno Haible  <bruno@clisp.org>
55496
55497         * modules/striconveh: New file.
55498         * lib/striconveh.h: New file.
55499         * lib/striconveh.c: New file.
55500         * MODULES.html.sh (Internationalization functions): Add striconveh.
55501
55502         * modules/striconveh-tests: New file.
55503         * tests/test-striconveh.c: New file.
55504
55505 2007-01-15  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55508         not from GNU libiconv or GNU libc.
55509
55510 2007-01-15  Bruno Haible  <bruno@clisp.org>
55511
55512         * doc/gnulib-intro.texi (Copyright): Explain the different license
55513         terms for module descriptions, autoconf macros, tests, documentation.
55514
55515 2007-01-14  Bruno Haible  <bruno@clisp.org>
55516
55517         * modules/striconv-tests: New file.
55518         * tests/test-striconv.c: New file.
55519
55520 2007-01-14  Bruno Haible  <bruno@clisp.org>
55521
55522         * modules/iconv-tests: New file.
55523         * tests/test-iconv.c: New file.
55524
55525 2007-01-14  Bruno Haible  <bruno@clisp.org>
55526
55527         * gnulib-tool (func_get_license): For test modules, use the license of
55528         the main module.
55529
55530 2007-01-14  Bruno Haible  <bruno@clisp.org>
55531
55532         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55533         if iconv is found to exist.
55534
55535 2007-01-14  Bruno Haible  <bruno@clisp.org>
55536
55537         * modules/c-ctype-tests: New file.
55538         * tests/test-c-ctype.c: New file.
55539
55540 2007-01-14  Bruno Haible  <bruno@clisp.org>
55541
55542         * modules/binary-io-tests: New file.
55543         * tests/test-binary-io.sh: New file.
55544         * tests/test-binary-io.c: New file.
55545
55546 2007-01-14  Bruno Haible  <bruno@clisp.org>
55547
55548         * modules/array-oset-tests: New file.
55549         * tests/test-array_oset.c: New file.
55550
55551 2007-01-14  Bruno Haible  <bruno@clisp.org>
55552
55553         * modules/array-list-tests: New file.
55554         * tests/test-array_list.c: New file.
55555
55556 2007-01-14  Bruno Haible  <bruno@clisp.org>
55557
55558         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55559         and make.
55560         Reported by Simon Josefsson in
55561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55562
55563 2007-01-14  Bruno Haible  <bruno@clisp.org>
55564
55565         * modules/allocsa-tests: New file.
55566         * tests/test-allocsa.c: New file.
55567
55568 2007-01-14  Bruno Haible  <bruno@clisp.org>
55569
55570         * modules/fchdir (Depends-on): Add absolute-header.
55571         * modules/unistd (Depends-on): Likewise.
55572
55573 2006-12-30  Bruno Haible  <bruno@clisp.org>
55574
55575         * modules/fchdir: New file.
55576         * modules/unistd (Files): Add lib/unistd_.h.
55577         (Makefile.am): Generate unistd.h from unistd_.h.
55578         * lib/fchdir.c: New file.
55579         * lib/dirent_.h: New file.
55580         * lib/unistd_.h: New file.
55581         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55582         * m4/fchdir.m4: New file.
55583         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55584         (gl_HEADER_UNISTD): Invoke it.
55585         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55586         function.
55587         * lib/backupfile.c (opendir, closedir): Undefine.
55588         * lib/chown.c (open, close): Undefine.
55589         * lib/clean-temp.c (open, close): Undefine.
55590         * lib/copy-file.c (open, close): Undefine.
55591         * lib/execute.c (open, close): Undefine.
55592         * lib/fsusage.c (open, close): Undefine.
55593         * lib/gc-gnulib.c (open, close): Undefine.
55594         * lib/getcwd.c (opendir, closedir): Undefine.
55595         * lib/glob.c (opendir, closedir): Undefine.
55596         * lib/javacomp.c (open, close): Undefine.
55597         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55598         * lib/openat-proc.c (open, close): Undefine.
55599         * lib/pagealign_alloc.c (open, close): Undefine.
55600         * lib/pipe.c (open, close): Undefine.
55601         * lib/progreloc.c (open, close): Undefine.
55602         * lib/savedir.c (opendir, closedir): Undefine.
55603         * lib/utime.c (open, close): Undefine.
55604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55605
55606 2007-01-10  Bruno Haible  <bruno@clisp.org>
55607
55608         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55609
55610 2007-01-12  Eric Blake  <ebb9@byu.net>
55611
55612         Provide a robust <wchar.h>.  Further simplifications are now
55613         possible in other modules, but not included here.
55614         * modules/wchar: New module.
55615         * m4/wchar.m4: New file.
55616         * lib/wchar_.h: Likewise.
55617         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55618         of the new module.
55619         * MODULES.html.sh (Extended multibyte and wide character utilities):
55620         New section.
55621
55622 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55623
55624         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55625         to a reasonable default for memory allocation.
55626         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55627         file system that reports garbage st_size values for symlinks.
55628         Problem reported by Liyang Hu.
55629
55630 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55631
55632         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55633         Emacs .#* auto-save files).
55634
55635 2007-01-11  Bruno Haible  <bruno@clisp.org>
55636
55637         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55638         directory.
55639
55640 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55641
55642         Use @...@ consistently in lib/wctype_.h.
55643         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55644         on it being set to 1 or 0.
55645         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55646         go back to AC_SUBSTing it.
55647         * modules/wctype (Makefile.am): Undo previous change.
55648
55649 2007-01-10  Eric Blake  <ebb9@byu.net>
55650
55651         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55652         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55653         * modules/wctype (Makefile.am): Likewise.
55654         Reported by Chris McGuire.
55655
55656 2007-01-10  Jim Meyering  <jim@meyering.net>
55657
55658         fts.c: a small readability/maintainability improvement
55659         * lib/fts.c (fts_read): Make this code slightly more readable and
55660         maintainable by hoisting the "sp->fts_cur = p" assignments to
55661         immediately follow the statements that set P.  Derived from
55662         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55663
55664 2007-01-10  Eric Blake  <ebb9@byu.net>
55665
55666         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55667         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55669         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55670         Reported by Chris McGuire.
55671
55672 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55673
55674         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55675         in sed script.
55676
55677 2007-01-09  Bruno Haible  <bruno@clisp.org>
55678
55679         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55680         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55681         variables.
55682         (func_module): Use them.
55683
55684 2007-01-09  Bruno Haible  <bruno@clisp.org>
55685
55686         * modules/unistr/base: New file.
55687         * lib/unistr.h: New file.
55688
55689         * modules/unistr/u8-to-u16: New file.
55690         * lib/unistr/u8-to-u16.c: New file.
55691
55692         * modules/unistr/u8-to-u32: New file.
55693         * lib/unistr/u8-to-u32.c: New file.
55694
55695         * modules/unistr/u16-to-u8: New file.
55696         * lib/unistr/u16-to-u8.c: New file.
55697
55698         * modules/unistr/u16-to-u32: New file.
55699         * lib/unistr/u16-to-u32.c: New file.
55700
55701         * modules/unistr/u32-to-u8: New file.
55702         * lib/unistr/u32-to-u8.c: New file.
55703
55704         * modules/unistr/u32-to-u16: New file.
55705         * lib/unistr/u32-to-u16.c: New file.
55706
55707         * modules/unistr/u8-check: New file.
55708         * modules/unistr/u16-check: New file.
55709         * modules/unistr/u32-check: New file.
55710         * lib/unistr/u8-check.c: New file.
55711         * lib/unistr/u16-check.c: New file.
55712         * lib/unistr/u32-check.c: New file.
55713
55714         * modules/unistr/u8-chr: New file.
55715         * modules/unistr/u16-chr: New file.
55716         * modules/unistr/u32-chr: New file.
55717         * lib/unistr/u8-chr.c: New file.
55718         * lib/unistr/u16-chr.c: New file.
55719         * lib/unistr/u32-chr.c: New file.
55720
55721         * modules/unistr/u8-cmp: New file.
55722         * modules/unistr/u16-cmp: New file.
55723         * modules/unistr/u32-cmp: New file.
55724         * lib/unistr/u8-cmp.c: New file.
55725         * lib/unistr/u16-cmp.c: New file.
55726         * lib/unistr/u32-cmp.c: New file.
55727
55728         * modules/unistr/u8-cpy: New file.
55729         * modules/unistr/u16-cpy: New file.
55730         * modules/unistr/u32-cpy: New file.
55731         * lib/unistr/u8-cpy.c: New file.
55732         * lib/unistr/u16-cpy.c: New file.
55733         * lib/unistr/u32-cpy.c: New file.
55734         * lib/unistr/u-cpy.h: New file.
55735
55736         * modules/unistr/u8-cpy-alloc: New file.
55737         * modules/unistr/u16-cpy-alloc: New file.
55738         * modules/unistr/u32-cpy-alloc: New file.
55739         * lib/unistr/u8-cpy-alloc.c: New file.
55740         * lib/unistr/u16-cpy-alloc.c: New file.
55741         * lib/unistr/u32-cpy-alloc.c: New file.
55742         * lib/unistr/u-cpy-alloc.h: New file.
55743
55744         * modules/unistr/u8-endswith: New file.
55745         * modules/unistr/u16-endswith: New file.
55746         * modules/unistr/u32-endswith: New file.
55747         * lib/unistr/u8-endswith.c: New file.
55748         * lib/unistr/u16-endswith.c: New file.
55749         * lib/unistr/u32-endswith.c: New file.
55750         * lib/unistr/u-endswith.h: New file.
55751
55752         * modules/unistr/u8-mblen: New file.
55753         * modules/unistr/u16-mblen: New file.
55754         * modules/unistr/u32-mblen: New file.
55755         * lib/unistr/u8-mblen.c: New file.
55756         * lib/unistr/u16-mblen.c: New file.
55757         * lib/unistr/u32-mblen.c: New file.
55758
55759         * modules/unistr/u8-mbtouc: New file.
55760         * modules/unistr/u16-mbtouc: New file.
55761         * modules/unistr/u32-mbtouc: New file.
55762         * lib/unistr/u8-mbtouc.c: New file.
55763         * lib/unistr/u16-mbtouc.c: New file.
55764         * lib/unistr/u32-mbtouc.c: New file.
55765
55766         * modules/unistr/u8-mbtouc-safe: New file.
55767         * modules/unistr/u16-mbtouc-safe: New file.
55768         * modules/unistr/u32-mbtouc-safe: New file.
55769         * lib/unistr/u8-mbtouc-safe.c: New file.
55770         * lib/unistr/u16-mbtouc-safe.c: New file.
55771         * lib/unistr/u32-mbtouc-safe.c: New file.
55772
55773         * modules/unistr/u8-move: New file.
55774         * modules/unistr/u16-move: New file.
55775         * modules/unistr/u32-move: New file.
55776         * lib/unistr/u8-move.c: New file.
55777         * lib/unistr/u16-move.c: New file.
55778         * lib/unistr/u32-move.c: New file.
55779         * lib/unistr/u-move.h: New file.
55780
55781         * modules/unistr/u8-next: New file.
55782         * modules/unistr/u16-next: New file.
55783         * modules/unistr/u32-next: New file.
55784         * lib/unistr/u8-next.c: New file.
55785         * lib/unistr/u16-next.c: New file.
55786         * lib/unistr/u32-next.c: New file.
55787
55788         * modules/unistr/u8-prev: New file.
55789         * modules/unistr/u16-prev: New file.
55790         * modules/unistr/u32-prev: New file.
55791         * lib/unistr/u8-prev.c: New file.
55792         * lib/unistr/u16-prev.c: New file.
55793         * lib/unistr/u32-prev.c: New file.
55794
55795         * modules/unistr/u8-set: New file.
55796         * modules/unistr/u16-set: New file.
55797         * modules/unistr/u32-set: New file.
55798         * lib/unistr/u8-set.c: New file.
55799         * lib/unistr/u16-set.c: New file.
55800         * lib/unistr/u32-set.c: New file.
55801         * lib/unistr/u-set.h: New file.
55802
55803         * modules/unistr/u8-startswith: New file.
55804         * modules/unistr/u16-startswith: New file.
55805         * modules/unistr/u32-startswith: New file.
55806         * lib/unistr/u8-startswith.c: New file.
55807         * lib/unistr/u16-startswith.c: New file.
55808         * lib/unistr/u32-startswith.c: New file.
55809         * lib/unistr/u-startswith.h: New file.
55810
55811         * modules/unistr/u8-stpcpy: New file.
55812         * modules/unistr/u16-stpcpy: New file.
55813         * modules/unistr/u32-stpcpy: New file.
55814         * lib/unistr/u8-stpcpy.c: New file.
55815         * lib/unistr/u16-stpcpy.c: New file.
55816         * lib/unistr/u32-stpcpy.c: New file.
55817         * lib/unistr/u-stpcpy.h: New file.
55818
55819         * modules/unistr/u8-stpncpy: New file.
55820         * modules/unistr/u16-stpncpy: New file.
55821         * modules/unistr/u32-stpncpy: New file.
55822         * lib/unistr/u8-stpncpy.c: New file.
55823         * lib/unistr/u16-stpncpy.c: New file.
55824         * lib/unistr/u32-stpncpy.c: New file.
55825         * lib/unistr/u-stpncpy.h: New file.
55826
55827         * modules/unistr/u8-strcat: New file.
55828         * modules/unistr/u16-strcat: New file.
55829         * modules/unistr/u32-strcat: New file.
55830         * lib/unistr/u8-strcat.c: New file.
55831         * lib/unistr/u16-strcat.c: New file.
55832         * lib/unistr/u32-strcat.c: New file.
55833         * lib/unistr/u-strcat.h: New file.
55834
55835         * modules/unistr/u8-strchr: New file.
55836         * modules/unistr/u16-strchr: New file.
55837         * modules/unistr/u32-strchr: New file.
55838         * lib/unistr/u8-strchr.c: New file.
55839         * lib/unistr/u16-strchr.c: New file.
55840         * lib/unistr/u32-strchr.c: New file.
55841
55842         * modules/unistr/u8-strcmp: New file.
55843         * modules/unistr/u16-strcmp: New file.
55844         * modules/unistr/u32-strcmp: New file.
55845         * lib/unistr/u8-strcmp.c: New file.
55846         * lib/unistr/u16-strcmp.c: New file.
55847         * lib/unistr/u32-strcmp.c: New file.
55848
55849         * modules/unistr/u8-strcpy: New file.
55850         * modules/unistr/u16-strcpy: New file.
55851         * modules/unistr/u32-strcpy: New file.
55852         * lib/unistr/u8-strcpy.c: New file.
55853         * lib/unistr/u16-strcpy.c: New file.
55854         * lib/unistr/u32-strcpy.c: New file.
55855         * lib/unistr/u-strcpy.h: New file.
55856
55857         * modules/unistr/u8-strcspn: New file.
55858         * modules/unistr/u16-strcspn: New file.
55859         * modules/unistr/u32-strcspn: New file.
55860         * lib/unistr/u8-strcspn.c: New file.
55861         * lib/unistr/u16-strcspn.c: New file.
55862         * lib/unistr/u32-strcspn.c: New file.
55863         * lib/unistr/u-strcspn.h: New file.
55864
55865         * modules/unistr/u8-strdup: New file.
55866         * modules/unistr/u16-strdup: New file.
55867         * modules/unistr/u32-strdup: New file.
55868         * lib/unistr/u8-strdup.c: New file.
55869         * lib/unistr/u16-strdup.c: New file.
55870         * lib/unistr/u32-strdup.c: New file.
55871         * lib/unistr/u-strdup.h: New file.
55872
55873         * modules/unistr/u8-strlen: New file.
55874         * modules/unistr/u16-strlen: New file.
55875         * modules/unistr/u32-strlen: New file.
55876         * lib/unistr/u8-strlen.c: New file.
55877         * lib/unistr/u16-strlen.c: New file.
55878         * lib/unistr/u32-strlen.c: New file.
55879         * lib/unistr/u-strlen.h: New file.
55880
55881         * modules/unistr/u8-strmblen: New file.
55882         * modules/unistr/u16-strmblen: New file.
55883         * modules/unistr/u32-strmblen: New file.
55884         * lib/unistr/u8-strmblen.c: New file.
55885         * lib/unistr/u16-strmblen.c: New file.
55886         * lib/unistr/u32-strmblen.c: New file.
55887
55888         * modules/unistr/u8-strmbtouc: New file.
55889         * modules/unistr/u16-strmbtouc: New file.
55890         * modules/unistr/u32-strmbtouc: New file.
55891         * lib/unistr/u8-strmbtouc.c: New file.
55892         * lib/unistr/u16-strmbtouc.c: New file.
55893         * lib/unistr/u32-strmbtouc.c: New file.
55894
55895         * modules/unistr/u8-strncat: New file.
55896         * modules/unistr/u16-strncat: New file.
55897         * modules/unistr/u32-strncat: New file.
55898         * lib/unistr/u8-strncat.c: New file.
55899         * lib/unistr/u16-strncat.c: New file.
55900         * lib/unistr/u32-strncat.c: New file.
55901         * lib/unistr/u-strncat.h: New file.
55902
55903         * modules/unistr/u8-strncmp: New file.
55904         * modules/unistr/u16-strncmp: New file.
55905         * modules/unistr/u32-strncmp: New file.
55906         * lib/unistr/u8-strncmp.c: New file.
55907         * lib/unistr/u16-strncmp.c: New file.
55908         * lib/unistr/u32-strncmp.c: New file.
55909
55910         * modules/unistr/u8-strncpy: New file.
55911         * modules/unistr/u16-strncpy: New file.
55912         * modules/unistr/u32-strncpy: New file.
55913         * lib/unistr/u8-strncpy.c: New file.
55914         * lib/unistr/u16-strncpy.c: New file.
55915         * lib/unistr/u32-strncpy.c: New file.
55916         * lib/unistr/u-strncpy.h: New file.
55917
55918         * modules/unistr/u8-strnlen: New file.
55919         * modules/unistr/u16-strnlen: New file.
55920         * modules/unistr/u32-strnlen: New file.
55921         * lib/unistr/u8-strnlen.c: New file.
55922         * lib/unistr/u16-strnlen.c: New file.
55923         * lib/unistr/u32-strnlen.c: New file.
55924         * lib/unistr/u-strnlen.h: New file.
55925
55926         * modules/unistr/u8-strpbrk: New file.
55927         * modules/unistr/u16-strpbrk: New file.
55928         * modules/unistr/u32-strpbrk: New file.
55929         * lib/unistr/u8-strpbrk.c: New file.
55930         * lib/unistr/u16-strpbrk.c: New file.
55931         * lib/unistr/u32-strpbrk.c: New file.
55932         * lib/unistr/u-strpbrk.h: New file.
55933
55934         * modules/unistr/u8-strrchr: New file.
55935         * modules/unistr/u16-strrchr: New file.
55936         * modules/unistr/u32-strrchr: New file.
55937         * lib/unistr/u8-strrchr.c: New file.
55938         * lib/unistr/u16-strrchr.c: New file.
55939         * lib/unistr/u32-strrchr.c: New file.
55940
55941         * modules/unistr/u8-strspn: New file.
55942         * modules/unistr/u16-strspn: New file.
55943         * modules/unistr/u32-strspn: New file.
55944         * lib/unistr/u8-strspn.c: New file.
55945         * lib/unistr/u16-strspn.c: New file.
55946         * lib/unistr/u32-strspn.c: New file.
55947         * lib/unistr/u-strspn.h: New file.
55948
55949         * modules/unistr/u8-strstr: New file.
55950         * modules/unistr/u16-strstr: New file.
55951         * modules/unistr/u32-strstr: New file.
55952         * lib/unistr/u8-strstr.c: New file.
55953         * lib/unistr/u16-strstr.c: New file.
55954         * lib/unistr/u32-strstr.c: New file.
55955         * lib/unistr/u-strstr.h: New file.
55956
55957         * modules/unistr/u8-strtok: New file.
55958         * modules/unistr/u16-strtok: New file.
55959         * modules/unistr/u32-strtok: New file.
55960         * lib/unistr/u8-strtok.c: New file.
55961         * lib/unistr/u16-strtok.c: New file.
55962         * lib/unistr/u32-strtok.c: New file.
55963         * lib/unistr/u-strtok.h: New file.
55964
55965         * modules/unistr/u8-uctomb: New file.
55966         * modules/unistr/u16-uctomb: New file.
55967         * modules/unistr/u32-uctomb: New file.
55968         * lib/unistr/u8-uctomb.c: New file.
55969         * lib/unistr/u16-uctomb.c: New file.
55970         * lib/unistr/u32-uctomb.c: New file.
55971
55972         * MODULES.html.sh (Unicode string functions): Add the new modules.
55973
55974 2007-01-08  Bruno Haible  <bruno@clisp.org>
55975
55976         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55977         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55978         subdirectories.
55979
55980 2007-01-08  Karl Berry  <karl@gnu.org>
55981
55982         * doc/error.texi: mention that main() fns must set program_name
55983         when progname is used.
55984
55985 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55986
55987         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55988         WCTYPE_H is empty, for the benefit of builds from non-distclean
55989         directories.  Problem reported by Eric Blake in
55990         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55991
55992 2007-01-08  Bruno Haible  <bruno@clisp.org>
55993
55994         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55995         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55996         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55997         PROVIDE_CANONICALIZE_FILENAME_MODE.
55998         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55999
56000 2007-01-08  Bruno Haible  <bruno@clisp.org>
56001
56002         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56003         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56004         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56005         * lib/fts.c: Likewise.
56006         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56007
56008 2006-12-25  Bruno Haible  <bruno@clisp.org>
56009
56010         * modules/utf8-ucs4-safe: New file.
56011         * lib/utf8-ucs4-safe.h: New file.
56012         * lib/unistr/utf8-ucs4-safe.c: New file.
56013
56014         * modules/utf16-ucs4-safe: New file.
56015         * lib/utf16-ucs4-safe.h: New file.
56016         * lib/unistr/utf16-ucs4-safe.c: New file.
56017
56018         * MODULES.html.sh (Unicode string functions): Add the new modules.
56019
56020 2007-01-08  Bruno Haible  <bruno@clisp.org>
56021
56022         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56023         (Depends-on): Add unitypes.
56024         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56025         (u8_mbtouc_aux): Move out to separate file.
56026         (u8_mbtouc): Use ucs4_t, uint8_t types.
56027         * lib/unistr/utf8-ucs4.c: New file.
56028
56029         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56030         (Depends-on): Add unitypes.
56031         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56032         (u16_mbtouc_aux): Move out to separate file.
56033         (u16_mbtouc): Use ucs4_t, uint16_t types.
56034         * lib/unistr/utf16-ucs4.c: New file.
56035
56036         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56037         (Depends-on): Add unitypes.
56038         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56039         (u8_uctomb_aux): Move out to separate file.
56040         (u8_uctomb): Use ucs4_t, uint8_t types.
56041         * lib/unistr/ucs4-utf8.c: New file.
56042
56043         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56044         (Depends-on): Add unitypes.
56045         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56046         (u16_uctomb_aux): Move out to separate file.
56047         (u16_uctomb): Use ucs4_t, uint16_t types.
56048         * lib/unistr/ucs4-utf16.c: New file.
56049
56050 2006-12-25  Bruno Haible  <bruno@clisp.org>
56051
56052         * modules/unitypes: New file.
56053         * lib/unitypes.h: New file.
56054         * MODULES.html.sh (func_all_modules): New section "Unicode string
56055         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56056         this section. Add unitypes.
56057
56058 2007-01-08  Bruno Haible  <bruno@clisp.org>
56059
56060         Avoid variable names that conflict with those from libtool.
56061         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56062         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56063         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56064         library_names_spec to acl_library_names_spec, hardcode_* to
56065         acl_hardcode_*.
56066         Reported by Ralf Wildenhues.
56067
56068 2007-01-08  Bruno Haible  <bruno@clisp.org>
56069
56070         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56071         definition.
56072         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56073         definition.
56074         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56075         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56076         definition.
56077         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56078         definition.
56079         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56080         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56081         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56082         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56083         definition.
56084         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56085         definition.
56086         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56087         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56088         GC_USE_<algorithm>.
56089         * lib/gc-libgcrypt.c: Likewise.
56090         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56091         * modules/gc-arctwo (configure.ac): Likewise.
56092         * modules/gc-des (configure.ac): Likewise.
56093         * modules/gc-hmac-md5 (configure.ac): Likewise.
56094         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56095         * modules/gc-md2 (configure.ac): Likewise.
56096         * modules/gc-md4 (configure.ac): Likewise.
56097         * modules/gc-md5 (configure.ac): Likewise.
56098         * modules/gc-random (configure.ac): Likewise.
56099         * modules/gc-rijndael (configure.ac): Likewise.
56100         * modules/gc-sha1 (configure.ac): Likewise.
56101
56102 2007-01-08  Bruno Haible  <bruno@clisp.org>
56103
56104         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56105         macro definition.
56106         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56107         definition.
56108         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56109         definition.
56110         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56111         * modules/fcntl-safer (configure.ac): Likewise.
56112         * modules/fopen-safer (configure.ac): Likewise.
56113         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56114         GNULIB_FWRITEERROR macro definition.
56115
56116 2007-01-08  Bruno Haible  <bruno@clisp.org>
56117
56118         * m4/gnulib-common.m4: New file.
56119         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56120         (func_get_filelist): Add m4/gnulib-common.m4.
56121
56122 2007-01-08  Bruno Haible  <bruno@clisp.org>
56123
56124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56125         command.
56126
56127 2007-01-08  Jim Meyering  <jim@meyering.net>
56128
56129         Use a more robust test for a "can't happen" condition.
56130         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56131         narrowed the st_size value.  Presuming the "can't happen" condition
56132         is true, that narrowing could conceivably convert an invalid st_size
56133         value into a valid one.  Instead, use a change based on Matthew
56134         Woehlke's original patch.
56135
56136         Slight readability improvement: use an assert-like macro
56137         in place of literal "abort ()" uses.
56138         * lib/fts.c (fts_assert): Define.
56139         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56140         Use this macro instead of a bare 'abort'.
56141
56142 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56143
56144         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56145         simply work around them.
56146         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56147         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56148         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56149         declaring.
56150         Don't bother to define as macros, since the standard doesn't require it.
56151         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56152         longer worry about IRIX 5.3.
56153         (HAVE_WCTYPE_CTMP_BUG): Remove.
56154
56155 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56156
56157         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56158         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56159         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56160         Problems reported by Georg Schwarz for IRIX 5.3.
56161
56162         * gnulib-tool (autoconf_minversion): Take the maximum version number
56163         found, not the minimum.  Problem reported by James Youngman.
56164
56165 2007-01-03  Karl Berry  <karl@gnu.org>
56166
56167         * doc/error.texi: new file, explaining interaction with progname.
56168         * doc/gnulib.texi: include it.  Update copyright.
56169
56170 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56171
56172         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56173         AC_CANONICAL_HOST, to improve autobuild outputs.
56174
56175 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56176             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56177
56178         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56179         sockets, server sockets, and other file descriptors.  Count errors
56180         to compute the return value.  Reorder the code a bit to be easier
56181         to follow.  Don't set event bits that were not requested (except
56182         POLLERR and POLLHUP).
56183
56184 2007-01-01  Bruno Haible  <bruno@clisp.org>
56185
56186         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56187
56188 2007-01-03  Jim Meyering  <jim@meyering.net>
56189
56190         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56191
56192 2007-01-02  Bruno Haible  <bruno@clisp.org>
56193
56194         * modules/settime (Include): Require timespec.h.
56195         * modules/nanosleep (Include): Likewise.
56196
56197 2007-01-01  Bruno Haible  <bruno@clisp.org>
56198
56199         * gnulib-tool (func_emit_copyright_notice): Bump year.
56200         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56201
56202 2007-01-01  Bruno Haible  <bruno@clisp.org>
56203
56204         Improve support for OpenBSD.
56205         * build-aux/config.rpath (libname_spec): Export.
56206         (library_names_spec): New variable. Export.
56207         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56208         library_names_spec from the config.rpath output. Locate shared library
56209         through the name pattern in library_names_spec.
56210
56211 2007-01-01  Eric Blake  <ebb9@byu.net>
56212
56213         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56214
56215 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56216
56217         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56218         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56219         assume the C locale, and avoid an "eval" that could cause trouble.
56220         Problem with SORT reported by Bob Proulx.
56221
56222         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56223         Define.  Trivial patch from Henning Nielsen Lund, originally
56224         sent to bug-grep@gnu.org today.
56225
56226 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56227
56228         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56229         struct stat.  Problem reported by Henning Nielsen Lund.
56230         * lib/acl.c: Include acl.h first, to check interface.  Don't
56231         bother to include sys/types.h and sys/stat.h again.
56232
56233 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56234
56235         Import the following change from libc; problem reported by
56236         Sven Verdoolaege.
56237
56238         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56239
56240         [BZ #1373]
56241         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56242
56243 2006-12-28  Jim Meyering  <jim@meyering.net>
56244
56245         * build-aux/announce-gen: Do not assume that the package
56246         builds any of tar.gz, tar.bz2, and .xdelta files.
56247         Suggestion from Simon Josefsson.
56248
56249 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56250
56251         * modules/announce-gen: New file.
56252
56253 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56256         handles its gotchas now.
56257         * lib/mbswidth.c: Likewise.
56258         * lib/wcwidth.h: Likewise.
56259         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56260         and iswcntrl; the wctype module does this stuff now.
56261         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56263         * modules/mbchar (Depends-on): Add wctype.
56264         * modules/mbswidth (Depends-on): Likewise.
56265         * modules/wcwidth (Depends-on): Likewise.
56266
56267 2006-12-27  Eric Blake  <ebb9@byu.net>
56268
56269         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56270         module uses more than what <wctype.h> is required to provide.
56271
56272 2006-12-26  Eric Blake  <ebb9@byu.net>
56273
56274         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56275
56276 2006-12-26  Eric Blake  <ebb9@byu.net>
56277
56278         * modules/absolute-header: New module.
56279         * modules/fcntl (Depends-on): Depend on it.
56280         * modules/inttypes (Depends-on): Likewise.
56281         * modules/stdint (Depends-on): Likewise.
56282         * modules/sys_stat (Depends-on): Likewise.
56283         * modules/wctype (Depends-on): Likewise.
56284         * MODULES.html.sh (Support for building libraries and
56285         executables): Document it.
56286
56287 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         * gnulib-tool (SED): Remove, undoing previous change.
56290         The problem was that it broke coreutils on Solaris, because
56291         "sed --posix" leaked into a makefile.
56292         (sed): New alias, if 'alias' and GNU sed.
56293
56294 2006-12-24  Jim Meyering  <jim@meyering.net>
56295
56296         Work around an fchownat bug in glibc-2.4:
56297         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56298         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56299         in spite of the -P option.
56300         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56301         New macros.
56302         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56303         * modules/openat (Files): Add lib/fchownat.c.
56304         * lib/openat.c (fchownat): Don't define here.  Move to...
56305         * lib/fchownat.c: ...this new file.
56306
56307 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56308
56309         Fix bug reported by Bruno Haible in
56310         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56311         where quotearg.c didn't compile on Mac OS X 10.2 because it
56312         lacks <wchar.h> and wint_t.
56313         * lib/wctype_.h (__wctype_wint_t): New type.
56314         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56315         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56316         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56317         Arg is now of type __wctype_wint_t, not wint_t.
56318         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56319         substitute HAVE_WINT_T.
56320         * modules/wctype (Files): Add m4/wint_t.m4.
56321         (wctype.h): Substitute HAVE_WINT_T.
56322
56323 2006-12-23  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56326
56327 2006-12-23  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56330         S_ISLNK.
56331         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56332         mingw.
56333
56334 2006-12-22  Bruno Haible  <bruno@clisp.org>
56335
56336         * lib/copy-file.c: Include acl.h.
56337         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56338         Close the file descriptors only after being done with copy_acl.
56339         * modules/copy-file (Depends-on): Add acl.
56340
56341 2006-12-22  Bruno Haible  <bruno@clisp.org>
56342
56343         * gnulib-tool (SED): New variable.
56344         Use $SED instead of sed everywhere.
56345
56346 2006-12-22  Bruno Haible  <bruno@clisp.org>
56347
56348         * modules/no-c++: New file.
56349         * m4/no-c++.m4: New file.
56350         * MODULES.html.sh (Support for building libraries and executables):
56351         Add no-c++.
56352
56353 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56354
56355         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56356         Include <limits.h>, and use its INT_MAX to rewrite the
56357         j loop so that it does not overflow 'int'.  Problem reported by
56358         Ralf Wildenhues in
56359         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56360         Play it safe by shifting left by 1 rather than multiplying by 2,
56361         as GCC is less likely to optimize this away when the value
56362         is signed (when it assumes overflow leads to undefined behavior).
56363         Also, don't assume time_t uses two's complement.
56364
56365 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56366
56367         * MODULES.html.sh: New module wctype.
56368         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56369         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56370         <wctype.h>, since the new wctype module should fix this.
56371         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56372         the wctype module should arrange for it.
56373         * lib/regex_internal.h: Likewise.
56374         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56375         since the wctype module should handle this now.
56376         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56377         * modules/fnmatch (Depends-on): Add wctype.
56378         * modules/quotearg (Depends-on): Likewise.
56379         * modules/regex (Depends-on): Likewise.
56380
56381 2006-12-19  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56384         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56385
56386 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56387
56388         * modules/savewd (Depends-on): Fix dependency on fcntl.
56389
56390 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56391
56392         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56393         conforms to C99, rather than relying on the user's environment
56394         setting of STDINT_H.
56395
56396 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56397         and Eric Blake  <ebb9@byu.net>
56398
56399         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56400         This is more consistent with the other defines here.
56401         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56402         Port to z/OS.  Problem reported by Paul Gilmartin.
56403         Change local vars to use gl_ prefix rather than ac_.
56404         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56405         with other defines.
56406         * modules/double-slash-root: New module.
56407         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56408         (Depends-on): Add double-slash-root.
56409         * MODULES.html.sh (File system functions): Mention new module.
56410
56411 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56412
56413         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56414         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56415         This is for the benefit of gzip, which doesn't do i18n.
56416
56417 2006-12-12  Jim Meyering  <jim@meyering.net>
56418
56419         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56420         Reported by Andreas Schwab <schwab@suse.de>.
56421
56422 2006-12-12  Bruno Haible  <bruno@clisp.org>
56423
56424         Merge these changes.
56425         2006-09-05  Bruno Haible  <bruno@clisp.org>
56426         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56427         iconv_alloc succeeded.
56428         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56429         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56430         test for " && dest " at the end - dest is always != NULL there. Call
56431         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56432         with 2xNULL arguments, also to flush the state storage. Handle the
56433         IRIX iconv behaviour. Realloc the final result, to throw away unused
56434         memory.
56435
56436 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56439         and fchmodat unconditionally, since glibc 2.4 has them.
56440         Problem reported by Arkadiusz Miskiewicz.
56441
56442 2006-12-10  Bruno Haible  <bruno@clisp.org>
56443
56444         * gnulib-tool (func_import): Show the include files only for those
56445         modules that are copied and specified.
56446         Reported by Karl Berry.
56447
56448 2006-12-08  Jim Meyering  <jim@meyering.net>
56449
56450         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56451         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56452
56453         * build-aux/announce-gen: Add two new options, both optional:
56454         --bootstrap-tools=TOOL_LIST
56455               a comma-separated list of tools, e.g.,
56456               autoconf,automake,bison,gnulib
56457         --gnulib-snapshot-date=DATE
56458               if gnulib is in the bootstrap tool list,
56459               then report this as the snapshot date.
56460               If not specified, use the current date/time.
56461               If you specify a date here, be sure it's UTC.
56462
56463 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56464
56465         * tests/test-argp-2.sh: Fix test to match actual output.
56466         (func_compare): Fix sed script to be portable.
56467
56468 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56469
56470         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56471         workaround for this case.  It is not autoconfigured now; offhand
56472         it's hard to see how to autoconfigure it.
56473
56474 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56477         a directory that is about to be chowned.  Such a directory's
56478         initial file permissions should permit the owner only and this
56479         should not be changed until after the chown, since the group and
56480         other bits would be incorrect if they granted permission before
56481         the chown.
56482
56483         Fix porting problem for iswctype reported by Georg Schwarz in:
56484         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56485         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56486         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56488         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56489
56490 2006-12-03  Jim Meyering  <jim@meyering.net>
56491
56492         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56493         p->fts_statp may not yet be defined.
56494         (fts_read): Instead, set it in the caller, once p->fts_statp is
56495         sure to be defined, and corresponds to a top-level directory.
56496         This bug made du -x fail.  Here's the coreutils test case:
56497         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56498         Reported by Mike Frysinger.
56499
56500 2006-12-01  Jim Meyering  <jim@meyering.net>
56501
56502         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56503         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56504         Reported by Simon Josefsson.
56505
56506 2006-11-30  Jim Meyering  <jim@meyering.net>
56507
56508         * m4/warning.m4: Use the all-permissive copyright notice
56509         recommended by RMS (rather than LGPL).
56510         * m4/vararrays.m4: Likewise.
56511         * m4/flexmember.m4: Likewise.
56512
56513 2006-11-29  Bruno Haible  <bruno@clisp.org>
56514
56515         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56516         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56517         using +=.
56518         Reported by Simon Josefsson <simon@josefsson.org>.
56519
56520 2006-11-28  James Youngman <jay@gnu.org>
56521
56522         * README: Advise users that they might find the bug-gnulib@gnu.org
56523         and autotools-announce@gnu.org mailing lists useful.
56524
56525 2006-11-28  Bruno Haible  <bruno@clisp.org>
56526
56527         * m4/ptrdiff_max.m4: Remove file.
56528
56529 2006-11-21  Bruno Haible  <bruno@clisp.org>
56530
56531         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56532         _AC_COMPUTE_INT.
56533         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56534         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56535         _AC_COMPUTE_INT.
56536         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56537         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56538         _AC_COMPUTE_INT.
56539         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56540
56541 2006-11-28  Jim Meyering  <jim@meyering.net>
56542
56543         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56544         warning from "gcc -Wshadow" about shadowing the builtin.
56545
56546 2006-11-27  Bruno Haible  <bruno@clisp.org>
56547
56548         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56549         _AC_COMPUTE_INT.
56550         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56551
56552 2006-11-27  Bruno Haible  <bruno@clisp.org>
56553             Paul Eggert  <eggert@cs.ucla.edu>
56554
56555         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56556
56557 2006-11-26  Bruno Haible  <bruno@clisp.org>
56558
56559         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56560         noinst_LTLIBRARIES.
56561
56562 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56563             Bruno Haible  <bruno@clisp.org>
56564
56565         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56566         if compiling with "gcc -ansi".
56567
56568 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56569
56570         Fix some incompatibilities with gcc -ansi -pedantic.
56571         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56572         if compiling pedantically with GCC, unless it's C99 or later.
56573         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56574         it mishandles gcc -ansi -pedantic as well.
56575         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56576         if gcc -pedantic.
56577         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56578         initializers for struct if -pedantic, unless it's C99 or later.
56579
56580 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56581
56582         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56583         Don't close an fd more than once. Identical atimes indicate
56584         success, not failure.
56585
56586 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56587
56588         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56589
56590 2006-11-23  Jim Meyering  <jim@meyering.net>
56591
56592         * build-aux/announce-gen: New file.  From coreutils.
56593
56594 2006-11-22  Jim Meyering  <jim@meyering.net>
56595
56596         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56597         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56598         (fts_read): Use a temporary to narrow the overused st_size member
56599         before using it in a switch statement.  Reported by Matthew Woehlke.
56600
56601         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56602         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56603
56604 2006-11-20  Bruno Haible  <bruno@clisp.org>
56605
56606         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56607         changequote instead of pairs of brackets.
56608         Reported by Andreas Schwab <schwab@suse.de>.
56609
56610 2006-11-21  Jim Meyering  <jim@meyering.net>
56611
56612         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56613         so as to remain compatible with older compilers.
56614         Patch from Michael Deutschmann.
56615
56616 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56617
56618         * MODULES.html.sh (File system functions): Add openat.
56619
56620         * lib/openat.h (rpl_fstatat): New macro, if
56621         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56622         (fstatat): Define to rpl_fstatat under the same conditions,
56623         unless COMPILING_FSTATAT.
56624         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56625         seems to have the bug.
56626         * lib/fstatat.c: New file.
56627         * modules/openat (Files): Add it.
56628
56629 2006-11-20  Bruno Haible  <bruno@clisp.org>
56630
56631         * Makefile: New file.
56632
56633 2006-11-20  Jim Meyering  <jim@meyering.net>
56634
56635         The beginnings of syntax-related checks for gnulib.
56636         * lib/Makefile: New file.
56637         * lib/t-idcache: New script.  Ensure that the two halves of
56638         idcache.c stay in sync.
56639
56640         * lib/idcache.c: Adjust comments in user- and group- portions to
56641         be more accurate, and to be consistent with one another.
56642
56643 2006-11-20  Jim Meyering  <jim@meyering.net>
56644
56645         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56646         continue using the flexible array member (thus, this module performs
56647         half as many malloc calls), with the addition that...
56648         (getgroup, getuser): Consistently record a non-match via an empty
56649         "name" string, and map an empty string match to a NULL return value.
56650         * modules/idcache (Depends-on): Re-add flexmember.
56651
56652         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56653         (getuidbyname, getgroup, getgidbyname): Likewise.
56654
56655         Use cleaner syntax: NULL rather than 0.
56656         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56657
56658 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56659
56660         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56661         It mishandled the case where the group was missing.
56662         Problem reported by Greg Schafer.
56663         * modules/idcache: Likewise.
56664
56665 2006-11-18  Jim Meyering  <jim@meyering.net>
56666
56667         * check-module (%exempt_header): Add exception for some
56668         conditionally-included headers.
56669
56670         * modules/i-ring (Depends-on): Add verify.
56671         (License): Change to LGPL.
56672
56673 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56674
56675         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56676         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56677         and inttostr.h.  Use snprintf rather than uinttostr, so that
56678         LGPLed code doesn't depend on GPLed.
56679
56680 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56681
56682         * modules/inline (License): Change from GPL to LGPL.
56683
56684 2006-11-17  Jim Meyering  <jim@meyering.net>
56685
56686         * modules/d-type (License): Switch to LGPL.
56687
56688 2006-11-15  Bruno Haible  <bruno@clisp.org>
56689
56690         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56691
56692 2006-11-15  Eric Blake  <ebb9@byu.net>
56693
56694         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56695         the module dependency.
56696
56697 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56698             Bruno Haible  <bruno@clisp.org>
56699
56700         * gnulib-tool (func_create_testdir): Add license consistency check.
56701
56702 2006-11-15  Eric Blake  <ebb9@byu.net>
56703
56704         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56705         random "(cached)" in configure output.
56706
56707 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56708
56709         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56710         test for conforming inttypes.h is both announced and cached.
56711
56712         * MODULES.html.sh (seen_modules, seen_files): New variables.
56713         (func_module): Rewrite to use a few less gnulib-tool and sed
56714         invocations.  Avoid a couple of quadratic algorithms for ...
56715         (missed_modules, missed_files): ... these, with ...
56716         (func_append, func_tmpdir): ... these new functions, from
56717         gnulib-tool.  Analogously, install traps for cleanup.
56718
56719         * tests/test-gc.c (main): Remove unused variables.
56720         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56721
56722 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56723
56724         * modules/inttostr (License): Change to LGPL.
56725
56726 2006-11-14  Eric Blake  <ebb9@byu.net>
56727
56728         * modules/tempname (License): Change to LGPL.
56729
56730 2006-11-14  Eric Blake  <ebb9@byu.net>
56731
56732         * doc/functions.texi (Function Portability): *printf functions on
56733         Cygwin now understand all POSIX size specifiers.
56734
56735 2006-11-14  Bruno Haible  <bruno@clisp.org>
56736
56737         * modules/c-ctype (License): Change to LGPL.
56738
56739 2006-11-12  Bruno Haible  <bruno@clisp.org>
56740
56741         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56742         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56743         for GNOME libraries, for which the include files are installed in
56744         subdirectories of $prefix/include.
56745
56746 2006-11-12  Bruno Haible  <bruno@clisp.org>
56747
56748         * m4/lib-link.m4: Require at least autoconf-2.54.
56749         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56750         name to underscores for the --with option.
56751
56752 2006-11-13  Bruno Haible  <bruno@clisp.org>
56753
56754         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56755         the tests directory.
56756         Reported by Ralf Wildenhues.
56757
56758 2006-11-13  Bruno Haible  <bruno@clisp.org>
56759
56760         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56761         (func_emit_initmacro_end): Undo the override here.
56762         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56763         Works around the famous automake error in coreutils.
56764
56765 2006-11-13  Eric Blake  <ebb9@byu.net>
56766
56767         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56768         element, not its node.
56769
56770 2006-11-12  Bruno Haible  <bruno@clisp.org>
56771
56772         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56773         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56774
56775 2006-11-12  Bruno Haible  <bruno@clisp.org>
56776
56777         * gnulib-tool: New option --local-symlink.
56778         (func_usage): Document it.
56779         (lsymbolic): New variable.
56780         (func_import, func_create_testdir): If --symlink was not specified,
56781         test whether --local-symlink was specified and the file comes from
56782         the local_gnulib_dir.
56783
56784 2006-11-12  Bruno Haible  <bruno@clisp.org>
56785
56786         * gnulib-tool (func_ln): New function.
56787         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56788
56789 2006-11-12  Bruno Haible  <bruno@clisp.org>
56790
56791         Finish support for source files in subdirectories.
56792         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56793         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56794         AUTOMAKE_OPTIONS.
56795         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56796
56797 2006-11-12  Bruno Haible  <bruno@clisp.org>
56798
56799         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56800         EXTRA_lib_SOURCES augmentation.
56801         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56802
56803 2006-11-12  Jim Meyering  <jim@meyering.net>
56804
56805         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56806         file descriptors.  This also averts a failure on systems with
56807         native openat support when a traversed directory lacks "x" access.
56808         * lib/fts_.h: Include "i-ring.h"
56809         (struct FTS) [fts_fd_ring]: New member.
56810         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56811         (FCHDIR): Add parentheses.
56812         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56813         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56814         When descending, rather than simply closing the previous
56815         fts_cwd_fd value, push that file descriptor onto the ring.
56816         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56817         (fts_open): Initialize the new fd_ring member.
56818         (fts_close): Clear the ring.
56819         (fts_safe_changedir): When possible, use our new fd_ring to skip
56820         the diropen and fstat and dev/ino comparison that would normally
56821         accompany a virtual `chdir ("..")'.
56822
56823         * modules/fts (Depends-on): Add i-ring.
56824         * modules/i-ring: New module.
56825         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56826         * m4/i-ring.m4: New file.
56827
56828 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56829
56830         * gnulib-tool (func_create_testdir): Fix replacement of
56831         `build-aux' in configure.ac.  Run autotools in gltests
56832         subdirectory.
56833         (func_create_testdir, func_create_megatestdir, test): There is
56834         no need for '--force' in most autotool invocations in a new
56835         tree.  Actually fail the whole test if any of the tools, or the
56836         configure or make stages fail.
56837
56838         Sync from Automake.
56839         * build-aux/gnupload: Revert last change.  Add pointer to upload
56840         instructions of the GNU Maintenance Instructions.
56841         Suggestion by Karl Berry.
56842
56843 2006-11-10  Jim Meyering  <jim@meyering.net>
56844
56845         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56846
56847 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56848
56849         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56850         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56851         (bind_textdomain_codeset) [! ENABLE_NLS]:
56852         Evaluate all the arguments.  That way, callers get compatible behavior
56853         if the arguments have side effects.  Also, it avoids some GCC
56854         diagnostics in some cases; Joel E. Denny reported problems when Bison
56855         was configured with --enable-gcc-warnigs.
56856
56857 2006-11-10  Jim Meyering  <jim@meyering.net>
56858
56859         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56860         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56861         account.
56862
56863 2006-11-10  Jim Meyering  <jim@meyering.net>
56864
56865         * modules/inline: New file/module.
56866         * modules/xalloc (Files): Remove m4/inline.m4.
56867         (Depends-on): Add inline, instead.
56868         * modules/oset: Likewise.
56869         * modules/list: Likewise.
56870
56871 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56872
56873         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56874         Problem reported by Matthew Woehlke.
56875
56876 2006-11-09  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/tempname.c (gen_tempname): Remove variant that invokes
56879         __gen_tempname.
56880         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56881         __gen_tempname.
56882
56883 2006-11-08  Bruno Haible  <bruno@clisp.org>
56884
56885         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56886         to 'yes' instead of 'cross-compiling'.
56887
56888 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         * lib/quotearg.h (quotearg_free): New decl.
56891         * lib/quotearg.c (quotearg_free): New function.
56892         (slot0, nslots, slotvec0, slotvec):
56893         Now file-scope so that quotearg_free can get at them.
56894
56895 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56896
56897         Sync from Automake.
56898         * build-aux/gnupload: Add missing 'gnu' to example URL.
56899         Report by Karl Berry.
56900
56901 2006-11-08  Bruno Haible  <bruno@clisp.org>
56902
56903         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56904         Suggested by Paul Eggert.
56905
56906 2006-11-08  Jim Meyering  <jim@meyering.net>
56907
56908         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56909         It's already included if !_LIBC.
56910         (fts_safe_changedir): Add a comment.
56911
56912 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56913
56914         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56915         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56916         Matthew Woehlke.
56917
56918         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56919         definitions up, to avoid colliding with change below.
56920         (static_inline) [HAVE_INLINE]: New macro.
56921         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56922         Provide extern decls when !HAVE_INLINE.  Do not define unless
56923         static_inline is defined, either by us or by xmalloc.c.  Use
56924         static_inline rather than static inline.
56925         (XCALLOC): Optimize sizeof(T) = 1 case.
56926         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56927
56928 2006-11-07  Bruno Haible  <bruno@clisp.org>
56929
56930         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56931         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56932         AC_C_INLINE.
56933         * modules/xalloc (Files): Add m4/inline.m4.
56934
56935 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56936
56937         * README: Fix typo.
56938         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56939         (Miscellanous Notes): ...from this.
56940
56941 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56942
56943         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56944         Mention that offsetof should be used instead of sizeof.
56945         From Bruno Haible.
56946
56947 2006-11-07  Bruno Haible  <bruno@clisp.org>
56948
56949         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56950
56951 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56952
56953         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56954         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56955         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56956         (gl_tree_add_before, gl_tree_add_after):
56957         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56958         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56959         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56960         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56961         (gl_linked_add_after, gl_linked_add_at): Likewise.
56962         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56963         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56964         (gl_tree_add_before, gl_tree_add_after): Likewise.
56965         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56966         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56967         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56968
56969 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56970
56971         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56972
56973 2006-11-06  Bruno Haible  <bruno@clisp.org>
56974
56975         * m4/inline.m4: New file.
56976         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56977         * modules/list (Files): Add m4/inline.m4.
56978         * modules/oset (Files): Likewise.
56979
56980 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56981
56982         * lib/idcache.c: Include <stddef.h>, for offsetof.
56983         (struct userid.name): Change from char * to a flexible array member.
56984         All uses changed.
56985         * modules/idcache (Depends-on): Add flexmember.
56986
56987         * MODULES.html.sh (Core language properties): New module flexmember.
56988         * modules/flexmember, m4/flexmember.m4: New files.
56989
56990         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56991         inline functions that are identical with the old xnmalloc_inline,
56992         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56993         that we can avoid some unnecessary integer multiplications and
56994         divisions in the common case where the element size is known at
56995         compile time.
56996         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56997         needed.
56998         (xnboundedmalloc): Remove.
56999         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57000         arguments, for consistency with rest of this header.
57001         (xcharalloc): Rewrite using XNMALLOC.
57002         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57003         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57004         versions have been moved to lib/xalloc.h and renamed to be the
57005         non-*_inline versions.
57006         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57007         and xnrealloc functions, since those functions are now inline and
57008         now call us.
57009         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57010         renaming described above.
57011         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57012         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57013         captures the dependency in AC_C_INLINE.
57014
57015         New module canonicalize-lgpl, proposed by Charles Wilson in
57016         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57017         with a few small changes afterwards.
57018         * MODULES.html.sh (File system functions): New module
57019         canonicalize-lgpl.
57020         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57021         and canonicalize_file_name.
57022         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57023         * modules/canonicalize-lgpl: New files.
57024
57025 2006-11-05  Bruno Haible  <bruno@clisp.org>
57026
57027         * gnulib-tool (func_import, func_create_testdir): Create directories
57028         also for files in subdirectories of lib/.
57029
57030 2006-11-05  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57033         ANSI C compliant.
57034
57035 2006-11-03  Bruno Haible  <bruno@clisp.org>
57036
57037         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57038         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57039         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57040         (xnboundedmalloc): New inline function.
57041         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57042         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57043         xmalloc.
57044         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57045         xmalloc.
57046         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57047         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57048         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57049         xmalloc.
57050         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57051         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57052         xmalloc.
57053         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57054         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57055         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57056         xmalloc.
57057         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57058         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57059         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57060         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57061         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57062         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57063         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57064
57065 2006-11-03  Bruno Haible  <bruno@clisp.org>
57066
57067         * lib/c-ctype.h [C++]: Define functions without name mangling.
57068         * lib/fwriteerror.h [C++]: Likewise.
57069         * lib/gcd.h [C++]: Likewise.
57070         * lib/linebreak.h [C++]: Likewise.
57071
57072 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57075         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57076         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57077         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57078         Check for functions and headers just once.
57079         Check for declaration of canonicalize_file_name.
57080         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57081
57082 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57083
57084         * gnulib-tool (func_import): Fix typo in actioncmd.
57085
57086 2006-11-02  Bruno Haible  <bruno@clisp.org>
57087
57088         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57089         newline sequence in the Makefile.am snippet as a space, like "make"
57090         does.
57091         Reported by Roger Persson <perrog@gmail.com>.
57092
57093 2006-11-01  Bruno Haible  <bruno@clisp.org>
57094
57095         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57096         already declared in <string.h>.
57097         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57098
57099 2006-11-01  Bruno Haible  <bruno@clisp.org>
57100
57101         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57102         * lib/strcase.h: Include <string.h>.
57103         (strcasecmp): Define to rpl_strcasecmp here.
57104
57105 2006-11-01  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57108
57109 2006-11-01  Eric Blake  <ebb9@byu.net>
57110
57111         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57112
57113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57114
57115 2006-10-29  Bruno Haible  <bruno@clisp.org>
57116
57117         Make it compile in C++ mode.
57118         * lib/full-write.c (full_rw): Add a cast.
57119
57120 2006-11-01  Bruno Haible  <bruno@clisp.org>
57121
57122         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57123         be POSIX compliant.
57124         Reported by Roger Persson <perrog@gmail.com>.
57125
57126 2006-11-01  Eric Blake  <ebb9@byu.net>
57127
57128         * lib/getopt_.h: Fix comments.
57129
57130 2006-10-31  Eric Blake  <ebb9@byu.net>
57131
57132         * modules/tmpdir (Depends-on): Add sys_stat.
57133         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57134         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57135         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57136         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57137         tempname.
57138
57139 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57140
57141         Avoid some C++ diagnostics reported by Bruno Haible.
57142         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57143         xmalloc.
57144         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57145         (struct slotvec): Move to top level.
57146         (quotearg_n_options): Rewrite to avoid xmalloc.
57147         * lib/xalloc.h (xcharalloc): New function.
57148         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57149         [defined __cplusplus]: Add function template that provides result
57150         type propagation.  This part of the change is from Bruno Haible.
57151
57152 2006-10-29  Bruno Haible  <bruno@clisp.org>
57153
57154         Make it compile in C++ mode.
57155         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57156         * lib/strnlen1.c (strnlen1): Cast memchr result.
57157         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57158         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57159         (create_temp_dir): Rename local variable 'template'.
57160         (compile_csharp_using_sscli): Add cast.
57161         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57162         * lib/findprog.c (find_in_path): Likewise.
57163         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57164         * lib/wait-process.c (register_slave_subprocess): Likewise.
57165
57166 2006-10-22  Bruno Haible  <bruno@clisp.org>
57167
57168         * modules/tsearch: New file.
57169         * lib/tsearch.h: New file.
57170         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57171         * m4/tsearch.m4: New file.
57172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57173
57174 2006-10-29  Eric Blake  <ebb9@byu.net>
57175
57176         * lib/arcfour.c: Assume config.h.
57177         * lib/arctwo.c: Likewise.
57178         * lib/base64.c: Likewise.
57179         * lib/check-version.c: Likewise.
57180         * lib/crc.c: Likewise.
57181         * lib/des.c: Likewise.
57182         * lib/gc-gnulib.c: Likewise.
57183         * lib/gc-libgcrypt.c: Likewise.
57184         * lib/gc-pbkdf2-sha1.c: Likewise.
57185         * lib/getaddrinfo.c: Likewise.
57186         * lib/getdelim.c: Likewise.
57187         * lib/getline.c: Likewise.
57188         * lib/hmac-md5.c: Likewise.
57189         * lib/hmac-sha1.c: Likewise.
57190         * lib/iconvme.c: Likewise.
57191         * lib/md2.c: Likewise.
57192         * lib/md4.c: Likewise.
57193         * lib/memxor.c: Likewise.
57194         * lib/read-file.c: Likewise.
57195         * lib/readline.c: Likewise.
57196         * lib/rijndael-alg-fst.c: Likewise.
57197         * lib/rijndael-api-fst.c: Likewise.
57198         * lib/xgetdomainname.c: Likewise.
57199
57200 2006-10-28  Eric Blake  <ebb9@byu.net>
57201
57202         * lib/xstrndup.c: Assume config.h.
57203
57204 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57205
57206         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57207         stat-macros.h is now for our own macros, whereas stat_h is for
57208         macros in the <sys/stat.h> name space.
57209         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57210         (STAT_MACROS_H): Remove.
57211         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57212         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57213         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57214         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57215         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57216         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57217         Move these macros to ...
57218         * lib/stat_.h: here.  Don't include stat-macros.h.
57219         * lib/canonicalize.c: Don't include stat-macros.h.
57220         * lib/chown.c: Likewise.
57221         * lib/euidaccess.c: Likewise.
57222         * lib/file-type.c: Likewise.
57223         * lib/filemode.c: Likewise.
57224         * lib/glob.c: Likewise.
57225         * lib/isapipe.c: Likewise.
57226         * lib/lchown.c: Likewise.
57227         * lib/lstat.c: Likewise.
57228         * lib/mkdir-p.c: Likewise.
57229         * lib/rmdir.c: Likewise.
57230         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57231         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57232         unless mkdir isn't declared, to speed up 'configure'.
57233         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57234         would define all the S_* symbols.
57235         * modules/canonicalize (Depends-on):
57236         Depend on sys_stat, not stat-macros.
57237         * modules/chown: Likewise.
57238         * modules/euidaccess: Likewise.
57239         * modules/filemode: Likewise.
57240         * modules/file-type: Likewise.
57241         * modules/glob: Likewise.
57242         * modules/isapipe: Likewise.
57243         * modules/lchown: Likewise.
57244         * modules/lstat: Likewise.
57245         * modules/mkancesdirs: Likewise.
57246         * modules/rmdir: Likewise.
57247         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57248         * modules/modechange: Likewise.
57249         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57250         (configure.ac): Remove gl_STAT_MACROS.
57251         * modules/sys_stat (Depends-on): Remove stat-macros.
57252
57253 2006-10-27  Bruno Haible  <bruno@clisp.org>
57254
57255         * m4/signed.m4: Remove file.
57256         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57257         invocation.
57258         * modules/vasnprintf (Files): Remove m4/signed.m4.
57259
57260 2006-10-27  Bruno Haible  <bruno@clisp.org>
57261
57262         Update to GNU gettext 0.16.
57263         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57264         m4/inttypes-h.m4, m4/signed.m4.
57265         * m4/gettext.m4: Update to GNU gettext 0.16.
57266         * m4/intl.m4: New file, from GNU gettext.
57267         * m4/intldir.m4: New file, from GNU gettext.
57268         * config/srclist.txt: Update
57269
57270 2006-10-27  Eric Blake  <ebb9@byu.net>
57271
57272         * MODULES.html.sh: Document tempname.
57273         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57274         dependencies.
57275         (Files): Move lib/tempname.c...
57276         * modules/tempname: ...to this new module.
57277         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57278         (gl_PREREQ_TEMPNAME): Move...
57279         * m4/tempname.m4: ...to this new file.
57280         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57281         * modules/sys_stat (Depends-on): Add stat-macros.
57282         * lib/stat_.h (includes): Pick up stat macros.
57283         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57284         if stat macros are broken.
57285         * lib/tempname.c (includes): No need to include "stat-macros.h".
57286         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57287         (direxists, __path_search) [!_LIBC]: Don't compile these in
57288         gnulib; the tmpdir module covers that.
57289         * lib/tempname.h: New file.
57290
57291 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * COPYING: Explain how gnulib-tool converts licence headers.
57294         Almost all wording by Eric Blake.
57295
57296 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57297
57298         * lib/mbchar.h (is_basic_table): Make read-only.
57299         * lib/mbchar.c (is_basic_table): Likewise.
57300         Reported by John Darrington.
57301
57302 2006-10-25  Bruno Haible  <bruno@clisp.org>
57303
57304         * lib/progname.h (set_program_name): Undefine before defining.
57305
57306 2006-10-25  Bruno Haible  <bruno@clisp.org>
57307
57308         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57309         false for non-gcc C++ compilers.
57310         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57311
57312 2006-10-24  Bruno Haible  <bruno@clisp.org>
57313
57314         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57315         iconv implementations like Irix iconv.
57316
57317 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57318
57319         * modules/vararrays: New file.
57320         * m4/vararrays.m4: New file, taken from diffutils.
57321         * MODULES.html.sh: New module vararrays.
57322
57323 2006-10-24  Karl Berry  <karl@gnu.org>
57324
57325         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57326         Don't call GNU Unix.
57327
57328 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57329
57330         * users.txt: Add Libtool.
57331
57332         Sync from Libtool:
57333
57334         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57337         to gnulib's policy of including config.h unconditionally.
57338
57339 2006-10-24  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/wcwidth (Files): Add m4/wint_t.m4.
57342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57343         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57344
57345 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57348         to pacify GCC with some -W flags enabled.  Problem reported by
57349         Bruno Haible.
57350
57351 2006-10-24  Jim Meyering  <jim@meyering.net>
57352
57353         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57354         Reported by Karl Berry.
57355
57356 2006-10-23  Bruno Haible  <bruno@clisp.org>
57357
57358         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57359
57360 2006-10-24  Bruno Haible  <bruno@clisp.org>
57361
57362         * lib/gl_list.h: Use C comment style, not C++ comment style.
57363
57364 2006-10-23  Eric Blake  <ebb9@byu.net>
57365
57366         * lib/getaddrinfo.c (includes): Add missing include.
57367
57368 2006-10-23  Bruno Haible  <bruno@clisp.org>
57369             Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         Ability to rename obstack_free.
57372         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57373         obstack_free.
57374         (obstack_free): Invoke the __obstack_free macro.
57375         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57376
57377 2006-10-23  Bruno Haible  <bruno@clisp.org>
57378             Paul Eggert  <eggert@cs.ucla.edu>
57379
57380         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57381         __argc, __argv from the declaration. (They are defined as macros on
57382         mingw.)
57383
57384 2006-10-22  Bruno Haible  <bruno@clisp.org>
57385
57386         * doc/gnulib-intro.texi: New file.
57387         * doc/gnulib.texi: Include it.
57388
57389 2006-10-21  Bruno Haible  <bruno@clisp.org>
57390
57391         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57392         "Introduction", "Miscellanous Notes", "Particular Modules".
57393
57394 2006-10-21  Bruno Haible  <bruno@clisp.org>
57395
57396         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57397         Change mostlyclean-local rule to avoid sh syntax error from bash
57398         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57399
57400 2006-10-23  Jim Meyering  <jim@meyering.net>
57401
57402         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57403         in place of snprintf.
57404
57405         * modules/inttostr (Files): Add lib/uinttostr.c.
57406         * lib/uinttostr.c (inttostr): New file/function.
57407         * lib/inttostr.h (uinttostr): Declare.
57408         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57409         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57410         Add uinttostr.
57411         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57412
57413 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         * lib/canonicalize.c (ELOOP): Define if not already defined.
57416         Problem reported by Bruno Haible in
57417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57418
57419 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57420
57421         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57422         Problem reported by Perry Smith and Ville Laurikari.
57423
57424         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57425         uses.
57426
57427 2006-10-19  Bruno Haible  <bruno@clisp.org>
57428
57429         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57430         for mingw.
57431
57432 2006-10-19  Bruno Haible  <bruno@clisp.org>
57433
57434         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57435         Needed for mingw.
57436
57437 2006-10-19  Bruno Haible  <bruno@clisp.org>
57438
57439         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57440
57441 2006-10-19  Bruno Haible  <bruno@clisp.org>
57442
57443         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57444         it.
57445
57446 2006-10-19  Bruno Haible  <bruno@clisp.org>
57447
57448         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57449         invocation.
57450
57451 2006-10-19  Bruno Haible  <bruno@clisp.org>
57452
57453         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57454         mountlist by default.
57455
57456 2006-10-16  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/c-strstr.c: Include c-strstr.h.
57459
57460 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57461
57462         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57463         in a slash.
57464
57465 2006-10-18  Bruno Haible  <bruno@clisp.org>
57466
57467         * lib/lock.h [C++]: Wrap definitions in extern "C".
57468
57469 2006-10-18  Bruno Haible  <bruno@clisp.org>
57470
57471         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57472         gl_LIBOBJS list.
57473
57474 2006-10-18  Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57477
57478 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57479
57480         * lib/xstrtol.h: Include gettext.h.
57481         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57482         Problem reported by Eric Blake.
57483         * modules/xstrtol (Depends-on): Add gettext-h.
57484
57485 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57486
57487         * lib/strftime.c (advance): New macro.
57488         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57489         incomplete type, so you can't add 0 to it.  Problem and patch
57490         reported by Eelco Dolstra for dietlibc.
57491
57492 2006-10-18  Jim Meyering  <jim@meyering.net>
57493
57494         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57495         type for a local, and rename it: s/up/user_proc/.
57496
57497 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57498
57499         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57500         READ_UTMP_USER_PROCESS.
57501         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57502
57503 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57506         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57507
57508 2006-10-17  Eric Blake  <ebb9@byu.net>
57509
57510         * lib/sigprocmask.c (sigprocmask): Fix typo.
57511
57512         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57513
57514         * modules/clean-temp (Makefile.am): Don't add to make output...
57515         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57516         config.h.
57517
57518 2006-10-17  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57521         differently if DEFAULT_TEXT_DOMAIN is set.
57522
57523 2006-10-16  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/clean-temp.c: Include fwriteerror.h.
57526
57527 2006-10-16  Bruno Haible  <bruno@clisp.org>
57528
57529         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57530
57531 2006-10-16  Bruno Haible  <bruno@clisp.org>
57532
57533         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57534         * lib/sigprocmask.h: Include <sys/types.h>.
57535         (sigset_t): Use the system's definition if present.
57536
57537 2006-10-17  Eric Blake  <ebb9@byu.net>
57538
57539         * lib/xvasprintf.c (includes): Assume config.h.
57540         * lib/xasprintf.c (includes): Likewise.
57541
57542 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57543
57544         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57545         at least as wide as intmax_t.
57546
57547 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57548
57549         (Imported from Automake.)
57550         * build-aux/gnupload: Update to version 1.1 of directive file.
57551
57552 2006-10-16  Eric Blake  <ebb9@byu.net>
57553
57554         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57555         match Automake 1.10a.
57556
57557 2006-10-14  Bruno Haible  <bruno@clisp.org>
57558
57559         * modules/sigprocmask: New file.
57560         * lib/sigprocmask.h: New file.
57561         * lib/sigprocmask.c: New file.
57562         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57563         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57564         request sigprocmask.o.
57565         (gl_PREREQ_SIGPROCMASK): New macro.
57566         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57567         (Depends-on): Add sigprocmask.
57568         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57569         gt_SIGNALBLOCKING. Test for 'raise' only once.
57570         * lib/fatal-signal.c: Include sigprocmask.h.
57571         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57572         unblock_fatal_signals): Define always.
57573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57574         sigprocmask.
57575
57576 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         Sync from Automake.
57579         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57580         which incorrectly sets the mode of an existing destination
57581         directory.  In some cases the unpatched install-sh could do the
57582         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57583         system.  We hope this is rare in practice, but it's clearly worth
57584         fixing.  Problem reported by Alex Unleashed in
57585         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57586         Also, don't bother to check for -m bugs unless we're using -m;
57587         suggested by Stepan Kasal.
57588
57589 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57590
57591         Sync from Automake.
57592         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57593         `-c' flag, so they appear at the same position as in %FASTDEP%
57594         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57595         which ignores unknown options only after the first non-option.
57596         Bug report against M4 by Nelson H. F. Beebe.
57597
57598 2006-10-13  Jim Meyering  <jim@meyering.net>
57599
57600         Fix a bug in yesterday's change.
57601         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57602         p->fts_statp->st_dev would be used uninitialized.
57603         Ensures that we always call fts_stat on the very first entry.
57604         Miklos Szeredi reported that find -xdev stopped working.
57605
57606 2006-10-12  Bruno Haible  <bruno@clisp.org>
57607
57608         * gnulib-tool (func_get_automake_snippet): Append an automatically
57609         computed EXTRA_DIST augmentation.
57610         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57611         * modules/alloca-opt (Makefile.am): Likewise.
57612         * modules/allocsa (Makefile.am): Likewise.
57613         * modules/arcfour (Makefile.am): Likewise.
57614         * modules/arctwo (Makefile.am): Likewise.
57615         * modules/argmatch (Makefile.am): Likewise.
57616         * modules/argz (Makefile.am): Likewise.
57617         * modules/atexit (Makefile.am): Likewise.
57618         * modules/backupfile (Makefile.am): Likewise.
57619         * modules/byteswap (Makefile.am): Likewise.
57620         * modules/c-strtod (Makefile.am): Likewise.
57621         * modules/c-strtold (Makefile.am): Likewise.
57622         * modules/calloc (Makefile.am): Likewise.
57623         * modules/canon-host (Makefile.am): Likewise.
57624         * modules/canonicalize (Makefile.am): Likewise.
57625         * modules/chdir-long (Makefile.am): Likewise.
57626         * modules/chdir-safer (Makefile.am): Likewise.
57627         * modules/check-version (Makefile.am): Likewise.
57628         * modules/chown (Makefile.am): Likewise.
57629         * modules/cloexec (Makefile.am): Likewise.
57630         * modules/close-stream (Makefile.am): Likewise.
57631         * modules/closeout (Makefile.am): Likewise.
57632         * modules/crc (Makefile.am): Likewise.
57633         * modules/csharpexec (Makefile.am): Likewise.
57634         * modules/cycle-check (Makefile.am): Likewise.
57635         * modules/des (Makefile.am): Likewise.
57636         * modules/dev-ino (Makefile.am): Likewise.
57637         * modules/dirfd (Makefile.am): Likewise.
57638         * modules/dirname (Makefile.am): Likewise.
57639         * modules/dup2 (Makefile.am): Likewise.
57640         * modules/eealloc (Makefile.am): Likewise.
57641         * modules/error (Makefile.am): Likewise.
57642         * modules/euidaccess (Makefile.am): Likewise.
57643         * modules/exclude (Makefile.am): Likewise.
57644         * modules/exitfail (Makefile.am): Likewise.
57645         * modules/fcntl-safer (Makefile.am): Likewise.
57646         * modules/fcntl (Makefile.am): Likewise.
57647         * modules/file-type (Makefile.am): Likewise.
57648         * modules/fileblocks (Makefile.am): Likewise.
57649         * modules/filemode (Makefile.am): Likewise.
57650         * modules/filenamecat (Makefile.am): Likewise.
57651         * modules/fnmatch (Makefile.am): Likewise.
57652         * modules/fopen-safer (Makefile.am): Likewise.
57653         * modules/fpending (Makefile.am): Likewise.
57654         * modules/fprintftime (Makefile.am): Likewise.
57655         * modules/free (Makefile.am): Likewise.
57656         * modules/fsusage (Makefile.am): Likewise.
57657         * modules/ftruncate (Makefile.am): Likewise.
57658         * modules/fts (Makefile.am): Likewise.
57659         * modules/gc-arcfour (Makefile.am): Likewise.
57660         * modules/gc-des (Makefile.am): Likewise.
57661         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57662         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57663         * modules/gc-md4 (Makefile.am): Likewise.
57664         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57665         * modules/gc-sha1 (Makefile.am): Likewise.
57666         * modules/gc (Makefile.am): Likewise.
57667         * modules/getaddrinfo (Makefile.am): Likewise.
57668         * modules/getcwd (Makefile.am): Likewise.
57669         * modules/getdelim (Makefile.am): Likewise.
57670         * modules/getdomainname (Makefile.am): Likewise.
57671         * modules/getgroups (Makefile.am): Likewise.
57672         * modules/gethostname (Makefile.am): Likewise.
57673         * modules/gethrxtime (Makefile.am): Likewise.
57674         * modules/getline (Makefile.am): Likewise.
57675         * modules/getloadavg (Makefile.am): Likewise.
57676         * modules/getlogin_r (Makefile.am): Likewise.
57677         * modules/getndelim2 (Makefile.am): Likewise.
57678         * modules/getopt (Makefile.am): Likewise.
57679         * modules/getpagesize (Makefile.am): Likewise.
57680         * modules/getpass-gnu (Makefile.am): Likewise.
57681         * modules/getpass (Makefile.am): Likewise.
57682         * modules/getsubopt (Makefile.am): Likewise.
57683         * modules/gettime (Makefile.am): Likewise.
57684         * modules/gettimeofday (Makefile.am): Likewise.
57685         * modules/getugroups (Makefile.am): Likewise.
57686         * modules/getusershell (Makefile.am): Likewise.
57687         * modules/glob (Makefile.am): Likewise.
57688         * modules/group-member (Makefile.am): Likewise.
57689         * modules/hard-locale (Makefile.am): Likewise.
57690         * modules/hash (Makefile.am): Likewise.
57691         * modules/hmac-md5 (Makefile.am): Likewise.
57692         * modules/hmac-sha1 (Makefile.am): Likewise.
57693         * modules/human (Makefile.am): Likewise.
57694         * modules/idcache (Makefile.am): Likewise.
57695         * modules/imaxabs (Makefile.am): Likewise.
57696         * modules/imaxdiv (Makefile.am): Likewise.
57697         * modules/inet_ntop (Makefile.am): Likewise.
57698         * modules/inet_pton (Makefile.am): Likewise.
57699         * modules/intprops (Makefile.am): Likewise.
57700         * modules/inttostr (Makefile.am): Likewise.
57701         * modules/inttypes (Makefile.am): Likewise.
57702         * modules/isapipe (Makefile.am): Likewise.
57703         * modules/javaversion (Makefile.am): Likewise.
57704         * modules/lchmod (Makefile.am): Likewise.
57705         * modules/lchown (Makefile.am): Likewise.
57706         * modules/localcharset (Makefile.am): Likewise.
57707         * modules/long-options (Makefile.am): Likewise.
57708         * modules/lstat (Makefile.am): Likewise.
57709         * modules/malloc (Makefile.am): Likewise.
57710         * modules/mathl (Makefile.am): Likewise.
57711         * modules/mbchar (Makefile.am): Likewise.
57712         * modules/md2 (Makefile.am): Likewise.
57713         * modules/md4 (Makefile.am): Likewise.
57714         * modules/md5 (Makefile.am): Likewise.
57715         * modules/memcasecmp (Makefile.am): Likewise.
57716         * modules/memchr (Makefile.am): Likewise.
57717         * modules/memcmp (Makefile.am): Likewise.
57718         * modules/memcoll (Makefile.am): Likewise.
57719         * modules/memcpy (Makefile.am): Likewise.
57720         * modules/memmem (Makefile.am): Likewise.
57721         * modules/memmove (Makefile.am): Likewise.
57722         * modules/mempcpy (Makefile.am): Likewise.
57723         * modules/memrchr (Makefile.am): Likewise.
57724         * modules/memset (Makefile.am): Likewise.
57725         * modules/memxor (Makefile.am): Likewise.
57726         * modules/mkancesdirs (Makefile.am): Likewise.
57727         * modules/mkdir-p (Makefile.am): Likewise.
57728         * modules/mkdir (Makefile.am): Likewise.
57729         * modules/mkdtemp (Makefile.am): Likewise.
57730         * modules/mkstemp (Makefile.am): Likewise.
57731         * modules/mktime (Makefile.am): Likewise.
57732         * modules/modechange (Makefile.am): Likewise.
57733         * modules/mountlist (Makefile.am): Likewise.
57734         * modules/nanosleep (Makefile.am): Likewise.
57735         * modules/obstack (Makefile.am): Likewise.
57736         * modules/openat (Makefile.am): Likewise.
57737         * modules/pagealign_alloc (Makefile.am): Likewise.
57738         * modules/pathmax (Makefile.am): Likewise.
57739         * modules/physmem (Makefile.am): Likewise.
57740         * modules/poll (Makefile.am): Likewise.
57741         * modules/posixtm (Makefile.am): Likewise.
57742         * modules/posixver (Makefile.am): Likewise.
57743         * modules/putenv (Makefile.am): Likewise.
57744         * modules/quote (Makefile.am): Likewise.
57745         * modules/quotearg (Makefile.am): Likewise.
57746         * modules/raise (Makefile.am): Likewise.
57747         * modules/read-file (Makefile.am): Likewise.
57748         * modules/readline (Makefile.am): Likewise.
57749         * modules/readlink (Makefile.am): Likewise.
57750         * modules/readtokens (Makefile.am): Likewise.
57751         * modules/readutmp (Makefile.am): Likewise.
57752         * modules/realloc (Makefile.am): Likewise.
57753         * modules/regex (Makefile.am): Likewise.
57754         * modules/rename-dest-slash (Makefile.am): Likewise.
57755         * modules/rename (Makefile.am): Likewise.
57756         * modules/rijndael (Makefile.am): Likewise.
57757         * modules/rmdir (Makefile.am): Likewise.
57758         * modules/rpmatch (Makefile.am): Likewise.
57759         * modules/safe-read (Makefile.am): Likewise.
57760         * modules/safe-write (Makefile.am): Likewise.
57761         * modules/same-inode (Makefile.am): Likewise.
57762         * modules/same (Makefile.am): Likewise.
57763         * modules/save-cwd (Makefile.am): Likewise.
57764         * modules/savedir (Makefile.am): Likewise.
57765         * modules/setenv (Makefile.am): Likewise.
57766         * modules/settime (Makefile.am): Likewise.
57767         * modules/sha1 (Makefile.am): Likewise.
57768         * modules/sig2str (Makefile.am): Likewise.
57769         * modules/snprintf (Makefile.am): Likewise.
57770         * modules/stat-macros (Makefile.am): Likewise.
57771         * modules/stat-time (Makefile.am): Likewise.
57772         * modules/stdbool (Makefile.am): Likewise.
57773         * modules/stdint (Makefile.am): Likewise.
57774         * modules/stdlib-safer (Makefile.am): Likewise.
57775         * modules/stpcpy (Makefile.am): Likewise.
57776         * modules/stpncpy (Makefile.am): Likewise.
57777         * modules/strcase (Makefile.am): Likewise.
57778         * modules/strcasestr (Makefile.am): Likewise.
57779         * modules/strchrnul (Makefile.am): Likewise.
57780         * modules/strcspn (Makefile.am): Likewise.
57781         * modules/strdup (Makefile.am): Likewise.
57782         * modules/strerror (Makefile.am): Likewise.
57783         * modules/strftime (Makefile.am): Likewise.
57784         * modules/strndup (Makefile.am): Likewise.
57785         * modules/strnlen (Makefile.am): Likewise.
57786         * modules/strpbrk (Makefile.am): Likewise.
57787         * modules/strsep (Makefile.am): Likewise.
57788         * modules/strstr (Makefile.am): Likewise.
57789         * modules/strtod (Makefile.am): Likewise.
57790         * modules/strtoimax (Makefile.am): Likewise.
57791         * modules/strtok_r (Makefile.am): Likewise.
57792         * modules/strtol (Makefile.am): Likewise.
57793         * modules/strtoll (Makefile.am): Likewise.
57794         * modules/strtoul (Makefile.am): Likewise.
57795         * modules/strtoull (Makefile.am): Likewise.
57796         * modules/strtoumax (Makefile.am): Likewise.
57797         * modules/strverscmp (Makefile.am): Likewise.
57798         * modules/sys_socket (Makefile.am): Likewise.
57799         * modules/sys_stat (Makefile.am): Likewise.
57800         * modules/sysexits (Makefile.am): Likewise.
57801         * modules/time_r (Makefile.am): Likewise.
57802         * modules/timegm (Makefile.am): Likewise.
57803         * modules/timespec (Makefile.am): Likewise.
57804         * modules/tmpfile-safer (Makefile.am): Likewise.
57805         * modules/trim (Makefile.am): Likewise.
57806         * modules/unistd-safer (Makefile.am): Likewise.
57807         * modules/unlinkdir (Makefile.am): Likewise.
57808         * modules/unlocked-io (Makefile.am): Likewise.
57809         * modules/userspec (Makefile.am): Likewise.
57810         * modules/utime (Makefile.am): Likewise.
57811         * modules/utimecmp (Makefile.am): Likewise.
57812         * modules/utimens (Makefile.am): Likewise.
57813         * modules/vasnprintf (Makefile.am): Likewise.
57814         * modules/vasprintf (Makefile.am): Likewise.
57815         * modules/vsnprintf (Makefile.am): Likewise.
57816         * modules/xalloc (Makefile.am): Likewise.
57817         * modules/xgetcwd (Makefile.am): Likewise.
57818         * modules/xnanosleep (Makefile.am): Likewise.
57819         * modules/xreadlink (Makefile.am): Likewise.
57820         * modules/xstrtod (Makefile.am): Likewise.
57821         * modules/xstrtol (Makefile.am): Likewise.
57822         * modules/xstrtold (Makefile.am): Likewise.
57823         * modules/yesno (Makefile.am): Likewise.
57824         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57825
57826 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57827
57828         * modules/error (Makefile.am): Distribute files through
57829         EXTRA_DIST, not lib_SOURCES.
57830
57831 2006-10-12  Eric Blake  <ebb9@byu.net>
57832
57833         * modules/error (Makefile.am): Distribute files in /lib.
57834         * modules/obstack (Makefile.am): Likewise.
57835
57836 2006-10-12  Bruno Haible  <bruno@clisp.org>
57837
57838         * modules/acl (Makefile.am): Distribute all files in lib/ through
57839         EXTRA_DIST.
57840         * modules/arcfour (Makefile.am): Likewise.
57841         * modules/arctwo (Makefile.am): Likewise.
57842         * modules/argmatch (Makefile.am): Likewise.
57843         * modules/argz (Makefile.am): Likewise.
57844         * modules/atexit (Makefile.am): Likewise.
57845         * modules/backupfile (Makefile.am): Likewise.
57846         * modules/c-strtod (Makefile.am): Likewise.
57847         * modules/c-strtold (Makefile.am): Likewise.
57848         * modules/calloc (Makefile.am): Likewise.
57849         * modules/canon-host (Makefile.am): Likewise.
57850         * modules/canonicalize (Makefile.am): Likewise.
57851         * modules/chdir-long (Makefile.am): Likewise.
57852         * modules/chdir-safer (Makefile.am): Likewise.
57853         * modules/check-version (Makefile.am): Likewise.
57854         * modules/chown (Makefile.am): Likewise.
57855         * modules/cloexec (Makefile.am): Likewise.
57856         * modules/close-stream (Makefile.am): Likewise.
57857         * modules/closeout (Makefile.am): Likewise.
57858         * modules/crc (Makefile.am): Likewise.
57859         * modules/cycle-check (Makefile.am): Likewise.
57860         * modules/des (Makefile.am): Likewise.
57861         * modules/dirfd (Makefile.am): Likewise.
57862         * modules/dirname (Makefile.am): Likewise.
57863         * modules/dup2 (Makefile.am): Likewise.
57864         * modules/euidaccess (Makefile.am): Likewise.
57865         * modules/exclude (Makefile.am): Likewise.
57866         * modules/exitfail (Makefile.am): Likewise.
57867         * modules/fcntl-safer (Makefile.am): Likewise.
57868         * modules/file-type (Makefile.am): Likewise.
57869         * modules/fileblocks (Makefile.am): Likewise.
57870         * modules/filemode (Makefile.am): Likewise.
57871         * modules/filenamecat (Makefile.am): Likewise.
57872         * modules/fnmatch (Makefile.am): Likewise.
57873         * modules/fopen-safer (Makefile.am): Likewise.
57874         * modules/fpending (Makefile.am): Likewise.
57875         * modules/fprintftime (Makefile.am): Likewise.
57876         * modules/free (Makefile.am): Likewise.
57877         * modules/fsusage (Makefile.am): Likewise.
57878         * modules/ftruncate (Makefile.am): Likewise.
57879         * modules/fts (Makefile.am): Likewise.
57880         * modules/gc (Makefile.am): Likewise.
57881         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57882         * modules/getaddrinfo (Makefile.am): Likewise.
57883         * modules/getcwd (Makefile.am): Likewise.
57884         * modules/getdelim (Makefile.am): Likewise.
57885         * modules/getdomainname (Makefile.am): Likewise.
57886         * modules/getgroups (Makefile.am): Likewise.
57887         * modules/gethostname (Makefile.am): Likewise.
57888         * modules/gethrxtime (Makefile.am): Likewise.
57889         * modules/getline (Makefile.am): Likewise.
57890         * modules/getloadavg (Makefile.am): Likewise.
57891         * modules/getlogin_r (Makefile.am): Likewise.
57892         * modules/getopt (Makefile.am): Likewise.
57893         * modules/getpass (Makefile.am): Likewise.
57894         * modules/getpass-gnu (Makefile.am): Likewise.
57895         * modules/getsubopt (Makefile.am): Likewise.
57896         * modules/gettime (Makefile.am): Likewise.
57897         * modules/gettimeofday (Makefile.am): Likewise.
57898         * modules/getugroups (Makefile.am): Likewise.
57899         * modules/getusershell (Makefile.am): Likewise.
57900         * modules/glob (Makefile.am): Likewise.
57901         * modules/group-member (Makefile.am): Likewise.
57902         * modules/hard-locale (Makefile.am): Likewise.
57903         * modules/hash (Makefile.am): Likewise.
57904         * modules/hmac-md5 (Makefile.am): Likewise.
57905         * modules/hmac-sha1 (Makefile.am): Likewise.
57906         * modules/human (Makefile.am): Likewise.
57907         * modules/idcache (Makefile.am): Likewise.
57908         * modules/imaxabs (Makefile.am): Likewise.
57909         * modules/imaxdiv (Makefile.am): Likewise.
57910         * modules/inet_ntop (Makefile.am): Likewise.
57911         * modules/inet_pton (Makefile.am): Likewise.
57912         * modules/inttostr (Makefile.am): Likewise.
57913         * modules/isapipe (Makefile.am): Likewise.
57914         * modules/lchown (Makefile.am): Likewise.
57915         * modules/long-options (Makefile.am): Likewise.
57916         * modules/lstat (Makefile.am): Likewise.
57917         * modules/malloc (Makefile.am): Likewise.
57918         * modules/mathl (Makefile.am): Likewise.
57919         * modules/mbchar (Makefile.am): Likewise.
57920         * modules/md2 (Makefile.am): Likewise.
57921         * modules/md4 (Makefile.am): Likewise.
57922         * modules/md5 (Makefile.am): Likewise.
57923         * modules/memcasecmp (Makefile.am): Likewise.
57924         * modules/memchr (Makefile.am): Likewise.
57925         * modules/memcmp (Makefile.am): Likewise.
57926         * modules/memcoll (Makefile.am): Likewise.
57927         * modules/memcpy (Makefile.am): Likewise.
57928         * modules/memmem (Makefile.am): Likewise.
57929         * modules/memmove (Makefile.am): Likewise.
57930         * modules/mempcpy (Makefile.am): Likewise.
57931         * modules/memrchr (Makefile.am): Likewise.
57932         * modules/memset (Makefile.am): Likewise.
57933         * modules/memxor (Makefile.am): Likewise.
57934         * modules/mkancesdirs (Makefile.am): Likewise.
57935         * modules/mkdir (Makefile.am): Likewise.
57936         * modules/mkdir-p (Makefile.am): Likewise.
57937         * modules/mkdtemp (Makefile.am): Likewise.
57938         * modules/mkstemp (Makefile.am): Likewise.
57939         * modules/mktime (Makefile.am): Likewise.
57940         * modules/modechange (Makefile.am): Likewise.
57941         * modules/mountlist (Makefile.am): Likewise.
57942         * modules/nanosleep (Makefile.am): Likewise.
57943         * modules/openat (Makefile.am): Likewise.
57944         * modules/pagealign_alloc (Makefile.am): Likewise.
57945         * modules/physmem (Makefile.am): Likewise.
57946         * modules/poll (Makefile.am): Likewise.
57947         * modules/posixtm (Makefile.am): Likewise.
57948         * modules/posixver (Makefile.am): Likewise.
57949         * modules/putenv (Makefile.am): Likewise.
57950         * modules/quote (Makefile.am): Likewise.
57951         * modules/quotearg (Makefile.am): Likewise.
57952         * modules/raise (Makefile.am): Likewise.
57953         * modules/read-file (Makefile.am): Likewise.
57954         * modules/readline (Makefile.am): Likewise.
57955         * modules/readlink (Makefile.am): Likewise.
57956         * modules/readtokens (Makefile.am): Likewise.
57957         * modules/readutmp (Makefile.am): Likewise.
57958         * modules/realloc (Makefile.am): Likewise.
57959         * modules/regex (Makefile.am): Likewise.
57960         * modules/rename (Makefile.am): Likewise.
57961         * modules/rename-dest-slash (Makefile.am): Likewise.
57962         * modules/rijndael (Makefile.am): Likewise.
57963         * modules/rmdir (Makefile.am): Likewise.
57964         * modules/rpmatch (Makefile.am): Likewise.
57965         * modules/safe-read (Makefile.am): Likewise.
57966         * modules/safe-write (Makefile.am): Likewise.
57967         * modules/same (Makefile.am): Likewise.
57968         * modules/save-cwd (Makefile.am): Likewise.
57969         * modules/savedir (Makefile.am): Likewise.
57970         * modules/setenv (Makefile.am): Likewise.
57971         * modules/settime (Makefile.am): Likewise.
57972         * modules/sha1 (Makefile.am): Likewise.
57973         * modules/sig2str (Makefile.am): Likewise.
57974         * modules/snprintf (Makefile.am): Likewise.
57975         * modules/stdlib-safer (Makefile.am): Likewise.
57976         * modules/stpcpy (Makefile.am): Likewise.
57977         * modules/stpncpy (Makefile.am): Likewise.
57978         * modules/strcase (Makefile.am): Likewise.
57979         * modules/strcasestr (Makefile.am): Likewise.
57980         * modules/strchrnul (Makefile.am): Likewise.
57981         * modules/strcspn (Makefile.am): Likewise.
57982         * modules/strdup (Makefile.am): Likewise.
57983         * modules/strerror (Makefile.am): Likewise.
57984         * modules/strftime (Makefile.am): Likewise.
57985         * modules/strndup (Makefile.am): Likewise.
57986         * modules/strnlen (Makefile.am): Likewise.
57987         * modules/strpbrk (Makefile.am): Likewise.
57988         * modules/strsep (Makefile.am): Likewise.
57989         * modules/strstr (Makefile.am): Likewise.
57990         * modules/strtod (Makefile.am): Likewise.
57991         * modules/strtoimax (Makefile.am): Likewise.
57992         * modules/strtok_r (Makefile.am): Likewise.
57993         * modules/strtol (Makefile.am): Likewise.
57994         * modules/strtoll (Makefile.am): Likewise.
57995         * modules/strtoul (Makefile.am): Likewise.
57996         * modules/strtoull (Makefile.am): Likewise.
57997         * modules/strtoumax (Makefile.am): Likewise.
57998         * modules/strverscmp (Makefile.am): Likewise.
57999         * modules/time_r (Makefile.am): Likewise.
58000         * modules/timegm (Makefile.am): Likewise.
58001         * modules/tmpfile-safer (Makefile.am): Likewise.
58002         * modules/unistd-safer (Makefile.am): Likewise.
58003         * modules/unlinkdir (Makefile.am): Likewise.
58004         * modules/userspec (Makefile.am): Likewise.
58005         * modules/utime (Makefile.am): Likewise.
58006         * modules/utimecmp (Makefile.am): Likewise.
58007         * modules/utimens (Makefile.am): Likewise.
58008         * modules/vasnprintf (Makefile.am): Likewise.
58009         * modules/vasprintf (Makefile.am): Likewise.
58010         * modules/vsnprintf (Makefile.am): Likewise.
58011         * modules/xalloc (Makefile.am): Likewise.
58012         * modules/xgetcwd (Makefile.am): Likewise.
58013         * modules/xnanosleep (Makefile.am): Likewise.
58014         * modules/xreadlink (Makefile.am): Likewise.
58015         * modules/xstrtod (Makefile.am): Likewise.
58016         * modules/xstrtol (Makefile.am): Likewise.
58017         * modules/xstrtold (Makefile.am): Likewise.
58018         * modules/yesno (Makefile.am): Likewise.
58019
58020 2006-10-12  Jim Meyering  <jim@meyering.net>
58021
58022         * m4/getloadavg.m4: Revert the change below.
58023
58024         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58025         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58026         fail with a symlink, which is what coreutils' ./bootstrap now
58027         creates by default.
58028
58029 2006-10-12  Bruno Haible  <bruno@clisp.org>
58030
58031         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58032         mingw.
58033         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58034         MSVC and mingw explicitly.
58035
58036 2006-10-11  Simon Josefsson  <jas@extundo.com>
58037             Bruno Haible  <bruno@clisp.org>
58038
58039         Add support for multiple gnulib-tool invocations in the scope of a
58040         single configure.ac file.
58041         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58042         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58043         with the same contents as the _LIBADD variable.
58044         (func_emit_initmacro_start, func_emit_initmacro_end,
58045         func_emit_initmacro_done): New functions.
58046         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58047         gl_LIBOBJS and gl_LTLIBOBJS.
58048
58049 2006-10-11  Bruno Haible  <bruno@clisp.org>
58050
58051         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58052         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58053         autoreconf. Instead, invoke autopoint explicitly but move back the
58054         *.m4 files from gnulib.
58055
58056 2006-10-11  Bruno Haible  <bruno@clisp.org>
58057
58058         * gnulib-tool (func_usage): Make module names after --create-testdir
58059         optional.
58060         (func_create_testdir): If no module was specified, use nearly all
58061         modules.
58062
58063 2006-10-12  Jim Meyering  <jim@meyering.net>
58064
58065         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58066         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58067         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58068         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58069         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58070         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58071         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58072         (fts_set_stat_required): New function.
58073         (fts_open): Defer the calls to fts_stat, if possible or requested.
58074         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58075         into fts_stat itself.
58076         (fts_read): Perform any required (deferred) fts_stat call.
58077         (fts_build): Likewise, for the directory we're about to open and read.
58078         In the readdir loop, carefully decide whether each entry will require
58079         an eventual call to fts_stat, using dirent.d_type info if available.
58080         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58081         a command line argument into this function.  Update all callers.
58082         Map a return value of FTS_DOT to FTS_D for a command line argument.
58083         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58084         Thanks to Miklos Szeredi for his tenacity and for the initial
58085         bug report about "find" failing on a FUSE-based file system.
58086
58087         * lib/fts.c (fts_open): Use consistent indentation.
58088
58089 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58090
58091         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58092         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58093         reported by Jim Meyering.  All uses of cache variables renamed
58094         to match Autoconf's.
58095         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58096         the other one.
58097
58098         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58099         Fix misspelling in diagnostic.
58100
58101 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58102
58103         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58104         defined.  Problem reported by Matthew Woehlke.
58105
58106         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58107         Add support for Tandem NonStop R series.
58108         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58109         Use new macro.
58110
58111         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58112         (has_trailing_slash): Omit size arg; all callers changed.
58113         Omit 'inline', since it doesn't help performance and we'd
58114         need to configure it.
58115         Don't count //, ///, etc. as having a trailing slash.
58116         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58117         (rpl_rename_dest_slash): On failure, use rename's errno rather
58118         than (in some cases) an incorrect or junk errno.
58119         Simplify code by removing need to compute length; this does
58120         cause it to make two passes instead of one over the file name,
58121         but it's worth it.
58122
58123         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58124         change, since Autoconf's version may no longer be appropriate now
58125         that we are using CVS Autoconf's version.  Add support for Tandem.
58126
58127 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58128             Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58131         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58132         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58133         gl_AC_TYPE_LONG_LONG.
58134
58135         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58136         instead of HAVE_LONG_LONG.
58137         * lib/printf-args.c (printf_fetchargs): Likewise.
58138         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58139         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58140         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58141         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58142         gl_AC_TYPE_LONG_LONG.
58143
58144 2006-10-11  Bruno Haible  <bruno@clisp.org>
58145
58146         * m4/longlong.m4: Add comments.
58147         * m4/ulonglong.m4: Likewise.
58148
58149 2006-10-10  Bruno Haible  <bruno@clisp.org>
58150
58151         Make it possible to #define stpcpy, strdup to aliases.
58152         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58153         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58154
58155 2006-10-10  Bruno Haible  <bruno@clisp.org>
58156
58157         Make it possible to #define gcd to an alias.
58158         * lib/gcd.c: Include config.h.
58159
58160 2006-10-10  Bruno Haible  <bruno@clisp.org>
58161
58162         Make it possible to #define c_isascii to an alias.
58163         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58164         defined. Undefine the macros before defining them, to avoid gcc
58165         warnings.
58166         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58167         define NO_C_CTYPE_MACROS early.
58168
58169 2006-10-10  Bruno Haible  <bruno@clisp.org>
58170
58171         Make it possible to #define set_program_name to an alias.
58172         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58173         ENABLE_RELOCATABLE early.
58174
58175 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58176
58177         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58178         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58179         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58180         More generally, don't assume that 64-bit signed int is available
58181         if unsigned int is, and vice versa.
58182         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58183         unsigned symbols, not on their signed counterparts.
58184         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58185         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58186         (UINT64_C, UINTMAX_C):
58187         Likewise.
58188         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58189         unsigned counterparts.
58190         (Have_long_long, Unsigned): New macros.
58191         (Int): Renamed from INT.
58192         (strtoimax): Use the new macros.
58193         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58194         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58195         * modules/inttypes (inttypes.h): Substitute
58196         HAVE_UNSIGNED_LONG_LONG_INT.
58197         * modules/stdint (stdint.h): Likewise.
58198         (Files): Add m4/ulonglong.m4.
58199
58200 2006-10-10  Bruno Haible  <bruno@clisp.org>
58201
58202         Fix a gcc -Wshadow warning.
58203         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58204         to 'bucket'.
58205         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58206         gl_linked_indexof_from_to): Likewise.
58207         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58208         Likewise.
58209         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58210         Likewise.
58211         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58212         Reported by Eric Blake.
58213
58214 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58215
58216         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58217         for NetBSD.  Problem reported by Bruno Haible.
58218
58219 2006-10-09  Jim Meyering  <jim@meyering.net>
58220
58221         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58222         Patch from Bruno Haible.
58223
58224 2006-10-09  Jim Meyering  <jim@meyering.net>
58225
58226         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58227         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58228         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58229
58230 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58231
58232         Don't include <config.h> twice; this doesn't work in some cases,
58233         e.g., when config.h has "#define intmax_t long long int" and
58234         we include <config.h>, <inttypes.h>, <config.h> in that order.
58235         Problem reported by Matthew Woehlke in:
58236         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58237         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58238         * lib/fts-cycle.c: Don't include config.h.
58239         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58240         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58241         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58242         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58243         inttypes.h.
58244         * lib/xstrtoumax.c: Likewise.
58245         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58246         __strtol and the like, so that this module is more like its siblings.
58247         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58248         Remove; no longer needed now that we assume gnulib inttypes.h.
58249
58250 2006-10-08  Bruno Haible  <bruno@clisp.org>
58251
58252         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58253         option.
58254
58255 2006-10-07  Jim Meyering  <jim@meyering.net>
58256
58257         * modules/inttypes (inttypes.h): Revert what seems to have been
58258         an inadvertent part of today's change: use "|", not "/" in the
58259         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58260
58261 2006-10-07  Bruno Haible  <bruno@clisp.org>
58262
58263         * modules/sublist: New file.
58264
58265 2006-10-07  Bruno Haible  <bruno@clisp.org>
58266
58267         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58268         * modules/argz (argz.h): Likewise.
58269         * modules/arpa_inet (arpa/inet.h): Likewise.
58270         * modules/byteswap (byteswap.h): Likewise.
58271         * modules/configmake (configmake.h): Likewise.
58272         * modules/fcntl (fcntl.h): Likewise.
58273         * modules/fnmatch (fnmatch.h): Likewise.
58274         * modules/getopt (getopt.h): Likewise.
58275         * modules/glob (glob.h): Likewise.
58276         * modules/inttypes (inttypes.h): Likewise.
58277         * modules/netinet_in (netinet/in.h): Likewise.
58278         * modules/poll (poll.h): Likewise.
58279         * modules/stdbool (stdbool.h): Likewise.
58280         * modules/stdint (stdint.h): Likewise.
58281         * modules/sys_select (sys/select.h): Likewise.
58282         * modules/sys_socket (sys/socket.h): Likewise.
58283         * modules/sys_stat (sys/stat.h): Likewise.
58284         * modules/sysexits (sysexits.h): Likewise.
58285         * modules/unistd (unistd.h): Likewise.
58286         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58287         Add a "DO NOT EDIT" comment to the generated file.
58288         (func_import): Likewise for gnulib-comp.m4.
58289
58290 2006-10-07  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/gl_sublist.h: New file.
58293         * lib/gl_sublist.c: New file.
58294
58295 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58296
58297         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58298         name (relative to the original working directory) and the file
58299         name component (relative to the temporary working directory).  All
58300         callers changed.
58301         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58302         * lib/mkdir-p.c (make_dir_parents): Likewise.
58303         * lib/mkdir-p.h (make_dir_parents): Likewise.
58304
58305 2006-10-06  Eric Blake  <ebb9@byu.net>
58306
58307         Define several macros for use by the clean-temp module.
58308         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58309         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58310         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58311
58312         * lib/clean-temp.h (close_stream_temp): New declaration.
58313         * lib/clean-temp.c (includes): Pull in headers according to what
58314         other modules are in use.
58315         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58316
58317 2006-10-06  Bruno Haible  <bruno@clisp.org>
58318
58319         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58320         instead of fopen, fwriteerror.
58321
58322 2006-10-06  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58325         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58326         int.
58327         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58328         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58329         Return an error indicator.
58330         Suggested by Eric Blake.
58331
58332 2006-10-06  Bruno Haible  <bruno@clisp.org>
58333
58334         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58335         Reported by Eric Blake.
58336
58337 2006-10-06  Bruno Haible  <bruno@clisp.org>
58338
58339         * modules/closeout (Description): Mention stderr too.
58340
58341 2006-10-06  Bruno Haible  <bruno@clisp.org>
58342         and Paul Eggert  <eggert@cs.ucla.edu>
58343
58344         * lib/closeout.c (close_stdout): Also close stderr.
58345         * lib/closeout.h: Update comment.
58346
58347 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58350         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58351         * lib/dirchownmod.c: Include lchown.h.
58352         * lib/lchown.c: Don't include files that lchown.h now includes.
58353         Don't declare chown, since lchown.h now does that.
58354         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58355         (lchown): Define to rpl_chown if lchown is declared but
58356         does not exist.  Declare using a prototype if lchown is not
58357         declared.  Add a copyright notice.
58358         * lib/mkstemp.h: Include <unistd.h>.
58359         * lib/openat.c: Include lchown.h.
58360
58361         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58362         we now test for that separately.
58363         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58364         rather than O_NOFOLLOW, when testing whether it's possible to
58365         avoid a race condition reliably.
58366         * lib/savewd.c (savewd_chdir): Likewise.
58367
58368         Remove macros that are no longer needed now that stdint.h is
58369         reliable.
58370         * lib/fsusage.c (UINTMAX_MAX): Remove.
58371         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58372         * lib/utimecmp.c (SIZE_MAX): Remove.
58373
58374         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58375
58376         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58377         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58378         O_NOATIME works.
58379
58380 2006-10-05  Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/gl_list.h (gl_sortedlist_search_from_to,
58383         gl_sortedlist_indexof_from_to): New declarations.
58384         (gl_list_implementation): New fields sortedlist_search_from_to,
58385         sortedlist_indexof_from_to.
58386         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58387         inline functions.
58388         * lib/gl_list.c (gl_sortedlist_search_from_to,
58389         gl_sortedlist_indexof_from_to): New functions.
58390         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58391         function.
58392         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58393         (gl_array_sortedlist_search_from_to): New function.
58394         (gl_array_list_implementation): Update.
58395         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58396         function.
58397         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58398         (gl_carray_sortedlist_search_from_to): New function.
58399         (gl_carray_list_implementation): Update.
58400         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58401         gl_linked_sortedlist_indexof_from_to): New functions.
58402         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58403         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58404         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58405         gl_tree_sortedlist_indexof_from_to): New functions.
58406         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58407         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58408         Update.
58409         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58410         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58411         Update.
58412
58413 2006-10-05  Bruno Haible  <bruno@clisp.org>
58414
58415         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58416         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58417         (struct gl_list_implementation): Add fields search_from_to,
58418         indexof_from_to. Remove fields search, indexof.
58419         (gl_list_search): Use the search_from_to method.
58420         (gl_list_search_from, gl_list_search_from_to): New functions.
58421         (gl_list_indexof): Use the indexof_from_to method.
58422         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58423         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58424         (gl_list_search_from, gl_list_search_from_to): New functions.
58425         (gl_list_indexof): Use the indexof_from_to method.
58426         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58427         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58428         gl_array_indexof. Add start_index, end_index arguments.
58429         (gl_array_search_from_to): Renamed from gl_array_search. Add
58430         start_index, end_index arguments.
58431         (gl_array_remove, gl_array_list_implementation): Update.
58432         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58433         gl_carray_indexof. Add start_index, end_index arguments.
58434         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58435         start_index, end_index arguments.
58436         (gl_carray_remove, gl_carray_list_implementation): Update.
58437         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58438         gl_linked_search. Add start_index, end_index arguments.
58439         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58440         start_index, end_index arguments.
58441         (gl_linked_remove): Update.
58442         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58443         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58444         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58445         field to 'size_t'.
58446         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58447         gl_tree_search. Add start_index, end_index arguments.
58448         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58449         start_index, end_index arguments.
58450         (gl_tree_remove): Update.
58451         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58452         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58453         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58454         function.
58455         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58456         gl_tree_search. Add start_index, end_index arguments.
58457         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58458         start_index, end_index arguments.
58459         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58460         Update.
58461         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58462
58463 2006-10-05  Bruno Haible  <bruno@clisp.org>
58464
58465         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58466
58467         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58468         fwriteerror_temp): New declarations.
58469         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58470         (descriptors): New variable.
58471         (cleanup): First, close the descriptors.
58472         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58473         fclose_temp, fwriteerror_temp): New functions.
58474
58475 2006-10-04  Jim Meyering  <jim@meyering.net>
58476
58477         * lib/fts.c (fts_open): Tiny comment change.
58478
58479 2006-10-04  Bruno Haible  <bruno@clisp.org>
58480
58481         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58482         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58483         gl_LOCK_BODY.
58484         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58485         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58486         gl_LOCK_EARLY_BODY.
58487         (gl_LOCK): Require gl_LOCK_BODY.
58488
58489 2006-10-04  Bruno Haible  <bruno@clisp.org>
58490
58491         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58492         (gl_oset_search_atleast): New declaration.
58493         (struct gl_oset_implementation): Add field 'search_atleast'.
58494         (gl_oset_search_atleast): New inline function.
58495         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58496         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58497         (gl_array_oset_implementation): Update.
58498         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58499         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58500         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58501
58502 2006-10-04  Bruno Haible  <bruno@clisp.org>
58503
58504         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58505
58506 2006-10-03  Bruno Haible  <bruno@clisp.org>
58507
58508         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58509         from gl_avltreehash_list_implementation.
58510
58511 2006-10-03  Bruno Haible  <bruno@clisp.org>
58512
58513         * lib/gl_oset.c (gl_oset_add): Fix return type.
58514
58515 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58516
58517         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58518
58519 2006-10-02  Eric Blake  <ebb9@byu.net>
58520
58521         * modules/strnlen (Depends-on): Add extensions.
58522
58523 2006-10-02  Eric Blake  <ebb9@byu.net>
58524
58525         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58526         definition in 2.60+.
58527
58528 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58529
58530         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58531         checks.
58532
58533 2006-10-02  Bruno Haible  <bruno@clisp.org>
58534
58535         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58536         to the AUTOMAKE_OPTIONS.
58537         Reported by Jim Meyering.
58538
58539 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58540
58541         Work around bug in Solaris 10 /proc file system:
58542         /proc/self/fd/NNN/.. isn't the parent directory of
58543         the directory whose file descriptor is NNN.  This needs to
58544         be worked around at run time, not compile time, since a
58545         program might be built on Solaris 8, where things work, and
58546         run on Solaris 10.
58547         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58548         to use the following interface instead:
58549         (OPENAT_BUFFER_SIZE): New macro.
58550         (openat_proc_name): New function.
58551         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58552         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58553         Likewise.
58554         * lib/openat-proc.c: New file.
58555         * modules/openat (Files): Add lib/openat-proc.c.
58556         (Depends-on): Add same-inode, stdbool.
58557         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58558
58559 2006-09-29  Bruno Haible  <bruno@clisp.org>
58560
58561         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58562         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58563         argument. Set stdout_closed before testing for ferror, not after.
58564         (fwriteerror, fwriteerror_no_ebadf): New functions.
58565
58566 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58567
58568         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58569
58570 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58571
58572         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58573         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58574
58575 2006-09-28  Jim Meyering  <jim@meyering.net>
58576
58577         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58578         Include <unistd.h>.
58579
58580 2006-09-28  Bruno Haible  <bruno@clisp.org>
58581
58582         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58583         * modules/linkedhash-list (Depends-on): Likewise.
58584         * modules/rbtreehash-list (Depends-on): Likewise.
58585
58586 2006-09-28  Bruno Haible  <bruno@clisp.org>
58587
58588         * lib/strndup.h: Simplify the redefinition of strndup.
58589         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58590         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58591
58592 2006-09-28  Bruno Haible  <bruno@clisp.org>
58593
58594         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58595         * lib/gl_linkedhash_list.c: Likewise.
58596         * lib/gl_rbtreehash_list.c: Likewise.
58597
58598 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58599
58600         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58601         getaddrinfo.
58602
58603         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58604         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58605         it causes <stdio_ext.h> to cause a compile-time error.
58606         Problem reported by Nelson H. F. Beebe.
58607         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58608         of HAVE_DECL___PENDING.
58609
58610         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58611         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58612         declaration.
58613
58614 2006-09-27  Jim Meyering  <jim@meyering.net>
58615
58616         This file could end up with a definition for a function
58617         named __strndup, rather than rpl_strndup on a system with
58618         incomplete weak_alias support.
58619         * lib/strndup.c (strndup): Rename from __strndup.
58620         Remove #defines that used to map __strndup to strndup.
58621         Don't use K&R prototypes.
58622         Remove LIBC-related code, since this file is not sync'd with glibc.
58623         * lib/strndup.h: Revamp, accordingly.
58624         * m4/strndup.m4: Modernize.
58625
58626 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58627
58628         * modules/savewd (Depends-on): Add 'raise'.
58629         * lib/savewd.c: Include <signal.h>, for 'raise'.
58630
58631 2006-09-26  Jim Meyering  <jim@meyering.net>
58632
58633         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58634         when we detect Darwin 8.7.0's acl_get_file bug.
58635         Rearrange to perform the new (below) run-test while $LIBS
58636         contains any acl-related library.  Set USE_ACL at the end.
58637         (gl_ACL_GET_FILE): New function.
58638
58639 2006-09-26  Eric Blake  <ebb9@byu.net>
58640
58641         * lib/verror.c: Include <config.h> unconditionally.
58642
58643 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58644
58645         * modules/clock-time (Maintainer): Add self.
58646         * modules/getlogin_r (Depends-on): Add extensions.
58647
58648 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58649
58650         * modules/clock-time: New module.
58651         * modules/nanosleep (Depends-on): Add clock-time.
58652         * modules/gethrxtime (Depends-on): Likewise.
58653         * modules/gettime (Depends-on): Likewise.
58654         * modules/settime (Depends-on): Likewise.
58655
58656         * modules/fts-lgpl: Depend on openat.
58657         * modules/mkancesdirs: Depend on savewd.
58658         * modules/mkdir-p: Likewise.
58659
58660 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58661
58662         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58663
58664         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58665         `gl_have_arbitrary_file_name_length_limit' to
58666         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58667         actually works between configure runs.
58668
58669 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58670             Bruno Haible  <bruno@clisp.org>
58671
58672         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58673
58674 2006-09-25  Jim Meyering  <jim@meyering.net>
58675
58676         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58677         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58678
58679 2006-09-25  Eric Blake  <ebb9@byu.net>
58680
58681         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58682         exec's in 2006-09-18 patch when shuffling fds.
58683
58684 2006-09-25  Bruno Haible  <bruno@clisp.org>
58685
58686         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58687         Reported by Jim Meyering.
58688
58689 2006-09-24  Jim Meyering  <jim@meyering.net>
58690
58691         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58692         compare a pointer against a literal "0".  That caused failures with
58693         at least HP-UX's hpcc.
58694
58695 2006-09-22  Simon Josefsson  <jas@extundo.com>
58696
58697         * modules/gc-sha1:
58698         * modules/gc-md4:
58699         * modules/gc-hmac-sha1:
58700         * modules/gc-hmac-md5:
58701         * modules/gc-des:
58702         * modules/gc-arcfour: Distribute more files.
58703
58704 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58705
58706         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58707         (gl_linked_iterator_from_to): Initialize struct completely.
58708         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58709         (gl_tree_iterator_from_to): Likewise
58710         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58711         * lib/gl_array_list.c [lint] (gl_array_iterator)
58712         (gl_array_iterator_from_to): Likewise.
58713         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58714         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58715         (gl_carray_iterator_from_to): Likewise.
58716
58717         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58718         * lib/md4.c (md4_process_block): Remove unused variable.
58719         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58720         parentheses for clarity.
58721
58722 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58723
58724         * modules/bison-i18n (Depends-on): Add gettext.
58725
58726 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58727
58728         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58729         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58730         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58731         also add missing comma that caused broken test.
58732         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58733         stdlib.h, for `abort'.
58734         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58735         variables.
58736         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58737         include unistd.h if present, for `rmdir'.
58738         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58739         variables.
58740         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58741         in the process include standard headers for prototypes.
58742         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58743         gets declared on GNU/Linux.
58744         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58745         unistd.h, for `rmdir'.
58746         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58747
58748         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58749         always true.
58750         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58751
58752         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58753
58754 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58755
58756         * gnulib-tool (func_version): Create output all at once.  This
58757         may help avoid triggering unnecessary SIGPIPEs, and at any
58758         rate it doesn't hurt.
58759
58760 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58761             Bruno Haible  <bruno@clisp.org>
58762
58763         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58764         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58765         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58766
58767         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58768         (gl_FUNC_VASPRINTF): Invoke it.
58769
58770 2006-09-22  Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58773         getloadavg.c as first argument.
58774
58775 2006-09-22  Bruno Haible  <bruno@clisp.org>
58776
58777         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58778         at the beginning of the gl_INIT macro.
58779         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58780         gl_GETLOADAVG.
58781
58782 2006-09-22  Bruno Haible  <bruno@clisp.org>
58783
58784         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58785         module.
58786         Suggested by Ralf Wildenhues.
58787
58788 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58789
58790         Import this patch from libc:
58791
58792         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58793
58794         * lib/regex_internal.c (re_string_reconstruct): Handle
58795         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58796         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58797         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58798         re_string_context_at.
58799
58800         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58801         now requires it.
58802         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58803         gl_REGEX now does it for us.
58804         (gl_REGEX): Add test taken from
58805         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58806
58807         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58808         Check that large offsets work.  Modernize Autoconf usages.
58809         Prefer "yes" to mean a good thing rather than a bad.
58810         Don't put "#define mkstemp" in config.h, as this might interfere
58811         with standard system headers that "#define mkstemp mkstemp64".
58812
58813         * modules/mkstemp (Depends-on): Add extensions, so that
58814         mkstemp is visible on some platforms.
58815         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58816         (Include): Change to "mkstemp.h" from <stdlib.h>.
58817         (Files): Add mkstemp.h.
58818
58819         * lib/mkstemp.h: New file, since some standard headers
58820         #define mkstemp.
58821         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58822         Include "mkstemp.h".
58823         Make the _LIBC code resemble glibc original more,
58824         e.g., use K&R style.
58825         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58826         (mkstemp): Remove, since mkstemp.h does this for us.
58827         * lib/stdlib--.h: Include mkstemp.h.
58828
58829         Import this patch from libc:
58830
58831         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58832
58833         * lib/tempname.c (__gen_tempname): Change attempts_min
58834         into a macro.  Use preprocessor to decide how to initialize
58835         attempts [Coverity CID 67].
58836
58837 2006-09-20  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/mkdtemp.c: Import from libc.
58840         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58841                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58842                 attempts_min into a macro.  Use preprocessor to decide how to
58843                 initialize attempts [Coverity CID 67].
58844         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58845                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58846                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58847
58848 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58849
58850         * gnulib-tool (func_exit): New function, to allow to pass the
58851         exit status portably through the trap.  Use everywhere.
58852         (--help, --version): Signal a write error.
58853         (trap): catch SIGPIPE, for write errors.
58854         Exit at the end of the trap, with the correct exit status.
58855
58856 2006-09-19  Karl Berry  <karl@gnu.org>
58857
58858         * doc/gnulib.texi: note about the license texinfo files.
58859
58860 2006-09-19  Eric Blake  <ebb9@byu.net>
58861
58862         * gnulib-tool: Avoid space-tab.
58863
58864 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58865
58866         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58867         that prevented coreutils 6.1 from building.  Problem reported
58868         by Petter Reinholdtsen.
58869
58870 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58871
58872         * gnulib-tool (avoidlist): Fix typo that broke options like
58873         --avoid=lock that are used by coreutils bootstrap.
58874
58875 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58876
58877         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58878         more systematically.
58879
58880 2006-09-18  Jim Meyering  <jim@meyering.net>
58881
58882         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58883
58884 2006-09-18  Bruno Haible  <bruno@clisp.org>
58885
58886         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58887
58888 2006-09-18  Bruno Haible  <bruno@clisp.org>
58889
58890         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58891         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58892         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58893         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58894         * m4/gettext.m4: Require autoconf >= 2.52.
58895         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58896         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58897         of gl_cv_header_inttypes_h.
58898
58899 2006-09-18  Bruno Haible  <bruno@clisp.org>
58900
58901         * lib/javaversion.c: Include configmake.h.
58902
58903 2006-09-18  Bruno Haible  <bruno@clisp.org>
58904
58905         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58906         avoid that the while loops be executed in a subshell.
58907
58908 2006-09-18  Bruno Haible  <bruno@clisp.org>
58909
58910         * MODULES.html.sh (func_module): Break long lines.
58911         Suggested by Bruce Korb <bkorb@gnu.org>.
58912
58913 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58914
58915         Speed up by a factor of 1.12.
58916         * gnulib-tool (nl): New variable.
58917         (func_import): Rewrite include directive extraction to only read each
58918         directive once.
58919
58920 2006-09-17  Bruno Haible  <bruno@clisp.org>
58921
58922         * modules/javaversion (Makefile.am): Remove DEFS setting.
58923         (Depends-on): Add configmake, for PKGDATADIR definition.
58924
58925 2006-09-17  Bruno Haible  <bruno@clisp.org>
58926
58927         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58928
58929 2006-09-17  Bruno Haible  <bruno@clisp.org>
58930
58931         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58932         (func_modules_transitive_closure, func_modules_add_dummy,
58933         func_modules_to_filelist, func_import, func_create_testdir,
58934         func_create_megatestdir, ...): Use it wherever possible.
58935         Suggested by Ralf Wildenhues.
58936
58937 2006-09-16  Karl Berry  <karl@gnu.org>
58938
58939         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58940         to avoid sectioning errors.
58941         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58942         [ifinfo]: blank line after @center-ed titles.
58943         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58944         Spell FSF address consistently with others.
58945         (These changes approved by rms.)
58946
58947 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58948
58949         Speed up by a factor of 1.61.
58950         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58951         already checked module names again.
58952
58953 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58954
58955         Speed up by a factor of 1.13.
58956         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58957         for new_files, and the input to func_add_or_update.
58958
58959 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58960
58961         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58962         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58963
58964 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58965
58966         * modules/mkancesdirs (Depends-on): Add fcntl.
58967         * modules/savewd: New file.
58968         * MODULES.html.sh (File system functions): Add savewd.
58969
58970         * modules/configmake (Makefile.am): Add support for the
58971         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58972
58973 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58974
58975         * m4/savewd.m4: New file.
58976
58977 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58978
58979         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58980         (dirchownmod): New arg FD.  All callers changed.
58981         Use FD rather than opening the directory ourself, as opening is
58982         now the caller's responsibility.
58983         * lib/dirchownmod.h: Likewise.
58984         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58985         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58986         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58987         (test_dir): Remove.
58988         (mkancesdirs): Return length of prefix of FILE that has already
58989         been made, or -2 if there is a child doing the work.  Redo
58990         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58991         ".", and treat ".." specially since it might stray back into
58992         already-created areas.  Use a subprocess if necessary.  New arg
58993         WD; all users changed.  MAKE_DIR function should now return 1
58994         if it creates a directory that is not readable.  Return -2 if
58995         a child process is spun off.
58996         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58997         Adjust signature to match code.
58998         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58999         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59000         all users changed.
59001         * lib/savewd.c, lib/savewd.h: New files.
59002
59003 2006-09-15  Jim Meyering  <jim@meyering.net>
59004
59005         * modules/rename-dest-slash: New module.
59006         * MODULES.html.sh (posix_compat): Add it here.
59007
59008         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59009
59010 2006-09-15  Jim Meyering  <jim@meyering.net>
59011
59012         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59013         file.
59014
59015         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59016
59017 2006-09-15  Jim Meyering  <jim@meyering.net>
59018
59019         * lib/rename-dest-slash.c (has_trailing_slash): Use
59020         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59021         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59022         test before testing whether SRC is a directory.
59023         Suggestions from Bruno Haible.
59024
59025         Avoid a warning about an unused variable.
59026         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59027         into the #ifdef block where it's used.
59028
59029         * lib/rename-dest-slash.c: New file.
59030
59031 2006-09-14  Bruno Haible  <bruno@clisp.org>
59032
59033         * lib/allocsa.c: Include <config.h> unconditionally.
59034         * lib/asnprintf.c: Likewise.
59035         * lib/asprintf.c: Likewise.
59036         * lib/c-strcasecmp.c: Likewise.
59037         * lib/c-strcasestr.c: Likewise.
59038         * lib/c-strncasecmp.c: Likewise.
59039         * lib/c-strstr.c: Likewise.
59040         * lib/classpath.c: Likewise.
59041         * lib/clean-temp.c: Likewise.
59042         * lib/concatpath.c: Likewise.
59043         * lib/copy-file.c: Likewise.
59044         * lib/csharpcomp.c: Likewise.
59045         * lib/csharpexec.c: Likewise.
59046         * lib/execute.c: Likewise.
59047         * lib/fatal-signal.c: Likewise.
59048         * lib/findprog.c: Likewise.
59049         * lib/fwriteerror.c: Likewise.
59050         * lib/gl_array_list.c: Likewise.
59051         * lib/gl_array_oset.c: Likewise.
59052         * lib/gl_avltree_list.c: Likewise.
59053         * lib/gl_avltree_oset.c: Likewise.
59054         * lib/gl_avltreehash_list.c: Likewise.
59055         * lib/gl_carray_list.c: Likewise.
59056         * lib/gl_linked_list.c: Likewise.
59057         * lib/gl_linkedhash_list.c: Likewise.
59058         * lib/gl_list.c: Likewise.
59059         * lib/gl_oset.c: Likewise.
59060         * lib/gl_rbtree_list.c: Likewise.
59061         * lib/gl_rbtree_oset.c: Likewise.
59062         * lib/gl_rbtreehash_list.c: Likewise.
59063         * lib/imaxabs.c: Likewise.
59064         * lib/imaxdiv.c: Likewise.
59065         * lib/javacomp.c: Likewise.
59066         * lib/javaexec.c: Likewise.
59067         * lib/javaversion.c: Likewise.
59068         * lib/linebreak.c: Likewise.
59069         * lib/localcharset.c: Likewise.
59070         * lib/lock.c: Likewise.
59071         * lib/mbchar.c: Likewise.
59072         * lib/mbswidth.c: Likewise.
59073         * lib/mkdtemp.c: Likewise.
59074         * lib/pipe.c: Likewise.
59075         * lib/printf-args.c: Likewise.
59076         * lib/printf-parse.c: Likewise.
59077         * lib/progname.c: Likewise.
59078         * lib/progreloc.c: Likewise.
59079         * lib/readlink.c: Likewise.
59080         * lib/sh-quote.c: Likewise.
59081         * lib/stpcpy.c: Likewise.
59082         * lib/stpncpy.c: Likewise.
59083         * lib/strcasecmp.c: Likewise.
59084         * lib/strcasestr.c: Likewise.
59085         * lib/strcspn.c: Likewise.
59086         * lib/striconv.c: Likewise.
59087         * lib/strncasecmp.c: Likewise.
59088         * lib/strnlen1.c: Likewise.
59089         * lib/strstr.c: Likewise.
59090         * lib/strtok_r.c: Likewise.
59091         * lib/tls.c: Likewise.
59092         * lib/tmpdir.c: Likewise.
59093         * lib/unicodeio.c: Likewise.
59094         * lib/unsetenv.c: Likewise.
59095         * lib/vasnprintf.c: Likewise.
59096         * lib/vasprintf.c: Likewise.
59097         * lib/wait-process.c: Likewise.
59098         * lib/xallocsa.c: Likewise.
59099         * lib/xsetenv.c: Likewise.
59100         * lib/xstriconv.c: Likewise.
59101
59102 2006-09-13  Simon Josefsson  <jas@extundo.com>
59103
59104         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59105         that internally, suggested by Ralf Wildenhues
59106         <Ralf.Wildenhues@gmx.de>.
59107
59108 2006-09-13  Simon Josefsson  <jas@extundo.com>
59109
59110         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59111         @LIBOBJS@.
59112         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59113
59114 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59117         longer worry about uses that don't define HAVE_CONFIG_H.
59118         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59119         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59120         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59121         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59122         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59123         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59124         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59125         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59126         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59127         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59128         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59129         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59130         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59131         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59132         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59133         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59134         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59135         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59136         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59137         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59138         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59139         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59140         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59141         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59142         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59143         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59144         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59145         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59146         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59147         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59148         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59149         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59150         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59151         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59152         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59153         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59154         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59155         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59156         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59157         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59158         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59159         Likewise.
59160
59161 2006-09-13  Eric Blake  <ebb9@byu.net>
59162
59163         * lib/getopt.c: Fix typo in last commit.
59164
59165 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59166
59167         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59168         dgettext.
59169
59170 2006-09-12  Jim Meyering  <jim@meyering.net>
59171
59172         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59173         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59174         Reported by Nelson H. F. Beebe.
59175
59176 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59177
59178         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59179         program_invocation_name and program_invocation_short_name are
59180         initialized.
59181         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59182         and program_invocation_short_name to argp.h, so they are visible
59183         to user programs.
59184         * lib/argp.h: Likewise
59185
59186 2006-09-10  Bruno Haible  <bruno@clisp.org>
59187
59188         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59189         m4/inttypes_h.m4, m4/uintmax_t.m4.
59190
59191 2006-09-10  Bruno Haible  <bruno@clisp.org>
59192
59193         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59194         gl_AC_TYPE_UINTMAX_T.
59195
59196 2006-09-10  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59199
59200 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59201
59202         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59203         convention.  Text proposed by Bruno Haible.
59204         (struct argp_option): Document the use of N_() wrappers.
59205
59206         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59207         '\v', and translate the two parts separately, instead of feeding
59208         the whole string to gettext.  This allows to exclude
59209         '\v' from the strings visible to the translator by writing doc
59210         strings as N_("..") "\v" N_("..").
59211
59212 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59213
59214         * config/srclist.txt: Undo latest change; the bug was fixed.
59215
59216 2006-09-09  Bruno Haible  <bruno@clisp.org>
59217
59218         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59219         assignments if building a library without libtool.
59220         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59221         in func_emit_lib_Makefile_am.
59222         (func_import): When building a static library libfoo.a, arrange to
59223         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59224         (func_create_testdir): Likewise.
59225         * modules/gc (configure.ac, Makefile.am): If building statically,
59226         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59227         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59228         * modules/striconv (configure.ac, Makefile.am): Likewise.
59229         Based on a suggestion by Ralf Wildenhues.
59230
59231 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59232
59233         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59234         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59235         Also:
59236
59237         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59238         Add year_2050_test to catch glibc bug 2821
59239         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59240
59241         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59242         Prefer #ifdef to #if.
59243
59244         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59245         Return from 'main' instead of calling 'exit'.
59246
59247 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59248
59249         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59250         returned the maximum time_t value rather than (time_t) -1.
59251         Problem originally reported by William Bardwell
59252         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59253
59254         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59255         Moved to here ...
59256         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59257         ... from here.
59258
59259 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59260
59261         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59262         2821 is fixed.
59263
59264 2006-09-08  Jim Meyering  <jim@meyering.net>
59265
59266         Don't make generated files read-only.  That would bother too many
59267         people.  However, do retain the ability to work when targets are
59268         read-only: remove the destination and temporary files before writing
59269         them (when generated via sed or echo), or by using the -f option for
59270         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59271         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59272         * modules/byteswap, modules/configmake, modules/fcntl:
59273         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59274         * modules/localcharset, modules/netinet_in, modules/poll:
59275         * modules/stdbool, modules/stdint, modules/sys_select:
59276         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59277
59278 2006-09-08  Jim Meyering  <jim@meyering.net>
59279
59280         Avoid new build failure on FreeBSD 6.0.
59281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59282         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59283         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59284
59285 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59286
59287         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59288
59289 2006-09-07  Jim Meyering  <jim@meyering.net>
59290
59291         Fix global typo in last change: use chmod u-w, not chmod u-x.
59292         Spotted by Paul Eggert and Bruce Korb.
59293         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59294         * modules/byteswap, modules/configmake, modules/fcntl:
59295         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59296         * modules/localcharset, modules/netinet_in, modules/poll:
59297         * modules/stdbool, modules/stdint, modules/sys_select:
59298         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59299
59300 2006-09-06  Jim Meyering  <jim@meyering.net>
59301
59302         Make generated files be read-only.
59303         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59304         Ensure that each generated file is now read-only.
59305         * modules/argz: Likewise.
59306         * modules/arpa_inet: Likewise.
59307         * modules/byteswap: Likewise.
59308         * modules/configmake: Likewise.
59309         * modules/fcntl: Likewise.
59310         * modules/fnmatch: Likewise.
59311         * modules/getopt: Likewise.
59312         * modules/glob: Likewise.
59313         * modules/inttypes: Likewise.
59314         * modules/netinet_in: Likewise.
59315         * modules/poll: Likewise.
59316         * modules/stdbool: Likewise.
59317         * modules/stdint: Likewise.
59318         * modules/sys_select: Likewise.
59319         * modules/sys_socket: Likewise.
59320         * modules/sys_stat: Likewise.
59321         * modules/sysexits: Likewise.
59322         * modules/localcharset: Same as above, but continue using temporary
59323         file named "t-$@" (why different?) rather than the "$@-t" used
59324         everywhere else.
59325
59326         * modules/sysexits (Makefile.am): Replace literal occurrences
59327         of "sysexit.h" more readable, and more consistent, "$@".
59328
59329 2006-09-06  Bruno Haible  <bruno@clisp.org>
59330
59331         * modules/striconv: New file.
59332         * modules/xstriconv: New file.
59333         * MODULES.html.sh (Internationalization functions): Add striconv,
59334         xstriconv.
59335
59336 2006-09-06  Bruno Haible  <bruno@clisp.org>
59337
59338         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59339         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59340         not using libtool correctly.
59341
59342 2006-09-06  Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/striconv.h: New file.
59345         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59346         iconvstring.c.
59347         * lib/xstriconv.h: New file.
59348         * lib/xstriconv.c: New file.
59349
59350 2006-09-06  Bruno Haible  <bruno@clisp.org>
59351
59352         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59353         lib_..._LDFLAGS.
59354
59355 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59356
59357         * lib/argz_.h: Sync from Libtool.
59358
59359         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59360                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59361
59362         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59363
59364 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59365
59366         * modules/trim: New file.
59367
59368 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59369
59370         * lib/trim.h: New file.
59371         * lib/trim.c: New file.
59372
59373 2006-09-05  Bruno Haible  <bruno@clisp.org>
59374
59375         * MODULES.html.sh (String handling): Add trim.
59376
59377 2006-09-04  Karl Berry  <karl@gnu.org>
59378
59379         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59380         until next release.
59381
59382 2006-09-03  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59385         correctly.
59386
59387 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59388
59389         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59390         not gl_GETLOADAVG.  Omit unneeded semicolons.
59391         Problems reported by Ralf Wildenhues in
59392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59393         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59394         at the end, which is the usual gnulib style.
59395
59396         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59397         of doing all the work ourselves.
59398         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59399         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59400
59401 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59402
59403         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59404         Problem reported by Ralf Wildenhues in
59405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59406
59407         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59408         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59409
59410 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59411
59412         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59413         yesterday's patch by changing test -n to test -z.
59414
59415 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59416
59417         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59418         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59419         the former is now obsolescent.
59420
59421         * modules/chdir-long (Depends-on): Add fcntl.
59422
59423 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59426         obsolescent, and programs should use gnulib instead.
59427         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59428         but with prefixes changed.
59429
59430 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59431
59432         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59433         or stdbool.h, because they might not exist while configuring.
59434
59435         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59436         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59437         does that for us.
59438         (O_DIRECTORY): Remove.
59439
59440 2006-08-31  Eric Blake  <ebb9@byu.net>
59441
59442         * gnulib-tool: Don't let emacs change spaces to TAB.
59443
59444 2006-08-31  Bruno Haible  <bruno@clisp.org>
59445
59446         * gnulib-tool: When calling func_import more than once, do it in a
59447         subshell.
59448         Reported by Eric Blake <ebb9@byu.net>.
59449
59450 2006-08-31  Bruno Haible  <bruno@clisp.org>
59451
59452         * gnulib-tool (nl): Remove variable.
59453         (sed_transform_lib_file): Use more robust test for config-h module.
59454         (func_import): Fix typo in 2006-08-25 patch.
59455
59456 2006-08-31  Bruno Haible  <bruno@clisp.org>
59457
59458         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59459         specified, augment Makefile.am variables instead of assigning them.
59460
59461 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59462
59463         Work around a bug in both the Linux and SunOS 64-bit kernels:
59464         nanosleep mishandles sleeps for longer than 2**31 seconds.
59465         Problem reported by Frank v Waveren in
59466         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59467         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59468         Check for nanosleep bug.
59469         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59470
59471 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59472
59473         Work around a bug in both the Linux and SunOS 64-bit kernels:
59474         nanosleep mishandles sleeps for longer than 2**31 seconds.
59475         Problem reported by Frank v Waveren in
59476         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59477         * lib/nanosleep.c (BILLION): New constant.
59478         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59479         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59480         implementation.
59481
59482 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59483
59484         * modules/nanosleep (Depends-on): Add gettime.
59485
59486 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59487         and Simon Josefsson  <jas@extundo.com>
59488         and Oskar Liljeblad  <oskar@osk.mine.nu>
59489
59490         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59491         * gnulib-tool (func_import): New license type 'unmodifiable license
59492         text'.
59493         * modules/fdl: Use it.  Longer description.
59494         * module/gpl, module/lgpl: New files.
59495
59496 2006-08-30  Jim Meyering  <jim@meyering.net>
59497
59498         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59499         shadowing the parameter.
59500
59501 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59502
59503         Sync from Libtool:
59504
59505         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59506
59507         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59508         sharing with gnulib.  Report by Eric Blake.
59509
59510 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         * modules/isapipe: New file.
59513         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59514
59515 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59516
59517         * modules/configmake (Makefile.am): Add a comment, and omit
59518         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59519         by Bruno Haible.
59520
59521 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * m4/isapipe.m4: New file.
59524
59525 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         * lib/isapipe.c, lib/isapipe.h: New files.
59528
59529 2006-08-29  Jim Meyering  <jim@meyering.net>
59530
59531         * modules/configmake (Makefile.am): Make configmake.h depend on
59532         Makefile.  Otherwise, a stale configmake.h could hang around.
59533
59534 2006-08-29  Eric Blake  <ebb9@byu.net>
59535
59536         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59537         resolution of upstream bug 3044.
59538
59539 2006-08-29  Bruno Haible  <bruno@clisp.org>
59540
59541         * modules/localcharset (Depends-on): Add configmake.
59542         (Makefile.am): Remove setting of LIBDIR through DEFS.
59543
59544 2006-08-29  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59547         defined.
59548
59549 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59550
59551         * modules/fcntl: New file.
59552         * modules/chdir-safer (Depends-on): Add fcntl.
59553         * modules/fts: Likewise.
59554         * modules/mkdir-p: Likewise.
59555
59556         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59557         This undoes the most recent change, since we're now addressing the
59558         problem in a different way.
59559
59560         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59561         into output, since the output might be called Makefile.am even
59562         if $makefile_name is something different.
59563         (func_import): Use $makefile_am rather than
59564         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59565         empty.
59566
59567         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59568
59569 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59572         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59573         recent change to stdint.m4, since we're now addressing the problem in a
59574         different way.
59575
59576 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59577
59578         * m4/fcntl_h.m4: New file.
59579
59580 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59581
59582         * lib/fcntl_.h: New file.
59583         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59584         the fcntl module.
59585         * lib/dirchownmod.c: Likewise.
59586         * lib/fts.c: Likewise.
59587
59588         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59589         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59590         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59591         just before including <inttypes.h>, to avoid circular inclusion.
59592
59593 2006-08-28  Jim Meyering  <jim@meyering.net>
59594
59595         * doc/visibility.texi: Actually read and correct the grammar of the
59596         sentence affected by yesterday's change.
59597
59598 2006-08-28  Eric Blake  <ebb9@byu.net>
59599
59600         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59601         needs wrapper.
59602
59603 2006-08-28  Eric Blake  <ebb9@byu.net>
59604
59605         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59606
59607 2006-08-28  Eric Blake  <ebb9@byu.net>
59608
59609         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59610
59611 2006-08-28  Bruno Haible  <bruno@clisp.org>
59612
59613         * modules/c-strstr: New file, from GNU gettext.
59614         * MODULES.html.sh (String handling): Add c-strstr.
59615
59616 2006-08-28  Bruno Haible  <bruno@clisp.org>
59617
59618         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59619         macros.
59620         Reported by Eric Blake.
59621
59622 2006-08-28  Bruno Haible  <bruno@clisp.org>
59623
59624         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59625         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59626         * lib/vasprintf.c: Include errno.h, limits.h.
59627         (EOVERFLOW): New fallback definition.
59628         (vasprintf): Test here whether the string length is > INT_MAX.
59629         * lib/vsnprintf.c: Include errno.h, limits.h.
59630         (EOVERFLOW): New fallback definition.
59631         (vsnprintf): Fix bug when generated string was too long for the buffer.
59632         Test here whether the string length is > INT_MAX.
59633
59634 2006-08-28  Bruno Haible  <bruno@clisp.org>
59635
59636         * lib/inttypes_.h (SCNX*): Remove definitions.
59637         Reported by Eric Blake.
59638
59639 2006-08-28  Bruno Haible  <bruno@clisp.org>
59640
59641         * lib/c-strstr.h: New file, from GNU gettext.
59642         * lib/c-strstr.c: New file, from GNU gettext.
59643
59644 2006-08-28  Bruno Haible  <bruno@clisp.org>
59645
59646         * gnulib-tool: Reorder some statements.
59647
59648 2006-08-28  Bruno Haible  <bruno@clisp.org>
59649
59650         * gnulib-tool: New option --makefile-name.
59651         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59652         $makefile_name.
59653         (func_import): Write $makefile_name to the cache file, and read it from
59654         there unless explicitly specified. Use $makefile_name as file name
59655         instead of Makefile.am. Adjust the recommendations accordingly.
59656
59657 2006-08-28  Bruno Haible  <bruno@clisp.org>
59658
59659         * gnulib-tool (func_verify_module): Check against misapplying patch.
59660
59661 2006-08-28  Bruno Haible  <bruno@clisp.org>
59662
59663         * gnulib-tool (func_relativize, func_relconcat): New functions.
59664         Give an error if --local-dir is given with --update.
59665         Remove trailing slashes from $local_gnulib_dir.
59666         (func_import): Store the relativized $local_gnulib_dir in
59667         gnulib-cache.m4, and read it from there if not specified explicitly.
59668
59669 2006-08-28  Bruno Haible  <bruno@clisp.org>
59670
59671         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59672         is the current directory. Respect also $local_gnulib_dir.
59673
59674 2006-08-28  Bruno Haible  <bruno@clisp.org>
59675             Simon Josefsson  <jas@extundo.com>
59676
59677         BeOS portability.
59678         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59679
59680 2006-08-27  Jim Meyering  <jim@meyering.net>
59681
59682         * doc/visibility.texi: Remove duplicate word: "pointer".
59683
59684 2006-08-26  Bruno Haible  <bruno@clisp.org>
59685
59686         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59687         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59688         (Makefile.am): Create inttypes.h from inttypes_.h.
59689         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59690
59691         * modules/imaxabs: New file.
59692
59693         * modules/imaxdiv: New file.
59694
59695 2006-08-26  Bruno Haible  <bruno@clisp.org>
59696
59697         * m4/inttypes.m4: New file.
59698         * m4/_inttypes_h.m4: Remove file.
59699         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59700         PRI_MACROS_BROKEN.
59701         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59702
59703         * m4/imaxabs.m4: New file.
59704
59705         * m4/imaxdiv.m4: New file.
59706
59707 2006-08-26  Bruno Haible  <bruno@clisp.org>
59708
59709         * lib/inttypes_.h: New file.
59710         * lib/inttypes.h: Remove file.
59711         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59712
59713         * lib/imaxabs.c: New file.
59714
59715         * lib/imaxdiv.c: New file.
59716
59717 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59718
59719         New config-h module, so that "make" output needn't be cluttered
59720         by -DHAVE_CONFIG_H.
59721         * MODULES.html.sh (Support for building libraries and executables):
59722         Add config-h.
59723         * modules/config-h: New file.
59724         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59725         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59726         the config-h module is used.
59727
59728         New configmake module, so that "make" output needn't be cluttered
59729         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59730         * MODULES.html.sh (Support for building libraries and executables):
59731         Add configmake.
59732         * modules/configmake: New file.
59733
59734 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59735
59736         * m4/config-h.m4: New file.
59737
59738 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * config/srclist.txt: Add elisp-comp.
59741
59742 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * MODULES.html.sh (Support for building libraries and executables):
59745         Add elisp-comp.
59746         * build-aux/elisp-comp: New file.
59747         * modules/elisp-comp: New file.
59748
59749 2006-08-24  Bruno Haible  <bruno@clisp.org>
59750
59751         * gnulib-tool (func_create_testdir): Use non-default values of
59752         sourcebase and m4base.
59753
59754 2006-08-24  Bruno Haible  <bruno@clisp.org>
59755
59756         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59757         HTML structure.
59758
59759 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59760
59761         * modules/openat (Depends-on): Add lchown.
59762
59763 2006-08-23  Bruno Haible  <bruno@clisp.org>
59764
59765         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59766         of gl_LOCK_EARLY instead of gl_LOCK.
59767
59768 2006-08-23  Bruno Haible  <bruno@clisp.org>
59769
59770         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59771         on OSF/1 to no.
59772         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59773
59774 2006-08-23  Bruno Haible  <bruno@clisp.org>
59775
59776         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59777         as unusable.
59778
59779         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59780         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59781         (gl_LOCK): New macro.
59782
59783 2006-08-22  Simon Josefsson  <jas@extundo.com>
59784
59785         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59786         to md5 module.
59787
59788 2006-08-22  Simon Josefsson  <jas@extundo.com>
59789
59790         * MODULES.html.sh: Add "Support for maintaining and release
59791         projects".
59792
59793         * build-aux/gnupload: New file, from coreutils.
59794
59795 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59796
59797         Avoid the need for AC_LIBSOURCES in m4 macros.
59798         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59799         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59800         * modules/check-version (EXTRA_DIST): Add check-version.h.
59801         * modules/crc (EXTRA_DIST): Add crc.h.
59802         * modules/des (EXTRA_DIST): Add des.h.
59803         * modules/gc (EXTRA_DIST): Add gc.h.
59804         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59805         * modules/getline (EXTRA_DIST): Add getline.h.
59806         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59807         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59808         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59809         * modules/md2 (EXTRA_DIST): Add md2.h.
59810         * modules/md4 (EXTRA_DIST): Add md4.h.
59811         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59812         * modules/read-file (EXTRA_DIST): Add read-file.h.
59813         * modules/readline (EXTRA_DIST): Add readline.h.
59814         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59815         rijndael-api-fst.h.
59816
59817 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         * m4/rijndael.m4 (gl_ARCFOUR):
59820         * m4/arctwo.m4 (gl_ARCTWO):
59821         * m4/check-version.m4 (gl_CHECK_VERSION):
59822         * m4/crc.m4 (gl_CRC):
59823         * m4/des.m4 (gl_DES):
59824         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59825         * m4/gc.m4 (gl_GC):
59826         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59827         * m4/getline.m4 (gl_FUNC_GETLINE):
59828         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59829         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59830         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59831         * m4/md2.m4 (gl_MD2):
59832         * m4/md4.m4 (gl_MD4):
59833         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59834         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59835         * m4/readline.m4 (gl_FUNC_READLINE):
59836         * m4/rijndael.m4 (gl_RIJNDAEL):
59837         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59838         to get the necessary .h files and whatnot.
59839
59840 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59841
59842         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59843         gnulib rather than the other way around.
59844         * config/srclistvars.sh (COREUTILS): Remove.
59845
59846 2006-08-22  Jim Meyering  <jim@meyering.net>
59847
59848         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59849
59850         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59851
59852 2006-08-22  Eric Blake  <ebb9@byu.net>
59853
59854         * modules/regexprops-generic: New file.
59855         * MODULES.html.sh (Support for building documentation): List it.
59856
59857 2006-08-22  Eric Blake  <ebb9@byu.net>
59858
59859         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59860         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59861         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59862         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59863
59864 2006-08-22  Bruno Haible  <bruno@clisp.org>
59865
59866         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59867         and lib_LTLIBRARIES like the other lib_* variables.
59868
59869 2006-08-22  Bruno Haible  <bruno@clisp.org>
59870
59871         * build-aux/x-to-1.in: New file, from GNU gettext.
59872
59873 2006-08-22  Bruno Haible  <bruno@clisp.org>
59874
59875         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59876         <utmpx.h> exists.
59877
59878 2006-08-22  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59881         <utmpx.h> exists.
59882
59883 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59884
59885         BeOS portability.
59886         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59887         exist.
59888         Problem reported by Bruno Haible.
59889
59890 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         Avoid the need for AC_LIBSOURCES in m4 macros.
59893         * modules/acl (EXTRA_DIST): Add acl.h.
59894         * modules/argmatch (Files): Add m4/argmatch.m4.
59895         (configure.ac): Add gl_ARGMATCH.
59896         (EXTRA_DIST): Renamed from lib_SOURCES, for
59897         consistency with the other modules.  Remove argmatch.c.
59898         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59899         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59900         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59901         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59902         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59903         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59904         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59905         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59906         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59907         * modules/closeout (EXTRA_DIST): Add closeout.h.
59908         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59909         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59910         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59911         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59912         dirname.h; remove basename.c and stripslash.c.
59913         * modules/exclude (EXTRA_DIST): Add exclude.h.
59914         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59915         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59916         * modules/file-type (EXTRA_DIST): Add file-type.h.
59917         * modules/filemode (EXTRA_DIST): Add filemode.h.
59918         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59919         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59920         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59921         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59922         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59923         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59924         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59925         * modules/getdate (EXTRA_DIST): Add getdate.c.
59926         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59927         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59928         * modules/getpass (EXTRA_DIST): Add getpass.h.
59929         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59930         * modules/group-member (EXTRA_DIST): Add group-member.h.
59931         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59932         * modules/hash (EXTRA_DIST): Add hash.h.
59933         * modules/human (EXTRA_DIST): Add human.h.
59934         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59935         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59936         * modules/lchown (EXTRA_DIST): Add lchown.h.
59937         * modules/long-options (EXTRA_DIST): Add long-options.h.
59938         * modules/lstat (EXTRA_DIST): Add lstat.h.
59939         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59940         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59941         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59942         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59943         * modules/memxor (EXTRA_DIST): Add memxor.h.
59944         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59945         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59946         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59947         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59948         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59949         * modules/physmem (EXTRA_DIST): Add physmem.h.
59950         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59951         * modules/posixver (EXTRA_DIST): Add posixver.h.
59952         * modules/quote (EXTRA_DIST): Add quote.h.
59953         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59954         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59955         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59956         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59957         regex_internal.h regexec.c.
59958         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59959         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59960         * modules/same (EXTRA_DIST): Add same.h.
59961         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59962         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59963         * modules/savedir (EXTRA_DIST): Add savedir.h.
59964         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59965         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59966         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59967         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59968         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59969         * modules/strdup (EXTRA_DIST): Add strdup.h.
59970         * modules/strftime (EXTRA_DIST): Add strftime.h.
59971         * modules/strndup (EXTRA_DIST): Add strndup.h.
59972         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59973         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59974         * modules/time_r (EXTRA_DIST): Add time_r.h.
59975         * modules/timespec (EXTRA_DIST): Add timespec.h.
59976         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59977         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59978         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59979         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59980         * modules/userspec (EXTRA_DIST): Add userspec.h.
59981         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59982         * modules/utimens (EXTRA_DIST): Add utimens.h.
59983         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59984         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59985         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59986         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59987         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59988         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59989         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59990         * modules/yesno (EXTRA_DIST): Add yesno.h.
59991
59992 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59993
59994         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59995
59996         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59997         * m4/dev-ino.m4, same-inode.m4: Remove.
59998
59999         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60000         * m4/acl.m4 (AC_FUNC_ACL):
60001         * m4/backupfile.m4 (gl_BACKUPFILE):
60002         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60003         * m4/canon-host.m4 (gl_CANON_HOST):
60004         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60005         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60006         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60007         * m4/cloexec.m4 (gl_CLOEXEC):
60008         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60009         * m4/closeout.m4 (gl_CLOSEOUT):
60010         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60011         * m4/dirname.m4 (gl_DIRNAME):
60012         * m4/exclude.m4 (gl_EXCLUDE):
60013         * m4/exitfail.m4 (gl_EXITFAIL):
60014         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60015         * m4/file-type.m4 (gl_FILE_TYPE):
60016         * m4/filemode.m4 (gl_FILEMODE):
60017         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60018         * m4/fpending.m4 (gl_FUNC_FPENDING):
60019         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60020         * m4/fts.m4 (gl_FUNC_FTS):
60021         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60022         * m4/getdate.m4 (gl_GETDATE):
60023         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60024         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60025         * m4/getpass.m4 (gl_FUNC_GETPASS):
60026         * m4/gettime.m4 (gl_GETTIME):
60027         * m4/getugroups.m4 (gl_GETUGROUPS):
60028         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60029         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60030         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60031         * m4/hash.m4 (gl_HASH):
60032         * m4/idcache.m4 (gl_IDCACHE):
60033         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60034         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60035         * m4/long-options.m4 (gl_LONG_OPTIONS):
60036         * m4/lstat.m4 (gl_FUNC_LSTAT):
60037         * m4/md5.m4 (gl_MD5):
60038         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60039         * m4/memcoll.m4 (gl_MEMCOLL):
60040         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60041         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60042         * m4/memxor.m4 (gl_MEMXOR):
60043         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60044         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60045         * m4/modechange.m4 (gl_MODECHANGE):
60046         * m4/mountlist.m4 (gl_MOUNTLIST):
60047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60048         * m4/openat.m4 (gl_FUNC_OPENAT):
60049         * m4/pathmax.m4 (gl_PATHMAX):
60050         * m4/physmem.m4 (gl_PHYSMEM):
60051         * m4/posixtm.m4 (gl_POSIXTM):
60052         * m4/posixver.m4 (gl_POSIXVER):
60053         * m4/quote.m4 (gl_QUOTE):
60054         * m4/quotearg.m4 (gl_QUOTEARG):
60055         * m4/readtokens.m4 (gl_READTOKENS):
60056         * m4/readutmp.m4 (gl_READUTMP):
60057         * m4/regex.m4 (gl_REGEX):
60058         * m4/safe-read.m4 (gl_SAFE_READ):
60059         * m4/safe-write.m4 (gl_SAFE_WRITE):
60060         * m4/same.m4 (gl_SAME):
60061         * m4/save-cwd.m4 (gl_SAVE_CWD):
60062         * m4/savedir.m4 (gl_SAVEDIR):
60063         * m4/settime.m4 (gl_SETTIME):
60064         * m4/sha1.m4 (gl_SHA1):
60065         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60066         * m4/stat-macros.m4 (gl_STAT_MACROS):
60067         * m4/stat-time.m4 (gl_STAT_TIME):
60068         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60069         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60070         * m4/strdup.m4 (gl_FUNC_STRDUP):
60071         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60072         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60073         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60074         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60075         * m4/time_r.m4 (gl_TIME_R):
60076         * m4/timespec.m4 (gl_TIMESPEC):
60077         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60078         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60079         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60080         * m4/userspec.m4 (gl_USERSPEC):
60081         * m4/utimecmp.m4 (gl_UTIMECMP):
60082         * m4/utimens.m4 (gl_UTIMENS):
60083         * m4/xalloc.m4 (gl_XALLOC):
60084         * m4/xgetcwd.m4 (gl_XGETCWD):
60085         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60086         * m4/xreadlink.m4 (gl_XREADLINK):
60087         * m4/xstrtod.m4 (gl_XSTRTOD):
60088         * m4/yesno.m4 (gl_YESNO):
60089         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60090         to get the necessary .h files and whatnot.
60091
60092 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60093             Bruno Haible  <bruno@clisp.org>
60094
60095         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60096         /bin/sh understanding of '!' conditional negation.
60097
60098 2006-08-21  Jim Meyering  <jim@meyering.net>
60099
60100         * modules/openat (Depends-on): Really alphabetize.
60101
60102         * modules/acl (Depends-on): Add error and quote.
60103
60104         * check-module (find_included_lib_files): Add at-func.c to the
60105         ok-to-include-more-than-once white list.
60106
60107         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60108
60109 2006-08-21  Bruno Haible  <bruno@clisp.org>
60110
60111         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60112         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60113         Reported by Martin Lambers <marlam@marlam.de>.
60114
60115 2006-08-21  Bruno Haible  <bruno@clisp.org>
60116
60117         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60118         specify an installation location, don't emit a noinst_LIBRARIES or
60119         noinst_LTLIBRARIES assignment.
60120
60121 2006-08-21  Bruno Haible  <bruno@clisp.org>
60122
60123         BeOS portability.
60124         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60125         BeOS has mbrtowc() but no <wctype.h>.
60126
60127 2006-08-21  Bruno Haible  <bruno@clisp.org>
60128
60129         BeOS portability.
60130         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60131         exist.
60132
60133 2006-08-21  Bruno Haible  <bruno@clisp.org>
60134
60135         BeOS portability.
60136         * lib/mbchar.h: Include <wctype.h> only if it exists.
60137
60138 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60139
60140         Remove files that are no longer needed by their respective modules.
60141         * m4/obstack.m4: Remove.
60142         * m4/strerror_r.m4: Remove.
60143         * m4/uint32_t.m4: Remove.
60144         * m4/uintptr_t.m4: Remove.
60145         * m4/ullong_max.m4: Remove.
60146         * m4/xstrtoimax.m4: Remove.
60147         * m4/xstrtoumax.m4: Remove.
60148
60149         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60150         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60151         dependencies now capture this.
60152
60153         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60154         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60155         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60156         * m4/human.m4 (gl_HUMAN): Likewise.
60157         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60158         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60159
60160         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60161
60162         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60163         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60164         stdint.
60165         * m4/human.m4 (gl_HUMAN): Likewise.
60166         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60167         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60168         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60169         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60170         * m4/xstrtol (gl_XSTRTOL): Likewise.
60171
60172         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60173         AC_TYPE_LONG_LONG_INT.
60174         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60175         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60176         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60177         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60178
60179         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60180         on stdbool.
60181
60182         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60183         (gl_PREREQ_XSTRTOUL): Remove.
60184
60185         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60186
60187         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60188         mode.
60189
60190 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         Add and change modules to make it easier for coreutils to use
60193         gnulib-tool.
60194         * modules/backupfile (Files): Remove m4/d-ino.m4.
60195         (Depends-on): Add d-ino.
60196         * modules/cycle-check (Depends-on): Add stdint.
60197         (lib_SOURCES): Add cycle-check.h.
60198         * modules/d-ino: New module.
60199         * modules/d-type: New module.
60200         * modules/error (Files): Remove m4/strerror_r.m4.
60201         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60202         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60203         m4/inttypes_h.m4, m4/uintmax_t.m4.
60204         (Depends-on): Add stdint.
60205         (lib_SOURCES): Add fsusage.h.
60206         * modules/getcwd (Files): Remove d-ino.m4.
60207         (Depends-on): Add d-ino.
60208         * modules/getndelim2 (Depends-on): Add stdint.
60209         * modules/glob (Files): Remove m4/d-type.m4.
60210         (Depends-on): Add d-type.
60211         * modules/host-os: New module.
60212         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60213         m4/inttypes_h.m4, m4/uintmax_t.m4.
60214         * Depends-on: Add stdint.
60215         (lib_SOURCES): Add human.h.
60216         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60217         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60218         m4/uintmax_t.m4, m4/ulonglong.m4.
60219         (Depends-on): Add stdint.
60220         (EXTRA_DIST): Add inttostr.h.
60221         * modules/lchmod: New module.
60222         * modules/link-follow: New module.
60223         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60224         (Depends-on): Add lchmod.
60225         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60226         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60227         (Depends-on): Add stdint.
60228         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60229         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60230         (Depends-on): Add stdint.
60231         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60232         * modules/perl: New module.
60233         * modules/regex (Depends-on): Add stdint.
60234         * modules/rmdir-errno: New module.
60235         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60236         m4/intmax_t.m4.
60237         (Depends-on): Add stdint.
60238         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60239         m4/uintmax_t.m4.
60240         (Depends-on): Add stdint.
60241         * modules/unlink-busy: New module.
60242         * modules/utimecmp (Depends-on): Add stdint.
60243         * modules/uptime: New module.
60244         * modules/winsz-ioctl: New module.
60245         * modules/winsz-termios: New module.
60246         * modules/xnanosleep (Depends-on): Add nanosleep.
60247         * modules/ullong_max: Remove.
60248         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60249         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60250         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60251         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60252         (Depends-on): Add inttypes.
60253         (lib_SOURCES): Add xstrtol.h.
60254         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60255         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60256         * MODULES.html.sh: Move 'assert' into the assert section.
60257         Move 'dummy' into the linking section.
60258         Remove ullong_max.
60259         Add section for compatibility checks for POSIX:2001 functions,
60260         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60261         winsz-ioctl, and winsz-termios into it.
60262         Add lchmod.
60263         Add top-level Misc section and put host-os, perl, and uptime
60264         into it.
60265
60266 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60269         now assume the stdint module.  Do not include inttypes.h.
60270         * lib/fsusage.h: Likewise.
60271         * lib/getndelim2.c: Likewise.
60272         * lib/human.h: Likewise.
60273         * lib/inttostr.h: Likewise.
60274         * lib/obstack.c: Likewise.
60275         * lib/regex_internal.h: Likewise.
60276         * lib/tempname.c: Likewise.
60277         * lib/utimecmp.c: Likewise.
60278         * lib/xstrtol.h: Likewise.
60279
60280         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60281
60282         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60283         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60284         * lib/xtime.h: Likewise.
60285
60286 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60287
60288         * modules/openat (Files): Add lib/fchmodat.c.
60289         Fixes problem reported by Jay Youngman.
60290
60291 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60292
60293         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60294         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60295
60296 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60297             Bruno Haible  <bruno@clisp.org>
60298
60299         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60300         and is a script that invokes bison. Tighten the code. Add comments.
60301
60302 2006-08-18  Jim Meyering  <jim@meyering.net>
60303
60304         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60305         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60306         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60307         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60308
60309 2006-08-18  Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/bison-i18n: New file.
60312         * MODULES.html.sh (Internationalization functions): Add it.
60313
60314 2006-08-18  Bruno Haible  <bruno@clisp.org>
60315
60316         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60317         sys/statvfs.h. When getmntinfo was found, check its declaration and
60318         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60319
60320 2006-08-18  Bruno Haible  <bruno@clisp.org>
60321
60322         * m4/bison-i18n.m4: New file, from bison.
60323
60324 2006-08-18  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60327         (ME_DUMMY): Treat "kernfs" as a dummy.
60328         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60329
60330 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         Update from coreutils.
60333
60334         2006-08-15  Jim Meyering  <jim@meyering.net>
60335
60336         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60337
60338         2006-01-17  Jim Meyering  <jim@meyering.net>
60339
60340         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60341
60342         2006-01-11  Jim Meyering  <jim@meyering.net>
60343
60344         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60345         Check for the lchmod function.
60346
60347 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60348
60349         Update from coreutils.
60350
60351         * lib/__fpending.h: Add copyright notice.
60352         * lib/fprintftime.h: Likewise.
60353         * lib/savedir.c: Use (C) in copyright notice.
60354         * lib/savedir.h: Likewise.
60355
60356         2006-08-15  Jim Meyering  <jim@meyering.net>
60357
60358         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60359         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60360         in support of the EXPECTED_ERRNO macro.
60361         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60362         definitions.  Instead, define the appropriate symbols and include
60363         "at-func.c".
60364         * lib/mkdirat.c (mkdirat): Likewise.
60365         * lib/fchmodat.c (fchmodat): Likewise.
60366         (ENOSYS): Remove definition.
60367         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60368         it.  Don't include "unistd--.h" -- it wasn't ever used.
60369
60370         2006-01-17  Jim Meyering  <jim@meyering.net>
60371
60372         Rewrite fts.c not to change the current working directory,
60373         by using openat, fstatat, fdopendir, etc..
60374
60375         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60376         (HAVE_OPENAT_SUPPORT): Define.
60377         [_LIBC] (fchdir): Don't undef or define; no longer used.
60378         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60379         Now, this `function' always succeeds, and consumes its file descriptor
60380         parameter -- so callers must not close such FDs.  Update callers.
60381         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60382         (diropen): Add parameter, SP.  Adjust all callers.
60383         Implement using diropen_fd, rather than open.
60384         (fts_open): Initialize new member, fts_cwd_fd.
60385         Remove fts_rft-setting code.
60386         (fts_close): Close fts_cwd_fd, if necessary.
60387         (__opendir2): Define in terms of opendir or opendirat,
60388         depending on whether the FST_NOCHDIR flag is set.
60389         (fts_build): Since fts_safe_changedir consumes its FD, and since
60390         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60391         and close the dup'd file descriptor upon failure.
60392         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60393         (fts_safe_changedir): Tweak semantics to reflect that this function
60394         now calls cwd_advance_fd and hence consumes its FD argument.
60395         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60396         [struct FTS] (fts_rft): Remove now-unused member.
60397         [struct FTS] (fts_cycle.state): Improve comment.
60398
60399         * lib/openat.c (openat_needs_fchdir): New function.
60400         * lib/openat.h (openat_needs_fchdir): Declare it.
60401
60402 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60403
60404         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60405         Problem and fix reported by Pádraig Brady in
60406         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60407
60408 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60409
60410         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60411
60412 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60413
60414         * lib/memcoll.c (memcoll): Optimize for the common case where the
60415         arguments are bytewise equal.
60416
60417 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60418
60419         * doc/regexprops-generic.texi: Add a copyright notice.
60420
60421 2006-08-15  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/tmpdir (License): Change to LGPL.
60424
60425 2006-08-15  Bruno Haible  <bruno@clisp.org>
60426
60427         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60428         module.
60429
60430 2006-08-14  Simon Josefsson  <jas@extundo.com>
60431
60432         * config/srclist.txt: Add gnupload.
60433
60434 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60435
60436         Change copyright notice from LGPL 2 to GPL 2, since that's the
60437         standard form used in the gnulib repository.
60438         * tests/test-lock.c: Likewise.
60439         * tests/test-stdint.c: Likewise.
60440         * tests/test-tls.c: Likewise.
60441
60442         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60443         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60444         Add copyright notice.
60445
60446         * check-module: Add copyright notice.  Output a copyright
60447         notice if "--version" is specified.
60448         * modules/COPYING: New file.
60449         * tests/test-getaddrinfo.c: Add copyright notice.
60450         * tests/test-verify.c: Likewise.
60451
60452 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         Change copyright notice from LGPL 2 to GPL 2, since that's the
60455         standard form used in the gnulib repository.
60456         * lib/lock.c: LGPL -> GPL.
60457         * lib/lock.h: Likewise.
60458         * lib/strnlen1.c: Likewise.
60459         * lib/strnlen1.h: Likewise.
60460         * lib/tls.c: Likewise.
60461         * lib/tls.h: Likewise.
60462         * lib/tmpdir.c: Likewise.
60463
60464         * lib/TODO: Remove; this belongs only in coreutils.
60465
60466 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         Add copyright notices to long-enough files that lack them, since
60469         otherwise the files aren't clearly free.  Use the same notice that
60470         getdate.texi already uses.
60471         * doc/alloca-opt.texi: Add copyright notice.
60472         * doc/alloca.texi: Likewise.
60473         * doc/ctime.texi: Likewise.
60474         * doc/functions.texi: Likewise.
60475         * doc/gcd.texi: Likewise.
60476         * doc/gnulib-tool.texi: Likewise.
60477         * doc/inet_ntoa.texi: Likewise.
60478         * doc/visibility.texi: Likewise.
60479
60480         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60481         * doc/quote.texi: Add copyright notice.
60482
60483         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60484         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60485         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60486         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60487         is now obsolete, and give a pointer to the Sun list.
60488         Add copyright notice.
60489
60490 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60491
60492         * config/srclistvars.sh: Add copyright notice.
60493
60494 2006-08-14  Eric Blake  <ebb9@byu.net>
60495
60496         Import the following change from libc:
60497
60498         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60499
60500         Upstream bug 2997.
60501         * lib/misc/error.c: Add space between program name and message if file
60502         name is missing.
60503
60504 2006-08-12  Karl Berry  <karl@gnu.org>
60505
60506         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60507         remove, these originate in gnulib now.
60508
60509 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60510
60511         * doc/Makefile (standards.info standards.html standards.dvi):
60512         Also depend on make-stds.texi.
60513
60514 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60515
60516         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60517         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60518
60519         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60520         in wchar_t.  Problem reported by Eric Blake.
60521
60522         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60523         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60524         Also, help the compiler to keep LEN in a register.
60525
60526 2006-08-11  Eric Blake  <ebb9@byu.net>
60527
60528         * users.txt: Sort.  Add tar.
60529
60530 2006-08-11  Bruno Haible  <bruno@clisp.org>
60531
60532         * users.txt: New file.
60533
60534 2006-08-11  Bruno Haible  <bruno@clisp.org>
60535
60536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60537         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60538
60539 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         * modules/snprintf (Depends-on): Remove minmax.
60542         (Maintainer): Add self and Bruno.
60543
60544 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60545
60546         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60547         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60548         (EOVERFLOW): Define if the system does not.
60549         Do not include "minmax.h"; it wasn't used.
60550         (snprintf): Don't assume size_t promotes to an unsigned type.
60551         Fix bug when generated string was too long for the buffer: the
60552         buffer's contents are supposed to be the initial prefix of the
60553         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60554         exceeds INT_MAX; do the check ourselves.
60555
60556         Import the following changes from libc:
60557
60558         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60559
60560         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60561         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60562         set wc to the byte which couldn't be converted.
60563         (re_string_reconstruct): Don't clear valid_raw_len before calling
60564         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60565         tip_context using re_string_context_at.
60566
60567         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60568
60569         * lib/posix/regex.h: g++ still cannot handled [restrict].
60570
60571         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60572
60573         * lib/posix/regex.h: Remove special handling for VMS.
60574
60575 2006-08-10  Jim Meyering  <jim@meyering.net>
60576
60577         * modules/same-inode: New module.
60578         * modules/dev-ino: New module.
60579         * modules/cycle-check: Depend on these modules, rather than simply
60580         including their .h files.
60581         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60582         required via m4/cycle-check.m4.
60583         * modules/same: Depend on new same-inode module, rather than
60584         including same-inode.h.
60585         * modules/chdir-safer: New file.
60586
60587         * modules/chown (Depends-on): Add stat-macros.
60588
60589 2006-08-10  Jim Meyering  <jim@meyering.net>
60590
60591         * m4/cycle-check.m4: New file.
60592         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60593         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60594
60595 2006-08-10  Eric Blake  <ebb9@byu.net>
60596
60597         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60598         in from original proposal.
60599
60600 2006-08-10  Eric Blake  <ebb9@byu.net>
60601         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60602
60603         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60604         namespace.
60605
60606 2006-08-10  Bruno Haible  <bruno@clisp.org>
60607
60608         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60609         as well.
60610
60611 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60612
60613         Sync from coreutils.
60614
60615         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60616
60617         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60618         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60619
60620 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         * modules/restrict: Remove; no longer needed now that we assume
60623         Autoconf 2.59 or later.
60624         * MODULES.html.sh: Remove 'restrict'.
60625         * modules/argp (Depends-on): Remove 'restrict'.
60626         * modules/base64 (Depends-on): Likewise.
60627         * modules/gc (Depends-on): Likewise.
60628         * modules/getaddrinfo (Depends-on): Likewise.
60629         * modules/glob (Depends-on): Likewise.
60630         * modules/inet_ntop (Depends-on): Likewise.
60631         * modules/inet_pton (Depends-on): Likewise.
60632         * modules/memxor (Depends-on): Likewise.
60633         * modules/regex (Depends-on): Likewise.
60634         * modules/strtok_r (Depends-on): Likewise.
60635         * modules/time_r (Depends-on): Likewise.
60636
60637 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60638
60639         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60640         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60641         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60642         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60643         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60644         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60645         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60646         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60647
60648         Merge from coreutils.
60649         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60650         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60651         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60652         * m4/time_r.m4 (gl_TIME_R): Likewise.
60653
60654 2006-08-09  Karl Berry  <karl@gnu.org>
60655
60656         * config/srclist.txt: no more gettext-tools, per Bruno.
60657
60658 2006-08-08  Eric Blake  <ebb9@byu.net>
60659
60660         * modules/verror: New module.
60661         * MODULES.html.sh: Document it.
60662
60663 2006-08-08  Eric Blake  <ebb9@byu.net>
60664
60665         * lib/verror.h, lib/verror.c: New files.
60666
60667 2006-08-08  Eric Blake  <ebb9@byu.net>
60668
60669         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60670         verror_at_line output complies with GNU Coding Standards even when
60671         file is NULL.
60672
60673 2006-08-07  Bruno Haible  <bruno@clisp.org>
60674
60675         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60676         versions of AIX.
60677         Reported by Ralf Wildenhues.
60678
60679 2006-08-07  Bruno Haible  <bruno@clisp.org>
60680
60681         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60682         in an AC_DEFUN. Needed so that the autoconf snippets can use
60683         AC_REQUIRE.
60684
60685 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60686
60687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60688         Initialize pkgdata_DATA.
60689         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60690         overriding it.
60691
60692 2006-08-06  Eric Blake  <ebb9@byu.net>
60693
60694         * lib/error.h: Fold in some upstream changes from glibc.
60695         * lib/error.c: Likewise.
60696
60697 2006-08-04  Bruno Haible  <bruno@clisp.org>
60698
60699         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60700         Make the mostlyclean-local rule depend on mostlyclean-generic.
60701         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60702
60703 2006-07-31  Bruno Haible  <bruno@clisp.org>
60704
60705         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60706         <stdlib.h>, <string.h>.
60707
60708 2006-07-30  Bruno Haible  <bruno@clisp.org>
60709
60710         * modules/readlink (License): Change to LGPL.
60711
60712 2006-07-30  Bruno Haible  <bruno@clisp.org>
60713
60714         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60715         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60716         set PKGDATADIR to point to it.
60717
60718 2006-07-30  Bruno Haible  <bruno@clisp.org>
60719
60720         * modules/csharpexec (configure.ac): Comment out macro invocation.
60721         * modules/javaexec (configure.ac): Likewise.
60722         * modules/javacomp-script (configure.ac): Likewise.
60723
60724         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60725
60726 2006-07-30  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60729         linked-list.
60730
60731 2006-07-30  Bruno Haible  <bruno@clisp.org>
60732
60733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60734
60735 2006-07-30  Bruno Haible  <bruno@clisp.org>
60736
60737         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60738         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60739         get removed.
60740
60741 2006-07-29  Bruno Haible  <bruno@clisp.org>
60742
60743         Make it possible for gnulib-tool to work with locally modified or
60744         augmented gnulib repositories.
60745         * gnulib-tool (func_usage): Document --local-dir option.
60746         (local_gnulib_dir): New variable.
60747         Handle --local-dir option.
60748         (func_lookup_file): New function.
60749         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60750         (func_get_description, func_get_filelist, func_get_description,
60751         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60752         func_get_automake_snippet, func_get_include_directive,
60753         func_get_license, func_get_maintainer): Use func_lookup_file.
60754         (func_import, func_create_testdir): Use func_lookup_file.
60755
60756 2006-07-29  Bruno Haible  <bruno@clisp.org>
60757
60758         * modules/setenv (Depends-on): Add unistd.
60759
60760 2006-07-29  Bruno Haible  <bruno@clisp.org>
60761
60762         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60763
60764 2006-07-29  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60767
60768 2006-07-29  Bruno Haible  <bruno@clisp.org>
60769
60770         * gnulib-tool (import, update): If there is no Makefile.am, look at
60771         aclocal.m4, instead of bailing out.
60772
60773 2006-07-29  Bruno Haible  <bruno@clisp.org>
60774
60775         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60776         Categorize the options by when they are useful.
60777
60778 2006-07-29  Bruno Haible  <bruno@clisp.org>
60779
60780         * gnulib-tool (func_usage): Document option --no-libtool.
60781         Handle option --no-libtool.
60782         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60783         for changed semantics of $libtool variable.
60784         (func_import): Likewise. If libtool is not used, show this through
60785         an option --no-libtool.
60786         (func_create_testdir): Update.
60787
60788 2006-07-29  Bruno Haible  <bruno@clisp.org>
60789
60790         * gnulib-tool (func_import): Extend error message about missing
60791         --doc-base.
60792
60793 2006-07-29  Bruno Haible  <bruno@clisp.org>
60794
60795         * gnulib-tool (func_import): Don't create the $docbase directory if
60796         there is no file to store there.
60797
60798 2006-07-29  Bruno Haible  <bruno@clisp.org>
60799
60800         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60801         relevant, look for configure.ac there, not in the current directory.
60802         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60803
60804 2006-07-29  Bruno Haible  <bruno@clisp.org>
60805
60806         * gnulib-tool (SORT): New variable.
60807         (func_usage): Undocument --assume-autoconf option.
60808         Remove --assume-autoconf option handling.
60809         (autoconf_minversion): Determine from the contents of configure.ac.
60810         (func_import): Remove autoconf_minversion handling.
60811         Suggested by Eric Blake.
60812
60813 2006-07-29  Bruno Haible  <bruno@clisp.org>
60814
60815         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60816
60817 2006-07-29  Bruno Haible  <bruno@clisp.org>
60818
60819         * config/srclist.txt (*setenv.[ch]): Remove rules.
60820
60821 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60822
60823         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60824
60825 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60826
60827         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60828         arpa/inet.h.
60829
60830 2006-07-28  Simon Josefsson  <jas@extundo.com>
60831
60832         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60833         * modules/inet_pton (Depends-on): Likewise.
60834
60835 2006-07-28  Simon Josefsson  <jas@extundo.com>
60836
60837         * m4/netinet_in_h.m4: New file.
60838
60839 2006-07-28  Simon Josefsson  <jas@extundo.com>
60840
60841         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60842         #include's.
60843
60844 2006-07-28  Simon Josefsson  <jas@extundo.com>
60845
60846         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60847         #include's.
60848
60849 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60850
60851         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60852         setgid on directories only if they set these bits.
60853         * lib/modechange.h: Remove obsolete comment about masks.
60854
60855 2006-07-28  Eric Blake  <ebb9@byu.net>
60856
60857         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60858         macro expansion.
60859
60860 2006-07-28  Bruno Haible  <bruno@clisp.org>
60861
60862         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60863
60864 2006-07-28  Bruno Haible  <bruno@clisp.org>
60865
60866         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60867
60868 2006-07-28  Bruno Haible  <bruno@clisp.org>
60869
60870         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60871         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60872         Define fallbacks.
60873         Avoids link error on FreeBSD 4.x.
60874         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60875
60876         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60877         encoding.
60878         * lib/mbswidth.c (iswcntrl): Likewise.
60879
60880 2006-07-27  Bruno Haible  <bruno@clisp.org>
60881
60882         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60883         test.
60884
60885 2006-07-27  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60888         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60889         defined.
60890
60891 2006-07-26  Eric Blake  <ebb9@byu.net>
60892
60893         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60894
60895 2006-07-26  Eric Blake  <ebb9@byu.net>
60896
60897         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60898         like mingw that lack mkstemp.
60899         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60900         avoid compilation warning on mingw.
60901
60902 2006-07-26  Bruno Haible  <bruno@clisp.org>
60903
60904         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60905         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60906         INT_FAST*_MIN, INTPTR_MIN.
60907
60908 2006-07-25  Bruno Haible  <bruno@clisp.org>
60909
60910         * modules/version-etc (Depends-on): Add stdarg.
60911
60912 2006-07-25  Bruno Haible  <bruno@clisp.org>
60913
60914         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60915         complex commands.
60916
60917 2006-07-25  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60920         defined in <stdarg.h> or config.h.
60921
60922 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60923
60924         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60925         (gl_STDIO_SAFER): Remove.
60926
60927 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * MODULES.html.sh (File stream based Input/Output):
60930         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60931         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60932         * modules/fopen-safer, modules/tmpfile-safer: New files.
60933         * modules/stdio-safer: Remove.
60934
60935 2006-07-24  Bruno Haible  <bruno@clisp.org>
60936
60937         * modules/tmpdir: New file.
60938         * MODULES.html.sh (File system functions): Add it.
60939
60940 2006-07-24  Bruno Haible  <bruno@clisp.org>
60941
60942         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60943         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60944
60945 2006-07-24  Bruno Haible  <bruno@clisp.org>
60946
60947         * modules/clean-temp: New file.
60948
60949 2006-07-24  Bruno Haible  <bruno@clisp.org>
60950
60951         * m4/tmpdir.m4: New file, from GNU gettext.
60952
60953 2006-07-24  Bruno Haible  <bruno@clisp.org>
60954
60955         * lib/tmpdir.h: New file, from GNU gettext.
60956         * lib/tmpdir.c: New file, from GNU gettext.
60957
60958 2006-07-24  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/clean-temp.h: New file, from GNU gettext.
60961         * lib/clean-temp.c: New file, from GNU gettext.
60962
60963 2006-07-23  Eric Blake  <ebb9@byu.net>
60964
60965         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60966         (Depends-on): Add binary-io.
60967
60968 2006-07-23  Eric Blake  <ebb9@byu.net>
60969
60970         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60971
60972 2006-07-23  Eric Blake  <ebb9@byu.net>
60973
60974         * lib/tmpfile-safer.c: New file.
60975         * lib/stdio-safer.h (fopen_safer): Add prototype.
60976         * lib/stdio--.h (tmpfile): Make safer.
60977
60978 2006-07-23  Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60981         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60982         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60983         gl_linked_remove_at): Use it.
60984
60985 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60986         and Simon Josefsson <jas@extundo.com>
60987
60988         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60989
60990         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60991
60992 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * modules/close-stream: New file.
60995         * modules/closeout (Description): Make it clear that it exits
60996         with a diagnostic on error.
60997         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60998         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60999
61000 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61001
61002         * m4/close-stream.m4: New file.
61003
61004 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61005
61006         * lib/close-stream.c, lib/close-stream.h: New files.
61007
61008 2006-07-22  Bruno Haible  <bruno@clisp.org>
61009
61010         Merge from GNU gettext 0.15.
61011
61012         2006-05-01  Bruno Haible  <bruno@clisp.org>
61013
61014                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61015
61016         2006-07-22  Bruno Haible  <bruno@clisp.org>
61017
61018                 * modules/javaversion: New file.
61019                 * MODULES.html.sh (Java): Add javaversion.
61020
61021         2006-03-12  Bruno Haible  <bruno@clisp.org>
61022
61023                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61024
61025         2005-12-04  Bruno Haible  <bruno@clisp.org>
61026
61027                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61028                 (untested).
61029
61030         2006-06-21  Bruno Haible  <bruno@clisp.org>
61031
61032                 Avoid warnings from recent versions of mcs.
61033                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61034                 -o, -L, -r any more. Use options documented since mcs-1.0
61035                 instead. Similarly for -g.
61036
61037         2005-12-04  Bruno Haible  <bruno@clisp.org>
61038
61039                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61040                 .resources, not .resource.
61041
61042         2005-07-09  Bruno Haible  <bruno@clisp.org>
61043
61044                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61045                 add a .dll suffix.
61046                 Reported by Mark Junker <mjscod@gmx.de>.
61047
61048         2006-07-22  Bruno Haible  <bruno@clisp.org>
61049
61050                 * modules/gettext: Upgrade to gettext-0.15.
61051                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61052                 m4/visibility.m4.
61053                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61054
61055 2006-07-22  Bruno Haible  <bruno@clisp.org>
61056
61057         Merge from GNU gettext 0.15.
61058
61059         2006-03-25  Bruno Haible  <bruno@clisp.org>
61060
61061                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61062
61063         2006-07-21  Bruno Haible  <bruno@clisp.org>
61064
61065                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61066                 "1.1".
61067
61068         2006-05-09  Bruno Haible  <bruno@clisp.org>
61069
61070                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61071                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61072                 for the conftestver execution.
61073
61074         2006-05-01  Bruno Haible  <bruno@clisp.org>
61075
61076                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61077                 optional target-version argument. Verify that the compiler
61078                 groks source of the specified source-version, or add -source
61079                 option as necessary. Verify that the compiler produces
61080                 bytecode in the specified target-version, or add -target and
61081                 -source options as necessary. Make the result of the test
61082                 available as variable CONF_JAVAC. Also log error output in
61083                 config.log.
61084
61085         2006-03-11  Bruno Haible  <bruno@clisp.org>
61086
61087                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61088
61089         2006-05-09  Bruno Haible  <bruno@clisp.org>
61090
61091                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61092                 CLASSPATH_SEPARATOR to a semicolon.
61093
61094         2006-03-12  Bruno Haible  <bruno@clisp.org>
61095
61096                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61097                 available as variable CONF_JAVA, for subsequent autoconf
61098                 tests. Also log error output in config.log.
61099
61100         2006-07-19  Bruno Haible  <bruno@clisp.org>
61101
61102                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61103                 that getline works on glibc2 systems. Needed to avoid trouble
61104                 in relocatable.c.
61105                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61106
61107         2005-12-04  Bruno Haible  <bruno@clisp.org>
61108
61109                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61110                 launcher (untested).
61111
61112         2005-12-04  Bruno Haible  <bruno@clisp.org>
61113
61114                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61115
61116         2006-07-22  Bruno Haible  <bruno@clisp.org>
61117
61118                 * gettext.m4: Update from GNU gettext-0.15.
61119                 * nls.m4: Likewise.
61120                 * po.m4: Likewise.
61121                 * inttypes-pri.m4: Likewise.
61122                 * inttypes-h.m4: Renamed from inttypes.m4.
61123                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61124
61125 2006-07-22  Bruno Haible  <bruno@clisp.org>
61126
61127         Merge from GNU gettext 0.15.
61128
61129         2005-07-05  Bruno Haible  <bruno@clisp.org>
61130
61131                 * printf-args.c (printf_fetchargs): Work around broken
61132                 definition of wint_t on mingw.
61133
61134         2005-02-12  Bruno Haible  <bruno@clisp.org>
61135
61136                 * xallocsa.h: Add extern "C" for C++.
61137
61138         2006-05-17  Bruno Haible  <bruno@clisp.org>
61139
61140                 Cygwin portability.
61141                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61142
61143         2006-04-30  Bruno Haible  <bruno@clisp.org>
61144
61145                 * progreloc.c: Include <mach-o/dyld.h> if available.
61146                 (find_executable): Use _NSGetExecutablePath when possible.
61147
61148         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61149
61150                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61151                 function.
61152
61153         2005-12-29  Bruno Haible  <bruno@clisp.org>
61154
61155                 * progreloc.c (set_program_name_and_installdir): Fix
61156                 compilation error.
61157
61158         2005-12-04  Bruno Haible  <bruno@clisp.org>
61159
61160                 Cygwin portability.
61161                 * progreloc.c: Include <windows.h> also on Cygwin.
61162                 (find_executable): Add support for Cygwin.
61163                 (set_program_name_and_installdir): Handle also platforms with
61164                 nonempty EXEEXT.
61165
61166         2006-07-11  Bruno Haible  <bruno@clisp.org>
61167
61168                 * javacomp.c: Fix a comment.
61169                 Reported by Jim Meyering.
61170
61171         2006-04-30  Bruno Haible  <bruno@clisp.org>
61172
61173                 * javacomp.h (compile_java_class): Add source_version,
61174                 target_version arguments.
61175                 * javacomp.c: Rewritten to choose only a compiler that
61176                 respects the specified source_version and target_version.
61177
61178         2006-06-27  Bruno Haible  <bruno@clisp.org>
61179
61180                 Assume correct S_ISDIR macro.
61181                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61182
61183         2006-07-22  Bruno Haible  <bruno@clisp.org>
61184
61185                 * javaversion.h: New file, from GNU gettext.
61186                 * javaversion.c: New file, from GNU gettext.
61187                 * javaversion.java: New file, from GNU gettext.
61188                 * javaversion.class: New file, from GNU gettext.
61189
61190         2006-05-17  Bruno Haible  <bruno@clisp.org>
61191
61192                 Cygwin portability.
61193                 * javaexec.c (execute_java_class): Test for jview program
61194                 also on Cygwin.
61195
61196         2006-04-09  Bruno Haible  <bruno@clisp.org>
61197
61198                 * fatal-signal.c: Don't include string.h.
61199                 (at_fatal_signal): Use a copying loop instead of memcpy.
61200
61201         2005-12-04  Bruno Haible  <bruno@clisp.org>
61202
61203                 * csharpexec.c: Add support for 'clix' launcher (untested).
61204                 (execute_csharp_using_sscli): New function.
61205                 (execute_csharp_program): Call it.
61206
61207         2006-06-21  Bruno Haible  <bruno@clisp.org>
61208
61209                 Avoid warnings from recent versions of mcs.
61210                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61211                 -o, -L, -r any more. Use options documented since mcs-1.0
61212                 instead. Similarly for -g.
61213
61214         2005-07-09  Bruno Haible  <bruno@clisp.org>
61215
61216                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61217                 add a .dll suffix.
61218                 Reported by Mark Junker <mjscod@gmx.de>.
61219
61220         2006-06-17  Bruno Haible  <bruno@clisp.org>
61221
61222                 * config.charset: Update for NetBSD 3.0.
61223
61224         2006-05-17  Bruno Haible  <bruno@clisp.org>
61225
61226                 Cygwin portability.
61227                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61228
61229         2006-05-16  Bruno Haible  <bruno@clisp.org>
61230
61231                 * localcharset.c [CYGWIN]: Include <windows.h>.
61232                 (get_charset_aliases): For Cygwin, return the same CPxxx
61233                 aliases list as under WIN32.
61234                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61235                 the environment variables. Fall back to GetACP().
61236
61237         2006-04-05  Bruno Haible  <bruno@clisp.org>
61238
61239                 * config.charset: Update Juan Manuel Guerrero's address.
61240
61241         2005-02-12  Bruno Haible  <bruno@clisp.org>
61242
61243                 * allocsa.h: Add extern "C" for C++.
61244
61245         2005-02-10  Bruno Haible  <bruno@clisp.org>
61246
61247                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61248                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61249
61250         2006-07-22  Bruno Haible  <bruno@clisp.org>
61251
61252                 * gettext.h: Update to GNU gettext-0.15.
61253
61254 2006-07-22  Bruno Haible  <bruno@clisp.org>
61255
61256         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61257         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61258         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61259
61260 2006-07-21  Eric Blake  <ebb9@byu.net>
61261
61262         * modules/stdlib-safer: New file.
61263         * MODULES.html.sh (File stream based Input/Output): Add
61264         stdlib-safer.
61265
61266 2006-07-21  Eric Blake  <ebb9@byu.net>
61267
61268         * lib/stdlib-safer.h: New file from coreutils, required by
61269         stdlib--.h.
61270
61271 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61272
61273         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61274
61275 2006-07-20  Bruno Haible  <bruno@clisp.org>
61276
61277         * gnulib-tool: Recognize new option --assume-autoconf.
61278         (autoconf_minversion): New variable.
61279         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61280
61281 2006-07-20  Bruno Haible  <bruno@clisp.org>
61282
61283         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61284
61285 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61286
61287         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61288         Reindent and repaginate.
61289
61290 2006-07-19  Derek Price  <derek@ximbiot.com>
61291
61292         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61293         Correct grammar.
61294
61295 2006-07-17  Bruno Haible  <bruno@clisp.org>
61296
61297         * modules/list: New file.
61298         * modules/array-list: New file.
61299         * modules/carray-list, modules/carray-list-tests: New files.
61300         * modules/linked-list, modules/linked-list-tests: New files.
61301         * modules/avltree-list, modules/avltree-list-tests: New files.
61302         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61303         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61304         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61305         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61306         * modules/oset: New file.
61307         * modules/array-oset: New file.
61308         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61309         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61310         * tests/test-carray_list.c: New file.
61311         * tests/test-linked_list.c: New file.
61312         * tests/test-avltree_list.c: New file.
61313         * tests/test-rbtree_list.c: New file.
61314         * tests/test-linkedhash_list.c: New file.
61315         * tests/test-avltreehash_list.c: New file.
61316         * tests/test-rbtreehash_list.c: New file.
61317         * tests/test-avltree_oset.c: New file.
61318         * tests/test-rbtree_oset.c: New file.
61319         * MODULES.html.sh (Container data structures): New section.
61320
61321 2006-07-17  Bruno Haible  <bruno@clisp.org>
61322
61323         * m4/gl_list.m4: New file.
61324
61325 2006-07-17  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/gl_list.h: New file.
61328         * lib/gl_list.c: New file.
61329         * lib/gl_array_list.h: New file.
61330         * lib/gl_array_list.c: New file.
61331         * lib/gl_carray_list.h: New file.
61332         * lib/gl_carray_list.c: New file.
61333         * lib/gl_linked_list.h: New file.
61334         * lib/gl_linked_list.c: New file.
61335         * lib/gl_anylinked_list1.h: New file.
61336         * lib/gl_anylinked_list2.h: New file.
61337         * lib/gl_avltree_list.h: New file.
61338         * lib/gl_avltree_list.c: New file.
61339         * lib/gl_anyavltree_list1.h: New file.
61340         * lib/gl_anyavltree_list2.h: New file.
61341         * lib/gl_rbtree_list.h: New file.
61342         * lib/gl_rbtree_list.c: New file.
61343         * lib/gl_anyrbtree_list1.h: New file.
61344         * lib/gl_anyrbtree_list2.h: New file.
61345         * lib/gl_anytree_list1.h: New file.
61346         * lib/gl_anytree_list2.h: New file.
61347         * lib/gl_linkedhash_list.h: New file.
61348         * lib/gl_linkedhash_list.c: New file.
61349         * lib/gl_anyhash_list1.h: New file.
61350         * lib/gl_anyhash_list2.h: New file.
61351         * lib/gl_avltreehash_list.h: New file.
61352         * lib/gl_avltreehash_list.c: New file.
61353         * lib/gl_rbtreehash_list.h: New file.
61354         * lib/gl_rbtreehash_list.c: New file.
61355         * lib/gl_anytreehash_list1.h: New file.
61356         * lib/gl_anytreehash_list2.h: New file.
61357
61358         * lib/gl_oset.h: New file.
61359         * lib/gl_oset.c: New file.
61360         * lib/gl_array_oset.h: New file.
61361         * lib/gl_array_oset.c: New file.
61362         * lib/gl_avltree_oset.h: New file.
61363         * lib/gl_avltree_oset.c: New file.
61364         * lib/gl_rbtree_oset.h: New file.
61365         * lib/gl_rbtree_oset.c: New file.
61366         * lib/gl_anytree_oset.h: New file.
61367
61368 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61369
61370         * m4/mkancesdirs.m4: New file.
61371         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61372         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61373         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61374         it.
61375
61376 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61377
61378         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61379         * lib/mkancesdirs.h: New files.
61380         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61381         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61382         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61383         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61384         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61385         callers changed.  Revamp internals significantly, by not
61386         attempting to create directories that are temporarily more
61387         permissive than the final results.  Do not attempt to use
61388         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61389         This removes some race conditions, fixes some bugs, and simplifies
61390         things.  Use new dirchownmod function to do owner and mode changes.
61391         * lib/mkdir-p.h: Likewise.
61392         * lib/modechange.c (octal_to_mode): New function.
61393         (struct mode_change): New member mentioned.
61394         (make_node_op_equals): New arg mentioned.  All callers changed.
61395         (mode_compile): Keep track of which mode bits the user has explicitly
61396         mentioned.
61397         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61398         New arg PMODE_BITS, to keep track of which mode bits the user
61399         mentioned; it treats S_ISUID and S_ISGID speciall.
61400         All callers changed.
61401         * lib/modechange.h: Likewise.
61402
61403 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61404
61405         * MODULES.html.sh: Add mkancestors.
61406         * modules/mkancesdirs: New module.
61407         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61408         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61409         The chdir-safer and afs files are now orphans; I'll remove them
61410         unless someone speaks up.
61411         Add lib/dirchownmod.c, lib/dirchownmod.h.
61412         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61413         Add lchown, mkancesdirs.
61414         (Maintainer): Add self.
61415
61416 2006-07-15  Karl Berry  <karl@gnu.org>
61417
61418         * gnulib-tool: help message wording/arrangement.
61419
61420 2006-07-14  Simon Josefsson  <jas@extundo.com>
61421
61422         * doc/gnulib.texi (Libtool and Windows): New section.
61423
61424 2006-07-12  Simon Josefsson  <jas@extundo.com>
61425
61426         * modules/gendocs (License): Fix license, approved by Karl.
61427
61428 2006-07-12  Eric Blake  <ebb9@byu.net>
61429
61430         * MODULES.html.sh: Add gendocs.
61431
61432 2006-07-11  Eric Blake  <ebb9@byu.net>
61433
61434         * modules/fdl: New module, to install doc/fdl.texi.
61435         * MODULES.html.sh: Add new section for documentation modules.
61436         * gnulib-tool: Avoid space-tab.
61437         (--doc-base): New option, to manage files from doc.
61438
61439 2006-07-11  Eric Blake  <ebb9@byu.net>
61440
61441         * m4/absolute-header.m4: Fix comments to match recent change.
61442
61443 2006-07-11  Eric Blake  <ebb9@byu.net>
61444
61445         * gnulib-tool: List --doc-base before --tests-base.
61446
61447 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61448
61449         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61450
61451 2006-07-11  Bruno Haible  <bruno@clisp.org>
61452
61453         * README: Mention where to put documentation.
61454
61455 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61456
61457         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61458
61459 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61460
61461         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61462         to stdint.m4.
61463
61464 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61467         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61468         "no/such/file/stdint.h" when there is no such file, so that
61469         the resulting C code can be parsed by dodgy compilers.
61470         Problems reported by Bob Proulx.
61471
61472 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61473
61474         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61475         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61476         macros into the GNU _D_EXACT_NAMLEN.
61477         * lib/savedir.c:  Likewise.
61478         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61479
61480 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61481         and Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61484         * m4/savedir.m4:
61485         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61486         macros into the GNU _D_EXACT_NAMLEN.
61487
61488 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61491         around the absolute name, to work around a problem with the HP-UX
61492         11.23 native C compiler, reported by Bob Proulx.
61493
61494 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61495
61496         * doc/maintain.texi, make-stds.texi: Sync from
61497         <http://savannah.gnu.org/projects/gnustandards>.
61498
61499 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61502
61503 2006-07-09  Jim Meyering  <jim@meyering.net>
61504
61505         * m4/glob.m4: Remove a doubled word in a comment.
61506
61507 2006-07-09  Jim Meyering  <jim@meyering.net>
61508
61509         * lib/argp-pv.c: Remove a doubled word in a comment.
61510         * lib/check-version.c (check_version): Likewise.
61511         * lib/javacomp.c (compile_java_class): Likewise.
61512
61513 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61514
61515         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61516         for the benefit of people using Autoconf 2.60.  If you want to
61517         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61518         (or m4/onceonly.m4, if pre-2.57) manually.
61519
61520 2006-07-08  Jim Meyering  <jim@meyering.net>
61521
61522         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61523         comment.
61524         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61525         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61526         comment.
61527
61528 2006-07-08  Jim Meyering  <jim@meyering.net>
61529
61530         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61531
61532 2006-07-07  Simon Josefsson  <jas@extundo.com>
61533
61534         * tests/test-crc.c: Change expected crc value, the test vector
61535         were probably computed using the old broken crc.c?
61536
61537 2006-07-06  Simon Josefsson  <jas@extundo.com>
61538
61539         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61540         now the canonical place for the M4 file).
61541
61542         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61543         from the sys_socket dependency now.
61544
61545         * modules/inet_pton (Files): Ditto.
61546
61547         * modules/inet_ntop (Files): Ditto.
61548
61549 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61550
61551         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61552         not gl_PREREQ_GETUSERSHELL.
61553
61554 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61555
61556         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61557         with only one argument, for Autoconf 2.60.
61558         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61559         expand to nothing, so add a shell command to avoid syntax error.
61560         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61561
61562 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61563
61564         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61565
61566 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61567
61568         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61569         no longer needed.  Check for isblank decl.
61570         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61571         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61572         of existence.
61573
61574 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61575
61576         * lib/getloadavg.c: Use __VMS, not VMS.
61577         * lib/getopt.c: Likewise.
61578         * lib/getpagesize.h: Likewise.
61579         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61580         and probably does not work.
61581
61582 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61583
61584         * lib/.cppi-disable: Add wcwidth.
61585         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61586         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61587         (ISGRAPH): Remove.  All uses changed to isgraph.
61588         (FOLD) [!defined _LIBC]: Remove special case.
61589         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61590         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61591         HAVE_ISBLANK.
61592         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61593         case.
61594
61595 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61596
61597         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61598         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61599         brackets.  Other minor changes to suppress some compiler
61600         warnings.
61601
61602 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61603         and Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61606         of invoking obsolescent AC_HEADER_DIRENT macro.
61607         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61608         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61609         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61610         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61611         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61612         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61613         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61614         * m4/readdir.m4: Remove; no longer needed.
61615
61616 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61617         and Paul Eggert  <eggert@cs.ucla.edu>
61618
61619         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61620         Don't worry about this obsolete case any more.
61621         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61622         directories.
61623         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61624         worry about this obsolete case any more.
61625         * lib/fts.c: Likewise.
61626         * lib/getcwd.c: Likewise.
61627         * lib/glob.h: Likewise.
61628         * lib/savedir.c: Likewise.
61629
61630 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61633         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61634         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61635         needed.
61636         All uses removed.
61637         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61638         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61639         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61640         needed.
61641         * m4/getdate.m4 (gl_GETDATE): Likewise.
61642         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61643         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61644         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61645         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61646         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61647         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61648         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61649         needed.
61650
61651 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61652
61653         * lib/memcasecmp.c: Include <limits.h>.
61654         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61655         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61656         Don't assume isdigit succeeds only on '0' through '9'.
61657
61658 2006-07-05  Eric Blake  <ebb9@byu.net>
61659
61660         * modules/getaddrinfo (Depends-on): Add snprintf.
61661
61662 2006-07-05  Eric Blake  <ebb9@byu.net>
61663
61664         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61665         to avoid 'header present but could not be compiled' on cygwin.
61666
61667 2006-07-05  Eric Blake  <ebb9@byu.net>
61668
61669         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61670         missing from netdb.h.
61671         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61672
61673 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61674
61675         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61676         no longer needed.
61677         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61678         * m4/getdate.m4 (gl_GETDATE): Likewise.
61679         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61680         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61681         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61682         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61683         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61684
61685 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61686
61687         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61688         All uses of is_space replaced by isspace.
61689         * lib/exit.h: Don't talk about STDC_HEADERS.
61690         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61691         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61692         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61693         replaced by isprint etc.
61694         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61695         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61696         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61697         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61698         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61699         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61700
61701 2006-07-05  Bruno Haible  <bruno@clisp.org>
61702
61703         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61704         the function exists, before testing against AIX.
61705         Reported by Martin Lambers <marlam@marlam.de>.
61706
61707 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61708
61709         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61710         From Mark D. Baushke.
61711
61712 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61715         to the absolute name, not just one, to bypass Sun C 5.8's
61716         "warning: #include of /usr/include/... may be non-portable".
61717
61718 2006-07-04  Eric Blake  <ebb9@byu.net>
61719
61720         * modules/dirname-tests: New test module.
61721         * tests/test-dirname.c: New file, replacing dirname.c
61722         TEST_DIRNAME section that was recently deleted.
61723
61724 2006-07-04  Bruno Haible  <bruno@clisp.org>
61725
61726         Assume ANSI C header files and <ctype.h> functions.
61727         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61728         (mbsnwidth): Use isprint, iscntrl instead.
61729
61730 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61731
61732         Merge from coreutils.
61733         * MODULES.html.sh: Add xstrtold.
61734         * modules/xstrtold: New file.
61735         * modules/cycle-check (Files): Add lib/same-inode.h.
61736         * modules/dirname (Files): Add m4/double-slash-root.m4.
61737         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61738         * modules/mkdir-p (Files): Add lib/same-inode.h.
61739         * modules/same (Files): Add lib/same-inode.h.
61740
61741 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61742
61743         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61744         This is to keep the terminology clean; POSIX talks about
61745         "absolute pathnames", not "full pathnames", but the GNU
61746         Coding Standards say to use "path" for something else;
61747         so use "absolute" to keep both sides happy.
61748         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61749         Set gl_absolute_header, not gl_full_header_path.
61750         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61751         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61752         All uses changed.
61753
61754         Merge from coreutils.
61755
61756         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61759         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61760         want to require the building of c-strtod.o.
61761         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61762         needs -lm directly.
61763         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61764
61765         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61766
61767         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61768         --as-needed option if available.  Problem reported by Albert Chin in
61769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61770         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61771         cc merely issues a bunch of annoying warnings for --as-needed
61772         (this problem was reported by Bob Proulx).  Also, try linking with
61773         -lm to detect a bug in binutils 2.16 (this problem was reported
61774         by Ralf Wildenhues).
61775
61776         2006-06-18  Jim Meyering  <jim@meyering.net>
61777
61778         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61779         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61780         macro.
61781         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61782         also check for glibc-2.4's abort-inducing bug.
61783
61784         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61785         Low-probability clean-up should be to use rmdir to get rid of
61786         the just-created directory, not unlink.
61787
61788         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61789         configure fail, and request a bug report to inform us about it.
61790         Add a comment that, barring reports to the contrary, in 2007 we'll
61791         assume ftruncate is universally available.
61792
61793         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61794
61795         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61796
61797         2006-03-12  Jim Meyering  <jim@meyering.net>
61798
61799         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61800         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61801         * m4/same.m4 (gl_SAME): Likewise.
61802         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61803
61804         2006-03-11  Eric Blake  <ebb9@byu.net>
61805
61806         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61807         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61808         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61809         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61810
61811 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61812
61813         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61814         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61815         reported by Mark D. Baushke, one in
61816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61817
61818         Merge from coreutils.
61819
61820         * lib/.cppi-disable: Add stdint_.h.
61821         * lib/.cvsignore: Add stdint.h.
61822
61823         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61824
61825         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61826         both double and long double versions.
61827         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61828         * lib/xstrtold.c: New file.
61829         * lib/xstrtod.h (xstrtold): New decl.
61830
61831         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61832
61833         * lib/filemode.c (setst): Remove.
61834         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61835         (arguably) clearer, and the generated code is a bit smaller on my
61836         Debian GNU/Linux stable x86 host.
61837
61838         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61839
61840         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61841         Assume that filemode.h includes sys/types.h and sys/stat.h.
61842         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61843         (ftypelet): Reorder to put common cases first, for efficiency.
61844         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61845         to do 'M'.
61846         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61847         of 10, for compatibility with FreeBSD.  All callers changed.
61848         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61849         types that can't be deduced solely from st_mode.  First arg is now a
61850         const pointer.
61851         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61852         (strmode): Renamed from mode_string.
61853         (filemodestring): New decl.
61854         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61855         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61856         needed.
61857         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61858
61859         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61860
61861         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61862         fsusage.h now does that.  Include fsusage.h first, to test interface.
61863         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61864         at most one method (the old code could have generated decls that
61865         didn't conform to C89, not that this was ever exercised).
61866         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61867
61868         2006-03-19  Jim Meyering  <jim@meyering.net>
61869
61870         Work even in a chroot where d_ino values for entries in "/"
61871         don't match the stat.st_ino values for the same names.
61872         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61873         number, iterate through all entries again, using lstat instead.
61874         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61875         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61876
61877         * lib/getcwd.c (__getcwd): Clarify a comment.
61878         Use memcpy in place of a call to strcpy.
61879
61880         2006-03-12  Jim Meyering  <jim@meyering.net>
61881
61882         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61883         matches that of the current directory (which we're about to chdir ".."
61884         out of), then save the dev-ino of the parent, instead.
61885
61886         * lib/same-inode.h (SAME_INODE): New file/macro.
61887         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61888         Include "same-inode.h", instead.
61889         * lib/same.c: Likewise.
61890         * lib/cycle-check.h: Include "same-inode.h".
61891         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61892         * lib/cycle-check.c (SAME_INODE): Remove definition.
61893         * lib/root-dev-ino.h: Include "same-inode.h".
61894
61895         2006-03-11  Eric Blake  <ebb9@byu.net>
61896
61897         * lib/same.c (same_name): s/base_name/last_component/
61898         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61899         * lib/filenamecat.c (file_name_concat): Likewise.
61900
61901         2006-03-11  Eric Blake  <ebb9@byu.net>,
61902                     Paul Eggert  <eggert@cs.ucla.edu>
61903
61904         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61905         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61906         drive prefix.
61907         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61908         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61909         (last_component): New method.
61910         * lib/dirname.c (dir_len): Determine when drive letters need a
61911         subsequent slash.  Preserve // when it is special.
61912         (dir_name): Don't append dot when drive letter is absolute.
61913         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61914         * lib/basename.c (base_name): New semantics - malloc the result.
61915         Preserve // when it is special.  Preserve relative files that look
61916         like drive letters.
61917         (base_len): Preserve // when it is special.
61918         (last_component): New method, similar to old base_name semantics.
61919         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61920         base_name.  Strip redundant slashes from ///.
61921
61922 2006-07-03  Jim Meyering  <jim@meyering.net>
61923
61924         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61925         macro is used before the first cycle_check call.
61926
61927 2006-07-03  Eric Blake  <ebb9@byu.net>
61928
61929         * modules/dirname (Depends-on): Add xstrndup.
61930
61931 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61932
61933         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61934         test cases, so that config.log is a bit easier to follow.
61935
61936 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61939         both are 64 bits, since this seems to be the tradition, and this
61940         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61941         we ever run into a host that prefers long long to long in this
61942         case, we'll need another configure-time test.  Problem reported by
61943         Jim Meyering.
61944
61945 2006-07-02  Eric Blake  <ebb9@byu.net>
61946
61947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61948
61949 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61950
61951         * modules/inttypes (Depends-on): No longer depends on stdint.
61952         * modules/stdint (Description): Say more about assumptions.
61953         Say that the fast types might differ.  Say macros are used.
61954         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61955         (Makefile.am): Revise list of substituted symbols to match
61956         new stdint.m4.
61957         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61958         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61959         * tests/test-stdint.c (verify_same_types)
61960         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61961         the code conforms to C99/C89.
61962         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61963         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61964
61965 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61966
61967         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61968         but fix a bug, by requiring at least 64 bits.
61969         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61970         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61971         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61972         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61973
61974         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61975         changes.  Make 2.59 a prerequisite.  Check and substitute for
61976         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61977         inttypes.h.  Do not use special include files; just use the
61978         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61979         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61980         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61981         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61982         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61983         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61984         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61985         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61986         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61987         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61988         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61989         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61990         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61991         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61992         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61993         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61994         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61995         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61996         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61997         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61998         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61999         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62000         not check for things that C99 does not require, e.g., int8_t.  If
62001         a test isn't needed unless <stdint.h> isn't working, and is
62002         unlikely to be needed for any other reason, then don't do it
62003         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62004         size_t, since we assume C89 freestanding at least.  Do not check
62005         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62006         the right thing even if the types are not defined.  Instead use:
62007         (gl_STDINT_TYPE_PROPERTIES): New macro.
62008         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62009         testing whether <sys/types.h> clashes, as Autoconf does this for
62010         us now.  All uses removed.
62011         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62012         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62013         (gl_CHECK_TYPE_SAME):
62014         Remove; no longer needed.
62015         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62016         exists, since we'll return 0 anyway in that case.
62017         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62018
62019 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62020
62021         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62022         possible collision with system files.
62023         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62024         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62025         WCHAR_MIN and WCHAR_MAX in this case.
62026         (<stddef.h>): Do not include; no longer needed.
62027         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62028         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62029         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62030         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62031         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62032         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62033         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62034         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62035         !defined(__c99))]: Include in this case too, since it's harmless
62036         now.
62037         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62038         dangerous to do so.
62039         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62040         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62041         (_STDINT_MIN, _STDINT_MAX): New macros.
62042         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62043         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62044         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62045         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62046         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62047         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62048         macros, not typedefs; this simplifies things quite a bit.
62049         Use long int for all types narrower than int64_t.
62050         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62051         Define in terms of long long int or int64_t or long int,
62052         not int64_t or int32_t.  This saves some compile-time testing.
62053         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62054         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62055         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62056         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62057         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62058         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62059         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62060         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62061         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62062         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62063         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62064         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62065         undef any previous version and define our own version, for
62066         simplicity and consistency with the new macros for types.
62067         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62068         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62069         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62070         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62071         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62072         @WINT_T_SUFFIX@ to keep things simple here.
62073         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62074         Simplify by assuming typical 8/16/32/64 host, since we're
62075         already doing that elsewhere anyway.
62076         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62077         and assume long long int is 64 bits if available.  This
62078         speeds up 'configure'.
62079
62080 2006-07-01  Eric Blake  <ebb9@byu.net>
62081
62082         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62083         Reported by Andreas Buening.
62084
62085 2006-07-01  Eric Blake  <ebb9@byu.net>
62086
62087         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62088
62089 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62090
62091         * lib/getaddrinfo.c: fixed typo
62092
62093 2006-06-29  Jim Meyering  <jim@meyering.net>
62094
62095         * modules/strftime (Maintainer): Add my name, since with the
62096         FPRINTFTIME changes strftime.c has forked from glibc.
62097
62098 2006-06-29  Eric Blake  <ebb9@byu.net>
62099
62100         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62101
62102 2006-06-29  Eric Blake  <ebb9@byu.net>
62103
62104         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62105
62106 2006-06-29  Eric Blake  <ebb9@byu.net>
62107
62108         * lib/stat_.h: New file.
62109
62110 2006-06-29  Eric Blake  <ebb9@byu.net>
62111
62112         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62113         unused static function.
62114
62115 2006-06-29  Eric Blake  <ebb9@byu.net>
62116
62117         * doc/functions.texi (Function Portability): Document missing lstat
62118         on mingw.
62119
62120 2006-06-29  Eric Blake  <ebb9@byu.net>
62121
62122         * MODULES.html.sh: Add sys_stat.
62123         * modules/sys_stat: New module.
62124         * modules/mkstemp (Depends-on): Add sys_stat.
62125
62126 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62127
62128         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62129
62130 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62131
62132         * m4/c-bs-a.m4: Removed.
62133
62134 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62135
62136         * lib/strftime.c: Assume strftime() exists.
62137
62138 2006-06-29  Derek Price  <derek@ximbiot.com>
62139
62140         * modules/c-bs-a: Removed - \a is C89.
62141         * MODULES.html.sh: Remove c-bs-a.
62142
62143 2006-06-29  Bruno Haible  <bruno@clisp.org>
62144
62145         * modules/wcwidth (License): Change to LGPL.
62146
62147 2006-06-28  Simon Josefsson  <jas@extundo.com>
62148
62149         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62150         on _WIN32.
62151
62152         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62153         getnameinfo.
62154
62155 2006-06-28  Simon Josefsson  <jas@extundo.com>
62156
62157         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62158
62159 2006-06-28  Simon Josefsson  <jas@extundo.com>
62160
62161         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62162         functions there.  It will succeed on Windows XP, but on Windows
62163         2000 and (presumably) earlier, it will fail, and use the internal
62164         re-implementation.
62165         (use_win32_p): New function.
62166         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62167         Support AI_NUMERICSERV to disable getservbyname.
62168         (getnameinfo): New function, only supports
62169         NI_NUMERICHOST|NI_NUMERICSERV for now.
62170
62171         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62172         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62173         getnameinfo.
62174
62175 2006-06-28  Eric Blake  <ebb9@byu.net>
62176
62177         * modules/wcwidth: New file.
62178         * modules/mbchar (Depends-on): Add wcwidth.
62179         * modules/mbswidth (Depends-on): Add wcwidth.
62180         * MODULES.html.sh: Add wcwidth.
62181
62182 2006-06-28  Eric Blake  <ebb9@byu.net>
62183
62184         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62186
62187 2006-06-28  Eric Blake  <ebb9@byu.net>
62188
62189         * lib/xvasprintf.h: Fix comments.
62190
62191 2006-06-28  Eric Blake  <ebb9@byu.net>
62192
62193         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62194         * lib/mbswidth.c (wcwidth): Move from here...
62195         * lib/wcwidth.h: ...to this new file.
62196
62197 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62198
62199         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62200
62201         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62202         it's obsolete.
62203         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62204
62205 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62206
62207         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62208         Autoconf 2.60 says this stuff was obsolete.
62209
62210 2006-06-28  Bruno Haible  <bruno@clisp.org>
62211
62212         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62213
62214 2006-06-28  Bruno Haible  <bruno@clisp.org>
62215
62216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62217         gt_TYPE_WCHAR_T.
62218
62219 2006-06-28  Bruno Haible  <bruno@clisp.org>
62220
62221         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62222         declaration for wcwidth.
62223         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62224
62225 2006-06-28  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62228         (mkdir): Define using _mkdir.
62229
62230 2006-06-28  Bruno Haible  <bruno@clisp.org>
62231
62232         * lib/getaddrinfo.h: Fix POSIX URL.
62233         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62234         _WIN32.
62235         (use_win32_p): Make static.
62236         (getaddrinfo): Reject service name if it is empty or does not consist
62237         solely of decimal digits, or if its value is > 65535.
62238         (getnameinfo): Remove useless casts.
62239
62240 2006-06-27  Simon Josefsson  <jas@extundo.com>
62241
62242         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62243         Eggert and Martin Lambers.
62244
62245 2006-06-27  Simon Josefsson  <jas@extundo.com>
62246
62247         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62248         Eggert and Martin Lambers.
62249
62250 2006-06-27  Bruno Haible  <bruno@clisp.org>
62251
62252         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62253         result to 0, not to empty.
62254         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62255
62256 2006-06-27  Bruno Haible  <bruno@clisp.org>
62257
62258         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62259
62260 2006-06-26  Simon Josefsson  <jas@extundo.com>
62261
62262         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62263         present.
62264
62265 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62266
62267         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62268         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62270
62271 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62272
62273         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62274
62275 2006-06-26  Bruno Haible  <bruno@clisp.org>
62276
62277         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62278
62279 2006-06-26  Bruno Haible  <bruno@clisp.org>
62280
62281         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62282
62283 2006-06-26  Bruno Haible  <bruno@clisp.org>
62284
62285         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62286         SGI C compiler in pre-C99 mode.
62287         Suggested by Mark D. Baushke and Larry Jones.
62288
62289 2006-06-26  Bruno Haible  <bruno@clisp.org>
62290
62291         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62292         WCHAR_MAX.
62293         Reported by Mark D. Baushke and Larry Jones.
62294
62295 2006-06-26  Bruno Haible  <bruno@clisp.org>
62296
62297         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62298         in pre-C99 mode.
62299         Suggested by Mark D. Baushke and Larry Jones.
62300
62301 2006-06-23  Simon Josefsson  <jas@extundo.com>
62302             Bruno Haible  <bruno@clisp.org>
62303
62304         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62305         Emit mostlyclean-local rule.
62306         (func_emit_tests_Makefile_am): Likewise.
62307         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62308
62309 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62310
62311         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62312
62313 2006-06-23  Bruno Haible  <bruno@clisp.org>
62314
62315         * tests/test-stdint.c: Update to match ISO C 99 Technical
62316         Corrigendum 1.
62317
62318 2006-06-23  Bruno Haible  <bruno@clisp.org>
62319
62320         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62321
62322 2006-06-23  Bruno Haible  <bruno@clisp.org>
62323
62324         * lib/stdint_.h: Treat IRIX like OpenBSD.
62325
62326 2006-06-23  Bruno Haible  <bruno@clisp.org>
62327
62328         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62329         ISO C 99 Technical Corrigendum 1.
62330
62331 2006-06-22  Simon Josefsson  <jas@extundo.com>
62332
62333         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62334         MinGW.
62335
62336 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62339         needed.  Some compiler complained about some of them.  Problem reported
62340         by Larry Jones in
62341         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62342
62343 2006-06-21  Simon Josefsson  <jas@extundo.com>
62344
62345         * tests/test-getaddrinfo.c: New file.
62346
62347         * modules/getaddrinfo-tests: New file.
62348
62349         * MODULES.html.sh: Add inet_pton.
62350
62351         * modules/inet_pton: New file.
62352
62353 2006-06-21  Simon Josefsson  <jas@extundo.com>
62354
62355         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62356         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62357         of using the (limited) gnulib implementation on Windows XP.
62358
62359         * m4/inet_pton.m4: New file.
62360
62361 2006-06-21  Simon Josefsson  <jas@extundo.com>
62362
62363         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62364         variable.
62365
62366         * lib/socket_.h: Don't define WINVER.
62367
62368         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62369         slightly modified to work in gnulib.
62370
62371 2006-06-21  Simon Josefsson  <jas@extundo.com>
62372
62373         * doc/gnulib.texi (Windows sockets): Add.
62374
62375 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62376
62377         * lib/read-file.c (fread_file): Start with buffer allocation of
62378         0 bytes rather than 1 byte; this simplifies the code.
62379         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62380         code to free buffer and save/restore errno.
62381         (internal_read_file): Remove unused local.
62382
62383 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62384
62385         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62386         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62387         Problem reported by Denis Excoffier in
62388         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62389
62390 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62391
62392         * modules/sys_socket, modules/socklen: Include sys/types since
62393         FreeBSD 4.x's sys/socket.h needs it.
62394
62395 2006-06-19  Simon Josefsson  <jas@extundo.com>
62396
62397         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62398
62399 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62400
62401         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62402
62403 2006-06-19  Bruno Haible  <bruno@clisp.org>
62404
62405         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62406         and FULL_PATH_INTTYPES_H in angle brackets.
62407         Reported by Mark D. Baushke <mdb@gnu.org>.
62408
62409 2006-06-17  Eric Blake  <ebb9@byu.net>
62410
62411         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62412         errno.
62413
62414 2006-06-17  Bruno Haible  <bruno@clisp.org>
62415
62416         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62417         <sys/inttypes.h>.
62418
62419 2006-06-17  Bruno Haible  <bruno@clisp.org>
62420
62421         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62422         whether errno is declared. Assume <errno.h> declares errno.
62423
62424 2006-06-17  Bruno Haible  <bruno@clisp.org>
62425
62426         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62427
62428 2006-06-17  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62431         problem on Solaris 2.5.1.
62432
62433 2006-06-16  Eric Blake  <ebb9@byu.net>
62434
62435         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62436         * lib/unicodeio.c [!defined errno]: Likewise.
62437         * lib/strtol.c [!defined errno]: Likewise.
62438         * lib/strtod.c [!defined errno]: Likewise.
62439
62440 2006-06-15  Eric Blake  <ebb9@byu.net>
62441
62442         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62443
62444 2006-06-15  Eric Blake  <ebb9@byu.net>
62445
62446         * config/srclist.txt (ssize_t.m4): Lose sync.
62447
62448 2006-06-15  Bruno Haible  <bruno@clisp.org>
62449
62450         * modules/stdint (Files): Include m4/full-header-path.m4,
62451         m4/size_max.m4, m4/wchar_t.m4.
62452         (Makefile.am): Many more substitutions.
62453         * modules/stdint-tests: New file.
62454         * tests/test-stdint.c: New file.
62455
62456 2006-06-15  Bruno Haible  <bruno@clisp.org>
62457
62458         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62459         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62460         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62461         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62462         gl_CHECK_TYPE_SAME): New macros.
62463
62464 2006-06-15  Bruno Haible  <bruno@clisp.org>
62465
62466         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62467
62468 2006-06-15  Bruno Haible  <bruno@clisp.org>
62469
62470         * lib/stdint_.h: Rewritten to be fully auto-configured.
62471         Fixes bug on HP-UX/IA64.
62472
62473 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * lib/getdate.y (__attribute__): Don't define if already defined.
62476         Problem reported by Larry Jones.
62477         * lib/utimens.c (__attribute__): Likewise.
62478
62479 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62482         reported by Andreas Schwab.
62483
62484 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62485             Bruno Haible  <bruno@clisp.org>
62486
62487         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62488         check for the declaration of strnlen and a run test that exposes the
62489         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62490         rpl_strndup.
62491
62492 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62493             Bruno Haible  <bruno@clisp.org>
62494
62495         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62496
62497 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62498
62499         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62500         compile test, for Tru64 4.0D.
62501
62502 2006-05-28  Karl Berry  <karl@gnu.org>
62503
62504         * config/srclist.txt (printf-args.c): lose sync.
62505
62506 2006-05-26  Martin Lambers  <marlam@marlam.de>
62507
62508         * lib/getpass.c: Updates the test for the native W32 API, and adds
62509         missing includes, thus fixing compilation warnings.
62510
62511 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62512
62513         * lib/exclude.c (exclude_fnmatch): New function.
62514         (excluded_file_name): Call exclude_fnmatch.
62515         * lib/exclude.h (excluded_file_name): New prototype
62516
62517 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62518
62519         * lib/tempname.c (small_open, large_open): New macros.
62520         (__open, __open64) [!_LIBC]: Remove.
62521         (__gen_tempname): Use small_open and large_open instead of __open
62522         and __open64.  This fixes a portability bug on HP-UX 11.11i
62523         reported by Simon Wing-Tang in
62524         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62525
62526 2006-05-24  Bruno Haible  <bruno@clisp.org>
62527
62528         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62529         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62530         Reported by Thorsten Maerz <torte@netztorte.de> via
62531         Aaron Stone <aaron@serendipity.cx>.
62532
62533 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62534
62535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62536         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62537         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62538         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62539         not really conditional on the cache.
62540         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62541
62542 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62543
62544         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62545         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62546         (my_usleep): Don't mishandle maximum value.
62547
62548 2006-05-19  Jim Meyering  <jim@meyering.net>
62549
62550         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62551
62552 2006-05-17  Bruno Haible  <bruno@clisp.org>
62553
62554         Cygwin portability.
62555         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62556
62557 2006-05-17  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/stdint_.h: Fix recognition of Cygwin.
62560
62561 2006-05-15  Bruno Haible  <bruno@clisp.org>
62562
62563         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62564         on libtool patch by Ralf Wildenhues.
62565
62566 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62569         test for C99 conformance; (bool) 0.5 is an integer constant
62570         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62571         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62572
62573 2006-05-11  Simon Josefsson  <jas@extundo.com>
62574
62575         * m4/xvasprintf.m4: Fix obvious typo.
62576
62577 2006-05-11  Jim Meyering  <jim@meyering.net>
62578
62579         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62580         James Lemley.
62581
62582 2006-05-10  Simon Josefsson  <jas@extundo.com>
62583
62584         * lib/md4.c: Typo fix, update copyright years.
62585         (K1, K2): Don't use L because it turn computations into 64-bit on
62586         64-bit platforms.
62587
62588 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62591         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62592         unwanted sign propagation, e.g., on hosts with 64-bit int.
62593         There still are some problems with reeelly weird theoretical hosts
62594         (e.g., 33-bit int) but it's not worth worrying about now.
62595         * lib/sha1.c (rol): Likewise.
62596         (K1, K2, K3, K4): Remove unnecessary L suffix.
62597
62598 2006-05-10  Bruno Haible  <bruno@clisp.org>
62599
62600         * lib/des.c: Cast to avoid warnings.
62601
62602 2006-05-09  Bruno Haible  <bruno@clisp.org>
62603
62604         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62605         (Depends-on): Depend also on xsize, stdarg.
62606         (configure.ac): Add gl_XVASPRINTF.
62607
62608 2006-05-09  Bruno Haible  <bruno@clisp.org>
62609
62610         * m4/xvasprintf.m4: New file.
62611
62612 2006-05-09  Bruno Haible  <bruno@clisp.org>
62613
62614         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62615         (EOVERFLOW): Define fallback value.
62616         (xstrcat): New function.
62617         (xvasprintf): Recognize the special case of a string concatenation.
62618
62619 2006-05-08  Eric Blake  <ebb9@byu.net>
62620
62621         * gnulib-tool (func_version): Base copyright year on CVS date.
62622         (func_emit_copyright_notice): New function.
62623         (func_emit_lib_Makefile_am): Use it.
62624         (func_emit_tests_Makefile_am): Likewise.
62625         (func_import): Likewise.
62626
62627 2006-05-08  Bruno Haible  <bruno@clisp.org>
62628
62629         * modules/stdarg: New file.
62630         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62631
62632 2006-05-08  Bruno Haible  <bruno@clisp.org>
62633
62634         * m4/stdarg.m4: New file, from GNU gettext.
62635
62636 2006-05-08  Bruno Haible  <bruno@clisp.org>
62637
62638         * config/srclist.txt (build-aux/config.rpath): different from latest
62639         release.
62640
62641 2006-05-08  Bruno Haible  <bruno@clisp.org>
62642
62643         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62644
62645 2006-05-05  Jim Meyering  <jim@meyering.net>
62646
62647         * m4/warning.m4: New file, derived from bison's file by the same name.
62648
62649 2006-05-03  Bruno Haible  <bruno@clisp.org>
62650
62651         * lib/stdint_.h: Shorter URL.
62652         * lib/inttypes.h: Likewise.
62653
62654 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62657
62658 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * lib/verify.h: Document the internals better.  Most of this change
62661         was written by Bruno Haible.
62662
62663 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62664
62665         * doc/verify.texi: New file, partly based on a proposal by
62666         Bruno Haible.
62667
62668 2006-05-02  Bruno Haible  <bruno@clisp.org>
62669
62670         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62671         test from here...
62672         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62673
62674 2006-04-29  Bruno Haible  <bruno@clisp.org>
62675
62676         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62677         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62678
62679 2006-04-29  Bruno Haible  <bruno@clisp.org>
62680
62681         * gnulib-tool: Make --update option actually work.
62682
62683 2006-04-29  Bruno Haible  <bruno@clisp.org>
62684
62685         * doc/gcd.texi: New file.
62686         * doc/gnulib.texi: Include it.
62687
62688 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62689
62690         * lib/getdate.y (get_date): When adding relative date, start with the
62691         initial time, not with the result of the first mktime call.
62692
62693 2006-04-25  Bruno Haible  <bruno@clisp.org>
62694
62695         * gnulib-tool (func_import): Output the include directives in three
62696         blocks, sorted separately.
62697         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62698
62699 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62702         to define main with arguments, for C++.  Reported by Eric Blake.
62703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62704         Prefer 'int main ()' to 'int main (void)', for C++.
62705         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62706         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62707         for 'main', for C99 and C++.
62708
62709 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62710
62711         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62712         Don't assume that exit status -1 is valid.
62713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62714         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62715         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62716         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62717         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62718         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62719         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62720         functions can be used without declaring them, or that you can
62721         exit with status -1.
62722         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62723
62724 2006-04-24  Karl Berry  <karl@gnu.org>
62725
62726         * config/srclist.txt (longdouble.m4): sync lost.
62727
62728 2006-04-24  Eric Blake  <ebb9@byu.net>
62729
62730         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62731
62732 2006-04-24  Bruno Haible  <bruno@clisp.org>
62733
62734         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62735         poll() implementation in AIX.
62736         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62737
62738 2006-04-24  Bruno Haible  <bruno@clisp.org>
62739
62740         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62741         assigned exactly once.
62742
62743 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62744             Bruno Haible  <bruno@clisp.org>
62745
62746         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62747         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62748         for AM_CPPFLAGS.
62749
62750 2006-04-23  Bruno Haible  <bruno@clisp.org>
62751
62752         * modules/copy-file: Depend on unistd.
62753         * modules/execute: Likewise.
62754         * modules/fatal-signal: Likewise.
62755         * modules/findprog: Likewise.
62756         * modules/mkdtemp : Likewise.
62757         * modules/pipe: Likewise.
62758         * modules/wait-process: Likewise.
62759
62760 2006-04-23  Bruno Haible  <bruno@clisp.org>
62761
62762         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62763         condition was already detected.
62764         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62765
62766 2006-04-23  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/copy-file.c: Include <unistd.h> unconditionally.
62769         * lib/execute.c: Likewise.
62770         * lib/fatal-signal.c: Likewise.
62771         * lib/findprog.c: Likewise.
62772         * lib/mkdtemp.c: Likewise.
62773         * lib/pipe.h: Likewise.
62774         * lib/pipe.c: Likewise.
62775         * lib/wait-process.h: Likewise.
62776
62777 2006-04-23  Bruno Haible  <bruno@clisp.org>
62778
62779         * gnulib-tool (func_usage): Fix --import description. Document
62780         --update.
62781         (func_import): Create temporary file in a temporary directory, if
62782         --dry-run is specified. Silence errors from 'grep' when there are no
62783         m4 files in $m4dir.
62784         (func_create_testdir): Silence errors from 'grep' when there are no
62785         m4 files in $m4dir.
62786         Reported by Karl Berry <karl@freefriends.org>.
62787
62788 2006-04-20  Bruno Haible  <bruno@clisp.org>
62789
62790         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62791         one argument, so that the code will be portable to Autoconf 2.60.
62792         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62793         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62794         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62795
62796 2006-04-19  Derek Price  <derek@ximbiot.com>
62797             Eric Blake  <ebb9@byu.net>
62798
62799         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62800         rather than "/full/path.h".  Update comment to match.  Shorten &
62801         generalize m4_translit call via AS_TR_CPP.
62802
62803 2006-04-19  Derek Price  <derek@ximbiot.com>
62804             Eric Blake  <ebb9@byu.net>
62805
62806         * lib/inttypes.h: Correct grammar in comment.
62807
62808 2006-04-18  Derek Price  <derek@ximbiot.com>
62809             Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         * modules/inttypes: New file.
62812         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62813
62814 2006-04-18  Derek Price  <derek@ximbiot.com>
62815             Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62818         New files.
62819
62820 2006-04-18  Derek Price  <derek@ximbiot.com>
62821             Paul Eggert  <eggert@cs.ucla.edu>
62822
62823         * lib/inttypes.h: New file.
62824         * lib/strtoimax.c: Assume <inttypes.h>.
62825
62826 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62829         isn't mounted.  Problem reported by Kir Kolyshkin.
62830
62831 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62832
62833         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62834         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62835         Derek R. Price.
62836         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62837         implementation.
62838
62839 2006-04-12  Eric Blake  <ebb9@byu.net>
62840
62841         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62842         is now done automatically by the corresponding Autoconf macro.
62843
62844 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62845
62846         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62847         time_r.h.
62848
62849 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         Merge regex changes from libc, removing some of our
62852         POSIX-conformance changes that were rejected and redoing them in a
62853         less-intrusive way.
62854
62855         * lib/regcomp.c (re_compile_internal, init_dfa):
62856         Length arg is now size_t, not Idx.  All uses changed.
62857         (peek_token): Forward decl now says internal_function.
62858         (__re_error_msgid, __re_error_msgid_idx):
62859         Now static rather than extern with attribute_hidden.
62860         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62861         For some reason libc prefers K&R style defns for external functions.
62862         (regerror) [!defined _LIBC]: Likewise.
62863         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62864         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62865         (build_range_exp, build_collating_symbol):
62866         Use K&R-style defn.
62867         (re_compile_fastmap): Use '\0' to memset, not 0.
62868         (utf8_sb_map): Make the calculations more obvious.
62869         (init_dfa, parse_bracket_exp, build_charclass_op):
62870         Call calloc and cast result, as glibc does.
62871         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62872         (build_range_exp, build_collating_symbol):
62873         Now internal functions.
62874
62875         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62876
62877         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62878         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62879         Don't depend on VMS; depend on __VMS instead, for POSIX
62880         namespace cleanness.
62881         (regoff_t): Define to ssize_t, not long int.
62882
62883         Remove the REG_ macros named below.  Instead, make the old names
62884         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62885         __USE_GNU_REGEX.
62886         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62887         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62888         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62889         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62890         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62891         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62892         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62893         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62894         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62895         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62896         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62897         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62898         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62899         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62900         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62901         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62902         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62903         (REG_NREGS):
62904         Remove.  All uses replaced by the old RE_* names.
62905         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62906         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62907         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62908         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62909         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62910         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62911         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62912         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62913         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62914         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62915         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62916         Don't bother having these macros be independent of each others'
62917         values, since they no longer exist in the POSIX name space.
62918
62919         Rename the following member names back to their old names,
62920         unless !__USE_GNU_REGEX.  All uses changed back.
62921         (buffer): Renamed from re_buffer.
62922         (allocated): Renamed from re_allocated.
62923         (used): Renamed from re_used.
62924         (syntax): Renamed from re_syntax.
62925         (fastmap): Renamed from re_fastmap.
62926         (translate): Renamed from re_translate.
62927         (can_be_null): Renamed from re_can_be_null.
62928         (regs_allocated): Renamed from re_regs_allocated.
62929         (fastmap_accurate): Renamed from re_fastmap_accurate.
62930         (no_sub): Renamed from re_no_sub.
62931         (not_bol): Renamed from re_not_bol.
62932         (not_eol): Renamed from re_not_eol.
62933         (newline_anchor): Renamed from re_newline_anchor.
62934         (num_regs): Renamed from rm_num_regs.
62935         (start): Renamed from rm_start.
62936         (end): Renamed from rm_end.
62937
62938         (free_state): Move up a bit.
62939
62940         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62941         #define to be empty.
62942         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62943         when that is what is intended.
62944         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62945         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62946         (MAX): New macro.
62947         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62948         All uses changed back to re_malloc, etc.  It's now the caller's
62949         responsibility to check for overflow; all callers changed.
62950         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62951         (re_x2nrealloc): Remove.
62952         (free_state): Remove decl.
62953
62954         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62955         (re_set_registers, re_exec):
62956         Use K&R-style defn.
62957
62958         2006-01-31  Roland McGrath  <roland@redhat.com>
62959
62960         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62961         Reported by Mike Frysinger <vapier@gentoo.org>.
62962
62963         2006-01-15  Andreas Jaeger  <aj@suse.de>
62964
62965         [BZ #1950]
62966         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62967         build_wcs_upper_buffer change.
62968         (build_wcs_upper_buffer): Change return type.
62969
62970         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62971
62972         * lib/regex_internal.h: Include <stdint.h> if available.
62973
62974         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62975
62976         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62977
62978         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62979
62980         * lib/regcomp.c: Adjust for changed secondary hash function.
62981
62982         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62983
62984         * lib/regex.h: Pretty printing.
62985         Clean up namespace a bit.
62986
62987         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62988
62989         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62990         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62991
62992         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62993                     Ulrich Drepper  <drepper@redhat.com>
62994
62995         [BZ #1302]
62996         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62997         changed.
62998         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62999
63000         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63001
63002         [BZ #281]
63003         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63004         * lib/regcomp.c: Remove unnecessary uses of
63005         unsigned RE_TRANSLATE_TYPE.
63006         * lib/regex_internal.h: Likewise.
63007         * lib/regex_internal.c: Likewise.
63008         * lib/regexec.c: Likewise.
63009         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63010
63011         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63012
63013         * lib/regexec.c (find_recover_state): Remove unnecessary
63014         initialization.
63015         (transit_state_bkref): Make DFA a const pointer.
63016         (get_subexp): Likewise.
63017         (check_arrival): Likewise.
63018         (update_cur_sifted_state): Likewise.
63019         (re_search_internal): Likewise.
63020         (prune_impossible_nodes): Likewise.
63021         (acquire_init_state_context): Likewise.
63022         (proceed_next_node): Likewise.
63023         (set_regs): Likewise.
63024         (free_fail_stack_return): Likewise.
63025         (check_arrival_expand_ecl): Mark DFA parameter as const.
63026         (check_arrival_expand_ecl_sub): Likewise.
63027         (check_subexp_limits): Likewise.
63028         (sub_epsilon_src_nodes):  Likewise.
63029         (add_epsilon_src_nodes):  Likewise.
63030         (merge_state_array): Likewise.
63031         (update_regs): Likewise.
63032         (build_trtable): Likewise.
63033         (sift_states_backward): Mark MCTX parameter as const.
63034         (build_sifted_states): Likewise.
63035         (update_cur_sifted_state): Likewise.
63036         (sift_states_mkref): Likewise.
63037         (check_arrival_expand_ecl): Mark eclosure as const.
63038         (check_dst_limits_calc_pos_1): Likewise.
63039         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63040         pointer.
63041
63042         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63043
63044         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63045         (transit_state_sb): Likewise.
63046         (transit_state_mb): Likewise.
63047         (sift_states_iter_mb): Likewise.
63048         (check_arrival_add_next_nodes): Likewise.
63049         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63050         [_LIBC] (re_search_2_stub): Use mempcpy.
63051
63052         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63053         mbrtowc for very simple UTF-8 case.
63054
63055         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63056         a pointer-to-const.
63057         (re_acquire_state_context): Likewise.
63058         * lib/regex_internal.h: Adjust prototypes.
63059
63060         * lib/regex.c: Prevent using C++ compilers.
63061
63062         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63063         (re_acquire_state_context): Likewise.
63064
63065 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63066
63067         * modules/regex (Depends-on): Add ssize_t.
63068
63069 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63070
63071         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63072         translation table.
63073
63074 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63077
63078 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63079             Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63082         <sys/types.h> and <inttypes.h>.
63083
63084 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63085
63086         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63087         `__error_t_defined', so argp.h will not typedef the former.
63088
63089 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63092         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63093         glibc names.  Even if glibc is changed to conform to POSIX, the
63094         traditional names will be available anyway, since regex depends on
63095         the extensions module.  Also, fix a longstanding typo in the
63096         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63097         reported by Emanuele Giaquinta.  Also, change sense of cached
63098         variable, so that the message makes sense.
63099
63100 2006-03-24  Simon Josefsson  <jas@extundo.com>
63101
63102         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63103         including some doc fixes.
63104         (base64_encode_alloc): Fix +1 bug on allocation failures.
63105
63106 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63107
63108         * lib/base64.c (base64_encode): Do not read past end of array with
63109         unsanitized input on systems with CHAR_BIT > 8.
63110
63111 2006-03-24  Eric Blake  <ebb9@byu.net>
63112
63113         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63114
63115 2006-03-22  Karl Berry  <karl@gnu.org>
63116
63117         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63118         * config/srclistvars.sh (COREUTILS): new var.
63119
63120 2006-03-17  Jim Meyering  <jim@meyering.net>
63121
63122         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63123         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63124
63125 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63126
63127         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63128         no longer needs it.  Instead, check that regoff_t is as least
63129         as wide as ptrdiff_t.
63130
63131         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63132         so that our regex.h stays compatible with the installed regex.
63133         This is helpful for installers who configure --without-included-regex.
63134         Problem reported by Emanuele Giaquinta.
63135
63136 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63137
63138         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63139         Typedef to long int, not to off_, as POSIX will likely change
63140         in that direction.
63141
63142 2006-03-15  Eric Blake  <ebb9@byu.net>
63143
63144         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63145
63146 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63147
63148         * lib/argp-help.c (validate_uparams): Fix typo
63149         * lib/argp-parse.c (argp_default_options): Consistently begin help
63150         messages with a lowercase letter.
63151
63152 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63153
63154         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63155         overrun buffers and shouldn't be used (much as gets shouldn't be
63156         used).
63157         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63158
63159 2006-03-08  Simon Josefsson  <jas@extundo.com>
63160
63161         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63162         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63163
63164 2006-03-08  Simon Josefsson  <jas@extundo.com>
63165
63166         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63167         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63168
63169 2006-03-08  Simon Josefsson  <jas@extundo.com>
63170
63171         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63172         signal that configure disabled the device.
63173
63174 2006-03-08  Simon Josefsson  <jas@extundo.com>
63175
63176         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63177         languages.
63178
63179 2006-03-07  Simon Josefsson  <jas@extundo.com>
63180
63181         * modules/getopt (Depends-on): Add unistd.
63182
63183         * modules/unistd: New file.
63184
63185 2006-03-07  Simon Josefsson  <jas@extundo.com>
63186
63187         * modules/gc-random: New file.
63188
63189 2006-03-07  Simon Josefsson  <jas@extundo.com>
63190
63191         * m4/unistd_h.m4: New file.
63192
63193 2006-03-07  Simon Josefsson  <jas@extundo.com>
63194
63195         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63196         test to be side-effect free by storing the result in the cache
63197         variable gl_cv_lib_readline, and moving the assignment of
63198         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63199         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63200
63201 2006-03-07  Simon Josefsson  <jas@extundo.com>
63202
63203         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63204         error on missing devices (the functions will return an error).
63205
63206         * m4/gc.m4: Move random stuff to gc-random.m4
63207
63208 2006-03-07  Simon Josefsson  <jas@extundo.com>
63209
63210         * lib/unistd_.h: New file.
63211
63212 2006-03-07  Simon Josefsson  <jas@extundo.com>
63213
63214         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63215
63216 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63219         Problem reported by Juan Manuel Guerrero.
63220
63221 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63222
63223         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63224         the unistd module.
63225         * lib/getlogin_r.c: Likewise.
63226         * lib/getlogin_r.h: Likewise.
63227         * lib/glob.c: Likewise.
63228         * lib/pagealign_alloc.c: Likewise.
63229         * lib/unistd_.h: Remove; no longer needed.
63230
63231 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63232
63233         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63234         Add unistd.
63235         * modules/c-stack (Depends-on): Add unistd.
63236         * modules/getlogin_r: Likewise.
63237         * modules/glob: Likewise.
63238         * modules/pagealign_alloc: Likewise.
63239         * modules/unistd (Files): Remove lib/unistd_.h.
63240         (EXTRA_DIST): Remove.
63241         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63242         need unistd_.h.
63243         (MOSTLYCLEANFILES): Remove unistd.h-t.
63244
63245 2006-03-03  Simon Josefsson  <jas@extundo.com>
63246
63247         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63248
63249 2006-03-03  Simon Josefsson  <jas@extundo.com>
63250
63251         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63252         libidn and bison.
63253
63254 2006-03-03  Simon Josefsson  <jas@extundo.com>
63255
63256         * build-aux/maint.mk: Add indent target.
63257
63258 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63259
63260         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63261         our replacement poll.h in any case, to avoid a differing
63262         declaration from a system header.  Seen on AIX.
63263
63264 2006-03-01  Simon Josefsson  <jas@extundo.com>
63265
63266         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63267         <kasal@ucw.cz>.
63268
63269 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63270
63271         * modules/gettime (Depends-on): Add extensions module.
63272         * modules/nanosleep (Depends-on): Likewise.
63273         * modules/settime (Depends-on): Likewise.
63274
63275 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63276
63277         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63278         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63279         pedantically.
63280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63281         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63282
63283         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63284         not "==".  Reported by Ralf Wildenhues.
63285
63286 2006-03-01  Karl Berry  <karl@gnu.org>
63287
63288         * doc/Copyright/request-*: new files, synced from gnuorg.
63289
63290 2006-03-01  Karl Berry  <karl@gnu.org>
63291
63292         * config/srclist.txt (Copyright/*): new entries.
63293
63294 2006-02-28  Simon Josefsson  <jas@extundo.com>
63295
63296         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63297
63298 2006-02-27  Simon Josefsson  <jas@extundo.com>
63299
63300         * lib/base64.h: Indent #define's.  From Jim Meyering
63301         <jim@meyering.net>.
63302
63303 2006-02-27  Jim Meyering  <jim@meyering.net>
63304
63305         Revert the change of 2006-02-24, so these files can continue
63306         to be sync'd from gettext.
63307         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63308         of `config.h'.
63309
63310 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63311
63312         * modules/intprops: New file.
63313         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63314         Add intprops.
63315         * modules/getloadavg (Files): Remove lib/intprops.h.
63316         (Depends-on): Add intprops.
63317         * modules/human: Likewise.
63318         * modules/inttostr: Likewise.
63319         * modules/openat: Likewise.
63320         * modules/sig2str: Likewise.
63321         * modules/userspec: Likewise.
63322         * modules/utimecmp: Likewise.
63323         * modules/xnanosleep: Likewise.
63324         * modules/xstrtol: Likewise.
63325
63326 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63327
63328         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63329         * modules/lock-tests (TESTS): Use $(EXEEXT).
63330         * modules/tls-tests: Likewise.
63331         * modules/argp-tests: Likewise.
63332         (check_PROGRAMS): New var, replacing...
63333         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63334
63335 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63336
63337         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63338         `config.h'.
63339
63340 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63341
63342         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63343
63344 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63345
63346         Sync from coreutils.
63347         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63348         gl_CHDIR_SAFER.
63349
63350 2006-02-22  Jim Meyering  <jim@meyering.net>
63351
63352         Sync from coreutils.
63353         * m4/chdir-safer.m4: New file.
63354
63355 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63356
63357         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63358         AT_FDCWD exceeds INT_MAX.
63359         * lib/openat.h (AT_FDCWD): Likewise.
63360
63361 2006-02-17  Eric Blake  <address@hidden>
63362
63363         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63364
63365 2006-02-16  Simon Josefsson  <jas@extundo.com>
63366
63367         * modules/getaddrinfo (Depends-on): Add sys_socket.
63368
63369 2006-02-15  Simon Josefsson  <jas@extundo.com>
63370
63371         * build-aux/maint.mk: Add dsyntax-check rule.
63372
63373 2006-02-15  Eric Blake  <ebb9@byu.net>
63374
63375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63376         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63377         'present but cannot compile' warnings on cygwin.
63378         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63379         use ws2tcpip.h if sys/socket.h works.
63380         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63381         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63382
63383 2006-02-14  Simon Josefsson  <jas@extundo.com>
63384
63385         * modules/maintainer-makefile (Files): Rename.
63386
63387         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63388         and (the local) Makefile.cfg to maint-cfg.mk.
63389
63390         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63391         to the latter.
63392
63393         * modules/maintainer-makefile: New module.
63394
63395         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63396         severaly stripped to make it possible to build it up from scratch
63397         with reliable tests.
63398
63399         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63400         fixes to permit overriding the default actions when configure and
63401         makefile are not available.
63402
63403 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63404
63405         Sync from coreutils.
63406         * modules/lstat (Depends-on): Don't depend on xalloc.
63407         (License): Change from GPL to LGPL, since this is now simply a
63408         replacement for a libc function.
63409
63410 2006-02-14  Jim Meyering  <jim@meyering.net>
63411
63412         Sync from coreutils.
63413
63414         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63415         failure on deficient systems, and simplify gnulib lgpl dependencies.
63416         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63417         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63418
63419         * lib/xalloc-die.c: Remove unused definition of N_.
63420
63421 2006-02-14  Jim Meyering  <jim@meyering.net>
63422
63423         Sync from coreutils.
63424         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63425         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63426         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63427         double-quote uses of that variable, to accommodate the rare case in
63428         which getmntent is available in none of the libraries checked.  This
63429         happens at least on FreeBSD 5.0.
63430
63431 2006-02-13  Simon Josefsson  <jas@extundo.com>
63432
63433         * gnulib-tool (Usage): Fix --import, from
63434         karl@freefriends.org (Karl Berry).
63435
63436 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63437
63438         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63439
63440 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63441
63442         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63443         "autoupdate" on 2005-12-12.
63444
63445 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63446
63447         * modules/closeout (Depends-on): Remove atexit.
63448
63449 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63450
63451         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63452         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63453
63454 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63457         __EXTENSIONS__ if this causes compilation to fail.  Problem
63458         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63459         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63460
63461 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63462
63463         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63464         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63466         All uses changed.
63467
63468 2006-01-26  Simon Josefsson  <jas@extundo.com>
63469
63470         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63471         prototype is visible on mingw32.
63472
63473         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63474         for mingw32.
63475
63476         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63477         mingw32).
63478
63479 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63480
63481         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63482         attempt to open for write; this always fails, at least on POSIX
63483         hosts.  This reinstates the 2006-01-09 change, which was
63484         inadvertently removed.
63485
63486 2006-01-26  Bruno Haible  <bruno@clisp.org>
63487
63488         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63489         Reported by Paul Eggert.
63490
63491 2006-01-26  Bruno Haible  <bruno@clisp.org>
63492             Paul Eggert  <eggert@cs.ucla.edu>
63493
63494         * lib/stdbool_.h (_Bool)
63495         [(! (defined __cplusplus || defined __BEOS__)
63496           && !defined __GNUC__
63497           && !(defined __HP_cc || defined __xlc__
63498                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63499                || defined __sgi))]:
63500         #define to signed char in these cases too; this simplifies
63501         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63502         etc., separately) and makes it more conservative.
63503
63504 2006-01-25  Simon Josefsson  <jas@extundo.com>
63505
63506         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63507         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63508         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63509
63510 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63511
63512         * lib/argp-namefrob.h: Bugfix. Remove stray #
63513
63514 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63517         so that we test the test.
63518         Check for yet another HP-UX cc bug involving *bool |= bool.
63519
63520 2006-01-25  Karl Berry  <karl@gnu.org>
63521
63522         * config/srclist.txt (vasnprintf.c): sync lost.
63523
63524 2006-01-25  Jim Meyering  <jim@meyering.net>
63525
63526         Sync from the stable (b5) branch of coreutils:
63527
63528         * lib/fts.c (fts_children): Don't let close() clobber errno from
63529         failed fchdir().
63530
63531         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63532         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63533         a dangling symlink.  That can also happen at least for ELOOP.
63534         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63535         FYI, this bug predates the inclusion of fts.c in coreutils.
63536
63537         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63538         in their own block, so pre-c99 compilers don't object.
63539
63540         Avoid the double-free (first in fts_read, second in fts_close) that
63541         would occur when an `active' directory is made inaccessible (e.g.,
63542         via chmod a-x) during a traversal.
63543         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63544         before returning.  Reproduce this failure by
63545         mkdir -p a/b; cd a; chmod a-x . b
63546         Reported by Stavros Passas.
63547
63548 2006-01-25  Jim Meyering  <jim@meyering.net>
63549
63550         * lib/fileblocks.c: Remove more useless parentheses.
63551         * lib/readutmp.h: Likewise.
63552
63553 2006-01-25  Bruno Haible  <bruno@clisp.org>
63554
63555         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63556         warnings.
63557         Reported by Paul Eggert.
63558
63559 2006-01-25  Bruno Haible  <bruno@clisp.org>
63560
63561         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63562         rid of a trap command. For Solaris sh.
63563         Reported by Mark D. Baushke <mdb@gnu.org>.
63564
63565 2006-01-24  Simon Josefsson  <jas@extundo.com>
63566
63567         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63568         Bruno.
63569
63570 2006-01-24  Karl Berry  <karl@gnu.org>
63571
63572         * config/srclist.txt (argp-namefrob.h): sync lost.
63573
63574 2006-01-24  Jim Meyering  <jim@meyering.net>
63575
63576         * modules/openat (Files): Add lib/intprops.h.
63577         From Mark D. Baushke.
63578
63579 2006-01-24  Jim Meyering  <jim@meyering.net>
63580
63581         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63582         Reported by Mark D. Baushke.
63583
63584 2006-01-24  Jim Meyering  <jim@meyering.net>
63585
63586         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63587
63588 2006-01-24  Bruno Haible  <bruno@clisp.org>
63589
63590         * modules/strnlen (Maintainer): Change from glibc to all.
63591
63592 2006-01-24  Bruno Haible  <bruno@clisp.org>
63593
63594         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63595         Patch by Paul Eggert.
63596
63597 2006-01-24  Bruno Haible  <bruno@clisp.org>
63598
63599         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63600         already has it.
63601         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63602         2005-11-26.
63603
63604         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63605         'signed char' to avoid problems with the built-in _Bool type.
63606         Reported by Paul Eggert on 2005-11-26.
63607
63608 2006-01-24  Bruno Haible  <bruno@clisp.org>
63609
63610         * gnulib-tool (func_import): Avoid constructing complicated sed
63611         expressions inside backquote.
63612         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63613
63614 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63615
63616         These changes imported from libc.
63617         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63618         test and two separate function calls.
63619         * lib/strndup.c (__strndup): Add libc_hidden_def.
63620
63621 2006-01-23  Simon Josefsson  <jas@extundo.com>
63622
63623         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63624         Remove the test_*_SOURCES variable: automake infers it by default.
63625         * modules/tls-tests: Likewise.
63626
63627 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63628
63629         Work around porting bugs reported by Dieter in
63630         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63631         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63632         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63633         Include "getopt.h" first, to check interface.
63634         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63635         !HAVE_DECL_GETENV.
63636         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63637         (__strndup): Revert to K&R-style function dfns, the glibc style.
63638         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63639         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63640         Include strnlen.h first, to get prototype properly.
63641         (strnlen): Renamed from __strnlen.
63642         Remove weak alias.
63643
63644 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63645
63646         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63647
63648 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63649
63650         * config/srclist.txt: Adjust to reflect glibc reorganization.
63651         This affects only comments.
63652
63653 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63654
63655          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63656          Reported by Bruce Korb <bkorb@gnu.org>.
63657
63658 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63659
63660         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63661         to pacify gcc -Wswitch-default.
63662
63663 2006-01-22  Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63666         temporary buffer for sprintf, take into account the precision also
63667         for 'd', 'i', 'u', 'o', 'x', 'X'.
63668
63669 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63670
63671         * modules/argp-tests: New module
63672         * tests/test-argp.c: New file
63673         * tests/test-argp-2.sh: New file
63674
63675 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63676
63677         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63678         (__argp_base_name): Removed
63679         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63680         typo.
63681         (__argp_base_name): Provide macro definition or extern declaration
63682         depending on the configuration
63683
63684 2006-01-20  Simon Josefsson  <jas@extundo.com>
63685
63686         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63687
63688 2006-01-20  Simon Josefsson  <jas@extundo.com>
63689
63690         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63691
63692 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63695         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63696         Suggested by Bruno Haible.
63697
63698 2006-01-20  Karl Berry  <karl@gnu.org>
63699
63700         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63701         until changes propagate, I guess.
63702
63703 2006-01-19  Simon Josefsson  <jas@extundo.com>
63704
63705         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63706
63707 2006-01-19  Simon Josefsson  <jas@extundo.com>
63708
63709         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63710
63711 2006-01-19  Simon Josefsson  <jas@extundo.com>
63712
63713         * gnulib-tool: Set check_PROGRAMS.
63714
63715         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63716         modules/des-tests, modules/gc-arcfour-tests,
63717         modules/gc-arctwo-tests, modules/gc-des-tests,
63718         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63719         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63720         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63721         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63722         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63723         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63724         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63725         test_*_SOURCES.
63726
63727 2006-01-18  Simon Josefsson  <jas@extundo.com>
63728
63729         * modules/socklen (Depends-on): Depend on sys_socket.
63730
63731 2006-01-18  Simon Josefsson  <jas@extundo.com>
63732
63733         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63734         modules/des-tests, modules/gc-arcfour-tests,
63735         modules/gc-arctwo-tests, modules/gc-des-tests,
63736         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63737         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63738         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63739         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63740         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63741         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63742         $(EXEEXT) to automake TESTS variable, for mingw32.
63743
63744 2006-01-17  Simon Josefsson  <jas@extundo.com>
63745
63746         * modules/socklen (Include): Need sys/socket.h.
63747
63748 2006-01-17  Bruno Haible  <bruno@clisp.org>
63749
63750         * modules/ssize_t (Include): Add <sys/types.h>.
63751
63752 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63753
63754         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63755         it's not portable and it doesn't work with cross-compiles.
63756         Problem reported by Bruno Haible.  Fix missing-$ typo in
63757         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63758         -zignore from being used with Sun's C compiler.
63759
63760 2006-01-12  Simon Josefsson  <jas@extundo.com>
63761
63762         * lib/base64.c: Fix warning, reported by Bruno Haible
63763         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63764
63765 2006-01-12  Bruno Haible  <bruno@clisp.org>
63766
63767         * modules/ldd: New file.
63768         * build-aux/ldd.sh.in: New file.
63769         * MODULES.html.sh (Support for building libraries and executables): Add
63770         ldd.
63771
63772 2006-01-12  Bruno Haible  <bruno@clisp.org>
63773
63774         * m4/ldd.m4: New file.
63775
63776 2006-01-12  Bruno Haible  <bruno@clisp.org>
63777
63778         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63779         endless loop while replacing $auxdir with build-aux.
63780
63781 2006-01-11  Simon Josefsson  <jas@extundo.com>
63782
63783         * lib/stdint_.h (SIZE_MAX): Add missing (.
63784
63785 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         Sync from coreutils.
63788         * lib/md5.c: Fix commentary typos.
63789         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63790         * lib/md5.h (__attribute__): Remove; unused.
63791         * lib/sha1.c: Fix commentary to match md5 better.
63792         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63793         so that we don't need to worry about alignment.  All uses changed.
63794         This merges the 2005-10-28 md5 change into sha1.
63795
63796 2006-01-11  Jim Meyering  <jim@meyering.net>
63797
63798         Sync from coreutils.
63799         * lib/md5.c (OP): Fix spacing.
63800
63801 2006-01-11  Bruno Haible  <bruno@clisp.org>
63802
63803         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63804         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63805         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63806
63807 2006-01-11  Bruno Haible  <bruno@clisp.org>
63808
63809         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63810         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63811         the "early" section as well.
63812
63813 2006-01-11  Bruno Haible  <bruno@clisp.org>
63814
63815         Avoid "ar: no archive members specified" error on MacOS X.
63816         * gnulib-tool (func_modules_add_dummy): New function.
63817         (func_import, func_create_testdir): Invoke it.
63818
63819 2006-01-11  Bruno Haible  <bruno@clisp.org>
63820
63821         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63822         with $auxdir in AC_CONFIG_FILES statements.
63823
63824 2006-01-11  Bruno Haible  <bruno@clisp.org>
63825
63826         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63827         Initialize also noinst_HEADERS to empty.
63828
63829 2006-01-11  Bruno Haible  <bruno@clisp.org>
63830
63831         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63832         variables.
63833         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63834         autoreconf.
63835
63836 2006-01-11  Bruno Haible  <bruno@clisp.org>
63837
63838         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63839         overridable by the user.
63840         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63841
63842 2006-01-10  Simon Josefsson  <jas@extundo.com>
63843
63844         * modules/sys_socket: New file.
63845
63846 2006-01-10  Simon Josefsson  <jas@extundo.com>
63847
63848         * m4/sys_socket_h.m4: New file.
63849
63850 2006-01-10  Simon Josefsson  <jas@extundo.com>
63851
63852         * lib/socket_.h: New file.
63853
63854 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63855
63856         * modules/readutmp (Maintainer): Add myself.
63857
63858 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63859
63860         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63861         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63862         People who are still concerned with buggy memcmp implementations
63863         can invoke gl_FUNC_MEMCMP themselves.
63864
63865 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63866
63867         * lib/regex_internal.h (BITSET_WORD_BITS):
63868         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63869         preprocessor mishandles large unsigned values as if they were signed.
63870         Problem reported by Claudio Fontana in
63871         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63872
63873 2006-01-10  Jim Meyering  <jim@meyering.net>
63874
63875         Avoid the double-free (first in fts_read, second in fts_close) that
63876         would occur when an `active' directory is made inaccessible (e.g.,
63877         via chmod a-x) during a traversal.
63878         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63879         before returning.  Reproduce this failure by
63880         mkdir -p a/b; cd a; chmod a-x . b
63881         Reported by Stavros Passas.
63882
63883         Sync from coreutils.
63884         * lib/sha1.c: Tweak grammar in a comment.
63885
63886 2006-01-10  Jim Meyering  <jim@meyering.net>
63887
63888         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63889         Patch by Joerg Sonnenberger.
63890
63891 2006-01-10  Bruno Haible  <bruno@clisp.org>
63892
63893         * modules/readutmp: Depend on module free.
63894         * modules/strtok_r: Depend on module restrict.
63895
63896 2006-01-10  Bruno Haible  <bruno@clisp.org>
63897
63898         * modules/gettext (configure.ac): Add an invocation of
63899         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63900
63901 2006-01-10  Bruno Haible  <bruno@clisp.org>
63902
63903         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63904         Reported by Werner Lemberg <wl@gnu.org>.
63905
63906 2006-01-10  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/localcharset.c: Update from GNU gettext.
63909
63910 2006-01-10  Bruno Haible  <bruno@clisp.org>
63911
63912         * lib/argp.h (__const): Remove macro. Use const instead.
63913         * lib/argp-fmtstream.h (__const): Likewise.
63914         * lib/glob_.h (__const): Remove macro.
63915         * lib/glob-libc.h: Use const instead of __const.
63916
63917 2006-01-10  Bruno Haible  <bruno@clisp.org>
63918
63919         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63920         variable.
63921         Needed to avoid an automake error regarding the 'gettext' module.
63922
63923 2006-01-09  Simon Josefsson  <jas@extundo.com>
63924
63925         * modules/inet_ntop (Depends-on): Add restrict.
63926
63927 2006-01-09  Simon Josefsson  <jas@extundo.com>
63928
63929         * modules/gc-rijndael-tests (License): Put under LGPL.
63930
63931         * modules/gc-des-tests (License): Likewise.
63932
63933         * modules/gc-arcfour-tests (License): Likewise.
63934
63935         * modules/gc-arctwo-tests (License): Likewise.
63936
63937         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63938
63939         * modules/gc-hmac-sha1-tests (Files): Likewise.
63940
63941         * modules/gc-hmac-md5-tests (License): Likewise.
63942
63943         * modules/gc-sha1-tests (License): Likewise.
63944
63945         * modules/gc-md5-tests (License): Likewise.
63946
63947         * modules/gc-md4-tests (License): Likewise.
63948
63949         * modules/gc-md2-tests (License): Likewise.
63950
63951         * modules/gc-tests (License): Likewise.
63952
63953         * modules/des-tests (License): Likewise.
63954
63955         * modules/md4-tests (License): Likewise.
63956
63957         * modules/md2-tests (License): Likewise.
63958
63959 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         Sync from coreutils:
63962
63963         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63964         * modules/lib-ignore: New file.
63965         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63966         chdir-safer.m4, lchmod.m4.
63967         * modules/openat: Add mkdirat.c, openat-priv.h.
63968
63969 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         Sync from coreutils.
63972         * m4/lib-ignore.m4: New file.
63973         * m4/lchmod.m4: New file.
63974
63975 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63976
63977         Sync from coreutils.
63978         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63979         for write access: POSIX says that must fail.
63980         * lib/fts.c (diropen): Likewise.
63981         * lib/save-cwd.c (save_cwd): Likewise.
63982         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63983         well, for minor improvements on hosts that lack O_DIRECTORY.
63984         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63985         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63986         Fall back on chown if open failed with EACCES.
63987
63988         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63989         Report an error at compile-time if only a 1-second nominal clock
63990         resolution is found.
63991
63992         * lib/lchmod.h: New file.
63993         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63994         (make_dir_parents): Use lchown rather than chown, and
63995         lchmod rather than chmod.
63996
63997         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63998         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63999         "proc" reported by n0dalus.
64000
64001         * lib/mountlist.c: Include <limits.h>.
64002         (dev_from_mount_options)
64003         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64004         New function.  It no longer assumes "dev=" has the System V meaning
64005         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64006         (read_file_system_list)
64007         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64008         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64009         dev= in that case.
64010
64011         * lib/posixtm.h (PDS_PRE_2000): New macro.
64012         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64013         allow_century.  All usages changed.  Reject dates outside the range
64014         1969-1999 if PDS_PRE_2000 is used.
64015
64016 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         Sync from coreutils.
64019         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64020         (Time of day items): Mention the possibility of leap seconds.
64021         Problem reported by Dr. David Alan Gilbert.
64022
64023 2006-01-09  Jim Meyering  <jim@meyering.net>
64024
64025         Sync from coreutils.
64026
64027         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64028
64029         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64030
64031         * lib/modechange.c (mode_compile): Reject an invalid mode string
64032         that starts with an octal digit.  From Andreas Gruenbacher.
64033
64034         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64035         and dup to open_safer and dup_safer, respectively.
64036         (openat_permissive): Fix typo in comment.
64037
64038         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64039         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64040         (_): Remove; no longer needed.
64041         (openat): Renamed from rpl_openat; no need for rpl_openat
64042         since openat.h renames openat for us.
64043         Replace most of the body with a call to openat_permissive,
64044         to avoid duplicate code.
64045         Port to (probably hypothetical) environments were mode_t is
64046         wider than int.
64047         (openat_permissive): Require mode arg, so that we can check
64048         types better.  Put it just after flags.  Change cwd failure
64049         indicator from pointer-to-bool to pointer-to-errno-value.
64050         All callers changed.
64051         Invoke openat_save_fail and/or openat_restore_fail if
64052         cwd_errno is null, so that openat can call us.
64053         (openat_permissive, fdopendir, fstatat, unlinkat):
64054         Simplify errno handling to avoid some duplicate code,
64055         as it's OK to set errno on success.
64056         * lib/openat.h: Revamp code so that function macros depend on
64057         __OPENAT_PREFIX only, not also on AT_FDCWD.
64058         (openat_ro): Remove.  Caller changed to use openat_permissive.
64059         (openat_permissive): Now a macro, if not a function.
64060         (openat_restore_fail, openat_save_fail): Now always functions,
64061         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64062
64063         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64064         and openat.c.
64065         * lib/mkdirat.c: Include openat-priv.h.
64066         Remove definitions of macros defined therein.
64067         * lib/openat.c: Likewise.
64068
64069         * lib/mkdirat.c (mkdirat): New file and function.
64070         * lib/openat.h (mkdirat): Declare.
64071
64072         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64073
64074         * lib/openat.h (openat_permissive): Declare.
64075         (openat_ro): Define.
64076
64077         * lib/openat.c (EXPECTED_ERRNO): New macro.
64078         (openat_permissive): New function -- used in remove.c rewrite.
64079         (all functions): Set errno just before returning, only if there
64080         was an actual failure.
64081         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64082
64083         Emulate openat-family functions using Linux's procfs, if possible.
64084         Idea and some code based on Ulrich Drepper's glibc changes.
64085
64086         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64087         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64088         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64089         before falling back on save_cwd and restore_cwd.
64090         (fdopendir, fstatat, unlinkat): Likewise.
64091
64092         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64093         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64094
64095         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64096         as second argument to va_arg.  Otherwise, some versions of gcc
64097         warn that `if this code is reached, the program will abort'.
64098
64099 2006-01-09  Jim Meyering  <jim@meyering.net>
64100
64101         Sync from coreutils.
64102         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64103         Require openat-priv.h.
64104
64105 2006-01-09  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/strnlen (Include): Use strnlen.h.
64108
64109 2006-01-09  Bruno Haible  <bruno@clisp.org>
64110
64111         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64112
64113 2006-01-09  Bruno Haible  <bruno@clisp.org>
64114
64115         * lib/sysexit_.h (EX_OK): New macro.
64116         Suggested by Martin Lambers <marlam@marlam.de>.
64117
64118 2006-01-09  Bruno Haible  <bruno@clisp.org>
64119
64120         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64121         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64122
64123 2006-01-09  Bruno Haible  <bruno@clisp.org>
64124
64125         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64126         numbers.
64127
64128 2006-01-09  Bruno Haible  <bruno@clisp.org>
64129
64130         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64131         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64132         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64133         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64134
64135 2006-01-09  Bruno Haible  <bruno@clisp.org>
64136
64137         * build-aux/javacomp.sh.in: New file, moved from lib/.
64138         * modules/javacomp-script (Files): Update.
64139         (configure.ac): Add AC_CONFIG_FILES invocation.
64140         (EXTRA_DIST): Remove variable.
64141
64142         * build-aux/javaexec.sh.in: New file, moved from lib/.
64143         * modules/javaexec (Files): Update.
64144         (configure.ac): Add AC_CONFIG_FILES invocation.
64145         (EXTRA_DIST): Remove javaexec.sh.in.
64146
64147         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64148         * modules/csharpcomp-script (Files): Update.
64149         (configure.ac): Add AC_CONFIG_FILES invocation.
64150         (EXTRA_DIST): Remove variable.
64151
64152         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64153         * modules/csharpexec (Files): Update.
64154         (configure.ac): Add AC_CONFIG_FILES invocation.
64155         (EXTRA_DIST): Remove csharpexec.sh.in.
64156
64157 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64158
64159         Sync from coreutils.
64160
64161         Add POSIX ACL support
64162         * lib/acl.h (copy_acl, set_acl): Add declarations.
64163         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64164         systems other than Linux.
64165         (chmod_or_fchmod): New function: use fchmod when possible,
64166         and chmod otherwise.
64167         (file_has_acl): Add a POSIX ACL implementation, with a
64168         Linux-specific subcase.
64169         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64170         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64171         acls are unsupported.
64172         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64173         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64174         are unsupported.
64175
64176 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64177
64178         Sync from coreutils.
64179         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64180
64181 2006-01-07  Bruno Haible  <bruno@clisp.org>
64182
64183         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64184         gl_EARLY.
64185
64186 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64187
64188         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64189         Problem reported for Mingw by Mark Junker.
64190
64191 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         * README: Gnulib normally doesn't generate a tarball.
64194
64195 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64196
64197         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64198         long int, not int, for nanosecond counts, so that people who are
64199         used to POSIX struct timespec won't be surprised.  Reported by Jim
64200         Meyering.
64201
64202 2005-12-28  Bruno Haible  <bruno@clisp.org>
64203
64204         * build-aux/config.rpath: Update from GNU gettext.
64205
64206 2005-12-16  Jim Meyering  <jim@meyering.net>
64207
64208         * modules/fprintftime: New module.
64209         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64210
64211 2005-12-16  Jim Meyering  <jim@meyering.net>
64212
64213         * m4/fprintftime.m4: New file.
64214
64215 2005-12-16  Jim Meyering  <jim@meyering.net>
64216
64217         * lib/fprintftime.c, lib/fprintftime.h: New files.
64218
64219 2005-12-15  Simon Josefsson  <jas@extundo.com>
64220
64221         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64222         new m4/socklen.m4.
64223
64224 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64225
64226         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64227         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64228
64229 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64230
64231         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64232         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64233         struct uparams is valid. Fall back to the default values if it is
64234         not.
64235
64236 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64237
64238         * modules/argp (Files): Add argp-pin.c
64239         (Depends-on): dirname
64240         (lib_SOURCES): Add argp-pin.c
64241
64242 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64243
64244         * m4/argp.m4:  Check if program_invocation_name and
64245         program_invocation_short_name are declared and define appropriate
64246         macros if they are not.
64247
64248 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64249
64250         * lib/argp-help.c (__argp_base_name): New function
64251         (__argp_short_program_name): Rewrite using __argp_base_name
64252         * lib/argp-namefrob.h: Define program_invocation_name and
64253         program_invocation_short_name if requested
64254         (__argp_base_name): Add prototype
64255         * lib/argp-parse.c (argp_def): Use gettext wrappers
64256         (argp_default_parser): Use __argp_base_name
64257         * lib/argp-pin.c: New file. Defines program_invocation_name and
64258         program_invocation_short_name on systems that lack them.
64259
64260 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64261
64262         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64263         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64264         porting problem reported by Georg Schwarz in
64265         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64266
64267 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64268
64269         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64270         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64271         porting problem reported by Georg Schwarz in
64272         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64273
64274 2005-12-05  Bruno Haible  <bruno@clisp.org>
64275
64276         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64277         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64278         Reported by Mark Junker <mjscod@gmx.de>.
64279
64280 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64283         Use implementation from Albert Chin, with some
64284         comments/corrections by Stepan Kasal and myself.
64285
64286 2005-12-02  Bruno Haible  <bruno@clisp.org>
64287
64288         * gnulib-tool (func_import): Accept GPLed build tool modules when
64289         --lgpl is given.
64290         * modules/csharpcomp-script: New file.
64291         * modules/csharpcomp: Depend on it.
64292         * modules/javacomp-script: New file.
64293         * modules/javacomp: Depend on it.
64294         Suggested by Simon Josefsson.
64295
64296 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64299         statement, to work around an HP-UX 10.20 compiler bug reported by
64300         Peter O'Gorman.
64301
64302 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64303
64304         * modules/savedir (Depends-on): Add openat.
64305
64306 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64307
64308         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64309         (uintmax_t) [defined uintmax_t]: Do not declare.
64310         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64311         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64312         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64313         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64314         sake of portability to weird hosts that C allows (though we don't
64315         know of any practical examples).
64316
64317         * lib/savedir.h (fdsavedir): New decl.
64318         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64319         contains most of the former guts of savedir.
64320         (savedir): Use savedirstream.
64321         Include "openat.h".
64322
64323 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64324
64325         * modules/obstack (Files): Add m4/ulonglong.m4.
64326         Problem reported by Davide Angelocola.
64327
64328 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64329
64330         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64331         coreutils no longer futzes with rounding modes.
64332
64333 2005-11-14  Jim Meyering  <jim@meyering.net>
64334
64335         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64336         replacement of mkstemp.
64337
64338 2005-11-10  Simon Josefsson  <jas@extundo.com>
64339
64340         * lib/readline.c: Remove EOL.
64341
64342 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         * modules/gethrxtime (Depends-on): Add gettime.
64345
64346 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64347
64348         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64349         or gettimeofday; no longer needed.
64350
64351 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64354         time business.
64355         (gethrxtime) [! (HAVE_NANOUPTIME
64356         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64357         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64358         our own approximation.
64359
64360 2005-11-08  Eric Blake  <ebb9@byu.net>
64361
64362         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64363
64364 2005-11-08  Eric Blake  <ebb9@byu.net>
64365
64366         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64367
64368 2005-11-04  Bruno Haible  <bruno@clisp.org>
64369
64370         * gnulib-tool: Implement --update mode.
64371
64372 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64373
64374         Fix porting problem reported by Theodoros V. Kalamatianos.
64375         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64376         Don't assume that futimes failing means we must fail.
64377
64378 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64381         variables to suggest the intended function of the PATH_MAX check.
64382
64383 2005-10-30  Kean Johnston  <jkj@sco.com>
64384
64385         Trivial changes to support SCO systems.
64386         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64387         as PATH_MAX.
64388         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64389         where __ptr is null when no I/O is pending.
64390
64391 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64392
64393         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64394         leave errno alone.  Problem reported by Dmitry V. Levin.
64395
64396 2005-10-28  Simon Josefsson  <jas@extundo.com>
64397
64398         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64399         Test more.
64400
64401         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64402
64403         * modules/md2, modules/md2-tests: New files.
64404
64405 2005-10-28  Simon Josefsson  <jas@extundo.com>
64406
64407         * m4/inet_ntop.m4: More tests.
64408
64409         * m4/gc-md2.m4, md2.m4: New file.
64410
64411 2005-10-28  Simon Josefsson  <jas@extundo.com>
64412
64413         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64414         "restrict" keywords, as per POSIX.  Protect the function
64415         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64416         Don't use K&R prototypes.  Check the sprintf return values.
64417         Re-define EAFNOSUPPORT if not present.  Indent.
64418
64419         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64420         suggested by Bruno Haible <bruno@clisp.org>.
64421
64422         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64423
64424         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64425
64426         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64427         libgcrypt).
64428
64429         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64430
64431         * lib/md2.h, lib/md2.c: New files.
64432
64433 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64434
64435         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64436         errno alone.  Problem reported by Frederic Jolliton.
64437
64438 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64439
64440         * modules/verify (License): Change from GPL to LGPL.  This is a
64441         tiny module and there are apparently near-equivalents that are
64442         under the BSD license.
64443
64444 2005-10-24  Simon Josefsson  <jas@extundo.com>
64445
64446         * modules/sha1: Relicense to LGPL.
64447
64448 2005-10-24  Simon Josefsson  <jas@extundo.com>
64449
64450         * lib/md4.h: Shrink buffer size, now that we changed the type.
64451
64452 2005-10-23  Simon Josefsson  <jas@extundo.com>
64453
64454         * gnulib-tool (func_import): Fix --tests-base.
64455
64456 2005-10-22  Simon Josefsson  <jas@extundo.com>
64457
64458         * modules/arcfour (Depends-on): Need stdint.
64459
64460 2005-10-22  Simon Josefsson  <jas@extundo.com>
64461
64462         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64463         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64464
64465 2005-10-22  Simon Josefsson  <jas@extundo.com>
64466
64467         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64468         suggested by Bruno Haible <bruno@clisp.org>.
64469
64470 2005-10-22  Simon Josefsson  <jas@extundo.com>
64471
64472         * lib/crc.h: Include stddef.h, for size_t.
64473
64474 2005-10-22  Simon Josefsson  <jas@extundo.com>
64475
64476         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64477         arcfour_context struct (simplify test vector testing in GNU
64478         Shishi).
64479
64480 2005-10-21  Simon Josefsson  <jas@extundo.com>
64481
64482         * modules/des, modules/des-tests: New files.
64483
64484         * modules/gc-des, modules/gc-des-tests: New files.
64485
64486         * tests/test-des.c, tests/test-gc-des.c: New file.
64487
64488 2005-10-21  Simon Josefsson  <jas@extundo.com>
64489
64490         * modules/arctwo, modules/arctwo-tests: New files.
64491
64492         * tests/test-arctwo.c: New file.
64493
64494         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64495
64496         * tests/test-gc-arctwo.c: New file.
64497
64498 2005-10-21  Simon Josefsson  <jas@extundo.com>
64499
64500         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64501         Bruno Haible <bruno@clisp.org>.
64502
64503         * m4/gc-des.m4: New file.
64504
64505 2005-10-21  Simon Josefsson  <jas@extundo.com>
64506
64507         * m4/arctwo.m4: New file.
64508
64509         * m4/gc-arctwo.m4: New file.
64510
64511 2005-10-21  Simon Josefsson  <jas@extundo.com>
64512
64513         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64514         block.
64515
64516 2005-10-21  Simon Josefsson  <jas@extundo.com>
64517
64518         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64519         <bruno@clisp.org>.
64520
64521         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64522
64523         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64524         Bruno Haible <bruno@clisp.org>.
64525
64526         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64527         <bruno@clisp.org>.
64528
64529 2005-10-21  Simon Josefsson  <jas@extundo.com>
64530
64531         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64532
64533 2005-10-21  Simon Josefsson  <jas@extundo.com>
64534
64535         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64536
64537 2005-10-21  Simon Josefsson  <jas@extundo.com>
64538
64539         * lib/des.h, lib/des.c: New files.
64540
64541         * lib/gc-gnulib.c: Support DES.c
64542
64543 2005-10-21  Simon Josefsson  <jas@extundo.com>
64544
64545         * lib/arctwo.h, lib/arctwo.c: New files.
64546
64547         * lib/gc-gnulib.c: Support ARCTWO.
64548
64549 2005-10-21  Simon Josefsson  <jas@extundo.com>
64550
64551         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64552         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64553
64554 2005-10-21  Simon Josefsson  <jas@extundo.com>
64555
64556         * gnulib-tool (func_import, func_create_testdir): Define automake
64557         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64558         Makefile.am snippet),
64559         suggested by Bruno Haible <bruno@clisp.org>.
64560
64561         * modules/gc (Makefile.am): Use it.
64562
64563 2005-10-21  Bruno Haible  <bruno@clisp.org>
64564
64565         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64566         patch.
64567
64568 2005-10-19  Simon Josefsson  <jas@extundo.com>
64569
64570         * tests/test-gc-rijndael.c: New file.
64571
64572         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64573
64574 2005-10-19  Simon Josefsson  <jas@extundo.com>
64575
64576         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64577         interface too.
64578
64579 2005-10-19  Simon Josefsson  <jas@extundo.com>
64580
64581         * tests/test-gc-arcfour.c: New file.
64582
64583         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64584
64585 2005-10-19  Simon Josefsson  <jas@extundo.com>
64586
64587         * modules/gc-md4, modules/gc-md4-tests: New file.
64588
64589         * tests/test-gc-md4.c: New file.
64590
64591 2005-10-19  Simon Josefsson  <jas@extundo.com>
64592
64593         * m4/gc-md4.m4: New file.
64594
64595 2005-10-19  Simon Josefsson  <jas@extundo.com>
64596
64597         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64598         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64599         <kasal@ucw.cz>.
64600
64601 2005-10-19  Simon Josefsson  <jas@extundo.com>
64602
64603         * m4/gc-arcfour.m4: New file.
64604
64605         * m4/gc-rijndael.m4: New file.
64606
64607 2005-10-19  Simon Josefsson  <jas@extundo.com>
64608
64609         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64610
64611 2005-10-19  Simon Josefsson  <jas@extundo.com>
64612
64613         * lib/gc-gnulib.c: Support ARCFOUR.
64614
64615 2005-10-19  Simon Josefsson  <jas@extundo.com>
64616
64617         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64618         support.
64619
64620         * lib/gc.h: Add ECB enum type.
64621
64622         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64623
64624 2005-10-18  Simon Josefsson  <jas@extundo.com>
64625
64626         * tests/test-md5.c: New file.
64627
64628         * modules/md5-tests: New file.
64629
64630 2005-10-18  Simon Josefsson  <jas@extundo.com>
64631
64632         * tests/test-md4.c: New file.
64633
64634         * modules/md4, modules/md4-tests: New files.
64635
64636 2005-10-18  Simon Josefsson  <jas@extundo.com>
64637
64638         * m4/md4.m4: New file.
64639
64640 2005-10-18  Simon Josefsson  <jas@extundo.com>
64641
64642         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64643
64644 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64645
64646         * gnulib-tool (func_create_testdir): Omit the second check whether
64647         BUILT_SOURCES in nonempty.
64648
64649 2005-10-17  Simon Josefsson  <jas@extundo.com>
64650
64651         * tests/test-rijndael.c: New file.
64652
64653 2005-10-17  Simon Josefsson  <jas@extundo.com>
64654
64655         * modules/sha1: Depend on stdint instead of md5.
64656
64657         * modules/md5: Depend on stdint, remove uint32_t.
64658
64659 2005-10-17  Simon Josefsson  <jas@extundo.com>
64660
64661         * modules/gc-sha1-tests: New file.
64662
64663         * tests/test-gc-sha1.c: New file.
64664
64665 2005-10-17  Simon Josefsson  <jas@extundo.com>
64666
64667         * m4/md5.m4: Remove call to uint32_t.m4.
64668
64669 2005-10-17  Simon Josefsson  <jas@extundo.com>
64670
64671         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64672
64673         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64674         md5.h.
64675
64676         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64677
64678         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64679
64680 2005-10-17  Simon Josefsson  <jas@extundo.com>
64681
64682         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64683
64684 2005-10-17  Simon Josefsson  <jas@extundo.com>
64685
64686         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64687
64688 2005-10-17  Simon Josefsson  <jas@extundo.com>
64689
64690         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64691
64692         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64693
64694 2005-10-17  Bruno Haible  <bruno@clisp.org>
64695
64696         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64697         that it can also be used in a test.
64698
64699 2005-10-16  Bruno Haible  <bruno@clisp.org>
64700
64701         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64702         TESTS_ENVIRONMENT, so that individual tests can augment it.
64703
64704         * gnulib-tool (func_create_testdir): Use an intermediate target for
64705         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64706         macros, like $(ALLOCA_H), which cannot be passed through the command
64707         line.
64708
64709 2005-10-15  Simon Josefsson  <jas@extundo.com>
64710
64711         * modules/rijndael-tests: New file.
64712
64713         * modules/rijndael: New file.
64714
64715 2005-10-15  Simon Josefsson  <jas@extundo.com>
64716
64717         * m4/rijndael.m4: New file.
64718
64719 2005-10-15  Simon Josefsson  <jas@extundo.com>
64720
64721         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64722
64723         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64724
64725 2005-10-14  Simon Josefsson  <jas@extundo.com>
64726
64727         * tests/test-arcfour.c: New file.
64728
64729         * modules/arcfour, modules/arcfour-tests: New files.
64730
64731 2005-10-14  Simon Josefsson  <jas@extundo.com>
64732
64733         * m4/arcfour.m4: New file.
64734
64735 2005-10-14  Simon Josefsson  <jas@extundo.com>
64736
64737         * lib/arcfour.h, lib/arcfour.c: New files.
64738
64739 2005-10-14  Roland McGrath  <roland@redhat.com>
64740
64741         Import from libc.  [BZ #1331]
64742         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64743         macro argument.
64744         Reported by Matej Vela <vela@debian.org>.
64745
64746 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64749         include <wchar.h>; no longer needed.
64750
64751 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64752
64753         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64754
64755 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64756         and  Ulrich Drepper  <drepper@redhat.com>
64757
64758         Import from libc.
64759         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64760         instead of inline stream orientation test and two separate
64761         function calls.  Pay no attention to USE_IN_LIBIO.
64762
64763 2005-10-13  Simon Josefsson  <jas@extundo.com>
64764
64765         * modules/gc-hmac-md5-tests: New file.
64766
64767         * tests/test-gc-hmac-sha1.c: New file.
64768
64769         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64770
64771         * modules/gc-hmac-md5-tests: New file.
64772
64773         * tests/test-gc-md5.c: New file.
64774
64775         * modules/gc-md5-tests: New file.
64776
64777 2005-10-13  Simon Josefsson  <jas@extundo.com>
64778
64779         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64780         Move memory allocation outside of loop.
64781
64782 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64783
64784         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64785         intermediate directory is in a read-only file system.  Problem
64786         reported by Eric Blake.
64787
64788 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64789
64790         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64791
64792 2005-10-12  Simon Josefsson  <jas@extundo.com>
64793
64794         * tests/test-hmac-sha1.c: New file.
64795
64796         * modules/hmac-sha1-tests: New file.
64797
64798         * modules/hmac-sha1: New file.
64799
64800 2005-10-12  Simon Josefsson  <jas@extundo.com>
64801
64802         * modules/gc-sha1: New file.
64803
64804 2005-10-12  Simon Josefsson  <jas@extundo.com>
64805
64806         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64807
64808         * tests/test-gc-pbkdf2-sha1.c: New file.
64809
64810 2005-10-12  Simon Josefsson  <jas@extundo.com>
64811
64812         * modules/gc-md5, modules/gc-hmac-md5: New files.
64813
64814         * modules/gc (Files): Remove md5, memxor and hmac files.
64815
64816 2005-10-12  Simon Josefsson  <jas@extundo.com>
64817
64818         * m4/gc-pbkdf2-sha1.m4: New file.
64819
64820         * m4/gc-hmac-sha1.m4: New file.
64821
64822         * m4/gc-sha1: New file.
64823
64824         * m4/hmac-sha1.m4: New file.
64825
64826 2005-10-12  Simon Josefsson  <jas@extundo.com>
64827
64828         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64829
64830         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64831
64832 2005-10-12  Simon Josefsson  <jas@extundo.com>
64833
64834         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64835         suggested by Bruno Haible <bruno@clisp.org>.
64836
64837 2005-10-12  Simon Josefsson  <jas@extundo.com>
64838
64839         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64840
64841 2005-10-12  Simon Josefsson  <jas@extundo.com>
64842
64843         * lib/gc-pbkdf2-sha1.c: New file.
64844
64845         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64846
64847 2005-10-12  Simon Josefsson  <jas@extundo.com>
64848
64849         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64850
64851         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64852
64853 2005-10-12  Simon Josefsson  <jas@extundo.com>
64854
64855         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64856         GC_USE_HMAC_MD5, respectively.
64857
64858         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64859         (gc_md5): Fix typo.
64860
64861         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64862
64863         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64864
64865         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64866
64867 2005-10-12  Bruno Haible  <bruno@clisp.org>
64868
64869         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64870         Reported by Stepan Kasal <kasal@ucw.cz>.
64871
64872 2005-10-11  Simon Josefsson  <jas@extundo.com>
64873
64874         * tests/test-crc.c: New file.
64875
64876         * modules/crc, modules/crc-tests: New files.
64877
64878 2005-10-11  Simon Josefsson  <jas@extundo.com>
64879
64880         * m4/crc.m4: New file.
64881
64882 2005-10-11  Simon Josefsson  <jas@extundo.com>
64883
64884         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64885
64886         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64887
64888         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64889
64890 2005-10-11  Simon Josefsson  <jas@extundo.com>
64891
64892         * lib/crc.h, lib/crc.c: New files.
64893
64894         * lib/gc.h (gc_hash_buffer): Add doc.
64895
64896 2005-10-11  Bruno Haible  <bruno@clisp.org>
64897
64898         * modules/c-strcasestr: New file.
64899         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64900
64901 2005-10-11  Bruno Haible  <bruno@clisp.org>
64902
64903         * modules/c-strcase: New file.
64904         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64905
64906 2005-10-11  Bruno Haible  <bruno@clisp.org>
64907
64908         * lib/strcasecmp.c: Include limits.h.
64909         (strcasecmp): Avoid integer overflow on exotic platforms.
64910         * lib/strncasecmp.c: Include limits.h.
64911         (strncasecmp): Avoid integer overflow on exotic platforms.
64912         Reported by Paul Eggert.
64913
64914 2005-10-11  Bruno Haible  <bruno@clisp.org>
64915
64916         * lib/c-strcasestr.h: New file, from GNU gettext.
64917         * lib/c-strcasestr.c: New file, from GNU gettext.
64918
64919 2005-10-11  Bruno Haible  <bruno@clisp.org>
64920
64921         * lib/c-strcase.h: New file, from GNU gettext.
64922         * lib/c-strcasecmp.c: New file, from GNU gettext.
64923         * lib/c-strncasecmp.c: New file, from GNU gettext.
64924
64925 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64926
64927         * modules/mempcpy (License): GPL -> LGPL.
64928         * modules/strchrnul (License): Likewise.
64929         * modules/sysexits (License): Likewise.
64930
64931 2005-10-08  Simon Josefsson  <jas@extundo.com>
64932
64933         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64934
64935 2005-10-07  Simon Josefsson  <jas@extundo.com>
64936
64937         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64938
64939 2005-10-06  Simon Josefsson  <jas@extundo.com>
64940
64941         * tests/test-hmac-md5.c: New file.
64942
64943         * modules/hmac-md5-tests: New file.
64944
64945         * modules/hmac-md5: New file.
64946
64947 2005-10-06  Simon Josefsson  <jas@extundo.com>
64948
64949         * m4/hmac-md5.m4: New file.
64950
64951         * m4/memxor.m4: Require gl_C_RESTRICT.
64952
64953 2005-10-06  Simon Josefsson  <jas@extundo.com>
64954
64955         * lib/memxor.c (memxor): Avoid casts and warnings.
64956
64957 2005-10-06  Simon Josefsson  <jas@extundo.com>
64958
64959         * lib/hmac-md5.c: New file.
64960
64961         * lib/hmac.h: New file.
64962
64963 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64966         promotes to int, not unsigned int, to catch the AIX 5.3
64967         compiler bug.
64968
64969 2005-10-05  Simon Josefsson  <jas@extundo.com>
64970
64971         * modules/memxor: New file.
64972
64973         * modules/iconv (Files): Move config.rpath to havelib, it is used
64974         there.
64975
64976         * modules/havelib (Files): Add config.rpath.
64977
64978 2005-10-05  Simon Josefsson  <jas@extundo.com>
64979
64980         * m4/memxor.m4: New file.
64981
64982 2005-10-05  Simon Josefsson  <jas@extundo.com>
64983
64984         * lib/memxor.c (memxor): Fix compiler error.
64985
64986         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64987         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64988
64989         * lib/memxor.h, lib/memxor.c: New files.
64990
64991         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64992         we assume all systems have it, suggested by Jim Meyering
64993         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64994         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64995         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64996         same reasons.
64997
64998 2005-10-05  Simon Josefsson  <jas@extundo.com>
64999
65000         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65001
65002 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65005         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65006         needed, since the source code now assumes these .h files.
65007
65008 2005-10-05  Derek Price  <derek@ximbiot.com>
65009
65010         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65011
65012 2005-10-05  Bruno Haible  <bruno@clisp.org>
65013
65014         * modules/stdint (License): Change to LGPL.
65015
65016 2005-10-04  Simon Josefsson  <jas@extundo.com>
65017
65018         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65019         D. Baushke" <mdb@gnu.org>.
65020
65021 2005-10-04  Bruno Haible  <bruno@clisp.org>
65022
65023         * lib/verify.h (verify_true): Provide alternative definition for C++.
65024
65025 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65028         (SSIZE_MAX): New macro, if not already defined.
65029         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65030         than 2 GiB.
65031
65032 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65033
65034         Sync from coreutils.
65035         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65036         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65037         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65038         ULLONG_MAX doesn't work with 2.7.2.1.
65039
65040 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65041
65042         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65043         From Ben Pfaff.
65044
65045         * modules/exclude (Depends-on): Depend on verify.
65046         * modules/strtoimax (Depends-on): Likewise.
65047         * modules/utimecmp (Depends-on): Likewise.
65048
65049 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         * lib/exclude.c: Include verify.h.
65052         (verify): Remove.  All callers changed to use verify.h's version.
65053         * lib/strtoimax.c: Likewise.
65054         * lib/utimecmp.c: Likewis.e
65055
65056         Sync from coreutils.
65057         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65058         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65059         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65060         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65061         bother returning ENOSYS if settimeofday or stime fails; just let
65062         them return whatever errno they want to return.
65063         * lib/utimens.c: Include unistd.h, for dup2.
65064         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65065         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65066
65067 2005-10-02  Jim Meyering  <jim@meyering.net>
65068
65069         Sync from coreutils.
65070         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65071         from glibc-2.2.5 that fails for read-only files.
65072
65073 2005-10-02  Jim Meyering  <jim@meyering.net>
65074
65075         Sync from coreutils.
65076         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65077         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65078         `#if HAVE_CONFIG_H'.
65079         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65080         Remove AT_FDCWD test.
65081         Do not consume the fd unless successful.
65082         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65083         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65084         block, so that we don't even try to compile it if settimeofday is
65085         available.  This works around a compilation failure on OSF1 V5.1,
65086         due to stime requiring a `long int*' while tv_sec is `int'.
65087
65088 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65089
65090         Sync from coreutils.
65091         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65092         against `yes', rather than just testing for nonempty.
65093
65094 2005-10-01  Simon Josefsson  <jas@extundo.com>
65095
65096         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65097         and Darwin.
65098
65099         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65100         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65101         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65102         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65103         Check if struct addrinfo is declared.
65104
65105 2005-10-01  Simon Josefsson  <jas@extundo.com>
65106
65107         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65108         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65109         AI_* and EAI_* definitions.  Protect function declarations.
65110
65111 2005-10-01  Jim Meyering  <jim@meyering.net>
65112
65113         Sync from coreutils.
65114
65115         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65116         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65117         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65119         in the inet and nsl libraries.  Required on Solaris 5.7.
65120
65121 2005-10-01  Jim Meyering  <jim@meyering.net>
65122
65123         Sync from coreutils.
65124         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65125         in the inet and nsl libraries.  Required on Solaris 5.7.
65126
65127 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65128
65129         * lib/getdelim.c (getdelim): Remove unused variables.
65130
65131 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65132
65133         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65134         so that the code works even with ancient cpp.  Portability problem
65135         with GCC 2.7.2.1 reported by Thomas M.Ott.
65136
65137 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         * modules/regex (Depends-on): Add strcase.
65140
65141         * modules/gethostname (Licence): Change from GPL to LGPL, since
65142         gethostname.c is a trivial implementation of a standard library
65143         function.
65144         * modules/poll (License): Change from GPL to LGPL, since it's
65145         derived from LGPL code.
65146
65147 2005-09-27  Jim Meyering  <jim@meyering.net>
65148
65149         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65150         HAVE_CONFIG_H.
65151
65152         * lib/intprops.h (signed_type_or_expr__): Define.
65153         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65154         for unsigned types.
65155
65156 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65157
65158         * lib/verify.h (verify_expr): Remove, replacing with:
65159         (verify_true): New macro that returns true instead of void.
65160         (verify_type__): Remove.
65161         (verify): Use verify_true rather than verify_type__.
65162
65163 2005-09-26  Bruno Haible  <bruno@clisp.org>
65164
65165         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65166         is necessary.
65167         (lib_SOURCES): Remove mbchar.c.
65168         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65169         (Files): Add m4/mbrtowc.m4.
65170         * modules/mbiter: Likewise.
65171         * modules/mbuiter: Likewise.
65172
65173 2005-09-26  Bruno Haible  <bruno@clisp.org>
65174
65175         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65176         compile mbchar.c if they are not both present.
65177         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65178         * m4/mbiter.m4 (gl_MBITER): Likewise.
65179         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65180         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65181         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65182
65183 2005-09-25  Jim Meyering  <jim@meyering.net>
65184
65185         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65186         also uses socklen_t.
65187
65188 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/utimens.c (ENOSYS): Define if not already defined.
65191         (futimens): Support having a null PATH if the file descriptor
65192         is nonnegative.
65193
65194         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65195         Remove.
65196         (__attribute): Define to empty unless GCC 3.1 or later.
65197         This works around a core dump on OpenBSD 3.4, which has GCC
65198         2.95.3, which dumps core when given __attribute__(()).  It also
65199         simplifies other tests, since we really don't want to bother with
65200         worrying about which ancient version of GCC supported what.
65201         Original problem reported by Yoann Vandoorselaere, with part of
65202         the fix suggested by Derek Price.
65203
65204 2005-09-24  Jim Meyering  <jim@meyering.net>
65205
65206         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65207         so we can once again use a positive bitfield width of 1 -- now we
65208         don't have to explain why we were using a bitfield width of 2.
65209
65210 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65211
65212         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65213         and similarly for the other external symbols.  Problem reported
65214         by James Gallager.
65215
65216         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65217         bug reported by Jim Meyering.
65218
65219         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65220         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65221         not needed, since socklen is a prerequisite module.
65222
65223 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65224
65225         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65226         Problem reported by Eric Blake.
65227         (getaddrinfo): Initialize se so that it's not garbage.
65228         Redo internal storage allocation so that it doesn't make unportable
65229         assumptions about alignment.
65230         Fix a memory leak.
65231
65232         * lib/utimens.c (futimens): Use futimesat if available.
65233         Prefer it to futimes since it doesn't have the futimes bug.
65234
65235         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65236         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65237         Instead, declare a function that returns a pointer to an array,
65238         and use verify_type__ to declare the size of the array.
65239         Problem and germ of a solution reported by Bruno Haible.
65240         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65241         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65242
65243 2005-09-23  Jim Meyering  <jim@meyering.net>
65244
65245         Sync from coreutils.
65246         Correct build failure (socklen_t not defined) on at least
65247         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65248         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65249
65250 2005-09-23  Jim Meyering  <jim@meyering.net>
65251
65252         * modules/getaddrinfo (Depends-on): Add socklen.
65253
65254 2005-09-23  Bruno Haible  <bruno@clisp.org>
65255
65256         * tests/test-verify.c: New file.
65257
65258 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65259
65260         Sync from coreutils.
65261
65262         * modules/argmatch (Depends-on): Add verify.
65263         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65264         unistd-safer.
65265         * modules/save-cwd (Depends-on): Likewise.
65266
65267         * modules/openat (Files): Add lib/openat-die.c.
65268         (Depends-on): Remove error, exitfail.
65269         Add dirname.
65270
65271         * modules/verify: New file.
65272         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65273         with "verify" module.
65274
65275 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65276
65277         Sync from coreutils.
65278
65279         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65280         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65281         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65282         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65283         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65284         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65285         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65286         Don't bother checking for string.h, stdlib.h, unistd.h.
65287         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65288         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65289         module's job.
65290         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65291         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65292
65293         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65294         (gl_GETDATE): Use it.
65295
65296         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65297
65298 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         Sync from coreutils.
65301
65302         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65303         stat-time.h.
65304         * lib/argmatch.h: Include verify.h
65305         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65306         (ARGMATCH_ASSERT): Remove; unused.
65307         * lib/canonicalize.c: Assume STDC_HEADERS.
65308         * lib/exclude.c: Include "strcase.h".
65309         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65310         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65311         and stdio-safer.h.
65312         (getusershell): Call fopen, not fopen_safer.
65313         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65314         Do not include unistd-safer.h.
65315         (save_cwd): Don't call fd_safer; no longer needed
65316         now that we include fcntl--.h.
65317
65318         * lib/getdate.y (relative_time): New type.
65319         (RELATIVE_TIME_0): New constant.
65320         (parser_control): Use relative_time instead of doing it ourselves.
65321         (%union): Add new relative_time rel member.
65322         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65323         Now typeless.
65324         (relunit, relunit_snumber): Now of type rel.
65325         (zone, rel, relunit, get_date): Adjust to above changes.
65326
65327         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65328         Do not include unistd-safer.h.
65329         (getloadavg): Don't call fd_safer; no longer needed
65330         now that we include fcntl--.h.
65331
65332         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65333         (make_dir_parents): Treat ENOSYS like EEXIST.
65334
65335         Improve quality of diagnostics on restore_cwd failure.
65336         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65337         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65338         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65339         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65340         each time through the loop.  Do not diagnose restore_cwd failure;
65341         that is the caller's job (and perhaps the caller does not care).
65342
65343         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65344         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65345         If the file already exists but is not a directory, don't bother
65346         to try to make its parents.
65347         Close potential file descriptor leak if we can't chdir("/") (!).
65348         Don't always return true if chdir($PWD) fails; return true only
65349         if the requested action was done successfully (except for the
65350         chdir($PWD)).
65351         Don't log final directory unless we actually made it.
65352         Refactor to avoid duplicate code to fix up permissions.
65353         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65354
65355         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65356         to make it a bit faster and (I hope) clearer.
65357         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65358         Fix bug in formats like %2N.
65359
65360         * lib/verify.h: New file.
65361
65362 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65363
65364         Sync from coreutils.
65365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65366
65367 2005-09-22  Jim Meyering  <jim@meyering.net>
65368
65369         Sync from coreutils.
65370
65371         * m4/lstat.m4 (gl_FUNC_LSTAT):
65372         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65373         Remove obsolete comment.
65374         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65375         * m4/xstrtod.m4: Likewise.
65376
65377         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65378
65379 2005-09-22  Jim Meyering  <jim@meyering.net>
65380
65381         Sync from coreutils.
65382
65383         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65384
65385         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65386         the .tm_year member, since otherwise gcc-4.0 would now warn about
65387         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65388
65389         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65390         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65391
65392         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65393         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65394         when run in a time zone for which daylight savings time is in effect
65395         for the starting date.
65396
65397         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65398         stop us from restricting permissions of just-created absolute-named
65399         directories.
65400         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65401         to restore initial working directory.
65402         * lib/mkdir-p.c (make_dir_parents): New parameter:
65403         different_working_dir, to tell caller if/when we change the working
65404         directory and are unable to return to the initial one.
65405         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65406         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65407         `return false'.  This fixes a bug introduced on 2004-07-30.
65408
65409         * lib/openat.c (fdopendir): Be sure to close the supplied
65410         file descriptor before returning.  This makes our replacement
65411         implementation a little closer to Solaris's, where fdopendir
65412         ties the file descriptor to the returned DIR* pointer.
65413         * lib/openat.c (unlinkat): New function.
65414         * lib/openat.h (unlinkat): Add prototype.
65415         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65416         (openat_restore_fail): Rename from openat_restore_die.
65417         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65418
65419         Provide an alternative to exiting immediately upon save_cwd or
65420         restore_cwd failure.  Now, an application can arrange e.g.,
65421         to perform a longjump in that case.
65422         * lib/openat.c: Include dirname.h.
65423         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65424         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65425         and openat_restore_die rather than calling error directly.
65426         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65427
65428         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65429         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65430         define.
65431
65432         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65433         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65434                             int utc, int nanoseconds);
65435         Background:
65436         date should not have to allocate a megabyte of virtual memory to
65437         handle a format argument like +%1048575T.  When implemented with
65438         strftime, it must allocate such a buffer, use strftime to fill it
65439         in, print it, then free it.
65440         With fprintftime, it simply prints everything and exits.
65441         With no need for memory allocation, that's one fewer way to fail.
65442         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65443         optional field width, not before, so we accept %9:z, not %:9z.
65444         (my_strftime): Be sure to use L_('x') for literals.
65445
65446         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65447         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65448         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65449         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65450         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65451         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65452         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65453         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65454         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65455         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65456         * lib/xgethostname.c, lib/xreadlink.c:
65457         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65458
65459         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65460         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65461         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65462         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65463         and don't include <sys/file.h>).
65464
65465 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65466
65467         Sync from coreutils.
65468
65469         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65470         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65471         [!LDAV_DONE]: Avoid unused variable warning.
65472
65473 2005-09-21  Bruno Haible  <bruno@clisp.org>
65474
65475         * lib/unicodeio.h (unicode_to_mb): New declaration.
65476
65477 2005-09-20  Derek Price  <derek@ximbiot.com>
65478
65479         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65480         getaddrinfo.h.
65481
65482 2005-09-20  Bruno Haible  <bruno@clisp.org>
65483
65484         * gnulib-tool: Remove trailing slashes from the values specified for
65485         --source-base, --m4-base, --tests-base, --aux-dir.
65486         Suggested by Simon Josefsson <jas@extundo.com>.
65487
65488 2005-09-20  Bruno Haible  <bruno@clisp.org>
65489
65490         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65491         func_modules_to_filelist, func_import, func_create_testdir): Make all
65492         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65493         change when gnulib-tool is invoked in a different locale.
65494
65495 2005-09-19  Simon Josefsson  <jas@extundo.com>
65496
65497         * m4/socklen.m4: Fix typo.
65498
65499 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65500
65501         Use a consistent style for including <config.h>.
65502         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65503         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65504         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65505         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65506         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65507         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65508         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65509         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65510         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65511         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65512         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65513         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65514         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65515         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65516         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65517         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65518         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65519         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65520         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65521         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65522         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65523         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65524         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65525         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65526         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65527         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65528         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65529         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65530         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65531         lib/xstrtoumax.c, lib/yesno.c:
65532         Standardize inclusion of config.h.
65533         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65534         lib/inttostr.h:  Removed inclusion of config.h from header files.
65535         * lib/inttostr.c:  Adjusted in-tree users.
65536         * lib/timespec.h: Remove superfluous warning to include config.h.
65537         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65538         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65539         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65540         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65541         config.h with HAVE_CONFIG_H.
65542
65543 2005-09-19  Jim Meyering  <jim@meyering.net>
65544
65545         * modules/pathmax (License): Change to LGPL.
65546
65547 2005-09-19  Derek Price  <derek@ximbiot.com>
65548
65549         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65550
65551 2005-09-19  Bruno Haible  <bruno@clisp.org>
65552
65553         * gnulib-tool (import): Provide default for --tests-base.
65554
65555 2005-09-19  Bruno Haible  <bruno@clisp.org>
65556
65557         * doc/quote.texi: New file, extracted from gnulib.texi.
65558         * doc/ctime.texi: New file, extracted from gnulib.texi.
65559         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65560         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65561         * doc/gnulib.texi: Include them.
65562
65563 2005-09-18  Bruno Haible  <bruno@clisp.org>
65564
65565         Portability fix.
65566         * gnulib-tool (func_readlink): New function.
65567         (func_ln_if_changed): Use it.
65568
65569 2005-09-18  Bruno Haible  <bruno@clisp.org>
65570
65571         * gnulib-tool: Support --with-tests also with --import.
65572         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65573         (func_import): Use variables $testsbase and $inctests. Emit a
65574         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65575         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65576         SUBDIRS += $testsdir.
65577         (func_create_testdir): Update.
65578
65579 2005-09-18  Bruno Haible  <bruno@clisp.org>
65580
65581         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65582         instead of $dry_run.
65583         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65584         (func_ln_if_changed): Don't handle dry-run here.
65585         (func_import): In dry-run mode, detect more precisely which actions
65586         would be performed, and don't use "...ing" verbs.
65587
65588 2005-09-18  Bruno Haible  <bruno@clisp.org>
65589
65590         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65591         (func_import): Use join on two temporary files instead of three nested
65592         loops, in order to determine which files are new or old.
65593
65594 2005-09-18  Bruno Haible  <bruno@clisp.org>
65595
65596         * gnulib-tool (func_import): Comment out code that spits out the
65597         new files with --dry-run.
65598
65599 2005-09-18  Bruno Haible  <bruno@clisp.org>
65600
65601         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65602
65603 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * lib/stat-time.h: New file.
65606         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65607         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65608         in a different way.
65609         (timespec_cmp): New function.
65610         * lib/utimecmp.c: Include stat-time.h.
65611         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65612         members exist, not on the obsolescent ST_MTIM_NSEC.
65613         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65614
65615 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65616
65617         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65618
65619 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65620
65621         * MODULES.html.sh (File system functions): Add stat-time.
65622         * modules/stat-time: New file.
65623         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65624         is now done in a different way, by the stat-time module.
65625         * modules/utimecmp (Depends-on): Add stat-time.
65626
65627 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         * m4/st_mtim.m4: Remove.  Superseded by...
65630         * m4/stat-time.m4: New file.
65631         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65632         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65633
65634 2005-09-15  Derek Price  <derek@ximbiot.com>
65635
65636         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65637
65638 2005-09-15  Derek Price  <derek@ximbiot.com>
65639
65640         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65641         * lib/regex_internal.c: Ditto, using this...
65642         (__GNUC_PREREQ): ...new macro.
65643         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65644         using...
65645         (__GNUC_PREREQ): ...this new macro.
65646
65647         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65648
65649 2005-09-15  Derek Price  <derek@ximbiot.com>
65650             Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65653         changes, consolidating in...
65654         * lib/regex_internal.h: ...this file.
65655
65656 2005-09-13  Jim Meyering  <jim@meyering.net>
65657
65658         * lib/canon-host.c: Filter through gnu indent and reword comments
65659         slightly.
65660         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65661
65662 2005-09-13  Derek Price  <derek@ximbiot.com>
65663
65664         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65665         failure.
65666         Reported by Jim Meyering  <jim@meyering.net>.
65667
65668 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65669
65670         * lib/base64.c: Typo.
65671         (base64_encode): Put b64str in initialized data section.
65672
65673 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65674
65675         Merge glibc and coreutils changes into gnulib, plus a few
65676         extra fixes.
65677         * lib/md5.c: Use #error rather than a string.
65678         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65679         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65680         (__attribute__): Define to empty for non recent-GCC.
65681         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65682         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65683         Renamed from their non-__ counterparts, with new macros replacing
65684         them if not _LIBC.  Add __THROW attribute.
65685         (rol): Remove.
65686         (struct md5_ctx): Align buffer if using GCC.
65687         * lib/sha1.h (struct sha1_ctx): Likewise.
65688         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65689         The old name was backwards.
65690         (NOTSWAP): Remove; not used.
65691         (rol): New macro, moved here from md5.h.
65692         (sha1_process_block): Remove a FIXME that doesn't make sense.
65693
65694 2005-09-12  Derek Price  <derek@ximbiot.com>
65695
65696         Return usable errors from canon-host.
65697         * lib/canon-host.h: New file.
65698         * lib/canon-host.c (canon_host): Wrap...
65699         (canon_host_r): ...this new function, which now relies exclusively on
65700         getaddrinfo.
65701         (ch_strerror): New function.
65702         (last_cherror): New global.
65703         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65704         interface.
65705         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65706         void *.
65707         (freeaddrinfo): Free ai->ai_canonname when set.
65708
65709 2005-09-12  Derek Price  <derek@ximbiot.com>
65710
65711         Make canon-host require getaddrinfo.
65712         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65713         AC_LIBSOURCE canon-host.h.  Call...
65714         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65715         gl_GETADDRINFO.
65716         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65717
65718 2005-09-12  Derek Price  <derek@ximbiot.com>
65719
65720         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65721         LGPL.
65722         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65723
65724 2005-09-12  Derek Price  <derek@ximbiot.com>
65725
65726         * lib/gai_strerror.c: Include config.h when available.  Include
65727         getaddrinfo.h before other headers to test interface.
65728         Reported by Larry Jones <lawrence.jones@ugs.com>.
65729
65730 2005-09-12  Derek Price  <derek@ximbiot.com>
65731             Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * modules/glob (Files): Add glob-libc.h.
65734
65735 2005-09-12  Derek Price  <derek@ximbiot.com>
65736             Paul Eggert  <eggert@cs.ucla.edu>
65737
65738         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65739         glob_.h, glob-libc.h.
65740         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65741
65742 2005-09-12  Derek Price  <derek@ximbiot.com>
65743             Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65746         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65747         protecting things that should be done only in gnulib contexts.
65748         * lib/glob_.h: New file, containing only the glob things needed for
65749         gnulib.
65750         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65751         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65752         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65753         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65754         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65755         and to respect the namespace rules better.
65756
65757 2005-09-08  Simon Josefsson  <jas@extundo.com>
65758
65759         * modules/socklen: New file.
65760
65761 2005-09-08  Simon Josefsson  <jas@extundo.com>
65762
65763         * m4/socklen.m4: New file.
65764
65765 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65766
65767         * modules/utimens (Files): Add m4/utimbuf.m4, since
65768         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65769         Reported by Sergey Poznyakoff.
65770
65771 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65774         definitions, since that's the preferred style in glibc.
65775         Fix a minor spacing issue, and update copyright notice to match
65776         glibc's.
65777
65778 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65779
65780         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65781
65782 2005-09-06  Simon Josefsson  <jas@extundo.com>
65783
65784         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65785         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65786
65787 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65788
65789         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65790         warning.
65791
65792 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65793
65794         * config/srclist.txt: Add glibc bug 1302.
65795
65796 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65797
65798         Change bitset word type from unsigned int to unsigned long int,
65799         as this has better performance on typical 64-bit hosts.
65800         Port bitset code to hosts with unusual word sizes.
65801         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65802         (build_collating_symbol):
65803         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65804         argument is a bitset.  This is merely a style issue, but it makes
65805         it clearer that an entire array is expected.
65806         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65807         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65808         Port to the case where bitset_word is not the same as unsigned int.
65809         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65810         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65811         Likewise.
65812         * lib/regexec.c (check_dst_limits_calc_pos_1,
65813         check_subexp_matching_top):
65814         (build_trtable, group_nodes_into_DFAstates):
65815         Likewise.
65816         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65817         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65818         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65819         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65820         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65821         * lib/regcomp.c (optimize_subexps, lower_subexp):
65822         Work even if bitset_word has holes in its bitwise representation.
65823         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65824         * lib/regexec.c (check_dst_limits_calc_pos_1,
65825         check_subexp_matching_top):
65826         Likewise.
65827         * lib/regex_internal.c (re_string_reconstruct):
65828         Don't assume UCHAR_MAX == 255.
65829         * lib/regex_internal.h (bitset_set_all): Likewise.
65830         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65831         All uses changed.
65832         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65833         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65834         All uses changed.
65835         (BITSET_WORD_MAX): New macro.
65836         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65837         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65838         (bitset_empty, bitset_copy):
65839         Prefer sizeof (bitset) to multiplying it out ourselves.
65840         (bitset_not_merge): Remove; unused.
65841         (bitset_contain): Return bool, not unsigned int with one bit on.
65842         All callers changed.
65843         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65844         alignment than re_node_set; do this by defining a new internal
65845         type struct dests_alloc and using it to allocate memory.
65846
65847 2005-09-05  Bruno Haible  <bruno@clisp.org>
65848
65849         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65850         links.
65851
65852 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65853
65854         * modules/size_max (Makefile.am): Add size_max.h
65855
65856 2005-09-04  Derek Price  <derek@ximbiot.com>
65857
65858         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65859
65860 2005-09-03  Simon Josefsson  <jas@extundo.com>
65861
65862         * gnulib-tool: Fix typo.
65863
65864 2005-09-03  Simon Josefsson  <jas@extundo.com>
65865
65866         * config/srclist.txt: Add glibc bug 1293.
65867
65868 2005-09-03  Derek Price  <derek@ximbiot.com>
65869
65870         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65871         From Larry Jones <lawrence.jones@ugs.com>.
65872
65873 2005-09-02  Simon Josefsson  <jas@extundo.com>
65874
65875         * modules/socklen: New file.
65876
65877 2005-09-02  Simon Josefsson  <jas@extundo.com>
65878
65879         * modules/havelib: New module.
65880
65881         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65882         Use havelib.
65883
65884 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         Check for arithmetic overflow when calculating sizes, to prevent
65887         some buffer-overflow issues.  These patches are conservative, in the
65888         sense that when I couldn't determine whether an overflow was possible,
65889         I inserted a run-time check.
65890         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65891         macros.
65892         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65893         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65894         (re_xnrealloc, re_x2nrealloc): New inline functions.
65895         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65896         parse_bracket_exp):
65897         (build_equiv_class, build_charclass): Check for arithmetic overflow
65898         in size expression calculations.
65899         * lib/regex_internal.c (re_string_realloc_buffers):
65900         (build_wcs_upper_buffer, re_node_set_add_intersect):
65901         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65902         (re_dfa_add_node, register_state): Likewise.
65903         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65904         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65905         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65906         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65907
65908 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65909
65910         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65911         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65912
65913 2005-09-02  Bruno Haible  <bruno@clisp.org>
65914
65915         Support for lib vs. lib64 distinction on biarch platforms.
65916         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65917         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65918         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65919
65920 2005-09-02  Bruno Haible  <bruno@clisp.org>
65921
65922         * gnulib-tool (import): In the other first-use case, provide defaults
65923         as well.
65924
65925 2005-09-02  Bruno Haible  <bruno@clisp.org>
65926
65927         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65928         patches not yet found in the latest gettext release.
65929
65930 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65933         to avoid a collision with bits/local_lim.h in glibc.
65934         All uses changed.  Problem reported by Dmitry V. Levin in
65935         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65936
65937         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65938         bugs in int versus size_t comparisons.
65939         (re_string_context_at): Fix bug where the code assumed that
65940         Idx is signed.
65941
65942         Use bool where appropriate.
65943         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65944         All callers changed.
65945         (calc_eclosure_iter): Likewise, for ROOT arg.
65946         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65947         (build_charclass_op): Likewise, for NON_MATCH arg.
65948         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65949         (re_string_construct_common): Likewise, for ICASE arg.
65950         * lib/regexec.c (re_search_2_stub, re_search_stub):
65951         Likewise, for RET_LEN arg.
65952         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65953         (set_regs): Likewise, for FL_BACKTRACK arg.
65954         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65955         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65956         (calc_eclosure_iter, parse_bracket_exp):
65957         Use bool for internal variables that are booleans.
65958         * lib/regexec.c (re_search_internal, check_matching,
65959         proceed_next_node):
65960         (set_regs, build_sifted_states, sift_states_bkref):
65961         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65962         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65963         (find_collation_sequence_value):
65964         Likewise.
65965         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65966         (re_node_set_compare):
65967         Return bool, not int. All callers changed.
65968         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65969         (build_trtable, check_node_accept): Likewise.
65970         * lib/regex_internal.h: Include stdbool.h.
65971
65972         Fix bugs uncovered when converting to bool.
65973         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65974         failure instead of charging ahead blindly.
65975         * lib/regex_internal.c (register_state): Likewise.
65976         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65977         for freeing internal storage.
65978         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65979         bitset pieces used as boolean, to avoid undefined behavior
65980         on hosts that do int overflow checking.
65981
65982 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * config/srclist.txt: Add glibc bugs 1285-1287.
65985
65986 2005-09-01  Jim Meyering  <jim@meyering.net>
65987
65988         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65989         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65990         Require gl_STAT_MACROS, too.
65991
65992 2005-09-01  Bruno Haible  <bruno@clisp.org>
65993
65994         * gnulib-tool (import): In the first-use case, provide defaults.
65995
65996 2005-09-01  Bruno Haible  <bruno@clisp.org>
65997
65998         * gnulib-tool (func_import): Remove the .tmp files.
65999
66000 2005-09-01  Bruno Haible  <bruno@clisp.org>
66001
66002         * gnulib-tool (func_import): Fix handling of symbolic links.
66003
66004 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66007         old glibc regex code mishandles strings longer than 2**31 bytes.
66008         This patch fixes this when the regex code is used in gnulib
66009         (i.e., outside glibc).
66010
66011         This patch should not affect the use of the regex code inside
66012         glibc.  No doubt this problem also needs to be handled for glibc
66013         as well, but the result will be an incompatible change to the
66014         glibc ABI, and the old ABI will have to be supported too.  That
66015         can be the the subject for another patch.
66016
66017         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66018         governing whether the rest of this patch is active.  By default,
66019         the macro is disabled and the patch has no effect.
66020         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66021         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66022         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66023         (re_match_2, re_set_registers): Use the new types.
66024         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66025         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66026         New macros.
66027         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66028         (re_string_context_at, bin_tree_t, re_dfastate_t):
66029         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66030         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66031         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66032         (re_string_char_size_at, re_string_wchar_at):
66033         (re_string_elem_size_at):
66034         Use the new types and macros to port to 64-bit hosts.
66035         Use unsigned types for internal values, so that the code
66036         mostly works even for arrays larger than SSIZE_MAX.
66037         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66038         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66039         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66040         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66041         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66042         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66043         (calc_inveclosure, parse_dup_op, build_range_exp):
66044         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66045         (fetch_number, create_token_tree, mark_opt_subexp):
66046         Likewise.
66047         * lib/regex_internal.c (re_string_construct_common,
66048         create_ci_newstate):
66049         (create_cd_newstate, re_string_allocate, re_string_construct):
66050         (re_string_realloc_buffers, build_wcs_upper_buffer):
66051         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66052         (re_string_reconstruct, re_string_peek_byte_case):
66053         (re_string_fetch_byte_case, re_string_context_at):
66054         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66055         (re_node_set_init_copy, re_node_set_add_intersect):
66056         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66057         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66058         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66059         (re_acquire_state, re_acquire_state_context, register_state):
66060         Likewise.
66061         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66062         search_cur_bkref_entry):
66063         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66064         (re_search_internal, re_search_2_stub, re_search_stub)
66065         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66066         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66067         (update_cur_sifted_state, check_dst_limits):
66068         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66069         (check_subexp_limits, sift_states_bkref, merge_state_array):
66070         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66071         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66072         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66073         (expand_bkref_cache, check_node_accept_bytes):
66074         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66075         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66076         (acquire_init_state_context, check_halt_node_context):
66077         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66078         (sift_states_backward, clean_state_log_if_needed):
66079         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66080         (find_recover_state, transit_state_sb, transit_state_mb):
66081         (transit_state_bkref, build_trtable, match_ctx_clean):
66082         Likewise.
66083         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66084         to work around an assumption that REG_MISSING is negative.
66085
66086         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66087         (seek_collating_symbol_entry) [defined _LIBC]:
66088         (lookup_collation_sequence_value) [defined _LIBC]:
66089         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66090         Use prototypes rather than old-style function definitions.
66091         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66092         (transit_state_sb) [0]:
66093         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66094
66095         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66096         rm_eo.
66097
66098         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66099         (optimize_subexps, lower_subexp):
66100         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66101         since the signed shift might overflow.  Use 1u<<31 instead.
66102         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66103         Likewise.
66104         * lib/regexec.c (check_dst_limits_calc_pos_1,
66105         check_subexp_matching_top): Likewise.
66106
66107         * lib/regcomp.c (optimize_subexps, lower_subexp):
66108         Use CHAR_BIT rather than 8, for clarity.
66109         * lib/regexec.c (check_dst_limits_calc_pos_1):
66110         (check_subexp_matching_top): Likewise.
66111         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66112         have to worry about portability issues when shifting it left.
66113         Remove no-longer-needed test for table_size > 0.
66114         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66115         in a word, as the resulting behavior is undefined.
66116         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66117         in one case, a <= should have been an <, and in another case the
66118         whole test was missing.
66119         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66120         the standard name CHAR_BIT.
66121         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66122         this is not true on one's complement and signed-magnitude hosts.
66123
66124         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66125         next_last_offset.
66126         (struct re_dfa_t): Remove unused member states_alloc.
66127         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66128
66129 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66130
66131         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66132         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66133         and large-file glibc and in 32-bit large-file Solaris.
66134
66135 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66136
66137         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66138         lengths fit in regoff_t; this isn't true if regoff_t is the same
66139         width as size_t.
66140         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66141         (= START + RANGE) instead of RANGE.  This avoids overflow
66142         problems when regoff_t is the same width as size_t.
66143         All callers changed.
66144         (re_search_2_stub): Check for overflow when adding the
66145         sizes of the two strings.
66146         (re_search_stub): Check for overflow when adding START
66147         to RANGE; if it occurs, substitute the extreme value.
66148
66149 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66152
66153 2005-08-31  Jim Meyering  <jim@meyering.net>
66154
66155         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66156         a pointer-to-const.
66157         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66158         (register_state): Likewise.
66159         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66160         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66161         (group_nodes_into_DFAstates): Likewise.
66162
66163 2005-08-31  Jim Meyering  <jim@meyering.net>
66164
66165         * check-module: Add a FIXME comment.
66166
66167 2005-08-31  Eric Blake  <ebb9@byu.net>
66168
66169         * modules/unistd-safer (Files): Add unistd--.h.
66170         * modules/stdio-safer (Files): Add stdio--.h.
66171
66172 2005-08-31  Derek Price  <derek@ximbiot.com>
66173
66174         * lib/getdelim.c (getdelim): Return EOF on EOF.
66175         Reported by Larry Jones <lawrence.jones@ugs.com>.
66176
66177 2005-08-31  Bruno Haible  <bruno@clisp.org>
66178
66179         Avoid unnecessary diffs in the generated lib/Makefile.am.
66180         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66181         the generated files.
66182         (func_import): Don't set cmd.
66183
66184 2005-08-31  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/strstr.c: Include <stddef.h>, for NULL.
66187         * lib/strcasestr.c: Likewise.
66188         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66189
66190 2005-08-31  Bruno Haible  <bruno@clisp.org>
66191
66192         * gnulib-tool: New option --macro-prefix.
66193         (func_import): Use macro_prefix.
66194         (import): Handle option --macro-prefix.
66195
66196 2005-08-31  Bruno Haible  <bruno@clisp.org>
66197
66198         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66199         Also use new variables cached_lgpl, cached_libtool.
66200
66201 2005-08-31  Bruno Haible  <bruno@clisp.org>
66202
66203         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66204         always instantiating them.
66205
66206 2005-08-31  Bruno Haible  <bruno@clisp.org>
66207
66208         * gnulib-tool (func_import): Read the previous cached settings
66209         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66210         earlier added by gnulib but are now dropped. Warn when a gnulib file
66211         overwrites a non-gnulib file.
66212
66213 2005-08-31  Bruno Haible  <bruno@clisp.org>
66214
66215         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66216         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66217         projects that don't keep autogenerated files in CVS. Put into
66218         actioncmd only the specified modules, not the transitive closure.
66219
66220 2005-08-31  Bruno Haible  <bruno@clisp.org>
66221
66222         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66223         Create directories that shall be filled.
66224         (import): Don't look for gl_* macros in configure.ac. Recurse across
66225         all directories containing a gnulib-cache.m4 files, if meaningful.
66226
66227 2005-08-31  Bruno Haible  <bruno@clisp.org>
66228
66229         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66230         (import): Set seen_libtool when we see gl_LIBTOOL.
66231
66232 2005-08-31  Bruno Haible  <bruno@clisp.org>
66233
66234         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66235         declaration macro definitions from generated gnulib.m4.
66236
66237 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66238
66239         * lib/iconvme.h: Add prototype for iconv_alloc.
66240
66241 2005-08-29  Simon Josefsson  <jas@extundo.com>
66242
66243         * lib/iconvme.c: Fix errno.
66244
66245 2005-08-29  Bruno Haible  <bruno@clisp.org>
66246
66247         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66248         that it works when the directory contains spaces.
66249
66250 2005-08-29  Bruno Haible  <bruno@clisp.org>
66251
66252         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66253
66254 2005-08-29  Bruno Haible  <bruno@clisp.org>
66255
66256         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66257         Emit more advice.
66258
66259 2005-08-29  Bruno Haible  <bruno@clisp.org>
66260         and Stepan Kasal  <kasal@ucw.cz>
66261
66262         * check-module: If more parameters are given, check each of them
66263         separately; add more exceptions, as noted by Jim Meyering.
66264         (check_module): New procedure.
66265         (%exempt_header): Now contains all exceptions.
66266
66267 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66268
66269         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66270
66271 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66272
66273         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66274
66275 2005-08-28  Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/gnulib-tool.m4: New file.
66278
66279 2005-08-27  Jim Meyering  <jim@meyering.net>
66280
66281         * modules/unistd-safer (Files): Add pipe-safer.c.
66282         * modules/fcntl-safer (Files): Add creat-safer.c.
66283
66284 2005-08-27  Jim Meyering  <jim@meyering.net>
66285
66286         * m4/stdlib-safer.m4: New file.  From coreutils.
66287         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66288         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66289         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66290         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66291         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66292
66293 2005-08-27  Jim Meyering  <jim@meyering.net>
66294
66295         * lib/fopen-safer.c: Merge minor changes from coreutils.
66296         * lib/dup-safer.c: Likewise.
66297         * lib/fd-safer.c: Likewise.
66298
66299         Merge from coreutils.
66300         * lib/stdio--.h: New file.
66301         * lib/stdlib--.h: New file.
66302         * lib/mkstemp-safer.c: New file.
66303
66304         GNU tar needs these.
66305         * lib/pipe-safer.c: New file.
66306         * lib/creat-safer.c: New file.
66307         * lib/fcntl--.h (creat): Define to creat_safer.
66308         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66309         * lib/unistd--.h (pipe): Define to pipe_safer.
66310         * lib/unistd-safer.h: Declare pipe_safer.
66311
66312 2005-08-26  Simon Josefsson  <jas@extundo.com>
66313
66314         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66315         Haible <bruno@clisp.org>.
66316
66317 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * lib/regex_internal.h: Remove all references to
66320         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66321         or better.
66322         (bitset_not, bitset_merge, bitset_not_merge):
66323         (bitset_mask, re_string_allocate, re_string_construct):
66324         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66325         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66326         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66327         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66328         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66329         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66330         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66331         (re_acquire_state_context):
66332         Remove unnecessary forward decls.
66333         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66334         Put __attribute at function definition,
66335         now that the function decl has been removed.
66336         * lib/regex_internal.c (re_string_peek_byte_case):
66337         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66338         Likewise.
66339
66340 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66341
66342         * m4/regex.m4: Add AC_PREREQ(2.50).
66343         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66344
66345 2005-08-25  Simon Josefsson  <jas@extundo.com>
66346
66347         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66348         __fsetlocking.
66349
66350 2005-08-25  Simon Josefsson  <jas@extundo.com>
66351
66352         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66353         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66354         GLIBC specific code.
66355
66356 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66357
66358         Make regex safe for g++.  This fixes one real bug (an "err"
66359         that should have been "*err").  g++ problem reported by
66360         Sam Steingold.
66361         * lib/regex_internal.h (re_calloc): New macro, consistent with
66362         re_malloc etc.  All callers of calloc changed to use re_calloc.
66363         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66364         not int.  All callers changed.
66365         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66366         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66367         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66368         (find_recover_state): Change "err" to "*err"; this fixes what
66369         appears to be a real bug.
66370         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66371         versus int.
66372
66373 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66374
66375         * modules/regex (Depends-on): Add malloc, since the code
66376         assumes that !malloc(0) means failure.
66377
66378 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66381
66382         alloca modernization/simplification for regex.
66383         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66384         needs to be at the start of the file, and can be moved into
66385         regex_internal.h and simplified.
66386         * lib/regex_internal.h: Include <alloca.h>.
66387         (__libc_use_alloca) [!defined _LIBC]: New macro.
66388         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66389         now works outside glibc.
66390
66391 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * config/srclist.txt: Add glibc bugs 1241, 1245.
66394
66395 2005-08-25  Jim Meyering  <jim@meyering.net>
66396
66397         * lib/open-safer.c: Include <config.h>.
66398         Otherwise, we'd lose LARGEFILE support in any file using
66399         e.g. "fcntl--.h"
66400
66401 2005-08-25  Bruno Haible  <bruno@clisp.org>
66402
66403         * m4/minmax.m4: Require autoconf 2.52.
66404         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66405         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66406         alternatives of translit over the alphabet.
66407         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66408
66409 2005-08-24  Simon Josefsson  <jas@extundo.com>
66410
66411         * tests/test-getpass.c: New file.
66412
66413 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66416         for GNU regex features.
66417
66418 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66419
66420         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66421         * lib/regex.h (regerror): Likewise.
66422
66423         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66424         requires this.  (The code never needed it.)
66425
66426         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66427         All uses of recently-renamed identifiers changed to use the new,
66428         POSIX-compliant names.  The code will build and run just fine
66429         without these changes, but it's better to eat our own dog food
66430         and use the standard-conforming names.
66431
66432         * lib/regex.h: Fix a multitude of POSIX name space violations.
66433         These changes have an effect only for programs that define
66434         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66435         do not change anything for programs compiled in the normal way.
66436         Also, there is no effect on the ABI.
66437
66438         (_REGEX_SOURCE): New macro.
66439         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66440         defined and _GNU_SOURCE is not; this fixes a name space violation.
66441
66442         Rename the following macros to obey POSIX requirements.
66443         The old names are still visible as macros if _REGEX_SOURCE is defined.
66444         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66445         RE_BACKSLASH_ESCAPE_IN_LISTS.
66446         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66447         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66448         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66449         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66450         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66451         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66452         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66453         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66454         (REG_INTERVALS): renamed from RE_INTERVALS.
66455         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66456         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66457         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66458         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66459         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66460         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66461         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66462         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66463         RE_UNMATCHED_RIGHT_PAREN_ORD.
66464         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66465         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66466         (REG_DEBUG): renamed from RE_DEBUG.
66467         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66468         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66469         unusual, since we can't clash with the POSIX REG_ICASE.
66470         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66471         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66472         (REG_NO_SUB): renamed from RE_NO_SUB.
66473         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66474         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66475         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66476         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66477         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66478         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66479         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66480         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66481         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66482         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66483         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66484         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66485         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66486         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66487         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66488         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66489         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66490         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66491         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66492         (REG_FIXED): Renamed from REGS_FIXED.
66493         (REG_NREGS): Renamed from RE_NREGS.
66494
66495         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66496         of other REG_* macros, since POSIX says the user is allowed to
66497         #undef these macros selectively.
66498
66499         (reg_errcode_t): Update comment stating what other tables need
66500         to be consistent.
66501
66502         Rename the following enum values to obey POSIX requirements.
66503         The old names are still visible as macros.
66504         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66505         is not defined, since GNU is supposed to be a superset of POSIX as
66506         much as possible, and since we want reg_errcode_t to be a signed
66507         type for implementation consistency.
66508         (_REG_NOERROR): Renamed from REG_NOERROR.
66509         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66510         (_REG_BADPAT): Renamed from REG_BADPAT.
66511         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66512         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66513         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66514         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66515         (_REG_EBRACK): Renamed from REG_EBRACK.
66516         (_REG_EPAREN): Renamed from REG_EPAREN.
66517         (_REG_EBRACE): Renamed from REG_EBRACE.
66518         (_REG_BADBR): Renamed from REG_BADBR.
66519         (_REG_ERANGE): Renamed from REG_ERANGE.
66520         (_REG_ESPACE): Renamed from REG_ESPACE.
66521         (_REG_BADRPT): Renamed from REG_BADRPT.
66522         (_REG_EEND): Renamed from REG_EEND.
66523         (_REG_ESIZE): Renamed from REG_ESIZE.
66524         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66525         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66526         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66527         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66528         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66529
66530         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66531         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66532         changed.  But support the old name if the new one is not defined
66533         and if _REGEX_SOURCE.
66534
66535         Change the following member names in struct re_pattern_buffer.
66536         The old names are still supported if !_REGEX_SOURCE.
66537         The new names are always supported, regardless of _REGEX_SOURCE.
66538         (re_buffer): Renamed from buffer.
66539         (re_allocated): Renamed from allocated.
66540         (re_used): Renamed from used.
66541         (re_syntax): Renamed from syntax.
66542         (re_fastmap): Renamed from fastmap.
66543         (re_translate): Renamed from translate.
66544         (re_can_be_null): Renamed from can_be_null.
66545         (re_regs_allocated): Renamed from regs_allocated.
66546         (re_fastmap_accurate): Renamed from fastmap_accurate.
66547         (re_no_sub): Renamed from no_sub.
66548         (re_not_bol): Renamed from not_bol.
66549         (re_not_eol): Renamed from not_eol.
66550         (re_newline_anchor): Renamed from newline_anchor.
66551
66552         Change the following member names in struct re_registers.
66553         The old names are still supported if !_REGEX_SOURCE.
66554         The new names are always supported, regardless of _REGEX_SOURCE.
66555         (rm_num_regs): Renamed from num_regs.
66556         (rm_start): Renamed from start.
66557         (rm_end): Renamed from end.
66558
66559         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66560         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66561         Prepend __ to parameter names.
66562
66563         Undo yesterday's changes.
66564
66565 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66568         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66569         lib/regex.c.
66570
66571 2005-08-24  Jim Meyering  <jim@meyering.net>
66572
66573         Sync from coreutils.
66574         * m4/fcntl-safer.m4: New file.
66575
66576         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66577         and object files for this module.
66578
66579 2005-08-24  Jim Meyering  <jim@meyering.net>
66580
66581         Sync from coreutils.
66582         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66583
66584 2005-08-24  Jim Meyering  <jim@meyering.net>
66585
66586         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66587         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66588
66589 2005-08-24  Jim Meyering  <jim@meyering.net>
66590
66591         * modules/fcntl-safer: New module.
66592         * modules/fts (Depends-on): Add fcntl-safer.
66593         * MODULES.html.sh (File descriptor based Input/Output):
66594         Add fcntl-safer.
66595
66596 2005-08-24  Bruno Haible  <bruno@clisp.org>
66597
66598         Support for unit test modules.
66599         * modules/README: Mention tests modules.
66600         * modules/TEMPLATE-TESTS: New file.
66601         * gnulib-tool: New options --extract-tests-module, --with-tests and
66602         --tests-base (unused for the moment).
66603         (testsbase, inctests): New variables.
66604         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66605         (func_verify_module): Exclude TEMPLATE-TESTS.
66606         (func_verify_nontests_module, func_verify_tests_module): New functions.
66607         (func_get_dependencies): Add implicit dependency for tests modules.
66608         (func_get_tests_module): New function.
66609         (func_modules_transitive_closure): When --with-tests was specified,
66610         include the unit tests as well, unless explicitly avoided.
66611         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66612         (func_emit_tests_Makefile_am): New function.
66613         (func_create_testdir): When --with-tests was specified, emit a
66614         tests/ directory.
66615         * MODULES.html.sh (Future developments): Update.
66616
66617 2005-08-24  Bruno Haible  <bruno@clisp.org>
66618
66619         * modules/tls-tests: New file.
66620         * tests/test-tls.c: New file, from GNU gettext.
66621
66622 2005-08-24  Bruno Haible  <bruno@clisp.org>
66623
66624         * modules/lock-tests: New file.
66625         * tests/test-lock.c: New file, from GNU gettext.
66626
66627 2005-08-24  Bruno Haible  <bruno@clisp.org>
66628
66629         * lib/lock.h: Add multiple inclusion guard.
66630         * lib/tls.h: Add multiple inclusion guard.
66631
66632 2005-08-24  Bruno Haible  <bruno@clisp.org>
66633
66634         * gnulib-tool: Add support for the --aux-dir option to
66635         --create-testdir, --create-megatestdir, --test, --megatest.
66636         (func_create_testdir, func_create_megatestdir): Optionally emit a
66637         AC_CONFIG_AUX_DIR directive.
66638         (create-testdir, create-megatestdir, test, megatest): Provide a
66639         default value for $auxdir.
66640
66641 2005-08-24  Bruno Haible  <bruno@clisp.org>
66642
66643         * gnulib-tool (import): Use compound statement instead of subshell
66644         where possible.
66645
66646 2005-08-24  Bruno Haible  <bruno@clisp.org>
66647
66648         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66649
66650 2005-08-24  Bruno Haible  <bruno@clisp.org>
66651
66652         * gnulib-tool (func_version): Update.
66653
66654 2005-08-24  Bruno Haible  <bruno@clisp.org>
66655
66656         * gnulib-tool (func_import, func_create_testdir,
66657         func_create_megatestdir): Quote all autoconf macro arguments.
66658
66659 2005-08-24  Bruno Haible  <bruno@clisp.org>
66660
66661         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66662         option --force, because --force causes the aclocal.m4 of each
66663         subdirectory to be newer than the corresponding config.h.in.
66664
66665 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66666
66667         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66668         All contents moved to gl_REGEX.
66669         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66670         assume that it does.
66671
66672 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * lib/regex.h (REG_NOSYS)
66675         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66676         Define, since POSIX requires it as of 2001.
66677         (_REG_ENOSYS)
66678         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66679         New private symbol, used to keep the enum signed in all cases.
66680         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66681         Youngman in
66682         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66683
66684         * lib/regex_internal.c (re_string_skip_chars, register_state):
66685         (calc_state_hash):
66686         Remove forward decls; no longer needed now that we use prototypes.
66687         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66688         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66689         (clean_state_log_if_needed): Likewise.
66690
66691 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66692
66693         * config/srclist.txt: Add glibc bugs 1231-1233.
66694
66695 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66696
66697         Fix problems reported by Sam Steingold in
66698         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66699         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66700         assumed that reg_errcode_t is a signed type, which is not
66701         necessarily true if _XOPEN_SOURCE is not defined.
66702         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66703         since some compilers warn about it otherwise.
66704
66705 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66706
66707         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66708         (init_word_char, create_initial_state, duplicate_node_closure):
66709         (fetch_token, peek_token_bracket, build_range_exp):
66710         (build_collating_symbol): Remove forward decls; no longer needed
66711         now that we use prototypes.
66712
66713         * lib/regcomp.c:
66714         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66715         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66716         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66717         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66718         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66719         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66720         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66721         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66722         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66723         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66724         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66725         (build_charclass, build_charclass_op, fetch_number, create_tree):
66726         (create_token_tree, mark_opt_subexp, duplicate_tree):
66727         Use prototypes rather than old-style definitions.
66728
66729         * lib/regex_internal.c:
66730         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66731         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66732         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66733         (re_string_reconstruct, re_string_peek_byte_case):
66734         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66735         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66736         (re_node_set_init_copy, re_node_set_add_intersect):
66737         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66738         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66739         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66740         (re_acquire_state, re_acquire_state_context, register_state):
66741         (create_ci_newstate, create_cd_newstate, free_state):
66742         Likewise.
66743         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66744         re_search_2):
66745         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66746         (re_search_internal, prune_impossible_nodes):
66747         (acquire_init_state_context, check_matching, static):
66748         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66749         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66750         (update_regs, sift_states_backward, build_sifted_states):
66751         (clean_state_log_if_needed, merge_state_array):
66752         (update_cur_sifted_state, add_epsilon_src_nodes):
66753         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66754         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66755         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66756         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66757         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66758         (check_arrival, check_arrival_add_next_nodes):
66759         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66760         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66761         (check_node_accept_bytes, check_node_accept, extend_buffers):
66762         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66763         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66764         (sift_ctx_init):
66765         Likewise.
66766
66767         * lib/regex_internal.h:
66768         (re_string_allocate, re_string_construct, re_string_reconstruct):
66769         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66770         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66771         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66772         (re_string_context_at, re_string_peek_byte_case):
66773         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66774         is defined, since we now use prototypes always.
66775
66776         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66777         C89 or better.  All uses removed.
66778
66779 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * config/srclist.txt: Add glibc bugs 1220-1227.
66782
66783 2005-08-20  Jim Meyering  <jim@meyering.net>
66784
66785         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66786         of unused local, dfa.
66787
66788 2005-08-20  Bruno Haible  <bruno@clisp.org>
66789
66790         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66791
66792 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66795         (re_node_set_insert_last, re_dfa_add_node):
66796         Rename local variables to avoid GCC shadowing warnings.
66797
66798 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66801         [defined lint]: Suppress bogus uninitialized-variable warnings.
66802
66803         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66804         and let the caller return REG_ESPACE if out of space.  This
66805         removes an uninitialied-variable warning with GCC 4.0.1, and also
66806         avoids taking the address of a local variable.  All callers
66807         changed.
66808
66809 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66812         $LIBCSRC/posix/regexec.c.
66813         Add glibc bug 1217 for regcomp.c.
66814
66815 2005-08-19  Jim Meyering  <jim@meyering.net>
66816
66817         * lib/regexec.c (proceed_next_node): Redo local variables to
66818         avoid GCC shadowing warnings.
66819
66820 2005-08-18  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/strstr.c (strstr): Fix return value in multibyte case.
66823         * lib/strcasestr.c (strcasestr): Likewise.
66824
66825 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66828
66829 2005-08-17  Jim Meyering  <jim@meyering.net>
66830
66831         Make the %s format (seconds since the epoch) work for a negative
66832         number and when used with a zero-padded field width, e.g. %015s.
66833
66834         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66835         label so that it precedes the code to set `digits'.  Otherwise,
66836         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66837         print `00-22'.  Now, it prints `-0022', as it should.
66838
66839 2005-08-17  Bruno Haible  <bruno@clisp.org>
66840
66841         * modules/strstr (Files): Add m4/mbrtowc.m4.
66842         (Depends-on): Add mbuiter.
66843
66844 2005-08-17  Bruno Haible  <bruno@clisp.org>
66845
66846         * modules/strcasestr: New file.
66847         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66848         strcasestr.
66849
66850 2005-08-17  Bruno Haible  <bruno@clisp.org>
66851
66852         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66853
66854 2005-08-17  Bruno Haible  <bruno@clisp.org>
66855
66856         * modules/mbuiter: New file.
66857         * MODULES.html.sh (Extended multibyte and wide character utilities):
66858         Add mbuiter.
66859
66860 2005-08-17  Bruno Haible  <bruno@clisp.org>
66861
66862         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66863         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66864
66865 2005-08-17  Bruno Haible  <bruno@clisp.org>
66866
66867         * m4/strcasestr.m4: New file.
66868
66869 2005-08-17  Bruno Haible  <bruno@clisp.org>
66870
66871         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66872         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66873
66874 2005-08-17  Bruno Haible  <bruno@clisp.org>
66875
66876         * lib/strcasestr.h: New file.
66877         * lib/strcasestr.c: New file.
66878
66879 2005-08-17  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/strcasecmp.c: Use mbuiter.h.
66882
66883 2005-08-17  Bruno Haible  <bruno@clisp.org>
66884
66885         * lib/mbuiter.h: New file.
66886
66887 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66890         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66891         and gl_GETOPT are both invoked via different paths (as happens
66892         with GNU tar CVS because it uses both argp and getopt), the former
66893         wins.
66894
66895 2005-08-16  Bruno Haible  <bruno@clisp.org>
66896
66897         * modules/tls: New file.
66898         * MODULES.html.sh (Multithreading): Add tls.
66899
66900 2005-08-16  Bruno Haible  <bruno@clisp.org>
66901
66902         * modules/strnlen1: New file.
66903         * MODULES.html.sh (String handling): Add strnlen1.
66904
66905 2005-08-16  Bruno Haible  <bruno@clisp.org>
66906
66907         * modules/strcase (Files): Add m4/mbrtowc.m4.
66908         (Depends-on): Add strnlen1, mbchar.
66909
66910 2005-08-16  Bruno Haible  <bruno@clisp.org>
66911
66912         * modules/mbiter: New file.
66913         * MODULES.html.sh (Extended multibyte and wide character utilities):
66914         Add mbiter.
66915
66916 2005-08-16  Bruno Haible  <bruno@clisp.org>
66917
66918         * modules/mbfile: New file.
66919         * MODULES.html.sh (Extended multibyte and wide character utilities):
66920         Add mbfile.
66921
66922 2005-08-16  Bruno Haible  <bruno@clisp.org>
66923
66924         * modules/mbchar: New file.
66925         * MODULES.html.sh (Extended multibyte and wide character utilities):
66926         New section.
66927
66928 2005-08-16  Bruno Haible  <bruno@clisp.org>
66929
66930         * m4/tls.m4: New file, from GNU gettext.
66931
66932 2005-08-16  Bruno Haible  <bruno@clisp.org>
66933
66934         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66935         always.
66936         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66937
66938 2005-08-16  Bruno Haible  <bruno@clisp.org>
66939
66940         * m4/mbiter.m4: New file.
66941
66942 2005-08-16  Bruno Haible  <bruno@clisp.org>
66943
66944         * m4/mbfile.m4: New file.
66945
66946 2005-08-16  Bruno Haible  <bruno@clisp.org>
66947
66948         * m4/mbchar.m4: New file.
66949
66950 2005-08-16  Bruno Haible  <bruno@clisp.org>
66951
66952         * lib/tls.h: New file, from GNU gettext.
66953         * lib/tls.c: New file, from GNU gettext.
66954
66955 2005-08-16  Bruno Haible  <bruno@clisp.org>
66956
66957         * lib/strnlen1.h: New file.
66958         * lib/strnlen1.c: New file.
66959
66960 2005-08-16  Bruno Haible  <bruno@clisp.org>
66961
66962         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66963         (mbi_init): Update.
66964         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66965         NUL byte, not after it.
66966
66967 2005-08-16  Bruno Haible  <bruno@clisp.org>
66968
66969         * lib/strcase.h (strcasecmp): Add note in comments.
66970         * lib/strncasecmp.c: Use code from strcasecmp.c.
66971         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66972         (strcasecmp): Work correctly in multibyte locales.
66973
66974 2005-08-16  Bruno Haible  <bruno@clisp.org>
66975
66976         * lib/mbiter.h: New file.
66977
66978 2005-08-16  Bruno Haible  <bruno@clisp.org>
66979
66980         * lib/mbfile.h: New file.
66981
66982 2005-08-16  Bruno Haible  <bruno@clisp.org>
66983
66984         * lib/mbchar.h: New file.
66985         * lib/mbchar.c: New file.
66986
66987 2005-08-16  Bruno Haible  <bruno@clisp.org>
66988
66989         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66990         the valid ones. Makes the comparison operations transitive:
66991         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66992         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66993
66994 2005-08-15  Simon Josefsson  <jas@extundo.com>
66995
66996         * modules/ssize_t (License): Change to 'unlimited'.
66997
66998         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66999
67000 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67001
67002         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67003         Add comments for each pending glibc patch.
67004
67005 2005-08-15  Bruno Haible  <bruno@clisp.org>
67006
67007         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67008         __cplusplus is defined.
67009
67010 2005-08-14  Jim Meyering  <jim@meyering.net>
67011
67012         Sync from coreutils.
67013
67014         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67015         Use the hash-table-based cycle-detection code not just when
67016         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67017         Reported by James Youngman in
67018         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67019         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67020         FTS_TIGHT_CYCLE_CHECK.
67021         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67022         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67023         once again.
67024         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67025         * lib/fts.c (fd_safer): Remove decl.
67026         Include fcntl--.h rather than unistd-safer.h
67027         (fts_safe_changedir): Don't call fd_safer; no longer needed
67028         now that we include fcntl--.h.
67029
67030 2005-08-12  Simon Josefsson  <jas@extundo.com>
67031
67032         * modules/getndelim2: Use ssize_t module.
67033         * modules/getnline: Likewise.
67034         * modules/safe-read: Likewise.
67035         * modules/xreadlink: Likewise.
67036
67037         * modules/ssize_t: New file.
67038
67039 2005-08-12  Simon Josefsson  <jas@extundo.com>
67040
67041         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67042
67043 2005-08-12  Simon Josefsson  <jas@extundo.com>
67044
67045         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67046         ssize_t.
67047
67048 2005-08-12  Simon Josefsson  <jas@extundo.com>
67049
67050         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67051         readline, getdelim and check_version.
67052         (Support for systems lacking ISO C 99: Sizes of integer types):
67053         Add size_max.
67054
67055 2005-08-12  Bruno Haible  <bruno@clisp.org>
67056
67057         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67058
67059 2005-08-11  Simon Josefsson  <jas@extundo.com>
67060
67061         * modules/readline: New file.
67062
67063         * modules/strnlen (Files): Add strnlen.h.
67064
67065 2005-08-11  Simon Josefsson  <jas@extundo.com>
67066
67067         * m4/readline.m4: New file.
67068
67069 2005-08-11  Simon Josefsson  <jas@extundo.com>
67070
67071         * lib/readline.h, readline.c: New file.
67072
67073 2005-08-11  Simon Josefsson  <jas@extundo.com>
67074
67075         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67076         gl_AVOID.
67077
67078 2005-08-11  Bruno Haible  <bruno@clisp.org>
67079
67080         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67081
67082 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67083
67084         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67085
67086 2005-08-10  Simon Josefsson  <jas@extundo.com>
67087
67088         * tests/test-iconvme.c: New file.
67089
67090 2005-08-10  Simon Josefsson  <jas@extundo.com>
67091
67092         * m4/strnlen.m4: New file.
67093
67094         * m4/strndup.m4: Don't check for strnlen declaration, done in
67095         strnlen.m4.
67096
67097 2005-08-10  Simon Josefsson  <jas@extundo.com>
67098
67099         * lib/strndup.c: Use strnlen.h.
67100
67101         * lib/strnlen.h: New file.
67102
67103 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67104
67105         * README: Typos.
67106
67107 2005-08-02  Simon Josefsson  <jas@extundo.com>
67108
67109         * modules/readline: New file.
67110
67111 2005-08-02  Simon Josefsson  <jas@extundo.com>
67112
67113         * modules/getdelim: New file.
67114
67115         * modules/getline: Rewrite, don't use getndelim2.
67116
67117 2005-08-02  Simon Josefsson  <jas@extundo.com>
67118
67119         * m4/getline.m4: Separate out getdelim stuff into separate module.
67120
67121         * m4/getdelim.m4: New file.
67122
67123 2005-08-02  Simon Josefsson  <jas@extundo.com>
67124
67125         * lib/getline.h, getline.c: Rewrite.
67126
67127         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67128
67129 2005-07-31  Bruno Haible  <bruno@clisp.org>
67130
67131         * lib/lock.h (gl_lock_initializer): New macro.
67132         (gl_lock_define_initialized): Use it.
67133         (gl_rwlock_initializer): New macro.
67134         (gl_rwlock_define_initialized): Use it.
67135         (gl_recursive_lock_initializer): New macro.
67136         (gl_recursive_lock_define_initialized): Use it.
67137
67138 2005-07-30  Karl Berry  <karl@gnu.org>
67139
67140         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67141         Report from Ben Pfaff, regarding getopt.
67142
67143 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67144
67145         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67146         normal way.
67147         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67148         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67149         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67150         (gl_GETOPT): Use the new macros.  Most of the implementation
67151         is moved to the new macros.  This is for programs like Emacs
67152         that don't want all the functionality of gl_GETOPT.
67153
67154 2005-07-26  Bruno Haible  <bruno@clisp.org>
67155
67156         * m4/lock.m4: Update from GNU gettext.
67157
67158 2005-07-26  Bruno Haible  <bruno@clisp.org>
67159
67160         * lib/lock.h: Update from GNU gettext.
67161         * lib/lock.c: Update from GNU gettext.
67162
67163 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67164
67165         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67166         obsolescent AC_TRY_RUN.  Include the default includes files, for
67167         'exit'.
67168
67169 2005-07-24  Bruno Haible  <bruno@clisp.org>
67170
67171         * modules/visibility: New file.
67172         * MODULES.html.sh (Misc): Add visibility.
67173
67174 2005-07-24  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/visibility.m4: New file.
67177
67178 2005-07-24  Bruno Haible  <bruno@clisp.org>
67179
67180         * doc/visibility.texi: New file.
67181
67182 2005-07-22  Bruno Haible  <bruno@clisp.org>
67183
67184         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67185         $(ALLOCA_H), redundant through BUILT_SOURCES.
67186         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67187         redundant through BUILT_SOURCES.
67188         * modules/byteswap (Makefile.am): Remove explicit dependency on
67189         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67190         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67191         $(FNMATCH_H), redundant through BUILT_SOURCES.
67192         * modules/getopt (Makefile.am): Remove explicit dependency on
67193         $(GETOPT_H), redundant through BUILT_SOURCES.
67194         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67195         redundant through BUILT_SOURCES.
67196         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67197         redundant through BUILT_SOURCES.
67198         * modules/stdbool (Makefile.am): Remove explicit dependency on
67199         $(STDBOOL_H), redundant through BUILT_SOURCES.
67200         * modules/stdint (Makefile.am): Remove explicit dependency on
67201         $(STDINT_H), redundant through BUILT_SOURCES.
67202         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67203         Remove explicit dependency on $(SYSEXITS_H).
67204         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67205
67206 2005-07-18  Simon Josefsson  <jas@extundo.com>
67207
67208         * lib/check-version.c (check_version): Accept identical versions too.
67209
67210 2005-07-18  Bruno Haible  <bruno@clisp.org>
67211
67212         * modules/lock: New file.
67213         * MODULES.html.sh (Multithreading): New section.
67214
67215 2005-07-18  Bruno Haible  <bruno@clisp.org>
67216
67217         * m4/lock.m4: New file, from GNU gettext.
67218
67219 2005-07-18  Bruno Haible  <bruno@clisp.org>
67220
67221         * lib/lock.h: New file, from GNU gettext.
67222         * lib/lock.c: New file, from GNU gettext.
67223
67224 2005-07-18  Bruno Haible  <bruno@clisp.org>
67225
67226         * lib/lock.h (gl_once_t): New type.
67227         (gl_once_define, gl_once): New macros.
67228         * lib/lock.c (fresh_once): New variable.
67229         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67230         functions.
67231
67232 2005-07-16  Simon Josefsson  <jas@extundo.com>
67233
67234         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67235         workaround, suggested by Bruno.
67236
67237 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67238
67239         * modules/xalloc (Depends-on): Add xalloc-die.
67240         * modules/xvasprintf (Depends-on): Add xalloc-die.
67241
67242 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67245         with a minor change.
67246
67247 2005-07-15  Bruno Haible  <bruno@clisp.org>
67248
67249         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67250         When using lib/poll.c, define poll as rpl_poll.
67251
67252 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67253
67254         * modules/argp (Depends-on): Remove unlocked-io.
67255
67256 2005-07-14  Derek Price  <derek@ximbiot.com>
67257
67258         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67259         for glob symlink bug.
67260
67261 2005-07-14  Bruno Haible  <bruno@clisp.org>
67262
67263         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67264         Instead, test for *_unlocked function declarations directly.
67265
67266 2005-07-11  Simon Josefsson  <jas@extundo.com>
67267
67268         * modules/size_max: New file.
67269
67270         * modules/xsize: Depend on size_max module for size_max.m4.
67271
67272 2005-07-11  Simon Josefsson  <jas@extundo.com>
67273
67274         * lib/size_max.h: New file.
67275
67276 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67277
67278         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67279         copyright symbol and the year.
67280         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67281         (version_etc_va): Use parameterized copyright notice.
67282         Reword to conform to the current GNU coding standards.
67283
67284 2005-07-11  Karl Berry  <karl@gnu.org>
67285
67286         * doc/gnulib.texi (Quoting): new node.
67287         (Initial import): more info, from Patrice.
67288
67289 2005-07-11  Bruno Haible  <bruno@clisp.org>
67290
67291         * gnulib-tool (func_usage): Document option --avoid.
67292         (Command line options): Handle --avoid.
67293         (func_acceptable): New function.
67294         (func_modules_transitive_closure): Use it.
67295
67296 2005-07-11  Bruno Haible  <bruno@clisp.org>
67297
67298         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67299         Reported by Jim Meyering.
67300
67301 2005-07-10  Bruno Haible  <bruno@clisp.org>
67302
67303         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67304         Needed when size_t is smaller than 'unsigned int'.
67305         Reported by Paul Eggert.
67306
67307 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67308
67309         * modules/argp (Depends-on): Add unlocked-io
67310
67311 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67312
67313         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67314         block of defines.
67315
67316 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67317
67318         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67319         fix now.
67320
67321 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67322         and Paul Eggert  <eggert@cs.ucla.edu>
67323
67324         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67325         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67326
67327 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         * modules/regex (Files): Add lib/regex_internal.c,
67330         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67331         (Depends-on): Add extensions.
67332         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67333
67334 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67337         pathconf.
67338         * m4/same.m4 (gl_SAME): Likewise.
67339         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67340
67341         * m4/regex.m4: Adjust to new libc regex implementation.
67342         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67343         all the .c and .h parts of (the new) regex.
67344         Quote the m4 stuff better.
67345         Check for RE_ICASE bug of old gnulib.
67346         Check for REG_STARTEND of recent libc.
67347         Rename local variables from jm_* to gl_*.
67348         Quote operand of "test -f".
67349         Say "recent enough" version of libc, not "version 2".
67350         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67351         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67352         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67353         Remove check for btowc, isascii.
67354         Require AM_LANGINFO_CODESET.
67355
67356 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67357
67358         * lib/regex.c, regex.h: Sync from libc.
67359         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67360         * lib/regexec.c:
67361         New files, synced from libc, except that regex_internal.h
67362         currently has a small porting fix.
67363
67364 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67367         regex_internal.c, regexec.c.
67368         Add regex_internal.h too, but as a comment, since the libc version
67369         is currently broken in gnulib mode.
67370
67371 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67372
67373         Support programs like Emacs that use gnulib but not gettext.
67374         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67375         * modules/gettext-h: New file.
67376         * modules/gettext (Files): Remove lib/gettext.h.
67377         (Depends-on): Add gettext-h.
67378         (Makefile.am): Remove lib_SOURCES.
67379         * modules/argmatch, modules/c-stack, modules/closeout:
67380         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67381         * modules/execute, modules/file-type, modules/getaddrinfo:
67382         * modules/getopt, modules/human, modules/javacomp:
67383         * modules/javaexec, modules/mkdir-p, modules/obstack:
67384         * modules/openat, modules/pagealign_alloc, modules/pipe:
67385         * modules/quotearg, modules/regex, modules/rpmatch:
67386         * modules/unicodeio, modules/userspec, modules/version-etc:
67387         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67388         * modules/xsetenv:
67389         Depend on gettext-h, not gettext.
67390
67391 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67392
67393         * gnulib-tool (func_import): Add support for 'public domain' license.
67394         * modules/alloca, modules/atexit, modules/memmove:
67395         Now public domain, not GPL.
67396         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67397         * modules/realloc, modules/strerror, modules/strtod:
67398         Now LGPL, not GPL.
67399
67400 2005-07-05  Bruno Haible  <bruno@clisp.org>
67401
67402         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67403         autoconf CVS. Needed for mingw.
67404
67405 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         Remove the dependency of the strftime module on the tzset module.
67408         * modules/strftime (Depends-on): Remove dependency on tzset.
67409
67410 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         Remove the dependency of the strftime module on the tzset module.
67413         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67414         gl_FUNC_TZSET_CLOBBER.
67415
67416 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67417
67418         Remove the dependency of the strftime module on the tzset module.
67419         * lib/strftime.c (my_strftime)
67420         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67421         Copy the input structure, to work around some of the bug with
67422         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67423         Solaris releases, you should also use the tzset module, but we won't
67424         require it as a dependency any more since we don't want LGPLed code
67425         to depend on GPLed code.
67426
67427 2005-07-02  Jim Meyering  <jim@meyering.net>
67428
67429         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67430         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67431         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67432         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67433
67434 2005-07-02  Jim Meyering  <jim@meyering.net>
67435
67436         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67437
67438 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67439
67440         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67441         declares only 'struct timespec;' (!).
67442
67443 2005-07-01  Jim Meyering  <jim@meyering.net>
67444
67445         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67446         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67447         * lib/save-cwd.c, tempname.c:
67448         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67449         and don't include <sys/file.h>).
67450
67451 2005-06-29  Jim Meyering  <jim@meyering.net>
67452
67453         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67454         type name.  Use the variable name instead.
67455         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67456         Likewise.
67457
67458 2005-06-28  Simon Josefsson  <jas@extundo.com>
67459
67460         * modules/check-version (Files): Add check-version.m4.
67461
67462 2005-06-28  Simon Josefsson  <jas@extundo.com>
67463
67464         * m4/check-version.m4: New file, suggested by Jim Meyering
67465         <jim@meyering.net>.
67466
67467 2005-06-28  Simon Josefsson  <jas@extundo.com>
67468
67469         * lib/check-version.h, lib/check-version.c: New files.
67470
67471 2005-06-28  Simon Josefsson  <jas@extundo.com>
67472
67473         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67474         collision with global variable.  Better indentation.  Don't
67475         increment buffer pointer beyond buffer end.  Based on comments
67476         from Paul Eggert <eggert@cs.ucla.edu>.
67477
67478         * lib/base64.h: Indent.
67479
67480 2005-06-28  Simon Josefsson  <jas@extundo.com>
67481
67482         * doc/gnulib.texi (Library version handling): New section.
67483
67484 2005-06-28  Jim Meyering  <jim@meyering.net>
67485
67486         * check-module (find_included_lib_files): Hard-code another
67487         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67488         but modules/fts-lgpl (correctly) does not list those files.
67489
67490         * modules/canonicalize (Files): Add lib/pathmax.h.
67491
67492 2005-06-25  Simon Josefsson  <jas@extundo.com>
67493
67494         * modules/check-version: New file.
67495
67496 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67499         initializer of struct addrinfo, as an indication that we don't
67500         care how many members the structure has.
67501
67502 2005-06-24  Derek Price  <derek@ximbiot.com>
67503         and Bruno Haible  <bruno@clisp.org>
67504
67505         Remove stat module & update lstat.
67506         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67507         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67508         * m4/stat.m4: Remove this file.
67509
67510 2005-06-24  Derek Price  <derek@ximbiot.com>
67511         and Bruno Haible  <bruno@clisp.org>
67512
67513         Remove stat module & update lstat.
67514         * lib/stat.c: Remove this file...
67515         (slash_aware_lstat): ...moving this content and its support...
67516         * lib/lstat.c (rpl_lstat): ...into here.
67517         * lib/lstat.h: New file.
67518
67519 2005-06-24  Derek Price  <derek@ximbiot.com>
67520         and Bruno Haible  <bruno@clisp.org>
67521
67522         Remove stat module & update lstat.
67523         * config/srclist.txt (libc sources): Remove stat.
67524
67525 2005-06-24  Derek Price  <derek@ximbiot.com>
67526         and Bruno Haible  <bruno@clisp.org>
67527
67528         Remove stat module & update lstat.
67529         * MODULES.html.sh (stat): Remove.
67530         * MODULES.html: Regenerated.
67531         * modules/lstat (Description): Correct function name.
67532         (Files): Add "lstat.h".
67533         (Depends-on): Remove stat, add xalloc, stat-macros.
67534         * modules/stat: Remove this file.
67535         (Include): Add "lstat.h", remove <sys/stat.h>.
67536
67537 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67540         (ranged_convert): Don't save conversion in a temporary struct.
67541         This causes a warning with GCC 4.0.0, and anyway in the typical
67542         case it's not worth the extra 100 bytes or so of code.
67543         (ranged_convert, __mktime_internal): When calling a function via a
67544         pointer P, use P () rather than (*P) (), as we now assume C89 or
67545         better.
67546
67547 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67548
67549         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67550         "who -r" failed to give output.  Problem reported by Tim Waugh.
67551
67552         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67553         (xcalloc): Use it to avoid needless tests.
67554         Problem reported by Jim Meyering.
67555
67556 2005-06-20  Derek Price  <derek@ximbiot.com>
67557
67558         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67559         unnecessary for Autoconfs > 2.59c.
67560
67561 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67562
67563         * lib/argp.h (__option_is_short): Check upper limit of
67564         __key. Isprint() requires its argument to have the value
67565         of an unsigned char or EOF.
67566
67567 2005-06-16  Jim Meyering  <jim@meyering.net>
67568
67569         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67570         when either N or S is zero.
67571
67572 2005-06-16  Derek Price  <derek@ximbiot.com>
67573
67574         * m4/bison.m4: Declare YACC & YFLAGS precious.
67575
67576 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67579         multibyte string or pattern, fall back on unibyte matching.
67580         Problem reported by James Youngman.
67581
67582 2005-06-08  Bruno Haible  <bruno@clisp.org>
67583
67584         * modules/csharpcomp: New file.
67585         * MODULES.html.sh (C#): Add csharpcomp.
67586
67587 2005-06-08  Bruno Haible  <bruno@clisp.org>
67588
67589         * m4/csharpcomp.m4: New file, from GNU gettext.
67590
67591 2005-06-08  Bruno Haible  <bruno@clisp.org>
67592
67593         * lib/csharpcomp.h: New file, from GNU gettext.
67594         * lib/csharpcomp.c: New file, from GNU gettext.
67595         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67596
67597 2005-06-08  Bruno Haible  <bruno@clisp.org>
67598
67599         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67600         warning on mingw.
67601
67602 2005-06-07  Derek Price  <derek@ximbiot.com>
67603
67604         Sync from CVS.
67605         * lib/glob_.h: Indent nested #ifdef.
67606
67607 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67608
67609         Sync from coreutils.
67610         Use "file name" when talking about file names, instead of "filename"
67611         or "path", as per the GNU coding standards.
67612         * lib/mkdir-p.c: Renamed from makepath.c.
67613         (make_dir_parents): Renamed from make_path.  All callers changed.
67614         * lib/mkdir-p.h: Likewise.  All includers changed.
67615         * lib/filenamecat.c: Renamed from path-concat.c.
67616         (file_name_concat): Renamed from path_concat.  All callers changed.
67617         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67618         * lib/filenamecat.h: Likewise.  All includers changed.
67619         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67620         in comments or local variable names.
67621         * lib/basename.c: Likewise.
67622         * lib/canonicalize.c, canonicalize.h: Likewise.
67623         * lib/dirname.c, dirname.h: Likewise.
67624         * lib/euidaccess.c: Likewise.
67625         * lib/exclude.c: Likewise
67626         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67627         * lib/fsusage.c, fsuage.h: Likewise.
67628         * lib/fts.c, fts_.h: Likewise.
67629         * lib/getcwd.c: Likewise.
67630         * lib/getloadavg.c: Likewise.
67631         * lib/mkstemp.c: Likewise.
67632         * lib/mountlist.c, mountlist.h: Likewise.
67633         * lib/openat.c, openat.h: Likewise.
67634         * lib/readlink-stub.c: Likewise.
67635         * lib/readutmp.c, readutmp.h: Likewise.
67636         * lib/rename.c: Likewise.
67637         * lib/rmdir.c: Likewise.
67638         * lib/same.c: Likewise.
67639         * lib/savedir.c: Likewise.
67640         * lib/stripslash.c: Likewise.
67641         * lib/tempname.c: Likewise.
67642         * lib/xreadlink.c: Likewise.
67643         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67644         All uses changed.
67645         * lib/exclude.h: Likewise.
67646
67647         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67648         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67649         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67650         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67651         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67652         files have been getting away with it for years (MORE/BSD 4.3
67653         is extinct now).
67654         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67655         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67656
67657         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67658         Define to 256, not 255, as per modern POSIX.
67659
67660 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67661
67662         Sync from coreutils.
67663         Use "file name" when talking about file names, instead of "filename"
67664         or "path", as per the GNU coding standards.
67665         * MODULES.html.sh: mkdir-p renamed from makepath.
67666         filenamecat renamed from path-concat.
67667         * modules/filenamecat: Renamed from modules/path-concat.
67668         (Files): filenamecat.h and filenamecat.c renamed from
67669         path-concat.h and path-concat.c.
67670         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67671         (Include): filenamecat.h, not path-concat.h.
67672         * modules/mkdir-p: Renamed from modules/makepath.
67673         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67674         makepath.c.
67675         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67676         (Include): mkdir-p.h, not makepath.h.
67677
67678 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         Sync from coreutils.
67681         * m4/mkdir-p.m4: Renamed from makepath.m4.
67682         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67683         Rename files from makepath.c to mkdir-p.c, and from
67684         makepath.h to mkdir-p.h.
67685         * m4/filenamecat.m4: Renamed from path-concat.m4.
67686         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67687         Rename files from path-concat.c to filenamecat.c,
67688         and from path-concat.h to filenamecat.h.
67689         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67690         "file name" in local variables or comments.
67691         * m4/rename.m4: Likewise.
67692
67693 2005-06-01  Bruno Haible  <bruno@clisp.org>
67694
67695         * modules/csharpexec: New file.
67696         * MODULES.html.sh (C#): New section.
67697
67698 2005-06-01  Bruno Haible  <bruno@clisp.org>
67699
67700         * m4/csharp.m4: New file, from GNU gettext.
67701         * m4/csharpexec.m4: New file, from GNU gettext.
67702
67703 2005-06-01  Bruno Haible  <bruno@clisp.org>
67704
67705         * lib/csharpexec.h: New file, from GNU gettext.
67706         * lib/csharpexec.c: New file, from GNU gettext.
67707         * lib/csharpexec.sh.in: New file, from GNU gettext.
67708
67709 2005-05-31  Derek Price  <derek@ximbiot.com>
67710             Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         Sync from cvs.
67713         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67714
67715 2005-05-31  Derek Price  <derek@ximbiot.com>
67716             Paul Eggert  <eggert@cs.ucla.edu>
67717
67718         Sync from cvs.
67719         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67720
67721 2005-05-29  Derek Price  <derek@ximbiot.com>
67722
67723         * config/srclist.txt (glob_.h, glob.c): Add these files.
67724
67725 2005-05-29  Derek Price  <derek@ximbiot.com>
67726
67727         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67728         * modules/glob: New file.
67729         * modules/getlogin_r: Add link to POSIX spec in description.
67730
67731 2005-05-29  Derek Price  <derek@ximbiot.com>
67732             Paul Eggert  <eggert@cs.ucla.edu>
67733
67734         * m4/glob.m4: New file.
67735
67736 2005-05-29  Derek Price  <derek@ximbiot.com>
67737             Paul Eggert  <eggert@cs.ucla.edu>
67738
67739         * lib/glob_.h, lib/glob.c: New files.
67740
67741 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67742
67743         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67744         * modules/fts-lgpl (Depends-on): Remove gettext.
67745
67746 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67749         and don't require gt_INTTYPES_PRI.
67750
67751 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67754
67755         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67756         the configuration hassle isn't worth it.
67757         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67758         (LONGEST_MODIFIER, PRIuMAX): Remove.
67759
67760 2005-05-27  Bruno Haible  <bruno@clisp.org>
67761
67762         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67763
67764 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67765
67766         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67767         _POSIX_PTHREAD_SEMANTICS for Solaris.
67768
67769 2005-05-25  Derek Price  <derek@ximbiot.com>
67770
67771         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67772
67773 2005-05-25  Derek Price  <derek@ximbiot.com>
67774             Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67777         * lib/getlogin_r.c, getlogin_r.h: New files.
67778
67779 2005-05-25  Bruno Haible  <bruno@clisp.org>
67780             Derek Price  <derek@ximbiot.com>
67781
67782         * lib/getlogin_r.h: Simplify API documentation.
67783
67784 2005-05-23  Derek Price  <derek@ximbiot.com>
67785
67786         * modules/minmax (Files): Add m4/minmax.m4.
67787         (configure.ac): Add gl_MINMAX.
67788
67789 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67790
67791         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67792         so that unistd-safer.h (GPL'ed code) need not be included.
67793
67794 2005-05-22  Bruno Haible  <bruno@clisp.org>
67795
67796         * m4/minmax.m4: New file.
67797         Based on a patch by Derek Price <derek@ximbiot.com>.
67798
67799 2005-05-22  Bruno Haible  <bruno@clisp.org>
67800
67801         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67802         (INT64_MIN): Fix definition.
67803         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67804
67805         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67806         NEED_SIGNED_INT_TYPES.
67807
67808         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67809         HAVE_SYSTEM_INTTYPES.
67810
67811 2005-05-22  Bruno Haible  <bruno@clisp.org>
67812
67813         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67814         Also include <sys/param.h> if it defines MIN, MAX.
67815         Based on a patch by Derek Price <derek@ximbiot.com>.
67816
67817 2005-05-21  Jim Meyering  <jim@meyering.net>
67818
67819         * modules/fts (Files): Add m4/inttypes-pri.m4.
67820         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67821
67822 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67823
67824         New fts module.
67825         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67826         (setup_dir, free_dir): New functions.
67827         (enter_dir, leave_dir): Define trivial
67828         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67829         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67830         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67831         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67832         Move to fts-cycle.c.
67833         (fts_open): Use setup_dir.
67834         (fts_close): Use free_dir.
67835         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67836         This adds a label and some gotos, but the alternatives were messier.
67837         Check for memory allocation failure when entering a dir.
67838         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67839         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67840         (FTS): New member fts_cycle, that is a union that contains the
67841         old active_dir_ht and cycle_state.  All uses changed to mention
67842         fts_cycle.ht and fts_cycle.state.
67843         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67844         fts.c, with the following changes:
67845         (setup_dir, free_dir): New functions.
67846         (enter_dir): Now returns bool.  Return true if successful, false
67847         if memory exhausted.  All callers changed.
67848         Do not bother partly cleaning up on
67849         memory allocation failure; that is free_dir's job.
67850         However, free ad if hash_insert fails, to avoid memory leak.
67851         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67852         fts->fts_options to see which union member to use.
67853
67854 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67855
67856         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67857         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67858
67859 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67862
67863 2005-05-20  Jim Meyering  <jim@meyering.net>
67864
67865         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67866         Now a macro, to pacify GCC.
67867
67868 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67869
67870         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67871         of -1.
67872
67873 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67874
67875         * lib/chown.c (rpl_chown): Return -1 on failure.
67876
67877 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67878
67879         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67880         Don't check for stddef.h.
67881         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67882         don't use its results.
67883         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67884         since we include them unconditionally.  Don't require
67885         AM_STDBOOL_H, since stdbool is a prerequisite.
67886         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67887         since we assume C89 or better.
67888         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67889         as we don't use their results.
67890         Don't check for fchdir, memmove, memset, strrchr, as we use
67891         them unconditionally.
67892         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67893         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67894
67895 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67898         Include <stddef.h> unconditionally, since we assume C89 now.
67899         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67900         * lib/fts.c: Include fts_.h first, to check interface.
67901         Do not include intprops.h; no longer needed.
67902         Include cycle-check.h and hash.h, since fts_.h no longer does.
67903         Remove unnecessary casts of closedir to void.
67904         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67905         decide whether to decrement nlinks.
67906         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67907         (FTS): Use struct hash_table * instead of Hash_table, so that
67908         we no longer need to include hash.h here.
67909
67910 2005-05-18  Jim Meyering  <jim@meyering.net>
67911
67912         * modules/dirfd (License): Change to LGPL.  Most of the code
67913         is already in the public domain.
67914
67915 2005-05-18  Jim Meyering  <jim@meyering.net>
67916
67917         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67918         Reported by Yoann Vandoorselaere.
67919
67920 2005-05-17  Jim Meyering  <jim@meyering.net>
67921
67922         * m4/fts.m4: New file, from coreutils.
67923
67924 2005-05-17  Jim Meyering  <jim@meyering.net>
67925
67926         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67927
67928 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67929
67930         Sync from coreutils.
67931         * m4/unlinkdir.m4: New file.
67932
67933 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67934
67935         Sync from coreutils.
67936         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67937         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67938         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67939         White space changes only.
67940         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67941         special.
67942         * lib/yesno.c: Include getline.h, not ctype.h.
67943         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67944         Use getline to remove arbitrary restriction on response length.
67945
67946 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67947
67948         * config/srclist-update: Spell out "Street" in FSF postal
67949         mail address; this is the style the FSF seems to prefer.
67950
67951         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67952         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67953         this updates FSF postal mail address.
67954
67955         Sync from coreutils.
67956         * modules/unlinkdir: New file.
67957         * modules/yesno (Depends-on): Add getline.
67958         * MODULES.html.sh (File system functions): Add unlinkdir.
67959
67960 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67963         lib/strsep.h:
67964         Change the initial comment to refer to GPL, not LGPL.
67965         gnulib-tool will change it to LGPL as needed.
67966
67967         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67968         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67969         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67970         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67971         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67972         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67973         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67974         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67975         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67976         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67977         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67978         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67979         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67980         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67981         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67982         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67983         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67984         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67985         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67986         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67987         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67988         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67989         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67990         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67991         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67992         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67993         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67994         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67995         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67996         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67997         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67998         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67999         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68000         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68001         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68002         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68003         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68004         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68005         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68006         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68007         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68008         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68009         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68010         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68011         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68012         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68013         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68014         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68015         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68016         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68017         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68018         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68019         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68020         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68021         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68022         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68023         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68024         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68025         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68026         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68027         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68028         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68029         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68030         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68031         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68032         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68033         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68034         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68035         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68036         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68037         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68038         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68039         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68040         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68041         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68042         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68043         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68044         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68045         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68046         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68047         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68048         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68049         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68050         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68051         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68052         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68053         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68054         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68055         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68056         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68057         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68058         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68059         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68060         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68061         lib/yesno.c, lib/yesno.h:
68062         Update FSF postal mail address.
68063
68064 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68067         tests/test-memmem.c, tests/test-stpncpy.c:
68068         Update FSF postal mail address.
68069
68070 2005-05-13  Bruno Haible  <bruno@clisp.org>
68071
68072         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68073         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68074         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68075         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68076         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68077         Add support for 64-bit integers in the MSVC compiler.
68078
68079 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68080
68081         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68082
68083 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68084
68085         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68086
68087 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * doc/getdate.texi (General date syntax): Don't say that date
68090         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68091         Problem reported by Nic Ferrier.
68092
68093 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68094
68095         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68096         specified in ai_socktype. Fix invalid ai_protocol
68097         check. ai_protocol is usually set to 0 or depending on
68098         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68099         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68100         ai_socktype / ai_protocol in the returned addrinfo structure.
68101
68102 2005-05-10  Simon Josefsson  <jas@extundo.com>
68103
68104         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68105         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68106
68107 2005-05-10  Karl Berry  <karl@gnu.org>
68108
68109         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68110         (from http://www.gnu.org/licenses).
68111         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68112         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68113         fdl.texi suffices.
68114
68115 2005-05-10  Karl Berry  <karl@gnu.org>
68116
68117         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68118         (COPYING.DOC): remove.
68119
68120         * config/srclist-update: new FSF address.
68121
68122 2005-05-10  Derek Price  <derek@ximbiot.com>
68123
68124         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68125         possible.
68126
68127 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68128             Bruno Haible  <bruno@clisp.org>
68129
68130         * modules/inet_ntop: New file.
68131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68132         inet_ntop.
68133
68134 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68135             Bruno Haible  <bruno@clisp.org>
68136
68137         * m4/inet_ntop.m4: New file.
68138
68139 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68140             Bruno Haible  <bruno@clisp.org>
68141
68142         * lib/inet_ntop.h: New file.
68143         * lib/inet_ntop.c: New file, from glibc with modifications.
68144
68145 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * modules/time_r (License): Change to LGPL.
68148         * modules/extensions (License): Change to LGPL.  Actually,
68149         the license is more permissive than that, but currently gnulib-tool
68150         doesn't know how to handle more-permissive licenses.
68151
68152         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68153         Problem reported by Dave Love.
68154
68155 2005-05-08  Jim Meyering  <jim@meyering.net>
68156
68157         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68158         blank.
68159
68160 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         * modules/argmatch (Depends-on): Add stdbool.
68163         * modules/backupfile (Depends-on): Likewise.
68164         * modules/chdir-long (Depends-on): Likewise.
68165         * modules/closeout (Depends-on): Likewise.
68166         * modules/cycle-check (Depends-on): Likewise.
68167         * modules/dirname (Depends-on): Likewise.
68168         * modules/fnmatch (Depends-on): Likewise.
68169         * modules/fsusage (Depends-on): Likewise.
68170         * modules/fwriteerror (Depends-on): Likewise.
68171         * modules/getcwd (Depends-on): Likewise.
68172         * modules/getloadavg (Depends-on): Likewise.
68173         * modules/hard-locale (Depends-on): Likewise.
68174         * modules/makepath (Depends-on): Likewise.
68175         * modules/mountlist (Depends-on): Likewise.
68176         * modules/nanosleep (Depends-on): Likewise.
68177         * modules/posixtm (Depends-on): Likewise.
68178         * modules/quotearg (Depends-on): Likewise.
68179         * modules/readtokens (Depends-on): Likewise.
68180         * modules/readtokens0 (Depends-on): Likewise.
68181         * modules/readutmp (Depends-on): Likewise.
68182         * modules/save-cwd (Depends-on): Likewise.
68183         * modules/strftime (Depends-on): Likewise.
68184         * modules/userspec (Depends-on): Likewise.
68185         * modules/utimecmp (Depends-on): Likewise.
68186         * modules/xgetcwd (Depends-on): Likewise.
68187         * modules/xnanosleep (Depends-on): Likewise.
68188         * modules/xstrtod (Depends-on): Likewise.
68189         * modules/yesno (Depends-on): Likewise.
68190
68191 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68194         needless checks.
68195
68196 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68197
68198         Merge from coreutils.  Among other things,
68199         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68200         * lib/fd-safer.c: New file.
68201         * lib/fcntl-safer.h, open-safer.c: Remove.
68202         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68203         * lib/dup-safer.c: Include unistd-safer.h first.
68204         Don't include errno.h.
68205         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68206         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68207         * lib/file-type.c: Rely on file-type.h change.
68208         * lib/getloadavg.c: Include unistd-safer.h.
68209         (getloadavg): Use safer open.
68210         * lib/getusershell.c: Include "stdio-safer.h".
68211         (getusershell): Use safer fopen.
68212         * lib/long-options.c (long_options): Use NULL rather than 0.
68213         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68214         'free'.
68215         * lib/modechange.c: Likewise.
68216         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68217         (MODE_DONE): New constant.
68218         (struct mode_change): Remove 'next' member.
68219         (make_node_op_equals): New function; like the old one of the
68220         same name, except it allocates an array.
68221         (mode_compile, mode_create_from_ref): Use it.
68222         (mode_compile): Allocate result as an array, not a linked list.
68223         Parse octal string ourself, so that we catch mistakes like "+0".
68224         (mode_adjust): Arg is an array, not a linked list.
68225         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68226         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68227         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68228         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68229         Remove.  This is now stat-macros.h's job.
68230         (talloc): Remove.  All callers replaced by xalloc, so that
68231         our invokers don't have to worry about reporting memory failures.
68232         (make_node_op_equals): Remove.
68233         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68234         New constants.
68235         (struct mode_change): Moved here from modechange.h.
68236         (mode_append_entry): Remove.
68237         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68238         apps to have incorrect behavior.  Use simpler algorithm for head
68239         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68240         Detect more invalid usages rather than having somewhat-random behavior.
68241         Don't insert an "a=" action, as that leads to incorrect behavior.
68242         (mode_compile, mode_create_from_ref): Return NULL on error instead
68243         of an enum, since now there's only one way to have an error.  All
68244         callers changed.
68245         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68246         at the correct time.  Simplify calculation of "+u" and its ilk.
68247         Don't mishandle "+X".
68248         (mode_free): Remove "register" and localize decls.
68249         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68250         (struct mode_change): Move to modechange.c; callers don't
68251         need to see this stuff.
68252         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68253         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68254         (mode_change, mode_adjust): Reflect the new signatures noted above.
68255         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68256         that might redefine system include files.
68257         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68258         (my_usleep): Use NULL rather than (void *) 0.
68259         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68260         Use siginterrupt to specify that system calls should be interrupted.
68261         (rpl_nanosleep): Move initialization of suspended closer to call of
68262         my_usleep.
68263         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68264         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68265         (desirable_utmp_entry): New function.
68266         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68267         using x2nrealloc, to simplify logic.
68268         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68269         size calculation.  Do not assume utmp file is a regular file.
68270         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68271         (READ_UTMP_CHECK_PIDS): New constant.
68272         * lib/save-cwd.c: Include unistd-safer.h.
68273         (save_cwd): Use fd_safer.
68274         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68275         [!_LIBC] Include "stat-macros.h" instead.
68276         * lib/unistd-safer.h (fd_safer): New decl.
68277
68278 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68279
68280         * modules/getloadavg (Depends-on): Add unistd-safer.
68281         * modules/getusershell (Depends-on): Add stdio-safer.
68282         * modules/lstat (Depends-on): Remove xalloc.
68283         * modules/mkstemp (Depends-on): Add stat-macros.
68284         * modules/modechange (Depends-on): Remove xstrtol.
68285         Add stat-macros, xalloc.
68286         * modules/save-cwd (Depends-on): Add unistd-safer.
68287         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68288         * modules/unistd-safer (Files): Add lib/fd-safer.c
68289         (Makefile.am): Remove lib_SOURCES.
68290
68291         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68292         Remove fcntl-safer; unistd-safer supersedes it.
68293
68294 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68295
68296         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68297         AC_HEADER_STAT.
68298         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68299         (gl_PREREQ_CHOWN): Remove.
68300         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68301         it.  Don't require AC_HEADER_STAT.
68302         (gl_PREREQ_LSTAT): Remove.
68303         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68304         Don't require AC_HEADER_STAT.
68305         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68306         (gl_PREREQ_RMDIR): Remove.
68307         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68308         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68309         the stat-macros module a prerequisite.
68310         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68311         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68312         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68313         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68314         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68315         variable names.
68316         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68317         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68318         variable prefixes.
68319         * m4/fcntl-safer.m4: Remove.
68320         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68321         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68322         Invoke gl_PREREQ_FD_SAFER.
68323         (gl_PREREQ_FD_SAFER): New macro.
68324         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68325         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68326         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68327         Remove duplicate call to AC_LIBOBJ(readutmp).
68328         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68329
68330         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68331         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68332
68333 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68334
68335         * MODULES.html.sh (Misc): Add byteswap.
68336
68337 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68338
68339         * modules/getcwd (Depends-on): Add extensions.
68340         * modules/openat (Depends-on): Likewise.
68341
68342 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68343
68344         * modules/byteswap: New file.
68345
68346 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68347
68348         * m4/byteswap.m4: New file.
68349
68350 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68351
68352         * lib/byteswap_.h: New file.
68353
68354 2005-04-25  Karl Berry  <karl@gnu.org>
68355
68356         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68357
68358 2005-04-25  Albert Chin  <china@thewrittenword.com>
68359
68360         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68361         Toolkit C bug.
68362
68363 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68364
68365         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68366         (func_ln_if_changed): Remove forcibly for no error message
68367         in case file does not exist.
68368
68369 2005-04-19  Simon Josefsson  <jas@extundo.com>
68370
68371         * gnulib-tool (Options): Make --symlink mean --symbolic.
68372
68373 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68374
68375         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68376
68377 2005-04-16  Simon Josefsson  <jas@extundo.com>
68378
68379         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68380
68381 2005-04-15  Simon Josefsson  <jas@extundo.com>
68382
68383         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68384
68385 2005-04-15  Simon Josefsson  <jas@extundo.com>
68386
68387         * gnulib-tool: Rename --symlink to --symbolic.
68388
68389 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68390
68391         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68392         symbolic links to files instead of copying/moving.  Add --aux-dir,
68393         specifying directory relative --dir where auxiliary build tools
68394         are placed.
68395
68396 2005-04-14  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/allocsa (License): Change to LGPL.
68399         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68400
68401 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68404         that "UTC +1 second" continues to work.  Problem reported
68405         by Dmitry V. Levin.
68406         (relunit_snumber): New rule.
68407         (relunit): Use it.
68408
68409 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         * lib/getdate.y (universal_time_zone_table): New constant.
68412         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68413         universal_time_zone_table.
68414         (lookup_zone): Prefer universal_time_zone_table to
68415         local_time_zone_table, so that "GMT" time stamps are allowed in
68416         London during the summer.  Problem reported by Ian Abbott.
68417
68418 2005-04-12  Jim Meyering  <jim@meyering.net>
68419
68420         * lib/human.c (humblock): Set *options even when returning due to
68421         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68422         warning from gcc-4.
68423
68424 2005-04-09  Jim Meyering  <jim@meyering.net>
68425
68426         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68427         -Wuninitialized: initialize tm0.tm_year.
68428
68429 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68432         count, since there's no maximum.  All uses changed.
68433         Add member dsts_seen.
68434         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68435         not being INT_MAX.
68436         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68437         Use pc_rels_seen to decide whther a date is absolute.
68438
68439         * lib/getdate.y (number): Don't overwrite year.
68440         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68441         check.
68442
68443 2005-04-02  Simon Josefsson  <jas@extundo.com>
68444
68445         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68446         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68447
68448 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68449
68450         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68451         where no absolute path name can be longer than PATH_MAX.
68452
68453 2005-03-27  Jim Meyering  <jim@meyering.net>
68454
68455         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68456
68457 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68460         "one's complement" -> "ones' complement" in comment, as per Knuth.
68461         "value of type" -> "type or expression" in comment.
68462         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68463
68464 2005-03-26  Jim Meyering  <jim@meyering.net>
68465
68466         Comment nits.
68467         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68468         Correct typos: s/or/of/.
68469
68470 2005-03-26  Jim Meyering  <jim@meyering.net>
68471
68472         * modules/check-include-files: Move to ../ and rename to...
68473         * check-module: ...this.
68474
68475 2005-03-25  Jim Meyering  <jim@meyering.net>
68476
68477         * modules/xvasprintf (Files): Add xalloc.h.
68478
68479 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * modules/gettext (Files): config/config.rpath ->
68482         build-aux/config.rpath
68483         * modules/iconv (Files): Likewise.
68484         Problem reported by Oskar Liljeblad.
68485
68486 2005-03-23  Jim Meyering  <jim@meyering.net>
68487
68488         * modules/check-include-files: New script to check for
68489         missing dependencies, multiple includes, etc.
68490
68491         * modules/c-strtold (Depends-on): Add xalloc.
68492         * modules/c-strtod (Depends-on): Add xalloc.
68493         * modules/hash (Depends-on): Add xalloc.
68494         (Files): Remove lib/xalloc.h.
68495
68496         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68497         * modules/userspec (Files): Add lib/inttostr.h.
68498
68499 2005-03-23  Jim Meyering  <jim@meyering.net>
68500
68501         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68502
68503 2005-03-22  Jim Meyering  <jim@meyering.net>
68504
68505         * modules/stat-macros: New module.
68506         * modules/canonicalize, modules/euidaccess, modules/file-type,
68507         * modules/filemode, modules/lchown, modules/makepath,
68508         * modules/rmdir, modules/stat: Depend on new stat-macros module
68509         rather than listing lib/stat-macros.h manually.
68510         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68511
68512 2005-03-22  Jim Meyering  <jim@meyering.net>
68513
68514         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68515
68516 2005-03-22  Bruno Haible  <bruno@clisp.org>
68517
68518         * config/srclist.txt: Replace target directory 'config' with
68519         'build-aux'.
68520         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68521         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68522         ../build-aux/.
68523
68524 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68525
68526         * modules/chdir-long (Depends-on): Add mempcpy.
68527
68528         * modules/acl, modules/backupfile, modules/c-strtod,
68529         modules/c-strtold, modules/canon-host, modules/canonicalize,
68530         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68531         modules/exclude, modules/exitfail, modules/file-type,
68532         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68533         modules/getdate, modules/getline, modules/getpagesize,
68534         modules/getpass, modules/getugroups, modules/group-member,
68535         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68536         modules/inttostr, modules/long-options, modules/makepath,
68537         modules/md5, modules/memcasecmp, modules/memcoll,
68538         modules/modechange, modules/mountlist, modules/path-concat,
68539         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68540         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68541         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68542         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68543         modules/strftime, modules/strndup, modules/strverscmp,
68544         modules/timespec, modules/unlocked-io, modules/userspec,
68545         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68546         modules/yesno:
68547         Remove lib_SOURCES line from Makefile.am section, as this is now
68548         done automatically by the corresponding Autoconf macro.
68549
68550 2005-03-21  Jim Meyering  <jim@meyering.net>
68551
68552         Changes imported from coreutils.
68553
68554         * lib/cycle-check.c: Don't include xalloc.h.
68555
68556         * lib/path-concat.c: Don't include assert.h.
68557         (path_concat): Remove assertion that would have triggered
68558         for ABASE starting with more than one slash.
68559         Reported by Andreas Schwab.
68560
68561         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68562         properly when ABASE is an absolute file name.
68563         Correct the description of this function.
68564         Include <assert.h>.
68565         Add an assertion and a test driver.
68566         This fixes a bug introduced on 2004-07-02.
68567         Andreas Schwab reported the resulting failure of cp --parents:
68568         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68569
68570 2005-03-21  Jim Meyering  <jim@meyering.net>
68571
68572         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68573         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68574
68575 2005-03-21  Jim Meyering  <jim@meyering.net>
68576         and  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68579         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68580         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68581         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68582         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68583         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68584         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68585         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68586         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68587         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68588         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68589         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68590         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68591         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68592         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68593         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68594         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68595         for these modules.
68596
68597 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68600         (which shouldn't happen), generate nothing instead of returning 0
68601         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68602
68603 2005-03-16  Bruno Haible  <bruno@clisp.org>
68604
68605         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68606         HAVE_LONGLONG_64BIT.
68607
68608 2005-03-16  Bruno Haible  <bruno@clisp.org>
68609
68610         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68611         HAVE_LONGLONG_64BIT.
68612
68613 2005-03-16  Bruno Haible  <bruno@clisp.org>
68614
68615         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68616         HAVE_LONGLONG_64BIT.
68617
68618 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68619
68620         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68621         reliably distinguish strftime failure from empty output on POSIX
68622         hosts.
68623
68624 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68625
68626         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68627         (iconv_string): Don't guess a size-zero buffer, as that might cause
68628         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68629         result would be 'too large', where 'too large' is (heuristically)
68630         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68631         overflow concerns.  This will prevent some unwanted malloc failures
68632         when the inputs are very large.
68633
68634 2005-03-15  Karl Berry  <karl@gnu.org>
68635
68636         * config/srclist.txt (config.rpath): from gettext.
68637         * config/config.rpath: update.
68638
68639 2005-03-15  Bruno Haible  <bruno@clisp.org>
68640
68641         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68642         to 'negate'.
68643
68644         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68645         variable.
68646
68647         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68648         results.
68649
68650 2005-03-14  Simon Josefsson  <jas@extundo.com>
68651
68652         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68653         <fx@gnu.org>.
68654
68655 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68656
68657         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68658         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68659         intprops.h.
68660         * lib/strtol.c: Likewise.
68661
68662 2005-03-14  Jim Meyering  <jim@meyering.net>
68663
68664         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68665         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68666         to be nonzero so that we (and caller) can detect the difference
68667         between a valid zero-length expansion and an error return, even
68668         when the underlying strftime fails before writing anything into
68669         that location.
68670
68671 2005-03-14  Bruno Haible  <bruno@clisp.org>
68672
68673         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68674         Update from GNU gettext 0.14.3.
68675
68676 2005-03-10  Jim Meyering  <jim@meyering.net>
68677
68678         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68679
68680 2005-03-10  Jim Meyering  <jim@meyering.net>
68681
68682         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68683         so that this module works on systems without fchdir.
68684
68685 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         Factor int-properties macros into a single file, except for
68688         glibc-related files.
68689         * lib/intprops.h: New file.
68690         * lib/getloadavg.c: Include it instead of limits.h.
68691         (INT_STRLEN_BOUND): Remove.
68692         * lib/human.c: Include intprops.h.
68693         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68694         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68695         302/1000.
68696         * lib/inttostr.h: Include intprops.h instead of limits.h.
68697         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68698         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68699         for consistency with intprops.h.
68700         (time_t_is_integer, twos_complement_arithmetic): Use them.
68701         * lib/sig2str.h: Include <signal.h>, intprops.h.
68702         (INT_STRLEN_BOUND): Remove.
68703         * lib/strftime.c (TYPE_SIGNED): Remove.
68704         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68705         * lib/strtol.c: Adjust comments to match intprops.h.
68706         * lib/userspec.c: Include intprops.h.
68707         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68708         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68709         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68710         instead of rolling our own expressions.
68711         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68712
68713         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68714         instead of int.
68715         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68716         the right thing even if adding 1900 would overflow.  Similarly
68717         for tm_mon + 1 and tm_yday + 1.
68718         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68719         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68720         (DO_SIGNED_NUMBER): New macro.
68721         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68722
68723 2005-03-07  Bruno Haible  <bruno@clisp.org>
68724
68725         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68726
68727 2005-03-07  Bruno Haible  <bruno@clisp.org>
68728
68729         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68730
68731 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68732
68733         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68734         (func_import): Only replace files via --import when they have actually
68735         changed.
68736
68737 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68738
68739         * m4/mmap-anon.m4: New file.
68740         * m4/pagealign_alloc.m4: New file.
68741
68742 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68743             Bruno Haible  <bruno@clisp.org>
68744
68745         * modules/pagealign_alloc: New file.
68746         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68747
68748 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68749             Bruno Haible  <bruno@clisp.org>
68750
68751         * lib/pagealign_alloc.h: New file.
68752         * lib/pagealign_alloc.c: New file.
68753
68754 2005-03-03  Bruno Haible  <bruno@clisp.org>
68755
68756         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68757         Use an all-permissive copyright notice, recommended by RMS.
68758
68759 2005-03-02  Bruno Haible  <bruno@clisp.org>
68760
68761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68762         of AIX, the replacement has to be done only after <string.h> is
68763         included, therefore not in config.h. stpncpy.h does the replacement,
68764         and stpncpy.c uses it.
68765
68766 2005-03-02  Bruno Haible  <bruno@clisp.org>
68767
68768         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68769         stpncpy.c uses it.
68770
68771 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68774         The workaround isn't strictly needed for POSIX conformance, and
68775         it's too much of a pain to configure and maintain.  We'll ask
68776         people to fix their kernels instead.
68777         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68778         (NANOSLEEP_BUG_WORKAROUND): Remove.
68779         (xnanosleep): Remove the workaround.
68780
68781 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68782
68783         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68784         Reported by Derek Price.
68785         (Include): Add "timespec.h".
68786
68787         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68788
68789 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68792         to detect nanosleep bug.
68793
68794 2005-03-01  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68797
68798 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * modules/gethrxtime: New file.
68801         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68802         (Depends-on): Add gethrxtime.
68803         (configure.ac): Add gl_XNANOSLEEP.
68804         (Makefile.am): Remove lib_SOURCES line.
68805
68806 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68807
68808         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68809         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68810
68811 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68812
68813         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68814         * lib/timespec.h (gettime): Return void, since it always
68815         succeeds now.  All uses changed.
68816         * lib/gettime.c (gettime): Likewise.
68817         [HAVE_NANOTIME]: Prefer nanotime.
68818         Assume gettimeofday succeeds, as POSIX requires.
68819         Assime time () succeeds, since other code already does.
68820         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68821         (timespec_subtract): Remove.
68822         (NANOSLEEP_BUG_WORKAROUND): New constant.
68823         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68824         things considerably.  Use it only on GNU/Linux hosts, since the
68825         workaround shouldn't be needed elsewhere.
68826
68827 2005-02-24  Bruno Haible  <bruno@clisp.org>
68828
68829         * modules/gettext (Files): Add m4/glibc2.m4.
68830
68831 2005-02-24  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68834         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68835         * m4/progtest.m4:
68836         Update from GNU gettext 0.14.2.
68837         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68838
68839 2005-02-24  Bruno Haible  <bruno@clisp.org>
68840
68841         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68842         * lib/config.charset: Update from GNU gettext 0.14.2.
68843
68844 2005-02-24  Bruno Haible  <bruno@clisp.org>
68845
68846         * lib/gettext.h: Update from GNU gettext 0.14.2.
68847
68848 2005-02-23  Simon Josefsson  <jas@extundo.com>
68849
68850         * m4/iconvme.m4: New file.
68851
68852 2005-02-23  Jim Meyering  <jim@meyering.net>
68853
68854         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68855         change.
68856         Thanks to Bruno Haible for catching it.
68857
68858 2005-02-22  Simon Josefsson  <jas@extundo.com>
68859
68860         * modules/iconvme: New file.
68861
68862         * MODULES.html.sh: Add iconvme.
68863
68864 2005-02-22  Simon Josefsson  <jas@extundo.com>
68865
68866         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68867
68868 2005-02-22  Simon Josefsson  <jas@extundo.com>
68869
68870         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68871
68872 2005-02-22  Jim Meyering  <jim@meyering.net>
68873
68874         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68875         s/ifndef/ifdef/.
68876
68877 2005-02-20  Neil Conway  <neilc@samurai.com>
68878
68879         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68880         returned by OSX/Darwin if the specified buffer is not large
68881         enough for the hostname.
68882
68883 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68884
68885         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68886         pass it to _help, otherwise the latter coredumps trying to
68887         dereference state.root_argp.
68888
68889 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68890
68891         * modules/chdir-long (Depends-on): Add memrchr.
68892         * modules/memrchr (Files): Add lib/memrchr.h.
68893         (Include): "memrchr.h".
68894
68895 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68896
68897         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68898
68899 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68900
68901         * lib/memrchr.h: New file.
68902         * lib/chdir-long.c: Include it.
68903         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68904         Don't bother including stddef.h.
68905
68906 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68909         inclusion.
68910         Include <sys/types.h>, for dev_t.
68911         (ME_DUMMY, ME_REMOTE): Move from here....
68912         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68913         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68914         Dmitry V. Levin.
68915         Include mountlist.h first, to test the interface.
68916
68917 2005-01-29  Bruno Haible  <bruno@clisp.org>
68918
68919         * lib/progname.c (program_name): Initialize.
68920         Needed when linking statically on MacOS X.
68921
68922 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68923
68924         Sync from coreutils.
68925         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68926         (Depends-on): Add c-strtod.
68927         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68928
68929 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68930
68931         Sync from coreutils.
68932         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68933
68934         Remove files that are specific to coreutils.
68935         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68936
68937 2005-01-28  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/javacomp: New file.
68940         * MODULES.html.sh (Java): Add javacomp.
68941
68942 2005-01-28  Bruno Haible  <bruno@clisp.org>
68943
68944         * m4/javacomp.m4: New file, from GNU gettext.
68945
68946 2005-01-28  Bruno Haible  <bruno@clisp.org>
68947
68948         * lib/javacomp.sh.in: New file, from GNU gettext.
68949         * lib/javacomp.h: New file, from GNU gettext.
68950         * lib/javacomp.c: New file, from GNU gettext.
68951
68952 2005-01-26  Simon Josefsson  <jas@extundo.com>
68953
68954         * lib/gai_strerror.c: Use GPL in header.
68955
68956 2005-01-26  Bruno Haible  <bruno@clisp.org>
68957
68958         * modules/javaexec: New file.
68959         * MODULES.html.sh (Java): Add javaexec.
68960
68961 2005-01-26  Bruno Haible  <bruno@clisp.org>
68962
68963         * m4/javaexec.m4: New file, from GNU gettext.
68964
68965 2005-01-26  Bruno Haible  <bruno@clisp.org>
68966
68967         * lib/javaexec.sh.in: New file, from GNU gettext.
68968         * lib/javaexec.h: New file, from GNU gettext.
68969         * lib/javaexec.c: New file, from GNU gettext.
68970
68971 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68972
68973         * modules/lchown (Depends-on): Remove lchown.h
68974
68975 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68976
68977         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68978         must be defined if the header file was not found, in order
68979         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68980
68981 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68982
68983         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68984         initializers for struct pentry_state.
68985         (__argp_error): Check return value of __asprintf
68986         (__argp_failure): Translate error message
68987
68988         * lib/argp-parse.c: Removed braces around the expansion of N_()
68989
68990 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68991
68992         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68993         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68994         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68995         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68996         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68997         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68998         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68999         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69000         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69001         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69002         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69003         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69004         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69005         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69006         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69007         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69008         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69009         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69010         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69011         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69012         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69013         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69014         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69015         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69016         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69017         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69018         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69019         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69020         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69021         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69022         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69023         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69024         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69025         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69026         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69027         Use an all-permissive copyright notice, recommended by RMS.
69028
69029 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69030
69031         * modules/chdir-long (Depends-on): Remove mempcpy.
69032
69033 2005-01-21  Jim Meyering  <jim@meyering.net>
69034
69035         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69036         same value as for Solaris 9.
69037
69038         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69039         component length.  This included changing the parameter to be
69040         of type `char *' rather than `char const *'.
69041         * lib/chdir-long.h (chdir_long): Update prototype.
69042
69043         * lib/openat.c (fdopendir, fstatat): New functions.
69044         * lib/openat.h: Include headers required for use of DIR and struct
69045         stat.
69046         [AT_SYMLINK_NOFOLLOW]: Define.
69047         (fdopendir, fstatat): Add prototypes.
69048
69049 2005-01-21  Bruno Haible  <bruno@clisp.org>
69050
69051         * modules/classpath: New file.
69052         * MODULES.html.sh (Java): Add classpath.
69053
69054 2005-01-21  Bruno Haible  <bruno@clisp.org>
69055
69056         * lib/classpath.h: New file, from GNU gettext.
69057         * lib/classpath.c: New file, from GNU gettext.
69058
69059 2005-01-20  Simon Josefsson  <jas@extundo.com>
69060
69061         * modules/version-etc-fsf: New file.
69062
69063 2005-01-20  Simon Josefsson  <jas@extundo.com>
69064
69065         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69066         * lib/version-etc.c: Remove version_etc_copyright.
69067         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69068         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69069
69070 2005-01-20  Simon Josefsson  <jas@extundo.com>
69071
69072         * lib/base64.h (isbase64): Add.
69073
69074         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69075         using a unsigned prototype, don't inline.
69076         (base64_decode): Use it.
69077
69078 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69081         it.
69082
69083 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69084
69085         * lib/save-cwd.c (save_cwd): Remove code to support the case
69086         where fchdir is missing or flaky.
69087
69088 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69089
69090         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69091
69092 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69095         AC_LIBSOURCES now does this.
69096         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69097         with new ullong_max module.
69098
69099 2005-01-19  Bruno Haible  <bruno@clisp.org>
69100
69101         * modules/sh-quote: New file.
69102         * MODULES.html.sh (Executing programs): Add sh-quote.
69103
69104 2005-01-19  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/sh-quote.h: New file, from GNU gettext.
69107         * lib/sh-quote.c: New file, from GNU gettext.
69108
69109 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         Merge from coreutils.
69112         * m4/ullong_max.m4: New file.
69113         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69114         (gl_MACROS): Assume localeconv exists.
69115
69116 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69117
69118         Merge changes from coreutils, as described below in several
69119         changelogs dated today.
69120
69121         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69122         (O_DIRECTORY): Remove; not needed here, since "." must be
69123         a directory.  All uses removed.
69124         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69125         universal on Suns, and we also need to test for IRIX.
69126         Revamp code to use 'if' rather than '#if'.
69127         Avoid unnecessary comparison of cwd->desc to 0.
69128
69129         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69130         for known valid error numbers rather than observed invalid ones.
69131
69132 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         * modules/ullong_max: New file.
69135
69136         * modules/chdir-long, modules/openat: New files.
69137         * modules/save-cwd (Depends-on): Depend on chdir-long.
69138         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69139
69140 2005-01-18  Jim Meyering  <jim@meyering.net>
69141
69142         Merge from coreutils.
69143         * m4/chdir-long.m4, m4/openat.m4: New files.
69144         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69145         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69146         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69147         is sane and DOES follow symlinks.  Besides, testing 20 different
69148         systems found no broken chown implementations.
69149         Prompted by a change in rsync's copy of this macro.
69150         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69151
69152         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69153
69154         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69155         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69156         NULL-means-set-to-current-time semantics.
69157         Remove temporary file immediately, rather than waiting
69158         for configure's at-exit trap code to do it.
69159
69160 2005-01-18  Jim Meyering  <jim@meyering.net>
69161
69162         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69163
69164         * lib/utimens.c (futimens): Account for the fact that futimes
69165         can also fail with errno == ENOSYS or errno == ENOENT.
69166         Patch from Dmitry V. Levin.
69167
69168         Change the name of the robust chdir function from chdir to chdir_long.
69169         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69170         (restore_cwd): Use chdir_long, not chdir.
69171         * lib/chdir-long.c: Renamed from chdir.c.
69172         * lib/chdir-long.h: Renamed from chdir.h.
69173         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69174         Hurd.
69175
69176 2005-01-18  Bruno Haible  <bruno@clisp.org>
69177
69178         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69179         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69180         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69181         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69182         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69183         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69184         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69185         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69186         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69187         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69188         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69189         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69190         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69191         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69192         Use an all-permissive copyright notice, recommended by RMS.
69193
69194 2005-01-18  Bob Proulx  <bob@proulx.com>
69195
69196         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69197         simplify offsetof() macro construct to avoid compile failure with
69198         native HP-UX 11.0 ANSI C compiler.
69199
69200 2005-01-17  Bruno Haible  <bruno@clisp.org>
69201
69202         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69203         redundant because stpncpy.m4 takes care of it.
69204
69205 2005-01-17  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69208
69209 2005-01-17  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69212         used.
69213
69214 2005-01-17  Bruno Haible  <bruno@clisp.org>
69215
69216         * lib/fwriteerror.h (fwriteerror): Change specification to include
69217         fclose.
69218         * lib/fwriteerror.c: Include <stdbool.h>.
69219         (fwriteerror): At the end, close the file stream. Record whether
69220         stdout was already closed.
69221
69222 2005-01-17  Bruno Haible  <bruno@clisp.org>
69223
69224         * lib/execute.c (environ): Declare if needed.
69225         * lib/pipe.c (environ): Likewise.
69226         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69227
69228 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69229
69230         * modules/argp: Depend on vsnprintf
69231
69232 2005-01-10  Jim Meyering  <jim@meyering.net>
69233
69234         * modules/closeout (Depends-on): Add atexit.
69235
69236 2005-01-06  Bruno Haible  <bruno@clisp.org>
69237
69238         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69239
69240 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69241
69242         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69243         definitions to be after all include files, to avoid collisions.
69244         Problem reported by Bob Proulx.
69245
69246 2005-01-04  Jim Meyering  <jim@meyering.net>
69247
69248         Changes imported from coreutils.
69249         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69250         as the mkstemp template, use a temporary directory and an
69251         8.3-friendly template to avoid trouble on systems like DJGPP.
69252         Reported by Juan M. Guerrero via Stepan Kasal.
69253         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69254         close. Remove the temporary directory right away, rather than waiting
69255         for configure's at-exit trap code to do it.
69256         Suggestion from Stepan Kasal.
69257
69258 2005-01-01  Simon Josefsson  <jas@extundo.com>
69259
69260         * gnulib-tool: Print #include directives when --import'ing.
69261
69262 2004-12-28  Simon Josefsson  <jas@extundo.com>
69263
69264         * tests/test-base64.c: Include required header files.  Remove
69265         unused variables.
69266
69267 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69268
69269         * modules/error (Depends-on): Remove gettext.
69270
69271 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69272
69273         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69274         not needed.  This removes a dependency on the gettext module.
69275         [defined _LIBC]: Do not include <libintl.h>; not needed.
69276
69277 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69280         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69281
69282 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69285         HAVE_DECL_STRTOLD.
69286
69287 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69288
69289         * modules/getdate (Depends-on): Remove alloca-opt.
69290
69291 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69294
69295 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * lib/argp-parse.c: Include <stddef.h>.
69298         (alignof, alignto): New macros.
69299         (parser_init): Don't assume that void * is aligned sufficiently
69300         for struct option.
69301
69302         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69303         need to extend the stack.
69304         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69305         large.
69306
69307 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69308
69309         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69310
69311 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69312
69313         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69314         (2004-10-24) change.  Apparently this was a false alarm.
69315
69316         * modules/getdate: Depend on alloca-opt, not alloca.
69317
69318 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69321         Remove now-obsolete comment about AIX.
69322         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69323         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69324         (YYMAXDEPTH): New macro.
69325
69326 2004-12-18  Simon Josefsson  <jas@extundo.com>
69327
69328         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69329
69330 2004-12-18  Bruno Haible  <bruno@clisp.org>
69331
69332         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69333
69334 2004-12-18  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/fatal-signal.c (fatal_signals): Make non-const.
69337         (init_fatal_signals): New function.
69338         (uninstall_handlers, install_handlers): Ignore signals that were set to
69339         SIG_IGN.
69340         (at_fatal_signal): Call init_fatal_signals.
69341         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69342         SIG_IGN.
69343         Reported by Paul Eggert.
69344
69345 2004-12-18  Bruno Haible  <bruno@clisp.org>
69346
69347         * doc/alloca.texi: New file.
69348         * doc/alloca-opt.texi: New file.
69349
69350 2004-12-17  Jim Meyering  <jim@meyering.net>
69351
69352         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69353         Otherwise, install-sh could exit with improper exit status when
69354         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69355
69356 2004-12-16  Simon Josefsson  <jas@extundo.com>
69357
69358         * tests/test-base64.c: Add license.
69359
69360 2004-12-15  Stepan Kasal  <address@hidden>
69361
69362         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69363
69364 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69365
69366         * modules/getcwd (Files): Add m4/d-ino.m4.
69367         Suggested by Mark D. Baushke.
69368
69369 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * lib/getdate.y (textint): New member "negative".
69372         (time_zone_hhmm): New function.
69373         Expect 14 shift-reduce conflicts, not 13.
69374         (o_colon_minutes): New rule.
69375         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69376         (yylex): Set the "negative" member of signed numbers.
69377
69378 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         * doc/getdate.texi (Time of day items, Time zone items):
69381         Describe new formats +00:00, UTC+00:00.
69382
69383 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69386         spurious "-l"s.  Problem reported by Stepan Kasal.
69387
69388 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69391         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69392
69393 2004-12-04  Simon Josefsson  <jas@extundo.com>
69394
69395         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69396         Vandoorselaere <yoann@prelude-ids.org>.
69397
69398 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69399
69400         Changes imported from coreutils.
69401         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69402         exist.
69403         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69404
69405 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         Changes imported from coreutils.
69408         * lib/hard-locale.c: Assume <locale.h> exists.
69409         Include "strdup.h".
69410         (GLIBC_VERSION): New macro.
69411         (hard_locale): Assume setlocale exists.
69412         Rewrite to avoid #ifdef.
69413         Use strdup rather than malloc + strcpy.
69414         * lib/human.c: Assume <locale.h> exists.
69415         (human_readable): Assume localeconv exists.
69416
69417 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69418
69419         * modules/hard-locale (Depends-on): Add strdup.
69420
69421 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69422
69423         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69424         convert T2, not T.  (Imported from libc.)
69425
69426 2004-11-30  Simon Josefsson  <jas@extundo.com>
69427
69428         * modules/restrict (License): Change to LGPL.
69429
69430 2004-11-30  Simon Josefsson  <jas@extundo.com>
69431
69432         * m4/restrict.m4: Add copyright and copying conditions.
69433
69434 2004-11-30  Simon Josefsson  <jas@extundo.com>
69435
69436         * m4/base64.m4: New file.
69437
69438 2004-11-30  Simon Josefsson  <jas@extundo.com>
69439
69440         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69441         base64.
69442
69443         * tests/test-base64.c: New file.
69444
69445         * modules/base64: New file.
69446
69447 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69450         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69451
69452         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69453
69454 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69457         (__getcwd.c): Don't restore errno; glibc doesn't.
69458         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69459         first, falling back to our code only if its results look suspicious.
69460         Ensure that the resulting buffer is only as large as necessary.
69461
69462         * lib/readutmp.c: Include readutmp.h first.
69463         Include <errno.h>, since readutmp.h no longer does that.
69464         * lib/readutmp.h: Don't include <errno.h>,
69465         <sys/param.h>, <time.h>; not needed to establish interface.
69466         (errno): Remove decl.
69467         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69468         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69469         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69470
69471 2004-11-28  Simon Josefsson  <jas@extundo.com>
69472
69473         * lib/base64.h, base64.c: New file.
69474
69475 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69476
69477         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69478
69479 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69482         (Depends-on): Remove pathmax, same.  Add mempcpy.
69483         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69484         (Makefile.am): Append getcwd.h to lib_SOURCES.
69485         (Include): Add getcwd.h.
69486         (Maintainer): Change from Jim Meyering to "all, glibc",
69487         since getdate now uses intended-for-glibc code.
69488         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69489         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69490
69491 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69492
69493         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69494         HP's ANSI C compiler.
69495         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69496         Declaring int functions causes warnings on some modern systems and
69497         shouldn't be needed to compile on ancient ones.
69498         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69499         defined.
69500
69501         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69502         with the following changes.
69503         (__set_errno): Parenthesize properly.
69504         Include <stdbool.h>.
69505         (MIN, MAX, MATCHING_INO): New macros.
69506         (__getcwd): Define with prototype, not K&R form.
69507         Use heuristics to allocate default buffer on stack if possible.
69508         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69509         behavior, and to avoid the PATH_MAX limit when computing
69510         ../../../../...
69511         Use MATCHING_INO to compare inode number to file.
69512         Check for arithmetic overflow in size calculations.
69513         Fix bug in reallocation of dot array that caused getcwd to fail
69514         on directories nested deeper than 75.
69515         Be more careful about saving errno on error.
69516         Do not use realloc; use only free+malloc, as this is a bit
69517         more flexible and avoids a needless copy operation.
69518         Do not inspect st_dev and st_ino for symbolic links; POSIX
69519         doesn't specify the latter.
69520         Check for closedir errors.
69521         Avoid needless casts.
69522         Use "#ifdef weak_alias" around weak_alias, to be like other
69523         glibc code.
69524         The following changes to getcwd.c have effect only when used in
69525         gnulib; they have no effect inside glibc proper.
69526         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69527         as alloca isn't used.
69528         (alloca, __alloca): Likewise.
69529         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69530         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69531         unconditionally, as gnulib assumes C89 or better.
69532         Do not include <sys/param.h>.
69533         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69534         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69535         better.
69536         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69537         Include <dirent.h> in a way that is compatible with modern Autoconf.
69538         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69539         New macros, if not already defined.
69540         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69541         Use "_LIBC", not "defined _LIBC", for consistency.
69542         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69543         a mempcpy module.
69544         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69545         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69546         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69547         credit only to Jim Meyering and adjust the copyright dates.
69548         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69549         <stdlib.h>, <unistd.h>, "pathmax.h".
69550         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69551         (INITIAL_BUFFER_SIZE): Remove.
69552         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69553
69554 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69557         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69558         Use the _ONCE methods, for efficiency.
69559         Check for fcntl.h.  In test program, include <errno.h>
69560         and <fcntl.h> if available.  Remove old K&R cruft from
69561         test program.  Check for common errors in GNU/Linux,
69562         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69563         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69564         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69565         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69566         name accordingly.
69567         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69568         accommodate new getcwd.c.
69569         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69570         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69571         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69572         that's all we need now.
69573
69574 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69575
69576         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69577         argp-parse.c depends on getopt internals, that means we should
69578         always use our getopt, to be on the safe side.
69579         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69580         order not to spoil the result of an eventual previous invocation
69581         of gl_GETOPT_SUBSTITUTE.
69582
69583 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69584
69585         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69586         redefinition warnings. To avoid them, include the defines
69587         in `#if !defined __need_getopt ... #endif'. The only place
69588         where __getopt_argv_const is used is in definitions
69589         of getopt_long and getopt_long_only below, which are as well
69590         protected by `#ifndef __need_getopt'.
69591         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69592         __need_getopt after including <stdio.h> and <unistd.h> These
69593         headers might have defined it.
69594
69595 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69598
69599 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69600
69601         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69602         (futimens): New function, which uses futimes if available.
69603         (futimens, utimens): Support timespec==NULL, with same semantics
69604         as utime and utimens.
69605         * lib/utimens.h (futimens): New decl.
69606
69607 2004-11-23  Jim Meyering  <jim@meyering.net>
69608
69609         * lib/getopt_.h: Remove trailing blanks.
69610
69611 2004-11-23  Jim Meyering  <jim@meyering.net>
69612
69613         * lib/__fpending.c: Add comment.
69614
69615 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * modules/canonicalize (Depends-on): Add xreadlink.
69618         Problem reported by James Youngman.
69619
69620 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69621
69622         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69623         New macros.
69624         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69625         optopt): Use them instead of invoking ## directly; otherwise, the
69626         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69627
69628 2004-11-19  Bruno Haible  <bruno@clisp.org>
69629
69630         * lib/strtok_r.c: Move comments from here...
69631         * lib/strtok_r.h: ... to here.
69632
69633 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69634
69635         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69636         implementations that mishandle size_t overflow.
69637
69638 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69641         might fail.  Problem reported by Yoann Vandoorselaere.
69642         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69643         implementations that mishandle size_t overflow.
69644
69645 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69646
69647         * modules/canon-host (Depends-on): Add strdup.
69648
69649 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69652
69653 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69654
69655         * lib/canon-host.c: Include "strdup.h".
69656         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69657         Use strdup instead of malloc/strcpy to duplicate strings.
69658
69659         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69660         (human_space_before_unit): New constant.
69661         * lib/human.c (human_readable): Support it.
69662
69663         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69664         (xgetcwd): Set errno correctly when failing.
69665         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69666         the failure is actually due to a PATH_MAX problem.
69667
69668         Further getopt changes to make it more likely that glibc will
69669         buy the changes back.
69670         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69671         (getopt): Use it, so to preserve glibc semantic
69672         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69673         when compiling for libc.
69674         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69675         (getopt_long, getopt_long_only): Use it.
69676
69677         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69678         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69679         (getopt): Argv is now char * const *, as per standard.
69680         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69681         not char *__getopt_argv_const *.
69682         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69683         _getopt_long_only_r): Likewise.
69684         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69685         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69686         _getopt_long_r, _getopt_long_only_r): Likewise.
69687         * lib/getopt_.h (__getopt_argv_const): Remove.
69688         (getopt): Argv is now char * const *, as per standard.
69689
69690         * lib/getdate.y (tORDINAL): New token.
69691         (day, relunit): Allow it for relative times.
69692         (relative_time_table): Use tORDINAL for ordinals.
69693
69694 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69695
69696         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69697         Document that "second" isn't allowed as an ordinal number.
69698
69699 2004-11-16  Jim Meyering  <jim@meyering.net>
69700
69701         * modules/closeout (Depends-on): Add fpending.
69702
69703 2004-11-15  Jim Meyering  <jim@meyering.net>
69704
69705         * lib/closeout.c: Include "__fpending.h" once again.
69706         Include <stdbool.h>.
69707         (close_stdout): Don't fail just because stdout was closed initially,
69708         since some programs don't write to stdout in the normal course of
69709         operation (other than --version and --help), and we don't want this
69710         function to make e.g. `touch file >&-' fail.
69711         But do fail if it was closed and someone has tried to write to it.
69712         E.g., `printf foo >&-' must fail.
69713
69714 2004-11-13  Jim Meyering  <jim@meyering.net>
69715
69716         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69717
69718 2004-11-12  Simon Josefsson  <jas@extundo.com>
69719
69720         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69721         small doc fix is still pending.
69722
69723 2004-11-11  Simon Josefsson  <jas@extundo.com>
69724
69725         * modules/strtok_r: New file.
69726
69727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69728         strtok_r.
69729
69730 2004-11-11  Simon Josefsson  <jas@extundo.com>
69731
69732         * m4/strtok_r.m4: New file.
69733
69734         * m4/getopt.m4: Replace opterr.
69735
69736 2004-11-11  Simon Josefsson  <jas@extundo.com>
69737
69738         * lib/strtok_r.h, strtok_r.c: New file.
69739
69740 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69743         of replacing opterr, getopt, etc.  This should handle the
69744         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69745
69746 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69747
69748         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69749         we can stop lying to compilers about the constness of argv when we
69750         are compiled outside glibc.
69751         (getopt, getopt_long, getopt_long_only): Use it.
69752         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69753         _getopt_internal, getopt): Likewise.
69754         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69755         _getopt_long_only_r): Likewise.
69756         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69757         _getopt_long_r, _getopt_long_only_r): Likewise.
69758
69759         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69760         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69761         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69762         the other external symbols.
69763         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69764         declaration, since the above renaming now works around collisions.
69765
69766 2004-11-11  Jim Meyering  <jim@meyering.net>
69767
69768         * lib/linebreak.c: Remove trailing blanks.
69769         * lib/alloca_.h: Likewise.
69770         * lib/acosl.c: Likewise.
69771         * lib/euidaccess.c: Likewise.
69772         * lib/allocsa.h: Likewise.
69773
69774 2004-11-10  Simon Josefsson  <jas@extundo.com>
69775
69776         * m4/getaddrinfo.m4: New file.
69777
69778 2004-11-10  Simon Josefsson  <jas@extundo.com>
69779
69780         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69781
69782 2004-11-10  Simon Josefsson  <jas@extundo.com>
69783
69784         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69785         getaddrinfo.
69786
69787         * modules/getaddrinfo: New file.
69788
69789 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69790
69791         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69792
69793 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * lib/mktime.c (SHR): New macro, which is a portable
69796         substitute for >> that should work even on Crays.
69797         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69798         Problem reported by Mark D. Baushke in
69799         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69800         * lib/getdate.y (SHR): Likewise.
69801         (tm_diff): Use it.
69802         * lib/strftime.c (SHR): Likewise.
69803         (tm_diff): Use it.
69804         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69805         quote_these_too, so that right shifts are well defined.  All uses
69806         changed.
69807
69808 2004-11-10  Jim Meyering  <jim@meyering.net>
69809
69810         Ensure that no close failure goes unreported.
69811         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69812         return early when it seems there's nothing to flush.
69813         Don't include __fpending.h.
69814
69815 2004-11-10  Jim Meyering  <jim@meyering.net>
69816
69817         * modules/closeout (Depends-on): Remove fpending.
69818
69819 2004-11-10  Jim Meyering  <jim@meyering.net>
69820
69821         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69822
69823 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69824
69825         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69826         gl_FUNC_STRFTIME.
69827         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69828         and AC_REQUIRE when possible, to avoid duplicate checks.
69829         Check for <wchar.h>.
69830
69831 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69832
69833         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69834
69835 2004-11-09  Bruno Haible  <bruno@clisp.org>
69836
69837         * m4/sockpfaf.m4: New file.
69838
69839 2004-11-05  Bruno Haible  <bruno@clisp.org>
69840
69841         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69842         Reported by Mark D. Baushke <mdb@cvshome.org>.
69843
69844 2004-11-04  Bruno Haible  <bruno@clisp.org>
69845
69846         2004-09-11  Bruno Haible  <bruno@clisp.org>
69847                 * allocsa.valgrind: New file.
69848         2004-02-06  Bruno Haible  <bruno@clisp.org>
69849                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69850                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69851                 Reported by Christopher Seip <chris.seip@hp.com>.
69852
69853 2004-11-04  Bruno Haible  <bruno@clisp.org>
69854
69855         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69856         (Makefile.am): Distribute it.
69857
69858 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69861         with errno == ERANGE if the buffer is too small.
69862         Problem reported by Mark D. Baushke.
69863
69864 2004-11-03  Albert Chin  <china@thewrittenword.com>
69865             Paul Eggert  <eggert@cs.ucla.edu>
69866
69867         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69868         equivalent, substitute $ac_type for equivalent type rather than
69869         blindly using uint32_t *always* which won't work if uint32_t is not
69870         available.  Define _UINT32_T to work around typedef of uint32_t if
69871         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69872         2.5.1.
69873
69874 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         * m4/jm-macros.m4: Sync from coreutils.
69877         (gl_MACROS): Check for mbrlen, for pathchk.
69878         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69879
69880 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         * lib/xreadlink.c (MAXSIZE): New macro.
69883         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69884         size does not exceed MAXSIZE.  Avoid cast.
69885         As suggested by Mark D. Baushke in
69886         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69887         if readlink fails with buffer size just under MAXSIZE, try again
69888         with MAXSIZE.
69889
69890 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69891
69892         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69893
69894 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69895         and  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69898         (get_date): Overparenthesize to avoid GCC warning.
69899
69900 2004-11-02  Bruno Haible  <bruno@clisp.org>
69901
69902         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69903         returns void.
69904
69905 2004-11-02  Bruno Haible  <bruno@clisp.org>
69906
69907         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69908         function returns void.
69909
69910 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69911
69912         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69913         fflush_unlocked, flockfile, funlockfile, funlockfile,
69914         fputs_unlocked, putc_unlocked.
69915
69916 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69919         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69920         already declared.
69921
69922 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69923
69924         * modules/getdate (Files): Add doc/getdate.texi.
69925         (Depends-on): Add setenv, xalloc.
69926
69927 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69928
69929         * lib/getdate.y: Add support for TZ="foo" within a date string.
69930         Fix some bugs near time_t boundaries.  Reject dates with
69931         out-of-range components, e.g., "Sept 31".
69932         Include <stdlib.h>, "setenv.h", "xalloc.h".
69933         (ISDIGIT_LOCALE): Remove; unused.
69934         Note that the TZ and time functions used here are not reentrant.
69935         (mktime_ok, get_tz): New functions.
69936         (TZBUFSIZE): New constant.
69937         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69938         This requires that we sometimes generate our own TZ="XXX..." setting.
69939
69940 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69941
69942         * doc/getdate.texi: New file, from coreutils with modifications for
69943         the new TZ parsing.
69944
69945 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69946
69947         * lib/mktime.c (not_equal_tm): Remove redundant check.
69948
69949 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69950
69951         * modules/regex (lib_SOURCES): Add regex.c.
69952         Reported by James Youngman in
69953         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69954
69955 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69956
69957         * lib/getdate.y: Use Bison 1.875 features, and some minor
69958         code cleanups.  This change does not affect semantics.
69959         Don't include <stdlib.h>; no longer needed.
69960         Don't include unlocked-io.h; only the "#if TEST" code uses
69961         stdio, and performance isn't crucial there.
69962         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69963         Bison 1.875 features as described below.
69964         All uses of "PC." replaced by "pc->".
69965         (YYSTYPE): Add a forward declaration.
69966         (yylex, yyerror): Use full prototypes in forward decls.
69967         Use "%pure-parser" rather than obsolescent "%pure_parser".
69968         Use %parse-param and %lex-param instead of obsolescent
69969         YYPARSE_PARAM and YYLEX_PARAM.
69970         (meridian_table, month_and_day_table, time_units_table,
69971         relative_time_table, time_zone_table, military_table,
69972         lookup_zone, lookup_word, get_date):
69973         Use NULL instead of 0 where appropriate.
69974         (to_hour): Avoid abort (), to avoid a dependency on
69975         stdlib.h.
69976         (yyerror, yylex): Now accepts parser_control * arg.
69977         (main) [TEST]: Use '\0' rather than 0 for char.
69978
69979 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69982
69983 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69986         It's now the caller's responsibility to handle the case where
69987         !HAVE_GETPAGESIZE && !defined getpagesize.
69988
69989         * lib/mktime.c (leapyear): Arg is long int, not int.
69990
69991 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69994
69995 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69998         missing.  Problem reported by James Youngman.
69999
70000 2004-10-16  Simon Josefsson  <jas@extundo.com>
70001
70002         * gnulib-tool: Fix comments.  Fix parse problem.
70003         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70004
70005 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70006
70007         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70008         implementation of getopt_long.  Problem reported by Alexander Taler in:
70009         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70010
70011 2004-10-15  Bruno Haible  <bruno@clisp.org>
70012
70013         * gnulib-tool: Untabify. Initialize supplied_libname.
70014         (func_usage): More homogenous output.
70015         (func_modules_transitive_closure, func_modules_to_filelist,
70016         func_emit_lib_Makefile_am): New functions.
70017         (func_import): New function, extracted from big case statement. Use
70018         func_get_license, func_modules_transitive_closure,
70019         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70020         opt_lgpl. Don't use test -a, as it's not portable.
70021         (func_create_testdir): Use func_modules_transitive_closure,
70022         func_modules_to_filelist, func_emit_lib_Makefile_am.
70023
70024 2004-10-15  Bruno Haible  <bruno@clisp.org>
70025
70026         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70027
70028 2004-10-15  Bruno Haible  <bruno@clisp.org>
70029
70030         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70031         the portions belonging to each module.
70032         Suggested by Derek Robert Price <derek@ximbiot.com>.
70033
70034 2004-10-12  Simon Josefsson  <jas@extundo.com>
70035
70036         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70037         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70038         to real functions.
70039
70040 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70041
70042         * modules/vsnprintf: New file.
70043
70044 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70045
70046         * m4/vsnprintf.m4: New file.
70047
70048 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70049
70050         * lib/vsnprintf.h: New file.
70051         * lib/vsnprintf.c: New file.
70052
70053 2004-10-11  Bruno Haible  <bruno@clisp.org>
70054
70055         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70056         vsnprintf.
70057
70058 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70059
70060         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70061
70062 2004-10-07  Bruno Haible  <bruno@clisp.org>
70063
70064         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70065         fits into the provided buffer.
70066
70067 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         * lib/diacrit.c, diacrit.h: Add GPL notice.
70070
70071         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70072         notice.
70073         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70074         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70075         This avoids a potential constant-folding bug.
70076
70077 2004-10-05  Bruno Haible  <bruno@clisp.org>
70078
70079         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70080         for the declaration of strsep.
70081
70082 2004-10-05  Bruno Haible  <bruno@clisp.org>
70083
70084         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70085
70086 2004-10-04  Simon Josefsson  <jas@extundo.com>
70087
70088         * modules/memmem: New file.
70089         * tests/test-memmem.c: New file.
70090         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70091
70092 2004-10-04  Simon Josefsson  <jas@extundo.com>
70093
70094         * m4/memmem.m4: New file.
70095
70096 2004-10-04  Simon Josefsson  <jas@extundo.com>
70097
70098         * lib/memmem.h: New file.
70099         * lib/memmem.c: New file, taken from glibc.
70100
70101 2004-10-04  Simon Josefsson  <jas@extundo.com>
70102
70103         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70104         '#ifdef USE_UNLOCKED_IO'.
70105
70106 2004-10-04  Simon Josefsson  <jas@extundo.com>
70107
70108         * config/srclist.txt: Add memmem from glibc.
70109
70110 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70113
70114         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70115         modules/exclude, modules/getdate, modules/getline,
70116         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70117         modules/getusershell, modules/linebuffer, modules/md5,
70118         modules/mountlist, modules/posixtm, modules/readtokens,
70119         modules/readutmp, modules/regex, modules/sha1,
70120         modules/version-etc, modules/yesno:
70121         Remove dependency on unlocked-io.
70122
70123 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70126
70127         * m4/unlocked-io.m4: Add copyright notice.
70128         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70129
70130 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70133         * lib/xmalloc.c (xmemdup): Likewise.
70134         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70135         XFREE): Remove these long-obsolescent macros.
70136         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70137         * lib/xstrdup.c: Remove.
70138
70139         * lib/regex.c (re_comp): Cast gettext return value to char *,
70140         Problem reported by Martin Neitzel via Mark D. Baushke.
70141
70142 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70143
70144         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70145         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70146         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70147         regex.c, sha1.c, version-etc.c, yesno.c:
70148         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70149         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70150         the includer's responsibility.
70151
70152         Sync from coreutils.
70153
70154         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70155         points to the start of a string, as the C Standard says the
70156         resulting behavior is undefined.
70157
70158         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70159         simple -> simple_backups, numbered_existing ->
70160         numbered_existing_backups, numbered -> numbered_backups
70161         to avoid shadowing problems.  All uses changed.
70162         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70163         * lib/backupfile.c (check_extension, numbered_backup):
70164         Rename locals to avoid shadowing 'basename'.
70165         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70166         once.
70167
70168         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70169         * lib/.cvsignore: Add getopt.h.
70170
70171 2004-10-04  Bruno Haible  <bruno@clisp.org>
70172
70173         * modules/README: New file.
70174         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70175         not a module.
70176
70177 2004-10-02  Jim Meyering  <jim@meyering.net>
70178
70179         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70180
70181 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70182
70183         * modules/strsep: New file.
70184
70185 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70186
70187         * m4/strsep.m4: New file.
70188
70189 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70190
70191         * lib/strsep.h: New file.
70192         * lib/strsep.c: New file.
70193
70194 2004-10-01  Simon Josefsson  <jas@extundo.com>
70195
70196         * lib/snprintf.c (snprintf): Handle size==0.
70197
70198 2004-10-01  Simon Josefsson  <jas@extundo.com>
70199             Bruno Haible  <bruno@clisp.org>
70200
70201         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70202         (snprintf): Declare 'args'.
70203
70204 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         * lib/snprintf.c: Remove comments as to why each header is needed.
70207
70208 2004-10-01  Bruno Haible  <bruno@clisp.org>
70209
70210         * MODULES.html.sh: Add strsep.
70211
70212 2004-09-30  Simon Josefsson  <jas@extundo.com>
70213
70214         * modules/snprintf: New file.
70215
70216 2004-09-30  Simon Josefsson  <jas@extundo.com>
70217
70218         * m4/snprintf.m4: New file.
70219
70220 2004-09-30  Simon Josefsson  <jas@extundo.com>
70221
70222         * lib/snprintf.h, lib/snprintf.c: New files.
70223
70224 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70225
70226         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70227         (hol_entry_help): Never translate an empty string.
70228         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70229         * lib/argp.h (OPTION_NO_TRANS): New option.
70230
70231 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70232
70233         * modules/argp (Maintainer): Replace Simon Josefsson
70234         by Sergey Poznyakoff.
70235
70236 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70237
70238         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70239         changes merged back into glibc.
70240
70241 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70244
70245 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70246
70247         * lib/xvasprintf.c: Include xalloc.h.
70248         (xvasprintf): Use xalloc_die, not xmalloc_die.
70249
70250 2004-09-29  Bruno Haible  <bruno@clisp.org>
70251
70252         * modules/alloca-opt: New file, derived from modules/alloca.
70253         * modules/allocsa: Depend on alloca-opt instead of alloca.
70254         * modules/setenv: Likewise.
70255         * modules/vasnprintf: Likewise.
70256         * MODULES.html.sh: Add alloca-opt.
70257
70258 2004-09-28  Simon Josefsson  <jas@extundo.com>
70259
70260         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70261         LGPL, and to replace license template from GPL to LGPL.
70262
70263 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * modules/dummy: Change license to LGPL.
70266
70267 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70270
70271 2004-09-24  Simon Josefsson  <jas@extundo.com>
70272
70273         * modules/minmax (License): Change from GPL to LGPL.
70274
70275 2004-09-23  Simon Josefsson  <jas@extundo.com>
70276
70277         * gnulib-tool (--import): Typo.
70278
70279 2004-09-23  Simon Josefsson  <jas@extundo.com>
70280
70281         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70282
70283 2004-09-22  Bruno Haible  <bruno@clisp.org>
70284
70285         * modules/*: Add 'License' field.
70286         * gnulib-tool: Accept --extract-license option.
70287         (func_get_license): New function.
70288
70289 2004-09-21  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70292         Reported by Simon Josefsson.
70293
70294 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70297         gl_AC_TYPE_LONG_LONG.
70298
70299 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70300
70301         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70302
70303 2004-09-18  Simon Josefsson  <jas@extundo.com>
70304         and  Paul Eggert  <eggert@cs.ucla.edu>
70305
70306         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70307         calls with autoreconf.  Define GL_LIB.
70308
70309 2004-09-14  Karl Berry  <karl@gnu.org>
70310
70311         * config/srclist.txt: unsync setenv.c, sigh.
70312
70313 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70314
70315         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70316         Problem reported by Bruno Haible in:
70317         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70318
70319 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         * config/srclist.txt: Comment out argp-pvh.c.
70322
70323 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70324
70325         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70326         in case some system header has #define'd it.  Problem reported by
70327         Soeren D. Schulze in
70328         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70329
70330 2004-09-09  Karl Berry  <karl@gnu.org>
70331
70332         * regex.[ch]: delete from the root.  These were supposed to be
70333                 synced with emacs cvs, but this has not happened for about
70334                 a year, and anyway nothing else uses emacs regex.[ch].
70335                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70336                 lib/regex[.ch] is untouched.
70337
70338 2004-09-09  Bruno Haible  <bruno@clisp.org>
70339
70340         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70341
70342 2004-09-09  Bruno Haible  <bruno@clisp.org>
70343
70344         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70345         modifications.
70346         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70347
70348 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70349
70350         * modules/xvasprintf: New file.
70351         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70352
70353 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70354
70355         * lib/xvasprintf.h: New file.
70356         * lib/xvasprintf.c: New file.
70357         * lib/xasprintf.c: New file.
70358
70359 2004-09-08  Bruno Haible  <bruno@clisp.org>
70360
70361         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70362
70363 2004-09-08  Bruno Haible  <bruno@clisp.org>
70364
70365         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70366         length is > INT_MAX.
70367         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70368         more.
70369
70370 2004-09-08  Bruno Haible  <bruno@clisp.org>
70371
70372         * lib/stdint_.h: New file, taken from GNU clisp.
70373
70374 2004-09-08  Bruno Haible  <bruno@clisp.org>
70375             Oskar Liljeblad  <oskar@osk.mine.nu>
70376
70377         * modules/stdint: New file.
70378         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70379
70380 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         Import from coreutils.
70383         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70384         strings on unbounded length.  alloca's performance benefits aren't
70385         that important here.
70386         (V_STRDUP): Remove.
70387         (parse_with_separator): New function, with most of the internals
70388         of the old parse_user_spec.  Allow user to omit both user and group,
70389         for compatibility with FreeBSD.
70390         Clone only the user name, not the entire spec.
70391         Do not set *uid, *gid unless entirely successful.
70392         Avoid memory leak in some failing cases.
70393         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70394         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70395         (parse_user_spec): Rewrite to use parse_with_separator.
70396
70397 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         * modules/userspec: Don't depend on alloca.
70400
70401 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70404
70405 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70406
70407         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70408         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70409         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70410
70411 2004-08-16  Simon Josefsson  <jas@extundo.com>
70412
70413         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70414         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70415         Add --dry-run for --import.
70416         Let user provided command line parameters override configure.ac
70417         settings.
70418
70419 2004-08-12  Simon Josefsson  <jas@extundo.com>
70420
70421         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70422         as discussed with Paul Eggert in threads rooted at
70423         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70424         and
70425         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70426         Before, the test was empty, and relied on ELIDE_CODE in source
70427         code.)
70428         (gl_PREREQ_GETOPT): New macro.
70429         (gl_GETOPT): Use them.
70430
70431 2004-08-12  Simon Josefsson  <jas@extundo.com>
70432
70433         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70434         * lib/getopt_.h: Renamed from getopt.h.
70435
70436 2004-08-12  Simon Josefsson  <jas@extundo.com>
70437
70438         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70439         Change default library name from libfoo to libgnu.
70440         Now, if you have a configure.ac that says:
70441                 gl_SOURCE_BASE(gl)
70442                 gl_M4_BASE(gl/m4)
70443                 gl_MODULES(error getopt etcetera)
70444                 gl_INIT
70445         you can import all you need by running:
70446                 ../gnulib/gnulib-tool --import
70447
70448         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70449         (Makefile.am): Rewrite, use logic from argz.
70450         (Include): Use <getopt.h> instead of "getopt.h".
70451
70452 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * modules/argp (Files): Add m4/unlocked-io.m4.
70455         (Depends-on): Add extensions.
70456
70457 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70458
70459         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70460         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70461         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70462         Check for program_invocation_name, program_invocation_short_name,
70463         flockfile, funlockfile, features.h, _getopt_long_only_r.
70464
70465 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70468         its complicated substitute.
70469         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70470         and program_invocation_name.
70471         (__argp_basename) [!_LIBC]: Remove; the only use was
70472         replaced by its body.
70473         (__argp_short_program_name): Change condition from
70474         !defined __argp_short_program_name to
70475         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70476         to match argp-namefrob.h.
70477         (__argp_failure): Don't assume strerror_r returns char *.
70478         * lib/argp-parse.c (N_): Define unconditionally.
70479         (argp_default_options): Fill out initializers with 0 to avoid
70480         gcc warnings.
70481
70482 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70485         getopt1.c.
70486
70487 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70488
70489         Merge from coreutils.
70490
70491         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70492
70493         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70494         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70495
70496 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         Merge from coreutils.
70499
70500         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70501         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70502         for Reliant Unix 5.43.
70503
70504         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70505         (union fooround): Use uintmax_t, not long int.
70506         The rest is a merge from libc:
70507         [defined _LIBC]: Include <shlib-compat.h>.
70508         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70509
70510         * lib/settime.c (settime): Recode to avoid warning with
70511         Sun Forte C 6U2.
70512
70513         * lib/strverscmp.c: Convert to UTF-8.
70514
70515 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70518         m4/uintmax_t.m4.
70519
70520 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         * modules/xalloc-die: New file.
70523         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70524
70525         * modules/md5 (Files): Add m4/uint32_t.m4.
70526         * modules/sha1: Renamed from modules/sha.
70527         (Files):
70528         Rename lib/sha.h to lib/sha1.h.
70529         Rename lib/sha.c to lib/sha1.c.
70530         Rename m4/sha.m4 to m4/sha1.m4.
70531         (lib_SOURCES): Likewise.
70532         (configure.ac): Rename gl_SHA to gl_SHA1.
70533         (Include): sha.h -> sha1.h.
70534
70535 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70536
70537         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70538         * m4/sha1.m4: Renamed from sha.m4.
70539         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70540
70541 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70542
70543         * lib/obstack.h (obstack_empty_p):
70544         Don't assume that chunk->contents is suitably aligned.
70545         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70546         Likewise. Problem reported by Benno in
70547         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70548
70549         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70550         readable.  This could be improved further but it'd take some work.
70551
70552 2004-08-08  Simon Josefsson  <jas@extundo.com>
70553
70554         * modules/xgethostname (Depends-on): Remove exit and error (not
70555         used).
70556
70557         * modules/getpass-gnu: Add getpass.h.
70558         (Depends-on): Add stdbool.
70559         * modules/getpass: Add getpass.h.
70560
70561 2004-08-08  Simon Josefsson  <jas@extundo.com>
70562
70563         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70564         Check getpass declaration.
70565
70566 2004-08-08  Simon Josefsson  <jas@extundo.com>
70567
70568         * lib/xgethostname.c: Don't include error.h (not used).
70569
70570         * lib/getpass.h: Add.
70571         * lib/getpass.c: Include getpass.h first.
70572
70573 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70574
70575         * lib/xalloc-die.c: New file.
70576         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70577         All uses removed.
70578         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70579         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70580         xalloc-die.c.
70581         (_, N_, xalloc_die): Move to xalloc-die.c.
70582         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70583         so that we needn't mess with xalloc_msg_memory_exhausted.
70584
70585         * lib/sha1.h: Renamed from sha.h.
70586         (SHA1_H): Renamed from _SHA_H.
70587         (sha1_ctx): Renamed from sha_ctx.
70588         (sha1_init_ctx): Renamed from sha_init_ctx.
70589         (sha1_process_block): Renamed from sha_process_block.
70590         (sha1_process_bytes): Renamed from sha_process_bytes.
70591         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70592         (sha1_read_ctx): Renamed from sha_read_ctx.
70593         (sha1_stream): Renamed from sha_stream.
70594         (sha1_buffer): Renamed from sha_buffer.
70595         * lib/sha1.c: Likewise; renamed from sha.c.
70596         Do not include <sys/types.h>.
70597         Include <stddef.h> rather than <stdlib.h>.
70598
70599 2004-08-08  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70602         FILESYSTEM_PREFIX_LEN.
70603         * lib/progreloc.c: Likewise.
70604         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70605
70606 2004-08-06  Simon Josefsson  <jas@extundo.com>
70607
70608         * modules/progname (Depends-on): Don't depend on stdbool.
70609
70610 2004-08-06  Simon Josefsson  <jas@extundo.com>
70611
70612         * modules/getsubopt: New file.
70613         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70614         getsubopt.
70615
70616 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         More merge from coreutils.
70619
70620         * m4/utimens.m4, m4/utimecmp.m4: New files.
70621         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70622         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70623         prereq.m4, sha.m4: Import changes from coreutils.
70624
70625 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         More merge from coreutils.
70628         * modules/raise, modules/readtokens0, modules/utimens:
70629         * modules/utimecmp, module/xnanosleep: New files.
70630         * modules/strftime: Add lib/strftime.h.
70631         Change include from <time.h> to "strftime.h".
70632         * modules/yesno: Add lib/yesno.h.
70633         * modules/backupfile: Remove lib/addext.c.
70634         * modules/euidaccess: Add stat-macros.h.
70635         * modules/canonicalize, modules/euidaccess,
70636         modules/filemode, modules/lchown, modules/makepath,
70637         modules/rmdir, modules/stat: Likewise.
70638
70639 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         Merge from tar.
70642         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70643         SIZE_MAX is a valid preprocessor constant.
70644         (__argp_basename): Change from "#ifndef _LIBC"
70645         to "#ifndef __argp_short_program_name", so that
70646         we don't compile these functions for tar.
70647
70648         More merges from coreutils.
70649         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70650         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70651         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70652         * lib/addext.c: Remove; no longer needed.
70653         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70654         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70655         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70656         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70657         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70658         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70659         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70660         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70661         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70662         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70663         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70664         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70665         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70666         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70667         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70668         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70669         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70670         Import changes from coreutils.
70671
70672 2004-08-05  Simon Josefsson  <jas@extundo.com>
70673
70674         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70675
70676 2004-08-05  Simon Josefsson  <jas@extundo.com>
70677
70678         * m4/getsubopt.m4: New file.
70679
70680 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70681
70682         Merge from coreutils.
70683
70684         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70685         * m4/getcwd-path-max.m4: New files.
70686
70687         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70688         FILESYSTEM_PREFIX_LEN ->
70689         FILE_SYSTEM_PREFIX_LEN.
70690         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70691         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70692         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70693         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70694
70695         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70696         prerequisite modules now handle the DOS stuff.
70697         Don't check for unistd.h.
70698
70699 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         Merge from coreutils.
70702
70703         * lib/.gdb-history: Remove; this doesn't belong here.
70704
70705         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70706         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70707         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70708         * lib/getcwd.c: New files.
70709
70710         * lib/dirname.h: Include <stdbool.h>.
70711         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70712         for consistency with POSIX terminology.  All uses changed.
70713         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70714         (strip_trailing_slashes): Use bool for booleans.
70715         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70716
70717         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70718         sometimes returns a positive errno value even when it succeeds.
70719         (print_errno_message) [!LIBC]: Fall back on strerror if
70720         __strerror_r fails.
70721
70722         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70723         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70724         (longest_relative_suffix): New function.
70725         (path_concat): Use it.  Assume first argument is not NULL.
70726         Port to DOS.  Omit redundant separators.
70727         Report an error instead of returning NULL.
70728         Use mempcpy instead of memcpy.
70729         (xpath_concat): Remove: not declared or used.
70730
70731         * lib/same.h: Include <stdbool.h>
70732         (same_name): Return bool, not int.
70733         * lib/same.c (same_name): Likewise.
70734         (errno): Don't declare; we assume C89 or better now.
70735
70736         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70737         if not already defined.
70738
70739         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70740         * lib/dup-safer.c (errno): Likewise.
70741
70742 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         Merge from coreutils.
70745         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70746         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70747         * modules/path-concat: Don't depend on strdup.
70748
70749 2004-08-03  Simon Josefsson  <jas@extundo.com>
70750
70751         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70752         * lib/progname.h: Don't include stdbool.h.
70753
70754 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70755
70756         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70757         * MODULES.html.sh (func_all_modules): Remove fatal.
70758
70759 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70762
70763 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70766         working.
70767
70768 2004-08-02  Simon Josefsson  <jas@extundo.com>
70769
70770         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70771         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70772         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70773
70774 2004-08-01  Simon Josefsson  <jas@extundo.com>
70775
70776         * lib/xgetdomainname.c: Include stdlib.h, for free().
70777
70778 2004-07-19  Bruno Haible  <bruno@clisp.org>
70779
70780         * MODULES.html.sh (func_all_modules): Add dummy.
70781
70782 2004-07-16  Simon Josefsson  <jas@extundo.com>
70783
70784         * modules/dummy: New file.
70785
70786 2004-07-16  Simon Josefsson  <jas@extundo.com>
70787
70788         * lib/dummy.c: New file.
70789
70790 2004-07-16  Bruno Haible  <bruno@clisp.org>
70791
70792         * lib/backupfile.h: Add extern "C" for C++.
70793         * lib/closeout.h: Likewise.
70794         * lib/copy-file.h: Likewise.
70795         * lib/findprog.h: Likewise.
70796         * lib/full-write.h: Likewise.
70797         * lib/pathname.h: Likewise.
70798         * lib/progname.h: Likewise.
70799         * lib/stpcpy.h: Likewise.
70800         * lib/stpncpy.h: Likewise.
70801         * lib/strcase.h: Likewise.
70802         * lib/strstr.h: Likewise.
70803         * lib/xalloc.h: Likewise.
70804
70805         * lib/mbswidth.h: Add extern "C" for C++.
70806         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70807
70808 2004-07-13  Robert Millan  <robertmh@gnu.org>
70809
70810         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70811
70812 2004-07-09  Simon Josefsson  <jas@extundo.com>
70813
70814         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70815         failed without this.)
70816
70817 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * modules/chown (Files): Add lib/fchown-stub.c, since
70820         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70821
70822 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70823
70824         * lib/fchown-stub.c: New file.
70825
70826 2004-06-24  Jim Meyering  <jim@meyering.net>
70827
70828         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70829
70830 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         * modules/argz: Omit "#include".
70833
70834         * MODULES.html.sh (func_all_modules): Add calloc, to match
70835         2004-06-01 addition of calloc module.
70836
70837 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * m4/argz.m4: New file, which is autoupdated from libtool.
70840
70841 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70842
70843         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70844         libtool.
70845
70846 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         * config/srclist-update: Don't insist on "USA." before the
70849         close-comment, as libtool omits the period and puts the */ on a
70850         separate line.
70851         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70852         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70853
70854 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70855
70856         * modules/argz: New file.
70857         * MODULES.html.sh (func_all_modules): Add argz.
70858
70859 2004-06-12  Jim Meyering  <jim@meyering.net>
70860         and  Paul Eggert  <eggert@cs.ucla.edu>
70861
70862         * modules/hash (Files): Add lib/xalloc.h.
70863         * modules/pipe (Depends-on): Add wait-process.
70864         * modules/stat (Depends-on): Add xalloc.
70865         * modules/userspec (Files): Add lib/userspec.h.
70866         * modules/xstrto
70867
70868         Upgrade from gettext-0.13.
70869         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70870         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70871         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70872
70873 2004-06-10  Jim Meyering  <jim@meyering.net>
70874
70875         * lib/calloc.c: New file.
70876
70877 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * lib/getdate.y (yylex): Allow space between sign and number.
70880         Problem reported by Dan Jacobson.
70881
70882 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         Merge from coreutils CVS.
70885
70886         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70887         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70888         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70889         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70890         xstrtol.m4: Fix copyright date and/or serial number.
70891
70892         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70893         See if we need an fchown replacement.
70894         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70895         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70896         and use the replacement function if we detect either defect.
70897
70898         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70899         gl_UTIMECMP.
70900
70901 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70902         and  Jim Meyering  <jim@meyering.net>
70903
70904         Merge from coreutils CVS.
70905
70906         * lib/stat-macros.h: New file, with contents from file-type.h
70907         and coreutils' system.h.
70908         * lib/file-type.c: Include "stat-macros.h".
70909         * lib/file-type.h (file_type): Move all macro definitions to new file,
70910         stat-macros.h.
70911
70912         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70913         Wrap old code with this conditional.
70914         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70915         function that does not dereference symlinks.
70916         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70917
70918         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70919         dependency problems.
70920         (xreadlink): Accept new arg SIZE, for efficiency.
70921         All decls and uses changed.
70922         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70923
70924         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70925         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70926
70927         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70928         sysexits.h.
70929
70930 2004-06-01  Jim Meyering  <jim@meyering.net>
70931
70932         * m4/calloc.m4: New file.
70933
70934 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70935
70936         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70937         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70938         Also, fix a typo in a diagnostic.
70939
70940 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70941
70942         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70943         or AC_FUNC_REALLOC.
70944
70945 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70948         macros to be defined.
70949         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70950         the allocator returns NULL because the requested size is zero.
70951
70952 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70953
70954         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70955         var.  Add comment explaining why libc still defines it.  This
70956         merges the following patch from glibc:
70957         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70958
70959 2004-05-20  Andreas Schwab  <schwab@suse.de>
70960
70961         * m4/free.m4: Replace free if it not known to work, not the other
70962         way round.
70963
70964 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70967         present in glibc since revision 1.1 of this file.
70968         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70969         obstack_alignment_mask, obstack_alloc, obstack_base,
70970         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70971         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70972         obstack_grow0, obstack_init, obstack_int_grow,
70973         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70974         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70975         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70976         nonexistent functions.
70977
70978 2004-05-18  Karl Berry  <karl@gnu.org>
70979
70980         * config/srclist.txt: break link for vasnprintf.c.
70981
70982 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         Port obstack to the AS/400, where pointers are 16 bytes wide and
70985         you cannot cast an integer to a valid pointer.  This patch is
70986         currently waiting to be integrated into glibc; see
70987         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70988
70989         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70990         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70991         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70992         (struct obstack): temp member is now a union of a pointer and
70993         an integer, instead of an integer.  All integer uses changed.
70994         This does not affect the physical layout of struct obstack,
70995         except on hosts (like the AS/400) where the size or alignment of
70996         void * is greater than that of ptrdiff_t.
70997         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70998         __STDC__)]: Store temporary in pointer member of union, not
70999         integer member.
71000         * lib/obstack.c: Include <stddef.h>, for offsetof.
71001         (struct fooalign): Remove; it doesn't need a name.
71002         (union fooround): Change double to long double, and add void *.
71003         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71004         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71005         not a macro.  Hence the values are always int; so remove all
71006         casts-to-int in uses.
71007
71008 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71009
71010         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71011         we can get this patch merged into glibc.
71012
71013 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71014             Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * m4/argp: Depend on alloca.
71017
71018 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71019             Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71022         freecoding.
71023
71024 2004-05-17  Bruno Haible  <bruno@clisp.org>
71025
71026         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71027         precision that consists of a '.' followed by an empty digit string.
71028         Patch by Tor Lillqvist <tml@iki.fi>.
71029
71030 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71033         for backward compatibility with older code.  We need our own
71034         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71035         it under some other name, and our alloca.h will define it.
71036
71037 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71038             Derek Price  <derek@ximbiot.com>
71039
71040         * lib/alloca.c: Include <alloca.h>, to get our interface.
71041         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71042         include <alloca.h> first.  Use C89 prototype for alloca; this
71043         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71044         Use #elif for simplicity, since we can assume C89 now.
71045         Don't try to source the system alloca.h since it will not be found
71046         and to prevent recursively including its replacement.
71047         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71048         * lib/regex.c: Likewise.
71049
71050 2004-05-16  Derek Price  <derek@ximbiot.com>
71051             Paul Eggert  <eggert@cs.ucla.edu>
71052
71053         getline cleanup.  This changes the getndelim2 API: both order of
71054         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71055         no delimiter).
71056
71057         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71058         interface does that.
71059         (getline): Always use getdelim, so that we don't have two
71060         copies of this code.
71061         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71062         if available.
71063         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71064         (GETNDELIM2_MAXIMUM): New macro.
71065         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71066         instead of the old practice of delim2==0.  All callers changed.
71067         Return -1 on overflow, instead of returning junk.
71068         Do not set *linesize unless allocation succeeds.
71069         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71070         that we include sys/types.h.
71071         * lib/getnline.h: Likewise.
71072         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71073         (getndelim2): Reorder arguments.
71074         * lib/getnline.c (getnline, getndelim):
71075         Don't discard the NMAX argument.
71076         (getnline): Invoke getndelim, to avoid code duplication.
71077         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71078         of (size_t) -1 by callers of the getnline family.
71079
71080 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71083         Check for gettimeofday.
71084         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71085         Check for settimeofday, stime.
71086
71087 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71088
71089         * lib/nanosleep.c (suspended): Change its type from int to
71090         sig_atomic_t volatile.
71091         (first_call): Make it private to rpl_nanosleep, and have it
71092         be zero initially as that's a bit faster.
71093         (my_usleep): Round up fractional times instead of truncating them,
71094         as this is the usual meaning for 'sleep'.
71095
71096         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71097         doesn't work.
71098         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71099         (ENOSYS): Define if not defined.
71100         (settime): Fall back on stime if it exists and settimeofday fails.
71101         But don't bother with fallbacks if a method fails with errno == EPERM.
71102
71103 2004-05-11  Jim Meyering  <jim@meyering.net>
71104
71105         Prior to this change, the save_cwd caller required read access to the
71106         current directory on most systems (ones with the fchdir function).
71107
71108         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71109         fails, try write-only, and finally, resort to using xgetcwd.
71110
71111 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71112
71113         * lib/obstack.c, obstack.h: Import changes from libc.
71114
71115 2004-04-28  Bruno Haible  <bruno@clisp.org>
71116
71117         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71118         also implicitly appends .exe to executables.
71119         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71120         accepts Windows pathnames.
71121         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71122         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71123         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71124         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71125         Reported by Derek Robert Price <derek@ximbiot.com>.
71126
71127 2004-04-21  Karl Berry  <karl@gnu.org>
71128
71129         * config/srclist.txt (localcharset.c): break sync.
71130
71131 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71132
71133         * m4/host-os.m4: Add a copyright notice.
71134
71135 2004-04-20  Jim Meyering  <jim@meyering.net>
71136
71137         Change UTILS_ to gl_ in AC_DEFINE'd names.
71138         Change utils_- and jm_-prefixed variables, too.
71139         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71140         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71141         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71142
71143         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71144         Don't emit trailing blanks.
71145         Also rename jm_-prefixed variables to have gl_ prefix.
71146
71147         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71148         Also rename jm_-prefixed variables to have gl_ prefix.
71149
71150         * m4/jm-macros.m4: Reflect the renamings.
71151         * m4/prereq.m4: Likewise.
71152
71153 2004-04-20  Jim Meyering  <jim@meyering.net>
71154
71155         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71156         memory.
71157
71158 2004-04-20  Jim Meyering  <jim@meyering.net>
71159             Bruno Haible  <bruno@clisp.org>
71160
71161         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71162         memory when realloc fails.
71163
71164 2004-04-19  Jim Meyering  <jim@meyering.net>
71165
71166         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71167         now that readutmp.c may call `free (0)'.
71168
71169 2004-04-19  Bruno Haible  <bruno@clisp.org>
71170
71171         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71172         * m4/inttypes_h.m4: Likewise.
71173         * m4/stdint_h.m4: Likewise.
71174         * m4/intmax_t.m4: Likewise.
71175         * m4/uintmax_t.m4: Likewise.
71176
71177 2004-04-18  Jim Meyering  <jim@meyering.net>
71178
71179         * m4/prereq.m4: Don't forbid jm_ prefix.
71180
71181         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71182         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71183         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71184         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71185         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71186         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71187         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71188         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71189         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71190         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71191         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71192         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71193         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71194         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71195         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71196         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71197         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71198         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71199         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71200
71201 2004-04-18  Jim Meyering  <jim@meyering.net>
71202
71203         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71204         failure, don't leak memory and do call END_UTMP_ENT.
71205
71206 2004-04-16  Jim Meyering  <jim@meyering.net>
71207
71208         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71209         coreutils' stat program.
71210         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71211
71212 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71213
71214         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71215         C89.
71216         (CHAR_BIT): Remove, since we assume C89.
71217         Include <stdint.h> if available, as per current Autoconf CVS advice.
71218
71219 2004-03-31  Jim Meyering  <jim@meyering.net>
71220
71221         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71222         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71223         * m4/xalloc.m4: Likewise.
71224
71225 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71226
71227         Merge from coreutils.
71228
71229         * m4/inttostr.m4: New file.
71230         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71231         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71232         Require gl_CLOCK_TIME.
71233         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71234
71235 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71236
71237         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71238         not bool, to be more consistent with Unix conventions.
71239         Suggested by Bruno Haible.
71240
71241         Merge from coreutils.
71242
71243         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71244         * lib/umaxtostr.c: New files.
71245
71246         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71247         the usual <time.h> dance.
71248         (get_date): Change signature to support fractional time stamps.
71249         All callers changed.
71250         * lib/getdate.y: Include "getdate.h" first, as we can now
71251         assume C89 and don't need to worry about 'const'.
71252         Similarly, include "unlocked-io.h" near start, not in middle.
71253         Include <limits.h>.
71254         (textint.value): Use long int rather than int.
71255         (textint.digits): Use size_t rather than int.
71256         (BILLION, LOG10_BILLION): New constants.
71257         (parser_control): New member rel_ns.  Members day_ordinal,
71258         time_zone, month, day, hour, minutes, rel_year, rel_month,
71259         rel_day, rel_hour, rel_minutes, rel_seconds
71260         are now long int, not int.  Member seconds is now struct timespec,
71261         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71262         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71263         not int.
71264         (%union.intval): Now long int, not int.
71265         New member timespec.
71266         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71267         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71268         (spec): Now is a timespec or an item list.
71269         (timespec, items): New nonterminals.
71270         (time, rel, relunit, number, get_date):
71271         Add support for fractional seconds.
71272         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71273         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71274         (to_hour): First arg is now long int, not int.
71275         (to_year): Returns long int, not int.
71276         Don't treat year -70 like 70.
71277         (tm_diff): Returns long int, not int.
71278         (lookup_word): Use bool instead of int when appropriate.
71279         (yylex): Use size_t for count, not int.
71280         Detect overflow when parsing large integer constants.
71281         Add support for fractions.
71282         (get_date): Make pointers 'const' if possible.
71283         Use more-portable code to detect integer overflow.
71284         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71285         Don't use ctime; it's not reliable if the year has >4 digits.
71286
71287         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71288         This is for compatibility with BSD.
71289
71290         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71291         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71292         From coreutils' system.h.
71293
71294         * lib/userspec.c: Don't include "posixver.h".
71295         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71296         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71297         compatible extension.  Simplify code by removing a boolean int
71298         that was always nonzero if a string was nonnull.
71299
71300 2004-03-30  Jim Meyering  <jim@meyering.net>
71301
71302         Merge from coreutils.
71303
71304         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71305         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71306         on some systems one must include <grp.h> before it.
71307         Reported by Christian Krackowizer.
71308
71309 2004-03-30  Jim Meyering  <jim@meyering.net>
71310
71311         Merge from coreutils.
71312
71313         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71314
71315         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71316         an empty input stream.
71317
71318         * lib/readtokens.c: Include <stdbool.h>.
71319         (readtoken): Use `size_t' rather than int/long.
71320         All callers adjusted.
71321         Use `bool' rather than `int' where appropriate.
71322         Use memset rather than an explicit loop.
71323         Use x2nrealloc rather than xrealloc.
71324         Allow the use of `\0' as a delimiter.
71325         (readtokens): Likewise.
71326         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71327
71328 2004-03-30  Jim Meyering  <jim@meyering.net>
71329
71330         * m4/realloc.m4: Remove file, since now it does no more than
71331         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71332         the `configure.ac' section of module/realloc.
71333         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71334
71335 2004-03-30  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71338         nonnull.
71339
71340 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71341
71342         Merge changes to getloadavg.c from coreutils and Emacs.
71343
71344         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71345         Define to an expression, not to the empty string.
71346         Include cloexec.h and xalloc.h.
71347         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71348         Use set_cloexec_flag rather than rolling our own.
71349         * lib/cloexec.c, lib/cloexec.h: New files.
71350
71351 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71352
71353         * m4/cloexec.m4: New file.
71354
71355 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71356
71357         * lib/getopt.h: Sync with libc CVS.
71358
71359 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71360             Bruno Haible  <bruno@clisp.org>
71361
71362         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71363         mbswidth.
71364
71365 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71366             Bruno Haible  <bruno@clisp.org>
71367
71368         * lib/mbswidth.h: Include <wchar.h> only if
71369         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71370         <wchar.h>.
71371         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71372
71373 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71374
71375         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71376         Sync with libc CVS.
71377         * lib/getopt_int.h: New file, also synced from libc.
71378
71379 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71380
71381         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71382         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71383         Bring back getopt.c, getopt.h, getopt1.c.
71384
71385 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71386
71387         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71388         All uses changed.  Check for sa_sigaction member; this fixes
71389         a bug first reported by Jason Andrade in
71390         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71391
71392 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71393
71394         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71395         '#if' expressions.  Unlike the code it replaces, it does not
71396         depend on (defined _SC_PAGESIZE).  However, it does depend on
71397         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71398         first reported by Jason Andrade in
71399         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71400
71401 2004-02-25  Simon Josefsson  <jas@extundo.com>
71402
71403         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71404
71405 2004-02-25  Simon Josefsson  <jas@extundo.com>
71406
71407         * lib/strdup.h: New file.
71408         * lib/strdup.c: Include it.
71409         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71410         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71411
71412 2004-02-23  Karl Berry  <karl@gnu.org>
71413
71414         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71415         (from fencepost.gnu.org:/gd/gnuorg).
71416
71417 2004-02-23  Karl Berry  <karl@gnu.org>
71418
71419         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71420         * config/srclist.txt: add maintain/standards documents.
71421
71422 2004-02-18  Bruno Haible  <bruno@clisp.org>
71423
71424         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71425         Reported by Derek Robert Price <derek@ximbiot.com>.
71426
71427 2004-02-16  Karl Berry  <karl@gnu.org>
71428
71429         * config/mkinstalldirs, install-sh: update from automake.
71430
71431 2004-02-06  Karl Berry  <karl@gnu.org>
71432
71433         * m4/po.m4: update from gettext 0.14.1.
71434
71435 2004-02-06  Karl Berry  <karl@gnu.org>
71436
71437         * lib/config.charset: update from gettext 0.14.1.
71438
71439 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71440
71441         Add comments and code, prompted by suggestions from Bruno Haible
71442         for sh-quote.
71443         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71444         describing the enum quoting_style values.
71445         * lib/quotearg.c (quotearg_alloc): New function.
71446         (quotearg_buffer_restyled): Treat lone { and } as special.
71447         Treat = as special.  Work around bug with older shells
71448         that "see" a '\' that is really the 2nd byte of a multibyte char.
71449         Quote empty string with shell_quoting_style.
71450
71451 2004-02-03  Bruno Haible  <bruno@clisp.org>
71452
71453         * m4/pipe.m4: New file, from GNU gettext.
71454
71455 2004-02-03  Bruno Haible  <bruno@clisp.org>
71456
71457         * lib/pipe.h: New file, from GNU gettext.
71458         * lib/pipe.c: New file, from GNU gettext.
71459
71460 2004-01-27  Bruno Haible  <bruno@clisp.org>
71461
71462         * m4/execute.m4: New file, from GNU gettext.
71463
71464 2004-01-27  Bruno Haible  <bruno@clisp.org>
71465
71466         * lib/execute.h: New file, from GNU gettext.
71467         * lib/execute.c: New file, from GNU gettext.
71468         * lib/w32spawn.h: New file, from GNU gettext.
71469
71470 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71471
71472         Merge from diffutils.
71473
71474         * lib/file-type.c (file_type): Add typed memory objects.
71475         * lib/file-type.h (S_TYPEISTMO): New macro.
71476
71477         * lib/c-stack.h (c_stack_action): Remove argv argument.
71478         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71479         (die): Don't calculate message unless segv_action returns.
71480         (get_stack_location, min_address_from_argv, max_address_from_argv,
71481         volatile stack_base, volatile_stack_size): Remove.
71482         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71483         that every segmentation violation is a stack overflow.  (Ouch!)
71484         See Debian bug 136249 (still outstanding) for more info about why
71485         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71486
71487 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71488
71489         Exit-status fix from coreutils.
71490
71491         Use exit_failure consistently in place of EXIT_FAILURE,
71492         so that program exit statuses are consistent on failure.
71493
71494         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71495         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71496         * lib/argmatch.h: Comment fix to match the above.
71497         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71498         Now a macro referring to exit_failure, instead of a separate
71499         variable.  Include "exitfail.h" to get it.
71500         * lib/xstrtol.h: Include "exitfail.h".
71501         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71502
71503         * lib/long-options.c (parse_long_options): Use prototype
71504         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71505         for clarity.
71506
71507 2004-01-21  Jim Meyering  <jim@meyering.net>
71508
71509         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71510         so as not to conflict with a different-sized __mktime_internal
71511         function in GNU libc.
71512         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71513         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71514
71515 2004-01-20  Karl Berry  <karl@gnu.org>
71516
71517         * config/config.guess: update from config.
71518
71519         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71520
71521 2004-01-20  Bruno Haible  <bruno@clisp.org>
71522
71523         Safer stack allocation.
71524         * lib/setenv.c: Include allocsa.h.
71525         (alloca): Remove fallback definition.
71526         (freea): Remove macro.
71527         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71528         instead of freea.
71529
71530 2004-01-20  Bruno Haible  <bruno@clisp.org>
71531
71532         * m4/eealloc.m4: New file, from GNU gettext.
71533
71534 2004-01-20  Bruno Haible  <bruno@clisp.org>
71535
71536         * m4/allocsa.m4: New file, from GNU gettext.
71537
71538 2004-01-20  Bruno Haible  <bruno@clisp.org>
71539
71540         * lib/xallocsa.h: New file, from GNU gettext.
71541         * lib/xallocsa.c: New file, from GNU gettext.
71542
71543 2004-01-20  Bruno Haible  <bruno@clisp.org>
71544
71545         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71546
71547 2004-01-20  Bruno Haible  <bruno@clisp.org>
71548
71549         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71550         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71551         specially.
71552
71553 2004-01-20  Bruno Haible  <bruno@clisp.org>
71554
71555         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71556         patch.
71557
71558 2004-01-20  Bruno Haible  <bruno@clisp.org>
71559
71560         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71561
71562 2004-01-20  Bruno Haible  <bruno@clisp.org>
71563
71564         * lib/eealloc.h: New file.
71565
71566 2004-01-20  Bruno Haible  <bruno@clisp.org>
71567
71568         * lib/binary-io.h: Avoid warnings on Cygwin.
71569
71570 2004-01-20  Bruno Haible  <bruno@clisp.org>
71571
71572         * lib/allocsa.h: New file, from GNU gettext.
71573         * lib/allocsa.c: New file, from GNU gettext.
71574
71575 2004-01-18  Karl Berry  <karl@gnu.org>
71576
71577         * doc/gpl.texi, doc/lgpl.texi: new files.
71578
71579 2004-01-18  Karl Berry  <karl@gnu.org>
71580
71581         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71582         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71583
71584 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71585
71586         Merge from coreutils.
71587
71588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71589         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71590         (gl_DEFAULT_POSIX2_VERSION): Move
71591         the documentation from 'configure' into 'config.hin',
71592         so that 'configure --help' isn't burdened by it and
71593         we don't have to worry about its formatting there.
71594         Reword the documentation so that it's more succinct
71595         and can be run together into a single paragraph.
71596         * m4/same.m4 (gl_SAME): Check for pathconf.
71597
71598 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71599
71600         Merge from coreutils.
71601
71602         * lib/posixver.c: Include posixver.h.
71603
71604         * lib/same.c: Include <stdbool.h>, <limits.h>.
71605         (_POSIX_NAME_MAX): Define if not defined.
71606         (MIN): New macro.
71607         (same_name): If file names are silently truncated, report
71608         that the file names are the same if they are the same after
71609         the silent truncation.
71610
71611         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71612         conversion function.
71613         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71614         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71615         longer needed.
71616
71617 2004-01-15  Jim Meyering  <jim@meyering.net>
71618
71619         Merge from coreutils.
71620
71621         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71622         if no library is required.
71623         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71624         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71625         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71626         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71627         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71628         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71629         value, $ac_cv_search_crypt, if it's "none required".
71630         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71631         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71632         not gl_FUNC_GETLOADAVG.
71633         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71634         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71635
71636 2004-01-15  Jim Meyering  <jim@meyering.net>
71637
71638         Merge from coreutils.
71639
71640         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71641         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71642         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71643
71644         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71645         optional configure-time default.
71646
71647         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71648
71649         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71650
71651 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71652
71653         Merge from coreutils.
71654
71655         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71656         value, $ac_cv_search_nanosleep, if it's "none required".
71657
71658 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71659
71660         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71661         with like-named macro in fnmatch.c.
71662         (EXT): Use an internal constant instead.
71663
71664         Merge fnmatch patches from glibc.
71665         * lib/fnmatch.c (mbsinit): Remove define.
71666         Add libc_hidden_ver (__fnmatch, fnmatch).
71667         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71668         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71669
71670 2004-01-14  Karl Berry  <karl@gnu.org>
71671
71672         * config/install-sh: update from automake.
71673
71674 2004-01-13  Karl Berry  <karl@gnu.org>
71675
71676         * config/install-sh: update from automake.
71677
71678 2004-01-09  Karl Berry  <karl@gnu.org>
71679
71680         * config/install-sh: update from automake.
71681
71682 2004-01-05  Karl Berry  <karl@gnu.org>
71683
71684         * config/config.{sub,guess}: update from config.
71685
71686 2003-12-31  Karl Berry  <karl@gnu.org>
71687
71688         * config/depcomp: update from automake.
71689
71690 2003-12-14  Karl Berry  <karl@gnu.org>
71691
71692         * lib/config.charset: update from gettext-runtime.
71693
71694 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71695
71696         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71697         Bug reported by Alfred M. Szmidt.
71698
71699 2003-12-03  Bruno Haible  <bruno@clisp.org>
71700
71701         * m4/gettext.m4: Upgrade from gettext-0.13.
71702         * m4/po.m4: Upgrade from gettext-0.13.
71703         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71704         * m4/intmax.m4: New file, from gettext-0.13.
71705         * m4/printf-posix.m4: New file, from gettext-0.13.
71706
71707 2003-11-29  Karl Berry  <karl@gnu.org>
71708
71709         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71710
71711 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71712             Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/printf-parse.h: Don't include sys/types.h.
71715         (ARG_NONE): New macro.
71716         (char_directive): Change type of *arg_index fields to size_t.
71717         * lib/printf-parse.c: Don't include sys/types.h.
71718         (SSIZE_MAX): Remove macro.
71719         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71720         Remove unnecessary overflow check.
71721         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71722         fields.
71723
71724 2003-11-25  Bruno Haible  <bruno@clisp.org>
71725
71726         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71727
71728 2003-11-25  Bruno Haible  <bruno@clisp.org>
71729
71730         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71731         gt_TYPE_SSIZE_T.
71732
71733 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71734
71735         * modules/alloca: Remove dependency on xalloc.
71736
71737 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71738
71739         * lib/alloca.c: Remove dependency on xalloc module.
71740         (xalloc_die): Remove.
71741         (memory_full) [!defined emacs]: New macro.
71742         [!defined emacs]: Don't include xalloc.h.
71743         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71744         address arithmetic overflows.  Change datatypes a bit to avoid
71745         unnecessary casts.
71746
71747 2003-11-22  Jim Meyering  <jim@meyering.net>
71748
71749         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71750         s/size/size_t/.
71751
71752 2003-11-21  Karl Berry  <karl@gnu.org>
71753
71754         * config/config.{sub,guess}: update from config.
71755
71756 2003-11-18  Karl Berry  <karl@gnu.org>
71757
71758         * config/config.{sub,guess}: update from config.
71759
71760         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71761
71762 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71763
71764         * README: Mention that S+T cannot overflow if S is the size of
71765         an existing object and T is sufficiently small.
71766
71767 2003-11-17  Jim Meyering  <jim@meyering.net>
71768
71769         On systems without utime and without a utimes function capable of
71770         dealing with a NULL struct utimbuf* argument, this utime replacement
71771         could -- in unusual circumstances -- leak a file descriptor.
71772         * lib/utime.c: Include <unistd.h> and <errno.h>.
71773         (utime_null): Be sure to close `fd' and to preserve errno.
71774         Reported by Geoff Collyer via Arnold Robbins.
71775
71776 2003-11-17  Bruno Haible  <bruno@clisp.org>
71777
71778         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71779         (Depends-on): Add xsize.
71780
71781 2003-11-17  Bruno Haible  <bruno@clisp.org>
71782
71783         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71784
71785 2003-11-17  Bruno Haible  <bruno@clisp.org>
71786
71787         * lib/vasnprintf.c (alloca): Remove fallback definition.
71788         (freea): Remove definition.
71789         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71790         Reported by Paul Eggert.
71791
71792 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71793             Bruno Haible  <bruno@clisp.org>
71794
71795         Protect against address arithmetic overflow.
71796         * lib/printf-args.h: Include stddef.h.
71797         (arguments): Change type of field 'count' to size_t.
71798         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71799         'unsigned int' where appropriate.
71800         * lib/printf-parse.h: Include sys/types.h.
71801         (char_directive): Change type of *arg_index fields to ssize_t.
71802         (char_directives): Change type of fields 'count', max_*_length to
71803         size_t.
71804         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71805         (SSIZE_MAX): Define fallback value.
71806         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71807         instead of 'int' where appropriate. Check a_allocated, d_allocated
71808         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71809         * lib/vasnprintf.c: Include xsize.h.
71810         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71811         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71812         overflow. Avoid wraparound when converting a width or precision from
71813         decimal to binary.
71814
71815 2003-11-16  Bruno Haible  <bruno@clisp.org>
71816
71817         Update from GNU gettext.
71818         * lib/printf-parse.c: Generalize to it can be compiled for wide
71819         strings.
71820         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71821         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71822         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71823         SNPRINTF): New macros.
71824         Don't include <alloca.h> if the file is used inside libintl.
71825         (local_wcslen): New function, for Solaris 2.5.1.
71826         (VASNPRINTF): Use it instead of wcslen.
71827
71828 2003-11-16  Bruno Haible  <bruno@clisp.org>
71829
71830         * lib/xsize.h (xmax): New function.
71831         (xsum, xsum3, xsum4): Declare as "pure" functions.
71832
71833 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71834
71835         * modules/xalloc (Files): Undo latest change, since xalloc.h
71836         no longer needs SIZE_MAX or PTRDIFF_MAX.
71837
71838 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71839
71840         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71841         gl_PTRDIFF_MAX.
71842
71843 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71844
71845         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71846         "return", to pacify some unknown compiler.  Problem reported
71847         by Joerg Schilling.
71848
71849 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71850
71851         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71852         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71853         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71854         heuristic is just as accurate as far as we know, and it removes a
71855         dependency on size_max.m4 and ptrdiff_max.m4.
71856
71857 2003-11-11  Bruno Haible  <bruno@clisp.org>
71858
71859         * modules/xsize (Files): Add m4/size_max.m4.
71860         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71861
71862 2003-11-11  Bruno Haible  <bruno@clisp.org>
71863
71864         * m4/size_max.m4: New file.
71865         * m4/ptrdiff_max.m4: New file.
71866         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71867         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71868         (gl_XALLOC): Invoke it.
71869
71870 2003-11-11  Bruno Haible  <bruno@clisp.org>
71871
71872         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71873         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71874         defined.
71875
71876 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71877
71878         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71879         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71880         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71881         From Bruno Haible.
71882         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71883         not (size_t) -1, since it's defined here.
71884
71885 2003-11-09  Karl Berry  <karl@gnu.org>
71886
71887         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71888
71889 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71890
71891         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71892         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71893         Reject sizes of exactly SIZE_MAX bytes.
71894         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71895         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71896
71897 2003-11-05  Bruno Haible  <bruno@clisp.org>
71898
71899         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71900         SIZE_MAX defined in <limits.h> on Solaris.
71901
71902 2003-11-04  Jim Meyering  <jim@meyering.net>
71903
71904         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71905         variable names, rather than @VAR@.
71906         * modules/poll: Likewise.
71907
71908 2003-11-04  Bruno Haible  <bruno@clisp.org>
71909
71910         * modules/xsize: New file.
71911         * modules/linebreak: Depend on xsize.
71912         * MODULES.html.sh (func_all_modules): Add xsize.
71913
71914 2003-11-04  Bruno Haible  <bruno@clisp.org>
71915
71916         * m4/xsize.m4: New file.
71917
71918 2003-11-04  Bruno Haible  <bruno@clisp.org>
71919
71920         * lib/xsize.h: New file.
71921         * lib/linebreak.c: Include xsize.h.
71922         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71923         argument for overflow.
71924         Suggested by Paul Eggert.
71925
71926 2003-11-03  Karl Berry  <karl@gnu.org>
71927
71928         * config/config.{guess,sub}: update from config.
71929
71930 2003-11-03  Jim Meyering  <jim@meyering.net>
71931
71932         * modules/userspec (lib_SOURCES): Add userspec.h.
71933         (Include): Add "userspec.h".
71934         Improve description.
71935
71936 2003-11-03  Jim Meyering  <jim@meyering.net>
71937
71938         * lib/userspec.c: Include "userspec.h".
71939         * lib/userspec.h: New file.
71940
71941 2003-11-03  Bruno Haible  <bruno@clisp.org>
71942
71943         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71944
71945 2003-11-03  Bruno Haible  <bruno@clisp.org>
71946
71947         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71948         available, to avoid (extremely rare) race condition.
71949         Suggested by Paul Eggert.
71950
71951 2003-11-02  Karl Berry  <karl@gnu.org>
71952
71953         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71954
71955 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71956
71957         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71958         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71959         (read_filesystem_list): Set and use me_type_malloced.
71960         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71961         whatever the type happens to be), for brevity and consistency.
71962         Check for size calculation overflow on Alphas running OSF/1.
71963
71964 2003-10-31  Jim Meyering  <jim@meyering.net>
71965
71966         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71967
71968         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71969
71970 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71971             Bruno Haible  <bruno@clisp.org>
71972
71973         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71974         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71975
71976 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71977
71978         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71979         netbsd*-gnu*.  Suggested by Robert Millan.
71980
71981 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71982
71983         * modules/group-member: Depend on stdbool.
71984
71985 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71986
71987         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71988
71989 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71990
71991         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71992         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71993         after the 'gnu' in these cases.  This fixes some bugs in the
71994         previous change, and is based on suggestions by Robert Millan.
71995
71996 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71997
71998         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71999         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72000         no longer needed.
72001         * lib/quotearg.c (quotearg_n_options): Use it.
72002         * lib/group-member.c: Include <stdbool.h>.
72003         (free_group_info): Arg is now const *; don't free arg.
72004         (get_group_info): Now returns bool and accepts struct group_info *,
72005         rather than returning a malloc'ed struct group_info *.
72006         All uses changed.  Check for overflow in internal size calculation.
72007
72008         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72009         rather than xmalloc/xrealloc.
72010         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72011         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72012         conformance bug: the old code used a pointer after freeing the
72013         storage that it addressed.
72014         * lib/hash.c (hash_initialize): Simplify the code by using
72015         xalloc_oversized rather than doing it by hand.
72016         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72017         the buffer preserved.  Use free and xmalloc instead.
72018         * lib/quotearg.c (quotearg_n_options): Likewise.
72019         Use a simpler test for size overflow.  Don't use xalloc_oversized
72020         because unsigned int might be wider than size_t (!); this suggests
72021         that we should switch from unsigned int to size_t for slot numbers.
72022
72023 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72024
72025         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72026         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72027         NetBSD kernels.  Requested by Richard Stallman.
72028
72029 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72030
72031         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72032         to allocate the returned structure.  Do not allocate a subarray,
72033         as x2nrealloc will do that.
72034         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72035         instead of xnrealloc.
72036         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72037
72038 2003-10-27  Bruno Haible  <bruno@clisp.org>
72039
72040         * lib/stdbool_.h: Better support for BeOS.
72041
72042 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72043
72044         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72045         now uses inline.
72046
72047 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72048
72049         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72050         callers that want to do their own size-overflow checking.  Include
72051         <stdbool.h>, since xalloc_oversized returns bool.
72052         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72053         to use xalloc_oversized.
72054
72055         Add two functions x2realloc, x2nrealloc, for programs that grow
72056         arrays dynamically by doubling their sizes.
72057         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72058         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72059         New functions.
72060
72061         Port to C99 semantics for 'inline' of external functions.
72062         Bug reported by Bruno Haible.
72063         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72064         with the old contents of xnmalloc.
72065         (xnmalloc, xmalloc): Use it.
72066         (xnrealloc_inline): New static inline function,
72067         with the old contents of xnrealloc.
72068         (xnrealloc, xrealloc): Use it.
72069
72070         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72071         that.
72072
72073 2003-10-26  Karl Berry  <karl@gnu.org>
72074
72075         * config/srclist.txt (COPYING.DOC): no longer available from
72076         /gd/gnuorg; don't know where the ultimate source is.
72077
72078 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72079
72080         Fix several address-calculation bugs in the hash modules,
72081         plus some minor code cleanup.
72082
72083         * lib/hash.h: Include <stdbool.h>, for bool.
72084         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72085         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72086         hash_get_n_entries, hash_get_max_bucket_length,
72087         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72088         hash_rehash): Use size_t rather than unsigned.
72089         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72090         hash_get_n_buckets_used, hash_get_n_entries,
72091         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72092         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72093         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72094         Likewise.
72095         (SIZE_MAX): Define if not defined.
72096         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72097         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72098         hash_print):
72099         Use const * when possible.
72100         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72101         (check_tuning): Fix bug: if tuning parameters were very close to
72102         0 or 1, rounding errors could have caused subscript violations.
72103         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72104         (hash_initialize): Add 'fail:' label
72105         to free table and return NULL, and use it to simplify code.
72106         Use calloc rather than clearing the storage ourself.
72107         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72108         buffer size calculations.
72109         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72110         Include <stddef.h>, for size_t.
72111         * lib/hash-pjw.c (hash_pjw): Likewise.
72112         Switch to method described by Bruno Haible.
72113         Include <limits.h>, for CHAR_BIT.
72114         (SIZE_BITS): New macro.
72115
72116 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72117
72118         * m4/getline.m4 (AM_FUNC_GETLINE):
72119         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72120         hosts.  Problem reported by Derek Robert Price in
72121         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72122         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72123         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72124
72125 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72126
72127         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72128         ceiling the allocation at NMAX bytes rather than silently
72129         discarding input bytes before NMAX is reached.  This makes
72130         a difference only if NMAX exceeds SIZE_MAX / 2.
72131
72132         * lib/obstack.c: Merge from glibc.
72133         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72134         Add libc_hidden_def (_obstack_newchunk).
72135         (_obstack_free) [! defined _LIBC]: Remove.
72136         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72137         a clone of the function body.
72138         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72139         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72140
72141         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72142         glibc.
72143         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72144         arg to memcpy.
72145
72146         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72147         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72148         Don't use lvalue casts, as GCC plans to remove support for them
72149         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72150         was also present in the non-GCC version, indicating that this
72151         code had always been buggy and had never been widely used.
72152         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72153         Use the fast variant of each macro, rather than copying the
72154         definiens of the fast variant; that way, we'll be more likely to
72155         catch future bugs in the fast variants.
72156
72157 2003-10-20  Bruno Haible  <bruno@clisp.org>
72158
72159         * modules/wait-process: New file.
72160         * MODULES.html.sh (func_all_modules): Add wait-process.
72161
72162 2003-10-20  Bruno Haible  <bruno@clisp.org>
72163
72164         * m4/wait-process.m4: New file.
72165
72166 2003-10-20  Bruno Haible  <bruno@clisp.org>
72167
72168         * lib/wait-process.h: New file, from GNU gettext.
72169         * lib/wait-process.c: New file, from GNU gettext.
72170
72171 2003-10-19  Jim Meyering  <jim@meyering.net>
72172
72173         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72174         HPUX 10.20.
72175
72176 2003-10-18  Karl Berry  <karl@gnu.org>
72177
72178         * config/config.guess: update from config.
72179
72180 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72181
72182         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72183         (getgroups): First arg is int, not size_t.
72184         Don't let 'free' mangle errno.
72185
72186 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72187
72188         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72189
72190 2003-10-16  Karl Berry  <karl@gnu.org>
72191
72192         * config/config.{guess,sub}: update from config.
72193
72194 2003-10-16  Jim Meyering  <jim@meyering.net>
72195
72196         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72197         memcpy.
72198
72199 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72200
72201         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72202         (SIZE_MAX): Remove.
72203         (new_exclude, add_exclude_file): Initial size no longer needs to
72204         be a power of 2.
72205         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72206         our own address arithmetic overflow checking.
72207
72208         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72209         (fnmatch): Do not alloca more than 2000 wide characters;
72210         instead, use malloc for large buffers.
72211         Check for address arithmetic overflow, and return -1
72212         with errno set to ENOMEM in that case.
72213         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72214         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72215         instead, return -1.  Check for address arithmetic overflow.
72216
72217 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72218
72219         Handle invalid suffixes and overflow independently, so that
72220         callers can treat them independently as needed.  Fix some bugs in
72221         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72222         suffix for a human-readable blocksize.  The major caller-visible
72223         change is the addition of a new
72224         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72225         that both overflow and suffix chars were found.
72226
72227         * lib/human.c (humblock): Don't check separately for invalid suffix
72228         char; that is xstrtoumax's job (now that its bug is fixed).
72229         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72230         INTMAX_MAX]: New macros.
72231         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72232         TYPE_MAXIMUM): New macros.
72233         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72234         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72235         if overflow occurs, as it's what __strtol does and it's more useful
72236         in practice.
72237         (__xstrtol): If __strtol reports some error other than ERANGE,
72238         reflect it to the caller as LONGINT_INVALID.  If it reports
72239         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72240         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72241         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72242         value.
72243         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72244         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72245         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72246         [defined UINTMAX_MAX]: New macros.
72247
72248 2003-10-14  Bruno Haible  <bruno@clisp.org>
72249
72250         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72251
72252 2003-10-14  Bruno Haible  <bruno@clisp.org>
72253
72254         * m4/sig_atomic_t: New file, from GNU gettext.
72255         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72256
72257 2003-10-14  Bruno Haible  <bruno@clisp.org>
72258
72259         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72260         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72261         Also use volatile where needed.
72262
72263 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72264
72265         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72266         Change maintainer from Bruno Haible to 'all'.
72267
72268 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72269
72270         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72271
72272 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72273
72274         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72275         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72276         and define in terms of the other primitives.
72277         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72278         (SIZE_MAX): Define if not already defined.
72279         (array_size_overflow): New function.
72280         (xalloc_die): Abort instead of exiting if 'error' returns.
72281         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72282         (xmalloc, xrealloc): Use them.
72283         (xcalloc): Check for address arithmetic overflow.
72284         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72285         a bit faster than strcpy.
72286
72287 2003-10-10  Simon Josefsson  <jas@extundo.com>
72288
72289         * modules/argp (Depends-on): Add restrict and strcase.
72290
72291 2003-10-10  Simon Josefsson  <jas@extundo.com>
72292
72293         * m4/argp.m4: Add AC_C_INLINE.
72294
72295 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72296
72297         Merge getpass from libc, plus a few fixes.
72298
72299         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72300         Include <stdbool.h>.
72301         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72302         __fsetlocking to empty.
72303         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72304         do include <bits/libc-lock.h>.
72305         Do not include <fcntl.h>; not needed.
72306         [_LIBC]: Include <wchar.h>.
72307         (NOTCANCEL_MODE): New macro.
72308         (flockfile, funlockfile) [_LIBC]: New macros.
72309         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72310         [!_LIBC]: New macros.
72311         (call_fclose): New function.
72312         (getpass): Use it.  Save tty stream separately; this simplifies the
72313         code and makes it more reliable if stdin happens to equal stdout.
72314         Invoke __fsetlocking on tty.
72315         Handle thread cancellation if needed.
72316         Namespace cleanup (use __tcgetattr, __getline).
72317         Use bool for Booleans.
72318         [USE_IN_LIBIO]: Handle wide streams.
72319         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72320         stream might go where.
72321
72322         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72323         doesn't have to include <stdio.h> before us.
72324         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72325         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72326         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72327         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72328         if not declared, so that we can use getpass.c code from libc without
72329         rewriting it.
72330         (flockfile, ftrylockfile, funlockfile): New macros.
72331
72332 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72333
72334         * modules/getpass: Depend on stdbool.
72335
72336 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72337
72338         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72339
72340 2003-10-07  Karl Berry  <karl@gnu.org>
72341
72342         * config/config.{guess,sub}: update from config.
72343
72344 2003-10-06  Jim Meyering  <jim@meyering.net>
72345             Bruno Haible  <bruno@clisp.org>
72346
72347         This lets translators provide better translations for the
72348         "Written by ..." part of --version output.
72349         * lib/version-etc.h: Include stdarg.h.
72350         (version_etc_copyright): Declare as readonly.
72351         (version_etc): Make this function variadic with a NULL-terminated list
72352         of author name strings.
72353         (version_etc_va): New declaration.
72354         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72355         (version_etc_copyright): Declare as readonly.
72356         (version_etc_va): New function. Provide a different translatable string
72357         for each possible number of authors < 10. Abbreviate when there are 10
72358         authors or more.
72359         (version_etc): Make this function variadic. Call version_etc_va.
72360         Suggestion from Gary V. Vaughan.
72361
72362         * lib/long-options.h (parse_long_options): Change prototype: the
72363         authors string is moved to the end and becomes variadic.
72364         * lib/long-options.c: Include stdarg.h.
72365         (parse_long_options): Make this function variadic, too.
72366         Call version_etc_va, not version_etc.
72367
72368 2003-10-06  Bruno Haible  <bruno@clisp.org>
72369
72370         * modules/version-etc-2: Remove file.
72371         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72372
72373 2003-10-06  Bruno Haible  <bruno@clisp.org>
72374
72375         * modules/fatal-signal: New file.
72376         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72377
72378 2003-10-06  Bruno Haible  <bruno@clisp.org>
72379
72380         * m4/fatal-signal.m4: New file.
72381         * m4/signalblocking.m4: New file, from GNU gettext.
72382
72383 2003-10-06  Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/version-etc-2.h: Remove file.
72386         * lib/version-etc-2.c: Remove file.
72387
72388 2003-10-06  Bruno Haible  <bruno@clisp.org>
72389
72390         * lib/fatal-signal.h: New file, from GNU gettext.
72391         * lib/fatal-signal.c: New file, from GNU gettext.
72392
72393 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72394
72395         * README: Rework advice for preventing empty .o files.
72396         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72397         not <sys/types.h>.
72398
72399 2003-10-04  Karl Berry  <karl@gnu.org>
72400
72401         * lib/argp*: update from libc.
72402
72403 2003-10-04  Karl Berry  <karl@gnu.org>
72404
72405         * config/config.{guess,sub}: update from config.
72406
72407 2003-10-02  Bruno Haible  <bruno@clisp.org>
72408
72409         * modules/lchown (Include): Add lchown.h.
72410         * modules/time_r (Include): Use "..." syntax.
72411         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72412
72413 2003-10-01  Simon Josefsson  <jas@extundo.com>
72414
72415         * MODULES.html.sh (func_all_modules): Move gethostname from section
72416         'based on' to section 'lacking' POSIX:2001.
72417
72418 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72419
72420         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72421         to output mode on the same stream.
72422
72423 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72424
72425         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72426         Fix arg typo in previous patch.
72427
72428 2003-09-28  Jim Meyering  <jim@meyering.net>
72429
72430         * lib/error.c: Correct cpp indentation.
72431
72432 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72433
72434         * modules/free: New file.
72435
72436 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72437
72438         * m4/free.m4: New file.
72439
72440 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72441
72442         * lib/minmax.h (MIN, MAX)
72443         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72444         Omit the special code that used __typeof__, since we worry that
72445         it could be more trouble than it's worth.  See:
72446         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72447         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72448
72449         * lib/free.c: New file.
72450
72451 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72452
72453         Trivial fixes to Makefile.am parts of module listings.
72454         * modules/strstr: Append strstr.h to lib_SOURCES.
72455         * modules/strcase: Likewise, for strcase.h.
72456
72457 2003-09-27  Karl Berry  <karl@gnu.org>
72458
72459         * config/mkinstalldirs: update from automake.
72460
72461 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72462
72463         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72464         (error_tail): Do not loop, reallocating temporary buffer, since
72465         the output cannot contain more wide characters than the input
72466         contains bytes, the size must be big enough already.  This avoids
72467         one potential size overflow calculation.  Check for size overflow
72468         when calculating temporary buffer size.  Free temporary buffer
72469         when done, if it was allocated with malloc; this plugs a memory
72470         leak.  Remove casts from void * to pointers, that are no longer
72471         needed now that we're assuming C89 or better.
72472
72473         Merge error changes from glibc.
72474
72475         * lib/error.c, error.h: Update copyright notice header to match glibc.
72476         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72477         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72478         Disable cancellation while printing error.
72479         * lib/error.h: Prepend __ to parameter names.
72480
72481 2003-09-26  Jim Meyering  <jim@meyering.net>
72482
72483         * lib/error.c (error_tail): Move some declarations
72484         into inner scope where the local variables are used.
72485
72486 2003-09-26  Bruno Haible  <bruno@clisp.org>
72487
72488         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72489         stpncpy().
72490         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72491
72492 2003-09-26  Bruno Haible  <bruno@clisp.org>
72493
72494         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72495         (stpncpy): Define as alias for gnu_stpncpy.
72496         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72497
72498 2003-09-25  Simon Josefsson  <jas@extundo.com>
72499
72500         * lib/xgetdomainname.h: New file.
72501         * lib/xgetdomainname.c: New file.
72502
72503 2003-09-25  Simon Josefsson  <jas@extundo.com>
72504             Bruno Haible  <bruno@clisp.org>
72505
72506         * modules/getdomainname: New file.
72507         * modules/xgetdomainname: New file.
72508         * MODULES.html.sh (func_all_modules): Add getdomainname,
72509         xgetdomainname.
72510
72511 2003-09-25  Simon Josefsson  <jas@extundo.com>
72512             Bruno Haible  <bruno@clisp.org>
72513
72514         * m4/getdomainname.m4: New file.
72515
72516 2003-09-25  Simon Josefsson  <jas@extundo.com>
72517             Bruno Haible  <bruno@clisp.org>
72518
72519         * lib/getdomainname.h: New file.
72520         * lib/getdomainname.c: New file.
72521
72522 2003-09-25  Karl Berry  <karl@gnu.org>
72523
72524         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72525
72526 2003-09-25  Karl Berry  <karl@gnu.org>
72527
72528         * config/install-sh: update from automake.
72529
72530 2003-09-25  Bruno Haible  <bruno@clisp.org>
72531
72532         * modules/version-etc-2: New file, from modules/version-etc with
72533         modifications.
72534         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72535
72536 2003-09-25  Bruno Haible  <bruno@clisp.org>
72537
72538         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72539         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72540
72541 2003-09-24  Simon Josefsson  <jas@extundo.com>
72542
72543         * modules/xgethostname: Add xgethostname.h.
72544
72545 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72546
72547         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72548         the buffer associated with the argument.  Bug reported by
72549         Simon Josefsson.
72550
72551 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72552
72553         * README: Document assumptions that 'int' is at least 32 bits
72554         wide, that integer arithmetic is 2's complement without overflow,
72555         that there are no holes in integer values, that adding sizes of
72556         two nonoverlapping objects can't overflow, and that all-bits-zero
72557         yields scalar zero.  Fix spelling and capitalization typos.
72558
72559 2003-09-19  Karl Berry  <karl@gnu.org>
72560
72561         * lib/argp.h: update from libc.
72562
72563 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72564
72565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72566         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72567         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72568
72569 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72570
72571         * gnulib-tool: Use "test -h", not "test -L", for portability
72572         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72573         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72574         (sed_extract_prog): Issue s commands one-by-one, rather than
72575         using \| in one s command.
72576
72577 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72578
72579         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72580         input error, instead of returning NULL the next time we are called
72581         (and therefore losing track of errno).
72582
72583 2003-09-16  Bruno Haible  <bruno@clisp.org>
72584
72585         * gnulib-tool (func_create_testdir): Warn about duplicated
72586         dependencies.
72587
72588 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72589
72590         * modules/argmatch, modules/fatal, modules/obstack,
72591         modules/xalloc, modules/xgethostname: Sort dependencies by
72592         importance, not alphabetically.
72593
72594 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72595
72596         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72597         fails, so that the caller gets the proper errno.
72598
72599         * lib/readutmp.c (read_utmp): Likewise.
72600         Check for fstat error.  Close stream and free storage
72601         when failing.
72602
72603 2003-09-14  Karl Berry  <karl@gnu.org>
72604
72605         * config/srclist.txt (strdup.c): disable for c89 changes.
72606
72607 2003-09-14  Jim Meyering  <jim@meyering.net>
72608
72609         * lib/getloadavg.c: Correct cpp indentation.
72610         * lib/strdup.c: Likewise.
72611         * lib/vasnprintf.c: Likewise.
72612
72613 2003-09-14  Bruno Haible  <bruno@clisp.org>
72614
72615         * modules/fwriteerror: New file.
72616         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72617
72618 2003-09-14  Bruno Haible  <bruno@clisp.org>
72619
72620         * lib/fwriteerror.h: New file.
72621         * lib/fwriteerror.c: New file.
72622
72623 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72624
72625         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72626         modules/xgethostname, modules/xalloc: Depend on exit.
72627
72628 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72629
72630         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72631
72632         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72633         and AC_MINIX, too, so that their extensions are available.
72634
72635         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72636         This macro has been superseded by gl_BACKUPFILE.
72637
72638         More patches to assume C89 or better.
72639
72640         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72641
72642         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72643         unconditionally.
72644         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72645         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72646         Include <string.h>, <stdlib.h> unconditionally.
72647         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72648         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72649         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72650         headers or for string.h.
72651         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72652         or strtoul.
72653
72654         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72655         headers.
72656         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72657         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72658         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72659         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72660         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72661         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72662         memcpy, memset.
72663         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72664         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72665         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72666         strtol.
72667         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72668         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72669         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72670         strtoul.
72671
72672 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72673
72674         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72675         * lib/obstack.c [!defined _LIBC]: Likewise.
72676         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72677         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72678         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72679
72680         More changes to assume C89 or better.
72681
72682         * lib/error.c (error_tail): Assume vprintf.
72683
72684         * lib/argmatch.c (getenv): Remove decl.
72685         * lib/progreloc.c (get_full_program_name): Define via prototype.
72686         * lib/setenv.c (clearenv): Likewise.
72687         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72688         needed.
72689         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72690         (malloc, memcpy): Remove decls.
72691         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72692         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72693         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72694         (memcpy): Remove macro.
72695         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72696         (__P): Remove.  All uses removed.
72697         (PTR): Remove.  All uses changed to void *.
72698         (CHAR_BIT, NULL): Remove.
72699         (spaces, zeros, memset_space, memset_zero)
72700         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72701         Remove.
72702         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72703         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72704         Define with prototype.
72705         Remove now-unnecessary prototype decl.
72706         (extra_args_spec): Assume ANSI C.  All uses changed.
72707         (extra_args_spec_iso): Remove.
72708         (my_strftime, emacs_strftimeu): Define via prototype.
72709         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72710         unconditionally.
72711         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72712         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72713         (strtoul, strtol): Remove decls.
72714         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72715         LONG_MAX): Remove.
72716         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72717         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72718         (LOCALE_PARAM_PROTO): New macro.
72719         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72720         (INTERNAL (strtol), strtol): Define with a prototype.
72721         (PARAMS): Remove.  All uses removed.
72722         * lib/tempname.c: Include <string.h> unconditionally.
72723         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72724         * lib/xgethostname.c (main): Define with a prototype.
72725         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72726         Include <stdlib.h> unconditionally.
72727         (calloc, malloc, realloc, free): Remove decls.
72728         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72729         Include <stdlib.h> unconditionally.  Sort include file names.
72730         (strtod): Remove.
72731         (xstrtod): Define with a prototype.
72732         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72733         (strtol, strtoul): Remove decls.
72734
72735 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72736
72737         More patches to assume C89 or better.
72738         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72739         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72740         string.h, memchr, STDC_HEADERS.
72741
72742 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72743
72744         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72745         Include <stdlib.h>, <string.h> unconditionally.
72746         Remove now-unnecessary cast to char *.
72747         * lib/strnlen.c: Include <string.h> unconditionally.
72748         * lib/yesno.c (yesno): Define with a prototype.
72749
72750 2003-09-11  Bruno Haible  <bruno@clisp.org>
72751
72752         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72753
72754 2003-09-10  Jim Meyering  <jim@meyering.net>
72755
72756         * lib/error.c: Correct indentation of cpp directives.
72757
72758 2003-09-10  Bruno Haible  <bruno@clisp.org>
72759
72760         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72761         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72762         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72763         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72764         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72765         <stdlib.h> and <string.h> checks.
72766         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72767         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72768
72769 2003-09-10  Bruno Haible  <bruno@clisp.org>
72770
72771         * lib/strcspn.c: Include <string.h> unconditionally.
72772         * lib/strpbrk.c: Include <string.h> unconditionally.
72773         * lib/strstr.c: Include <string.h> unconditionally.
72774         * lib/unicodeio.c: Include <string.h> unconditionally.
72775         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72776         * lib/unsetenv.c: Likewise.
72777         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72778         * lib/yesno.c: Include <stdlib.h> unconditionally.
72779         (rpmatch): Add prototype.
72780
72781 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72782
72783         More patches to assume C89 or better.
72784         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72785         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72786         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72787         or for string.h.
72788         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72789         stdlib.h.
72790         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72791         C headers.
72792         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72793         string.h.
72794         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72795         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72796         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72797         or for string.h.
72798         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72799         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72800         C headers.
72801         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72802         memcpy.
72803         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72804         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72805         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72806         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72807         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72808         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72809         string.h, free.
72810         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72811         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72812         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72813         C headers, or for string.h.
72814         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72815         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72816         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72817         headers, memory.h, stdlib.h, string.h, strings.h.
72818         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72819         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72820         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72821         strchr.
72822         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72823         headers, memory.h, string.h.
72824         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72825         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72826         free.
72827         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72828         headers.
72829         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72830         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72831         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72832         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72833         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72834
72835 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72836
72837         More K&R removal.
72838
72839         * lib/acosl.c (main): Use a prototype.
72840         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72841         tanl.c: Likewise.
72842
72843         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72844
72845         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72846         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72847         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72848         with a prototype.
72849         * lib/getopt.c (const): Remove macro.
72850         Include <string.h> unconditionally.
72851         (my_index): Remove; all uses changed to strchr.
72852         (strlen): Remove decl.
72853         (exchange): Remove forward decl; no longer needed.
72854         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72855         Define with prototype.
72856         * lib/getopt1.c (const): Remove macro.
72857         (getopt_long, getopt_long_only, main): Define with prototype.
72858
72859         * lib/getugroups.c: Include <string.h> unconditionally.
72860
72861         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72862         (getusershell, setusershell, endusershell, readname, main):
72863         Define with prototypes.
72864
72865         * lib/group-member.c: Include group-member.h first.
72866         Include <stdlib.h> unconditionally.
72867
72868         * lib/hard-locale.c: Include hard-locale.h first.
72869         Include <stdlib.h>, <string.h> unconditionally.
72870
72871         * lib/hash.c (free, malloc): Remove decls.
72872         Include <stdlib.h> unconditionally.
72873
72874         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72875         (getenv): Do not declare.
72876
72877         * lib/idcache.c: Include <string.h> unconditionally.
72878
72879         * lib/long-options.c: Include long-options.h first, to test interface.
72880         Include <stdlib.h> unconditionally.
72881
72882         * lib/makepath.c: Include makepath.h first, to test interface.
72883         Include <stdlib.h> and <string.h> unconditionally.
72884
72885         * lib/linebuffer.c: Include <stdlib.h>.
72886         (free): Remove decl.
72887
72888         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72889         stddef.h. rpl_malloc returns void *, not char *.
72890         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72891         prototype.
72892
72893         * lib/md5.h: Include <limits.h> unconditionally.
72894         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72895         (__P): Remove; all uses removed.
72896         * lib/md5.c: Include "md5.h" first.
72897         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72898         md5_buffer, md5_process_bytes, md5_process_block):
72899         Define with prototypes.
72900         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72901         * lib/sha.c: Include "sha.h" first.
72902         Include <stdlib.h>, <string.h> unconditionally.
72903
72904         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72905         * lib/memcmp.c (__ptr_t): Likewise.
72906         * lib/memrchr.c (__ptr_t): Likewise.
72907         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72908         Include <string.h> unconditionally.
72909         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72910         * lib/memchr.c: Include <stdlib.h> unconditionally.
72911         * lib/memchr.c (LONG_MAX): Remove.
72912         * lib/memrchr.c (LONG_MAX): Likewise.
72913         * lib/memchr.c (__memchr): Define via a prototype.
72914         * lib/memrchr.c (__memrchr): Likewise.
72915         * lib/memcmp.c (__P): Remove, and remove all uses.
72916         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72917         Remove forward decls; no longer needed.
72918         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72919         Use types required by C89 in prototype.
72920
72921         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72922         * lib/savedir.c: Likewise.
72923         * lib/mkdir.c (free): Remove decl.
72924         * lib/rmdir.c (rmdir): Define with a prototype.
72925         * lib/savedir.c: Include savedir.h first, to test interface.
72926
72927         * lib/mktime.c (STDC_HEADERS): Remove.
72928         Include <stdlib.h>, <string.h> unconditionally.
72929
72930         * lib/modechange.c: Include <stdlib.h> unconditionally.
72931         (malloc): Remove decl.
72932
72933         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72934         (free): Remove decl.
72935
72936         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72937         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72938         (This type really should be intptr_t, but that's a C99ism.)
72939         (_obstack_memcpy): Remove: all uses changed to memcpy.
72940         Include <string.h> unconditionally.
72941         (struct obstack): Assume __STDC__ for types of members
72942         chunkfun, freefun, extra_arg.
72943         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72944         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72945         obstack_begin, obstack_specify_allocation,
72946         obstack_specify_allocation_with_arg, obstack_chunkfun,
72947         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72948         Remove unprototyped decls and the macros that use them.
72949         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72950         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72951         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72952         (defined __STDC__ && __STDC__)]:
72953         Remove nonprototyped code.
72954         Include <stdlib.h> unconditionally.
72955         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72956         _obstack_allocated_p, _obstack_free, obstack_free,
72957         _obstack_memory_used, print_and_abort):
72958         Define using prototypes.
72959         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72960         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72961         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72962         obstack_next_free, obstack_object_size, obstack_room) [0]:
72963         Remove unused, unprototyped code.
72964
72965         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72966
72967         * lib/physmem.c (physmem_total, physmem_available, main): Define
72968         with prototypes.
72969
72970         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72971         (main): Define with a prototype.
72972
72973         * lib/posixver.c (getenv): Remove decl.
72974
72975         * lib/putenv.c (malloc): Returns void *, not char *.
72976         Include <string.h> unconditionally.
72977         (strchr, memcpy, NULL): Do not define.
72978
72979         * lib/readtokens.c: Include readtokens.h first, to test interface.
72980         Include <stdlib.h>, <string.h> unconditionally.
72981         (init_tokenbuffer): Define with a prototype.
72982
72983         * lib/regex.c (PARAMS): Remove.  All uses removed.
72984         All uses of _RE_ARGS removed, too.
72985         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72986         unconditionally.
72987         (bzero): Assume memset exists.
72988         (memcmp, memcpy, NULL): Remove.
72989         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72990         char, or assignments to local vars of type signed char.
72991         (init_syntax_once, PREFIX(extract_number_and_incr),
72992         PREFIX(print_partial_compiled_pattern),
72993         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72994         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72995         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72996         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72997         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72998         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72999         wcs_compile_range, byte_compile_range, truncate_wchar,
73000         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73001         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73002         count_mbs_length, wcs_re_match_2_internal,
73003         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73004         PREFIX(alt_match_null_string_p),
73005         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73006         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73007         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73008         now-unnecessary declaration, if any.
73009         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73010         regcomp, regexec):
73011         Remove now-unnecessary casts among pointer types.
73012         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73013
73014         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73015         (free): Remove decl.
73016
73017         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73018
73019         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73020         (free): Remove decl.
73021
73022         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73023         * lib/xgetcwd.c: Likewise.
73024
73025         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73026         (free): Remove decl.
73027
73028         * lib/strchrnul.c (strchrnul): Define with a prototype.
73029         Fix bug: c_in was not converted to char before searching.
73030
73031         The following changes are not K&R related:
73032
73033         * lib/group-member.h: Include <sys/types.h>, so that this file is
73034         self-contained.
73035         * lib/makepath.h: Likewise.
73036
73037         * lib/getusershell.c (readname, default_index, line_size, readname):
73038         Use size_t, not int, for sizes.
73039         (readname): If the size overflows, report an error instead of
73040         looping forever.
73041
73042 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73043
73044         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73045         libc.
73046
73047 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73048
73049         * README: New section: portability guidelines.
73050
73051 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73052
73053         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73054         C89 spec.
73055
73056 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73057
73058         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73059
73060 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73061
73062         Assume C89 or better; remove K&R cruft.
73063         A few of these changes were first proposed by Derek Robert Price
73064         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73065
73066         * lib/addext.c: Include <string.h> unconditionally.
73067         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73068         Don't declare getenv or malloc.
73069
73070         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73071         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73072         (NULL): Remove.
73073         (find_stack_direction, alloca): Use prototypes.
73074
73075         * lib/atexit.c (atexit): Define using a prototype.
73076
73077         * lib/basename.c, dirname.c, stripslash.c:
73078         Include <string.h> unconditionally.
73079
73080         * lib/bcopy.c: Include <stddef.h>.
73081         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73082
73083         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73084
73085         * lib/error.h (error, error_at_line, error_print_progname)
73086         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73087         * lib/error.c: Include error.h first, to check interface.
73088         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73089         (VA_START): Remove; all uses changeed to va_start.
73090         (exit, strerror): Remove decls.
73091         (error_print_progname): Prototype uncondionally.
73092         Don't include <errno.h>; no longer needed.
73093         (private_strerror): Remove.
73094         (error_tail): Always define.
73095         (error, error_at_line): Assume C89 or better; always use prototypes.
73096         * lib/fatal.c: Include "fatal.h" first, to test interface.
73097         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73098         (VA_START): Remove; all uses changed to va_start.
73099         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73100         this case.
73101         (exit): Remove decl.
73102         (fatal): Prototype unconditionally.  Assume va_start works.
73103         Abort at end, to pacify gcc.
73104
73105         * lib/euidaccess.c (main): Define with a prototype.
73106
73107         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73108
73109         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73110
73111         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73112         prototypes.
73113         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73114         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73115         (getenv): Remove decl.
73116         (fnmatch): Define using a prototype.
73117         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73118         (FCT): Define using a prototype.
73119
73120         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73121
73122         * lib/gethostname.c: Include <stddef.h>.
73123         (gethostname): Define with prototype.  Length is size_t, not int.
73124
73125 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73126
73127         Assume C89 or better; remove K&R cruft.
73128         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73129         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73130         string.h, getenv, malloc.
73131         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73132         headers.
73133         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73134         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73135         do not check for strerror.
73136         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73137         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73138         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73139         do not check for doprnt or vprintf.
73140         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73141         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73142
73143 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73144
73145         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73146         getversion.c should have been removed then, but was accidentally
73147         preserved.
73148
73149         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73150         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73151
73152 2003-09-08  Karl Berry  <karl@gnu.org>
73153
73154         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73155                 config, forget about prep.
73156
73157         * config/depcomp, missing: update from automake.
73158
73159 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73160
73161         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73162         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73163
73164 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73165
73166         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73167         copy_tm_result.  Bug reported by Simon Josefsson in
73168         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73169
73170 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73171
73172         * m4/time_r.m4: New file.
73173         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73174         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73175         is. Check for timegm declaration.
73176         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73177         Do not check for gmtime_r.
73178         Replace mktime if __mktime_internal does not exist and if mktime
73179         hasn't been replaced already.
73180
73181 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73182
73183         * lib/time_r.c, lib/time_r.h: New files.
73184
73185         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73186         __localtime_r.
73187         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73188         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73189
73190         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73191         __gmtime_r.
73192         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73193         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73194         Include <time_r.h>.
73195
73196         * lib/timegm.c: Switch to glibc implementation, with the following
73197         changes:
73198         [defined HAVE_CONFIG_H]: Include <config.h>.
73199         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73200         (__mktime_internal) [!defined _LIBC]: New decl.
73201         (__gmtime_r) [!defined _LIBC]: New macro and function.
73202         (timegm): Use a prototype, since gnulib assumes C89.
73203         Do not bother declaring tmp to be const, as it's not really usefu.
73204         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73205         (timegm): Declare only if HAVE_DECL_TIMEGM.
73206
73207 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73208
73209         * MODULES.html.sh (func_all_modules): Add time_r.
73210         * modules/time_r: New file.
73211         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73212         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73213
73214 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73215
73216         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73217         Bug reported by Lute Kamstra in
73218         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73219
73220         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73221         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73222         course with correspondingly smaller numbers for tomorrow and
73223         yesterday.  From Tadayoshi Funaba.  Originally installed into
73224         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73225         coreutils merge?).
73226
73227 2003-08-31  Simon Josefsson  <jas@extundo.com>
73228
73229         * modules/timegm: New file.
73230         * MODULES.html.sh (func_all_modules): Add timegm.
73231
73232 2003-08-31  Simon Josefsson  <jas@extundo.com>
73233
73234         * m4/timegm.m4: New file.
73235
73236 2003-08-31  Simon Josefsson  <jas@extundo.com>
73237
73238         * lib/timegm.h: New file.
73239         * lib/timegm.c: New file.  Based on
73240         wget-1.8.2/src/http.c:mktime_from_utc.
73241
73242 2003-08-31  Karl Berry  <karl@gnu.org>
73243
73244         * lib/argp.h: update from libc.
73245
73246 2003-08-28  Bruno Haible  <bruno@clisp.org>
73247
73248         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73249         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73250         followed by '#define fnmatch fnmatch_posix' gives an error.
73251
73252 2003-08-28  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73255         warning on QNX, which defines O_BINARY to 000000.
73256
73257 2003-08-27  Jim Meyering  <jim@meyering.net>
73258
73259         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73260         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73261         would fail after 32.  Reported by Danny Levinson.  Details here:
73262         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73263
73264 2003-08-24  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73267         MSVC7 <stdio.h> is included later.
73268
73269 2003-08-22  Simon Josefsson  <jas@extundo.com>
73270
73271         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73272
73273 2003-08-20  Karl Berry  <karl@gnu.org>
73274
73275         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73276
73277 2003-08-20  Bruno Haible  <bruno@clisp.org>
73278
73279         * modules/progname: New file.
73280         * MODULES.html.sh (func_all_modules): Add progname.
73281
73282 2003-08-20  Bruno Haible  <bruno@clisp.org>
73283
73284         * lib/progname.h: New file, from GNU gettext.
73285         * lib/progname.c: New file, from GNU gettext.
73286         * lib/progreloc.c: New file, from GNU gettext.
73287
73288 2003-08-19  Jim Meyering  <jim@meyering.net>
73289
73290         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73291         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73292
73293 2003-08-19  Bruno Haible  <bruno@clisp.org>
73294
73295         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73296         more.
73297
73298 2003-08-19  Bruno Haible  <bruno@clisp.org>
73299
73300         * lib/xstrdup.c: Assume <string.h> exists.
73301
73302 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73303
73304         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73305         in makefile rules.
73306
73307 2003-08-18  Jim Meyering  <jim@meyering.net>
73308
73309         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73310         * m4/lib-ld.m4: Likewise.
73311
73312 2003-08-18  Jim Meyering  <jim@meyering.net>
73313
73314         * lib/setenv.h: Indent nested cpp directive.
73315         * lib/vasnprintf.c: Remove trailing blanks.
73316
73317 2003-08-17  Simon Josefsson  <jas@extundo.com>
73318
73319         * modules/xstrndup: New file.
73320         * MODULES.html.sh (func_all_modules): Add xstrndup.
73321
73322 2003-08-17  Simon Josefsson  <jas@extundo.com>
73323
73324         * modules/argp: Fix autoconf macro name. Add more dependencies.
73325
73326 2003-08-17  Simon Josefsson  <jas@extundo.com>
73327
73328         * m4/xstrndup.m4: New file.
73329
73330 2003-08-17  Simon Josefsson  <jas@extundo.com>
73331
73332         * m4/argp.m4: New file.
73333
73334 2003-08-17  Simon Josefsson  <jas@extundo.com>
73335             Bruno Haible  <bruno@clisp.org>
73336
73337         * lib/xstrndup.h: New file.
73338         * lib/xstrndup.c: New file.
73339
73340 2003-08-17  Bruno Haible  <bruno@clisp.org>
73341
73342         * modules/strndup (Files, Include): Add lib/strndup.h.
73343
73344 2003-08-17  Bruno Haible  <bruno@clisp.org>
73345
73346         * modules/euidaccess (Files): Add lib/euidaccess.h.
73347
73348 2003-08-17  Bruno Haible  <bruno@clisp.org>
73349
73350         * lib/strndup.h: New file.
73351
73352 2003-08-17  Bruno Haible  <bruno@clisp.org>
73353
73354         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73355         like AC_GNU_SOURCE.
73356         * modules/extensions (configure.ac): Comment out the invocation of
73357         gl_USE_SYSTEM_EXTENSIONS.
73358
73359 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73360
73361         Merges from coreutils, etc.
73362         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73363         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73364         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73365         fixing a typo.
73366         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73367         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73368
73369 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73370
73371         Document merge from coreutils.
73372         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73373         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73374         * modules/utime: Add m4/utimes-null.m4.
73375
73376 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73377
73378         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73379         space, undoing this 2003-08-12 change:
73380         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73381
73382 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73383
73384         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73385         strtoul.c from libc, undoing this 2003-08-12 change:
73386         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73387
73388 2003-08-16  Jim Meyering  <jim@meyering.net>
73389
73390         Merges from coreutils.
73391         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73392         prefix.  Adjust cache variables similarly.  Create 500 rather than
73393         just 300 files, to exercise bug on Darwin6.5, too.
73394         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73395         $missing_dir.
73396         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73397         AM_SYS_POSIX_TERMIOS.
73398         Reported by mkc@mathdogs.com.
73399         Also change use of $am_cv_sys_posix_termios
73400         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73401         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73402         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73403         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73404         in /proc/mounts until it finds one with matching device number.  This
73405         is unnecessary when the FILE argument *is* a mount point.  No stat call
73406         is necessary in that case.  So, disable the statvfs-testing code on
73407         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73408         as RedHat bug# 84846.
73409         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73410         to 1MB, so as not to render systems with no stack size limit (e.g.,
73411         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73412         Include <unistd.h>.  On some systems,
73413         it is required for the definition of _SC_PAGESIZE.
73414
73415 2003-08-16  Jim Meyering  <jim@meyering.net>
73416
73417         Merge from coreutils.
73418         * lib/xstrtoimax.c: #else #if -> #elif.
73419         * lib/xstrtoumax.c: Likewise.
73420
73421 2003-08-16  Jim Meyering  <jim@meyering.net>
73422
73423         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73424         * m4/utimes.m4: Removed.
73425         * m4/utimes-null.m4: Renamed from utimes.m4.
73426
73427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73428         to 1MB, so as not to render systems with no stack size limit (e.g.,
73429         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73430         Include <unistd.h>.  On some systems,
73431         it is required for the definition of _SC_PAGESIZE.
73432
73433 2003-08-16  Jim Meyering  <jim@meyering.net>
73434         and Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         Merges from coreutils, etc.
73437
73438         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73439         using the latest version from cvs.  This avoids problems with #line
73440         directives using a vendor (Sun) compiler.
73441         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73442         Don't set GETGROUPS_LIB here; now it's
73443         done via getgroups.m4's wrapper function.
73444         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73445         rather than just in sh-util/configure.in, so that the
73446         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73447         same.
73448         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73449         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73450         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73451         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73452         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73453         Remove code that is now done by the newly-required macros.
73454         Append $(EXEEXT) to DF_PROG.
73455         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73456         Do not invoke or require the following here,
73457         since prereq.m4 or some gnulib .m4 now does this for us:
73458         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73459         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73460         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73461         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73462         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73463         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73464         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73465         AC_FUNC_OBSTACK.
73466         Do not replace the following functions, as this is now the job
73467         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73468         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73469         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73470         atexit getpass, strdup, getpagesize.
73471         Replace 'raise'.
73472         Do not check for the following functions, as this is now the job
73473         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73474         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73475         setregid.
73476         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73477         Check for sys/sysctl.h.
73478         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73479         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73480         of checking for ssize_t ourselves.
73481
73482         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73483         Require every macro that gnulib/modules/* suggests for us.
73484         (jm_PREREQ_ADDEXT): New macro.
73485         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73486         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73487
73488         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73489         (gl_PHYSMEM): Use it.
73490         Also check for `table' function.
73491         Check for new headers and functions.
73492         Add check for sys/sysmp.h.
73493         With suggestions from Kaveh Ghazi.
73494         Ignore headers that are present but cannot be compiled.  This
73495         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73496         C 5.4.
73497
73498 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73499
73500         Document merge from coreutils.
73501         * modules/userspec: Depend on posixver.
73502         * modules/strftime: Depend on tzset.
73503
73504 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73505
73506         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73507         rather than tab, after '#' in shell-script copyright notices.
73508         Suggested by Bruno Haible.
73509
73510 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73511
73512         * config/srclist-update: Use three spaces, rather than tab, after '#'
73513         in shell-script copyright notices.  Suggested by Bruno Haible.
73514         Remove unnecessary parenthesization in regular expression.
73515
73516 2003-08-15  Jim Meyering  <jim@meyering.net>
73517
73518         Merge from coreutils.
73519         * lib/xgethostname.c: Include <stdlib.h>.
73520         (xghostname): Don't exit for anything other than memory-related
73521         failure; just return NULL.
73522         * lib/userspec.c: Include "posixver.h".
73523         (parse_user_spec): Accept `.' as a separator only
73524         in pre-POSIX-200112 mode.
73525         * lib/strtoimax.c: Use #elif rather than #else #if.
73526         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73527         Remove function, now that we can rely on a working tzset function.
73528         [!_LIBC]: Ensure that the required autoconf test has been run.
73529         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73530         Use underlying_strftime for %r.
73531         * lib/sha.c: Merge in some clean-up and optimization changes from
73532         glibc.
73533         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73534         Ensure that it is a multiple of 64.
73535         Rearrange loop exit tests so as to avoid performing an
73536         additional fread after encountering an error or EOF.
73537         * lib/realloc.c: Update copyright date.
73538
73539 2003-08-15  Jim Meyering  <jim@meyering.net>
73540         and Paul Eggert  <eggert@twinsun.com>
73541
73542         Merge from coreutils.
73543         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73544         member but strut utmpx does not.  Needed for AIX 4.3.3.
73545         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73546
73547 2003-08-15  Jim Meyering  <jim@meyering.net>
73548         and Paul Eggert  <eggert@cs.ucla.edu>
73549
73550         Merges from coreutils, etc.
73551         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73552         Require gl_FUNC_TZSET_CLOBBER.
73553         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73554         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73555         members.
73556
73557 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73558
73559         Help the merge from coreutils.
73560         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73561         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73562         * m4/tzset.m4: Use it too.
73563
73564 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73565
73566         * modules/tzset: New file.
73567
73568 2003-08-14  Jim Meyering  <jim@meyering.net>
73569
73570         Merges from coreutils.
73571         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73572         variable names, rather than @FNMATCH_H@.
73573         * modules/alloca: Likewise for $(ALLOCA_H).
73574
73575         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73576         the three copies of the literal target, `fnmatch.h'.
73577         * modules/alloca (alloca.h): Likewise.
73578
73579 2003-08-14  Jim Meyering  <jim@meyering.net>
73580
73581         Merge from coreutils.
73582         * m4/tzset.m4: New file.
73583         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73584         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73585         otherwise, AIX 5.1 systems would end up using the latter.
73586         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73587         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73588         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73589         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73590
73591 2003-08-14  Jim Meyering  <jim@meyering.net>
73592
73593         Merge from coreutils.
73594         * lib/obstack.h: Whitespace changes.
73595         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73596         and xcalloc return values.
73597         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73598         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73599         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73600         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73601         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73602         error from mntctl.
73603         Use mntctl's return value to drive the entry-processing loop, since
73604         we can't rely on the value of the vmt_length member in the last
73605         entry.  On some systems doing so could result in exhausting
73606         virtual memory.  Based in part on a patch from Mike Jetzer.
73607
73608 2003-08-14  Jim Meyering  <jim@meyering.net>
73609         and Paul Eggert  <eggert@twinsun.com>
73610
73611         Merges from coreutils, plus other fixes.
73612         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73613         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73614         for credits and details.  Thanks to Kaveh Ghazi for helping
73615         to keep these files in sync.
73616         (ARRAY_SIZE): Define it.
73617         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73618         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73619         (memcasecmp): Don't assume size_t fits in unsigned int.
73620         Remove casts and duplicate code.
73621         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73622         (memcpy): Remove definition.
73623         Merge in some clean-up and optimization changes from glibc.
73624         [BLOCKSIZE]: Move definition to top of file.
73625         Ensure that it is a multiple of 64.
73626         Rearrange loop exit tests so as to avoid performing an
73627         additional fread after encountering an error or EOF.
73628         * lib/md5.h (md5_uintptr): Define.
73629         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73630         return to the initial working directory.  Preserve errno
73631         for caller.
73632         * lib/idcache.c: Include "xalloc.h".
73633         (xmalloc, xrealloc): Remove decls.
73634         (getuser): Remove casts no longer required in C89.
73635         * lib/human.c: Include stdio.h, for sprintf.
73636         * lib/group-member.c: Include "xalloc.h".
73637         (xmalloc, xrealloc): Remove decls.
73638         (get_group_info): Remove casts no longer required in C89.
73639         * lib/getusershell.c (readname): Remove casts no longer required in
73640         C89.
73641         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73642         * lib/getline.c: Whitespace fix, from coreutils.
73643
73644 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73645
73646         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73647         Check for isascii.
73648
73649         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73650         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73651         Undo previous (whitespace-only) change.
73652
73653 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73654
73655         * lib/exclude.c: Include <ctype.h>
73656         (IN_CTYPE_DOMAIN): New macro.
73657         (is_space): New fn.
73658         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73659         and empty lines.
73660
73661         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73662         Undo previous (whitespace-only) change.
73663
73664 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73665
73666         * config/srclist-update: Change update back to the old behavior,
73667         leaving whitespace alone.  Use one 'sed' command rather than a
73668         pipeline.
73669         (fixlicense): Now a variable, not a function.
73670         (remove_trailing_blanks): Remove.
73671         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73672         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73673         Undo previous (whitespace-only) change.
73674
73675 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73676
73677         Merge from coreutils.
73678         * modules/euidaccess: Add lib_SOURCES, include for new
73679         file euidaccess.h
73680
73681 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73682
73683         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73684         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73685         Normalize leading white space and remove trailing white space.
73686
73687         Merge from coreutils
73688         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73689
73690         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73691         0.12.1.  These files are now being upgraded automatically by
73692         ../config/srclist-update.
73693
73694 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73695
73696         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73697         Normalize leading white space and remove trailing white space.
73698         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73699         notice, as per ../config/srclist-update.
73700
73701         Merge from coreutils.
73702         * lib/euidaccess.h: New file.
73703         * lib/euidaccess.c: Include it.
73704         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73705         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73706         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73707
73708 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73709
73710         * config/srclist-update: Add copyright notice.
73711         (remove_id_lines, remove_trailing_blanks): New constants.
73712         (fixfile): Use them to normalize spacing a bit in copied files.
73713         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73714         Normalize leading white space and remove trailing white space.
73715
73716         * config/texinfo.tex: Sync with texinfo.
73717
73718         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73719         strtoul.c from libc, to merge coreutils whitespace changes.
73720
73721         * config/srclist.txt: Get the following m4 files from gettext:
73722         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73723         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73724         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73725         wint_t.m4.
73726
73727 2003-08-12  Karl Berry  <karl@gnu.org>
73728
73729         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73730         been made.
73731
73732 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73733
73734         * modules/gnu-source, m4/gnu-source.m4:
73735         Remove; we're assuming Autoconf 2.54 or later now.
73736         Suggested by Bruno Haible.
73737         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73738
73739 2003-08-11  Bruno Haible  <bruno@clisp.org>
73740
73741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73742
73743 2003-08-11  Bruno Haible  <bruno@clisp.org>
73744
73745         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73746         (vasnprintf): Use it instead of wcslen.
73747
73748 2003-08-11  Bruno Haible  <bruno@clisp.org>
73749
73750         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73751         value to ensure that _Bool promotes to int. Use #define for _Bool when
73752         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73753
73754 2003-08-10  Karl Berry  <karl@gnu.org>
73755
73756         * lib/regex.h: update from libc (whitespace fix).
73757
73758 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73759
73760         Merge some files from coreutils.  These changes were
73761         originally made by Jim Meyering.
73762         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73763         many older Unixes require this.
73764         * lib/alloca.c (alloca): Remove cast to argument of free;
73765         no longer needed in C89.
73766         * lib/alloca_.h, regex.h: Fix white space to match
73767         what GNU indent does.
73768
73769 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73770
73771         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73772         apparently Emacs's Unicode mode got confused before my 2003-08-05
73773         checkin.
73774
73775 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73776
73777         * m4/extensions.m4: New file.
73778         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73779         Require gl_USE_SYSTEM_EXTENSIONS.
73780         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73781         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73782
73783 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73784
73785         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73786         * modules/extensions, modules/gnu-source: New files.
73787         * modules/timespec, modules/unlocked-io: Depend on extensions.
73788
73789 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73790
73791         * modules/restrict: New file.
73792         * MODULES.html.sh (func_all_modules): Add restrict.
73793         * modules/regex: Depend on restrict.
73794
73795 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73796
73797         * m4/restrict.m4: New file.
73798         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73799
73800 2003-08-07  Bruno Haible  <bruno@clisp.org>
73801
73802         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73803         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73804
73805 2003-08-07  Bruno Haible  <bruno@clisp.org>
73806
73807         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73808         makes the module 'getndelim2' compatible with the module 'getline'.
73809
73810 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73811
73812         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73813         byte with "\201" to avoid glitches when editing that source file
73814         with multi-gnome-terminal.
73815
73816 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73817
73818         * lib/bumpalloc.h: Remove.
73819
73820 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73821
73822         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73823         * modules/bumpalloc: Remove.
73824
73825 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73826
73827         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73828         GNU coding style.
73829
73830         Merge from coreutils.
73831         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73832         1. From glibc.
73833         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73834         from Karl Berry, implemented by Jim Meyering.
73835         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73836         from Dmitry V. Levin.
73837         Remove anachronistic cast of xrealloc.
73838         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73839         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73840         type. Otherwise, it wouldn't compile with at least /bin/cc on
73841         ymp-cray-unicos9.0.2.X.
73842         Combine two mostly-identical uses of alloca into one.
73843         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73844
73845 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73846
73847         [From Emacs.]
73848
73849         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73850         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73851         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73852         obsolete NLIST_NAME_UNION.
73853         [__GNU__]: Undef BSD and FSCALE.
73854         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73855
73856 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73857
73858         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73859         an enum type, so that it's guaranteed to promote to int.  See:
73860         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73861
73862 2003-08-03  Karl Berry  <karl@gnu.org>
73863
73864         * config/depcomp: update from automake.
73865
73866 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73867
73868         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73869         (strerror): Don't assume that a printable int fits in 14 bytes.
73870
73871 2003-07-31  Bruno Haible  <bruno@clisp.org>
73872
73873         * modules/getpass-gnu: New file.
73874         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73875
73876 2003-07-31  Bruno Haible  <bruno@clisp.org>
73877
73878         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73879
73880 2003-07-24  Karl Berry  <karl@gnu.org>
73881
73882         * config/missing: update from automake.
73883
73884 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73885             Bruno Haible  <bruno@clisp.org>
73886
73887         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73888         * lib/getline.c (getline, getdelim): Likewise.
73889         Remove _GNU_SOURCE define; now it's defined in config.h through
73890         m4/getline.m4.
73891
73892 2003-07-23  Karl Berry  <karl@gnu.org>
73893
73894         * config/config.sub: update from prep.
73895
73896 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73897
73898         * modules/xalloc (Depends-on): Add exitfail.
73899         * modules/xmemcoll: Likewise.
73900
73901 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73902
73903         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73904         over-parenthesization in macros.
73905
73906         Sync with coreutils.
73907
73908         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73909         required by C99.
73910
73911         Use `exit_failure' for xalloc and xmemcoll instead of their own
73912         private exit-failure variables.
73913         * lib/xalloc.h (xalloc_exit_failure): Remove.
73914         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73915         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73916         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73917         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73918         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73919
73920 2003-07-20  Jim Meyering  <jim@meyering.net>
73921
73922         * modules/closeout (Depends-on): Add exitfail.
73923         Suggestion from Bruno Haible.
73924
73925 2003-07-19  Karl Berry  <karl@gnu.org>
73926
73927         * config/config.sub: update from prep.
73928
73929 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73930
73931         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73932         Remove.
73933         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73934         to test that it can stand by itself.  Include "exitfail.h".
73935         Clients should set exit_failure instead.
73936         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73937
73938 2003-07-18  Bruno Haible  <bruno@clisp.org>
73939
73940         * modules/getndelim2: New file.
73941         * modules/getline: Share files with module getndelim2.
73942         * modules/getnline: Depend on getndelim2 instead of sharing files with
73943         it. Add getnline.c to lib_SOURCES.
73944         * MODULES.html.sh (func_all_modules): Add getndelim2.
73945
73946 2003-07-18  Bruno Haible  <bruno@clisp.org>
73947
73948         * m4/getndelim2.m4: New file.
73949         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73950         invoke gl_PREREQ_GETNDELIM2.
73951         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73952         gl_PREREQ_GETNDELIM2.
73953         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73954         gl_GETNDELIM2.
73955
73956 2003-07-18  Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/getndelim2.h: New file.
73959         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73960         getndelim2.h.
73961         (getndelim2): Make non-static. Change return type to ssize_t.
73962         * lib/getline.h: Change argument names.
73963         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73964         * lib/getnline.c: Include getndelim2.h.
73965
73966 2003-07-18  Andreas Schwab  <schwab@suse.de>
73967
73968         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73969
73970 2003-07-17  Karl Berry  <karl@gnu.org>
73971
73972         * config/config.sub: update from prep.
73973
73974 2003-07-17  Bruno Haible  <bruno@clisp.org>
73975
73976         * modules/getnline: New file.
73977         * modules/getline: Add lib/getndelim2.c to source file list.
73978         * MODULES.html.sh (func_all_modules): Add getnline.
73979
73980 2003-07-17  Bruno Haible  <bruno@clisp.org>
73981
73982         * m4/getnline.m4: New file.
73983
73984 2003-07-17  Bruno Haible  <bruno@clisp.org>
73985
73986         * m4/Makefile.am.in: Remove file.
73987         * m4/Makefile.am: Remove file.
73988         * m4/Makefile.in: Remove file.
73989
73990 2003-07-17  Bruno Haible  <bruno@clisp.org>
73991
73992         * lib/getnline.h: New file.
73993         * lib/getnline.c: New file.
73994         * lib/getndelim2.c: New file, extracted from getline.c.
73995         (getndelim2): Renamed from getdelim2, with added nmax argument.
73996         * lib/getline.c: Include getndelim2.c.
73997         (getdelim2): Moved out to getndelim2.c.
73998         (getline, getdelim): Update.
73999
74000 2003-07-17  Bruno Haible  <bruno@clisp.org>
74001
74002         * lib/Makefile.am: Remove file.
74003         * lib/Makefile.in: Remove file.
74004
74005 2003-07-17  Bruno Haible  <bruno@clisp.org>
74006
74007         * configure.in: Remove file.
74008         * Makefile.in: Remove file.
74009
74010 2003-07-17  Bruno Haible  <bruno@clisp.org>
74011
74012         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74013
74014 2003-07-16  Karl Berry  <karl@gnu.org>
74015
74016         * config/srclist-update: was running fixlicense twice, which caused
74017                 texinfo.tex to be nullified for some reason.  Simplify,
74018                 $gplsrc is no longer needed as far as I can see?
74019
74020 2003-07-16  Jim Meyering  <jim@meyering.net>
74021
74022         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74023
74024 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74025
74026         * config/srclist.txt: Get the following files from gettext-runtime/intl
74027         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74028         ref-del.sin.  From Bruno Haible.
74029         * config/srclist-update (fixfile): Change grep pattern again, since the
74030         previous fix didn't work (there was another trailing $).  Use
74031         '[$]' to escape the $s.
74032
74033 2003-07-15  Karl Berry  <karl@gnu.org>
74034
74035         * lib/vasnprintf.c: update from gettext.
74036
74037 2003-07-15  Karl Berry  <karl@gnu.org>
74038
74039         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74040         gets expanded when surrounded by '$'.
74041
74042 2003-07-15  Jim Meyering  <jim@meyering.net>
74043
74044         * modules/save-cwd: Don't depend on error.  From Derek Price.
74045
74046 2003-07-15  Jim Meyering  <jim@meyering.net>
74047
74048         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74049
74050 2003-07-14  Simon Josefsson  <jas@extundo.com>
74051
74052         * modules/mempcpy: New file.
74053         * MODULES.html.sh (func_all_modules): Add mempcpy.
74054
74055 2003-07-14  Simon Josefsson  <jas@extundo.com>
74056
74057         * m4/mempcpy.m4: New file.
74058
74059 2003-07-14  Simon Josefsson  <jas@extundo.com>
74060
74061         * lib/mempcpy.h: New file.
74062         * lib/mempcpy.c: New file.
74063
74064 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74065
74066         * modules/getdate, modules/posixtm: Depend on mktime.
74067
74068 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74069
74070         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74071         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74072         unicodeio.c, unicodeio.h, unlocked-io.h:
74073         Switch from LGPL to GPL.
74074
74075 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74076
74077         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74078         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74079         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74080         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74081         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74082         updated automatically by ../config/srclist-update.  This changes
74083         their license from LPGL to GPL.
74084
74085 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74086
74087         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74088         assumed to refer to the root of the most recent stable gettext version.
74089         * config/srclistvars.sh: Add defaults for eggert.
74090         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74091         Match "This program" as well as "The program".  This is needed
74092         for gettext.
74093
74094 2003-07-14  Jim Meyering  <jim@meyering.net>
74095
74096         Don't emit diagnostics.  Let callers do that.
74097         * lib/save-cwd.c: Don't include "error.h".
74098         (save_cwd): Don't call error.  Ensure that errno is valid
74099         when returning nonzero.
74100
74101         * lib/save-cwd.h (restore_cwd): Update prototype.
74102         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74103         Simplify.  Don't call error upon failure.  Let callers do that.
74104         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74105         when auditing is enabled.  But don't bother updating the #if.
74106
74107 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74108
74109         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74110         it breaks C++ compilation.
74111         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74112
74113 2003-07-10  Simon Josefsson  <jas@extundo.com>
74114
74115         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74116
74117 2003-07-10  Jim Meyering  <jim@meyering.net>
74118
74119         * m4/clock_time.m4: Remove trailing blank.
74120         * m4/intmax_t.m4: Likewise.
74121
74122 2003-07-10  Jim Meyering  <jim@meyering.net>
74123
74124         * lib/vasnprintf.c: Remove trailing blanks.
74125         Make cpp indentation consistent.
74126
74127 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74128
74129         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74130         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74131         Switch from LGPL to GPL.
74132
74133 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74134
74135         * config/srclist.txt: Sort sublists.  Add
74136         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74137         that differ from gnulib for one reason or another; we'd like this list
74138         to be smaller but for now let's document what we have.
74139
74140 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74141
74142         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74143         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74144         and sweeter "eval x=$x".
74145         * config/srclist.txt: Get lib/argp* from glibc.
74146
74147 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74148
74149         * lib/mktime.c: Fix some boundary cases and remove need for floating
74150         point.
74151
74152         Issue a compile-time diagnostic if time_t is floating point, or if
74153         two's complement arithmetic is not in effect, or if arithmetic
74154         right shift does not propagate the sign.  These assumptions were
74155         all in the original code but they weren't checked.
74156
74157         (TIME_T_MIDPOINT, verify): New macros.
74158         (__isleap): Remove; it has integer overflow problems.
74159         (leapyear): New function, without those problems.
74160         (ydhms_tm_diff): Remove; splitting into two parts.
74161         (ydhms_diff): New function, containing the arithmetic part of
74162         the old ydhms_tm_diff function.  Issue a compile-time
74163         diagnostic if we are not using C99 integer division.
74164         Avoid casts when possible.
74165         (guess_time_tm): New function, containing the checking part of
74166         the old ydhms_tm_diff function.  Return the new value, rather than
74167         the difference between it and the old.  Accept a new argument T
74168         so that *T specifies the old value.  Check for overflow in the result.
74169
74170         (__mktime_internal): Use a time_t offset, not a long int offset.
74171         This undoes the 2003-06-04 change, which is no longer needed now
74172         that we have better overflow checking.
74173         (localtime_offset): Likewise.
74174
74175         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74176         and long are 64-bit but int is only 32-bit.
74177         (ydhms_diff): Use long int to store year1 and yday1.
74178         Issue a compile-time diagnostic if long int is not wide enough.
74179
74180         (__mktime_internal): Use long int to store adjusted year and yday.
74181         Use plain C rather than preprocessor commands, if that doesn't
74182         affect efficiency.
74183         Check for overflow (and try to repair) after each probe
74184         rather than checking only at the very end.  This avoids some bugs
74185         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74186         does not equal GMT offset at maximum time).
74187         Use integer to check for overflow rather than floating point; this
74188         is more portable to non-IEEE hosts, and is a tad faster.
74189         When we detect that we are oscillating between two values,
74190         don't check whether tm_isdst has the requested value, since
74191         we already know the answer.  When tm_isdst has the wrong value,
74192         use a different heuristic to find the right one, based on the
74193         extreme values actually observed in practice in tz2003a,
74194         rather than the (overly optimistic) "previous 3 calendar quarters".
74195
74196         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74197         "T const" to accommodate glibc style.
74198         (check_result): Use less-confusing report format.  "long" -> "long int.
74199         (main): Likewise.
74200         Don't loop if the iteration overflows time_t.
74201         Allow a negative step in the iteration.
74202
74203 2003-07-06  Karl Berry  <karl@gnu.org>
74204
74205         * config/depcomp: update from automake.
74206         * config/config.sub: update from prep.
74207
74208 2003-07-03  Karl Berry  <karl@gnu.org>
74209
74210         * config/config.guess: update from prep.
74211
74212 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74213
74214         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74215         xreadlink.c now includes it unconditionally.
74216
74217 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74218
74219         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74220         having it depend on HAVE_SYS_TYPES_H.
74221
74222 2003-07-01  Bruno Haible  <bruno@clisp.org>
74223
74224         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74225         <sys/types.h> should be sufficient.
74226         Reported by Paul Eggert.
74227
74228 2003-06-26  Karl Berry  <karl@gnu.org>
74229
74230         * config/depcomp: update from automake.
74231
74232 2003-06-26  Bruno Haible  <bruno@clisp.org>
74233
74234         * modules/human: Depend on module stdbool.
74235
74236 2003-06-25  Bruno Haible  <bruno@clisp.org>
74237
74238         * modules/readlink: New file.
74239         * modules/xreadlink: Depend on it.
74240         * MODULES.html.sh (func_all_modules): Add readlink.
74241
74242 2003-06-25  Bruno Haible  <bruno@clisp.org>
74243
74244         * m4/readlink.m4: New file.
74245
74246 2003-06-25  Bruno Haible  <bruno@clisp.org>
74247
74248         * lib/readlink.c: New file.
74249
74250 2003-06-22  Karl Berry  <karl@gnu.org>
74251
74252         * config/srclist.txt: update mkinstalldirs from automake.
74253         * config/mkinstalldirs: update.
74254
74255 2003-06-22  Bruno Haible  <bruno@clisp.org>
74256
74257         Portability to mingw32.
74258         * m4/ssize_t.m4: New file, from GNU gettext.
74259         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74260         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74261
74262 2003-06-22  Bruno Haible  <bruno@clisp.org>
74263
74264         * modules/safe-read: Add m4/ssize_t.m4.
74265         * modules/xreadlink: Add m4/ssize_t.m4.
74266
74267 2003-06-20  Bruno Haible  <bruno@clisp.org>
74268
74269         Assume C89, so PARAMS isn't needed.
74270         * lib/unicodeio.h (PARAMS): Remove.
74271         * lib/unicodeio.c: Don't use PARAMS.
74272
74273 2003-06-18  Karl Berry  <karl@gnu.org>
74274
74275         * config/config.{guess,sub}: update from prep.
74276
74277 2003-06-18  Jim Meyering  <jim@meyering.net>
74278
74279         Merge changes from coreutils.
74280         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74281         Remove explicit declarations of xmalloc and realloc.
74282         Include xalloc.h.
74283         (read_utmp): Remove anachronistic cast of xmalloc.
74284
74285 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74286
74287         Assume C89, so PARAMS isn't needed.
74288         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74289         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74290         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74291         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74292         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74293         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74294         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74295         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74296         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74297         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74298         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74299         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74300         no longer needed. Anyway, config.h should always be included before any
74301         other file.
74302
74303 2003-06-11  Simon Josefsson  <jas@extundo.com>
74304
74305         * modules/sysexits: New file.
74306         * MODULES.html.sh (func_all_modules): Add sysexits.
74307
74308 2003-06-11  Simon Josefsson  <jas@extundo.com>
74309
74310         * lib/sysexit_.h: New file.
74311
74312 2003-06-11  Derek Price  <derek@ximbiot.com>
74313
74314         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74315         necessary.
74316
74317 2003-06-11  Bruno Haible  <bruno@clisp.org>
74318
74319         * m4/sysexits.m4: New file.
74320
74321 2003-06-10  Simon Josefsson  <jas@extundo.com>
74322
74323         * lib/argp.h: New file, from glibc.
74324         * lib/argp-ba.c: New file, from glibc.
74325         * lib/argp-eexst.c: New file, from glibc.
74326         * lib/argp-fmtstream.c: New file, from glibc.
74327         * lib/argp-fmtstream.h: New file, from glibc.
74328         * lib/argp-fs-xinl.c: New file, from glibc.
74329         * lib/argp-help.c: New file, from glibc.
74330         * lib/argp-namefrob.h: New file, from glibc.
74331         * lib/argp-parse.c: New file, from glibc.
74332         * lib/argp-pv.c: New file, from glibc.
74333         * lib/argp-pvh.c: New file, from glibc.
74334         * lib/argp-xinl.c: New file, from glibc.
74335
74336 2003-06-10  Simon Josefsson  <jas@extundo.com>
74337
74338         * modules/strchrnul: New file.
74339
74340 2003-06-10  Simon Josefsson  <jas@extundo.com>
74341
74342         * modules/argp: New file.
74343
74344 2003-06-10  Simon Josefsson  <jas@extundo.com>
74345
74346         * m4/strchrnul.m4: New file.
74347
74348 2003-06-10  Simon Josefsson  <jas@extundo.com>
74349
74350         * lib/strchrnul.h: New file.
74351         * lib/strchrnul.c: New file.
74352
74353 2003-06-10  Bruno Haible  <bruno@clisp.org>
74354
74355         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74356
74357 2003-06-07  Karl Berry  <karl@gnu.org>
74358
74359         * config/config.{guess,sub}: update from prep.
74360
74361 2003-06-07  Jim Meyering  <jim@meyering.net>
74362
74363         * modules/strtod: Use $(...) notation, not @...@ for
74364         AC_REPLACE'd variables.
74365         * modules/localcharset: Likewise.
74366
74367 2003-06-07  Jim Meyering  <jim@meyering.net>
74368
74369         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74370         in place of my name in the copyright comment.
74371         Remove definition and uses of __P.
74372
74373         From coreutils.
74374         * lib/stat.c: Don't declare xmalloc explicitly.
74375         Instead, include "xalloc.h".
74376         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74377         xrealloc, and xcalloc return values.
74378         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74379         Improve comment.
74380         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74381
74382 2003-06-07  Bruno Haible  <bruno@clisp.org>
74383
74384         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74385         avoid AC_CONFIG_LINKS.
74386         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74387         fnmatch.h, to avoid AC_CONFIG_LINKS.
74388         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74389
74390 2003-06-07  Bruno Haible  <bruno@clisp.org>
74391
74392         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74393         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74394         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74395         directory.
74396         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74397         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74398         directory.
74399
74400 2003-06-06  Jim Meyering  <jim@meyering.net>
74401
74402         Merge from coreutils.
74403         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74404         Consolidate declarations and initializations of *_base* locals.
74405
74406         Merge from coreutils.
74407         This avoids a core dump on systems without GNU putenv,
74408         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74409         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74410         (unsetenv): New static function, from GNU libc.
74411         (rpl_putenv): Use it.
74412
74413         * lib/modechange.c: Remove trailing blanks.
74414
74415         Merge from coreutils.
74416         * lib/fsusage.c: Remove declaration of statfs.
74417         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74418
74419         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74420
74421 2003-06-06  Jim Meyering  <jim@meyering.net>
74422
74423         * lib/stdbool_.h: Renamed from stdbool.h.in.
74424
74425 2003-06-06  Jim Meyering  <jim@meyering.net>
74426             Bruno Haible  <bruno@clisp.org>
74427
74428         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74429         Adjust Makefile.am snippet not to redirect directly to target.
74430         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74431
74432 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74433
74434         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74435         mismatch, look in future quarters as well as past.  This fixes a
74436         bug when processing fall-backwards gaps immediately after a long
74437         period of daylight-saving time.
74438
74439         * lib/mktime.c: Assume freestanding C89 or better.
74440         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74441         (__P): Remove; not used.
74442         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74443         (mktime, not_equal_tm, print_tm, check_result,
74444         main): Use prototypes.  Use const * where appropriate.
74445         (main): Fix typo in testing code that uncovered by above changes.
74446         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74447
74448 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74449
74450         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74451         locale.h, localeconv.  This merges changes from coreutils.
74452
74453         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74454         It can be removed after the next Autoconf is released.
74455         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74456         needed.
74457
74458 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74459
74460         * lib/mktime.c: Fix Debian bug 177940
74461         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74462         (localtime_offset): Now long int, not time_t, because we want it
74463         to be guaranteed to be signed.  All uses changed.
74464         (__mktime_internal): If overflow would occur when adding offset,
74465         don't add it.
74466
74467         Merge 'human' changes from coreutils.  Rewrite to support
74468         locale-specific notations like thousands separators.
74469         * lib/human.c: Simplify authorship notice.
74470         Include human.h immediately after config.h.
74471         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74472         <limits.h>: Do not include, since human.h does.
74473         (SIZE_MAX, UINTMAX_MAX): New macros.
74474         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74475         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74476         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74477         (power_letter): Renamed from suffixes.
74478         (generate_suffix_backwards): Remove.
74479         (adjust_value): Now takes int style (because of human.h changes)
74480         and long double value (for greater precision on some platforms).
74481         (group_number): New function.
74482         (human_readable): Use it.  Use integer options, not enum.
74483         Put the options before the sizes in the arg list.
74484         Support all the new options.
74485         The old human_readable function has been removed;
74486         use inttostr.h instead.
74487         (human_readable, default_block_size, humblock):
74488         Use uintmax_t, not int, for block sizes.
74489         (human_readable_inexact, block_size_types): Remove.
74490         (block_size_opts): New constant.
74491         (human_options): Renamed from human_block_size, with new signature
74492         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74493         * lib/human.h: Add copyright and authorship notice.
74494         Include <limits.h> and <stdbool.h> unconditionally.
74495         (PARAMS): Remove.  All uses removed.
74496         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74497         (enum human_inexact_style): Remove tag; now a nameless enum.
74498         (human_floor, human_ceiling, human_round_to_even): Now have
74499         values 2, 0, 1 rather than -1, 1, 0.
74500         (human_group_digits, human_suppress_point_zero, human_autoscale,
74501         human_base_1024, human_SI, human_B): New constants.
74502         (human_readable_inexact, human_block_size): Remove.
74503         (human_readable): Size args are now uintmax_t, not int.
74504         (human_options): New decl.
74505
74506         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74507         unnecessary now that we assume C89 or better.  This change
74508         imported from coreutils.
74509
74510         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74511         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74512         in the 2003-05-30 sync from glibc.
74513
74514         .h files should stand alone, but we shouldn't include <sys/types.h>
74515         if we can get away with just <stddef.h>.
74516
74517         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74518         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74519         rather than <sys/types.h>, as we merely need size_t.
74520         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74521         to get size_t.
74522         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74523         Include <stdio.h>, to get FILE.
74524         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74525         memcasecmp.h has included <stddef.h> and all we need is size_t.
74526         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74527         our interface, instead of including <sys/types.h>
74528
74529 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74530
74531         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74532         now, as glibc mktime is buggy on non-glibc systems.
74533
74534 2003-06-03  Karl Berry  <karl@gnu.org>
74535
74536         * config/config.sub: update from prep.
74537
74538 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74539
74540         [from coreutils]
74541         Fix some minor time-related bugs with POSIX time arguments.
74542         Some valid time stamps were being rejected (notably -1, and
74543         time stamps before 1900 on 64-bit hosts).  And some invalid
74544         time stamps were being accepted, e.g. September 31.
74545
74546         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74547         that we can return (time_t) -1 successfully.
74548         * lib/posixtm.c: Likewise.
74549         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74550         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74551         (t): Remove static var.
74552         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74553         of static var.  All uses changed.
74554         (year): Do not reject years before 1900; they can occur with
74555         64-bit time_t.
74556         (posix_time_parse): Do not check for out-of-range components;
74557         that is now the caller's responsibility, since our checks were
74558         only approximations.
74559         (posixtime): Use mktime to check for out-of-range components,
74560         since it knows them exactly.
74561         If mktime returns (time_t) -1, check whether an error actually occurred
74562         by invoking localtime on -1.
74563         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74564         posixtime failures better.
74565         Improve the test data (in comments only).
74566
74567 2003-06-02  Karl Berry  <karl@gnu.org>
74568
74569         * config/mkinstalldirs (version): new variable.
74570         (--version): new option.
74571         (usage): improve message.
74572
74573 2003-05-30  Karl Berry  <karl@gnu.org>
74574
74575         * lib/mktime.c: update from libc.
74576
74577 2003-05-30  Bruno Haible  <bruno@clisp.org>
74578
74579         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74580         * config/config.rpath: Upgrade to gettext-0.12.1.
74581
74582 2003-05-30  Bruno Haible  <bruno@clisp.org>
74583
74584         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74585         * m4/nls.m4: New file, from gettext-0.12.1.
74586         * m4/po.m4: New file, from gettext-0.12.1.
74587         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74588
74589 2003-05-30  Bruno Haible  <bruno@clisp.org>
74590
74591         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74592         * lib/localcharset.h: Likewise.
74593         * lib/localcharset.c: Likewise.
74594
74595 2003-05-29  Karl Berry  <karl@gnu.org>
74596
74597         * config/config.rpath: update from gettext.
74598
74599 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74600
74601         Assume the headers required for C89 freestanding compilers.
74602         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74603         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74604         * m4/human.m4 (gl_HUMAN): Likewise.
74605         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74606         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74607         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74608         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74609         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74610         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74611
74612 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74613
74614         Assume the headers required for C89 freestanding compilers.
74615         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74616         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74617         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74618         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74619         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74620         define, since <limits.h> is guaranteed to do that.
74621         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74622         * lib/exclude.c: Include <stdbool.h> unconditionally.
74623         * lib/tempname.c: Include <stddef.h> unconditionally.
74624         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74625         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74626         <stddef.h> does that.
74627         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74628         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74629         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74630         needed.
74631         * lib/xstrtol.c: Likewise.
74632         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74633         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74634
74635         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74636         warnings on some platforms.
74637
74638         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74639         arbitrarily.
74640
74641 2003-05-26  Jim Meyering  <jim@meyering.net>
74642
74643         Merge in a change from coreutils:
74644         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74645         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74646         that condition, rather than `-1' which is slightly misleading.
74647         Change the name of the cache variable to have the gl_ prefix.
74648         Prompted by a patch from Richard Dawe for DJGPP.
74649
74650 2003-05-24  Karl Berry  <karl@gnu.org>
74651
74652         * config/config.guess: update from prep.
74653
74654 2003-05-22  Karl Berry  <karl@gnu.org>
74655
74656         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74657
74658 2003-05-20  Karl Berry  <karl@gnu.org>
74659
74660         * config/config.guess: update from prep.
74661
74662 2003-05-18  Karl Berry  <karl@gnu.org>
74663
74664         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74665         might actually be set by the user.
74666
74667         * config/depcomp, install-sh, mdate-sh: update from automake.
74668
74669 2003-05-17  Bruno Haible  <bruno@clisp.org>
74670
74671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74672         invalid expansion for AC_EGREP_CPP.
74673         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74674         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74675         Suggested by Akim Demaille <akim@epita.fr> in
74676         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74677
74678 2003-05-12  Jim Meyering  <jim@meyering.net>
74679
74680         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74681         the space-padded-by-default conversion specifiers, %e, %k, %l.
74682
74683 2003-05-12  Bruno Haible  <bruno@clisp.org>
74684
74685         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74686         the string is longer than 4 KB.
74687
74688 2003-05-11  Karl Berry  <karl@gnu.org>
74689
74690         * config/config.{guess,sub}: update from prep.
74691
74692 2003-05-09  Bruno Haible  <bruno@clisp.org>
74693
74694         * modules/error: Add m4/strerror_r.m4 to file list.
74695
74696 2003-05-03  Bruno Haible  <bruno@clisp.org>
74697
74698         Upgrade to Unicode-4.0.
74699         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74700         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74701         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74702         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74703         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74704         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74705         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74706         Change width of U+E0100..U+E01EF from 1 to 0.
74707
74708 2003-04-25  Jim Meyering  <jim@meyering.net>
74709
74710         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74711         of type size_t, not int.
74712
74713 2003-04-25  Bruno Haible  <bruno@clisp.org>
74714
74715         * lib/copy-file.c: Include <stddef.h>, for size_t.
74716
74717 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74718
74719         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74720         code which expansion is under static control.  Patch imported from
74721         Akim Demaille's patch to Bison; see
74722         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74723
74724 2003-04-14  Bruno Haible  <bruno@clisp.org>
74725
74726         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74727
74728 2003-04-11  Jim Meyering  <jim@meyering.net>
74729
74730         Merge changes from Coreutils.
74731
74732         2003-03-22  Jim Meyering  <jim@meyering.net>
74733
74734         * lib/strftime.c (widen): Cast alloca return value to proper type.
74735
74736         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74737
74738         From GNU libc.
74739         * lib/strftime.c (my_strftime): Handle very large width
74740         specifications for numeric values correctly.  Improve checks for
74741         overflow.
74742
74743         2003-01-19  Jim Meyering  <jim@meyering.net>
74744
74745         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74746         definitions.
74747         (nl_get_alt_digit) [! defined my_strftime]: Define.
74748         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74749         _nl_get_alt_digit and _nl_get_walt_digit.
74750
74751         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74752         libc. These changes have no effect outside of _LIBC.
74753
74754 2003-04-10  Bruno Haible  <bruno@clisp.org>
74755
74756         * modules/findprog: New file.
74757         * MODULES.html.sh (func_all_modules): Add it.
74758
74759 2003-04-10  Bruno Haible  <bruno@clisp.org>
74760
74761         * m4/findprog.m4: New file.
74762         * m4/eaccess.m4: New file.
74763
74764 2003-04-10  Bruno Haible  <bruno@clisp.org>
74765
74766         * lib/findprog.h: New file, from GNU gettext.
74767         * lib/findprog.c: New file, from GNU gettext.
74768
74769 2003-04-05  Jim Meyering  <jim@meyering.net>
74770
74771         Merge changes from Coreutils.
74772
74773         * lib/exclude.h (PARAMS): Remove definition and uses.
74774         * lib/exclude.c: Remove uses of `PARAMS'.
74775
74776         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74777         Add test-cases for DOS filenames. Declare program_name.
74778         (main): Set up program_name.  Patch by Rich Dawe.
74779
74780         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74781         error from mntctl.
74782         Use mntctl's return value to drive the entry-processing loop, since
74783         we can't rely on the value of the vmt_length member in the last
74784         entry.  On some systems doing so could result in exhausting
74785         virtual memory.  Based in part on a patch from Mike Jetzer.
74786
74787 2003-04-04  Bruno Haible  <bruno@clisp.org>
74788
74789         * modules/linebreak: New file.
74790         * MODULES.html.sh (func_all_modules): Add it.
74791
74792 2003-04-04  Bruno Haible  <bruno@clisp.org>
74793
74794         * m4/linebreak.m4: New file.
74795
74796 2003-04-04  Bruno Haible  <bruno@clisp.org>
74797
74798         * lib/linebreak.h: New file, from GNU gettext.
74799         * lib/linebreak.c: New file, from GNU gettext with slight
74800         modifications.
74801         * lib/lbrkprop.h: New file, from GNU gettext.
74802
74803 2003-04-03  Bruno Haible  <bruno@clisp.org>
74804
74805         * modules/utf8-ucs4: New file.
74806         * modules/utf16-ucs4: New file.
74807         * modules/ucs4-utf8: New file.
74808         * modules/ucs4-utf16: New file.
74809         * MODULES.html.sh (func_all_modules): Add them.
74810
74811 2003-04-03  Bruno Haible  <bruno@clisp.org>
74812
74813         * m4/utf-ucs4.m4: New file.
74814         * m4/ucs4-utf.m4: New file.
74815
74816 2003-04-03  Bruno Haible  <bruno@clisp.org>
74817
74818         * lib/utf8-ucs4.h: New file, from GNU gettext.
74819         * lib/utf16-ucs4.h: New file, from GNU gettext.
74820         * lib/ucs4-utf8.h: New file, from GNU gettext.
74821         * lib/ucs4-utf16.h: New file, from GNU gettext.
74822
74823 2003-04-02  Bruno Haible  <bruno@clisp.org>
74824
74825         * modules/binary-io: New file.
74826         * MODULES.html.sh (func_all_modules): Add it.
74827
74828 2003-04-02  Bruno Haible  <bruno@clisp.org>
74829
74830         * lib/binary-io.h: New file, from GNU gettext.
74831
74832 2003-04-01  Bruno Haible  <bruno@clisp.org>
74833
74834         * modules/pathname: New file.
74835         * MODULES.html.sh (func_all_modules): Add it.
74836
74837 2003-04-01  Bruno Haible  <bruno@clisp.org>
74838
74839         * lib/pathname.h: New file, from GNU gettext.
74840         * lib/concatpath.c: New file, from GNU gettext.
74841
74842 2003-03-30  Bruno Haible  <bruno@clisp.org>
74843
74844         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74845
74846 2003-03-30  Bruno Haible  <bruno@clisp.org>
74847
74848         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74849         function chown() doesn't exist.
74850
74851 2003-03-28  Bruno Haible  <bruno@clisp.org>
74852
74853         * modules/copy-file: New file.
74854         * MODULES.html.sh (func_all_modules): Add it.
74855
74856 2003-03-28  Bruno Haible  <bruno@clisp.org>
74857
74858         * m4/copy-file.m4: New file.
74859
74860 2003-03-28  Bruno Haible  <bruno@clisp.org>
74861
74862         * lib/copy-file.h: New file, from GNU gettext.
74863         * lib/copy-file.c: New file, from GNU gettext.
74864
74865 2003-03-18  Jim Meyering  <jim@meyering.net>
74866
74867         * lib/quote.c (quote_n): Fix typo in comment.
74868
74869 2003-03-18  Bruno Haible  <bruno@clisp.org>
74870
74871         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74872         checking.
74873         * m4/onceonly_2_57.m4: Likewise.
74874
74875 2003-03-17  Bruno Haible  <bruno@clisp.org>
74876
74877         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74878         (m4_quote): Remove macro.
74879         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74880
74881 2003-03-14  Jim Meyering  <jim@meyering.net>
74882
74883         Merge changes from Coreutils.
74884         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74885         to be const, in order to avoid warnings.
74886         (obstack_room): Likewise.
74887         (obstack_empty_p): Likewise.
74888
74889 2003-03-14  Bruno Haible  <bruno@clisp.org>
74890
74891         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74892         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74893
74894 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74895
74896         Merge changes from Bison.
74897         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74898         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74899         when compiling Bison 1.875's `bitset bset = obstack_alloc
74900         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74901         * lib/hash.c: Include <stdbool.h> unconditionally.
74902
74903 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74904
74905         * m4/onceonly.m4 (m4_quote): New macro.
74906         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74907         Quote AC_FOREACH variable-expansions properly.
74908
74909 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74910
74911         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74912
74913 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74914
74915         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74916         Reported by Bruce Becker; see:
74917         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74918
74919 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74920             Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74923         Reported by John Hughes, see
74924         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74925
74926 2003-02-20  Bruno Haible  <bruno@clisp.org>
74927
74928         * MODULES.html.sh (func_all_modules): Add poll.
74929
74930 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74931
74932         * modules/poll: New file.
74933
74934 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74935
74936         * lib/poll_.h: New file.
74937         * lib/poll.c: New file.
74938
74939 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74940
74941         * m4/poll.m4: New file.
74942
74943 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74944
74945         * modules/mathl: New file.
74946
74947 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74948
74949         * lib/mathl.h: New file.
74950         * lib/acosl.c: New file.
74951         * lib/asinl.c: New file.
74952         * lib/atanl.c: New file.
74953         * lib/ceill.c: New file.
74954         * lib/cosl.c: New file.
74955         * lib/expl.c: New file.
74956         * lib/floorl.c: New file.
74957         * lib/frexpl.c: New file.
74958         * lib/ldexpl.c: New file.
74959         * lib/logl.c: New file.
74960         * lib/sincosl.c: New file.
74961         * lib/sinl.c: New file.
74962         * lib/sqrtl.c: New file.
74963         * lib/tanl.c: New file.
74964         * lib/trigl.c: New file.
74965         * lib/trigl.h: New file.
74966
74967 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74968
74969         * m4/mathl.m4: New file.
74970
74971 2003-02-18  Bruno Haible  <bruno@clisp.org>
74972
74973         * MODULES.html.sh (func_all_modules): Add mathl.
74974
74975 2003-02-17  Bruno Haible  <bruno@clisp.org>
74976
74977         * modules/mkdtemp: New module.
74978         * MODULES.html.sh (func_all_modules): Add it.
74979
74980 2003-02-17  Bruno Haible  <bruno@clisp.org>
74981
74982         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74983
74984 2003-02-17  Bruno Haible  <bruno@clisp.org>
74985
74986         * lib/mkdtemp.h: New file, from GNU gettext.
74987         * lib/mkdtemp.c: New file, from GNU gettext.
74988
74989 2003-02-02  Jim Meyering  <jim@meyering.net>
74990
74991         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74992         e.g. glibc-2.2.93.
74993
74994 2003-01-31  Bruno Haible  <bruno@clisp.org>
74995
74996         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74997         'rpl_rename'.
74998         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74999         'rpl_strnlen'.
75000         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75001         'rpl_strtod'.
75002         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75003         'rpl_utime'.
75004
75005 2003-01-31  Bruno Haible  <bruno@clisp.org>
75006
75007         * lib/rename.c: #undef rename before defining rpl_rename.
75008         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75009
75010 2003-01-30  Bruno Haible  <bruno@clisp.org>
75011
75012         * modules/vasnprintf, modules/vasprintf: New modules.
75013         * MODULES.html.sh (func_all_modules): Add them.
75014
75015 2003-01-30  Bruno Haible  <bruno@clisp.org>
75016
75017         * m4/signed.m4: New file, from GNU gettext.
75018         * m4/longdouble.m4: New file, from GNU gettext.
75019         * m4/wchar_t.m4: New file, from GNU gettext.
75020         * m4/wint_t.m4: New file, from GNU gettext.
75021         * m4/vasnprintf.m4: New file.
75022         * m4/vasprintf.m4: New file.
75023
75024 2003-01-30  Bruno Haible  <bruno@clisp.org>
75025
75026         * lib/printf-args.h: New file, from GNU gettext.
75027         * lib/printf-args.c: New file, from GNU gettext.
75028         * lib/printf-parse.h: New file, from GNU gettext.
75029         * lib/printf-parse.c: New file, from GNU gettext.
75030         * lib/vasnprintf.h: New file, from GNU gettext.
75031         * lib/vasnprintf.c: New file, from GNU gettext.
75032         * lib/asnprintf.c: New file, from GNU gettext.
75033         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75034         * lib/vasprintf.c: New file, from GNU gettext.
75035         * lib/asprintf.c: New file, from GNU gettext.
75036
75037 2003-01-29  Bruno Haible  <bruno@clisp.org>
75038
75039         * modules/stpncpy: New module.
75040         * MODULES.html.sh (func_all_modules): Add it.
75041
75042 2003-01-29  Bruno Haible  <bruno@clisp.org>
75043
75044         * m4/stpncpy.m4: New file.
75045
75046 2003-01-29  Bruno Haible  <bruno@clisp.org>
75047
75048         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75049         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75050
75051 2003-01-28  Bruno Haible  <bruno@clisp.org>
75052
75053         * modules/c-ctype: New module.
75054         * MODULES.html.sh (func_all_modules): Add it.
75055
75056 2003-01-28  Bruno Haible  <bruno@clisp.org>
75057
75058         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75059         Paul Eggert.
75060         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75061         Paul Eggert.
75062
75063 2003-01-27  Bruno Haible  <bruno@clisp.org>
75064
75065         * modules/xsetenv: New module.
75066         * MODULES.html.sh (func_all_modules): Add it.
75067
75068 2003-01-27  Bruno Haible  <bruno@clisp.org>
75069
75070         * lib/xsetenv.h: New file, from GNU gettext.
75071         * lib/xsetenv.c: New file, from GNU gettext.
75072
75073 2003-01-23  Jim Meyering  <jim@meyering.net>
75074
75075         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75076         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75077
75078 2003-01-23  Bruno Haible  <bruno@clisp.org>
75079
75080         * modules/minmax: New module.
75081         * MODULES.html.sh (func_all_modules): Add it.
75082
75083 2003-01-23  Bruno Haible  <bruno@clisp.org>
75084
75085         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75086         Eggert.
75087
75088 2003-01-22  Bruno Haible  <bruno@clisp.org>
75089
75090         * modules/exit: New module.
75091         * MODULES.html.sh (func_all_modules): Add it.
75092
75093 2003-01-22  Bruno Haible  <bruno@clisp.org>
75094
75095         * lib/exit.h: New file, from GNU gettext.
75096
75097 2003-01-19  Bruno Haible  <bruno@clisp.org>
75098
75099         * gnulib-tool: Recognize option --extract-maintainer.
75100         (func_get_maintainer): New function.
75101         * modules/*: Add Maintainer entry.
75102
75103 2003-01-16  Jim Meyering  <jim@meyering.net>
75104
75105         * m4/regex.m4: The `regex' struct is both input and output.
75106         Initialize it before each use.  Patch by Tim Waugh.
75107
75108 2003-01-16  Bruno Haible  <bruno@clisp.org>
75109
75110         * MODULES.html.sh: Add a table of contents. Add the module name as
75111         leftmost column. Add hyperlinks.
75112
75113 2003-01-15  Bruno Haible  <bruno@clisp.org>
75114
75115         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75116
75117 2003-01-15  Bruno Haible  <bruno@clisp.org>
75118
75119         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75120         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75121         suffix.
75122
75123 2003-01-15  Bruno Haible  <bruno@clisp.org>
75124
75125         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75126
75127 2003-01-15  Bruno Haible  <bruno@clisp.org>
75128
75129         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75130         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75131
75132 2003-01-14  Jim Meyering  <jim@meyering.net>
75133
75134         * lib/same.c (same_name): Tweak a comment.
75135
75136 2003-01-14  Bruno Haible  <bruno@clisp.org>
75137
75138         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75139         when a string comparison is sufficient.
75140
75141 2003-01-14  Bruno Haible  <bruno@clisp.org>
75142
75143         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75144         'unsigned int'.
75145
75146 2003-01-14  Bruno Haible  <bruno@clisp.org>
75147
75148         * lib/hash-pjw.c: Add comment about low quality of this function.
75149
75150 2003-01-13  Bruno Haible  <bruno@clisp.org>
75151
75152         * modules/stpcpy: Distribute lib/stpcpy.h.
75153         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75154
75155 2003-01-13  Bruno Haible  <bruno@clisp.org>
75156
75157         * modules/*: Add a description.
75158         * modules/strpbrk: Fix Makefile.am snippet.
75159         * modules/strtoimax: Fix dependencies.
75160         * modules/strtoumax: Likewise.
75161
75162 2003-01-13  Bruno Haible  <bruno@clisp.org>
75163
75164         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75165         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75166         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75167
75168 2003-01-13  Bruno Haible  <bruno@clisp.org>
75169
75170         * gnulib-tool (func_create_testdir): Store config/* files in the main
75171         directory.
75172         * config.rpath: Move to ...
75173         * config/config.rpath: ... here.
75174         * modules/gettext: Contains config/config.rpath, not config.rpath.
75175         * modules/iconv: Likewise.
75176
75177 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75178
75179         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75180         to avoid collisions with libcurses and libreadline.
75181
75182         * m4/getstr.m4: Remove.
75183         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75184
75185 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75186
75187         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75188         to avoid collisions with libcurses and libreadline.
75189
75190         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75191         * lib/getstr.h, getstr.c: Remove.
75192         * lib/getline.c: Include "getline.h", to check interface.
75193         Move body of old getstr.c here: this defines MIN_CHUNK and
75194         declares getdelim2, which is renamed from getstr.
75195         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75196
75197         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75198         All uses changed.
75199         * lib/linebuffer.h: Likewise.
75200         (readline): Remove backward-compatibility macro.
75201
75202 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75203
75204         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75205         to avoid collisions with libcurses and libreadline.
75206         * getstr: Remove.
75207         * MODULES.html.sh: Remove getstr.
75208         * modules/getline: Depend on unlocked-io, not getstr.
75209
75210 2003-01-12  Jim Meyering  <jim@meyering.net>
75211
75212         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75213
75214 2003-01-10  Bruno Haible  <bruno@clisp.org>
75215
75216         * modules/alloca: Change Makefile.am requirements. Simplify Include
75217         requirements. Add lib/alloca_.h to file list.
75218
75219 2003-01-10  Bruno Haible  <bruno@clisp.org>
75220
75221         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75222
75223 2003-01-10  Bruno Haible  <bruno@clisp.org>
75224
75225         * lib/alloca_.h: New file.
75226         * lib/getdate.y: Unconditionally include alloca.h.
75227         * lib/makepath.c: Likewise.
75228         * lib/setenv.c: Likewise.
75229         * lib/userspec.c: Likewise.
75230
75231 2003-01-09  Karl Berry  <karl@gnu.org>
75232
75233         * MODULES.html.sh: include `dirname $0` in PATH, to find
75234         gnulib-tool.
75235
75236 2003-01-09  Bruno Haible  <bruno@clisp.org>
75237
75238         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75239         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75240
75241 2003-01-09  Bruno Haible  <bruno@clisp.org>
75242
75243         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75244
75245 2003-01-09  Bruno Haible  <bruno@clisp.org>
75246
75247         * lib/stdbool.h.in: New file.
75248
75249 2003-01-09  Bruno Haible  <bruno@clisp.org>
75250
75251         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75252         * MODULES.html.sh: Likewise.
75253
75254 2003-01-08  Jim Meyering  <jim@meyering.net>
75255
75256         * lib/full-write.c: Undefine and define-away `const' after inclusion
75257         of errno.h, not before.  Suggestion from Bruno Haible.
75258
75259 2003-01-08  Bruno Haible  <bruno@clisp.org>
75260
75261         * modules/full-read: Depend on full-write.
75262
75263 2003-01-08  Bruno Haible  <bruno@clisp.org>
75264
75265         * lib/safe-read.c: Include specification header first, to ensure its
75266         selfcontainedness.
75267         * lib/full-write.c: Likewise.
75268
75269 2003-01-07  Jim Meyering  <jim@meyering.net>
75270
75271         * lib/full-write.c: Rework so that it may serve to define full_read,
75272         too.
75273         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75274
75275 2003-01-07  Bruno Haible  <bruno@clisp.org>
75276
75277         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75278         <inttypes.h>.
75279         * lib/xstrtol.h: Likewise.
75280         * lib/xstrtoimax.c: Likewise.
75281         * lib/xstrtoumax.c: Likewise.
75282         * lib/human.h: Likewise.
75283
75284         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75285         on systems that have <inttypes.h> but not <stdint.h>.
75286
75287 2003-01-07  Bruno Haible  <bruno@clisp.org>
75288
75289         * MODULES.html.sh: Add copyright notice.
75290         (missed_files): Omit CVS directory entries.
75291         (func_module): Make it work with sed-3.02.
75292         * MODULES.txt: Remove file.
75293
75294 2003-01-06  Jim Meyering  <jim@meyering.net>
75295
75296         * lib/version-etc.c: Update year in translatable copyright string.
75297
75298 2003-01-03  Karl Berry  <karl@gnu.org>
75299
75300         * config/config.{guess,sub}: update from prep.
75301
75302 2003-01-02  Karl Berry  <karl@gnu.org>
75303
75304         * doc/COPYING.DOC: belatedly updated to 1.2.
75305
75306 2003-01-01  Karl Berry  <karl@gnu.org>
75307
75308         * gnulib-tool (func_verify_module): report module name $module in
75309         error message, not $1.
75310         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75311         be created, only if it doesn't exist.
75312         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75313
75314 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75315
75316         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75317
75318 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75319
75320         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75321         memcmp if strcoll doesn't work.
75322
75323 2002-12-31  Bruno Haible  <bruno@clisp.org>
75324
75325         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75326         nonempty.
75327
75328 2002-12-31  Bruno Haible  <bruno@clisp.org>
75329
75330         * lib/memcoll.c (STRCOLL): New macro.
75331         (memcoll): Use it.
75332
75333 2002-12-31  Bruno Haible  <bruno@clisp.org>
75334
75335         * lib/localcharset.h: New file.
75336         * lib/localcharset.c: Include it.
75337         * lib/unicodeio.c: Likewise.
75338
75339 2002-12-31  Bruno Haible  <bruno@clisp.org>
75340
75341         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75342         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75343
75344 2002-12-31  Bruno Haible  <bruno@clisp.org>
75345
75346         * lib/getline.h: Include <stddef.h>, for size_t.
75347
75348         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75349         * lib/unicodeio.c: Don't include <stddef.h>.
75350
75351 2002-12-31  Bruno Haible  <bruno@clisp.org>
75352
75353         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75354         HAVE_TM_ZONE.
75355
75356 2002-12-24  Karl Berry  <karl@gnu.org>
75357
75358         * config/config.guess: update from prep.
75359
75360 2002-12-24  Bruno Haible  <bruno@clisp.org>
75361
75362         General infrasructure.
75363         * m4/README: Rewritten.
75364         * m4/onceonly.m4: New file.
75365         * m4/onceonly_2_57.m4: New file.
75366
75367         Module atexit.
75368         * m4/atexit.m4: New file.
75369
75370         Module strtod.
75371         * m4/strtod.m4: New file.
75372
75373         Module strtol.
75374         * m4/strtol.m4: New file.
75375
75376         Module strtoul.
75377         * m4/strtoul.m4: New file.
75378
75379         Module memchr.
75380         * m4/memchr.m4: New file.
75381
75382         Module memcmp.
75383         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75384         (jm_FUNC_MEMCMP): Invoke it.
75385
75386         Module memcpy.
75387         * m4/memcpy.m4: New file.
75388
75389         Module memmove.
75390         * m4/memmove.m4: New file.
75391
75392         Module memset.
75393         * m4/memset.m4: New file.
75394
75395         Module strcspn.
75396         * m4/strcspn.m4: New file.
75397
75398         Module strpbrk.
75399         * m4/strpbrk.m4: New file.
75400
75401         Module strstr.
75402         * m4/strstr.m4: New file.
75403
75404         Module strerror.
75405         * m4/strerror.m4: New file.
75406
75407         Module mktime.
75408         * m4/mktime.m4: Renamed from jm-mktime.m4.
75409         (gl_PREREQ_MKTIME): New macro.
75410         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75411
75412         Module malloc.
75413         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75414         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75415         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75416
75417         Module realloc.
75418         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75419         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75420         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75421
75422         Module strftime.
75423         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75424         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75425         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75426         gl_TM_GMTOFF.
75427         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75428
75429         Module xalloc.
75430         * m4/xalloc.m4: New file.
75431
75432         Module alloca.
75433         * m4/alloca.m4: New file.
75434
75435         Module putenv.
75436         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75437         (jm_FUNC_PUTENV): Invoke it.
75438
75439         Module setenv.
75440         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75441         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75442         when invoked twice.
75443         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75444         gt_FUNC_SETENV.
75445
75446         Module memrchr.
75447         * m4/memrchr.m4: New file.
75448
75449         Module stpcpy.
75450         * m4/stpcpy.m4: New file.
75451
75452         Module strcase.
75453         * m4/strcase.m4: New file.
75454
75455         Module strdup.
75456         * m4/strdup.m4: New file.
75457
75458         Module strnlen.
75459         * m4/strnlen.m4: New file.
75460
75461         Module strndup.
75462         * m4/strndup.m4: New file.
75463
75464         Module xstrtod.
75465         * m4/xstrtod.m4: New file.
75466
75467         Module xstrtol.
75468         * m4/xstrtol.m4: New file.
75469
75470         Module getdate.
75471         * m4/getdate.m4: New file.
75472
75473         Module unlocked-io.
75474         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75475         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75476         * m4/jm-glibc-io.m4n: Remove file.
75477
75478         Module long-options.
75479         * m4/long-options.m4: New file.
75480
75481         Module md5.
75482         * m4/md5.m4: New file.
75483
75484         Module sha.
75485         * m4/sha.m4: New file.
75486
75487         Module getstr.
75488         * m4/getstr.m4: New file.
75489
75490         Module getline.
75491         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75492         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75493         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75494         simply getline. Infoke gl_PREREQ_GETLINE.
75495
75496         Module obstack.
75497         * m4/obstack.m4: New file.
75498
75499         Module hash.
75500         * m4/hash.m4: New file.
75501
75502         Module readtokens.
75503         * m4/readtokens.m4: New file.
75504
75505         Module strverscmp.
75506         * m4/strverscmp.m4: New file.
75507
75508         Module stdbool.
75509         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75510         OSF/1.
75511
75512         Module strtoll.
75513         * m4/strtoll.m4: New file.
75514
75515         Module strtoull.
75516         * m4/strtoull.m4: New file.
75517
75518         Module strtoimax.
75519         * m4/strtoimax.m4: New file.
75520
75521         Module strtoumax.
75522         * m4/strtoumax.m4: New file.
75523
75524         Module xstrtoimax.
75525         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75526         jm_AC_PREREQ_XSTRTOIMAX.
75527         Moved the strtol prerequisites to strtol.m4.
75528         Moved the strtoll prerequisites to strtoll.m4.
75529         Moved the strtoimax prerequisites to strtoimax.m4.
75530
75531         Module xstrtoumax.
75532         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75533         jm_AC_PREREQ_XSTRTOUMAX.
75534         Moved the strtoul prerequisites to strtoul.m4.
75535         Moved the strtoull prerequisites to strtoull.m4.
75536         Moved the strtoumax prerequisites to strtoumax.m4.
75537
75538         Module chown.
75539         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75540         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75541
75542         Module dup2.
75543         * m4/dup2.m4: New file.
75544
75545         Module ftruncate.
75546         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75547         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75548
75549         Module getgroups.
75550         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75551         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75552
75553         Module gettimeofday.
75554         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75555         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75556         gl_PREREQ_GETTIMEOFDAY.
75557
75558         Module mkdir.
75559         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75560         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75561
75562         Module mkstemp.
75563         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75564         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75565         jm_AC_TYPE_UINTMAX_T.
75566         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75567
75568         Module stat.
75569         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75570         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75571
75572         Module lstat.
75573         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75574         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75575
75576         Module timespec.
75577         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75578         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75579         * m4/st_mtim.m4: Indentation.
75580
75581         Module nanosleep.
75582         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75583         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75584         gl_PREREQ_NANOSLEEP.
75585
75586         Module regex.
75587         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75588         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75589         (gl_REGEX): New macro.
75590
75591         Module rename.
75592         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75593         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75594
75595         Module rmdir.
75596         * m4/rmdir.m4: New file.
75597
75598         Module utime.
75599         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75600         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75601         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75602
75603         Module dirname.
75604         * m4/dirname.m4: New file.
75605
75606         Module getopt.
75607         * m4/getopt.m4: New file.
75608
75609         Module unistd-safer.
75610         * m4/unistd-safer.m4: New file.
75611
75612         Module fnmatch.
75613         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75614         declaration.
75615         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75616         (gl_FUNC_FNMATCH_POSIX): New macro.
75617         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75618         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75619         simply fnmatch.
75620
75621         Module exclude.
75622         * m4/exclude.m4: New file.
75623
75624         Module human.
75625         * m4/human.m4: New file.
75626
75627         Module acl.
75628         * m4/acl.m4: Nop.
75629
75630         Module backupfile.
75631         * m4/backupfile.m4: New file.
75632         * m4/d-ino.m4: Indentation.
75633
75634         Module fsusage.
75635         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75636         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75637         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75638
75639         Module dirfd.
75640         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75641         requirements.
75642
75643         Module euidaccess.
75644         * m4/euidaccess.m4: New file.
75645
75646         Module file-type.
75647         * m4/file-type.m4: New file.
75648
75649         Module fileblocks.
75650         * m4/fileblocks.m4: New file.
75651
75652         Module filemode.
75653         * m4/filemode.m4: New file.
75654
75655         Module isdir.
75656         * m4/isdir.m4: New file.
75657
75658         Module lchown.
75659         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75660         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75661
75662         Module makepath.
75663         * m4/makepath.m4: New file.
75664
75665         Module modechange.
75666         * m4/modechange.m4: New file.
75667
75668         Module mountlist.
75669         * m4/mountlist.m4: New file.
75670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75671         Indentation.
75672
75673         Module path-concat.
75674         * m4/path-concat.m4: New file.
75675
75676         Module pathmax.
75677         * m4/pathmax.m4: New file.
75678
75679         Module same.
75680         * m4/same.m4: New file.
75681
75682         Module save-cwd.
75683         * m4/save-cwd.m4: New file.
75684
75685         Module savedir.
75686         * m4/savedir.m4: New file.
75687
75688         Module xgetcwd.
75689         * m4/xgetcwd.m4: New file.
75690         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75691
75692         Module xreadlink.
75693         * m4/xreadlink.m4: New file.
75694
75695         Module safe-read.
75696         * m4/safe-read.m4: New file.
75697
75698         Module safe-write.
75699         * m4/safe-write.m4: New file.
75700
75701         Module closeout.
75702         * m4/closeout.m4: New file.
75703
75704         Module stdio-safer.
75705         * m4/stdio-safer.m4: New file.
75706
75707         Module getpass.
75708         * m4/getpass.m4: New file.
75709
75710         Module getugroups.
75711         * m4/getugroups.m4: New file.
75712
75713         Module group-member.
75714         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75715         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75716
75717         Module idcache.
75718         * m4/idcache.m4: New file.
75719
75720         Module userspec.
75721         * m4/userspec.m4: New file.
75722
75723         Module gettime.
75724         * m4/clock_time.m4: New file.
75725         * m4/gettime.m4: New file.
75726
75727         Module settime.
75728         * m4/settime.m4: New file.
75729
75730         Module posixtm.
75731         * m4/posixtm.m4: New file.
75732
75733         Module gethostname.
75734         * m4/gethostname.m4: New file.
75735
75736         Module canon-host.
75737         * m4/canon-host.m4: New file.
75738
75739         Module gettext.
75740         * m4/codeset.m4: New file, from gettext-0.11.5.
75741         * m4/gettext.m4: New file, from gettext-0.11.5.
75742         * m4/glibc21.m4: New file, from gettext-0.11.5.
75743         * m4/iconv.m4: New file, from gettext-0.11.5.
75744         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75745         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75746         * m4/inttypes.m4: New file, from gettext-0.11.5.
75747         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75748         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75749         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75750         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75751         * m4/lib-link.m4: New file, from gettext-0.11.5.
75752         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75753         * m4/progtest.m4: New file, from gettext-0.11.5.
75754         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75755         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75756         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75757
75758         Module localcharset.
75759         * m4/localcharset.m4: New file.
75760
75761         Module hard-locale.
75762         * m4/hard-locale.m4: New file.
75763
75764         Module mbswidth.
75765         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75766         onceonly macros.
75767         * m4/mbrtowc.m4: Add comment.
75768
75769         Module memcasecmp.
75770         * m4/memcasecmp.m4: New file.
75771
75772         Module memcoll.
75773         * m4/memcoll.m4: New file.
75774
75775         Module unicodeio.
75776         * m4/unicodeio.m4: New file.
75777
75778         Module rpmatch.
75779         * m4/rpmatch.m4: New file.
75780
75781         Module yesno.
75782         * m4/yesno.m4: New file.
75783
75784         Module exitfail.
75785         * m4/exitfail.m4: New file.
75786
75787         Module c-stack.
75788         * m4/c-stack.m4 (gl_C_STACK): New macro.
75789         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75790
75791         Module error.
75792         * m4/error.m4 (gl_ERROR): New macro.
75793         (jm_PREREQ_ERROR): Use onceonly macros.
75794
75795         Module fatal.
75796         * m4/fatal.m4: New file.
75797
75798         Module getloadavg.
75799         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75800         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75801
75802         Module getpagesize.
75803         * m4/getpagesize.m4: New file.
75804
75805         Module getusershell.
75806         * m4/getusershell.m4: New file.
75807
75808         Module physmem.
75809         * m4/physmem.m4: New file.
75810
75811         Module posixver.
75812         * m4/posixver.m4: New file.
75813
75814         Module quotearg.
75815         * m4/quotearg.m4: New file.
75816
75817         Module quote.
75818         * m4/quote.m4: New file.
75819
75820         Module readutmp.
75821         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75822
75823         Module sig2str.
75824         * m4/sig2str.m4: New file.
75825
75826         Other.
75827         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75828         ulonglong.m4.
75829         * m4/intmax_t.m4: New file.
75830         * m4/d-type.m4: Indentation.
75831         * m4/jm-macros.m4: Update.
75832         * m4/prereq.m4 (jm_PREREQ): Update.
75833         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75834         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75835         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75836         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75837         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75838         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75839         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75840         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75841         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75842         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75843         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75844         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75845         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75846         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75847         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75848         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75849         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75850         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75851         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75852
75853 2002-12-24  Bruno Haible  <bruno@clisp.org>
75854
75855         * MODULES.txt: Update according to m4/ changes.
75856
75857         Module gettext.
75858         * config.rpath: New file, from gettext-0.11.5.
75859
75860         * modules/*: New module descriptions.
75861         * gnulib-tool: New file.
75862         * MODULES.html.sh: New file.
75863
75864 2002-12-21  Karl Berry  <karl@gnu.org>
75865
75866         * doc/fdl.texi: update to version 1.2.
75867
75868 2002-12-19  Karl Berry  <karl@gnu.org>
75869
75870         * config/config.guess: update from prep.
75871
75872 2002-12-18  Bruno Haible  <bruno@clisp.org>
75873
75874         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75875         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75876
75877 2002-12-17  Bruno Haible  <bruno@clisp.org>
75878
75879         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75880         stdlib.h, string.h.
75881
75882 2002-12-17  Bruno Haible  <bruno@clisp.org>
75883
75884         * lib/canon-host.c (strdup): Remove unused declaration.
75885
75886         * lib/fsusage.c: Include full_read.h.
75887         (get_fs_usage): Use full_read instead of safe_read.
75888
75889         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75890
75891 2002-12-12  Karl Berry  <karl@gnu.org>
75892
75893         * config/config.guess: update from prep.
75894
75895 2002-12-11  Bruno Haible  <bruno@clisp.org>
75896
75897         * m4/setenv.m4: New file, from gettext-0.11.5.
75898
75899 2002-12-11  Bruno Haible  <bruno@clisp.org>
75900
75901         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75902         not unsetenv().
75903         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75904         modifications:
75905
75906         2002-12-11  Bruno Haible  <bruno@clisp.org>
75907
75908                 * setenv.c (alloca): Fall back to malloc.
75909                 (freea): New macro.
75910                 (setenv): Use freea() to free memory allocated with alloca().
75911
75912         2002-11-13  Bruno Haible  <bruno@clisp.org>
75913
75914                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75915                 function declarations.
75916                 * unsetenv.c (unsetenv): Likewise.
75917
75918         2002-03-04  Bruno Haible  <bruno@clisp.org>
75919
75920                 Portability to AIX 4.3.3.
75921                 * unsetenv.c: New file, extracted from setenv.c.
75922                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75923
75924         2001-12-20  Bruno Haible  <bruno@clisp.org>
75925
75926                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75927                 use malloc instead. For SunOS 4.
75928
75929         2001-12-11  Bruno Haible  <bruno@clisp.org>
75930
75931                 * setenv.c: Declare alloca.
75932                 (compar_fn_t): New typedef.
75933                 (KNOWN_VALUE, STORE_VALUE): Use it.
75934
75935         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75936         setenv.h.
75937
75938 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75939
75940         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75941         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75942         Choose values that are less likely to collide with system fnmatch
75943         options.
75944         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75945         defined (e.g., a pure POSIX system).
75946         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75947         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75948
75949 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75950
75951         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75952         a pain in practice to deal with generated m4 files.  This change
75953         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75954
75955         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75956         and jm-glibc-io.m4, as they are no longer a special case.
75957         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75958         kludge and the auto-generation stuff.  Check only whether the
75959         functions are declared, not whether they exist, since older hosts
75960         that don't declare the functions can't use the optimization anyway.
75961
75962 2002-12-06  Jim Meyering  <jim@meyering.net>
75963
75964         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75965
75966         Merge in changes from libc's misc/error.c, in preparation
75967         for the merge of gnulib's changes back into libc.
75968
75969         * lib/error.c (_): Define only if not already defined.
75970         Move definition to follow all #include directives.
75971         Include unlocked-io.h only if !_LIBC.
75972         [_LIBC]: Include <libio/libioP.h>.
75973         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75974         (fflush): Tweak definition to use INTUSE.
75975         (putc): Define.
75976
75977 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75978
75979         * lib/alloca.c [defined emacs]: Include "lisp.h".
75980         (xalloc_die) [defined emacs]: New macro.
75981         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75982         [! defined emacs]: Include <xalloc.h>.
75983         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75984         (pointer): Typedef to POINTER_TYPE *.
75985         (malloc): Remove decl; we now always use xmalloc.
75986         (alloca): Use old-style definition, since Emacs needs this.
75987         Check for arithmetic overflow when computing combined size.
75988
75989 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75990
75991         Do not generate unlocked-io.h automatically, since it's easier to
75992         maintain it by hand.
75993
75994         * lib/unlocked-io.h: New file, from GNU diffutils,
75995         but with proper copyright notice and attribution.
75996         * lib/gen-uio: Remove.
75997         * lib/Makefile.am: Add copyright notice.
75998         (libfetish_a_SOURCES): Add unlocked-io.h.
75999         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76000         (DISTCLEANFILES, io_functions): Remove macros.
76001         (EXTRA_DIST): Remove gen_uio.
76002         (unlocked-io.h): Remove rule.
76003
76004 2002-12-04  Jim Meyering  <jim@meyering.net>
76005
76006         Reflect the fact that stat.c and lstat.c are no longer generated.
76007         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76008         (DISTCLEANFILES): Likewise.
76009         (EXTRA_DIST): Likewise.
76010         (all_local): Don't depend on stat.c or lstat.c.
76011         (stat.c, lstat.c): Remove rules.
76012         (EXTRA_DIST): Remove xstat.in.
76013
76014         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76015         * lib/stat.c: New file.  Contents mostly from xstat.in.
76016         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76017         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76018
76019         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76020         too.
76021         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76022
76023 2002-12-03  Jim Meyering  <jim@meyering.net>
76024
76025         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76026         but not semantics, to minimize the differences between these two files.
76027         (safe_read): Change comment to mention SAFE_READ_ERROR.
76028
76029         * lib/safe-read.c (IS_EINTR): Define.
76030         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76031
76032 2002-12-02  Jim Meyering  <jim@meyering.net>
76033
76034         * lib/safe-read.c (EINTR): Define.
76035         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76036         (INT_MAX): Provide fallback.
76037         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76038
76039         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76040
76041 2002-12-02  Bruno Haible  <bruno@clisp.org>
76042
76043         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76044         Define, taken from safe-read.c.
76045         (INT_MAX): Provide fallback.
76046         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76047         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76048
76049         * lib/safe-read.c (EINTR): Remove definition.
76050         (safe_read): Don't use EINTR if it is absent.
76051
76052 2002-12-01  Jim Meyering  <jim@meyering.net>
76053
76054         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76055         zero.
76056         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76057
76058 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76059
76060         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76061         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76062         with `if (! (value < limit)) abort ();', for readability.
76063
76064 2002-11-26  Karl Berry  <karl@gnu.org>
76065
76066         * lib/strdup.c: copy from libc again, with jim's ok.
76067         * lib/.cppi-disable: re-add strdup.c
76068
76069 2002-11-25  Karl Berry  <karl@gnu.org>
76070
76071         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76072         instead of "strtol.c".
76073
76074 2002-11-25  Karl Berry  <karl@gnu.org>
76075
76076         * config/install-sh: update from automake for variable quoting, $0 in
76077         error msgs, etc.
76078
76079         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76080         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76081         entry.
76082
76083 2002-11-25  Jim Meyering  <jim@meyering.net>
76084
76085         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76086
76087 2002-11-24  Karl Berry  <karl@gnu.org>
76088
76089         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76090         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76091
76092 2002-11-24  Jim Meyering  <jim@meyering.net>
76093
76094         Update from coreutils:
76095
76096         * lib/mktime.c: Merge in changes from libc.
76097
76098         Avoid a link-time failure on some Linux systems.
76099         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76100         (otherwise).
76101         (__mon_yday): Declare with the STATIC attribute.
76102         (__mktime_internal): Likewise.
76103         Based on a report from Greg Schafer.
76104
76105 2002-11-23  Jim Meyering  <jim@meyering.net>
76106
76107         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76108         Use `unsigned', not `int', as type of index.
76109
76110         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76111
76112         * lib/fsusage.c: Remove unneeded parentheses around operands of
76113         `defined'.
76114
76115 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76116
76117         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76118         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76119         so that we can be included first.
76120         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76121         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76122         No need to include stddef.h or sys/types.h any more.
76123         Surround local include files with "", not "<>".
76124         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76125         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76126         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76127         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76128         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76129         (ISPRINT): Remove; no longer needed now that we assume C89.
76130
76131         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76132         Preserve errno.
76133
76134         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76135         quotearg_char): Use SIZE_MAX rather than
76136         (size_t) -1 when we are talking about "infinity".
76137
76138         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76139
76140 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76141
76142         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76143         hint that one should use `if (! x) abort ();' rather than `assert
76144         (x);', and anyway it's one less thing to worry about configuring.
76145         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76146         hash_rehash, hash_insert): Use abort rather than assert.
76147
76148 2002-11-22  Bruno Haible  <bruno@clisp.org>
76149
76150         * lib/safe-read.h: Assume C89. Add comments.
76151         (safe_read): Change return type to size_t.
76152         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76153         byte counts > SSIZE_MAX correctly.
76154         * lib/safe-write.h: New file.
76155         * lib/safe-write.c: New file.
76156         * lib/full-read.h: New file.
76157         * lib/full-read.c: New file.
76158         * lib/full-write.h: Assume C89. Add comments.
76159         * lib/full-write.c: Include safe-write.h.
76160         (full_write): Rewritten to use safe_write.
76161         Suggested by Jim Meyering and Paul Eggert.
76162
76163 2002-11-21  Jim Meyering  <jim@meyering.net>
76164
76165         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76166
76167         Merge in changes from the coreutils.
76168
76169         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76170         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76171         <stdint.h>.
76172         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76173         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76174         int.  Work more efficiently if X is the same width as uintmax_t.
76175         Do not compare X to -1, to avoid bogus compiler warning.
76176         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76177         Don't assume that f_frsize and f_bsize are the same type.
76178
76179         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76180         warning on FreeBSD.
76181
76182         * lib/makepath.c (make_path): Restore umask *before* creating the final
76183         component.
76184         (make_path): Minor reformatting.
76185
76186         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76187         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76188         HAVE_MALLOC/HAVE_REALLOC.
76189
76190         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76191         dummy ones.  At least on GNU/Linux systems, `auto' means something
76192         else.
76193         From Michael Stone.
76194
76195 2002-11-21  Bruno Haible  <bruno@clisp.org>
76196
76197         Remove case insensitive option matching.
76198         * lib/argmatch.h (argcasematch): Remove declaration.
76199         (ARGCASEMATCH): Remove macro.
76200         (__xargmatch_internal): Remove case_sensitive argument.
76201         (XARGMATCH): Update.
76202         (XARGCASEMATCH): Remove macro.
76203         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76204         case_sensitive argument.
76205         (argcasematch): Remove function.
76206         (__xargmatch_internal): Remove case_sensitive argument.
76207         (main): Use XARGMATCH instead of XARGCASEMATCH.
76208
76209         * lib/xmalloc.c: Change compile-time error message. Add comment about
76210         required autoconf version.
76211
76212 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76213
76214         Merge argmatch cleanups from Bison.  Assume C89.
76215
76216         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76217         Include stdlib.h, for EXIT_FAILURE.
76218         Always include <string.h>, since we assume C89.
76219         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76220         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76221         Include <stddef.h> instead, since it's all we need for size_t.
76222         (PARAMS): Remove.  All uses removed.
76223         (ARRAY_CARDINALITY): Do not bother to #undef.
76224         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76225         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76226         Remove unnecessary parentheses.
76227         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76228         Insert necessary parentheses.
76229         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76230         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76231
76232 2002-11-19  Bruno Haible  <bruno@clisp.org>
76233
76234         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76235         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76236
76237         * lib/mbswidth.h (PARAMS): Remove macro.
76238         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76239         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76240
76241         * lib/gcd.h (PARAMS): Remove macro.
76242         (gcd): Use ANSI C function declarations.
76243         * lib/gcd.c (gcd): Likewise.
76244
76245 2002-11-15  Bruno Haible  <bruno@clisp.org>
76246
76247         * lib/strcspn.c: Include <stddef.h>.
76248         (strcspn): Use ANSI C function declaration. Change return type to
76249         size_t. Use NULL.
76250         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76251         (strpbrk): Use NULL.
76252         * lib/strpbrk.h (PARAMS): Remove macro.
76253         (strpbrk): Use ANSI C function declaration.
76254         * lib/strstr.c: Don't include <sys/types.h>.
76255         * lib/strstr.h (PARAMS): Remove macro.
76256         (strstr): Use ANSI C function declarations.
76257
76258 2002-11-14  Karl Berry  <karl@gnu.org>
76259
76260         * config/mkinstalldirs: `do' on separate line, instead of
76261         `for var; do'.
76262
76263 2002-11-06  Bruno Haible  <bruno@clisp.org>
76264
76265         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76266         * lib/gcd.c (gcd): Likewise.
76267
76268 2002-11-05  Bruno Haible  <bruno@clisp.org>
76269
76270         * lib/gcd.h: New file, from gettext-0.11.5.
76271         * lib/gcd.c: New file, from gettext-0.11.5.
76272
76273 2002-11-05  Bruno Haible  <bruno@clisp.org>
76274
76275         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76276         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76277         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76278         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76279
76280         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76281         <libintl.h>.
76282         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76283         <libintl.h>.
76284
76285         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76286         * lib/human.c: Include gettext.h instead of <libintl.h>.
76287         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76288         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76289         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76290         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76291         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76292         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76293         (textdomain): Remove definition.
76294         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76295
76296         * lib/long-options.c: Remove include of <libintl.h> and definition of
76297         _.
76298         * lib/same.c: Remove include of <libintl.h> and definition of _.
76299
76300 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76301
76302         * lib/config.charset: A few additions for Solaris.
76303
76304 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76305
76306         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76307         * lib/localcharset.c (locale_charset): Declare as extern "C".
76308
76309 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76310
76311         * lib/config.charset: msdos in uk_UA uses CP1125.
76312
76313 2002-11-04  Bruno Haible  <bruno@clisp.org>
76314
76315         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76316         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76317         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76318         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76319         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76320
76321 2002-11-04  Bruno Haible  <bruno@clisp.org>
76322
76323         * lib/localcharset.c (locale_charset): Don't return an empty string.
76324
76325 2002-11-04  Bruno Haible  <bruno@clisp.org>
76326
76327         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76328         aliases.
76329
76330 2002-11-04  Bruno Haible  <bruno@clisp.org>
76331
76332         * lib/config.charset: Update for newest glibc. Add canonical names
76333         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76334
76335 2002-11-04  Bruno Haible  <bruno@clisp.org>
76336
76337         * lib/config.charset: Add support for NetBSD.
76338
76339 2002-11-04  Bruno Haible  <bruno@clisp.org>
76340
76341         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76342
76343 2002-11-01  Bruno Haible  <bruno@clisp.org>
76344
76345         * configure.in: Add AC_CONFIG_AUX_DIR call.
76346         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76347         test/Makefile.
76348         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76349
76350 2002-09-28  Karl Berry  <karl@gnu.org>
76351
76352         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76353         installed automake until the next release, since changes have been
76354         made.
76355
76356 2002-09-25  Karl Berry  <karl@gnu.org>
76357
76358         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76359         * lib/getopt*: copy from libc/posix.
76360         * lib/gettext.h: copy from gettext.
76361         * lib/.cppi-disable: add strdup.c, gettext.h.
76362
76363 2002-09-25  Karl Berry  <karl@gnu.org>
76364
76365         * config/srclist.txt: enable gettext.h check.
76366         * config/config.{guess,sub}: update from prep.
76367         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76368                 from automake 1.6.3.
76369         See srclist*.
76370
76371 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76372
76373         * regex.c (PATFETCH): Remove the translating fetch.
76374         (PATFETCH_RAW): Rename to PATFETCH.
76375         (set_image_of_range): New fun.
76376         (SET_RANGE_TABLE_WORK_AREA): Use it.
76377         (regex_compile): Don't translate the pattern chars so eagerly.
76378         Only do it when inserting an `exactn' bytecode or when handling
76379         a char-range.
76380         (mutually_exclusive_p): Avoid empty statement.
76381
76382 2002-07-06  Jim Meyering  <meyering@lucent.com>
76383
76384         * m4/README: Don't mention Makefile.am.in.
76385         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76386
76387 2002-07-01  Jim Meyering  <meyering@lucent.com>
76388
76389         * lib/c-stack.c: Include sys/time.h.
76390         From Volker Borchert.
76391
76392 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76393
76394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76395
76396 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76397
76398         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76399         New macro.  Use it uniformly instead of
76400         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76401         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76402         reported by Vin Shelton.
76403
76404 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76405
76406         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76407         Do not assume SA_SIGINFO behavior.
76408         Bug reported by Jim Meyering on NetBSD 1.5.2.
76409
76410 2002-06-22  Jim Meyering  <meyering@lucent.com>
76411
76412         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76413         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76414
76415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76416         now that configure.ac uses AC_GNU_SOURCE.
76417         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76418         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76419
76420         Update to latest tools.  Suggestions from Paul Eggert.
76421         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76422         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76423         * m4/fnmatch.m4: Likewise.
76424         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76425         to AC_HEADER_STDBOOL
76426
76427 2002-06-22  Jim Meyering  <meyering@lucent.com>
76428
76429         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76430         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76431
76432 2002-06-22  Jim Meyering  <meyering@lucent.com>
76433
76434         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76435
76436         * lib/exitfail.c, exitfail.h: Likewise.
76437         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76438
76439         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76440         of fnmatch.h.
76441         (EXTRA_DIST): Add fnmatch_loop.c.
76442         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76443
76444         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76445         * lib/fnmatch.c: Update from diffutils-2.8.2.
76446         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76447         * lib/fnmatch.h: Remove file.
76448
76449 2002-06-21  Jim Meyering  <meyering@lucent.com>
76450
76451         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76452         * m4/mbrtowc.m4: Likewise.
76453
76454         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76455         * m4/mbswidth.m4: Reflect name change:
76456         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76457         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76458
76459         * m4/lib-link.m4: Update from gettext-0.11.2.
76460         * m4/gettext.m4: Likewise.
76461
76462         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76463         From Alfred M. Szmidt.
76464
76465 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76466
76467         * lib/file-type.h: Report an error if neither S_ISREG nor
76468         S_IFREG is defined, instead of using a test specific to glibc
76469         2.2.  This should be safe, since POSIX requires S_ISREG and
76470         Unix Version 7 had S_IFREG.  We don't need to check for
76471         <sys/types.h> since we don't use any symbols that it defines.
76472
76473 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76474
76475         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76476         $@-t, so that each temporary file name is unique and valid in the first
76477         8 characters, for operation under DOS.
76478
76479 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76480
76481         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76482
76483 2002-06-15  Jim Meyering  <meyering@lucent.com>
76484
76485         Work even with DJGPP 2.03, which lacks support for symlinks.
76486         From Richard Dawe.
76487         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76488         is defined.
76489         * lib/lchown.c (S_ISLNK): Likewise.
76490
76491 2002-06-15  Jim Meyering  <meyering@lucent.com>
76492
76493         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76494         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76495         have been included before this file.
76496
76497 2002-06-14  Jim Meyering  <meyering@lucent.com>
76498
76499         * lib/file-type.h: Use the version from diffutils-2.8.2.
76500         * lib/file-type.c: Likewise.
76501
76502 2002-06-07  Jim Meyering  <meyering@lucent.com>
76503
76504         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76505         They're needed at least for NetBSD 1.5.2.
76506         ($statxfs_includes): Include those same headers.
76507         ($statxfs_includes): Include sys/vfs.h if available.
76508         ($statxfs_includes): Likewise for sys/statvfs.h.
76509         Check for the following members in both structs statfs and statvfs:
76510         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76511
76512 2002-06-01  Jim Meyering  <meyering@lucent.com>
76513
76514         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76515         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76516
76517 2002-05-28  Jim Meyering  <meyering@lucent.com>
76518
76519         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76520         Reported by Volker Borchert.
76521
76522 2002-05-27  Jim Meyering  <meyering@lucent.com>
76523
76524         Fix a problem seen only on nonconforming systems whereby ls.c's
76525         use of localtime, and then of gettimeofday would cause trouble:
76526         the localtime call used to initialize rpl_gettimeofday's save
76527         mechanism would clobber ls's current local time information so
76528         that in any long listing the first file would always be listed
76529         with date 1970-01-01.  Analysis by Volker Borchert.
76530
76531         * lib/gettimeofday.c (localtime): Undefine.
76532         (rpl_localtime): New function.
76533
76534 2002-05-27  Jim Meyering  <meyering@lucent.com>
76535
76536         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76537         localtime.
76538
76539         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76540         use the replacement function; it wouldn't resolve at link time.
76541         Reported by Volker Borchert.
76542
76543 2002-05-22  Jim Meyering  <meyering@lucent.com>
76544
76545         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76546         file-type.h.
76547         * lib/file-type.h: New file.
76548         * lib/file-type.c (file_type): New file/function.  Extracted from
76549         diffutils.
76550
76551 2002-04-30  Jim Meyering  <meyering@lucent.com>
76552
76553         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76554
76555 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76556
76557         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76558
76559 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76560
76561         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76562         Do not check for alloca.h (no longer used) or stdbool.h (was never
76563         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76564
76565 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76566
76567         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76568
76569 2002-04-29  Jim Meyering  <meyering@lucent.com>
76570
76571         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76572         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76573         Use AC_FUNC_STRNLEN here instead.
76574
76575         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76576         With autoconf-2.53a, it's part of AC_PROG_CC.
76577
76578 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76579
76580         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76581         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76582
76583 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76584
76585         * lib/sig2str.h, lib/sig2str.c: New files.
76586         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76587
76588 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76589
76590         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76591         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76592         of 127, since 64 is the largest conceivable number for ancient
76593         nonstandard hosts.
76594         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76595
76596 2002-04-28  Jim Meyering  <meyering@lucent.com>
76597
76598         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76599
76600 2002-04-24  Jim Meyering  <meyering@lucent.com>
76601
76602         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76603         (jm_PREREQ): Use it.
76604
76605         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76606         mach/mach.h fcntl.h.
76607         Check for this function: setlocale.
76608
76609 2002-04-24  Jim Meyering  <meyering@lucent.com>
76610
76611         * lib/gettext.h: New file, from Gettext.
76612         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76613         (libfetish_a_SOURCES): Add gettext.h.
76614
76615 2002-04-16  Jim Meyering  <meyering@lucent.com>
76616
76617         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76618         ut_pid, ut_id, ut_exit.
76619
76620 2002-04-16  Jim Meyering  <meyering@lucent.com>
76621
76622         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76623         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76624         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76625
76626 2002-04-12  Jim Meyering  <meyering@lucent.com>
76627
76628         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76629         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76630         existence of the getmntinfo function.  Needed for Darwin 5.3.
76631
76632         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76633         This is necessary at least on Darwin 5.3.
76634
76635         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76636         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76637         strnlen.o in the library, and that makes some versions of ranlib
76638         object.
76639
76640 2002-04-12  Jim Meyering  <meyering@lucent.com>
76641
76642         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76643
76644 2002-04-09  Jim Meyering  <meyering@lucent.com>
76645
76646         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76647         to be more precise.  Rather than saying we're checking whether the
76648         function `works', say what we're testing.
76649         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76650         Reported by Bruno Haible.
76651
76652 2002-03-10  Jim Meyering  <meyering@lucent.com>
76653
76654         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76655         Suggestion from Santiago Vila.
76656
76657 2002-03-08  Jim Meyering  <meyering@lucent.com>
76658
76659         * lib/rename.c: Mention that this wrapper is needed also on
76660         mips-dec-ultrix4.4 systems.
76661
76662 2002-03-02  Jim Meyering  <meyering@lucent.com>
76663
76664         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76665         not HAVE_CLOCK_SETTIME.
76666
76667 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76668
76669         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76670         Check for clock_settime.
76671
76672 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76673
76674         * lib/nanosleep.h: Rename to....
76675         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76676
76677         * lib/gettime.c: New file.
76678         * lib/settime.c: New file.
76679         * lib/stime.c: Remove.
76680
76681         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76682         timespec.h.  Remove nanosleep.h.
76683
76684 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76685
76686         * m4/acl.m4: New file.
76687         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76688         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76689
76690 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76691
76692         * lib/acl.c, lib/acl.h: New files.
76693         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76694
76695 2002-02-24  Jim Meyering  <meyering@lucent.com>
76696
76697         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76698         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76699         cause trouble.  Reported by Nelson Beebe.
76700
76701 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76702
76703         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76704         compilers that don't know that xalloc_die never returns.
76705
76706 2002-02-20  Jim Meyering  <meyering@lucent.com>
76707
76708         * lib/getdate.c: Regenerate using bison-1.33.
76709
76710 2002-02-17  Jim Meyering  <meyering@lucent.com>
76711
76712         * config/config.guess (main): Don't use `head -1'; it's no longer
76713         portable. Use `sed 1q' instead.
76714
76715 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76716
76717         * m4/codeset.m4: Upgrade to gettext-0.11.
76718         * m4/gettext.m4: Upgrade to gettext-0.11.
76719         * m4/glibc21.m4: Upgrade to gettext-0.11.
76720         * m4/iconv.m4: Upgrade to gettext-0.11.
76721         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76722         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76723         * m4/lib-ld.m4: New file, from gettext-0.11.
76724         * m4/lib-link.m4: New file, from gettext-0.11.
76725         * m4/lib-prefix.m4: New file, from gettext-0.11.
76726         * m4/progtest.m4: Upgrade to gettext-0.11.
76727
76728 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76729
76730         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76731         (jm_PREREQ): Use it.
76732
76733 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76734
76735         * lib/posixver.c, lib/posixver.h: New files.
76736         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76737
76738 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76739             Bruno Haible  <bruno@clisp.org>
76740
76741         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76742         (fwrite_success_callback): New declaration.
76743         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76744         print_unicode_char. Call failure callback instead of error.
76745         (fwrite_success_callback): New function.
76746         (exit_failure_callback): New function.
76747         (fallback_failure_callback): New function.
76748         (print_unicode_char): Call unicode_to_mb.
76749
76750 2002-01-26  Jim Meyering  <meyering@lucent.com>
76751
76752         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76753         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76754
76755 2002-01-26  Jim Meyering  <meyering@lucent.com>
76756
76757         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76758
76759 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76760
76761         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76762
76763 2002-01-22  Jim Meyering  <meyering@lucent.com>
76764
76765         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76766         Otherwise, some versions of automake would omit the rule that makes
76767         Makefile from Makefile.in.
76768
76769 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76770
76771         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76772         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76773         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76774         (memcoll): Set errno to zero if there is no error.
76775
76776         * lib/quotearg.c (quotearg_buffer_restyled):
76777         Fix bug with quoting buffers containing NUL when backslashing escapes.
76778         This bug was exposed by the other changes in this patch.
76779         (quotearg_n_options): New arg ARGSIZE.
76780         All callers changed.
76781         (quoting_options_from_style): New function.
76782         (quotearg_n_style): Use it.
76783         (quotearg_n_style_mem): New function.
76784
76785         * lib/quotearg.h (quotearg_n_style_mem): New function.
76786
76787 2002-01-19  Jim Meyering  <meyering@lucent.com>
76788
76789         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76790         Remove useless quotes: DF_PROG="df".
76791         * m4/strnlen.m4: New file.
76792
76793 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76794
76795         * lib/backupfile.c (ISDIGIT): Comment fix.
76796         * lib/getdate.y (ISDIGIT): Likewise.
76797         * lib/posixtm.c (ISDIGIT, year): Likewise.
76798         * lib/strverscmp.c (ISDIGIT): Likewise.
76799         * lib/userspec.c (ISDIGIT): Likewise.
76800
76801 2002-01-16  Jim Meyering  <meyering@lucent.com>
76802
76803         * lib/getdate.y: Add three semicolons, each just before a closing
76804         brace. Bison (as of version 1.31) no longer papers over that mistake.
76805
76806 2002-01-05  Jim Meyering  <meyering@lucent.com>
76807
76808         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76809
76810 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76811
76812         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76813         not silently exit merely because the output buffer happens to
76814         have nothing pending.
76815
76816 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76817
76818         See the big note in ../ChangeLog.
76819         * lib/human.c (suffixes): Prefer K to k for 1024.
76820         (generate_suffix_backwards): New function.
76821         (human_readable_inexact): Use it.
76822         * lib/xstrtol.c (__xstrtol): If there is no number but there
76823         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76824         Accept 'K' as well as 'k'.
76825
76826 2001-12-15  Jim Meyering  <meyering@lucent.com>
76827
76828         * lib/regex.h (__restrict_arr): Update from libc.
76829
76830         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76831         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76832         (STREQ): Define.
76833
76834 2001-12-14  Jim Meyering  <meyering@lucent.com>
76835
76836         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76837         Suggestion from Bruno Haible.
76838
76839 2001-12-10  Jim Meyering  <meyering@lucent.com>
76840
76841         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76842         xrealloc, Instead, include "xalloc.h".
76843         (initbuffer): Don't cast xmalloc return value to char*.
76844         (readline): Reword comment.
76845         Don't cast xrealloc return value to char*
76846         Return NULL, not 0.
76847
76848 2001-12-09  Jim Meyering  <meyering@lucent.com>
76849
76850         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76851         about `signed and unsigned type in conditional expression'.
76852         * lib/posixtm.c (posix_time_parse): Likewise.
76853
76854         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76855
76856         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76857         to avoid a pedantic warning.
76858
76859         * lib/getstr.c: Don't include assert.h.
76860         (getstr): Remove warning-evoking assertions.
76861         Return -1 if offset parameter is out of bounds.
76862         Change the type of a local from int to size_t.
76863
76864         * lib/strftime.c (my_strftime_localtime_r): Include this function
76865         definition in the `#if ! HAVE_TM_GMTOFF' block.
76866
76867         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76868         Include xalloc.h instead.
76869
76870 2001-12-02  Jim Meyering  <meyering@lucent.com>
76871
76872         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76873         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76874         included.
76875
76876         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76877         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76878
76879 2001-11-30  Akim Demaille  <akim@epita.fr>
76880
76881         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76882         before being defined.
76883
76884 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76885
76886         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76887         First arg is int, not unsigned.
76888         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76889         (SIZE_MAX, UINT_MAX): New macros.
76890         (quotearg_n_options): Abort if N is negative.
76891         Avoid overflow check on hosts where size_t is 64 bits and int
76892         is 32 bits, as overflow is impossible there.
76893         Fix off-by-one typo that caused unnecessary reallocation.
76894
76895 2001-11-27  Jim Meyering  <meyering@lucent.com>
76896
76897         * lib/tempname.c: Merge with version from libc.
76898         * lib/regex.c: Likewise.
76899
76900         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76901         systems for which STDC_HEADERS is 0, it was not included, resulting in
76902         a warning about an integer-to-pointer conversion problem with getenv.
76903         Reported by Volker Borchert.
76904
76905 2001-11-26  Jim Meyering  <meyering@lucent.com>
76906
76907         * lib/gtod.h: Remove file.
76908         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76909         * lib/gettimeofday.c: Don't include gtod.h.
76910         (GTOD_init): Remove function.
76911         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76912         Suggestion from Volker Borchert.
76913
76914 2001-11-23  Jim Meyering  <meyering@lucent.com>
76915
76916         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76917         it.
76918         * lib/hash.c (struct hash_table): Define it here instead.
76919
76920 2001-11-22  Jim Meyering  <meyering@lucent.com>
76921
76922         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76923
76924 2001-11-20  Jim Meyering  <meyering@lucent.com>
76925
76926         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76927         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76928
76929 2001-11-19  Jim Meyering  <meyering@lucent.com>
76930
76931         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76932         directory.  Use "conftestXXXXXX" as the template.
76933         Suggestion from Paul Eggert.
76934
76935         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76936         immediately, so the test doesn't mistakenly hit the max-open-files
76937         limit.
76938
76939 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76940
76941         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76942         (TEMPORARIES): New macro.
76943         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76944         removes an artificial limitation (e.g. HP-UX 10.20, where
76945         TMP_MAX is 17576).
76946
76947 2001-11-18  Jim Meyering  <meyering@lucent.com>
76948
76949         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76950
76951 2001-11-18  Jim Meyering  <meyering@lucent.com>
76952
76953         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76954         on SunOS 4.
76955
76956         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76957         files will be created before anything else.
76958
76959 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76960
76961         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76962         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76963
76964 2001-11-17  Jim Meyering  <meyering@lucent.com>
76965
76966         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76967         Prompted by a report from Bob Proulx.
76968
76969         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76970         Instead, require UTILS_FUNC_MKSTEMP.
76971
76972 2001-11-17  Jim Meyering  <meyering@lucent.com>
76973
76974         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76975         Now, that's done as part of AC_FUNC_STRTOD.
76976
76977 2001-11-17  Jim Meyering  <meyering@lucent.com>
76978
76979         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76980         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76981         rather than group writable.  Patch by Juan F. Codagnone.
76982
76983         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76984         xrealloc, Instead, include "xalloc.h".
76985
76986         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76987         Remove explicit declarations of xmalloc, xrealloc,
76988         and xstrdup.  Instead, include "xalloc.h".
76989
76990         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76991         unlocked-io.h.
76992         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76993         Likewise.
76994         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76995
76996         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76997         Reported by Padraig Brady.
76998
76999         * lib/mkstemp.c: #undef mkstemp.
77000         Include config.h.
77001         (rpl_mkstemp): Rename from mkstemp.
77002         Protoize.
77003
77004 2001-11-16  Jim Meyering  <meyering@lucent.com>
77005
77006         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77007         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77008         determine the amount of total physical memory, use pstat_getstatic.
77009         HPUX-11 doesn't define _SC_PHYS_PAGES.
77010         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77011         If sysconf couldn't be used to determine the amount of available
77012         physical memory, use both pstat_getstatic and pstat_getdynamic.
77013         Based on a patch from Bob Proulx.
77014
77015 2001-11-10  Jim Meyering  <meyering@lucent.com>
77016
77017         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77018         (jm_PREREQ): Use it.
77019
77020 2001-11-09  Jim Meyering  <meyering@lucent.com>
77021
77022         * m4/jm-macros.m4: Require autoconf-2.52f.
77023         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77024         Use these AC_-prefixed names, not the AM_-prefixed ones.
77025
77026         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77027
77028 2001-11-05  Jim Meyering  <meyering@lucent.com>
77029
77030         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77031
77032 2001-11-04  Jim Meyering  <meyering@lucent.com>
77033
77034         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77035         $DEFS.
77036
77037 2001-11-03  Jim Meyering  <meyering@lucent.com>
77038
77039         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77040         of AC_DEFUN.
77041
77042         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77043         know the name of the variable in the macro definition.
77044
77045 2001-11-03  Jim Meyering  <meyering@lucent.com>
77046
77047         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77048         in argmatch_to_argument call.
77049
77050         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77051         argument.
77052
77053         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77054         e.g., a fault due to an attempt to free a NULL pointer.
77055
77056 2001-11-01  Jim Meyering  <meyering@lucent.com>
77057
77058         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77059         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77060
77061 2001-11-01  Jim Meyering  <meyering@lucent.com>
77062
77063         * lib/dirfd.c, lib/dirfd.h: New files.
77064         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77065
77066         * lib/hash.c (hash_print) [TESTING]: Clean up.
77067
77068 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77069
77070         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77071         to avoid a warning if -Wall.
77072
77073 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77074
77075         * README: New file
77076         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77077         (per RMS's instructions, this is now the canonical source)
77078         * lgpl/, gpl/: New directories.
77079
77080 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77081
77082         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77083
77084 2001-10-21  Jim Meyering  <meyering@lucent.com>
77085
77086         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77087         this code would end up calling gettext even in packages built
77088         with --disable-nls.
77089         * lib/getopt.c (_): Likewise.
77090         * lib/regex.c (_): Likewise.
77091
77092 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77093
77094         * m4/error.m4 (jm_PREREQ_ERROR):
77095         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77096         AC_FUNC_STRERROR_R does that.
77097         Check for strerror declaration.
77098
77099         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77100         are supposed to have them these days.
77101         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77102         Merge changes from latest Autoconf CVS.
77103         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77104         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77105         POSIX decided to standardize on the int flavor of strerror_r.
77106
77107 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77108
77109         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77110         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77111         Use strerror_r that is only a macro, even if it is not a function.
77112         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77113         (private_strerror): Use prototypes, not old-style function definition.
77114         (print_errno_message): New function.
77115         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77116         char*-flavored one.
77117         (error_tail, error, error_at_line): Use it.
77118
77119 2001-10-11  Jim Meyering  <meyering@lucent.com>
77120
77121         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77122         and quote_n (1, ... to avoid clobbering a buffer.
77123
77124 2001-10-05  Jim Meyering  <meyering@lucent.com>
77125
77126         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77127         hash-pjw.h.
77128         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77129         * lib/hash-pjw.h: New file.
77130
77131 2001-09-30  Jim Meyering  <meyering@lucent.com>
77132
77133         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77134         `struct fsstat' has the `f_fstypename' member.
77135         Use that to define FS_TYPE, which is now used to make
77136         the getfsstat link test tighter.
77137
77138 2001-09-30  Jim Meyering  <meyering@lucent.com>
77139
77140         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77141         Include <sys/ucred.h>, for Apple Darwin.
77142         Include sys/mount.h and sys/fs_types.h only if available.
77143         (FS_TYPE): Define.
77144         (read_filesystem_list): Use FS_TYPE.
77145
77146 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77147
77148         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77149         a boolean context.
77150
77151 2001-09-29  Jim Meyering  <meyering@lucent.com>
77152
77153         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77154         [one-argument getmntent function]): Include stdio.h before mntent.h.
77155         SunOS 4.1.x needs it for the declaration of `FILE'.
77156         Patch by Volker Borchert.
77157
77158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77159         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77160         sys/fs_types.h, and make the link-test for getfsstat guard #include
77161         directives with appropriate #if HAVE_*_H tests so that we can
77162         detect getfsstat on Apple Darwin1.3.7 systems.
77163         Reported by Nelson Beebe.
77164         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77165
77166 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77167
77168         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77169         #defines strtoimax.  Also treat the other strto* functions
77170         like strtoimax.
77171
77172         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77173         Check for strtoul and strtoumax,
77174         as those declarations are made even in the signed case.
77175         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77176         Likewise, for strtol and strtoimax.
77177
77178 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77179
77180         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77181         #defines strtoimax.  Also treat the other strto* functions
77182         like strtoimax.
77183
77184         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77185         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77186         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77187
77188 2001-09-26  Jim Meyering  <meyering@lucent.com>
77189
77190         Most macros in unlocked-io.h had the wrong number of arguments.
77191         * lib/gen-uio: New script.
77192         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77193         * lib/unlocked-io.hin: Remove file.
77194         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77195         rather than trying to embed it here.
77196         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77197         Reported by Padraig Brady.
77198
77199 2001-09-25  Volker Borchert  <bt@teknon.de>
77200
77201         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77202         `result'.
77203
77204 2001-09-24  Jim Meyering  <meyering@lucent.com>
77205
77206         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77207
77208 2001-09-23  Jim Meyering  <meyering@lucent.com>
77209
77210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77211         instead of the mere test for existence of mntent.h.  The latter
77212         would get a false-positive on AIX 3.4 systems.
77213         In the outer getmntent if-block, don't die if neither of the getmntent
77214         tests succeeds.  Instead, just fall through and continue with the
77215         remaining tests.
77216
77217 2001-09-23  Jim Meyering  <meyering@lucent.com>
77218
77219         * lib/mountlist.c: Remove useless parentheses in #if directives.
77220         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77221         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77222
77223 2001-09-22  Jim Meyering  <meyering@lucent.com>
77224
77225         * m4/gettext.m4: New file.  From gettext.
77226         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77227         * m4/progtest.m4: Likewise
77228         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77229         * m4/glibc21.m4: Likewise.
77230
77231         * m4/libintl.m4: Remove.  No longer used.
77232
77233 2001-09-22  Jim Meyering  <meyering@lucent.com>
77234
77235         * lib/localcharset.c: Update from latest gettext.
77236         * lib/config.charset: Likewise.
77237
77238 2001-09-20  Jim Meyering  <meyering@lucent.com>
77239
77240         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77241         strtoimax.
77242         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77243         strtoumax.
77244
77245 2001-09-20  Jim Meyering  <meyering@lucent.com>
77246
77247         * lib/xstrtol.c (strtoimax): Guard declaration with
77248         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77249         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77250         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77251         (strtoumax): Likewise, for completeness (it wasn't necessary).
77252
77253 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77254
77255         * lib/strtoimax.c (HAVE_LONG_LONG):
77256         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77257         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77258         to work around bug in IBM C compiler.
77259
77260 2001-09-17  Jim Meyering  <meyering@lucent.com>
77261
77262         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77263         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77264         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77265         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77266         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77267         whenever the right hand side need not be expanded by the shell.
77268
77269 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77270
77271         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77272         library.  It's not correct, as some older glibcs are buggy.
77273         fnmatch wasn't fixed until glibc 2.2.
77274
77275         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77276         special shell magic here.
77277
77278 2001-09-16  Jim Meyering  <meyering@lucent.com>
77279
77280         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77281         * m4/jm-macros.m4: Require it.
77282
77283 2001-09-16  Jim Meyering  <meyering@lucent.com>
77284
77285         * lib/mkdir.c: New file.
77286
77287 2001-09-15  Jim Meyering  <meyering@lucent.com>
77288
77289         * m4/jm-macros.m4: Check for help2man.
77290
77291 2001-09-11  Jim Meyering  <meyering@lucent.com>
77292
77293         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77294         The body, by Paul Eggert, was moved here from configure.in.
77295         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77296
77297 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77298
77299         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77300         (jm_PREREQ): Use it.
77301
77302 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77303
77304         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77305         Use ssize_t, not int, to store result of readlink.
77306         Check for ssize_t overflow as well as size_t overflow,
77307         as POSIX says the result of readlink is implementation-defined
77308         when ssize_t overflows.
77309         Remove unnecessary cast to char*.
77310         Use free+malloc instead of realloc, as the storage doesn't need
77311         to be preserved and it's clearer and can be more efficient that way.
77312         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77313         * lib/xreadlink.h (xreadlink): Update prototype.
77314
77315 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77316
77317         * lib/xgetcwd.c: Revert some of the previous change; intead,
77318         fix the HAVE_GETCWD_NULL code to behave more like the
77319         !HAVE_GETCWD_NULL code used to.
77320
77321         Include "xalloc.h".
77322         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77323         invoke xalloc_die.
77324
77325 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77326
77327         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77328         sys/param.h, as pathmax.h includes them.
77329
77330 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77331
77332         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77333         (jm_PREREQ_XGETCWD): New macro.
77334
77335         * m4/getcwd.m4: New file.
77336
77337 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77338
77339         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77340         like the HAVE_GETCWD_NULL code.
77341         Include pathmax.h if not HAVE_GETCWD.
77342         Do not include xalloc.h.
77343         (INITIAL_BUFFER_SIZE): New symbol.
77344         Do not use xmalloc / xrealloc, since the caller is responsible for
77345         handling errors.  Preserve errno around `free' during failure.
77346         Do not overrun buffer when using getwd.
77347
77348 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77349
77350         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77351         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77352         getcwd (NULL, 0).
77353
77354 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77355
77356         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77357         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77358         spotted by Jim Meyering.
77359
77360 2001-09-03  Jim Meyering  <meyering@lucent.com>
77361
77362         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77363         failure.
77364
77365 2001-09-02  Jim Meyering  <meyering@lucent.com>
77366
77367         * lib/error.c: Update from GNU libc.
77368
77369 2001-09-01  Jim Meyering  <meyering@lucent.com>
77370
77371         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77372         Used by df.
77373
77374 2001-09-01  Jim Meyering  <meyering@lucent.com>
77375
77376         * lib/xreadlink.c: New file.
77377         * lib/xreadlink.h: New file.
77378         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77379         xreadlink.h.
77380
77381         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77382         doesn't conflict with sparc Solaris 7's definition in
77383         /usr/include/sys/int_types.h.
77384
77385         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77386         files.
77387         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77388         and strncasecmp as r-values.  Unixware didn't have declarations.
77389
77390 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77391
77392         * lib/xstrtol.h: Add copyright notice.
77393         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77394         LONGINT_INVALID_SUFFIX_CHAR.
77395
77396 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77397
77398         * lib/xstrtol.c (strtoimax): New decl.
77399
77400 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77401
77402         * lib/xgetcwd.c: Don't include pathmax.h.
77403         Include stdlib.h and unistd.h if available.
77404         Include xalloc.h.
77405         (xmalloc, xstrdup, free): Remove decls.
77406         (xgetcwd): Don't assume sizes fit in unsigned.
77407         Check for overflow when computing sizes.
77408         Simplify reallocation code.
77409
77410 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77411
77412         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77413         a directory's st_size can have an arbitrary value, so the old
77414         usage could waste an arbitrary amount of memory.  All uses
77415         changed.
77416         * lib/savedir.h: Update prototype.
77417
77418 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77419
77420         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77421
77422         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77423         old strtoimax.c.
77424
77425         Also, make the following further changes to make this file's
77426         configuration more similar to that of strtol.c:
77427         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77428         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77429         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77430         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77431         changed to signed values.
77432
77433         And make the following changes as well:
77434         Fix copyright notice, as 1999 was missing.
77435         (verify): New macro.
77436         (strtoimax): Check sizes at compile-time, not run-time.
77437         Prefer strtol to strtoll if both work.
77438         (main): Remove; it was not that useful and was a pain to maintain.
77439
77440         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77441
77442 2001-08-31  Jim Meyering  <meyering@lucent.com>
77443
77444         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77445         Use an initial, malloc'd, buffer of length 128 rather than
77446         a statically allocated one of length 1024.
77447
77448 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77449
77450         Simplify code, partly by assuming autoconf 2.52 semantics.
77451
77452         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77453
77454         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77455         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77456         All uses removed.
77457         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77458         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77459         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77460         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77461         jm_AC_HEADER_INTTYPES_H.
77462         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77463
77464         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77465
77466         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77467         Quote first arg of AC_DEFUN.
77468         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77469         since they are needed to parse the include file even if we need
77470         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77471         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77472         but with opposite signedness.
77473
77474 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77475
77476         Merge 'exclude' changes from tar 1.13.22.
77477         This fixes one or two unlikely storage allocation overflow bugs,
77478         but doesn't change user-visible behavior otherwise.
77479
77480 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77481
77482         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77483         (jm_PREREQ_EXCLUDE): New macro.
77484
77485 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77486
77487         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77488         tm to be declared.
77489
77490 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77491
77492         * lib/hash.c: Remove '2001' from copyright notice.
77493
77494 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77495
77496         * lib/full-write.h: New file.
77497         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77498         * lib/full-write.c: Correct credits, as cccp.c no longer
77499         exists and anyway it was so heavily changed from the old cccp
77500         code as to be unrecognizable.  Include full-write.h.
77501         (full_write): Return size_t, with short writes meaning failure.
77502         All callers changed.  This fixes a bug with large buffers
77503         on 64-bit hosts.
77504         * lib/utime.c: Include full-write.h.
77505
77506 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77507
77508         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77509         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77510         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77511         Include if available.
77512         (<xalloc.h>): Include
77513         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77514         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77515         collide with FNM macros.
77516         (struct patopts): New struct.
77517         (struct exclude): Use it, as exclude patterns now come with options.
77518         (new_exclude): Support above changes.
77519         (new_exclude, add_exclude_file):
77520         Initial size must now be a power of two to simplify overflow checking.
77521         (free_exclude, fnmatch_no_wildcards): New function.
77522         (excluded_filename): No longer requires options arg, as the options
77523         are determined by add_exclude.  Now returns bool, not int.
77524         (excluded_filename, add_exclude):
77525         Add support for the fancy new exclusion options.
77526         (add_exclude, add_exclude_file): Now takes int options arg.
77527         Check for arithmetic overflow when computing sizes.
77528         (add_exclude_file): xrealloc might modify errno, so don't
77529         realloc until after errno might be used.
77530
77531         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77532         New macros.
77533         (free_exclude): New decl.
77534         (add_exclude, add_exclude_file): Now takes int options arg.
77535         (excluded_filename): No longer requires options arg, as the options
77536         are determined by add_exclude.  Now returns bool, not int.
77537
77538 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77539
77540         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77541
77542 2001-08-27  Jim Meyering  <meyering@lucent.com>
77543
77544         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77545
77546         * lib/version-etc.c (N_): Remove definition.
77547         Revert most of last change.
77548         Instead, simply don't mark the `Copyright...' string for translation.
77549         Based on advice from Paul Eggert.
77550
77551         * lib/strtoxmax.c: Tweak comment.
77552
77553 2001-08-26  Jim Meyering  <meyering@lucent.com>
77554
77555         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77556
77557         * m4/xstrtoimax.m4: New file.
77558         * m4/xstrtoumax.m4: Add comments explaining why we
77559         AC_REPLACE_FUNCS(strtol).
77560
77561 2001-08-26  Jim Meyering  <meyering@lucent.com>
77562
77563         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77564         of copyright with `%s' so translators don't get an untranslated
77565         message in 2002.
77566         (COPYRIGHT_YEAR): Define.
77567         (version_etc): Use fprintf rather than fputs.
77568         Suggestion from Ulrich Drepper.
77569
77570         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77571
77572         * lib/strtoll.c: New file, from GNU libc.
77573         * lib/xstrtoimax.c: New file.
77574
77575         * lib/xstrtol.h: Add xstrtoimax.
77576         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77577         * lib/strtoimax.c: New file.  Likewise, but first define
77578         STRTOUXMAX_SIGNED.
77579
77580         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77581         ...
77582         * lib/strtoxmax.c: ... then renamed to this.
77583
77584 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77585
77586         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77587         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77588         (jm_AC_TYPE_INTMAX_T): New macro.
77589         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77590
77591         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77592
77593         * m4/longlong.m4: Renamed from ulonglong.m4.
77594         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77595         * m4/uintmax_t.m4: Removed.
77596
77597 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77598
77599         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77600         Port to Solaris 8, where 'sed' requires a space after the 'r'
77601         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77602         Redirect output to $tmp just once.
77603
77604 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77605
77606         * lib/addext.c (<errno.h>): Include.
77607         (errno): Declare if not defined.
77608         (addext): Work correctly when pathconf returns -1 and leaves
77609         errno alone because there is no limit.  Also, work even if
77610         pathconf returns a value greater than SIZE_MAX.
77611
77612 2001-08-12  Jim Meyering  <meyering@lucent.com>
77613
77614         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77615         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77616         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77617         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77618         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77619         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77620         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77621         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77622         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77623         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77624         utime.m4, utimes.m4, xstrtoumax.m4:
77625         Quote the first argument in each use of AC_DEFUN.
77626
77627 2001-08-12  Jim Meyering  <meyering@lucent.com>
77628
77629         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77630         Simply `return getcwd (NULL, 0);'.
77631         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77632         Use 1300 as initial value for length, not PATH_MAX.
77633
77634         * lib/pathmax.h: Clean up cpp syntax.
77635
77636 2001-08-12  Jim Meyering  <meyering@lucent.com>
77637
77638         * lib/gettimeofday.c: New file.
77639         * lib/gtod.h: New file.
77640         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77641
77642 2001-08-05  Jim Meyering  <meyering@lucent.com>
77643
77644         * m4/jm-macros.m4: Require autoconf-2.52.
77645
77646 2001-08-04  Jim Meyering  <meyering@lucent.com>
77647
77648         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77649         stmt, to get in sync with glibc.
77650
77651 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77652
77653         The following changes are from gettext 0.10.39 as maintained by
77654         Bruno Haible.
77655
77656         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77657         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77658         with inverted sense.  All uses changed.
77659
77660         * lib/mbswidth.c: Don't include <limits.h>.
77661         Include <stdlib.h> and <string.h> unconditionally.
77662         (iswcntrl, mbsinit, ISCNTRL): New macros.
77663         (mbsnwidth): Use K&R style function declarations.
77664         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77665         can optimize it when MB_CUR_MAX == 1.
77666         The width of control characters is zero, not 1.
77667
77668 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77669
77670         The following changes are from gettext 0.10.39 as maintained by
77671         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77672
77673         * m4/codeset.m4: Upgrade to serial AM1.
77674         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77675         all uses changed.  Quote first arg of AC_DEFUN.
77676         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77677
77678         * m4/iconv.m4: Upgrade to serial AM2.
77679         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77680         Add --with-libconv-prefix.
77681         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77682         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77683         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77684         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77685         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77686
77687         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77688         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77689         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77690         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77691         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77692         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77693         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77694         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77695         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77696
77697         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77698         string.h any more.
77699
77700         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77701         not the default value.
77702
77703         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77704         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77705         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77706         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77707         Also check for iswcntrl, used for wcwidth fallback.
77708         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77709         to Autoconf 2.13.
77710
77711 2001-08-03  Jim Meyering  <meyering@lucent.com>
77712
77713         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77714         as it was in the original.  Reported by Paul Eggert.
77715
77716 2001-07-16  Jim Meyering  <meyering@lucent.com>
77717
77718         * m4/gettimeofday.m4: New file.
77719         Prompted by a report from Bernhard Baehr.
77720
77721 2001-07-15  Jim Meyering  <meyering@lucent.com>
77722
77723         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77724         stuff. Now it's in ../Makefile.cfg.
77725
77726 2001-07-15  Jim Meyering  <meyering@lucent.com>
77727
77728         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77729         (BUILT_SOURCES): Add unlocked-io.h.
77730         (io_functions): Define.
77731         (unlocked-io.h): New rule.
77732         (DISTCLEANFILES): Add unlocked-io.h.
77733         (all-local): Depend on unlocked-io.h, to ensure it is created.
77734
77735         * lib/unlocked-io.hin: New file
77736
77737         * lib/regex.c: Update from glibc.
77738
77739 2001-07-05  Jim Meyering  <meyering@lucent.com>
77740
77741         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77742         recommendation.
77743         (libfetish_a_SOURCES): Put all .h files here instead.
77744         Remove a thus-exposed (better checks in automake) duplicate and
77745         two unnecessary .h files.
77746
77747 2001-07-04  Jim Meyering  <meyering@lucent.com>
77748
77749         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77750         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77751         distcheck failure.
77752
77753 2001-07-02  Jim Meyering  <meyering@lucent.com>
77754
77755         The following changes were prompted by suggestions from Bruno Haible.
77756
77757         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77758         is now generated.
77759         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77760         definition of EXTRA_DIST.
77761         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77762         ensure that the generated file is created/updated whenever the list
77763         of $(unlocked_functions) is changed.
77764         (jm-glibc-io.m4): New rule.
77765         (unlocked-io.h): New rule -- currently unused.
77766
77767 2001-06-24  Jim Meyering  <meyering@lucent.com>
77768
77769         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77770         unmatched right bracket, rather than kludging it with an extra,
77771         falsely-matching quote in a comment.  Patch by Akim Demaille.
77772
77773 2001-06-11  Jim Meyering  <meyering@lucent.com>
77774
77775         * lib/regex.c: Update from GNU libc.
77776
77777 2001-05-27  Jim Meyering  <meyering@lucent.com>
77778
77779         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77780         Check for ut_type in struct utmp.
77781
77782 2001-05-27  Jim Meyering  <meyering@lucent.com>
77783
77784         * lib/readutmp.h (UT_TYPE): Define.
77785
77786 2001-05-24  Jim Meyering  <meyering@lucent.com>
77787
77788         * lib/argmatch.c: Include "quote.h".
77789         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77790         quote function.  Reported by Göran Uddeborg.
77791
77792 2001-05-22  Jim Meyering  <meyering@lucent.com>
77793
77794         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77795         now that we use the package-supplied version unconditionally.
77796         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77797
77798 2001-05-21  Jim Meyering  <meyering@lucent.com>
77799
77800         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77801         shell syntax errors.
77802
77803 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77804
77805         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77806
77807 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77808
77809         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77810         Don't bother to check library strftime, since
77811         we'll be using our own my_strftime function anyway.
77812         Define my_strftime instead of strftime.
77813
77814 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77815
77816         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77817         which is not yet declared.
77818
77819 2001-05-15  Jim Meyering  <meyering@lucent.com>
77820
77821         * m4/regex.m4: Use proper quoting so brackets appear in the test
77822         program.
77823         Reported by, and with help from, Bruno Haible.
77824
77825 2001-05-13  Jim Meyering  <meyering@lucent.com>
77826
77827         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77828         undefined.
77829
77830 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77831
77832         dirname code cleanup.  base_name now behaves more compatibly
77833         with POSIX basename when given file names that have trailing
77834         slashes, and similarly for dir_name.  Add new primitives
77835         base_len and dir_len.  Put the directory-name-related decls
77836         into dirname.h.
77837
77838         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77839         * lib/backupfile.c (base_name): Likewise.
77840         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77841         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77842         * lib/makepath.c (strip_trailing_slashes): Likewise.
77843         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77844         ISSLASH): Likewise.
77845         * lib/rename.c (strip_trailing_slashes): Likewise.
77846         * lib/same.c (base_name): Likewise.
77847         * lib/stripslash.c (ISSLASH): Likewise.
77848
77849         * lib/addext.c: Include <dirname.h> after size_t is defined.
77850         * lib/backupfile.c: Likewise.
77851
77852         * lib/addext.c (addext): Use base_len to trim redundant
77853         trailing slashes instead of doing it ourselves.
77854         But do not trim the last slash if it is not redundant.
77855
77856         * lib/backupfile.c (find_backup_file_name,
77857         max_backup_version): Use base_len instead of rolling it ourselves.
77858         Handle the case of "" and (on DOS) "C:" correctly.
77859
77860         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77861         needed. Include <string.h>, <dirname.h>.
77862         (base_name): Allow file names ending in slashes, other than names
77863         that are all slashes.  In this case, return the basename followed
77864         by the slashes.  This is more general, and can be used in places
77865         where the original base_name purposely had an assertion failure.
77866         (base_len): New function.
77867
77868         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77869         Do not include <assert.h>; no longer needed.
77870         Include xalloc.h.
77871         (memrchr): Remove decl.
77872         (dir_name_r): Remove.
77873         (dir_len): Renamed from dirlen.  All callers changed.
77874         Rewrite in terms of base_name, for simplicity and consistency.
77875         (dir_name): Never return NULL.  All callers changed.
77876         Do not include <stdlib.h> in test program; no longer needed.
77877         return 0; is fine for test program.
77878
77879         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77880         New macros.
77881         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77882
77883         * lib/path-concat.c (path_concat): Use base_len to compute
77884         base length, not strlen; this means we cannot rely on memcpy
77885         to null-terminate.
77886
77887         * lib/same.c (STREQ): Remove.
77888         (same_name): Handle the case where the basename ends in trailing '/'.
77889
77890         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77891         a slash was stripped.  Do not strip the last slash after a
77892         file system prefix.
77893
77894 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77895
77896         * lib/Makefile.am (libfetish_a_SOURCES):
77897         Add strftime.c, since we now compile it on all hosts.
77898
77899         * lib/strftime.c (my_strftime):
77900         Define to nstrftime if emacs, but only if my_strftime is not defined.
77901         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77902         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77903         Add one more extra argument: a nanoseconds value.
77904         All uses changed.
77905         (ns): New macro.
77906         (my_strftime function): Add %N format.
77907         (emacs_strftimeu): Renamed from emacs_strftime,
77908         with extra ut argument.
77909
77910 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77911
77912         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77913
77914 2001-04-21  Jim Meyering  <meyering@lucent.com>
77915
77916         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77917         doesn't interfere.
77918
77919 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77920
77921         * m4/ftruncate.m4: Check for chsize.
77922         Link with ftruncate.o unconditionally if ftruncate is missing.
77923         This was required when cross-compiling to i586-mingw32msvc.
77924
77925 2001-04-08  Jim Meyering  <meyering@lucent.com>
77926
77927         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77928         recomputed; that's necessary when the offset spans a DST transition.
77929         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77930
77931 2001-04-02  Jim Meyering  <meyering@lucent.com>
77932
77933         * lib/regex.h, regex.c: Update from GNU libc.
77934
77935 2001-03-24  Jim Meyering  <meyering@lucent.com>
77936
77937         * m4/jm-macros.m4: Require autoconf-2.49d.
77938
77939 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77940
77941         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77942
77943 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77944
77945         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77946
77947 2001-03-17  Jim Meyering  <meyering@lucent.com>
77948
77949         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77950         now that the version in autoconf is equivalent.
77951         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77952
77953         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77954         Suggestion from Akim Demaille.
77955
77956         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77957         (jm_PREREQ_TEMPNAME): New function.
77958
77959 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77960
77961         * lib/tempname.c (uint64_t): Define to uintmax_t if
77962         not defined, and if UINT64_MAX is not defined.
77963         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77964         Reported by John David Anglin.
77965
77966 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77967
77968         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77969         resolve alias if codeset is empty.
77970         * lib/config.charset (BeOS): Use wildcard syntax.
77971
77972 2001-03-13  Jim Meyering  <meyering@lucent.com>
77973
77974         * lib/path-concat.c (path_concat)
77975         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77976         concatenating e.g., `C:' and `foo'.
77977         From Bruno Haible.
77978
77979 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77980
77981         * lib/localcharset.c (locale_charset): Don't use
77982         setlocale(LC_CTYPE,NULL). Don't return NULL.
77983         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77984
77985 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77986
77987         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77988         support for DOS/DJGPP.
77989
77990 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77991
77992         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77993         lacks mkstemp.  Compile our own tempname.c if we compile our own
77994         mkstemp.c, as mkstemp relies on tempname.
77995
77996 2001-03-01  Jim Meyering  <meyering@lucent.com>
77997
77998         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77999         AH_VERBATIM really does output its argument verbatim.
78000
78001 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78002
78003         * lib/Makefile.am (libfetish_a_SOURCES):
78004         Add dup-safer.c, fopen-safer.c.
78005         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78006
78007         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78008         * lib/unistd-safer.h: New files.
78009
78010 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78011
78012         The mkstemp replacement is taken from glibc 2.2.2, with some
78013         portability fixes for use outside glibc, as follows:
78014
78015         * lib/tempname.c (struct_stat64): New macro.
78016         (direxists, __gen_tempname): Use it.
78017         This avoids a portability problem with Solaris 8.
78018
78019         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78020         (<stddef.h>, <stdint.h>, <string.h>):
78021         Include only if STDC_HEADERS || _LIBC.
78022         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78023         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78024         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78025         (__set_errno): Define this macro if <errno.h> doesn't.
78026         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78027         Define these macros if <stdio.h> doesn't.
78028         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78029         Define these macros if <sys/stat.h>
78030         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78031         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78032         __xstat64): Define if not _LIBC.
78033         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78034         (__gen_tempname): Invoke gettimeofday only if
78035         HAVE_GETTIMEOFDAY || _LIBC;
78036         otherwise, fall back on plain "time".
78037         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78038
78039         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78040
78041         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78042
78043 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78044
78045         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78046
78047 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78048
78049         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78050         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78051         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78052         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78053
78054 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78055
78056         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78057         Remove workaround macros for hosts that have mbrtowc but not
78058         mbstate_t, as we now insist on proper declarations for both
78059         before using mbrtowc.
78060
78061 2001-02-17  Jim Meyering  <meyering@lucent.com>
78062
78063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78064         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78065         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78066         UnixWare 7.1.1.
78067
78068         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78069         rather than AC_CACHE_VAL.
78070
78071 2001-02-17  Jim Meyering  <meyering@lucent.com>
78072
78073         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78074         around included file name.
78075
78076         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78077
78078         * lib/strftime.c: Update from GNU libc (the only changes were to
78079         comments).
78080
78081 2001-02-17  Jim Meyering  <meyering@lucent.com>
78082
78083         * lib/regex.c: Update from libc.
78084
78085 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78086
78087         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78088         clash.
78089
78090 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78091
78092         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78093         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78094         Reported by Mark Hounschell via Paul Eggert.
78095
78096 2001-02-07  Jim Meyering  <meyering@lucent.com>
78097
78098         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78099
78100 2001-02-05  Jim Meyering  <meyering@lucent.com>
78101
78102         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78103         it includes the patch required for `large file' support with at least
78104         HP-UX's 10.20 /bin/cc.
78105
78106 2001-02-03  Jim Meyering  <meyering@lucent.com>
78107
78108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78109         AS_IF, now that it works once again (mysteriously).
78110         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78111
78112 2001-01-30  Jim Meyering  <meyering@lucent.com>
78113
78114         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78115         * m4/chown.m4: Rename conftestchown to conftest.chown.
78116         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78117         s/conftestdir2/conftest.d2/.
78118         * m4/utimes.m4: s/conftestdata/conftest.data/
78119         Inspired by Pavel Roskin's change in autoconf.
78120
78121 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78122
78123         * lib/config.charset: Update for FreeBSD 4.2.
78124
78125 2001-01-27  Jim Meyering  <meyering@lucent.com>
78126
78127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78128         a use of AS_IF.
78129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78130
78131 2001-01-26  Jim Meyering  <meyering@lucent.com>
78132
78133         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78134         quotearg.c includes it.
78135
78136 2001-01-26  Jim Meyering  <meyering@lucent.com>
78137
78138         * lib/quotearg.c: Include stddef.h.
78139         * lib/quote.c: Include stddef.h.
78140         Reported by Axel Kittenberger.
78141
78142         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78143         line in double quotes so that it evokes a better diagnostic.
78144         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78145         Reported by Axel Kittenberger.
78146
78147 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78148
78149         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78150         as if it was a `charset'.
78151
78152 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78153
78154         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78155         has const.
78156
78157 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78158
78159         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78160         to avoid a warning.  Add back 'const' to inptr.
78161
78162 2001-01-20  Jim Meyering  <meyering@lucent.com>
78163
78164         Be sure that headers are checked before used in code compiled
78165         for the type checks.
78166         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78167         In place of that, invoke jm_CHECK_ALL_TYPES.
78168         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78169         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78170         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78171         The check for ssize_t was mistakenly run before the test for unistd.h.
78172
78173         The configure-time check for stdbool.h was missing.
78174         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78175         (jm_PREREQ_HASH): New function.
78176
78177 2001-01-17  Jim Meyering  <meyering@lucent.com>
78178
78179         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78180         for autoconf-2.49c.
78181         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78182
78183 2001-01-16  Jim Meyering  <meyering@lucent.com>
78184
78185         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78186         From Bruno Haible.
78187
78188 2001-01-14  Jim Meyering  <meyering@lucent.com>
78189
78190         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78191         foo and bar.  Create conftestdir/ in the script, not in the C code.
78192         Remove directories in the script, not in the C code.
78193         Remove conftestdir{,2} before trying to create the directory.
78194         Make the entire configure script fail if the mkdir fails.
78195
78196 2001-01-14  Jim Meyering  <meyering@lucent.com>
78197
78198         * lib/rename.c: New file.  From Volker Borchert.
78199         Include stdlib.h, string.h or strings.h, and xalloc.h.
78200         Use strip_trailing_slashes rather than open-coding it.
78201
78202 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78203
78204         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78205
78206 2001-01-03  Jim Meyering  <meyering@lucent.com>
78207
78208         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78209         of local `inptr' to avoid warning with some system declarations of
78210         iconv.
78211
78212 2001-01-02  Volker Borchert  <bt@teknon.de>
78213
78214         * m4/rename.m4: New file.
78215         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78216
78217 2001-01-01  Jim Meyering  <meyering@lucent.com>
78218
78219         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78220         even on systems with utmpx.h.  It's necessary for the declaration of
78221         utmp's ut_user member.  Reported by Andreas Jaeger.
78222
78223         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78224         available. They are required for the declarations of getgrgid and
78225         getpwuid resp.
78226         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78227         Reported by Andreas Jaeger.
78228
78229 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78230
78231         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78232         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78233         so `make install' also works in VPATH builds.
78234
78235 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78236
78237         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78238         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78239         can be used in subdirectories.
78240
78241 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78242
78243         * lib/modechange.c: Do not assume that mode_t uses the
78244         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78245         the other-execute bit of FOO even if S_IXOTH != 1.
78246
78247         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78248         WOTH, XOTH, ALLM): New macros.
78249         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78250          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78251         Use them.
78252         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78253         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78254         (mode_compile):
78255         No need to use uintmax_t; unsigned long is long enough.
78256         Don't bother to get suffix since we don't use it.
78257
78258 2000-12-26  Jim Meyering  <meyering@lucent.com>
78259
78260         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78261         better with autoheader.
78262
78263 2000-12-24  Jim Meyering  <meyering@lucent.com>
78264
78265         * lib/hash.c (is_prime): Return explicit boolean values.
78266         (hash_get_first): Return NULL to appease Irix5.6's 89.
78267         Reported by Nelson Beebe.
78268
78269 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78270
78271         * lib/localcharset.c (locale_charset): Add support for Win32.
78272
78273 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78274
78275         * lib/physmem.h, lib/physmem.c: New files.
78276
78277         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78278         (noinst_HEADERS): Add physmem.h.
78279
78280         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78281         't' for compatibility with Solaris 8 sort.
78282
78283 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78284
78285         * lib/config.charset: Add support for BeOS.
78286
78287 2000-12-17  Jim Meyering  <meyering@lucent.com>
78288
78289         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78290         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78291
78292 2000-12-16  Jim Meyering  <meyering@lucent.com>
78293
78294         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78295         N and M) would have treated it like `chown N:N FILE'.
78296
78297         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78298
78299 2000-12-16  Jim Meyering  <meyering@lucent.com>
78300
78301         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78302         SHELLS_FILE to a file name that's useful on djgpp systems.
78303         Include stdlib.h.
78304         (ADDITIONAL_DEFAULT_SHELLS): Define.
78305         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78306         Based mostly on a patch from Prashant TR.
78307
78308 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78309
78310         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78311         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78312         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78313
78314 2000-12-08  Andreas Schwab  <schwab@suse.de>
78315
78316         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78317         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78318
78319 2000-12-07  Jim Meyering  <meyering@lucent.com>
78320
78321         * lib/stripslash.c (ISSLASH): Define.
78322         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78323         `/'.
78324         From Prashant TR.
78325
78326         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78327         (dir_name_r): Declare this function as static.
78328         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78329         manifest itself on a name containing a mix of slashes and
78330         backslashes.
78331         Make this function work with names starting with a DOS-style
78332         drive letter and colon prefix.
78333         (dir_name): Append `.' if necessary.
78334         Based mostly on patches from Prashant TR and Eli Zaretskii.
78335
78336         * lib/dirname.h (dir_name_r): Remove prototype.
78337
78338 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78339
78340         * m4/off_t-format.m4: Remove this file.
78341         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78342
78343 2000-12-06  Jim Meyering  <meyering@lucent.com>
78344
78345         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78346         replacement strtoull, we may well need the replacement strtoul, too.
78347         Check for declarations of strtoul and strtoull.
78348         Check for strtol.  Mainly as a cue to cause automake to include
78349         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78350         Check for limits.h -- strtol.c needs it.
78351
78352 2000-12-05  Jim Meyering  <meyering@lucent.com>
78353
78354         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78355
78356 2000-12-04  Jim Meyering  <meyering@lucent.com>
78357
78358         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78359         Also include memory.h, stdlib.h, unistd.h if appropriate.
78360         Reported by Andreas Jaeger (conflicting declaration of malloc).
78361
78362 2000-12-02  Jim Meyering  <meyering@lucent.com>
78363
78364         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78365         * m4/jm-macros.m4 (jm_MACROS): require it.
78366
78367 2000-12-02  Jim Meyering  <meyering@lucent.com>
78368
78369         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78370
78371 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78372
78373         * lib/memrchr.c: Include <config.h> before any system include file.
78374
78375 2000-11-30  Jim Meyering  <meyering@lucent.com>
78376
78377         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78378
78379 2000-11-30  Jim Meyering  <meyering@lucent.com>
78380
78381         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78382
78383 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78384
78385         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78386
78387 2000-11-26  Jim Meyering  <meyering@lucent.com>
78388
78389         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78390
78391 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78392
78393         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78394         size of (size_t) -1; it's not portable.
78395
78396 2000-11-17  Jim Meyering  <meyering@lucent.com>
78397
78398         * lib/strstr.c: Update from GNU libc.
78399
78400 2000-11-17  Akim Demaille  <akim@epita.fr>
78401
78402         * lib/obstack.h: Formatting changes.
78403         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78404         prevent type checking.
78405         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78406         cast the value to (void *): assigning a `foo *' to a `void *'
78407         variable is valid.
78408         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78409
78410 2000-11-16  Jim Meyering  <meyering@lucent.com>
78411
78412         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78413
78414 2000-11-11  Jim Meyering  <meyering@lucent.com>
78415
78416         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78417
78418 2000-11-10  Jim Meyering  <meyering@lucent.com>
78419
78420         * lib/obstack.h: Update from GNU libc.
78421         * lib/obstack.c: Likewise.
78422
78423 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78424
78425         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78426
78427 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78428
78429         * lib/getusershell.c (setusershell): Use rewind rather than
78430         fseek/fseeko, to avoid configuration hassles with fseeko.
78431         Don't bother opening SHELLS_FILE if shellstream is NULL;
78432         it's not necessary.
78433
78434 2000-11-05  Jim Meyering  <meyering@lucent.com>
78435
78436         * lib/makepath.h (make_dir): Declare.
78437         * lib/makepath.c (make_dir): Remove `static' attribute.
78438         Tweak a comment.
78439
78440 2000-11-04  Jim Meyering  <meyering@lucent.com>
78441
78442         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78443
78444 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78445
78446         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78447         last one in a bucket, advance to the next bucket.
78448
78449 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78450
78451         * lib/fnmatch.c: Do not comment out all the code if we are using
78452         the GNU C library, because in some cases we are replacing buggy
78453         code in the GNU C library itself.
78454
78455 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78456
78457         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78458         (regex_compile): Catch bogus \(\1\).
78459
78460 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78461
78462         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78463         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78464         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78465
78466 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78467
78468         * lib/error.h, getline.h, modechange.h:
78469         Remove "2000" from Copyright line, as the file hasn't been
78470         changed this year other than in the copyright notice.
78471
78472         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78473         was changed this year.
78474
78475 2000-10-29  Jim Meyering  <meyering@lucent.com>
78476
78477         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78478         renaming.
78479         * m4/ls-mntd-fs.m4: Likewise
78480
78481 2000-10-29  Jim Meyering  <meyering@lucent.com>
78482
78483         * lib/xstat.in: Fix grammar in comment.
78484
78485 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78486
78487         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78488         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78489         doesn't define __restrict_arr.
78490
78491 2000-10-28  Jim Meyering  <meyering@lucent.com>
78492
78493         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78494         (jm_PREREQ_MEMCHR): New function.
78495
78496 2000-10-28  Jim Meyering  <meyering@lucent.com>
78497
78498         * lib/memchr.c: Update from libc.
78499         Adjust for portability:
78500         [HAVE_STDLIB_H]: Include stdlib.h.
78501         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78502         Undef __memchr, too.
78503         [!weak_alias]: Define __memchr to memchr.
78504
78505         * lib/regex.c: Update from libc.
78506         * lib/regex.h: Likewise.
78507         * lib/getopt1.c: Likewise.
78508         * lib/memcmp.c: Likewise.
78509
78510         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78511         Avoid using fseek, when possible -- it's broken by design.
78512         Patch by Ulrich Drepper.
78513
78514 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78515
78516         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78517         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78518         Giving in to popular pressure to shut up the compiler with casts.
78519
78520 2000-10-26  Jim Meyering  <meyering@lucent.com>
78521
78522         * lib/strftime.c: Update from libc.
78523
78524 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78525
78526         * regex.c: More `unsigned char' -> `re_char' changes.
78527         Also change several `int' into `re_wchar_t'.
78528         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78529         (PUSH_FAILURE_POINTER): Don't cast any more.
78530         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78531         We want GCC to complain, since this piece of code makes
78532         re_match non-reentrant, which *should* be fixed.
78533         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78534         (EXTEND_BUFFER): Use RETALLOC.
78535         (SET_LIST_BIT): Don't cast.
78536         (re_wchar_t): New type.
78537         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78538         that those two functions will always properly return.
78539         (IMMEDIATE_QUIT_CHECK): Cast to void.
78540         (analyse_first): Use recursion rather than an explicit stack.
78541         (re_compile_fastmap): Can't fail anymore.
78542         (re_search_2): Don't check re_compile_fastmap for failure.
78543         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78544         Now also sets the new value (passed in a new argument).
78545         (re_match_2_internal): Use it.
78546         Also, use a new var `reg' of type size_t when looping through regs
78547         rather than reuse the inappropriate `mcnt'.
78548
78549 2000-10-25  Jim Meyering  <meyering@lucent.com>
78550
78551         * lib/obstack.c: Update from libc.
78552
78553 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78554
78555         * regex.c (regex_compile): Change the way of handling a range from
78556         a char less than 256 to a char not less than 256.
78557
78558 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78559
78560         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78561         NT-Emacs only.
78562         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78563         so that re_search functions only quit when callers expect them to.
78564
78565 2000-10-23  Jim Meyering  <meyering@lucent.com>
78566
78567         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78568         wrong.  That set_locale call must not have any side effects.
78569         From Paul Eggert.
78570
78571 2000-10-22  Jim Meyering  <meyering@lucent.com>
78572
78573         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78574         [CYCLIC]: Remove now-unused definition.
78575
78576         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78577         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78578         Suggestion from Ulrich Drepper.
78579
78580 2000-10-21  Jim Meyering  <meyering@lucent.com>
78581
78582         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78583         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78585
78586 2000-10-21  Jim Meyering  <meyering@lucent.com>
78587
78588         * lib/dirname.c (memrchr): Declare if necessary.
78589         (dir_name): Remove the restriction that there be no
78590         trailing slashes.  Now, this code skips past them, effectively
78591         ignoring them.
78592         [TEST_DIRNAME] (main): New unit tests.
78593
78594         * lib/memrchr.c: New file from GNU libc.
78595         Undef __memrchr, too.
78596         [!weak_alias]: Define __memrchr to memrchr.
78597         Guard weak_alias use with `#ifdef weak_alias'.
78598
78599 2000-10-21  Jim Meyering  <meyering@lucent.com>
78600
78601         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78602         (dir_name): Use dir_name_r.
78603         * lib/dirname.h (dir_name_r): Declare it.
78604
78605 2000-10-17  Jim Meyering  <meyering@lucent.com>
78606
78607         * lib/quote.h (PARAMS): Define and use.
78608         Reported by Akim Demaille.
78609
78610         * lib/getopt.c: Update from libc.
78611
78612 2000-10-16  Jim Meyering  <meyering@lucent.com>
78613
78614         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78615         setlocale.
78616         From Jan Fedak.
78617
78618 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78619
78620         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78621
78622 2000-09-25  Jim Meyering  <meyering@lucent.com>
78623
78624         * lib/md5.h (rol): Define (from GnuPG).
78625
78626         * lib/sha.c: Give credit (GnuPG) where due.
78627         (M): Use rol rather than open-coding it.
78628         Add a FIXME comment.
78629
78630 2000-09-21  Jim Meyering  <meyering@lucent.com>
78631
78632         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78633         Reported by Michael Stone.
78634
78635 2000-09-20  Jim Meyering  <meyering@lucent.com>
78636
78637         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78638         (noinst_HEADERS): Add sha.h.
78639         Based on code from Scott G. Miller and from GnuPG.
78640
78641 2000-09-18  Jim Meyering  <meyering@lucent.com>
78642
78643         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78644         LIBS. Otherwise, everyone ends up linking with -lelf for some
78645         configurations.
78646         Reported by Mike Stone.
78647
78648 2000-09-15  Jim Meyering  <meyering@lucent.com>
78649
78650         * lib/regex.c: Update from libc.
78651
78652 2000-09-10  Jim Meyering  <meyering@lucent.com>
78653
78654         * lib/getopt.c (_getopt_internal): Update from glibc.
78655
78656 2000-09-09  Jim Meyering  <meyering@lucent.com>
78657
78658         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78659         think it should be used as a general replacement for isascii.
78660         * lib/fnmatch.c: Likewise.
78661         * lib/mbswidth.c: Likewise
78662         * lib/regex.c: Likewise.
78663
78664         Don't use atoi.
78665         * lib/userspec.c: Include sys/param.h and limits.h.
78666         Include xstrtol.h.
78667         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78668         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78669         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78670         UID, GID.  Check range.
78671
78672 2000-09-06  Jim Meyering  <meyering@lucent.com>
78673
78674         * lib/getopt.c (_getopt_internal): Update from glibc.
78675
78676 2000-08-30  Jim Meyering  <meyering@lucent.com>
78677
78678         * lib/strftime.c: Merge in changes from GNU libc.
78679
78680 2000-08-26  Jim Meyering  <meyering@lucent.com>
78681
78682         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78683         * m4/fpending.m4: New file.
78684
78685 2000-08-26  Jim Meyering  <meyering@lucent.com>
78686
78687         * lib/closeout.c: Include "__fpending.h".
78688         (close_stdout_status): Return right away if there's nothing to flush.
78689
78690         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78691         * lib/__fpending.c: New file.
78692         * lib/__fpending.h: New file.
78693
78694 2000-08-20  Jim Meyering  <meyering@lucent.com>
78695
78696         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78697         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78698         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78699
78700 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78701
78702         Improve fileutils installation on systems where running
78703         programs (like install) can't be unlinked.
78704         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78705         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78706
78707 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78708
78709         Standardize on "memory exhausted" instead of "Memory exhausted"
78710         or "virtual memory exhausted".
78711         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78712         "virtual memory exhausted".
78713         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78714         our own message.
78715         * lib/userspec.c (parse_user_spec): Likewise.
78716         * lib/bumpalloc.h: comment fix
78717         * lib/same.c, userspec.c: Include xalloc.h.
78718
78719         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78720         not char *const and pointing to a constant array.
78721         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78722         (xrealloc): Comment fix.
78723
78724         * lib/userspec.c (parse_user_spec):
78725         Don't translate a message until just before returning,
78726         to avoid unnecessary translation.
78727
78728 2000-08-07  Jim Meyering  <meyering@lucent.com>
78729
78730         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78731         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78732         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78733         getgroups.c, gethostname.c, getopt.h, group-member.c,
78734         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78735         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78736         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78737         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78738         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78739         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78740         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78741         yesno.c: Back out Copyright date changes for each file with no change
78742         this year.  This eases coordination with other programs using the same
78743         source code modules.  From Paul Eggert.
78744
78745 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78746
78747         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78748         not char, for compatibility with glibc 2.1.3 strftime.c.
78749
78750 2000-08-03  Greg McGary  <greg@mcgary.org>
78751
78752         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78753         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78754         (EXTEND_BUFFER): Use them.
78755
78756 2000-08-01  Jim Meyering  <meyering@lucent.com>
78757
78758         * lib/dirname.c (ISSLASH): Define.
78759         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78760         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78761         both `\' and `/' may be use as path separators.
78762         Based on a patch from Prashant TR.
78763
78764 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78765
78766         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78767         slot vector a constant, since it might get modified.
78768
78769 2000-07-31  Jim Meyering  <meyering@lucent.com>
78770
78771         * lib/xmalloc.c: Use `virtual memory exhausted', not
78772         `Memory exhausted'.
78773         * lib/obstack.c (print_and_abort): Likewise.
78774
78775 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78776
78777         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78778         buffer, so that the caller can always quote one small
78779         component of a "memory exhausted" message in slot 0.
78780         From a suggestion by Jim Meyering.
78781
78782 2000-07-30  Jim Meyering  <meyering@lucent.com>
78783
78784         * lib/makepath.c (make_path): Quote the other instance, too.
78785
78786         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78787         (STATIC_BUF_SIZE): Define.
78788         (quotearg_n_options): Use only statically allocated storage when
78789         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78790         than STATIC_BUF_SIZE.
78791
78792 2000-07-29  Jim Meyering  <meyering@lucent.com>
78793
78794         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78795         * lib/dirname.c (dir_name): Likewise.
78796
78797         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78798         `/'.
78799
78800         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78801         (dir_name): Assert that there are no trailing slashes.
78802
78803 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78804
78805         * lib/mbswidth.h (mbswidth): Add a flags argument.
78806         (mbswidth): New declaration.
78807         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78808         * lib/mbswidth.c (mbswidth): Add a flags argument.
78809         (mbsnwidth): New function.
78810
78811 2000-07-24  Jim Meyering  <meyering@lucent.com>
78812
78813         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78814
78815 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78816
78817         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78818
78819 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78820
78821         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78822         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78823         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78824         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78825         invoke multibyte primitives.
78826
78827 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78828
78829         * lib/quotearg.c:
78830         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78831         so that mbstate_t is always defined.
78832
78833         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78834         be 1 in at least one GCC installation, and this configuration
78835         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78836         performance on hosts that have mbrtowc but have only unibyte
78837         locales, but I assume these hosts are rare.
78838
78839 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78840
78841         * lib/mbswidth.c (_XOPEN_SOURCE):
78842         Don't define; this causes problems on Solaris 7.
78843         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78844
78845 2000-07-23  Jim Meyering  <meyering@lucent.com>
78846
78847         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78848         too: getgrgid, getpwuid, getuid.
78849
78850 2000-07-23  Jim Meyering  <meyering@lucent.com>
78851
78852         * lib/basename.c (base_name): Add an assertion.
78853
78854 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78855
78856         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78857         shadow its mbsinit function.
78858
78859 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78860
78861         * lib/mbswidth.h: New file.
78862         * lib/mbswidth.c: New file.
78863         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78864         (noinst_HEADERS): Add mbswidth.h.
78865
78866 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78867
78868         * lib/config.charset: Add support for FreeBSD. Improve support for
78869         HP-UX and IRIX 6.
78870
78871 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78872
78873         * m4/mbswidth.m4: New file.
78874         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78875
78876 2000-07-15  Jim Meyering  <meyering@lucent.com>
78877
78878         * lib/makepath.c: Include quote.h.
78879         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78880         corresponding argument in a `quote (...)' call.
78881         Give better diagnostics.
78882
78883         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78884         (noinst_HEADERS): Add quote.h.
78885
78886         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78887         from tar's src/misc.c.
78888         * lib/quote.h: New file.  Prototypes for same.
78889
78890 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78891
78892         From a suggestion by Bruno Haible.
78893         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78894         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78895         to decide whether to define the BeOS workaround macro;
78896         this adjusts to the change to AC_MBSTATE_T.
78897
78898 2000-07-14  Jim Meyering  <meyering@lucent.com>
78899
78900         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78901         jm_AC_TYPE_UINTMAX_T.
78902
78903 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78904
78905         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78906
78907         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78908         quotearg_buffer_restyled): Add support for
78909         clocale_quoting_style.  Undo previous change to
78910         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78911         and "{RIGHT QUOTATION MARK}" msgids.
78912
78913 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78914
78915         From a suggestion by Bruno Haible.
78916         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78917         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78918         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78919         and mbstate_t, to a single-part test that simply defines mbstate_t.
78920         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78921         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78922
78923 2000-07-10  Jim Meyering  <meyering@lucent.com>
78924
78925         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78926
78927         * m4/gnu-source.m4: Output to confdefs.h directly.
78928         Suggestion from Akim Demaille.
78929
78930 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78931
78932         The old behavior of quoting `like this' doesn't look good with
78933         newer, ISO-style fonts.  See:
78934         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78935
78936         Instead, quote "like this" by default.  Let the translator
78937         tailor the locale-specific quoting behavior by providing
78938         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78939
78940         * lib/quotearg.c (N_): New macro.
78941         (gettext_default): New function.
78942         (quotearg_buffer_restyled): Use
78943         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78944         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78945
78946 2000-07-09  Jim Meyering  <meyering@lucent.com>
78947
78948         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78949         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78950
78951         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78953
78954 2000-07-09  Jim Meyering  <meyering@lucent.com>
78955
78956         * lib/Most files: Update copyright dates to include 2000.
78957
78958 2000-07-08  Jim Meyering  <meyering@lucent.com>
78959
78960         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78961         if not defined.
78962         (xgethostname): Remove now-unnecessary #ifdef.
78963         Move declaration of `err' into loop where it's used.
78964
78965 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78966         and Bruno Haible  <haible@clisp.cons.org>
78967
78968         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78969         only if the test for an object-type mbstate_t fails.  This
78970         prevents us from mistakenly reporting that mbstate_t is a
78971         system object type after we "#define mbstate_t int" to work
78972         around its lack.
78973
78974 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78975         and Bruno Haible  <haible@clisp.cons.org>
78976
78977         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78978
78979 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78980
78981         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78982         to strerror_r.
78983         Include <ctype.h> for use of isalpha.
78984
78985 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78986
78987         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78988         by allocating a larger buffer. Test the gethostname return value for
78989         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78990         returns an error and ENAMETOOLONG isn't defined.
78991
78992 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78993
78994         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78995         dimension.
78996
78997 2000-07-04  Jim Meyering  <meyering@lucent.com>
78998
78999         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79000         of the deprecated AC_CHECKING.
79001
79002 2000-07-04  Jim Meyering  <meyering@lucent.com>
79003
79004         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79005         Reported by Bruno Haible.
79006
79007 2000-07-04  Jim Meyering  <meyering@lucent.com>
79008
79009         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79010         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79011         lacks mbrtowc.
79012
79013 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79014
79015         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79016         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79017
79018 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79019         and Bruno Haible  <haible@clisp.cons.org>
79020
79021         * lib/quotearg.c (mbrtowc):
79022         Assign to *pwc, and return 1 only if result is nonzero.
79023         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79024
79025 2000-07-03  Jim Meyering  <meyering@lucent.com>
79026
79027         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79028
79029 2000-07-03  Jim Meyering  <meyering@lucent.com>
79030
79031         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79032         This is necessary to get a definition of e.g., UTMP_FILE on
79033         HP-UX 10.20.
79034         From Bob Proulx.
79035
79036 2000-07-02  Jim Meyering  <meyering@lucent.com>
79037
79038         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79039
79040         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79041         AC_LIBOBJ(function_name).
79042         * m4/chown.m4: Likewise.
79043         * m4/fnmatch.m4: Likewise.
79044         * m4/ftruncate.m4: Likewise.
79045         * m4/getgroups.m4: Likewise.
79046         * m4/getline.m4: Likewise.
79047         * m4/group-member.m4: Likewise.
79048         * m4/jm-macros.m4: Likewise.
79049         * m4/lstat.m4: Likewise.
79050         * m4/malloc.m4: Likewise.
79051         * m4/memcmp.m4: Likewise.
79052         * m4/nanosleep.m4: Likewise.
79053         * m4/putenv.m4: Likewise.
79054         * m4/realloc.m4: Likewise.
79055         * m4/regex.m4: Likewise.
79056         * m4/stat.m4: Likewise.
79057         * m4/strftime.m4: Likewise.
79058
79059 2000-07-02  Jim Meyering  <meyering@lucent.com>
79060
79061         * lib/quotearg.c (mbstate_t): Don't define here.
79062
79063 2000-07-02  Jim Meyering  <meyering@lucent.com>
79064
79065         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79066
79067 2000-07-01  Jim Meyering  <meyering@lucent.com>
79068
79069         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79070
79071 2000-07-01  Jim Meyering  <meyering@lucent.com>
79072
79073         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79074         problem.
79075
79076 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79077
79078         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79079         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79080
79081 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79082
79083         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79084         per change in ../m4/ls-mntd-fs.m4.
79085         (read_filesystem_list): Ignore symbolic links.
79086
79087 2000-06-29  Jim Meyering  <meyering@lucent.com>
79088
79089         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79090         for declaration of strcmp.
79091
79092         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79093
79094         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79095         Avoid warning by casting result to `char *' to remove `const'.
79096
79097 2000-06-28  Jim Meyering  <meyering@lucent.com>
79098
79099         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79100         included by quotearg.c, for which we perform this test.  From
79101         Bruno Haible.
79102
79103 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79104
79105         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79106         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79107         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79108
79109 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79110
79111         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79112
79113 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79114
79115         savedir now sets errno on failure and invokes xmalloc to get memory.
79116         Fix a couple of other minor bugs while we're at it.
79117
79118         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79119         (NAMLEN): Remove macro.
79120         (malloc, realloc): Remove decls.
79121         (stpcpy): Likewise.
79122         ("xalloc.h"): Include.
79123         (NAME_SIZE_DEFAULT): New macro.
79124         (savedir): Use xmalloc / xrealloc to allocate memory.
79125         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79126         Skip "" directory entries.
79127         Use strlen to calculate directory entry length, since the old method
79128         is rarely used these days and isn't worth supporting.
79129         Don't use a pointer after freeing it.
79130         Check for integer overflow when calculating allocation size.
79131         Use memcpy to copy entries, instead of stpcpy.
79132         Set errno properly when returning NULL.
79133         Check for readdir error.
79134
79135 2000-06-26  Jim Meyering  <meyering@lucent.com>
79136
79137         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79138
79139 2000-06-25  Jim Meyering  <meyering@lucent.com>
79140
79141         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79142         Linux header bug when _XOPEN_SOURCE is defined to 500.
79143
79144 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79145
79146         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79147         deficiency.
79148
79149 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79150
79151         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79152         Include xalloc.h.
79153         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79154
79155 2000-06-24  Jim Meyering  <meyering@lucent.com>
79156
79157         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79158         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79159         for which strerror does return char*, but which lacks a conveniently
79160         accessible declaration of the function.  If the compile-test says
79161         strerror_r doesn't work, then resort to a `run'-test that works on
79162         BeOS and segfaults on DEC Unix.
79163
79164 2000-06-24  Jim Meyering  <meyering@lucent.com>
79165
79166         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79167
79168 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79169
79170         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79172
79173 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79174
79175         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79176         (mbrtowc, mbstate_t): Define substitutes if
79177         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79178         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79179         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79180
79181 2000-06-23  Jim Meyering  <meyering@lucent.com>
79182
79183         * m4/afs.m4: Add missing AC_MSG_RESULT.
79184         Reported by Bruno Haible.
79185
79186         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79187         Suggestion from Bruno Haible.
79188
79189 2000-06-23  Jim Meyering  <meyering@lucent.com>
79190
79191         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79192
79193 2000-06-21  Jim Meyering  <meyering@lucent.com>
79194
79195         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79196
79197 2000-06-21  Jim Meyering  <meyering@lucent.com>
79198
79199         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79200         (noinst_HEADERS): Add getstr.h.
79201
79202         * lib/getline.c (getstr): Move into a separate file.
79203         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79204         the following changes: new parameter, delim2; both delim[12]
79205         parameters have type `int', not `char'.  The latter would lose
79206         with 8-bit delimiters.
79207         * lib/getstr.h: New file.
79208
79209 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79210
79211         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79212         than 1024, return a memory chunk of least possible size, instead
79213         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79214         Use free/xmalloc instead of xrealloc to avoid copying for very long
79215         paths.
79216
79217 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79218
79219         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79220         the empty string.
79221
79222 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79223
79224         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79225         address, not strdup.  Include <stdlib.h> and don't declare free().
79226
79227 2000-06-19  Jim Meyering  <meyering@lucent.com>
79228
79229         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79230
79231 2000-06-18  Jim Meyering  <meyering@lucent.com>
79232
79233         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79234
79235         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79236         `checking whether...' message to be consistent with that of the
79237         lstat test.
79238
79239 2000-06-18  Jim Meyering  <meyering@lucent.com>
79240
79241         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79242         Besides, these days every porting target provides a mkdir function.
79243
79244         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79245         needed. (this snippet comes from src/system.h).
79246
79247 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79248
79249         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79250
79251 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79252
79253         * lib/human.c (adjust_value): New function.
79254         (human_readable_inexact): Apply rounding style even when
79255         printing approximate values.
79256
79257 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79258
79259         * lib/human.c (human_readable_inexact): Allow an input block
79260         size that is not a multiple of the output block size, and vice versa.
79261         Reported by Piergiorgio Sartor.
79262
79263 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79264
79265         * lib/getdate.y (get_date): Apply relative times after time
79266         zone indicator, not before.  Reported by Todd A. Jacobs.
79267
79268 2000-06-13  Jim Meyering  <meyering@lucent.com>
79269
79270         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79271
79272         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79273
79274 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79275
79276         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79277
79278 2000-06-12  Jim Meyering  <meyering@lucent.com>
79279
79280         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79281         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79282         optional argument.
79283         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79284         the optional argument, `lib'.
79285
79286 2000-06-08  Jim Meyering  <meyering@lucent.com>
79287
79288         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79289
79290 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79291
79292         Rewrite largefile configuration so that we don't need to run
79293         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79294         AC_CANONICAL_HOST in configure.in -- jmm]
79295
79296         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79297         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79298         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79299         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79300         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79301         All uses changed.
79302         Instead of inspecting the output of getconf, try to compile the
79303         test program without and with the macro definition.
79304         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79305         for getconf.  Instead, check for the needed flags by compiling
79306         test programs.
79307
79308 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79309
79310         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79311
79312 2000-06-04  Jim Meyering  <meyering@lucent.com>
79313
79314         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79315         SunOS 4.1.4 for which gid_t is an unsigned type.
79316
79317 2000-06-03  Jim Meyering  <meyering@lucent.com>
79318
79319         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79320         now that autoconf requires that.
79321
79322         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79323         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79324         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79325
79326 2000-06-03  Jim Meyering  <meyering@lucent.com>
79327
79328         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79329
79330 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79331
79332         * m4/glibc21.m4: New file.
79333         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79334
79335 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79336
79337         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79338         newer, don't install charset.alias.
79339         * lib/config.charset: Change the Linux/glibc rules so they become empty
79340         on glibc-2.1 or newer.
79341
79342 2000-06-02  Jim Meyering  <meyering@lucent.com>
79343
79344         * lib/mountlist.c: Back out last change.  Instead, do this...
79345         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79346         me_dummy member using the same `ignore'-testing code.
79347         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79348         fs_type strings.
79349         From Mark D. Roth.
79350
79351 2000-05-29  Jim Meyering  <meyering@lucent.com>
79352
79353         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79354         mounts with the `ignore' attribute.  Based on a patch from
79355         Mark D. Roth.
79356
79357 2000-05-28  Jim Meyering  <meyering@lucent.com>
79358
79359         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79360         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79361         * m4/stat.m4: Likewise.
79362         * m4/lstat.m4: Likewise.
79363         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79364
79365         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79366         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79367
79368 2000-05-26  Jim Meyering  <meyering@lucent.com>
79369
79370         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79371
79372 2000-05-24  Jim Meyering  <meyering@lucent.com>
79373
79374         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79375         autoconf requires that.
79376         * m4/lib-check.m4: Likewise.
79377         * m4/jm-macros.m4: Likewise.
79378         * m4/strftime.m4: Likewise.
79379
79380         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79381         AC_CHECK_DECLS, now that autoconf requires that.
79382
79383 2000-05-22  Jim Meyering  <meyering@lucent.com>
79384
79385         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79386         * m4/lstat.m4: Likewise.
79387
79388 2000-05-22  Jim Meyering  <meyering@lucent.com>
79389
79390         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79391
79392 2000-05-20  Jim Meyering  <meyering@lucent.com>
79393
79394         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79395         (jm_PREREQ): Use it.
79396
79397 2000-05-18  Jim Meyering  <meyering@lucent.com>
79398
79399         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79400         back, too, since it may have been modified by allocate_entry.
79401         (hash_delete): Rewrite to use neither the assignment operator
79402         nor the comma operator in an if-expression.
79403
79404 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79405
79406         * lib/closeout.c:
79407         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79408         Remove; no longer needed.
79409         "quotearg.h": Add include.
79410         (file_name): Do not bother to explicitly initialize to NULL; it's less
79411         efficient on some hosts.
79412         (close_stdout_status): Remove test as to whether stdout was already
79413         closed; it breaks for the case "echo x | sort >&-".
79414         Quote file name colons.
79415         Do not assume that _("write error") lacks format strings.
79416
79417 2000-05-15  Jim Meyering  <meyering@lucent.com>
79418
79419         * lib/version-etc.c (version_etc_copyright): Update the copyright
79420         string used in all --version output.
79421
79422 2000-05-14  Jim Meyering  <meyering@lucent.com>
79423
79424         * lib/closeout.c (close_stdout_set_file_name): New function.
79425         (close_stdout_status): Use new file-scoped global.
79426         Return right away if fstat says the stdout file descriptor is invalid.
79427         * lib/closeout.h (close_stdout_set_file_name): Declare.
79428
79429 2000-05-10  Jim Meyering  <meyering@lucent.com>
79430
79431         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79432         (close_stdout_set_status): New function.
79433         * lib/closeout.h (close_stdout_set_status): Declare.
79434
79435 2000-05-09  Jim Meyering  <meyering@lucent.com>
79436
79437         * m4/gettext.m4: Rename this...
79438         * m4/libintl.m4: ...to this.
79439
79440 2000-05-08  Jim Meyering  <meyering@lucent.com>
79441
79442         * lib/long-options.c: Don't include closeout.h.
79443         (parse_long_options): Don't call close_stdout for --version.
79444
79445 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79446
79447         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79448         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79449         2.1.3 bug.  This avoids a clash when files like regex.c define
79450         _GNU_SOURCE.
79451
79452 2000-05-06  Jim Meyering  <meyering@lucent.com>
79453
79454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79455         (AC_REPLACE_FUNCS): Add strnlen.
79456
79457         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79458         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79459
79460         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79461         AC_SEARCH_LIBS call for nanosleep.
79462         (LIB_NANOSLEEP): Set and AC_SUBST.
79463
79464 2000-05-06  Jim Meyering  <meyering@lucent.com>
79465
79466         * lib/strnlen.c: Undefine __strnlen and strnlen.
79467         [!weak_alias]: Define __strnlen to strnlen.
79468
79469         * lib/atexit.c: New file, from libiberty.
79470
79471 2000-05-06  Jim Meyering  <meyering@lucent.com>
79472
79473         * lib/closeout.c (close_stdout_status): Also check for errors on the
79474         stderr stream.
79475
79476 2000-05-05  Jim Meyering  <meyering@lucent.com>
79477
79478         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79479         AC_SEARCH_LIBS call for clock_gettime.
79480         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79481
79482         * m4/search-libs.m4: Update from autoconf.
79483
79484         su doesn't work on Solaris 2.6.
79485         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79486         <shadow.h>.  Reported by Dragos Harabor.
79487
79488 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79489
79490         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79491         memcpy instead of xmalloc, xrealloc, path_concat.
79492         (locale_charset): Treat empty environment variables as absent.
79493         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79494
79495 2000-05-04  Jim Meyering  <meyering@lucent.com>
79496
79497         * lib/getopt.c: Update from glibc.
79498         * lib/obstack.c: Likewise.
79499         * lib/obstack.h: Likewise.
79500         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79501         file
79502
79503         * lib/regex.h: Likewise.
79504         * lib/strndup.c: Likewise.
79505         * lib/strnlen.c: New file, from glibc.
79506
79507 2000-05-03  Jim Meyering  <meyering@lucent.com>
79508
79509         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79510
79511 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79512
79513         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79514         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79515         compile-time test, rather than inspecting host and OS, to
79516         decide whether to define _LARGEFILE_SOURCE.
79517
79518 2000-05-01  Jim Meyering  <meyering@lucent.com>
79519
79520         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79521
79522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79523         Based on a patch from Bruno Haible.
79524
79525 2000-05-01  Jim Meyering  <meyering@lucent.com>
79526
79527         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79528
79529 2000-04-29  Jim Meyering  <meyering@lucent.com>
79530
79531         * lib/path-concat.c: Declare strdup only if it's not defined.
79532         * lib/canon-host.c: Likewise.
79533
79534 2000-04-28  Jim Meyering  <meyering@lucent.com>
79535
79536         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79537         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79538         is included first, then limits.h is included by locale.h by libintl.h.
79539         From John David Anglin.
79540
79541 2000-04-25  Jim Meyering  <meyering@lucent.com>
79542
79543         * lib/makepath.c (S_IRWXUGO): Define.
79544         (make_path): Always perform explicit chmod if MODE specifies any
79545         of the `special' permission bits.  Prompted by a bug report against
79546         install from Mate Wierdl and Joost van Baal.
79547
79548 2000-04-18  Jim Meyering  <meyering@lucent.com>
79549
79550         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79551         (jm_PREREQ): Use it.
79552
79553 2000-04-18  Jim Meyering  <meyering@lucent.com>
79554
79555         * lib/README: New file.
79556
79557         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79558         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79559
79560 2000-04-17  Jim Meyering  <meyering@lucent.com>
79561
79562         Get it right :-)
79563         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79564         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79565         Suggestion from Akim Demaille.
79566
79567 2000-04-17  Jim Meyering  <meyering@lucent.com>
79568
79569         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79570         the definition of it to rpl_strftime also defined-away the system's
79571         declaration.
79572
79573 2000-04-15  Jim Meyering  <meyering@lucent.com>
79574
79575         Use `C' to denote so-called `contiguous' files, the same way
79576         that tar does.
79577         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79578         (ftypelet): Use S_ISCTG.
79579         From Michael Deutschmann.
79580
79581 2000-04-14  Jim Meyering  <meyering@lucent.com>
79582
79583         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79584         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79585         clobbered.
79586
79587 2000-04-14  Jim Meyering  <meyering@lucent.com>
79588
79589         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79590
79591 2000-04-13  Jim Meyering  <meyering@lucent.com>
79592
79593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79594         AH_VERBATIM to insert required #ifndef into config.h.in.
79595         Suggestion from Akim Demaille.
79596
79597 2000-04-12  Jim Meyering  <meyering@lucent.com>
79598
79599         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79600         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79601         Christian Krackowizer.
79602
79603         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79604         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79605         (AC_SYS_LARGEFILE): Require.
79606         (AM_C_PROTOTYPES): Require.
79607
79608 2000-04-08  Jim Meyering  <meyering@lucent.com>
79609
79610         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79611         names don't conflict.  Reported by Eli Zaretskii.
79612
79613 2000-04-07  Jim Meyering  <meyering@lucent.com>
79614
79615         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79616         sys/types.h, to work around system header problems on AIX 3.2.5.
79617         From Bruno Haible.
79618
79619 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79620
79621         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79622         bug.  Deal with the different error behavior of Irix iconv.
79623
79624 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79625
79626         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79627         IRIX if the installer said otherwise.
79628
79629 2000-04-05  Jim Meyering  <meyering@lucent.com>
79630
79631         Portability tweaks required for ultrix4.3.
79632         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79633         (jm_CHECK_DECLS): Add getutent to the list of functions.
79634         (_jm_DECL_HEADERS): Add utmpx.h.
79635         From John David Anglin.
79636
79637         * m4/strftime.m4: Back out the 2000-04-02 change.
79638         Instead of that change, simply undefine putenv in the test program.
79639
79640 2000-04-05  Jim Meyering  <meyering@lucent.com>
79641
79642         Portability tweaks required for ultrix4.3.
79643         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79644         getutent.
79645         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79646         * lib/canon-host.c: Declare strdup.
79647         * lib/path-concat.c: Likewise.
79648         From John David Anglin.
79649
79650 2000-04-04  Jim Meyering  <meyering@lucent.com>
79651
79652         Be more DOS 8.3-friendly.
79653         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79654         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79655         * lib/Makefile.am: Reflect renaming.
79656         Reported by Eli Zaretskii.
79657
79658         Use a temporary file name that won't clash with `charset.alias'
79659         in the DOS 8.3 name space.
79660         * lib/Makefile.am (charset_tmp): Define.
79661         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79662         (uninstall-local): Likewise.
79663         Reported by Eli Zaretskii.
79664
79665 2000-04-03  Jim Meyering  <meyering@lucent.com>
79666
79667         * m4/gettext.m4: Fix typo in comment.
79668
79669         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79670         textutils/configure.in).  Suggestion from Paul Eggert.
79671         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79672
79673 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79674
79675         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79676         variable in the shell rather than using putenv, which isn't
79677         portable.  This avoids the configure-time inter-test dependency
79678         on the potentially-renamed putenv function.
79679
79680 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79681
79682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79683         before checking struct stat.st_blksize, so that
79684         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79685
79686 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79687
79688         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79689         since strftime.c uses HAVE_STRFTIME to decide whether to use
79690         the underlying strftime.
79691
79692 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79693
79694         * lib/time/strftime.c (my_strftime): Make sure we call the system
79695         strftime, not ourselves, when invoking the underlying strftime.
79696
79697 2000-03-24  Jim Meyering  <meyering@lucent.com>
79698
79699         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79700         (charset_alias): Define.
79701         (install-exec-local): Factor out common code.
79702         (uninstall-local): Split lines longer than 80.
79703         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79704         (SUFFIXES): Define.
79705         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79706         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79707
79708 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79709
79710         * lib/config.charset: Output a line containing "Packages using this
79711         file".
79712         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79713         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79714         ref-del.sed): New rules.
79715
79716 2000-03-17  Jim Meyering  <meyering@lucent.com>
79717
79718         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79719         Otherwise, include <strings.h>
79720
79721 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79722
79723         * lib/unicodeio.c (utf8_wctomb): New function.
79724         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79725         format instead of in UCS-4 with platform dependent endianness.
79726
79727 2000-03-10  Jim Meyering  <meyering@lucent.com>
79728
79729         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79730         From Marco Franzen.
79731
79732 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79733
79734         * lib/savedir.c (savedir): Work even if directory size is
79735         negative; this can happen with some screwy NFS configurations.
79736
79737 2000-03-06  Jim Meyering  <meyering@lucent.com>
79738
79739         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79740         if it's NULL (because we ran out of memory).  From Bruno Haible.
79741
79742 2000-03-05  Jim Meyering  <meyering@lucent.com>
79743
79744         * lib/localcharset.c ("path-concat.h"): Include.
79745         (get_charset_aliases): Use path_concat instead of ANSI string
79746         concatenation.
79747
79748         * lib/unicodeio.h (PARAMS): Define.
79749         Use it to guard prototype.
79750
79751 2000-03-04  Jim Meyering  <meyering@lucent.com>
79752
79753         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79754         for lib/localcharset.c.
79755
79756 2000-03-04  Jim Meyering  <meyering@lucent.com>
79757
79758         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79759         installing into it.
79760         (uninstall-local): Uncomment this rule so `make distcheck' works
79761         once again.
79762
79763         * lib/unicodeio.c (<errno.h>): Include it.
79764         (errno): Declare if not defined.
79765
79766         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79767
79768         * lib/config.charset: New version, incorporating remarks from a linux
79769         i18n mailing list.  From Bruno Haible.
79770
79771 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79772
79773         * m4/codeset.m4: New file.
79774         * m4/iconv.m4: New file.
79775         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79776
79777 2000-03-03  Jim Meyering  <meyering@lucent.com>
79778
79779         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79780
79781 2000-03-02  Jim Meyering  <meyering@lucent.com>
79782
79783         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79784         the messages come out on separate lines.
79785
79786         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79787         rather than jm_CHECK_DECLARATIONS.
79788         * m4/decl.m4: Remove now-unused file.
79789
79790         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79791         geteuid.
79792
79793 2000-03-02  Jim Meyering  <meyering@lucent.com>
79794
79795         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79796
79797 2000-03-01  Jim Meyering  <meyering@lucent.com>
79798
79799         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79800         * lib/unicodeio.c: Likewise.
79801
79802 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79803
79804         * lib/config.charset: New file.
79805         * lib/localcharset.c: New file.
79806         * lib/unicodeio.h, lib/unicodeio.c: New files.
79807         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79808         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79809         (noinst_HEADERS): Add unicodeio.h.
79810         (all-local, install-exec-local, charset.alias): New targets.
79811
79812 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79813
79814         * lib/quotearg.c (ALERT_CHAR): New macro.
79815         (quotearg_buffer_restyled): Use it.
79816
79817 2000-02-27  Jim Meyering  <meyering@lucent.com>
79818
79819         * m4/check-decl.m4: Add getenv to the list.
79820
79821 2000-02-27  Jim Meyering  <meyering@lucent.com>
79822
79823         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79824         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79825
79826         * lib/backupfile.c: Guard inclusion of stdlib.h with
79827         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79828         Declare malloc if needed.
79829
79830         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79831         `#ifndef HAVE_DECL..'
79832         now that autoconf always defines the HAVE_DECL_ symbols.
79833         * lib/human.c: Likewise.
79834         * lib/same.c: Likewise.
79835         * lib/strtoumax.c: Likewise.
79836
79837         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79838         declaration check was not run.
79839         * lib/hash.c: Likewise.
79840         * lib/human.c: Likewise.
79841         * lib/same.c: Likewise.
79842         * lib/strtoumax.c: Likewise.
79843
79844         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79845         `.', then first look up the entire `.'-containing string as a login
79846         name.
79847
79848 2000-02-23  Jim Meyering  <meyering@lucent.com>
79849
79850         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79851         in place of my hack.
79852
79853 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79854
79855         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79856         (textint): New typedef.
79857         (parser_control): Member year changed from int to textint.
79858         All uses changed.
79859         (YYSTYPE): Removed; replaced by %union with int and textint members.
79860         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79861         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79862         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79863         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79864         (date, number, to_year): Use width of number in digits, not its value,
79865         to determine whether it's a 2-digit year, or a 2-digit time.
79866         (yylex): Store number of digits of numeric tokens.
79867         Reported by John Kendall.
79868
79869         (parser_control): Changed from struct parser_control to typedef (for
79870         consistency).  All uses changed.
79871
79872         (tID): Removed; not used.
79873         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79874
79875 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79876
79877         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79878         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79879
79880 2000-02-12  Jim Meyering  <meyering@lucent.com>
79881
79882         * lib/userspec.c (ISDIGIT): Define it.
79883         (isdigit): Remove definition.
79884         (is_number): Use ISDIGIT, not isdigit.
79885         <libintl.h>: Include.
79886         (_ and N_): Define.
79887         (parse_user_spec): Mark translatable strings.
79888
79889 2000-02-10  Jim Meyering  <meyering@lucent.com>
79890
79891         With these changes, nanosleep.[ch] are finally enough like the other
79892         lib/* replacement files to compile on a few more losing systems.
79893
79894         * lib/nanosleep.h: Don't include config.h.
79895         Remove prototype from declaration of nanosleep.
79896         (PARAMS): Remove now-unneeded definition.
79897         * lib/nanosleep.c: #undef nanosleep.
79898         (rpl_nanosleep): Rename from nanosleep.
79899
79900 2000-02-10  Jim Meyering  <meyering@lucent.com>
79901
79902         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79903         gnu_nanosleep to rpl_nanosleep.
79904
79905 2000-02-09  Jim Meyering  <meyering@lucent.com>
79906
79907         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79908         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79909
79910 2000-02-08  Akim Demaille  <akim@epita.fr>
79911
79912         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79913         `[' and `]' and remove uses of `changequote'.
79914         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79915         (AC_SYS_LARGEFILE): Likewise.
79916         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79917         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79918         of changequote.
79919         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79920         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79921         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79922         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79923
79924 2000-02-05  Jim Meyering  <meyering@lucent.com>
79925
79926         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79927         Remove explicit use of AC_HEADER_TIME.  It is required by
79928         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79929         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79930         in autoconf whereby the expansion of the latter ended up preceding
79931         the expansion of its prerequisite, AC_HEADER_TIME.
79932         Reported by Volker Borchert.
79933
79934 2000-02-03  Jim Meyering  <meyering@lucent.com>
79935
79936         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79937
79938 2000-02-03  Jim Meyering  <meyering@lucent.com>
79939
79940         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79941         rather than with `#if HAVE_UTMPNAME'.
79942
79943 2000-02-02  Jim Meyering  <meyering@lucent.com>
79944
79945         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79946         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79947         Reported by Eli Zaretskii.
79948
79949 2000-02-01  Jim Meyering  <meyering@lucent.com>
79950
79951         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79952
79953 2000-01-31  Jim Meyering  <meyering@lucent.com>
79954
79955         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79956         functions.  Add the time.h and sys/time.h headers along with the
79957         AC_REQUIRE'ment of AC_HEADER_TIME.
79958
79959 2000-01-31  Jim Meyering  <meyering@lucent.com>
79960
79961         * lib/nanosleep.h (nanosleep): Guard declaration with
79962         `#if ! HAVE_DECL_NANOSLEEP'.
79963         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79964         the declaration in that vendor's sys/timers.h.
79965         Reported by Christian Krackowizer.
79966
79967         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79968         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79969         (ISPRINT): Likewise.
79970         Reported by Tom Tromey.
79971
79972 2000-01-30  Jim Meyering  <meyering@lucent.com>
79973
79974         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79975
79976         * m4/prereq.m4 (utmp_includes): Define.
79977         Check for ut_user and ut_name members in both struct utmpx
79978         and struct utmp.
79979
79980 2000-01-30  Jim Meyering  <meyering@lucent.com>
79981
79982         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79983         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79984         header files where only utmpx.ut_user is declared.
79985
79986         * lib/readutmp.h (UT_USER): Define.
79987
79988 2000-01-29  Jim Meyering  <meyering@lucent.com>
79989
79990         * m4/lib-check.m4: New file containing library-related checks from
79991         fileutils and sh-utils (textutils had none).
79992
79993 2000-01-28  Jim Meyering  <meyering@lucent.com>
79994
79995         * m4/perl.m4: Change format of warning message to look more like that
79996         from the missing script.  Suggestion from François Pinard.
79997
79998 2000-01-25  Jim Meyering  <meyering@lucent.com>
79999
80000         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80001         well as time.h in the compile check.
80002         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80003         Fix typo in cross-compiling case: s/yes/no/.
80004
80005 2000-01-23  Jim Meyering  <meyering@lucent.com>
80006
80007         * m4/jm-macros.m4: Move df-related tests here from
80008         fileutils/configure.in
80009
80010         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80011         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80012
80013         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80014         s/space/ac_fsusage_space/.
80015         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80016
80017         * m4/ftruncate.m4: New file (derived from part of
80018         fileutils/configure.in).
80019         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80020         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80021
80022         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80023         AC_SUBST these here, rather than just in sh-util/configure.in, so
80024         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80025         all the same.
80026         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80027         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80028         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80029         (AC_SUBST(POW_LIBM)): Likewise.
80030         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80031
80032 2000-01-23  Jim Meyering  <meyering@lucent.com>
80033
80034         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80035         obstack.c.
80036
80037 2000-01-22  Jim Meyering  <meyering@lucent.com>
80038
80039         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80040
80041         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80042
80043         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80044         configure.in
80045         (AC_CHECK_HEADERS): Likewise for sh-utils.
80046         (AC_CHECK_HEADERS): Likewise for textutils.
80047         Merge the three lists of headers.
80048
80049         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80050         from fileutils' configure.in.
80051
80052         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80053         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80054         check-decl.m4.
80055
80056         * m4/check-decl.m4: Use #if rather than #ifdef.
80057         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80058         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80059         (_jm_DECL_HEADERS): Define new function.
80060         (jm_CHECK_DECLARATIONS): Require it.
80061
80062 2000-01-22  Jim Meyering  <meyering@lucent.com>
80063
80064         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80065         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80066         Required for some AIX systems.  Reported by Christian Krackowizer.
80067         [TESTING] (main): New function.
80068
80069         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80070         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80071         letters.
80072
80073         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80074         iswprint.
80075
80076         * lib/strverscmp.c (ISDIGIT): Define.
80077         (strverscmp): Use ISDIGIT, not isdigit.
80078
80079 2000-01-19  Jim Meyering  <meyering@lucent.com>
80080
80081         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80082         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80083         defines `struct timespec' in <sys/time.h>
80084
80085         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80086         Thanks to Akim for explaining.
80087
80088 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80089
80090         * lib/nanosleep.c (nanosleep):
80091         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80092         POSIX.1 doesn't require SA_INTERRUPT and some systems
80093         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80094         it's been part of POSIX.1 since day 1 (in 1988).
80095
80096 2000-01-17  Jim Meyering  <meyering@lucent.com>
80097
80098         * lib/interlock: Remove unused file.  Reported by François Pinard.
80099
80100 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80101
80102         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80103         alert, backslash, formfeed, and vertical tab unnecessarily in
80104         shell quoting style.
80105
80106 2000-01-16  Jim Meyering  <meyering@lucent.com>
80107
80108         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80109         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80110         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80111         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80112
80113 2000-01-16  Jim Meyering  <meyering@lucent.com>
80114
80115         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80116         because the latter didn't work.
80117
80118 2000-01-15  Jim Meyering  <meyering@lucent.com>
80119
80120         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80121         (AC_REPLACE_FUNCS): Add memcpy and memset.
80122         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80123         Add strpbrk.
80124         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80125
80126 2000-01-12  Jim Meyering  <meyering@lucent.com>
80127
80128         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80129         (jm_PREREQ): Use it.
80130         (jm_PREREQ_READUTMP): New macro.
80131         (jm_PREREQ): Use it.
80132
80133 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80134
80135         Quote multibyte characters correctly.
80136         * m4/c-bs-a.m4: New file.
80137         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80138         (jm_PREREQ): Use it.
80139
80140 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80141
80142         * m4/uintmax_t.m4: Port to autoconf 2.13.
80143
80144 2000-01-08  Jim Meyering  <meyering@ascend.com>
80145
80146         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80147         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80148
80149 2000-01-04  Jim Meyering  <meyering@ascend.com>
80150
80151         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80152         jm_STRUCT_DIRENT_D_TYPE.
80153         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80154         jm_STRUCT_DIRENT_D_INO.
80155         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80156         jm_STRUCT_UTIMBUF.
80157         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80158         renamings.
80159         * m4/utime.m4: Likewise.
80160
80161         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80162         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80163
80164 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80165
80166         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80167         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80168
80169 2000-01-02  Jim Meyering  <meyering@ascend.com>
80170
80171         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80172         remember if this is necessary.
80173
80174 1999-12-26  Jim Meyering  <meyering@ascend.com>
80175
80176         * m4/jm-macros.m4: Use it here.
80177         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80178
80179 1999-12-23  Jim Meyering  <meyering@ascend.com>
80180
80181         * m4/jm-macros.m4: Check for clock_gettime (moved from
80182         fileutils/configure.in)
80183         Check for gettimeofday.
80184
80185 1999-12-20  Jim Meyering  <meyering@ascend.com>
80186
80187         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80188         autoconf-2.14a-1999-12-20.
80189
80190 1999-12-19  Jim Meyering  <meyering@ascend.com>
80191
80192         * m4/lstat-slash.m4: New file.
80193         * m4/jm-macros.m4: Use the new macro:
80194         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80195
80196 1999-12-07  Jim Meyering  <meyering@ascend.com>
80197
80198         * m4/perl.m4: Require that File::Compare be available, too.
80199         Too many systems seem to lack it.
80200
80201         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80202         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80203
80204 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80205
80206         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80207         problem with the QNX 4.25 shell, which doesn't propagate exit
80208         status of failed commands inside shell assignments.
80209
80210 1999-11-17  Jim Meyering  <meyering@ascend.com>
80211
80212         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80213
80214 1999-11-07  Jim Meyering  <meyering@ascend.com>
80215
80216         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80217
80218 1999-11-06  Jim Meyering  <meyering@ascend.com>
80219
80220         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80221         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80222
80223 1999-11-05  Jim Meyering  <meyering@ascend.com>
80224
80225         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80226         configure.in of textutils, fileutils, and sh-utils into this one
80227         (shared between those packages) file.
80228         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80229         AC_STRUCT_ST_BLKSIZE.
80230
80231 1999-11-03  Jim Meyering  <meyering@ascend.com>
80232
80233         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80234         of AC_CHECK_TYPE checks includes unistd.h.
80235         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80236         Suggestion from Akim Demaille.
80237
80238 1999-10-30  Jim Meyering  <meyering@ascend.com>
80239
80240         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80241         m4-quoted string.
80242         * m4/ls-mntd-fs.m4: Likewise.
80243         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80244         * m4/jm-winsz1.m4: Likewise.
80245
80246         * m4/const.m4: Remove file, since the fix made it into the experimental
80247         version of autoconf.
80248         * m4/mktime.m4: Likewise.
80249
80250         * m4/check-type.m4: Remove file, now that the latest version of
80251         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80252
80253         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80254         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80255         AC_CHECK_TYPE.
80256
80257 1999-10-04  Jim Meyering  <meyering@ascend.com>
80258
80259         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80260
80261 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80262
80263         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80264         2.95.1 bug with HP-UX 10.20.
80265
80266 1999-09-17  Jim Meyering  <meyering@ascend.com>
80267
80268         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80269         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80270         due to missing strdup (against sh-utils-2.0).
80271
80272 1999-08-29  Jim Meyering  <meyering@ascend.com>
80273
80274         * m4/jm-macros.m4: Require jm_BISON.
80275         * m4/bison.m4: New file.
80276
80277 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80278
80279         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80280         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80281
80282 1999-08-05  Jim Meyering  <meyering@ascend.com>
80283
80284         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80285         to avoid conflicts with `conftest' on 8+3 filesystems.
80286         Suggestion from Eli Zaretskii.
80287
80288 1999-08-04  Jim Meyering  <meyering@ascend.com>
80289
80290         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80291         fileutils and sh-utils (textutils's getline test was inadequate).
80292         (AM_FUNC_GETLINE): Run this test.
80293         (AC_CHECK_FUNCS): Check for getdelim.
80294         Reported by Bob Proulx.
80295
80296 1999-08-02  Jim Meyering  <meyering@ascend.com>
80297
80298         * m4/jm-macros.m4: Add a comment.
80299
80300 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80301
80302         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80303         <inttypes.h> defines strtoumax as a macro (and not as a
80304         function).
80305
80306 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80307
80308         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80309         that we can shift, multiply and divide unsigned long long
80310         values; Ultrix cc can't do it.
80311
80312 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80313
80314         * m4/mktime.m4: New file, which is a preview of what should appear
80315         in the next public autoconf release.
80316
80317 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80318
80319         * m4/lfs.m4: Remove this file.
80320         * m4/largefile.m4: New file.  It contains the old contents of
80321         lfs.m4, except that all names with prefix AC_LFS have been
80322         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80323         compatible with future autoconf versions.  Also, some minor m4
80324         quoting problems have been fixed.
80325
80326 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80327
80328         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80329         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80330         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80331         and simplify the shell code.
80332
80333 1999-08-01  Jim Meyering  <meyering@ascend.com>
80334
80335         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80336         m4.
80337
80338 1999-07-20  Jim Meyering  <meyering@ascend.com>
80339
80340         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80341
80342 1999-07-15  Jim Meyering  <meyering@ascend.com>
80343
80344         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80345
80346 1999-05-22  Jim Meyering  <meyering@ascend.com>
80347
80348         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80349
80350 1999-05-20  Jim Meyering  <meyering@ascend.com>
80351
80352         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80353         Add a colon after each `then' in case $4 is empty.
80354
80355 1999-05-16  Jim Meyering  <meyering@ascend.com>
80356
80357         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80358
80359 1999-05-10  Jim Meyering  <meyering@ascend.com>
80360
80361         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80362
80363         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80364         AC_FUNC_MKTIME.
80365
80366 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80367
80368         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80369
80370 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80371
80372         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80373         not CPPFLAGS, so that linking works correctly in IRIX.
80374
80375 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80376
80377         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80378
80379 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80380
80381         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80382         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80383         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80384         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80385         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80386
80387         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80388
80389 1999-04-20  Jim Meyering  <meyering@ascend.com>
80390
80391         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80392         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80393         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80394
80395 1999-04-18  Jim Meyering  <meyering@ascend.com>
80396
80397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80398         * m4/jm-macros.m4: Use it.
80399
80400 1999-04-06  Jim Meyering  <meyering@ascend.com>
80401
80402         * m4/strftime.m4: Remove test for %f.
80403
80404 1999-03-29  Jim Meyering  <meyering@ascend.com>
80405
80406         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80407         superset of the AC_TYPE_* checks in the textutils, fileutils,
80408         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80409         AC_TYPE_PID_T.
80410
80411 1999-03-28  Jim Meyering  <meyering@ascend.com>
80412
80413         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80414         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80415         replaced e.g., in the *.sh files of the sh-utils.
80416
80417 1999-03-20  Jim Meyering  <meyering@ascend.com>
80418
80419         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80420         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80421         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80422
80423 1999-03-19  Jim Meyering  <meyering@ascend.com>
80424
80425         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80426
80427 1999-03-12  Jim Meyering  <meyering@ascend.com>
80428
80429         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80430
80431 1999-03-07  Jim Meyering  <meyering@ascend.com>
80432
80433         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80434         declared.
80435
80436 1999-02-17  Jim Meyering  <meyering@ascend.com>
80437
80438         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80439         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80440
80441 1999-02-07  Jim Meyering  <meyering@ascend.com>
80442
80443         * m4/group-member.m4: New file -- extracted from sh-utils'
80444         configure.in.
80445
80446         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80447         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80448
80449 1999-02-06  Jim Meyering  <meyering@ascend.com>
80450
80451         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80452         * m4/fnmatch.m4: Likewise.
80453         * m4/getgroups.m4: Likewise.
80454         * m4/lstat.m4: Likewise.
80455         * m4/malloc.m4: Likewise.
80456         * m4/putenv.m4: Likewise.
80457         * m4/realloc.m4: Likewise.
80458         * m4/regex.m4: Likewise.
80459         * m4/stat.m4: Likewise.
80460         * m4/strftime.m4: Likewise.
80461         Suggestion from Alain Magloire.
80462
80463         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80464         * m4/fnmatch.m4: Likewise.
80465         * m4/getgroups.m4: Likewise.
80466         * m4/getline.m4: Likewise.
80467         * m4/lstat.m4: Likewise.
80468         * m4/malloc.m4: Likewise.
80469         * m4/memcmp.m4: Likewise.
80470         * m4/putenv.m4: Likewise.
80471         * m4/realloc.m4: Likewise.
80472         * m4/regex.m4: Likewise.
80473         * m4/stat.m4: Likewise.
80474         * m4/strftime.m4: Likewise.
80475         Suggestion from Alain Magloire.
80476
80477         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80478         an argument.
80479
80480         * m4/regex.m4: Add a run-time Test for proper operation of
80481         re_compile_pattern.
80482
80483 1999-01-31  Jim Meyering  <meyering@ascend.com>
80484
80485         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80486
80487 1999-01-30  Jim Meyering  <meyering@ascend.com>
80488
80489         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80490
80491         * m4/jm-mktime.m4: Make this a wrapper around the official
80492         AM_FUNC_MKTIME rather than my private copy, now that the official one
80493         is up to date.
80494         * m4/mktime.m4: Remove file.
80495
80496         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80497         * m4/uptime.m4: Likewise.
80498         * m4/uintmax_t.m4: Likewise.
80499
80500 1999-01-28  Jim Meyering  <meyering@ascend.com>
80501
80502         * m4/jm-macros.m4: Use jm_AFS.
80503         * m4/afs.m4: New file (from fileutils' configure.in).
80504
80505         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80506         * m4/chown.m4: Likewise.
80507         * m4/d-ino.m4: Likewise.
80508         * m4/d-type.m4: Likewise.
80509         * m4/fnmatch.m4: Likewise.
80510         * m4/getgroups.m4: Likewise.
80511         * m4/gettext.m4: Likewise.
80512         * m4/jm-mktime.m4: Likewise.
80513         * m4/jm-winsz2.m4: Likewise.
80514         * m4/lcmessage.m4: Likewise.
80515         * m4/ls-mntd-fs.m4: Likewise.
80516         * m4/malloc.m4: Likewise.
80517         * m4/memcmp.m4: Likewise.
80518         * m4/putenv.m4: Likewise.
80519         * m4/realloc.m4: Likewise.
80520         * m4/st_mtim.m4: Likewise.
80521         * m4/strftime.m4: Likewise.
80522
80523 1999-01-16  Jim Meyering  <meyering@ascend.com>
80524
80525         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80526         (ARGMATCH_DIE_DECL): Define.
80527
80528 1999-01-12  Jim Meyering  <meyering@ascend.com>
80529
80530         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80531         Reported by Lars Hecking.
80532
80533 1999-01-10  Jim Meyering  <meyering@ascend.com>
80534
80535         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80536         gross kludge.
80537         * m4/inttypes_h.m4: Likewise.
80538         * m4/lstat.m4: Likewise.
80539         * m4/malloc.m4: Likewise.
80540         * m4/readdir.m4: Likewise.
80541         * m4/realloc.m4: Likewise.
80542         * m4/st_dm_mode.m4: Likewise.
80543         * m4/stat.m4: Likewise.
80544         * m4/utimbuf.m4: Likewise.
80545         * m4/utimes.m4: Likewise.
80546
80547         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80548         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80549         comments in config.h.in are meaningful.
80550
80551         * m4/jm-macros.m4: Require autoconf-2.13 here.
80552
80553         * m4/regex.m4: By default, don't use the included regex.c on systems
80554         with glibc 2.  Suggestion from Uli Drepper.
80555
80556 1999-01-02  Jim Meyering  <meyering@ascend.com>
80557
80558         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80559
80560 1998-12-18  Jim Meyering  <meyering@ascend.com>
80561
80562         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80563         Based on a suggestion from Lars Hecking.
80564
80565 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80566
80567         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80568
80569 1998-11-16  Jim Meyering  <meyering@ascend.com>
80570
80571         * m4/lfs.m4: Double-quote the `uname...` expression.
80572
80573 1998-11-14  Jim Meyering  <meyering@ascend.com>
80574
80575         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80576         * m4/stat.m4: Likewise.
80577
80578 1998-11-03  Jim Meyering  <meyering@ascend.com>
80579
80580         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80581         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80582
80583 1998-10-18  Jim Meyering  <meyering@ascend.com>
80584
80585         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80586
80587 1998-10-17  Jim Meyering  <meyering@ascend.com>
80588
80589         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80590         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80591         calls for those previously hard-coded headers.  Instead, take a new
80592         parameter.
80593         (jm_CHECK_DECLARATIONS): Reflect interface change.
80594         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80595         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80596
80597         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80598
80599 1998-10-14  Jim Meyering  <meyering@ascend.com>
80600
80601         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80602         instead of "TZ=America/Vancouver".  From Paul Eggert.
80603
80604 1998-10-11  Jim Meyering  <meyering@ascend.com>
80605
80606         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80607         This adds a test for a recently added compatibility fix for mktime.c.
80608         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80609
80610 1998-09-27  Jim Meyering  <meyering@ascend.com>
80611
80612         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80613
80614         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80615         ../configure.in, including a change from Gordon Matzigkeit to allow
80616         cross-compiling for the Hurd.
80617
80618         * m4/glibc.m4: New file/macro to test for the GNU C Library
80619         versions 1 and 2.  From Gordon Matzigkeit.
80620         Indent.
80621
80622 1998-09-21  Jim Meyering  <meyering@ascend.com>
80623
80624         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80625
80626 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80627
80628         Port nanosecond-resolution times to UnixWare 2.1.2 and
80629         pedantic Solaris 2.6.
80630
80631         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80632         AC_STRUCT_ST_MTIM.
80633         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80634         Generate name of ns member, instead of just 1 or undef.
80635         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80636
80637 1998-08-15  Jim Meyering  <meyering@ascend.com>
80638
80639         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80640         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80641         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80642         instead of jm_TYPE_SSIZE_T.
80643
80644 1998-08-12  Jim Meyering  <meyering@ascend.com>
80645
80646         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80647
80648 1998-08-02  Jim Meyering  <meyering@ascend.com>
80649
80650         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80651         in acconfig.h manually.
80652
80653 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80654
80655         * m4/st_mtim.m4: New file.
80656
80657 1998-07-28  Jim Meyering  <meyering@ascend.com>
80658
80659         * m4/utimes.m4: Undef stat.
80660
80661 1998-07-25  Jim Meyering  <meyering@ascend.com>
80662
80663         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80664         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80665
80666 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80667
80668         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80669         uid and gid actually remain unchanged.
80670
80671 1998-07-07  Jim Meyering  <meyering@ascend.com>
80672
80673         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80674
80675 1998-07-04  Jim Meyering  <meyering@ascend.com>
80676
80677         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80678         to prove that this macro can be used in packages without regex.c.
80679
80680 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80681
80682         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80683         is to be used.
80684
80685 1998-07-03  Jim Meyering  <meyering@ascend.com>
80686
80687         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80688
80689         * m4/gettext.m4: New file -- from gettext-0.10.35.
80690         * m4/lcmessage.m4: Likewise.
80691         * m4/progtest.m4: Likewise.
80692
80693         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80694         * m4/jm-macros.m4: Require the new macro.
80695
80696 1998-06-29  Jim Meyering  <meyering@ascend.com>
80697
80698         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80699         for the definition of NGROUPS (used in a system header included
80700         by sys/mount.h).
80701
80702 1998-06-28  Jim Meyering  <meyering@ascend.com>
80703
80704         * m4/ls-mntd-fs.m4: New file.
80705         * m4/fstypename.m4: New file.
80706
80707         * m4/jm-macros.m4: Require the new macro.
80708         * m4/jm-glibc-io.m4: New file.
80709
80710 1998-05-19  Jim Meyering  <meyering@ascend.com>
80711
80712         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80713         * m4/lchown.m4: New file.
80714
80715         * m4/Makefile.am.in: New file.
80716         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80717
80718 1998-05-14  Jim Meyering  <meyering@ascend.com>
80719
80720         * m4/Makefile.am (EXTRA_DIST): Add them.
80721         * m4/jm-macros.m4: New file.
80722         * m4/utimbuf.m4: New file.
80723
80724 1998-05-12  Jim Meyering  <meyering@ascend.com>
80725
80726         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80727
80728 1998-05-11  Jim Meyering  <meyering@ascend.com>
80729
80730         * m4/isc-posix.m4: New file.
80731
80732 1998-05-10  Jim Meyering  <meyering@ascend.com>
80733
80734         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80735
80736 1998-05-09  Jim Meyering  <meyering@ascend.com>
80737
80738         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80739         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80740         with automake.
80741
80742         * m4/ssize_t.m4: New file.
80743         * m4/mktime.m4: Remove file -- the new automake has this now.
80744
80745 1998-04-26  Jim Meyering  <meyering@ascend.com>
80746
80747         * m4/assert.m4: New file.
80748         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80749
80750 1998-04-05  Jim Meyering  <meyering@ascend.com>
80751
80752         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80753         (jm_PREREQ): Use it here.
80754
80755 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80756
80757         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80758         in acconfig.h.
80759
80760 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80761
80762         * m4/prereq.m4: New file.
80763         * m4/error.m4: New file.
80764         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80765
80766 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80767
80768         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80769         cache-check for the same variable -- that defeated the purpose of
80770         the test; the test program was never run.  This was a problem only
80771         on systems with losing getline functions -- HP-UX 10.20 is one.
80772         Reported by Bjorn Helgaas.
80773
80774 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80775
80776         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80777
80778 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80779
80780         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80781
80782         * m4/const.m4: New file.  Use an initializer in this declaration
80783         typedef int charset[2]; const charset x;
80784         Reported by Bob Glickstein.
80785
80786 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80787
80788         * m4/chown.m4: Fix reversed types on -1 args to chown.
80789         From Kaveh Ghazi.
80790
80791 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80792
80793         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80794         Add lseek and memchr.
80795
80796         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80797         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80798         have a 20-character limit on names.
80799
80800 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80801
80802         * m4/inttypes_h.m4: New file.
80803         * m4/uintmax_t.m4: New file.
80804         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80805
80806
80807         -----
80808
80809         Local Variables:
80810         coding: utf-8
80811         End:
80812
80813         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80814
80815         Copying and distribution of this file, with or without
80816         modification, are permitted provided the copyright notice
80817         and this notice are preserved.